@matdata/yasgui-graph-plugin 1.3.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.
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -16,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
16
17
  };
17
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
19
 
19
- // src/index.js
20
- var src_exports = {};
21
- __export(src_exports, {
22
- default: () => src_default
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default
23
24
  });
24
- module.exports = __toCommonJS(src_exports);
25
+ module.exports = __toCommonJS(index_exports);
25
26
 
26
- // src/prefixUtils.js
27
+ // src/prefixUtils.ts
27
28
  function extractPrefixes(yasr) {
28
29
  const prefixMap = /* @__PURE__ */ new Map();
29
30
  if (yasr && yasr.getPrefixes) {
@@ -50,8 +51,7 @@ function extractPrefixes(yasr) {
50
51
  return prefixMap;
51
52
  }
52
53
  function applyPrefix(uri, prefixMap) {
53
- if (!uri || typeof uri !== "string")
54
- return uri;
54
+ if (!uri || typeof uri !== "string") return uri;
55
55
  for (const [namespace, prefix] of prefixMap.entries()) {
56
56
  if (uri.startsWith(namespace)) {
57
57
  const localName = uri.substring(namespace.length);
@@ -61,19 +61,21 @@ function applyPrefix(uri, prefixMap) {
61
61
  return uri;
62
62
  }
63
63
  function truncateLabel(text, maxLength = 50) {
64
- if (!text || typeof text !== "string")
65
- return text;
66
- if (text.length <= maxLength)
67
- return text;
64
+ if (!text || typeof text !== "string") return text;
65
+ if (text.length <= maxLength) return text;
68
66
  return text.substring(0, maxLength - 3) + "...";
69
67
  }
70
68
 
71
- // src/networkConfig.js
69
+ // src/networkConfig.ts
72
70
  function getDefaultNetworkOptions(themeColors) {
73
71
  return {
74
72
  autoResize: true,
75
73
  width: "100%",
76
74
  height: "100%",
75
+ // Configure canvas background color based on theme
76
+ configure: {
77
+ enabled: false
78
+ },
77
79
  physics: {
78
80
  enabled: true,
79
81
  stabilization: {
@@ -118,7 +120,8 @@ function getDefaultNetworkOptions(themeColors) {
118
120
  },
119
121
  smooth: {
120
122
  enabled: true,
121
- type: "dynamic"
123
+ type: "dynamic",
124
+ roundness: 0.5
122
125
  },
123
126
  font: {
124
127
  size: 12,
@@ -135,7 +138,7 @@ function getDefaultNetworkOptions(themeColors) {
135
138
  };
136
139
  }
137
140
 
138
- // src/parsers.js
141
+ // src/parsers.ts
139
142
  function parseConstructResults(yasrResults) {
140
143
  const triples = [];
141
144
  if (!yasrResults || !yasrResults.getBindings) {
@@ -161,7 +164,7 @@ function parseConstructResults(yasrResults) {
161
164
  return triples;
162
165
  }
163
166
 
164
- // src/colorUtils.js
167
+ // src/colorUtils.ts
165
168
  function getNodeColor(node, triples, themeColors) {
166
169
  if (node.uri && node.uri.startsWith("_:")) {
167
170
  return themeColors.blankNode;
@@ -178,7 +181,7 @@ function getNodeColor(node, triples, themeColors) {
178
181
  return themeColors.uri;
179
182
  }
180
183
 
181
- // src/transformers.js
184
+ // src/transformers.ts
182
185
  function createNodeMap(triples, prefixMap, themeColors) {
183
186
  const nodeMap = /* @__PURE__ */ new Map();
184
187
  let nodeId = 1;
@@ -200,7 +203,9 @@ function createNodeMap(triples, prefixMap, themeColors) {
200
203
  if (!nodeMap.has(objValue)) {
201
204
  const isLiteral = triple.object.type === "literal";
202
205
  const isBlankNode = !isLiteral && objValue.startsWith("_:");
203
- let label, fullValue, title;
206
+ let label;
207
+ let fullValue;
208
+ let title;
204
209
  if (isLiteral) {
205
210
  label = truncateLabel(objValue);
206
211
  fullValue = objValue;
@@ -237,8 +242,7 @@ function createEdgesArray(triples, nodeMap, prefixMap) {
237
242
  triples.forEach((triple) => {
238
243
  const fromNode = nodeMap.get(triple.subject);
239
244
  const toNode = nodeMap.get(triple.object.value);
240
- if (!fromNode || !toNode)
241
- return;
245
+ if (!fromNode || !toNode) return;
242
246
  const edgeKey = `${fromNode.id}-${triple.predicate}-${toNode.id}`;
243
247
  if (!edgeSet.has(edgeKey)) {
244
248
  edgeSet.add(edgeKey);
@@ -274,9 +278,9 @@ var global$n = (
274
278
  // eslint-disable-next-line es/no-global-this -- safe
275
279
  check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
276
280
  check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
277
- /* @__PURE__ */ function() {
281
+ /* @__PURE__ */ (function() {
278
282
  return this;
279
- }() || commonjsGlobal || Function("return this")()
283
+ })() || commonjsGlobal || Function("return this")()
280
284
  );
281
285
  var fails$v = function(exec2) {
282
286
  try {
@@ -287,8 +291,8 @@ var fails$v = function(exec2) {
287
291
  };
288
292
  var fails$u = fails$v;
289
293
  var functionBindNative = !fails$u(function() {
290
- var test2 = function() {
291
- }.bind();
294
+ var test2 = (function() {
295
+ }).bind();
292
296
  return typeof test2 != "function" || test2.hasOwnProperty("prototype");
293
297
  });
294
298
  var NATIVE_BIND$4 = functionBindNative;
@@ -316,8 +320,7 @@ var classofRaw$2 = function(it2) {
316
320
  var classofRaw$1 = classofRaw$2;
317
321
  var uncurryThis$w = functionUncurryThis;
318
322
  var functionUncurryThisClause = function(fn) {
319
- if (classofRaw$1(fn) === "Function")
320
- return uncurryThis$w(fn);
323
+ if (classofRaw$1(fn) === "Function") return uncurryThis$w(fn);
321
324
  };
322
325
  var documentAll$2 = typeof document == "object" && document.all;
323
326
  var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
@@ -376,8 +379,7 @@ var isNullOrUndefined$6 = function(it2) {
376
379
  var isNullOrUndefined$5 = isNullOrUndefined$6;
377
380
  var $TypeError$e = TypeError;
378
381
  var requireObjectCoercible$5 = function(it2) {
379
- if (isNullOrUndefined$5(it2))
380
- throw new $TypeError$e("Can't call method on " + it2);
382
+ if (isNullOrUndefined$5(it2)) throw new $TypeError$e("Can't call method on " + it2);
381
383
  return it2;
382
384
  };
383
385
  var IndexedObject$3 = indexedObject;
@@ -422,8 +424,7 @@ if (!version && userAgent$2) {
422
424
  match = userAgent$2.match(/Edge\/(\d+)/);
423
425
  if (!match || match[1] >= 74) {
424
426
  match = userAgent$2.match(/Chrome\/(\d+)/);
425
- if (match)
426
- version = +match[1];
427
+ if (match) version = +match[1];
427
428
  }
428
429
  }
429
430
  var engineV8Version = version;
@@ -432,7 +433,7 @@ var fails$r = fails$v;
432
433
  var global$k = global$n;
433
434
  var $String$4 = global$k.String;
434
435
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$r(function() {
435
- var symbol2 = Symbol("symbol detection");
436
+ var symbol2 = /* @__PURE__ */ Symbol("symbol detection");
436
437
  return !$String$4(symbol2) || !(Object(symbol2) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
437
438
  !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
438
439
  });
@@ -461,8 +462,7 @@ var isCallable$d = isCallable$h;
461
462
  var tryToString$4 = tryToString$5;
462
463
  var $TypeError$d = TypeError;
463
464
  var aCallable$7 = function(argument) {
464
- if (isCallable$d(argument))
465
- return argument;
465
+ if (isCallable$d(argument)) return argument;
466
466
  throw new $TypeError$d(tryToString$4(argument) + " is not a function");
467
467
  };
468
468
  var aCallable$6 = aCallable$7;
@@ -477,12 +477,9 @@ var isObject$g = isObject$h;
477
477
  var $TypeError$c = TypeError;
478
478
  var ordinaryToPrimitive$1 = function(input, pref) {
479
479
  var fn, val;
480
- if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
481
- return val;
482
- if (isCallable$c(fn = input.valueOf) && !isObject$g(val = call$a(fn, input)))
483
- return val;
484
- if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
485
- return val;
480
+ if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
481
+ if (isCallable$c(fn = input.valueOf) && !isObject$g(val = call$a(fn, input))) return val;
482
+ if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
486
483
  throw new $TypeError$c("Can't convert object to primitive value");
487
484
  };
488
485
  var shared$7 = { exports: {} };
@@ -554,20 +551,16 @@ var wellKnownSymbol$k = wellKnownSymbol$l;
554
551
  var $TypeError$b = TypeError;
555
552
  var TO_PRIMITIVE = wellKnownSymbol$k("toPrimitive");
556
553
  var toPrimitive$6 = function(input, pref) {
557
- if (!isObject$f(input) || isSymbol$4(input))
558
- return input;
554
+ if (!isObject$f(input) || isSymbol$4(input)) return input;
559
555
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
560
556
  var result;
561
557
  if (exoticToPrim) {
562
- if (pref === void 0)
563
- pref = "default";
558
+ if (pref === void 0) pref = "default";
564
559
  result = call$9(exoticToPrim, input, pref);
565
- if (!isObject$f(result) || isSymbol$4(result))
566
- return result;
560
+ if (!isObject$f(result) || isSymbol$4(result)) return result;
567
561
  throw new $TypeError$b("Can't convert object to primitive value");
568
562
  }
569
- if (pref === void 0)
570
- pref = "number";
563
+ if (pref === void 0) pref = "number";
571
564
  return ordinaryToPrimitive(input, pref);
572
565
  };
573
566
  var toPrimitive$5 = toPrimitive$6;
@@ -605,13 +598,11 @@ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
605
598
  objectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
606
599
  O = toIndexedObject$a(O);
607
600
  P = toPropertyKey$3(P);
608
- if (IE8_DOM_DEFINE$1)
609
- try {
610
- return $getOwnPropertyDescriptor$2(O, P);
611
- } catch (error) {
612
- }
613
- if (hasOwn$h(O, P))
614
- return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
601
+ if (IE8_DOM_DEFINE$1) try {
602
+ return $getOwnPropertyDescriptor$2(O, P);
603
+ } catch (error) {
604
+ }
605
+ if (hasOwn$h(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
615
606
  };
616
607
  var fails$p = fails$v;
617
608
  var isCallable$b = isCallable$h;
@@ -651,8 +642,7 @@ var isObject$d = isObject$h;
651
642
  var $String$2 = String;
652
643
  var $TypeError$a = TypeError;
653
644
  var anObject$9 = function(argument) {
654
- if (isObject$d(argument))
655
- return argument;
645
+ if (isObject$d(argument)) return argument;
656
646
  throw new $TypeError$a($String$2(argument) + " is not an object");
657
647
  };
658
648
  var DESCRIPTORS$f = descriptors;
@@ -686,15 +676,12 @@ objectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
686
676
  anObject$8(O);
687
677
  P = toPropertyKey$2(P);
688
678
  anObject$8(Attributes);
689
- if (IE8_DOM_DEFINE)
690
- try {
691
- return $defineProperty$1(O, P, Attributes);
692
- } catch (error) {
693
- }
694
- if ("get" in Attributes || "set" in Attributes)
695
- throw new $TypeError$9("Accessors not supported");
696
- if ("value" in Attributes)
697
- O[P] = Attributes.value;
679
+ if (IE8_DOM_DEFINE) try {
680
+ return $defineProperty$1(O, P, Attributes);
681
+ } catch (error) {
682
+ }
683
+ if ("get" in Attributes || "set" in Attributes) throw new $TypeError$9("Accessors not supported");
684
+ if ("value" in Attributes) O[P] = Attributes.value;
698
685
  return O;
699
686
  };
700
687
  var DESCRIPTORS$e = descriptors;
@@ -748,23 +735,16 @@ var _export = function(options, source) {
748
735
  FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
749
736
  USE_NATIVE = !FORCED2 && nativeSource && hasOwn$g(nativeSource, key);
750
737
  targetProperty = target[key];
751
- if (USE_NATIVE)
752
- if (options.dontCallGetSet) {
753
- descriptor = getOwnPropertyDescriptor$5(nativeSource, key);
754
- nativeProperty = descriptor && descriptor.value;
755
- } else
756
- nativeProperty = nativeSource[key];
738
+ if (USE_NATIVE) if (options.dontCallGetSet) {
739
+ descriptor = getOwnPropertyDescriptor$5(nativeSource, key);
740
+ nativeProperty = descriptor && descriptor.value;
741
+ } else nativeProperty = nativeSource[key];
757
742
  sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
758
- if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
759
- continue;
760
- if (options.bind && USE_NATIVE)
761
- resultProperty = bind$9(sourceProperty, global$f);
762
- else if (options.wrap && USE_NATIVE)
763
- resultProperty = wrapConstructor(sourceProperty);
764
- else if (PROTO && isCallable$a(sourceProperty))
765
- resultProperty = uncurryThis$q(sourceProperty);
766
- else
767
- resultProperty = sourceProperty;
743
+ if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
744
+ if (options.bind && USE_NATIVE) resultProperty = bind$9(sourceProperty, global$f);
745
+ else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
746
+ else if (PROTO && isCallable$a(sourceProperty)) resultProperty = uncurryThis$q(sourceProperty);
747
+ else resultProperty = sourceProperty;
768
748
  if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
769
749
  createNonEnumerableProperty$5(resultProperty, "sham", true);
770
750
  }
@@ -817,17 +797,13 @@ var createMethod$5 = function(IS_INCLUDES) {
817
797
  var length2 = lengthOfArrayLike$b(O);
818
798
  var index = toAbsoluteIndex$4(fromIndex, length2);
819
799
  var value;
820
- if (IS_INCLUDES && el !== el)
821
- while (length2 > index) {
822
- value = O[index++];
823
- if (value !== value)
824
- return true;
825
- }
826
- else
827
- for (; length2 > index; index++) {
828
- if ((IS_INCLUDES || index in O) && O[index] === el)
829
- return IS_INCLUDES || index || 0;
830
- }
800
+ if (IS_INCLUDES && el !== el) while (length2 > index) {
801
+ value = O[index++];
802
+ if (value !== value) return true;
803
+ }
804
+ else for (; length2 > index; index++) {
805
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
806
+ }
831
807
  return !IS_INCLUDES && -1;
832
808
  };
833
809
  };
@@ -851,12 +827,10 @@ var objectKeysInternal = function(object2, names) {
851
827
  var i = 0;
852
828
  var result = [];
853
829
  var key;
854
- for (key in O)
855
- !hasOwn$f(hiddenKeys$5, key) && hasOwn$f(O, key) && push$5(result, key);
856
- while (names.length > i)
857
- if (hasOwn$f(O, key = names[i++])) {
858
- ~indexOf$4(result, key) || push$5(result, key);
859
- }
830
+ for (key in O) !hasOwn$f(hiddenKeys$5, key) && hasOwn$f(O, key) && push$5(result, key);
831
+ while (names.length > i) if (hasOwn$f(O, key = names[i++])) {
832
+ ~indexOf$4(result, key) || push$5(result, key);
833
+ }
860
834
  return result;
861
835
  };
862
836
  var enumBugKeys$3 = [
@@ -896,11 +870,10 @@ var objectAssign = !$assign || fails$n(function() {
896
870
  enumerable: false
897
871
  });
898
872
  }
899
- }), { b: 2 })).b !== 1)
900
- return true;
873
+ }), { b: 2 })).b !== 1) return true;
901
874
  var A = {};
902
875
  var B = {};
903
- var symbol2 = Symbol("assign detection");
876
+ var symbol2 = /* @__PURE__ */ Symbol("assign detection");
904
877
  var alphabet = "abcdefghijklmnopqrst";
905
878
  A[symbol2] = 7;
906
879
  alphabet.split("").forEach(function(chr) {
@@ -921,8 +894,7 @@ var objectAssign = !$assign || fails$n(function() {
921
894
  var key;
922
895
  while (length2 > j) {
923
896
  key = keys4[j++];
924
- if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key))
925
- T[key] = S[key];
897
+ if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key)) T[key] = S[key];
926
898
  }
927
899
  }
928
900
  return T;
@@ -954,8 +926,7 @@ var construct$1 = function(C, argsLength, args) {
954
926
  if (!hasOwn$e(factories, argsLength)) {
955
927
  var list = [];
956
928
  var i = 0;
957
- for (; i < argsLength; i++)
958
- list[i] = "a[" + i + "]";
929
+ for (; i < argsLength; i++) list[i] = "a[" + i + "]";
959
930
  factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
960
931
  }
961
932
  return factories[argsLength](C, args);
@@ -968,8 +939,7 @@ var functionBind = NATIVE_BIND ? $Function.bind : function bind(that) {
968
939
  var args = concat$5(partArgs, arraySlice$4(arguments));
969
940
  return this instanceof boundFunction ? construct$1(F, args.length, args) : F.apply(that, args);
970
941
  };
971
- if (isObject$c(Prototype))
972
- boundFunction.prototype = Prototype;
942
+ if (isObject$c(Prototype)) boundFunction.prototype = Prototype;
973
943
  return boundFunction;
974
944
  };
975
945
  var $$L = _export;
@@ -1163,8 +1133,7 @@ function getShape(name) {
1163
1133
  }
1164
1134
  }
1165
1135
  function styleInject(css, ref) {
1166
- if (ref === void 0)
1167
- ref = {};
1136
+ if (ref === void 0) ref = {};
1168
1137
  var insertAt = ref.insertAt;
1169
1138
  if (!css || typeof document === "undefined") {
1170
1139
  return;
@@ -1791,8 +1760,7 @@ var componentEmitter = { exports: {} };
1791
1760
  module2.exports = Emitter2;
1792
1761
  }
1793
1762
  function Emitter2(obj) {
1794
- if (obj)
1795
- return mixin(obj);
1763
+ if (obj) return mixin(obj);
1796
1764
  }
1797
1765
  function mixin(obj) {
1798
1766
  for (var key in Emitter2.prototype) {
@@ -1821,8 +1789,7 @@ var componentEmitter = { exports: {} };
1821
1789
  return this;
1822
1790
  }
1823
1791
  var callbacks = this._callbacks["$" + event];
1824
- if (!callbacks)
1825
- return this;
1792
+ if (!callbacks) return this;
1826
1793
  if (1 == arguments.length) {
1827
1794
  delete this._callbacks["$" + event];
1828
1795
  return this;
@@ -1871,8 +1838,7 @@ var isArray$c = Array.isArray || function isArray(argument) {
1871
1838
  var $TypeError$8 = TypeError;
1872
1839
  var MAX_SAFE_INTEGER = 9007199254740991;
1873
1840
  var doesNotExceedSafeInteger$3 = function(it2) {
1874
- if (it2 > MAX_SAFE_INTEGER)
1875
- throw $TypeError$8("Maximum allowed index exceeded");
1841
+ if (it2 > MAX_SAFE_INTEGER) throw $TypeError$8("Maximum allowed index exceeded");
1876
1842
  return it2;
1877
1843
  };
1878
1844
  var toPropertyKey$1 = toPropertyKey$4;
@@ -1880,10 +1846,8 @@ var definePropertyModule$2 = objectDefineProperty;
1880
1846
  var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1881
1847
  var createProperty$5 = function(object2, key, value) {
1882
1848
  var propertyKey = toPropertyKey$1(key);
1883
- if (propertyKey in object2)
1884
- definePropertyModule$2.f(object2, propertyKey, createPropertyDescriptor$2(0, value));
1885
- else
1886
- object2[propertyKey] = value;
1849
+ if (propertyKey in object2) definePropertyModule$2.f(object2, propertyKey, createPropertyDescriptor$2(0, value));
1850
+ else object2[propertyKey] = value;
1887
1851
  };
1888
1852
  var wellKnownSymbol$j = wellKnownSymbol$l;
1889
1853
  var TO_STRING_TAG$3 = wellKnownSymbol$j("toStringTag");
@@ -1896,9 +1860,9 @@ var classofRaw = classofRaw$2;
1896
1860
  var wellKnownSymbol$i = wellKnownSymbol$l;
1897
1861
  var TO_STRING_TAG$2 = wellKnownSymbol$i("toStringTag");
1898
1862
  var $Object$2 = Object;
1899
- var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() {
1863
+ var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ (function() {
1900
1864
  return arguments;
1901
- }()) === "Arguments";
1865
+ })()) === "Arguments";
1902
1866
  var tryGet = function(it2, key) {
1903
1867
  try {
1904
1868
  return it2[key];
@@ -1933,8 +1897,7 @@ var constructorRegExp = /^\s*(?:class|function)\b/;
1933
1897
  var exec$2 = uncurryThis$k(constructorRegExp.exec);
1934
1898
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1935
1899
  var isConstructorModern = function isConstructor(argument) {
1936
- if (!isCallable$7(argument))
1937
- return false;
1900
+ if (!isCallable$7(argument)) return false;
1938
1901
  try {
1939
1902
  construct(noop, empty, argument);
1940
1903
  return true;
@@ -1943,8 +1906,7 @@ var isConstructorModern = function isConstructor(argument) {
1943
1906
  }
1944
1907
  };
1945
1908
  var isConstructorLegacy = function isConstructor2(argument) {
1946
- if (!isCallable$7(argument))
1947
- return false;
1909
+ if (!isCallable$7(argument)) return false;
1948
1910
  switch (classof$d(argument)) {
1949
1911
  case "AsyncFunction":
1950
1912
  case "GeneratorFunction":
@@ -1974,12 +1936,10 @@ var arraySpeciesConstructor$1 = function(originalArray) {
1974
1936
  var C;
1975
1937
  if (isArray$b(originalArray)) {
1976
1938
  C = originalArray.constructor;
1977
- if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype)))
1978
- C = void 0;
1939
+ if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype))) C = void 0;
1979
1940
  else if (isObject$b(C)) {
1980
1941
  C = C[SPECIES$3];
1981
- if (C === null)
1982
- C = void 0;
1942
+ if (C === null) C = void 0;
1983
1943
  }
1984
1944
  }
1985
1945
  return C === void 0 ? $Array$2 : C;
@@ -2021,8 +1981,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$k(function() {
2021
1981
  return array2.concat()[0] !== array2;
2022
1982
  });
2023
1983
  var isConcatSpreadable = function(O) {
2024
- if (!isObject$a(O))
2025
- return false;
1984
+ if (!isObject$a(O)) return false;
2026
1985
  var spreadable = O[IS_CONCAT_SPREADABLE];
2027
1986
  return spreadable !== void 0 ? !!spreadable : isArray$a(O);
2028
1987
  };
@@ -2039,9 +1998,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
2039
1998
  if (isConcatSpreadable(E)) {
2040
1999
  len = lengthOfArrayLike$a(E);
2041
2000
  doesNotExceedSafeInteger$2(n + len);
2042
- for (k = 0; k < len; k++, n++)
2043
- if (k in E)
2044
- createProperty$4(A, n, E[k]);
2001
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty$4(A, n, E[k]);
2045
2002
  } else {
2046
2003
  doesNotExceedSafeInteger$2(n + 1);
2047
2004
  createProperty$4(A, n++, E);
@@ -2054,8 +2011,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
2054
2011
  var classof$c = classof$e;
2055
2012
  var $String$1 = String;
2056
2013
  var toString$a = function(argument) {
2057
- if (classof$c(argument) === "Symbol")
2058
- throw new TypeError("Cannot convert a Symbol value to a string");
2014
+ if (classof$c(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
2059
2015
  return $String$1(argument);
2060
2016
  };
2061
2017
  var objectDefineProperties = {};
@@ -2072,8 +2028,7 @@ objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
2072
2028
  var length2 = keys4.length;
2073
2029
  var index = 0;
2074
2030
  var key;
2075
- while (length2 > index)
2076
- definePropertyModule$1.f(O, key = keys4[index++], props[key]);
2031
+ while (length2 > index) definePropertyModule$1.f(O, key = keys4[index++], props[key]);
2077
2032
  return O;
2078
2033
  };
2079
2034
  var getBuiltIn$8 = getBuiltIn$b;
@@ -2129,8 +2084,7 @@ var NullProtoObject = function() {
2129
2084
  }
2130
2085
  NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
2131
2086
  var length2 = enumBugKeys$1.length;
2132
- while (length2--)
2133
- delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
2087
+ while (length2--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
2134
2088
  return NullProtoObject();
2135
2089
  };
2136
2090
  hiddenKeys$4[IE_PROTO$1] = true;
@@ -2141,8 +2095,7 @@ var objectCreate = Object.create || function create(O, Properties) {
2141
2095
  result = new EmptyConstructor();
2142
2096
  EmptyConstructor[PROTOTYPE$1] = null;
2143
2097
  result[IE_PROTO$1] = O;
2144
- } else
2145
- result = NullProtoObject();
2098
+ } else result = NullProtoObject();
2146
2099
  return Properties === void 0 ? result : definePropertiesModule$1.f(result, Properties);
2147
2100
  };
2148
2101
  var objectGetOwnPropertyNames = {};
@@ -2164,8 +2117,7 @@ var arraySliceSimple = function(O, start, end) {
2164
2117
  var fin = toAbsoluteIndex$3(end === void 0 ? length2 : end, length2);
2165
2118
  var result = $Array$1(max$2(fin - k, 0));
2166
2119
  var n = 0;
2167
- for (; k < fin; k++, n++)
2168
- createProperty$3(result, n, O[k]);
2120
+ for (; k < fin; k++, n++) createProperty$3(result, n, O[k]);
2169
2121
  result.length = n;
2170
2122
  return result;
2171
2123
  };
@@ -2186,10 +2138,8 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames2(it2) {
2186
2138
  };
2187
2139
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
2188
2140
  var defineBuiltIn$5 = function(target, key, value, options) {
2189
- if (options && options.enumerable)
2190
- target[key] = value;
2191
- else
2192
- createNonEnumerableProperty$4(target, key, value);
2141
+ if (options && options.enumerable) target[key] = value;
2142
+ else createNonEnumerableProperty$4(target, key, value);
2193
2143
  return target;
2194
2144
  };
2195
2145
  var defineProperty$d = objectDefineProperty;
@@ -2205,10 +2155,9 @@ var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
2205
2155
  var defineProperty$c = objectDefineProperty.f;
2206
2156
  var wellKnownSymbolDefine = function(NAME) {
2207
2157
  var Symbol2 = path$p.Symbol || (path$p.Symbol = {});
2208
- if (!hasOwn$d(Symbol2, NAME))
2209
- defineProperty$c(Symbol2, NAME, {
2210
- value: wrappedWellKnownSymbolModule$1.f(NAME)
2211
- });
2158
+ if (!hasOwn$d(Symbol2, NAME)) defineProperty$c(Symbol2, NAME, {
2159
+ value: wrappedWellKnownSymbolModule$1.f(NAME)
2160
+ });
2212
2161
  };
2213
2162
  var call$6 = functionCall;
2214
2163
  var getBuiltIn$7 = getBuiltIn$b;
@@ -2284,8 +2233,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
2284
2233
  store.has = store.has;
2285
2234
  store.set = store.set;
2286
2235
  set$3 = function(it2, metadata) {
2287
- if (store.has(it2))
2288
- throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
2236
+ if (store.has(it2)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
2289
2237
  metadata.facade = it2;
2290
2238
  store.set(it2, metadata);
2291
2239
  return metadata;
@@ -2300,8 +2248,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
2300
2248
  STATE = sharedKey$2("state");
2301
2249
  hiddenKeys$2[STATE] = true;
2302
2250
  set$3 = function(it2, metadata) {
2303
- if (hasOwn$b(it2, STATE))
2304
- throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
2251
+ if (hasOwn$b(it2, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
2305
2252
  metadata.facade = it2;
2306
2253
  createNonEnumerableProperty$2(it2, STATE, metadata);
2307
2254
  return metadata;
@@ -2346,33 +2293,33 @@ var createMethod$4 = function(TYPE) {
2346
2293
  var create5 = specificCreate || arraySpeciesCreate$2;
2347
2294
  var target = IS_MAP ? create5($this, length2) : IS_FILTER || IS_FILTER_REJECT ? create5($this, 0) : void 0;
2348
2295
  var value, result;
2349
- for (; length2 > index; index++)
2350
- if (NO_HOLES || index in self2) {
2351
- value = self2[index];
2352
- result = boundFunction(value, index, O);
2353
- if (TYPE) {
2354
- if (IS_MAP)
2355
- target[index] = result;
2356
- else if (result)
2357
- switch (TYPE) {
2358
- case 3:
2359
- return true;
2360
- case 5:
2361
- return value;
2362
- case 6:
2363
- return index;
2364
- case 2:
2365
- push$4(target, value);
2366
- }
2367
- else
2368
- switch (TYPE) {
2369
- case 4:
2370
- return false;
2371
- case 7:
2372
- push$4(target, value);
2373
- }
2296
+ for (; length2 > index; index++) if (NO_HOLES || index in self2) {
2297
+ value = self2[index];
2298
+ result = boundFunction(value, index, O);
2299
+ if (TYPE) {
2300
+ if (IS_MAP) target[index] = result;
2301
+ else if (result) switch (TYPE) {
2302
+ case 3:
2303
+ return true;
2304
+ // some
2305
+ case 5:
2306
+ return value;
2307
+ // find
2308
+ case 6:
2309
+ return index;
2310
+ // findIndex
2311
+ case 2:
2312
+ push$4(target, value);
2313
+ }
2314
+ else switch (TYPE) {
2315
+ case 4:
2316
+ return false;
2317
+ // every
2318
+ case 7:
2319
+ push$4(target, value);
2374
2320
  }
2375
2321
  }
2322
+ }
2376
2323
  return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2377
2324
  };
2378
2325
  };
@@ -2460,8 +2407,7 @@ var WellKnownSymbolsStore$1 = shared$3("wks");
2460
2407
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
2461
2408
  var fallbackDefineProperty = function(O, P, Attributes) {
2462
2409
  var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);
2463
- if (ObjectPrototypeDescriptor)
2464
- delete ObjectPrototype$1[P];
2410
+ if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];
2465
2411
  nativeDefineProperty(O, P, Attributes);
2466
2412
  if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {
2467
2413
  nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);
@@ -2481,24 +2427,20 @@ var wrap = function(tag, description) {
2481
2427
  tag,
2482
2428
  description
2483
2429
  });
2484
- if (!DESCRIPTORS$b)
2485
- symbol2.description = description;
2430
+ if (!DESCRIPTORS$b) symbol2.description = description;
2486
2431
  return symbol2;
2487
2432
  };
2488
2433
  var $defineProperty = function defineProperty3(O, P, Attributes) {
2489
- if (O === ObjectPrototype$1)
2490
- $defineProperty(ObjectPrototypeSymbols, P, Attributes);
2434
+ if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
2491
2435
  anObject$5(O);
2492
2436
  var key = toPropertyKey(P);
2493
2437
  anObject$5(Attributes);
2494
2438
  if (hasOwn$a(AllSymbols, key)) {
2495
2439
  if (!Attributes.enumerable) {
2496
- if (!hasOwn$a(O, HIDDEN))
2497
- nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
2440
+ if (!hasOwn$a(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
2498
2441
  O[HIDDEN][key] = true;
2499
2442
  } else {
2500
- if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key])
2501
- O[HIDDEN][key] = false;
2443
+ if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
2502
2444
  Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
2503
2445
  }
2504
2446
  return setSymbolDescriptor(O, key, Attributes);
@@ -2510,8 +2452,7 @@ var $defineProperties = function defineProperties2(O, Properties) {
2510
2452
  var properties = toIndexedObject$5(Properties);
2511
2453
  var keys4 = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
2512
2454
  $forEach$1(keys4, function(key) {
2513
- if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key))
2514
- $defineProperty(O, key, properties[key]);
2455
+ if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
2515
2456
  });
2516
2457
  return O;
2517
2458
  };
@@ -2521,15 +2462,13 @@ var $create = function create2(O, Properties) {
2521
2462
  var $propertyIsEnumerable$1 = function propertyIsEnumerable2(V) {
2522
2463
  var P = toPropertyKey(V);
2523
2464
  var enumerable = call$5(nativePropertyIsEnumerable, this, P);
2524
- if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P))
2525
- return false;
2465
+ if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P)) return false;
2526
2466
  return enumerable || !hasOwn$a(this, P) || !hasOwn$a(AllSymbols, P) || hasOwn$a(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
2527
2467
  };
2528
2468
  var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor2(O, P) {
2529
2469
  var it2 = toIndexedObject$5(O);
2530
2470
  var key = toPropertyKey(P);
2531
- if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key))
2532
- return;
2471
+ if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key)) return;
2533
2472
  var descriptor = nativeGetOwnPropertyDescriptor$1(it2, key);
2534
2473
  if (descriptor && hasOwn$a(AllSymbols, key) && !(hasOwn$a(it2, HIDDEN) && it2[HIDDEN][key])) {
2535
2474
  descriptor.enumerable = true;
@@ -2540,8 +2479,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames3(O) {
2540
2479
  var names = nativeGetOwnPropertyNames(toIndexedObject$5(O));
2541
2480
  var result = [];
2542
2481
  $forEach$1(names, function(key) {
2543
- if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key))
2544
- push$3(result, key);
2482
+ if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key)) push$3(result, key);
2545
2483
  });
2546
2484
  return result;
2547
2485
  };
@@ -2558,26 +2496,21 @@ var $getOwnPropertySymbols = function(O) {
2558
2496
  };
2559
2497
  if (!NATIVE_SYMBOL$3) {
2560
2498
  $Symbol = function Symbol2() {
2561
- if (isPrototypeOf$k(SymbolPrototype, this))
2562
- throw new TypeError$1("Symbol is not a constructor");
2499
+ if (isPrototypeOf$k(SymbolPrototype, this)) throw new TypeError$1("Symbol is not a constructor");
2563
2500
  var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
2564
2501
  var tag = uid$1(description);
2565
2502
  var setter = function(value) {
2566
- if (this === ObjectPrototype$1)
2567
- call$5(setter, ObjectPrototypeSymbols, value);
2568
- if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag))
2569
- this[HIDDEN][tag] = false;
2503
+ if (this === ObjectPrototype$1) call$5(setter, ObjectPrototypeSymbols, value);
2504
+ if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
2570
2505
  var descriptor = createPropertyDescriptor$1(1, value);
2571
2506
  try {
2572
2507
  setSymbolDescriptor(this, tag, descriptor);
2573
2508
  } catch (error) {
2574
- if (!(error instanceof RangeError$1))
2575
- throw error;
2509
+ if (!(error instanceof RangeError$1)) throw error;
2576
2510
  fallbackDefineProperty(this, tag, descriptor);
2577
2511
  }
2578
2512
  };
2579
- if (DESCRIPTORS$b && USE_SETTER)
2580
- setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
2513
+ if (DESCRIPTORS$b && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
2581
2514
  return wrap(tag, description);
2582
2515
  };
2583
2516
  SymbolPrototype = $Symbol[PROTOTYPE];
@@ -2654,8 +2587,7 @@ var SymbolToStringRegistry$1 = shared$2("symbol-to-string-registry");
2654
2587
  $$I({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
2655
2588
  "for": function(key) {
2656
2589
  var string2 = toString$8(key);
2657
- if (hasOwn$9(StringToSymbolRegistry, string2))
2658
- return StringToSymbolRegistry[string2];
2590
+ if (hasOwn$9(StringToSymbolRegistry, string2)) return StringToSymbolRegistry[string2];
2659
2591
  var symbol2 = getBuiltIn$6("Symbol")(string2);
2660
2592
  StringToSymbolRegistry[string2] = symbol2;
2661
2593
  SymbolToStringRegistry$1[symbol2] = string2;
@@ -2671,10 +2603,8 @@ var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
2671
2603
  var SymbolToStringRegistry = shared$1("symbol-to-string-registry");
2672
2604
  $$H({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
2673
2605
  keyFor: function keyFor(sym) {
2674
- if (!isSymbol$2(sym))
2675
- throw new TypeError(tryToString$3(sym) + " is not a symbol");
2676
- if (hasOwn$8(SymbolToStringRegistry, sym))
2677
- return SymbolToStringRegistry[sym];
2606
+ if (!isSymbol$2(sym)) throw new TypeError(tryToString$3(sym) + " is not a symbol");
2607
+ if (hasOwn$8(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
2678
2608
  }
2679
2609
  });
2680
2610
  var uncurryThis$h = functionUncurryThis;
@@ -2684,18 +2614,14 @@ var classof$9 = classofRaw$2;
2684
2614
  var toString$7 = toString$a;
2685
2615
  var push$2 = uncurryThis$h([].push);
2686
2616
  var getJsonReplacerFunction = function(replacer) {
2687
- if (isCallable$5(replacer))
2688
- return replacer;
2689
- if (!isArray$9(replacer))
2690
- return;
2617
+ if (isCallable$5(replacer)) return replacer;
2618
+ if (!isArray$9(replacer)) return;
2691
2619
  var rawLength = replacer.length;
2692
2620
  var keys4 = [];
2693
2621
  for (var i = 0; i < rawLength; i++) {
2694
2622
  var element = replacer[i];
2695
- if (typeof element == "string")
2696
- push$2(keys4, element);
2697
- else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String")
2698
- push$2(keys4, toString$7(element));
2623
+ if (typeof element == "string") push$2(keys4, element);
2624
+ else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String") push$2(keys4, toString$7(element));
2699
2625
  }
2700
2626
  var keysLength = keys4.length;
2701
2627
  var root = true;
@@ -2704,11 +2630,8 @@ var getJsonReplacerFunction = function(replacer) {
2704
2630
  root = false;
2705
2631
  return value;
2706
2632
  }
2707
- if (isArray$9(this))
2708
- return value;
2709
- for (var j = 0; j < keysLength; j++)
2710
- if (keys4[j] === key)
2711
- return value;
2633
+ if (isArray$9(this)) return value;
2634
+ for (var j = 0; j < keysLength; j++) if (keys4[j] === key) return value;
2712
2635
  };
2713
2636
  };
2714
2637
  var $$G = _export;
@@ -2742,13 +2665,10 @@ var ILL_FORMED_UNICODE = fails$i(function() {
2742
2665
  var stringifyWithSymbolsFix = function(it2, replacer) {
2743
2666
  var args = arraySlice$2(arguments);
2744
2667
  var $replacer = getReplacerFunction(replacer);
2745
- if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2)))
2746
- return;
2668
+ if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2))) return;
2747
2669
  args[1] = function(key, value) {
2748
- if (isCallable$4($replacer))
2749
- value = call$4($replacer, this, $String(key), value);
2750
- if (!isSymbol$1(value))
2751
- return value;
2670
+ if (isCallable$4($replacer)) value = call$4($replacer, this, $String(key), value);
2671
+ if (!isSymbol$1(value)) return value;
2752
2672
  };
2753
2673
  return apply$2($stringify, null, args);
2754
2674
  };
@@ -2826,8 +2746,8 @@ var hasOwn$7 = hasOwnProperty_1;
2826
2746
  var FunctionPrototype$1 = Function.prototype;
2827
2747
  var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
2828
2748
  var EXISTS = hasOwn$7(FunctionPrototype$1, "name");
2829
- var PROPER = EXISTS && function something() {
2830
- }.name === "something";
2749
+ var PROPER = EXISTS && (function something() {
2750
+ }).name === "something";
2831
2751
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, "name").configurable);
2832
2752
  var functionName = {
2833
2753
  EXISTS,
@@ -2851,8 +2771,7 @@ var $Object$1 = Object;
2851
2771
  var ObjectPrototype = $Object$1.prototype;
2852
2772
  var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function(O) {
2853
2773
  var object2 = toObject$7(O);
2854
- if (hasOwn$6(object2, IE_PROTO))
2855
- return object2[IE_PROTO];
2774
+ if (hasOwn$6(object2, IE_PROTO)) return object2[IE_PROTO];
2856
2775
  var constructor = object2.constructor;
2857
2776
  if (isCallable$3(constructor) && object2 instanceof constructor) {
2858
2777
  return constructor.prototype;
@@ -2873,22 +2792,18 @@ var PrototypeOfArrayIteratorPrototype;
2873
2792
  var arrayIterator;
2874
2793
  if ([].keys) {
2875
2794
  arrayIterator = [].keys();
2876
- if (!("next" in arrayIterator))
2877
- BUGGY_SAFARI_ITERATORS$1 = true;
2795
+ if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
2878
2796
  else {
2879
2797
  PrototypeOfArrayIteratorPrototype = getPrototypeOf$4(getPrototypeOf$4(arrayIterator));
2880
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
2881
- IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
2798
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
2882
2799
  }
2883
2800
  }
2884
2801
  var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$1) || fails$f(function() {
2885
2802
  var test2 = {};
2886
2803
  return IteratorPrototype$1[ITERATOR$5].call(test2) !== test2;
2887
2804
  });
2888
- if (NEW_ITERATOR_PROTOTYPE)
2889
- IteratorPrototype$1 = {};
2890
- else
2891
- IteratorPrototype$1 = create$6(IteratorPrototype$1);
2805
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
2806
+ else IteratorPrototype$1 = create$6(IteratorPrototype$1);
2892
2807
  if (!isCallable$2(IteratorPrototype$1[ITERATOR$5])) {
2893
2808
  defineBuiltIn$2(IteratorPrototype$1, ITERATOR$5, function() {
2894
2809
  return this;
@@ -2937,10 +2852,8 @@ var returnThis = function() {
2937
2852
  var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAULT, IS_SET, FORCED2) {
2938
2853
  createIteratorConstructor(IteratorConstructor, NAME, next3);
2939
2854
  var getIterationMethod = function(KIND) {
2940
- if (KIND === DEFAULT && defaultIterator)
2941
- return defaultIterator;
2942
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
2943
- return IterablePrototype[KIND];
2855
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2856
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
2944
2857
  switch (KIND) {
2945
2858
  case KEYS:
2946
2859
  return function keys4() {
@@ -2987,14 +2900,12 @@ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAUL
2987
2900
  keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2988
2901
  entries: getIterationMethod(ENTRIES)
2989
2902
  };
2990
- if (FORCED2)
2991
- for (KEY in methods) {
2992
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2993
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
2994
- }
2903
+ if (FORCED2) for (KEY in methods) {
2904
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2905
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
2995
2906
  }
2996
- else
2997
- $$E({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2907
+ }
2908
+ else $$E({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2998
2909
  }
2999
2910
  if (FORCED2 && IterablePrototype[ITERATOR$4] !== defaultIterator) {
3000
2911
  defineBuiltIn$1(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
@@ -3125,17 +3036,14 @@ $$D({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
3125
3036
  Constructor = void 0;
3126
3037
  } else if (isObject$7(Constructor)) {
3127
3038
  Constructor = Constructor[SPECIES$1];
3128
- if (Constructor === null)
3129
- Constructor = void 0;
3039
+ if (Constructor === null) Constructor = void 0;
3130
3040
  }
3131
3041
  if (Constructor === $Array || Constructor === void 0) {
3132
3042
  return nativeSlice(O, k, fin);
3133
3043
  }
3134
3044
  }
3135
3045
  result = new (Constructor === void 0 ? $Array : Constructor)(max$1(fin - k, 0));
3136
- for (n = 0; k < fin; k++, n++)
3137
- if (k in O)
3138
- createProperty$2(result, n, O[k]);
3046
+ for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
3139
3047
  result.length = n;
3140
3048
  return result;
3141
3049
  }
@@ -3287,8 +3195,7 @@ var nativeReverse = uncurryThis$d([].reverse);
3287
3195
  var test$1 = [1, 2];
3288
3196
  $$w({ target: "Array", proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
3289
3197
  reverse: function reverse() {
3290
- if (isArray$3(this))
3291
- this.length = this.length;
3198
+ if (isArray$3(this)) this.length = this.length;
3292
3199
  return nativeReverse(this);
3293
3200
  }
3294
3201
  });
@@ -3309,15 +3216,14 @@ var DESCRIPTORS$9 = descriptors;
3309
3216
  var isArray$2 = isArray$c;
3310
3217
  var $TypeError$7 = TypeError;
3311
3218
  var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
3312
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !function() {
3313
- if (this !== void 0)
3314
- return true;
3219
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !(function() {
3220
+ if (this !== void 0) return true;
3315
3221
  try {
3316
3222
  Object.defineProperty([], "length", { writable: false }).length = 1;
3317
3223
  } catch (error) {
3318
3224
  return error instanceof TypeError;
3319
3225
  }
3320
- }();
3226
+ })();
3321
3227
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
3322
3228
  if (isArray$2(O) && !getOwnPropertyDescriptor$4(O, "length").writable) {
3323
3229
  throw new $TypeError$7("Cannot set read only .length");
@@ -3329,8 +3235,7 @@ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
3329
3235
  var tryToString$2 = tryToString$5;
3330
3236
  var $TypeError$6 = TypeError;
3331
3237
  var deletePropertyOrThrow$2 = function(O, P) {
3332
- if (!delete O[P])
3333
- throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
3238
+ if (!delete O[P]) throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
3334
3239
  };
3335
3240
  var $$v = _export;
3336
3241
  var toObject$5 = toObject$d;
@@ -3366,29 +3271,23 @@ $$v({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
3366
3271
  A = arraySpeciesCreate$1(O, actualDeleteCount);
3367
3272
  for (k = 0; k < actualDeleteCount; k++) {
3368
3273
  from = actualStart + k;
3369
- if (from in O)
3370
- createProperty$1(A, k, O[from]);
3274
+ if (from in O) createProperty$1(A, k, O[from]);
3371
3275
  }
3372
3276
  A.length = actualDeleteCount;
3373
3277
  if (insertCount < actualDeleteCount) {
3374
3278
  for (k = actualStart; k < len - actualDeleteCount; k++) {
3375
3279
  from = k + actualDeleteCount;
3376
3280
  to = k + insertCount;
3377
- if (from in O)
3378
- O[to] = O[from];
3379
- else
3380
- deletePropertyOrThrow$1(O, to);
3281
+ if (from in O) O[to] = O[from];
3282
+ else deletePropertyOrThrow$1(O, to);
3381
3283
  }
3382
- for (k = len; k > len - actualDeleteCount + insertCount; k--)
3383
- deletePropertyOrThrow$1(O, k - 1);
3284
+ for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);
3384
3285
  } else if (insertCount > actualDeleteCount) {
3385
3286
  for (k = len - actualDeleteCount; k > actualStart; k--) {
3386
3287
  from = k + actualDeleteCount - 1;
3387
3288
  to = k + insertCount - 1;
3388
- if (from in O)
3389
- O[to] = O[from];
3390
- else
3391
- deletePropertyOrThrow$1(O, to);
3289
+ if (from in O) O[to] = O[from];
3290
+ else deletePropertyOrThrow$1(O, to);
3392
3291
  }
3393
3292
  }
3394
3293
  for (k = 0; k < insertCount; k++) {
@@ -3480,8 +3379,7 @@ var ArrayPrototype$d = Array.prototype;
3480
3379
  var StringPrototype = String.prototype;
3481
3380
  var includes$2 = function(it2) {
3482
3381
  var own = it2.includes;
3483
- if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes)
3484
- return arrayMethod;
3382
+ if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes) return arrayMethod;
3485
3383
  if (typeof it2 == "string" || it2 === StringPrototype || isPrototypeOf$e(StringPrototype, it2) && own === StringPrototype.includes) {
3486
3384
  return stringMethod;
3487
3385
  }
@@ -3609,10 +3507,8 @@ var rtrim = RegExp("(^|[^" + whitespaces$2 + "])[" + whitespaces$2 + "]+$");
3609
3507
  var createMethod$2 = function(TYPE) {
3610
3508
  return function($this) {
3611
3509
  var string2 = toString$5(requireObjectCoercible$1($this));
3612
- if (TYPE & 1)
3613
- string2 = replace(string2, ltrim, "");
3614
- if (TYPE & 2)
3615
- string2 = replace(string2, rtrim, "$1");
3510
+ if (TYPE & 1) string2 = replace(string2, ltrim, "");
3511
+ if (TYPE & 2) string2 = replace(string2, rtrim, "$1");
3616
3512
  return string2;
3617
3513
  };
3618
3514
  };
@@ -3699,8 +3595,7 @@ var create$1 = create$2;
3699
3595
  var _Object$create = /* @__PURE__ */ getDefaultExportFromCjs(create$1);
3700
3596
  var path$f = path$u;
3701
3597
  var apply$1 = functionApply;
3702
- if (!path$f.JSON)
3703
- path$f.JSON = { stringify: JSON.stringify };
3598
+ if (!path$f.JSON) path$f.JSON = { stringify: JSON.stringify };
3704
3599
  var stringify$2 = function stringify(it2, replacer, space) {
3705
3600
  return apply$1(path$f.JSON.stringify, null, arguments);
3706
3601
  };
@@ -3711,8 +3606,7 @@ var _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify2);
3711
3606
  var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
3712
3607
  var $TypeError$4 = TypeError;
3713
3608
  var validateArgumentsLength$1 = function(passed, required) {
3714
- if (passed < required)
3715
- throw new $TypeError$4("Not enough arguments");
3609
+ if (passed < required) throw new $TypeError$4("Not enough arguments");
3716
3610
  return passed;
3717
3611
  };
3718
3612
  var global$8 = global$n;
@@ -3723,10 +3617,10 @@ var USER_AGENT = engineUserAgent;
3723
3617
  var arraySlice$1 = arraySlice$5;
3724
3618
  var validateArgumentsLength = validateArgumentsLength$1;
3725
3619
  var Function$1 = global$8.Function;
3726
- var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
3620
+ var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function() {
3727
3621
  var version2 = global$8.Bun.version.split(".");
3728
3622
  return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
3729
- }();
3623
+ })();
3730
3624
  var schedulersFix$2 = function(scheduler, hasTimeArg) {
3731
3625
  var firstParamIndex = hasTimeArg ? 2 : 1;
3732
3626
  return WRAP ? function(handler, timeout) {
@@ -3767,8 +3661,7 @@ var arrayFill = function fill(value) {
3767
3661
  var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length2);
3768
3662
  var end = argumentsLength > 2 ? arguments[2] : void 0;
3769
3663
  var endPos = end === void 0 ? length2 : toAbsoluteIndex(end, length2);
3770
- while (endPos > index)
3771
- O[index++] = value;
3664
+ while (endPos > index) O[index++] = value;
3772
3665
  return O;
3773
3666
  };
3774
3667
  var $$k = _export;
@@ -3954,7 +3847,7 @@ function cleanTouchActions(actions) {
3954
3847
  }
3955
3848
  return TOUCH_ACTION_AUTO;
3956
3849
  }
3957
- var TouchAction = /* @__PURE__ */ function() {
3850
+ var TouchAction = /* @__PURE__ */ (function() {
3958
3851
  function TouchAction2(manager, value) {
3959
3852
  this.manager = manager;
3960
3853
  this.set(value);
@@ -4012,7 +3905,7 @@ var TouchAction = /* @__PURE__ */ function() {
4012
3905
  srcEvent.preventDefault();
4013
3906
  };
4014
3907
  return TouchAction2;
4015
- }();
3908
+ })();
4016
3909
  function hasParent(node, parent2) {
4017
3910
  while (node) {
4018
3911
  if (node === parent2) {
@@ -4220,7 +4113,7 @@ function getWindowForElement(element) {
4220
4113
  var doc = element.ownerDocument || element;
4221
4114
  return doc.defaultView || doc.parentWindow || window;
4222
4115
  }
4223
- var Input = /* @__PURE__ */ function() {
4116
+ var Input = /* @__PURE__ */ (function() {
4224
4117
  function Input2(manager, callback) {
4225
4118
  var self2 = this;
4226
4119
  this.manager = manager;
@@ -4248,7 +4141,7 @@ var Input = /* @__PURE__ */ function() {
4248
4141
  this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
4249
4142
  };
4250
4143
  return Input2;
4251
- }();
4144
+ })();
4252
4145
  function inArray(src, find2, findByKey) {
4253
4146
  if (src.indexOf && !findByKey) {
4254
4147
  return src.indexOf(find2);
@@ -4283,7 +4176,7 @@ if (win.MSPointerEvent && !win.PointerEvent) {
4283
4176
  POINTER_ELEMENT_EVENTS = "MSPointerDown";
4284
4177
  POINTER_WINDOW_EVENTS = "MSPointerMove MSPointerUp MSPointerCancel";
4285
4178
  }
4286
- var PointerEventInput = /* @__PURE__ */ function(_Input) {
4179
+ var PointerEventInput = /* @__PURE__ */ (function(_Input) {
4287
4180
  _inheritsLoose(PointerEventInput2, _Input);
4288
4181
  function PointerEventInput2() {
4289
4182
  var _this;
@@ -4326,7 +4219,7 @@ var PointerEventInput = /* @__PURE__ */ function(_Input) {
4326
4219
  }
4327
4220
  };
4328
4221
  return PointerEventInput2;
4329
- }(Input);
4222
+ })(Input);
4330
4223
  function toArray(obj) {
4331
4224
  return Array.prototype.slice.call(obj, 0);
4332
4225
  }
@@ -4360,7 +4253,7 @@ var TOUCH_INPUT_MAP = {
4360
4253
  touchcancel: INPUT_CANCEL
4361
4254
  };
4362
4255
  var TOUCH_TARGET_EVENTS = "touchstart touchmove touchend touchcancel";
4363
- var TouchInput = /* @__PURE__ */ function(_Input) {
4256
+ var TouchInput = /* @__PURE__ */ (function(_Input) {
4364
4257
  _inheritsLoose(TouchInput2, _Input);
4365
4258
  function TouchInput2() {
4366
4259
  var _this;
@@ -4384,7 +4277,7 @@ var TouchInput = /* @__PURE__ */ function(_Input) {
4384
4277
  });
4385
4278
  };
4386
4279
  return TouchInput2;
4387
- }(Input);
4280
+ })(Input);
4388
4281
  function getTouches(ev, type) {
4389
4282
  var allTouches = toArray(ev.touches);
4390
4283
  var targetIds = this.targetIds;
@@ -4433,7 +4326,7 @@ var MOUSE_INPUT_MAP = {
4433
4326
  };
4434
4327
  var MOUSE_ELEMENT_EVENTS = "mousedown";
4435
4328
  var MOUSE_WINDOW_EVENTS = "mousemove mouseup";
4436
- var MouseInput = /* @__PURE__ */ function(_Input) {
4329
+ var MouseInput = /* @__PURE__ */ (function(_Input) {
4437
4330
  _inheritsLoose(MouseInput2, _Input);
4438
4331
  function MouseInput2() {
4439
4332
  var _this;
@@ -4467,7 +4360,7 @@ var MouseInput = /* @__PURE__ */ function(_Input) {
4467
4360
  });
4468
4361
  };
4469
4362
  return MouseInput2;
4470
- }(Input);
4363
+ })(Input);
4471
4364
  var DEDUP_TIMEOUT = 2500;
4472
4365
  var DEDUP_DISTANCE = 25;
4473
4366
  function setLastTouch(eventData) {
@@ -4509,8 +4402,8 @@ function isSyntheticEvent(eventData) {
4509
4402
  }
4510
4403
  return false;
4511
4404
  }
4512
- var TouchMouseInput = /* @__PURE__ */ function() {
4513
- var TouchMouseInput2 = /* @__PURE__ */ function(_Input) {
4405
+ var TouchMouseInput = /* @__PURE__ */ (function() {
4406
+ var TouchMouseInput2 = /* @__PURE__ */ (function(_Input) {
4514
4407
  _inheritsLoose(TouchMouseInput3, _Input);
4515
4408
  function TouchMouseInput3(_manager, callback) {
4516
4409
  var _this;
@@ -4540,9 +4433,9 @@ var TouchMouseInput = /* @__PURE__ */ function() {
4540
4433
  this.mouse.destroy();
4541
4434
  };
4542
4435
  return TouchMouseInput3;
4543
- }(Input);
4436
+ })(Input);
4544
4437
  return TouchMouseInput2;
4545
- }();
4438
+ })();
4546
4439
  function createInputInstance(manager) {
4547
4440
  var Type;
4548
4441
  var inputClass = manager.options.inputClass;
@@ -4596,7 +4489,7 @@ function stateStr(state) {
4596
4489
  }
4597
4490
  return "";
4598
4491
  }
4599
- var Recognizer = /* @__PURE__ */ function() {
4492
+ var Recognizer = /* @__PURE__ */ (function() {
4600
4493
  function Recognizer2(options) {
4601
4494
  if (options === void 0) {
4602
4495
  options = {};
@@ -4720,8 +4613,8 @@ var Recognizer = /* @__PURE__ */ function() {
4720
4613
  _proto.reset = function reset() {
4721
4614
  };
4722
4615
  return Recognizer2;
4723
- }();
4724
- var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
4616
+ })();
4617
+ var TapRecognizer = /* @__PURE__ */ (function(_Recognizer) {
4725
4618
  _inheritsLoose(TapRecognizer2, _Recognizer);
4726
4619
  function TapRecognizer2(options) {
4727
4620
  var _this;
@@ -4807,8 +4700,8 @@ var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
4807
4700
  }
4808
4701
  };
4809
4702
  return TapRecognizer2;
4810
- }(Recognizer);
4811
- var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
4703
+ })(Recognizer);
4704
+ var AttrRecognizer = /* @__PURE__ */ (function(_Recognizer) {
4812
4705
  _inheritsLoose(AttrRecognizer2, _Recognizer);
4813
4706
  function AttrRecognizer2(options) {
4814
4707
  if (options === void 0) {
@@ -4841,7 +4734,7 @@ var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
4841
4734
  return STATE_FAILED;
4842
4735
  };
4843
4736
  return AttrRecognizer2;
4844
- }(Recognizer);
4737
+ })(Recognizer);
4845
4738
  function directionStr(direction) {
4846
4739
  if (direction === DIRECTION_DOWN) {
4847
4740
  return "down";
@@ -4854,7 +4747,7 @@ function directionStr(direction) {
4854
4747
  }
4855
4748
  return "";
4856
4749
  }
4857
- var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4750
+ var PanRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
4858
4751
  _inheritsLoose(PanRecognizer2, _AttrRecognizer);
4859
4752
  function PanRecognizer2(options) {
4860
4753
  var _this;
@@ -4918,8 +4811,8 @@ var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4918
4811
  _AttrRecognizer.prototype.emit.call(this, input);
4919
4812
  };
4920
4813
  return PanRecognizer2;
4921
- }(AttrRecognizer);
4922
- var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4814
+ })(AttrRecognizer);
4815
+ var SwipeRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
4923
4816
  _inheritsLoose(SwipeRecognizer2, _AttrRecognizer);
4924
4817
  function SwipeRecognizer2(options) {
4925
4818
  if (options === void 0) {
@@ -4957,8 +4850,8 @@ var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4957
4850
  this.manager.emit(this.options.event, input);
4958
4851
  };
4959
4852
  return SwipeRecognizer2;
4960
- }(AttrRecognizer);
4961
- var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4853
+ })(AttrRecognizer);
4854
+ var PinchRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
4962
4855
  _inheritsLoose(PinchRecognizer2, _AttrRecognizer);
4963
4856
  function PinchRecognizer2(options) {
4964
4857
  if (options === void 0) {
@@ -4985,8 +4878,8 @@ var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4985
4878
  _AttrRecognizer.prototype.emit.call(this, input);
4986
4879
  };
4987
4880
  return PinchRecognizer2;
4988
- }(AttrRecognizer);
4989
- var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
4881
+ })(AttrRecognizer);
4882
+ var RotateRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
4990
4883
  _inheritsLoose(RotateRecognizer2, _AttrRecognizer);
4991
4884
  function RotateRecognizer2(options) {
4992
4885
  if (options === void 0) {
@@ -5006,8 +4899,8 @@ var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
5006
4899
  return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
5007
4900
  };
5008
4901
  return RotateRecognizer2;
5009
- }(AttrRecognizer);
5010
- var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
4902
+ })(AttrRecognizer);
4903
+ var PressRecognizer = /* @__PURE__ */ (function(_Recognizer) {
5011
4904
  _inheritsLoose(PressRecognizer2, _Recognizer);
5012
4905
  function PressRecognizer2(options) {
5013
4906
  var _this;
@@ -5064,7 +4957,7 @@ var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
5064
4957
  }
5065
4958
  };
5066
4959
  return PressRecognizer2;
5067
- }(Recognizer);
4960
+ })(Recognizer);
5068
4961
  var defaults = {
5069
4962
  /**
5070
4963
  * @private
@@ -5197,7 +5090,7 @@ function triggerDomEvent(event, data2) {
5197
5090
  gestureEvent.gesture = data2;
5198
5091
  data2.target.dispatchEvent(gestureEvent);
5199
5092
  }
5200
- var Manager = /* @__PURE__ */ function() {
5093
+ var Manager = /* @__PURE__ */ (function() {
5201
5094
  function Manager2(element, options) {
5202
5095
  var _this = this;
5203
5096
  this.options = assign$1({}, defaults, options || {});
@@ -5353,7 +5246,7 @@ var Manager = /* @__PURE__ */ function() {
5353
5246
  this.element = null;
5354
5247
  };
5355
5248
  return Manager2;
5356
- }();
5249
+ })();
5357
5250
  var SINGLE_TOUCH_INPUT_MAP = {
5358
5251
  touchstart: INPUT_START,
5359
5252
  touchmove: INPUT_MOVE,
@@ -5362,7 +5255,7 @@ var SINGLE_TOUCH_INPUT_MAP = {
5362
5255
  };
5363
5256
  var SINGLE_TOUCH_TARGET_EVENTS = "touchstart";
5364
5257
  var SINGLE_TOUCH_WINDOW_EVENTS = "touchstart touchmove touchend touchcancel";
5365
- var SingleTouchInput = /* @__PURE__ */ function(_Input) {
5258
+ var SingleTouchInput = /* @__PURE__ */ (function(_Input) {
5366
5259
  _inheritsLoose(SingleTouchInput2, _Input);
5367
5260
  function SingleTouchInput2() {
5368
5261
  var _this;
@@ -5394,7 +5287,7 @@ var SingleTouchInput = /* @__PURE__ */ function(_Input) {
5394
5287
  });
5395
5288
  };
5396
5289
  return SingleTouchInput2;
5397
- }(Input);
5290
+ })(Input);
5398
5291
  function normalizeSingleTouches(ev, type) {
5399
5292
  var all = toArray(ev.touches);
5400
5293
  var changed = toArray(ev.changedTouches);
@@ -5444,7 +5337,7 @@ function bindFn(fn, context) {
5444
5337
  return fn.apply(context, arguments);
5445
5338
  };
5446
5339
  }
5447
- var Hammer$2 = /* @__PURE__ */ function() {
5340
+ var Hammer$2 = /* @__PURE__ */ (function() {
5448
5341
  var Hammer2 = (
5449
5342
  /**
5450
5343
  * @private
@@ -5518,7 +5411,7 @@ var Hammer$2 = /* @__PURE__ */ function() {
5518
5411
  preset
5519
5412
  });
5520
5413
  return Hammer2;
5521
- }();
5414
+ })();
5522
5415
  Hammer$2.defaults;
5523
5416
  var RealHammer = Hammer$2;
5524
5417
  var DELETE = _Symbol$1("DELETE");
@@ -5549,8 +5442,7 @@ function deepObjectAssignNonentry() {
5549
5442
  return a;
5550
5443
  }
5551
5444
  for (const prop of _Reflect$ownKeys(b)) {
5552
- if (!Object.prototype.propertyIsEnumerable.call(b, prop))
5553
- ;
5445
+ if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;
5554
5446
  else if (b[prop] === DELETE) {
5555
5447
  delete a[prop];
5556
5448
  } else if (a[prop] !== null && b[prop] !== null && typeof a[prop] === "object" && typeof b[prop] === "object" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {
@@ -8083,10 +7975,8 @@ var Validator$1 = class Validator {
8083
7975
  * @static
8084
7976
  */
8085
7977
  static levenshteinDistance(a, b) {
8086
- if (a.length === 0)
8087
- return b.length;
8088
- if (b.length === 0)
8089
- return a.length;
7978
+ if (a.length === 0) return b.length;
7979
+ if (b.length === 0) return a.length;
8090
7980
  const matrix = [];
8091
7981
  let i;
8092
7982
  for (i = 0; i <= b.length; i++) {
@@ -9388,8 +9278,7 @@ var CachedImage = class {
9388
9278
  * Called when the image has been successfully loaded.
9389
9279
  */
9390
9280
  init() {
9391
- if (this.initialized())
9392
- return;
9281
+ if (this.initialized()) return;
9393
9282
  this.src = this.image.src;
9394
9283
  const w = this.image.width;
9395
9284
  const h = this.image.height;
@@ -9455,8 +9344,7 @@ var CachedImage = class {
9455
9344
  * @param {number} height
9456
9345
  */
9457
9346
  drawImageAtPosition(ctx, factor, left, top, width, height) {
9458
- if (!this.initialized())
9459
- return;
9347
+ if (!this.initialized()) return;
9460
9348
  if (factor > 2) {
9461
9349
  factor *= 0.5;
9462
9350
  let iterations = 0;
@@ -9489,8 +9377,7 @@ var Images = class {
9489
9377
  * @param {Image} imageToLoadBrokenUrlOn The image object
9490
9378
  */
9491
9379
  _tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {
9492
- if (url === void 0 || imageToLoadBrokenUrlOn === void 0)
9493
- return;
9380
+ if (url === void 0 || imageToLoadBrokenUrlOn === void 0) return;
9494
9381
  if (brokenUrl === void 0) {
9495
9382
  console.warn("No broken url image defined");
9496
9383
  return;
@@ -9517,8 +9404,7 @@ var Images = class {
9517
9404
  */
9518
9405
  load(url, brokenUrl) {
9519
9406
  const cachedImage = this.images[url];
9520
- if (cachedImage)
9521
- return cachedImage;
9407
+ if (cachedImage) return cachedImage;
9522
9408
  const img = new CachedImage();
9523
9409
  this.images[url] = img;
9524
9410
  img.image.onload = () => {
@@ -9554,8 +9440,7 @@ var fails$8 = fails$v;
9554
9440
  var arrayBufferNonExtensible = fails$8(function() {
9555
9441
  if (typeof ArrayBuffer == "function") {
9556
9442
  var buffer = new ArrayBuffer(8);
9557
- if (Object.isExtensible(buffer))
9558
- Object.defineProperty(buffer, "a", { value: 8 });
9443
+ if (Object.isExtensible(buffer)) Object.defineProperty(buffer, "a", { value: 8 });
9559
9444
  }
9560
9445
  });
9561
9446
  var fails$7 = fails$v;
@@ -9567,10 +9452,8 @@ var FAILS_ON_PRIMITIVES$1 = fails$7(function() {
9567
9452
  $isExtensible(1);
9568
9453
  });
9569
9454
  var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it2) {
9570
- if (!isObject$4(it2))
9571
- return false;
9572
- if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer")
9573
- return false;
9455
+ if (!isObject$4(it2)) return false;
9456
+ if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer") return false;
9574
9457
  return $isExtensible ? $isExtensible(it2) : true;
9575
9458
  } : $isExtensible;
9576
9459
  var fails$6 = fails$v;
@@ -9600,30 +9483,24 @@ var setMetadata = function(it2) {
9600
9483
  } });
9601
9484
  };
9602
9485
  var fastKey$1 = function(it2, create5) {
9603
- if (!isObject$3(it2))
9604
- return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
9486
+ if (!isObject$3(it2)) return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
9605
9487
  if (!hasOwn$4(it2, METADATA$1)) {
9606
- if (!isExtensible$1(it2))
9607
- return "F";
9608
- if (!create5)
9609
- return "E";
9488
+ if (!isExtensible$1(it2)) return "F";
9489
+ if (!create5) return "E";
9610
9490
  setMetadata(it2);
9611
9491
  }
9612
9492
  return it2[METADATA$1].objectID;
9613
9493
  };
9614
9494
  var getWeakData$1 = function(it2, create5) {
9615
9495
  if (!hasOwn$4(it2, METADATA$1)) {
9616
- if (!isExtensible$1(it2))
9617
- return true;
9618
- if (!create5)
9619
- return false;
9496
+ if (!isExtensible$1(it2)) return true;
9497
+ if (!create5) return false;
9620
9498
  setMetadata(it2);
9621
9499
  }
9622
9500
  return it2[METADATA$1].weakData;
9623
9501
  };
9624
9502
  var onFreeze = function(it2) {
9625
- if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1))
9626
- setMetadata(it2);
9503
+ if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1)) setMetadata(it2);
9627
9504
  return it2;
9628
9505
  };
9629
9506
  var enable = function() {
@@ -9672,8 +9549,7 @@ var Iterators = iterators;
9672
9549
  var wellKnownSymbol$3 = wellKnownSymbol$l;
9673
9550
  var ITERATOR$1 = wellKnownSymbol$3("iterator");
9674
9551
  var getIteratorMethod$2 = function(it2) {
9675
- if (!isNullOrUndefined$3(it2))
9676
- return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
9552
+ if (!isNullOrUndefined$3(it2)) return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
9677
9553
  };
9678
9554
  var call$2 = functionCall;
9679
9555
  var aCallable$3 = aCallable$7;
@@ -9683,8 +9559,7 @@ var getIteratorMethod$1 = getIteratorMethod$2;
9683
9559
  var $TypeError$3 = TypeError;
9684
9560
  var getIterator$7 = function(argument, usingIterator) {
9685
9561
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
9686
- if (aCallable$3(iteratorMethod))
9687
- return anObject$3(call$2(iteratorMethod, argument));
9562
+ if (aCallable$3(iteratorMethod)) return anObject$3(call$2(iteratorMethod, argument));
9688
9563
  throw new $TypeError$3(tryToString$1(argument) + " is not iterable");
9689
9564
  };
9690
9565
  var call$1 = functionCall;
@@ -9696,8 +9571,7 @@ var iteratorClose$1 = function(iterator2, kind, value) {
9696
9571
  try {
9697
9572
  innerResult = getMethod(iterator2, "return");
9698
9573
  if (!innerResult) {
9699
- if (kind === "throw")
9700
- throw value;
9574
+ if (kind === "throw") throw value;
9701
9575
  return value;
9702
9576
  }
9703
9577
  innerResult = call$1(innerResult, iterator2);
@@ -9705,10 +9579,8 @@ var iteratorClose$1 = function(iterator2, kind, value) {
9705
9579
  innerError = true;
9706
9580
  innerResult = error;
9707
9581
  }
9708
- if (kind === "throw")
9709
- throw value;
9710
- if (innerError)
9711
- throw innerResult;
9582
+ if (kind === "throw") throw value;
9583
+ if (innerError) throw innerResult;
9712
9584
  anObject$2(innerResult);
9713
9585
  return value;
9714
9586
  };
@@ -9737,8 +9609,7 @@ var iterate$3 = function(iterable, unboundFunction, options) {
9737
9609
  var fn = bind$2(unboundFunction, that);
9738
9610
  var iterator2, iterFn, index, length2, result, next3, step;
9739
9611
  var stop = function(condition) {
9740
- if (iterator2)
9741
- iteratorClose(iterator2, "normal", condition);
9612
+ if (iterator2) iteratorClose(iterator2, "normal", condition);
9742
9613
  return new Result(true, condition);
9743
9614
  };
9744
9615
  var callFn = function(value) {
@@ -9754,13 +9625,11 @@ var iterate$3 = function(iterable, unboundFunction, options) {
9754
9625
  iterator2 = iterable;
9755
9626
  } else {
9756
9627
  iterFn = getIteratorMethod(iterable);
9757
- if (!iterFn)
9758
- throw new $TypeError$2(tryToString(iterable) + " is not iterable");
9628
+ if (!iterFn) throw new $TypeError$2(tryToString(iterable) + " is not iterable");
9759
9629
  if (isArrayIteratorMethod(iterFn)) {
9760
9630
  for (index = 0, length2 = lengthOfArrayLike$4(iterable); length2 > index; index++) {
9761
9631
  result = callFn(iterable[index]);
9762
- if (result && isPrototypeOf$9(ResultPrototype, result))
9763
- return result;
9632
+ if (result && isPrototypeOf$9(ResultPrototype, result)) return result;
9764
9633
  }
9765
9634
  return new Result(false);
9766
9635
  }
@@ -9773,16 +9642,14 @@ var iterate$3 = function(iterable, unboundFunction, options) {
9773
9642
  } catch (error) {
9774
9643
  iteratorClose(iterator2, "throw", error);
9775
9644
  }
9776
- if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result))
9777
- return result;
9645
+ if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result)) return result;
9778
9646
  }
9779
9647
  return new Result(false);
9780
9648
  };
9781
9649
  var isPrototypeOf$8 = objectIsPrototypeOf;
9782
9650
  var $TypeError$1 = TypeError;
9783
9651
  var anInstance$3 = function(it2, Prototype) {
9784
- if (isPrototypeOf$8(Prototype, it2))
9785
- return it2;
9652
+ if (isPrototypeOf$8(Prototype, it2)) return it2;
9786
9653
  throw new $TypeError$1("Incorrect invocation");
9787
9654
  };
9788
9655
  var $$i = _export;
@@ -9821,8 +9688,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
9821
9688
  type: CONSTRUCTOR_NAME,
9822
9689
  collection: new NativeConstructor()
9823
9690
  });
9824
- if (!isNullOrUndefined$2(iterable))
9825
- iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
9691
+ if (!isNullOrUndefined$2(iterable)) iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
9826
9692
  });
9827
9693
  var Prototype = Constructor.prototype;
9828
9694
  var getInternalState2 = internalStateGetterFor$2(CONSTRUCTOR_NAME);
@@ -9831,8 +9697,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
9831
9697
  if (KEY in NativePrototype && !(IS_WEAK && KEY === "clear")) {
9832
9698
  createNonEnumerableProperty(Prototype, KEY, function(a, b) {
9833
9699
  var collection2 = getInternalState2(this).collection;
9834
- if (!IS_ADDER && IS_WEAK && !isObject$2(a))
9835
- return KEY === "get" ? void 0 : false;
9700
+ if (!IS_ADDER && IS_WEAK && !isObject$2(a)) return KEY === "get" ? void 0 : false;
9836
9701
  var result = collection2[KEY](a === 0 ? 0 : a, b);
9837
9702
  return IS_ADDER ? this : result;
9838
9703
  });
@@ -9848,17 +9713,14 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
9848
9713
  setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
9849
9714
  exported[CONSTRUCTOR_NAME] = Constructor;
9850
9715
  $$i({ global: true, forced: true }, exported);
9851
- if (!IS_WEAK)
9852
- common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
9716
+ if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
9853
9717
  return Constructor;
9854
9718
  };
9855
9719
  var defineBuiltIn = defineBuiltIn$5;
9856
9720
  var defineBuiltIns$3 = function(target, src, options) {
9857
9721
  for (var key in src) {
9858
- if (options && options.unsafe && target[key])
9859
- target[key] = src[key];
9860
- else
9861
- defineBuiltIn(target, key, src[key], options);
9722
+ if (options && options.unsafe && target[key]) target[key] = src[key];
9723
+ else defineBuiltIn(target, key, src[key], options);
9862
9724
  }
9863
9725
  return target;
9864
9726
  };
@@ -9904,10 +9766,8 @@ var collectionStrong$2 = {
9904
9766
  last: void 0,
9905
9767
  size: 0
9906
9768
  });
9907
- if (!DESCRIPTORS$4)
9908
- that.size = 0;
9909
- if (!isNullOrUndefined$1(iterable))
9910
- iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
9769
+ if (!DESCRIPTORS$4) that.size = 0;
9770
+ if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
9911
9771
  });
9912
9772
  var Prototype = Constructor.prototype;
9913
9773
  var getInternalState2 = internalStateGetterFor$1(CONSTRUCTOR_NAME);
@@ -9926,16 +9786,11 @@ var collectionStrong$2 = {
9926
9786
  next: void 0,
9927
9787
  removed: false
9928
9788
  };
9929
- if (!state.first)
9930
- state.first = entry;
9931
- if (previous)
9932
- previous.next = entry;
9933
- if (DESCRIPTORS$4)
9934
- state.size++;
9935
- else
9936
- that.size++;
9937
- if (index !== "F")
9938
- state.index[index] = entry;
9789
+ if (!state.first) state.first = entry;
9790
+ if (previous) previous.next = entry;
9791
+ if (DESCRIPTORS$4) state.size++;
9792
+ else that.size++;
9793
+ if (index !== "F") state.index[index] = entry;
9939
9794
  }
9940
9795
  return that;
9941
9796
  };
@@ -9943,11 +9798,9 @@ var collectionStrong$2 = {
9943
9798
  var state = getInternalState2(that);
9944
9799
  var index = fastKey(key);
9945
9800
  var entry;
9946
- if (index !== "F")
9947
- return state.index[index];
9801
+ if (index !== "F") return state.index[index];
9948
9802
  for (entry = state.first; entry; entry = entry.next) {
9949
- if (entry.key === key)
9950
- return entry;
9803
+ if (entry.key === key) return entry;
9951
9804
  }
9952
9805
  };
9953
9806
  defineBuiltIns$2(Prototype, {
@@ -9961,16 +9814,13 @@ var collectionStrong$2 = {
9961
9814
  var entry = state.first;
9962
9815
  while (entry) {
9963
9816
  entry.removed = true;
9964
- if (entry.previous)
9965
- entry.previous = entry.previous.next = void 0;
9817
+ if (entry.previous) entry.previous = entry.previous.next = void 0;
9966
9818
  delete data2[entry.index];
9967
9819
  entry = entry.next;
9968
9820
  }
9969
9821
  state.first = state.last = void 0;
9970
- if (DESCRIPTORS$4)
9971
- state.size = 0;
9972
- else
9973
- that.size = 0;
9822
+ if (DESCRIPTORS$4) state.size = 0;
9823
+ else that.size = 0;
9974
9824
  },
9975
9825
  // `{ Map, Set }.prototype.delete(key)` methods
9976
9826
  // https://tc39.es/ecma262/#sec-map.prototype.delete
@@ -9984,18 +9834,12 @@ var collectionStrong$2 = {
9984
9834
  var prev = entry.previous;
9985
9835
  delete state.index[entry.index];
9986
9836
  entry.removed = true;
9987
- if (prev)
9988
- prev.next = next3;
9989
- if (next3)
9990
- next3.previous = prev;
9991
- if (state.first === entry)
9992
- state.first = next3;
9993
- if (state.last === entry)
9994
- state.last = prev;
9995
- if (DESCRIPTORS$4)
9996
- state.size--;
9997
- else
9998
- that.size--;
9837
+ if (prev) prev.next = next3;
9838
+ if (next3) next3.previous = prev;
9839
+ if (state.first === entry) state.first = next3;
9840
+ if (state.last === entry) state.last = prev;
9841
+ if (DESCRIPTORS$4) state.size--;
9842
+ else that.size--;
9999
9843
  }
10000
9844
  return !!entry;
10001
9845
  },
@@ -10008,8 +9852,7 @@ var collectionStrong$2 = {
10008
9852
  var entry;
10009
9853
  while (entry = entry ? entry.next : state.first) {
10010
9854
  boundFunction(entry.value, entry.key, this);
10011
- while (entry && entry.removed)
10012
- entry = entry.previous;
9855
+ while (entry && entry.removed) entry = entry.previous;
10013
9856
  }
10014
9857
  },
10015
9858
  // `{ Map, Set}.prototype.has(key)` methods
@@ -10038,13 +9881,12 @@ var collectionStrong$2 = {
10038
9881
  return define(this, value = value === 0 ? 0 : value, value);
10039
9882
  }
10040
9883
  });
10041
- if (DESCRIPTORS$4)
10042
- defineBuiltInAccessor(Prototype, "size", {
10043
- configurable: true,
10044
- get: function() {
10045
- return getInternalState2(this).size;
10046
- }
10047
- });
9884
+ if (DESCRIPTORS$4) defineBuiltInAccessor(Prototype, "size", {
9885
+ configurable: true,
9886
+ get: function() {
9887
+ return getInternalState2(this).size;
9888
+ }
9889
+ });
10048
9890
  return Constructor;
10049
9891
  },
10050
9892
  setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
@@ -10063,16 +9905,13 @@ var collectionStrong$2 = {
10063
9905
  var state = getInternalIteratorState(this);
10064
9906
  var kind = state.kind;
10065
9907
  var entry = state.last;
10066
- while (entry && entry.removed)
10067
- entry = entry.previous;
9908
+ while (entry && entry.removed) entry = entry.previous;
10068
9909
  if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
10069
9910
  state.target = void 0;
10070
9911
  return createIterResultObject$1(void 0, true);
10071
9912
  }
10072
- if (kind === "keys")
10073
- return createIterResultObject$1(entry.key, false);
10074
- if (kind === "values")
10075
- return createIterResultObject$1(entry.value, false);
9913
+ if (kind === "keys") return createIterResultObject$1(entry.key, false);
9914
+ if (kind === "values") return createIterResultObject$1(entry.value, false);
10076
9915
  return createIterResultObject$1([entry.key, entry.value], false);
10077
9916
  }, IS_MAP ? "entries" : "values", !IS_MAP, true);
10078
9917
  setSpecies(CONSTRUCTOR_NAME);
@@ -10098,8 +9937,7 @@ var createMethod$1 = function(CONVERT_TO_STRING) {
10098
9937
  var position = toIntegerOrInfinity(pos);
10099
9938
  var size = S.length;
10100
9939
  var first2, second;
10101
- if (position < 0 || position >= size)
10102
- return CONVERT_TO_STRING ? "" : void 0;
9940
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0;
10103
9941
  first2 = charCodeAt(S, position);
10104
9942
  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;
10105
9943
  };
@@ -10131,8 +9969,7 @@ defineIterator(String, "String", function(iterated) {
10131
9969
  var string2 = state.string;
10132
9970
  var index = state.index;
10133
9971
  var point;
10134
- if (index >= string2.length)
10135
- return createIterResultObject(void 0, true);
9972
+ if (index >= string2.length) return createIterResultObject(void 0, true);
10136
9973
  point = charAt$1(string2, index);
10137
9974
  state.index += point.length;
10138
9975
  return createIterResultObject(point, false);
@@ -10560,8 +10397,7 @@ var Object$4 = path$9.Object;
10560
10397
  var getOwnPropertyDescriptor$2 = getOwnPropertyDescriptor$3.exports = function getOwnPropertyDescriptor4(it2, key) {
10561
10398
  return Object$4.getOwnPropertyDescriptor(it2, key);
10562
10399
  };
10563
- if (Object$4.getOwnPropertyDescriptor.sham)
10564
- getOwnPropertyDescriptor$2.sham = true;
10400
+ if (Object$4.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$2.sham = true;
10565
10401
  var getOwnPropertyDescriptorExports = getOwnPropertyDescriptor$3.exports;
10566
10402
  var parent$s = getOwnPropertyDescriptorExports;
10567
10403
  var getOwnPropertyDescriptor$1 = parent$s;
@@ -10583,8 +10419,7 @@ $$d({ target: "Object", stat: true, sham: !DESCRIPTORS$2 }, {
10583
10419
  var key, descriptor;
10584
10420
  while (keys4.length > index) {
10585
10421
  descriptor = getOwnPropertyDescriptor6(O, key = keys4[index++]);
10586
- if (descriptor !== void 0)
10587
- createProperty(result, key, descriptor);
10422
+ if (descriptor !== void 0) createProperty(result, key, descriptor);
10588
10423
  }
10589
10424
  return result;
10590
10425
  }
@@ -10607,8 +10442,7 @@ var Object$3 = path$7.Object;
10607
10442
  var defineProperties$2 = defineProperties$4.exports = function defineProperties3(T, D) {
10608
10443
  return Object$3.defineProperties(T, D);
10609
10444
  };
10610
- if (Object$3.defineProperties.sham)
10611
- defineProperties$2.sham = true;
10445
+ if (Object$3.defineProperties.sham) defineProperties$2.sham = true;
10612
10446
  var definePropertiesExports = defineProperties$4.exports;
10613
10447
  var parent$q = definePropertiesExports;
10614
10448
  var defineProperties$1 = parent$q;
@@ -10626,8 +10460,7 @@ var Object$2 = path$6.Object;
10626
10460
  var defineProperty$6 = defineProperty$8.exports = function defineProperty4(it2, key, desc) {
10627
10461
  return Object$2.defineProperty(it2, key, desc);
10628
10462
  };
10629
- if (Object$2.defineProperty.sham)
10630
- defineProperty$6.sham = true;
10463
+ if (Object$2.defineProperty.sham) defineProperty$6.sham = true;
10631
10464
  var definePropertyExports = defineProperty$8.exports;
10632
10465
  var parent$p = definePropertyExports;
10633
10466
  var defineProperty$5 = parent$p;
@@ -10684,8 +10517,7 @@ var WellKnownSymbolsStore = shared("wks");
10684
10517
  for (i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$2), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
10685
10518
  try {
10686
10519
  symbolKey = symbolKeys[i];
10687
- if (isSymbol(Symbol$2[symbolKey]))
10688
- wellKnownSymbol(symbolKey);
10520
+ if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol(symbolKey);
10689
10521
  } catch (error) {
10690
10522
  }
10691
10523
  }
@@ -10694,13 +10526,11 @@ var i;
10694
10526
  var symbolKeys;
10695
10527
  var symbolKeysLength;
10696
10528
  var symbolIsWellKnown = function isWellKnownSymbol(value) {
10697
- if ($isWellKnownSymbol && $isWellKnownSymbol(value))
10698
- return true;
10529
+ if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
10699
10530
  try {
10700
10531
  var symbol2 = thisSymbolValue(value);
10701
10532
  for (var j = 0, keys4 = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys4.length; j < keysLength; j++) {
10702
- if (WellKnownSymbolsStore[keys4[j]] == symbol2)
10703
- return true;
10533
+ if (WellKnownSymbolsStore[keys4[j]] == symbol2) return true;
10704
10534
  }
10705
10535
  } catch (error) {
10706
10536
  }
@@ -10764,13 +10594,11 @@ var toPrimitive$1 = parent$f;
10764
10594
  var toPrimitive = toPrimitive$1;
10765
10595
  var _Symbol$toPrimitive = /* @__PURE__ */ getDefaultExportFromCjs(toPrimitive);
10766
10596
  function _toPrimitive(input, hint) {
10767
- if (_typeof(input) !== "object" || input === null)
10768
- return input;
10597
+ if (_typeof(input) !== "object" || input === null) return input;
10769
10598
  var prim = input[_Symbol$toPrimitive];
10770
10599
  if (prim !== void 0) {
10771
10600
  var res = prim.call(input, hint || "default");
10772
- if (_typeof(res) !== "object")
10773
- return res;
10601
+ if (_typeof(res) !== "object") return res;
10774
10602
  throw new TypeError("@@toPrimitive must return a primitive value.");
10775
10603
  }
10776
10604
  return (hint === "string" ? String : Number)(input);
@@ -10806,22 +10634,20 @@ var createMethod = function(IS_RIGHT) {
10806
10634
  var length2 = lengthOfArrayLike$3(O);
10807
10635
  var index = IS_RIGHT ? length2 - 1 : 0;
10808
10636
  var i = IS_RIGHT ? -1 : 1;
10809
- if (argumentsLength < 2)
10810
- while (true) {
10811
- if (index in self2) {
10812
- memo = self2[index];
10813
- index += i;
10814
- break;
10815
- }
10637
+ if (argumentsLength < 2) while (true) {
10638
+ if (index in self2) {
10639
+ memo = self2[index];
10816
10640
  index += i;
10817
- if (IS_RIGHT ? index < 0 : length2 <= index) {
10818
- throw new $TypeError("Reduce of empty array with no initial value");
10819
- }
10641
+ break;
10820
10642
  }
10821
- for (; IS_RIGHT ? index >= 0 : length2 > index; index += i)
10822
- if (index in self2) {
10823
- memo = callbackfn(memo, self2[index], index, O);
10643
+ index += i;
10644
+ if (IS_RIGHT ? index < 0 : length2 <= index) {
10645
+ throw new $TypeError("Reduce of empty array with no initial value");
10824
10646
  }
10647
+ }
10648
+ for (; IS_RIGHT ? index >= 0 : length2 > index; index += i) if (index in self2) {
10649
+ memo = callbackfn(memo, self2[index], index, O);
10650
+ }
10825
10651
  return memo;
10826
10652
  };
10827
10653
  };
@@ -10956,8 +10782,7 @@ var insertionSort = function(array2, comparefn) {
10956
10782
  while (j && comparefn(array2[j - 1], element) > 0) {
10957
10783
  array2[j] = array2[--j];
10958
10784
  }
10959
- if (j !== i++)
10960
- array2[j] = element;
10785
+ if (j !== i++) array2[j] = element;
10961
10786
  }
10962
10787
  return array2;
10963
10788
  };
@@ -11005,14 +10830,10 @@ var FAILS_ON_NULL = fails$3(function() {
11005
10830
  });
11006
10831
  var STRICT_METHOD$1 = arrayMethodIsStrict$1("sort");
11007
10832
  var STABLE_SORT = !fails$3(function() {
11008
- if (V8)
11009
- return V8 < 70;
11010
- if (FF && FF > 3)
11011
- return;
11012
- if (IE_OR_EDGE)
11013
- return true;
11014
- if (WEBKIT)
11015
- return WEBKIT < 603;
10833
+ if (V8) return V8 < 70;
10834
+ if (FF && FF > 3) return;
10835
+ if (IE_OR_EDGE) return true;
10836
+ if (WEBKIT) return WEBKIT < 603;
11016
10837
  var result = "";
11017
10838
  var code, chr, value, index;
11018
10839
  for (code = 65; code < 76; code++) {
@@ -11040,44 +10861,35 @@ var STABLE_SORT = !fails$3(function() {
11040
10861
  });
11041
10862
  for (index = 0; index < test.length; index++) {
11042
10863
  chr = test[index].k.charAt(0);
11043
- if (result.charAt(result.length - 1) !== chr)
11044
- result += chr;
10864
+ if (result.charAt(result.length - 1) !== chr) result += chr;
11045
10865
  }
11046
10866
  return result !== "DGBEFHACIJK";
11047
10867
  });
11048
10868
  var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
11049
10869
  var getSortCompare = function(comparefn) {
11050
10870
  return function(x, y) {
11051
- if (y === void 0)
11052
- return -1;
11053
- if (x === void 0)
11054
- return 1;
11055
- if (comparefn !== void 0)
11056
- return +comparefn(x, y) || 0;
10871
+ if (y === void 0) return -1;
10872
+ if (x === void 0) return 1;
10873
+ if (comparefn !== void 0) return +comparefn(x, y) || 0;
11057
10874
  return toString$1(x) > toString$1(y) ? 1 : -1;
11058
10875
  };
11059
10876
  };
11060
10877
  $$4({ target: "Array", proto: true, forced: FORCED$2 }, {
11061
10878
  sort: function sort(comparefn) {
11062
- if (comparefn !== void 0)
11063
- aCallable(comparefn);
10879
+ if (comparefn !== void 0) aCallable(comparefn);
11064
10880
  var array2 = toObject(this);
11065
- if (STABLE_SORT)
11066
- return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
10881
+ if (STABLE_SORT) return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
11067
10882
  var items = [];
11068
10883
  var arrayLength = lengthOfArrayLike(array2);
11069
10884
  var itemsLength, index;
11070
10885
  for (index = 0; index < arrayLength; index++) {
11071
- if (index in array2)
11072
- push(items, array2[index]);
10886
+ if (index in array2) push(items, array2[index]);
11073
10887
  }
11074
10888
  internalSort(items, getSortCompare(comparefn));
11075
10889
  itemsLength = lengthOfArrayLike(items);
11076
10890
  index = 0;
11077
- while (index < itemsLength)
11078
- array2[index] = items[index++];
11079
- while (index < arrayLength)
11080
- deletePropertyOrThrow(array2, index++);
10891
+ while (index < itemsLength) array2[index] = items[index++];
10892
+ while (index < arrayLength) deletePropertyOrThrow(array2, index++);
11081
10893
  return array2;
11082
10894
  }
11083
10895
  });
@@ -12550,8 +12362,7 @@ var LabelAccumulator = class {
12550
12362
  };
12551
12363
  }
12552
12364
  let tmpText = text;
12553
- if (text === void 0 || text === "")
12554
- tmpText = " ";
12365
+ if (text === void 0 || text === "") tmpText = " ";
12555
12366
  const result = this.measureText(tmpText, mod);
12556
12367
  const block = _Object$assign({}, _valuesInstanceProperty(result));
12557
12368
  block.text = text;
@@ -12569,8 +12380,7 @@ var LabelAccumulator = class {
12569
12380
  */
12570
12381
  curWidth() {
12571
12382
  const line = this.lines[this.current];
12572
- if (line === void 0)
12573
- return 0;
12383
+ if (line === void 0) return 0;
12574
12384
  return line.width;
12575
12385
  }
12576
12386
  /**
@@ -12642,11 +12452,9 @@ var LabelAccumulator = class {
12642
12452
  const tmpLines = [];
12643
12453
  for (let k = 0; k < this.lines.length; k++) {
12644
12454
  const line = this.lines[k];
12645
- if (line.blocks.length === 0)
12646
- continue;
12455
+ if (line.blocks.length === 0) continue;
12647
12456
  if (k === this.lines.length - 1) {
12648
- if (line.width === 0)
12649
- continue;
12457
+ if (line.width === 0) continue;
12650
12458
  }
12651
12459
  const tmpLine = {};
12652
12460
  _Object$assign(tmpLine, line);
@@ -12735,10 +12543,8 @@ var MarkupAccumulator = class {
12735
12543
  * @private
12736
12544
  */
12737
12545
  modName() {
12738
- if (this.modStack.length === 0)
12739
- return "normal";
12740
- else if (this.modStack[0] === "mono")
12741
- return "mono";
12546
+ if (this.modStack.length === 0) return "normal";
12547
+ else if (this.modStack[0] === "mono") return "mono";
12742
12548
  else {
12743
12549
  if (this.bold && this.ital) {
12744
12550
  return "boldital";
@@ -12922,8 +12728,7 @@ var LabelSplitter = class {
12922
12728
  this.selected = selected;
12923
12729
  this.hover = hover;
12924
12730
  const textWidth = (text, mod) => {
12925
- if (text === void 0)
12926
- return 0;
12731
+ if (text === void 0) return 0;
12927
12732
  const values3 = this.parent.getFormattingValues(ctx, selected, hover, mod);
12928
12733
  let width = 0;
12929
12734
  if (text !== "") {
@@ -12965,8 +12770,7 @@ var LabelSplitter = class {
12965
12770
  if (font.multi) {
12966
12771
  for (let i = 0; i < lineCount; i++) {
12967
12772
  const blocks = this.splitBlocks(nlLines[i], font.multi);
12968
- if (blocks === void 0)
12969
- continue;
12773
+ if (blocks === void 0) continue;
12970
12774
  if (blocks.length === 0) {
12971
12775
  this.lines.newLine("");
12972
12776
  continue;
@@ -13119,8 +12923,7 @@ var LabelSplitter = class {
13119
12923
  while (w < words.length) {
13120
12924
  const pre = text === "" ? "" : " ";
13121
12925
  const newText = text + pre + words[w];
13122
- if (this.overMaxWidth(newText))
13123
- break;
12926
+ if (this.overMaxWidth(newText)) break;
13124
12927
  text = newText;
13125
12928
  w++;
13126
12929
  }
@@ -13135,8 +12938,7 @@ var LabelSplitter = class {
13135
12938
  getLongestFitWord(words) {
13136
12939
  let w = 0;
13137
12940
  while (w < words.length) {
13138
- if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w)))
13139
- break;
12941
+ if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;
13140
12942
  w++;
13141
12943
  }
13142
12944
  return w;
@@ -13264,8 +13066,7 @@ var Label = class _Label {
13264
13066
  * @static
13265
13067
  */
13266
13068
  static parseFontString(outOptions, inOptions) {
13267
- if (!inOptions || typeof inOptions !== "string")
13268
- return false;
13069
+ if (!inOptions || typeof inOptions !== "string") return false;
13269
13070
  const newOptionsArray = inOptions.split(" ");
13270
13071
  outOptions.size = +newOptionsArray[0].replace("px", "");
13271
13072
  outOptions.face = newOptionsArray[1];
@@ -13368,10 +13169,8 @@ var Label = class _Label {
13368
13169
  * @private
13369
13170
  */
13370
13171
  addFontToPile(pile, options) {
13371
- if (options === void 0)
13372
- return;
13373
- if (options.font === void 0 || options.font === null)
13374
- return;
13172
+ if (options === void 0) return;
13173
+ if (options.font === void 0 || options.font === null) return;
13375
13174
  const item = options.font;
13376
13175
  pile.push(item);
13377
13176
  }
@@ -13390,10 +13189,8 @@ var Label = class _Label {
13390
13189
  fontOptions = tmpShorthand;
13391
13190
  }
13392
13191
  forEach$1(fontOptions, (opt, name) => {
13393
- if (opt === void 0)
13394
- return;
13395
- if (Object.prototype.hasOwnProperty.call(ret, name))
13396
- return;
13192
+ if (opt === void 0) return;
13193
+ if (Object.prototype.hasOwnProperty.call(ret, name)) return;
13397
13194
  if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {
13398
13195
  ret[name] = {};
13399
13196
  } else {
@@ -13435,8 +13232,7 @@ var Label = class _Label {
13435
13232
  const fontOptions = pile[n];
13436
13233
  if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {
13437
13234
  multiFont = fontOptions[multiName];
13438
- if (multiFont === void 0 || multiFont === null)
13439
- continue;
13235
+ if (multiFont === void 0 || multiFont === null) continue;
13440
13236
  const tmpShorthand = {};
13441
13237
  if (_Label.parseFontString(tmpShorthand, multiFont)) {
13442
13238
  multiFont = tmpShorthand;
@@ -13504,11 +13300,9 @@ var Label = class _Label {
13504
13300
  */
13505
13301
  draw(ctx, x, y, selected, hover) {
13506
13302
  let baseline = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : "middle";
13507
- if (this.elementOptions.label === void 0)
13508
- return;
13303
+ if (this.elementOptions.label === void 0) return;
13509
13304
  let viewFontSize = this.fontOptions.size * this.body.view.scale;
13510
- if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1)
13511
- return;
13305
+ if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;
13512
13306
  if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {
13513
13307
  viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;
13514
13308
  }
@@ -13711,8 +13505,7 @@ var Label = class _Label {
13711
13505
  getFormattingValues(ctx, selected, hover, mod) {
13712
13506
  const getValue = function(fontOptions, mod2, option) {
13713
13507
  if (mod2 === "normal") {
13714
- if (option === "mod")
13715
- return "";
13508
+ if (option === "mod") return "";
13716
13509
  return fontOptions[option];
13717
13510
  }
13718
13511
  if (fontOptions[mod2][option] !== void 0) {
@@ -13779,8 +13572,7 @@ var Label = class _Label {
13779
13572
  * @private
13780
13573
  */
13781
13574
  _processLabel(ctx, selected, hover) {
13782
- if (this.labelDirty === false && !this.differentState(selected, hover))
13783
- return;
13575
+ if (this.labelDirty === false && !this.differentState(selected, hover)) return;
13784
13576
  const state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);
13785
13577
  if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {
13786
13578
  state.width = this.fontOptions.minWdt;
@@ -15476,15 +15268,13 @@ var Node = class _Node {
15476
15268
  */
15477
15269
  static updateGroupOptions(parentOptions, newOptions, groupList) {
15478
15270
  var _context4;
15479
- if (groupList === void 0)
15480
- return;
15271
+ if (groupList === void 0) return;
15481
15272
  const group = parentOptions.group;
15482
15273
  if (newOptions !== void 0 && newOptions.group !== void 0 && group !== newOptions.group) {
15483
15274
  throw new Error("updateGroupOptions: group values in options don't match.");
15484
15275
  }
15485
15276
  const hasGroup = typeof group === "number" || typeof group === "string" && group != "";
15486
- if (!hasGroup)
15487
- return;
15277
+ if (!hasGroup) return;
15488
15278
  const groupObj = groupList.get(group);
15489
15279
  if (groupObj.opacity !== void 0 && newOptions.opacity === void 0) {
15490
15280
  if (!_Node.checkOpacity(groupObj.opacity)) {
@@ -16045,8 +15835,7 @@ var NodesHandler = class {
16045
15835
  this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
16046
15836
  this.body.emitter.on("destroy", () => {
16047
15837
  forEach$1(this.nodesListeners, (callback, event) => {
16048
- if (this.body.data.nodes)
16049
- this.body.data.nodes.off(event, callback);
15838
+ if (this.body.data.nodes) this.body.data.nodes.off(event, callback);
16050
15839
  });
16051
15840
  delete this.body.functions.createNode;
16052
15841
  delete this.nodesListeners.add;
@@ -16408,8 +16197,7 @@ $$1({ target: "Math", stat: true, arity: 2, forced: FORCED }, {
16408
16197
  } else if (arg > 0) {
16409
16198
  div = arg / larg;
16410
16199
  sum += div * div;
16411
- } else
16412
- sum += arg;
16200
+ } else sum += arg;
16413
16201
  }
16414
16202
  return larg === Infinity ? Infinity : larg * sqrt(sum);
16415
16203
  }
@@ -16794,6 +16582,7 @@ var EndPoints = class {
16794
16582
  case "vee":
16795
16583
  return Vee.draw(ctx, arrowData);
16796
16584
  case "arrow":
16585
+ // fall-through
16797
16586
  default:
16798
16587
  return Arrow.draw(ctx, arrowData);
16799
16588
  }
@@ -18468,8 +18257,7 @@ var Edge = class _Edge {
18468
18257
  this.edgeType.toPoint = this.edgeType.to;
18469
18258
  if (values3.fromArrow) {
18470
18259
  arrowData.from = this.edgeType.getArrowData(ctx, "from", viaNode, this.selected, this.hover, values3);
18471
- if (values3.arrowStrikethrough === false)
18472
- this.edgeType.fromPoint = arrowData.from.core;
18260
+ if (values3.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;
18473
18261
  if (values3.fromArrowSrc) {
18474
18262
  arrowData.from.image = this.imagelist.load(values3.fromArrowSrc);
18475
18263
  }
@@ -18482,8 +18270,7 @@ var Edge = class _Edge {
18482
18270
  }
18483
18271
  if (values3.toArrow) {
18484
18272
  arrowData.to = this.edgeType.getArrowData(ctx, "to", viaNode, this.selected, this.hover, values3);
18485
- if (values3.arrowStrikethrough === false)
18486
- this.edgeType.toPoint = arrowData.to.core;
18273
+ if (values3.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;
18487
18274
  if (values3.toArrowSrc) {
18488
18275
  arrowData.to.image = this.imagelist.load(values3.toArrowSrc);
18489
18276
  }
@@ -18867,8 +18654,7 @@ var EdgesHandler = class {
18867
18654
  this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
18868
18655
  this.body.emitter.on("destroy", () => {
18869
18656
  forEach$1(this.edgesListeners, (callback, event) => {
18870
- if (this.body.data.edges)
18871
- this.body.data.edges.off(event, callback);
18657
+ if (this.body.data.edges) this.body.data.edges.off(event, callback);
18872
18658
  });
18873
18659
  delete this.body.functions.createEdge;
18874
18660
  delete this.edgesListeners.add;
@@ -19004,8 +18790,7 @@ var EdgesHandler = class {
19004
18790
  */
19005
18791
  remove(ids) {
19006
18792
  let emit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
19007
- if (ids.length === 0)
19008
- return;
18793
+ if (ids.length === 0) return;
19009
18794
  const edges = this.body.edges;
19010
18795
  forEach$1(ids, (id2) => {
19011
18796
  const edge = edges[id2];
@@ -20218,8 +20003,7 @@ var PhysicsEngine = class {
20218
20003
  */
20219
20004
  physicsTick() {
20220
20005
  this._startStabilizing();
20221
- if (this.stabilized === true)
20222
- return;
20006
+ if (this.stabilized === true) return;
20223
20007
  if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {
20224
20008
  const doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;
20225
20009
  if (doAdaptive) {
@@ -20238,8 +20022,7 @@ var PhysicsEngine = class {
20238
20022
  this.timestep = this.options.timestep;
20239
20023
  this.physicsStep();
20240
20024
  }
20241
- if (this.stabilized === true)
20242
- this.revert();
20025
+ if (this.stabilized === true) this.revert();
20243
20026
  this.stabilizationIterations++;
20244
20027
  }
20245
20028
  /**
@@ -20476,8 +20259,7 @@ var PhysicsEngine = class {
20476
20259
  * @private
20477
20260
  */
20478
20261
  _startStabilizing() {
20479
- if (this.startedStabilization === true)
20480
- return false;
20262
+ if (this.startedStabilization === true) return false;
20481
20263
  this.body.emitter.emit("startStabilizing");
20482
20264
  this.startedStabilization = true;
20483
20265
  return true;
@@ -20728,8 +20510,7 @@ var Cluster = class extends Node {
20728
20510
  forEach$1(this.edges, (parentClusterEdge) => {
20729
20511
  var _context, _context2;
20730
20512
  const index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);
20731
- if (index === -1)
20732
- return;
20513
+ if (index === -1) return;
20733
20514
  forEach$1(clusterEdge.clusteringEdgeReplacingIds, (srcId) => {
20734
20515
  parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);
20735
20516
  this.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;
@@ -20974,8 +20755,7 @@ var ClusterEngine = class {
20974
20755
  return childNodesObj[childNode].id;
20975
20756
  });
20976
20757
  for (const childNodeKey in childNodesObj) {
20977
- if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey))
20978
- continue;
20758
+ if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;
20979
20759
  const childNode = childNodesObj[childNodeKey];
20980
20760
  for (let y = 0; y < childNode.edges.length; y++) {
20981
20761
  const childEdge = childNode.edges[y];
@@ -21307,8 +21087,7 @@ var ClusterEngine = class {
21307
21087
  for (let j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {
21308
21088
  const transferId = edge.clusteringEdgeReplacingIds[j];
21309
21089
  const transferEdge = this.body.edges[transferId];
21310
- if (transferEdge === void 0)
21311
- continue;
21090
+ if (transferEdge === void 0) continue;
21312
21091
  if (otherNode !== void 0) {
21313
21092
  const otherCluster = this.body.nodes[otherNode.clusterId];
21314
21093
  otherCluster.containedEdges[transferEdge.id] = transferEdge;
@@ -21371,15 +21150,13 @@ var ClusterEngine = class {
21371
21150
  let node;
21372
21151
  while (this.clusteredNodes[nodeId] !== void 0 && counter < max2) {
21373
21152
  node = this.body.nodes[nodeId];
21374
- if (node === void 0)
21375
- return [];
21153
+ if (node === void 0) return [];
21376
21154
  stack.push(node.id);
21377
21155
  nodeId = this.clusteredNodes[nodeId].clusterId;
21378
21156
  counter++;
21379
21157
  }
21380
21158
  node = this.body.nodes[nodeId];
21381
- if (node === void 0)
21382
- return [];
21159
+ if (node === void 0) return [];
21383
21160
  stack.push(node.id);
21384
21161
  _reverseInstanceProperty(stack).call(stack);
21385
21162
  return stack;
@@ -21464,11 +21241,9 @@ var ClusterEngine = class {
21464
21241
  let counter = 0;
21465
21242
  while (IdsToHandle.length > 0 && counter < max2) {
21466
21243
  const nextId = IdsToHandle.pop();
21467
- if (nextId === void 0)
21468
- continue;
21244
+ if (nextId === void 0) continue;
21469
21245
  const nextEdge = this.body.edges[nextId];
21470
- if (nextEdge === void 0)
21471
- continue;
21246
+ if (nextEdge === void 0) continue;
21472
21247
  counter++;
21473
21248
  const replacingIds = nextEdge.clusteringEdgeReplacingIds;
21474
21249
  if (replacingIds === void 0) {
@@ -21619,14 +21394,11 @@ var ClusterEngine = class {
21619
21394
  * @private
21620
21395
  */
21621
21396
  _getClusterNodeForNode(nodeId) {
21622
- if (nodeId === void 0)
21623
- return void 0;
21397
+ if (nodeId === void 0) return void 0;
21624
21398
  const clusteredNode = this.clusteredNodes[nodeId];
21625
- if (clusteredNode === void 0)
21626
- return void 0;
21399
+ if (clusteredNode === void 0) return void 0;
21627
21400
  const clusterId = clusteredNode.clusterId;
21628
- if (clusterId === void 0)
21629
- return void 0;
21401
+ if (clusterId === void 0) return void 0;
21630
21402
  return this.body.nodes[clusterId];
21631
21403
  }
21632
21404
  /**
@@ -21668,8 +21440,7 @@ var ClusterEngine = class {
21668
21440
  });
21669
21441
  };
21670
21442
  for (nodeId in this.clusteredNodes) {
21671
- if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId))
21672
- continue;
21443
+ if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;
21673
21444
  const node = this.body.nodes[nodeId];
21674
21445
  if (node === void 0) {
21675
21446
  deletedNodeIds.push(nodeId);
@@ -24012,25 +23783,21 @@ var findUncaughtFrozen = function(store, key) {
24012
23783
  UncaughtFrozenStore.prototype = {
24013
23784
  get: function(key) {
24014
23785
  var entry = findUncaughtFrozen(this, key);
24015
- if (entry)
24016
- return entry[1];
23786
+ if (entry) return entry[1];
24017
23787
  },
24018
23788
  has: function(key) {
24019
23789
  return !!findUncaughtFrozen(this, key);
24020
23790
  },
24021
23791
  set: function(key, value) {
24022
23792
  var entry = findUncaughtFrozen(this, key);
24023
- if (entry)
24024
- entry[1] = value;
24025
- else
24026
- this.entries.push([key, value]);
23793
+ if (entry) entry[1] = value;
23794
+ else this.entries.push([key, value]);
24027
23795
  },
24028
23796
  "delete": function(key) {
24029
23797
  var index = findIndex(this.entries, function(it2) {
24030
23798
  return it2[0] === key;
24031
23799
  });
24032
- if (~index)
24033
- splice2(this.entries, index, 1);
23800
+ if (~index) splice2(this.entries, index, 1);
24034
23801
  return !!~index;
24035
23802
  }
24036
23803
  };
@@ -24043,18 +23810,15 @@ var collectionWeak$1 = {
24043
23810
  id: id++,
24044
23811
  frozen: void 0
24045
23812
  });
24046
- if (!isNullOrUndefined(iterable))
24047
- iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
23813
+ if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
24048
23814
  });
24049
23815
  var Prototype = Constructor.prototype;
24050
23816
  var getInternalState2 = internalStateGetterFor(CONSTRUCTOR_NAME);
24051
23817
  var define = function(that, key, value) {
24052
23818
  var state = getInternalState2(that);
24053
23819
  var data2 = getWeakData(anObject(key), true);
24054
- if (data2 === true)
24055
- uncaughtFrozenStore(state).set(key, value);
24056
- else
24057
- data2[state.id] = value;
23820
+ if (data2 === true) uncaughtFrozenStore(state).set(key, value);
23821
+ else data2[state.id] = value;
24058
23822
  return that;
24059
23823
  };
24060
23824
  defineBuiltIns$1(Prototype, {
@@ -24063,11 +23827,9 @@ var collectionWeak$1 = {
24063
23827
  // https://tc39.es/ecma262/#sec-weakset.prototype.delete
24064
23828
  "delete": function(key) {
24065
23829
  var state = getInternalState2(this);
24066
- if (!isObject$1(key))
24067
- return false;
23830
+ if (!isObject$1(key)) return false;
24068
23831
  var data2 = getWeakData(key);
24069
- if (data2 === true)
24070
- return uncaughtFrozenStore(state)["delete"](key);
23832
+ if (data2 === true) return uncaughtFrozenStore(state)["delete"](key);
24071
23833
  return data2 && hasOwn2(data2, state.id) && delete data2[state.id];
24072
23834
  },
24073
23835
  // `{ WeakMap, WeakSet }.prototype.has(key)` methods
@@ -24075,11 +23837,9 @@ var collectionWeak$1 = {
24075
23837
  // https://tc39.es/ecma262/#sec-weakset.prototype.has
24076
23838
  has: function has2(key) {
24077
23839
  var state = getInternalState2(this);
24078
- if (!isObject$1(key))
24079
- return false;
23840
+ if (!isObject$1(key)) return false;
24080
23841
  var data2 = getWeakData(key);
24081
- if (data2 === true)
24082
- return uncaughtFrozenStore(state).has(key);
23842
+ if (data2 === true) return uncaughtFrozenStore(state).has(key);
24083
23843
  return data2 && hasOwn2(data2, state.id);
24084
23844
  }
24085
23845
  });
@@ -24090,8 +23850,7 @@ var collectionWeak$1 = {
24090
23850
  var state = getInternalState2(this);
24091
23851
  if (isObject$1(key)) {
24092
23852
  var data2 = getWeakData(key);
24093
- if (data2 === true)
24094
- return uncaughtFrozenStore(state).get(key);
23853
+ if (data2 === true) return uncaughtFrozenStore(state).get(key);
24095
23854
  return data2 ? data2[state.id] : void 0;
24096
23855
  }
24097
23856
  },
@@ -24158,8 +23917,7 @@ if (NATIVE_WEAK_MAP) {
24158
23917
  "delete": function(key) {
24159
23918
  if (isObject(key) && !isExtensible2(key)) {
24160
23919
  var state = enforceInternalState(this);
24161
- if (!state.frozen)
24162
- state.frozen = new InternalWeakMap();
23920
+ if (!state.frozen) state.frozen = new InternalWeakMap();
24163
23921
  return nativeDelete(this, key) || state.frozen["delete"](key);
24164
23922
  }
24165
23923
  return nativeDelete(this, key);
@@ -24167,8 +23925,7 @@ if (NATIVE_WEAK_MAP) {
24167
23925
  has: function has2(key) {
24168
23926
  if (isObject(key) && !isExtensible2(key)) {
24169
23927
  var state = enforceInternalState(this);
24170
- if (!state.frozen)
24171
- state.frozen = new InternalWeakMap();
23928
+ if (!state.frozen) state.frozen = new InternalWeakMap();
24172
23929
  return nativeHas(this, key) || state.frozen.has(key);
24173
23930
  }
24174
23931
  return nativeHas(this, key);
@@ -24176,8 +23933,7 @@ if (NATIVE_WEAK_MAP) {
24176
23933
  get: function get2(key) {
24177
23934
  if (isObject(key) && !isExtensible2(key)) {
24178
23935
  var state = enforceInternalState(this);
24179
- if (!state.frozen)
24180
- state.frozen = new InternalWeakMap();
23936
+ if (!state.frozen) state.frozen = new InternalWeakMap();
24181
23937
  return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
24182
23938
  }
24183
23939
  return nativeGet(this, key);
@@ -24185,11 +23941,9 @@ if (NATIVE_WEAK_MAP) {
24185
23941
  set: function set2(key, value) {
24186
23942
  if (isObject(key) && !isExtensible2(key)) {
24187
23943
  var state = enforceInternalState(this);
24188
- if (!state.frozen)
24189
- state.frozen = new InternalWeakMap();
23944
+ if (!state.frozen) state.frozen = new InternalWeakMap();
24190
23945
  nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
24191
- } else
24192
- nativeSet(this, key, value);
23946
+ } else nativeSet(this, key, value);
24193
23947
  return this;
24194
23948
  }
24195
23949
  });
@@ -24198,16 +23952,12 @@ if (NATIVE_WEAK_MAP) {
24198
23952
  set: function set2(key, value) {
24199
23953
  var arrayIntegrityLevel;
24200
23954
  if (isArray2(key)) {
24201
- if (isFrozen(key))
24202
- arrayIntegrityLevel = FROZEN;
24203
- else if (isSealed(key))
24204
- arrayIntegrityLevel = SEALED;
23955
+ if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
23956
+ else if (isSealed(key)) arrayIntegrityLevel = SEALED;
24205
23957
  }
24206
23958
  nativeSet(this, key, value);
24207
- if (arrayIntegrityLevel === FROZEN)
24208
- freeze(key);
24209
- if (arrayIntegrityLevel === SEALED)
24210
- seal(key);
23959
+ if (arrayIntegrityLevel === FROZEN) freeze(key);
23960
+ if (arrayIntegrityLevel === SEALED) seal(key);
24211
23961
  return this;
24212
23962
  }
24213
23963
  });
@@ -24223,19 +23973,14 @@ var weakMap$1 = parent$1;
24223
23973
  var weakMap = weakMap$1;
24224
23974
  var _WeakMap = /* @__PURE__ */ getDefaultExportFromCjs(weakMap);
24225
23975
  function __classPrivateFieldGet(receiver, state, kind, f) {
24226
- if (kind === "a" && !f)
24227
- throw new TypeError("Private accessor was defined without a getter");
24228
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
24229
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
23976
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
23977
+ 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");
24230
23978
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
24231
23979
  }
24232
23980
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
24233
- if (kind === "m")
24234
- throw new TypeError("Private method is not writable");
24235
- if (kind === "a" && !f)
24236
- throw new TypeError("Private accessor was defined without a setter");
24237
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
24238
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
23981
+ if (kind === "m") throw new TypeError("Private method is not writable");
23982
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
23983
+ 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");
24239
23984
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
24240
23985
  }
24241
23986
  var _SingleTypeSelectionAccumulator_previousSelection;
@@ -24903,8 +24648,7 @@ var SelectionHandler = class {
24903
24648
  */
24904
24649
  selectNodes(selection) {
24905
24650
  let highlightEdges = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
24906
- if (!selection || selection.length === void 0)
24907
- throw "Selection must be an array with ids";
24651
+ if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
24908
24652
  this.setSelection({
24909
24653
  nodes: selection
24910
24654
  }, {
@@ -24917,8 +24661,7 @@ var SelectionHandler = class {
24917
24661
  * selected nodes.
24918
24662
  */
24919
24663
  selectEdges(selection) {
24920
- if (!selection || selection.length === void 0)
24921
- throw "Selection must be an array with ids";
24664
+ if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
24922
24665
  this.setSelection({
24923
24666
  edges: selection
24924
24667
  });
@@ -25364,8 +25107,7 @@ var HierarchicalStatus = class {
25364
25107
  * @param {string|number} treeId
25365
25108
  */
25366
25109
  setTreeIndex(node, treeId) {
25367
- if (treeId === void 0)
25368
- return;
25110
+ if (treeId === void 0) return;
25369
25111
  if (this.trees[node.id] === void 0) {
25370
25112
  this.trees[node.id] = treeId;
25371
25113
  this.treeIndex = Math.max(treeId, this.treeIndex);
@@ -26017,8 +25759,7 @@ var LayoutEngine = class {
26017
25759
  if (offset < 0) {
26018
25760
  _this._shiftBlock(node2.id, offset);
26019
25761
  stillShifting = true;
26020
- if (centerParent === true)
26021
- _this._centerParent(node2);
25762
+ if (centerParent === true) _this._centerParent(node2);
26022
25763
  }
26023
25764
  }
26024
25765
  }
@@ -26148,8 +25889,7 @@ var LayoutEngine = class {
26148
25889
  };
26149
25890
  const centerAllParents = () => {
26150
25891
  for (const nodeId in this.body.nodes) {
26151
- if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
26152
- this._centerParent(this.body.nodes[nodeId]);
25892
+ if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) this._centerParent(this.body.nodes[nodeId]);
26153
25893
  }
26154
25894
  };
26155
25895
  const centerAllParentsBottomUp = () => {
@@ -26315,8 +26055,7 @@ var LayoutEngine = class {
26315
26055
  * @private
26316
26056
  */
26317
26057
  _validatePositionAndContinue(node, level, pos) {
26318
- if (!this.hierarchical.isTree)
26319
- return;
26058
+ if (!this.hierarchical.isTree) return;
26320
26059
  if (this.lastNodeOnLevel[level] !== void 0) {
26321
26060
  const previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);
26322
26061
  if (pos - previousPos < this.options.hierarchical.nodeSpacing) {
@@ -26412,8 +26151,7 @@ var LayoutEngine = class {
26412
26151
  const hubSizes = this._getHubSizes();
26413
26152
  for (let i = 0; i < hubSizes.length; ++i) {
26414
26153
  const hubSize = hubSizes[i];
26415
- if (hubSize === 0)
26416
- break;
26154
+ if (hubSize === 0) break;
26417
26155
  forEach$1(this.body.nodeIndices, (nodeId) => {
26418
26156
  const node = this.body.nodes[nodeId];
26419
26157
  if (hubSize === this._getActiveEdges(node).length) {
@@ -29750,13 +29488,11 @@ Network.prototype.destroy = function() {
29750
29488
  delete this.configurator;
29751
29489
  delete this.images;
29752
29490
  for (const nodeId in this.body.nodes) {
29753
- if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
29754
- continue;
29491
+ if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;
29755
29492
  delete this.body.nodes[nodeId];
29756
29493
  }
29757
29494
  for (const edgeId in this.body.edges) {
29758
- if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId))
29759
- continue;
29495
+ if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;
29760
29496
  delete this.body.edges[edgeId];
29761
29497
  }
29762
29498
  recursiveDOMDelete(this.body.container);
@@ -29963,48 +29699,22 @@ Network.prototype.getOptionsFromConfigurator = function() {
29963
29699
  return options;
29964
29700
  };
29965
29701
 
29966
- // src/themeUtils.js
29702
+ // src/themeUtils.ts
29967
29703
  function getCurrentTheme() {
29968
29704
  return document.documentElement.getAttribute("data-theme") || "light";
29969
29705
  }
29970
29706
  function getThemeNodeColors(theme) {
29971
- if (theme === "dark") {
29972
- return {
29973
- uri: "#97C2FC",
29974
- // Light blue for URIs
29975
- literal: "#a6c8a6ff",
29976
- // Light green for literals
29977
- blankNode: "#888888",
29978
- // Medium grey for blank nodes (darker than light mode)
29979
- typeObject: "#e15b13ff",
29980
- // Orange for rdf:type objects
29981
- text: "#e0e0e0",
29982
- // Light text for dark backgrounds
29983
- edge: "#666666",
29984
- // Darker edges
29985
- edgeLabel: "#cccccc",
29986
- // Lighter edge labels
29987
- edgeLabelBackground: "rgba(30, 30, 30, 0.8)"
29988
- // Dark semi-transparent background
29989
- };
29990
- }
29707
+ const styles = getComputedStyle(document.documentElement);
29991
29708
  return {
29992
- uri: "#97C2FC",
29993
- // Light blue for URIs
29994
- literal: "#a6c8a6ff",
29995
- // Light green for literals
29996
- blankNode: "#c5c5c5ff",
29997
- // Light grey for blank nodes
29998
- typeObject: "#e15b13ff",
29999
- // Orange for rdf:type objects
30000
- text: "#000000",
30001
- // Black text
30002
- edge: "#cccccc",
30003
- // Light grey edges
30004
- edgeLabel: "#666666",
30005
- // Dark grey edge labels
30006
- edgeLabelBackground: "rgba(255, 255, 255, 0.8)"
30007
- // Light semi-transparent background
29709
+ uri: styles.getPropertyValue("--yasgui-graph-uri").trim() || "#97C2FC",
29710
+ literal: styles.getPropertyValue("--yasgui-graph-literal").trim() || "#a6c8a6ff",
29711
+ blankNode: styles.getPropertyValue("--yasgui-graph-blank-node").trim() || (theme === "dark" ? "#888888" : "#c5c5c5ff"),
29712
+ typeObject: styles.getPropertyValue("--yasgui-graph-type-object").trim() || "#e15b13ff",
29713
+ text: styles.getPropertyValue("--yasgui-graph-text").trim() || (theme === "dark" ? "#e0e0e0" : "#000000"),
29714
+ edge: styles.getPropertyValue("--yasgui-graph-edge").trim() || (theme === "dark" ? "#666666" : "#cccccc"),
29715
+ edgeLabel: styles.getPropertyValue("--yasgui-graph-edge-label").trim() || (theme === "dark" ? "#cccccc" : "#666666"),
29716
+ edgeLabelBackground: styles.getPropertyValue("--yasgui-graph-edge-label-bg").trim() || (theme === "dark" ? "rgba(30, 30, 30, 0.8)" : "rgba(255, 255, 255, 0.8)"),
29717
+ background: styles.getPropertyValue("--yasgui-graph-background").trim() || (theme === "dark" ? "#1e1e1e" : "#ffffff")
30008
29718
  };
30009
29719
  }
30010
29720
  function watchThemeChanges(callback) {
@@ -30023,16 +29733,17 @@ function watchThemeChanges(callback) {
30023
29733
  return observer;
30024
29734
  }
30025
29735
 
30026
- // src/GraphPlugin.js
30027
- function getVisNetwork() {
30028
- return { Network, DataSet };
30029
- }
29736
+ // src/GraphPlugin.ts
30030
29737
  var GraphPlugin = class {
30031
29738
  constructor(yasr) {
30032
29739
  this.yasr = yasr;
30033
29740
  this.network = null;
30034
29741
  this.currentTheme = getCurrentTheme();
30035
29742
  this.themeObserver = null;
29743
+ this.nodesDataSet = null;
29744
+ this.edgesDataSet = null;
29745
+ this.triples = null;
29746
+ this.prefixMap = null;
30036
29747
  }
30037
29748
  /**
30038
29749
  * Plugin priority (higher = shown first in tabs)
@@ -30048,11 +29759,10 @@ var GraphPlugin = class {
30048
29759
  }
30049
29760
  /**
30050
29761
  * Check if plugin can handle the current results
30051
- * @returns {boolean} True if results are from CONSTRUCT or DESCRIBE query
29762
+ * @returns True if results are from CONSTRUCT or DESCRIBE query
30052
29763
  */
30053
29764
  canHandleResults() {
30054
- if (!this.yasr || !this.yasr.results)
30055
- return false;
29765
+ if (!this.yasr || !this.yasr.results) return false;
30056
29766
  const results = this.yasr.results;
30057
29767
  if (results.getBindings && typeof results.getBindings === "function") {
30058
29768
  const bindings = results.getBindings();
@@ -30069,44 +29779,37 @@ var GraphPlugin = class {
30069
29779
  draw() {
30070
29780
  this.yasr.resultsEl.innerHTML = "";
30071
29781
  try {
30072
- const triples = parseConstructResults(this.yasr.results);
30073
- if (!triples || triples.length === 0) {
30074
- this.yasr.resultsEl.innerHTML = '<div style="padding: 20px; text-align: center; color: #666;">No graph data to visualize</div>';
29782
+ this.triples = parseConstructResults(this.yasr.results);
29783
+ if (!this.triples || this.triples.length === 0) {
29784
+ const emptyDiv = document.createElement("div");
29785
+ emptyDiv.className = "yasgui-graph-plugin-empty-state";
29786
+ emptyDiv.textContent = "No graph data to visualize";
29787
+ this.yasr.resultsEl.appendChild(emptyDiv);
30075
29788
  return;
30076
29789
  }
30077
- const prefixMap = extractPrefixes(this.yasr);
29790
+ if (this.triples.length > 1e3) {
29791
+ console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
29792
+ }
29793
+ this.prefixMap = extractPrefixes(this.yasr);
30078
29794
  this.currentTheme = getCurrentTheme();
30079
29795
  const themeColors = getThemeNodeColors(this.currentTheme);
30080
- const { nodes, edges } = triplesToGraph(triples, prefixMap, themeColors);
29796
+ const { nodes, edges } = triplesToGraph(this.triples, this.prefixMap, themeColors);
30081
29797
  const container = document.createElement("div");
29798
+ container.className = "yasgui-graph-plugin-container";
30082
29799
  container.id = "yasgui-graph-plugin-container";
30083
- container.style.width = "100%";
30084
- container.style.minHeight = "500px";
30085
- container.style.height = "100%";
30086
- container.style.position = "relative";
30087
- container.style.overflow = "hidden";
30088
29800
  this.yasr.resultsEl.appendChild(container);
30089
- const { Network: Network2, DataSet: DataSet2 } = getVisNetwork();
30090
- const nodesDataSet = new DataSet2(nodes);
30091
- const edgesDataSet = new DataSet2(edges);
29801
+ this.nodesDataSet = new DataSet(nodes);
29802
+ this.edgesDataSet = new DataSet(edges);
30092
29803
  const options = getDefaultNetworkOptions(themeColors);
30093
- this.nodesDataSet = nodesDataSet;
30094
- this.edgesDataSet = edgesDataSet;
30095
- this.triples = triples;
30096
- this.prefixMap = prefixMap;
30097
- this.network = new Network2(
29804
+ this.network = new Network(
30098
29805
  container,
30099
- { nodes: nodesDataSet, edges: edgesDataSet },
29806
+ { nodes: this.nodesDataSet, edges: this.edgesDataSet },
30100
29807
  options
30101
29808
  );
30102
- this.network.once("afterDrawing", () => {
30103
- const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
30104
- container.style.height = isHorizontal ? "80vh" : "50vh";
30105
- });
30106
- this.networkReady = false;
29809
+ this.applyCanvasBackground(themeColors.background);
30107
29810
  this.network.on("stabilizationIterationsDone", () => {
30108
29811
  this.network.setOptions({ physics: { enabled: true } });
30109
- this.networkReady = true;
29812
+ this.network.fit({ maxZoomLevel: 1e3 });
30110
29813
  });
30111
29814
  if (!this.themeObserver) {
30112
29815
  this.themeObserver = watchThemeChanges((newTheme) => {
@@ -30114,43 +29817,28 @@ var GraphPlugin = class {
30114
29817
  });
30115
29818
  }
30116
29819
  const controls = document.createElement("div");
30117
- controls.style.position = "absolute";
30118
- controls.style.top = "10px";
30119
- controls.style.right = "10px";
30120
- controls.style.zIndex = "10000";
30121
- controls.style.display = "flex";
30122
- controls.style.gap = "10px";
30123
- controls.style.pointerEvents = "auto";
29820
+ controls.className = "yasgui-graph-controls";
30124
29821
  container.appendChild(controls);
30125
29822
  const fitButton = document.createElement("button");
29823
+ fitButton.className = "yasgui-graph-button";
30126
29824
  fitButton.textContent = "Zoom to Fit";
30127
- fitButton.style.padding = "8px 12px";
30128
- fitButton.style.background = "#4CAF50";
30129
- fitButton.style.color = "white";
30130
- fitButton.style.border = "none";
30131
- fitButton.style.borderRadius = "4px";
30132
- fitButton.style.cursor = "pointer";
30133
- fitButton.style.fontSize = "14px";
30134
- fitButton.style.boxShadow = "0 2px 4px rgba(0,0,0,0.2)";
30135
- fitButton.onmouseover = () => fitButton.style.background = "#45a049";
30136
- fitButton.onmouseout = () => fitButton.style.background = "#4CAF50";
30137
29825
  fitButton.onclick = () => {
30138
29826
  if (this.network) {
30139
- this.network.fit({ animation: { duration: 300, easingFunction: "easeInOutQuad" } });
29827
+ this.network.fit({ maxZoomLevel: 1e3, animation: { duration: 300, easingFunction: "easeInOutQuad" } });
30140
29828
  }
30141
29829
  };
30142
29830
  controls.appendChild(fitButton);
30143
- if (triples.length > 1e3) {
30144
- console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
30145
- }
30146
29831
  } catch (error) {
30147
29832
  console.error("Error rendering graph:", error);
30148
- this.yasr.resultsEl.innerHTML = '<div style="padding: 20px; color: red;">Error rendering graph. See console for details.</div>';
29833
+ const errorDiv = document.createElement("div");
29834
+ errorDiv.className = "yasgui-graph-plugin-error";
29835
+ errorDiv.textContent = "Error rendering graph. See console for details.";
29836
+ this.yasr.resultsEl.appendChild(errorDiv);
30149
29837
  }
30150
29838
  }
30151
29839
  /**
30152
29840
  * Apply theme to existing network
30153
- * @param {string} newTheme - 'light' or 'dark'
29841
+ * @param newTheme - 'light' or 'dark'
30154
29842
  */
30155
29843
  applyTheme(newTheme) {
30156
29844
  if (!this.network || !this.nodesDataSet || !this.triples || !this.prefixMap) {
@@ -30165,17 +29853,25 @@ var GraphPlugin = class {
30165
29853
  this.edgesDataSet.add(edges);
30166
29854
  const options = getDefaultNetworkOptions(themeColors);
30167
29855
  this.network.setOptions(options);
29856
+ this.applyCanvasBackground(themeColors.background);
29857
+ }
29858
+ /**
29859
+ * Apply background color to vis-network canvas using CSS custom property
29860
+ * @param color - Background color
29861
+ */
29862
+ applyCanvasBackground(color) {
29863
+ if (this.network && this.network.body && this.network.body.container) {
29864
+ this.network.body.container.style.setProperty("--yasgui-graph-canvas-bg", color);
29865
+ }
30168
29866
  }
30169
29867
  /**
30170
29868
  * Get icon for plugin tab
30171
- * @returns {Element} Icon element
29869
+ * @returns Icon element
30172
29870
  */
30173
29871
  getIcon() {
30174
29872
  const icon = document.createElement("div");
29873
+ icon.className = "yasgui-graph-icon";
30175
29874
  icon.setAttribute("aria-label", "Graph visualization");
30176
- icon.style.display = "inline-flex";
30177
- icon.style.alignItems = "center";
30178
- icon.style.justifyContent = "center";
30179
29875
  icon.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
30180
29876
  <circle cx="3" cy="3" r="2" />
30181
29877
  <circle cx="13" cy="3" r="2" />
@@ -30202,11 +29898,11 @@ var GraphPlugin = class {
30202
29898
  };
30203
29899
  var GraphPlugin_default = GraphPlugin;
30204
29900
 
30205
- // src/index.js
29901
+ // src/index.ts
30206
29902
  if (typeof window !== "undefined" && window.Yasgui && window.Yasgui.Yasr) {
30207
29903
  window.Yasgui.Yasr.registerPlugin("Graph", GraphPlugin_default);
30208
29904
  }
30209
- var src_default = GraphPlugin_default;
29905
+ var index_default = GraphPlugin_default;
30210
29906
  /*! Bundled license information:
30211
29907
 
30212
29908
  vis-network/standalone/esm/vis-network.js: