@fallen-8/studio 0.0.36 → 0.0.37

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.
Files changed (30) hide show
  1. package/dist-lib/{Canvas3D-BXYc6PEP.js → Canvas3D-CmDAo5BT.js} +1 -1
  2. package/dist-lib/{F8GraphCanvas-Ckq0NuuE.js → F8GraphCanvas-COQKIUas.js} +819 -811
  3. package/dist-lib/canvas.js +1 -1
  4. package/dist-lib/{cssMode-nGncvC5m.js → cssMode-Cm-p9yGb.js} +1 -1
  5. package/dist-lib/f8-studio.css +1 -1
  6. package/dist-lib/f8-studio.js +2 -2
  7. package/dist-lib/{freemarker2-CP74sa8J.js → freemarker2-DU-Ctapi.js} +1 -1
  8. package/dist-lib/{handlebars-QALLOIn0.js → handlebars-BsqZtC5a.js} +1 -1
  9. package/dist-lib/{html-85a-cm74.js → html-CUyknR5b.js} +1 -1
  10. package/dist-lib/{htmlMode-BgQACh7e.js → htmlMode-DjyPljE2.js} +1 -1
  11. package/dist-lib/{index-CQF9rZdm.js → index-BQbFjItv.js} +14776 -14701
  12. package/dist-lib/{javascript-C5gSrEJX.js → javascript-CVQBymBa.js} +1 -1
  13. package/dist-lib/{jsonMode-CPyHCN9i.js → jsonMode-B3hcJ0l3.js} +1 -1
  14. package/dist-lib/{liquid-C-WFafiu.js → liquid-DLrt4Cls.js} +1 -1
  15. package/dist-lib/{mdx-Cqij6eG9.js → mdx-DePkemui.js} +1 -1
  16. package/dist-lib/{python-DxKmSiUE.js → python-CUe0bWsE.js} +1 -1
  17. package/dist-lib/{razor-C_PJXRiv.js → razor-DD_zUh3z.js} +1 -1
  18. package/dist-lib/{tsMode-BPfWv0l3.js → tsMode-Ae3UtOmp.js} +1 -1
  19. package/dist-lib/types/app/nav.d.ts +2 -7
  20. package/dist-lib/types/app/routes.d.ts +7 -2
  21. package/dist-lib/types/components/StoredQueriesPanel.d.ts +16 -11
  22. package/dist-lib/types/components/StoredQueryControls.d.ts +3 -4
  23. package/dist-lib/types/lib/storedQueries.d.ts +10 -0
  24. package/dist-lib/types/screens/PathScreen.d.ts +3 -0
  25. package/dist-lib/types/screens/TraverseScreen.d.ts +1 -0
  26. package/dist-lib/types/state/instanceStore.d.ts +21 -0
  27. package/dist-lib/{typescript-CmUu7z19.js → typescript-LNGesWYR.js} +1 -1
  28. package/dist-lib/{xml-BID2APnO.js → xml-BuD_-6ib.js} +1 -1
  29. package/dist-lib/{yaml-CpQ-mN6F.js → yaml-DCzPbyTS.js} +1 -1
  30. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { jsxs as va, jsx as We } from "react/jsx-runtime";
2
- import Dt, { createContext as hi, useContext as di, useRef as Be, useEffect as Qe, useImperativeHandle as fi, lazy as ma, useMemo as an, Suspense as ya } from "react";
1
+ import { jsxs as ma, jsx as We } from "react/jsx-runtime";
2
+ import Dt, { createContext as di, useContext as fi, useRef as Be, useEffect as Qe, useImperativeHandle as gi, lazy as ya, useMemo as an, Suspense as ba } from "react";
3
3
  const on = (n) => {
4
4
  let r;
5
5
  const t = /* @__PURE__ */ new Set(), e = (l, c) => {
@@ -10,8 +10,8 @@ const on = (n) => {
10
10
  }
11
11
  }, i = () => r, s = { setState: e, getState: i, getInitialState: () => u, subscribe: (l) => (t.add(l), () => t.delete(l)) }, u = r = n(e, i, s);
12
12
  return s;
13
- }, ba = ((n) => n ? on(n) : on), wa = (n) => n;
14
- function Ea(n, r = wa) {
13
+ }, wa = ((n) => n ? on(n) : on), Ea = (n) => n;
14
+ function _a(n, r = Ea) {
15
15
  const t = Dt.useSyncExternalStore(
16
16
  n.subscribe,
17
17
  Dt.useCallback(() => r(n.getState()), [n, r]),
@@ -19,11 +19,11 @@ function Ea(n, r = wa) {
19
19
  );
20
20
  return Dt.useDebugValue(t), t;
21
21
  }
22
- const _a = (n) => {
23
- const r = ba(n), t = (e) => Ea(r, e);
22
+ const Ta = (n) => {
23
+ const r = wa(n), t = (e) => _a(r, e);
24
24
  return Object.assign(t, r), t;
25
- }, gi = ((n) => _a);
26
- function Ta(n, r) {
25
+ }, pi = ((n) => Ta);
26
+ function Sa(n, r) {
27
27
  let t;
28
28
  try {
29
29
  t = n();
@@ -61,9 +61,9 @@ const _r = (n) => (r) => {
61
61
  }
62
62
  };
63
63
  }
64
- }, Sa = (n, r) => (t, e, i) => {
64
+ }, Ra = (n, r) => (t, e, i) => {
65
65
  let a = {
66
- storage: Ta(() => window.localStorage),
66
+ storage: Sa(() => window.localStorage),
67
67
  partialize: (w) => w,
68
68
  version: 0,
69
69
  merge: (w, k) => ({
@@ -160,7 +160,7 @@ const _r = (n) => (r) => {
160
160
  l.delete(w);
161
161
  })
162
162
  }, a.skipHydration || R(), b || y;
163
- }, Ra = Sa, Tr = {
163
+ }, Aa = Ra, Tr = {
164
164
  renderer: "2d",
165
165
  layout2d: "force",
166
166
  layout3d: "force",
@@ -181,7 +181,7 @@ const _r = (n) => (r) => {
181
181
  // persisted copy winning, so a magnitude written here would be frozen into every existing
182
182
  // workspace's local storage and would then outrank the documented default forever.
183
183
  };
184
- function Aa(n) {
184
+ function ka(n) {
185
185
  const r = n.trim();
186
186
  if (!r) return { ok: !1, error: "empty" };
187
187
  let t;
@@ -211,20 +211,20 @@ const $r = {
211
211
  queryText: "",
212
212
  embeddingName: "default",
213
213
  metric: "Cosine"
214
- }, pi = {
214
+ }, vi = {
215
215
  ...$r,
216
216
  enabled: !1,
217
217
  minScoreEnabled: !1,
218
218
  minScore: "0.7",
219
219
  costBySimilarity: !1
220
220
  };
221
- function ec(n) {
221
+ function nc(n) {
222
222
  return n.enabled && (n.minScoreEnabled || n.costBySimilarity);
223
223
  }
224
- function tc(n) {
224
+ function ic(n) {
225
225
  return n.enabled && n.costBySimilarity;
226
226
  }
227
- function ka(n, r) {
227
+ function Ca(n, r) {
228
228
  const t = {
229
229
  embeddingName: n.embeddingName.trim() || void 0,
230
230
  metric: n.metric
@@ -239,31 +239,31 @@ function ka(n, r) {
239
239
  return { ok: !1, error: "enter query text (or switch to a pasted vector)." };
240
240
  t.queryText = n.queryText;
241
241
  } else {
242
- const e = Aa(n.vectorText);
242
+ const e = ka(n.vectorText);
243
243
  if (!e.ok)
244
244
  return { ok: !1, error: `query vector: ${e.error}.` };
245
245
  t.queryVector = e.vector;
246
246
  }
247
247
  return { ok: !0, spec: t };
248
248
  }
249
- function rc(n) {
249
+ function ac(n) {
250
250
  const r = n.trim();
251
251
  if (!r)
252
252
  return;
253
253
  const t = Number(r);
254
254
  return Number.isFinite(t) ? t : void 0;
255
255
  }
256
- function nc(n) {
256
+ function oc(n) {
257
257
  const r = n.metric === "L2" ? "≤" : "≥", t = [`${n.metric} over '${n.embeddingName}' (d=${n.dimension})`];
258
258
  n.minScore != null && t.push(`pre-filter ${r} ${n.minScore}`);
259
259
  for (const e of n.patternThresholds ?? [])
260
260
  t.push(`step ${e.pattern} ${r} ${e.minScore}`);
261
261
  return n.queryText && t.push(`from text "${n.queryText}"`), t.push("bound at creation — recalculate reuses the stored vector"), t.join(" · ");
262
262
  }
263
- function ic(n, r) {
263
+ function sc(n, r) {
264
264
  if (!n.enabled)
265
265
  return { ok: !0, spec: void 0 };
266
- const t = ka(n, { providerEnabled: r.providerEnabled });
266
+ const t = Ca(n, { providerEnabled: r.providerEnabled });
267
267
  if (!t.ok)
268
268
  return t;
269
269
  const e = t.spec;
@@ -298,13 +298,13 @@ const Sr = [
298
298
  labels: [],
299
299
  keys: []
300
300
  };
301
- function ac(n, r) {
301
+ function uc(n, r) {
302
302
  return n.kind === "resync" ? !0 : !(!r.kinds.includes(n.kind) || n.element !== void 0 && !r.elements.includes(n.element) || r.labels.length > 0 && (n.label === void 0 || !r.labels.includes(n.label)) || r.keys.length > 0 && (n.key === void 0 || !r.keys.includes(n.key)));
303
303
  }
304
- function oc(n) {
304
+ function lc(n) {
305
305
  return n.kinds.length > 0 && n.elements.length > 0;
306
306
  }
307
- function sc(n) {
307
+ function cc(n) {
308
308
  return {
309
309
  kinds: n.kinds.length === Sr.length ? void 0 : Sr.filter((r) => n.kinds.includes(r)),
310
310
  elements: n.elements.length === Rr.length ? void 0 : Rr.filter((r) => n.elements.includes(r)),
@@ -316,10 +316,10 @@ function He(n, r) {
316
316
  const t = r === void 0 ? n : `${n}/${r}`;
317
317
  return t.endsWith("/default") ? t.slice(0, -8) : t;
318
318
  }
319
- const Ca = 100;
320
- let xa = 0;
321
- function Da() {
322
- return gi()((n) => ({
319
+ const xa = 100;
320
+ let Da = 0;
321
+ function La() {
322
+ return pi()((n) => ({
323
323
  entries: [],
324
324
  unread: 0,
325
325
  resyncSinceOpen: !1,
@@ -327,9 +327,9 @@ function Da() {
327
327
  lastEventId: null,
328
328
  record: (r, t) => n((e) => ({
329
329
  entries: [
330
- { key: ++xa, event: r, receivedAt: Date.now() },
330
+ { key: ++Da, event: r, receivedAt: Date.now() },
331
331
  ...e.entries
332
- ].slice(0, Ca),
332
+ ].slice(0, xa),
333
333
  unread: !e.panelOpen && r.kind !== "resync" && t ? e.unread + 1 : e.unread,
334
334
  resyncSinceOpen: !e.panelOpen && r.kind === "resync" ? !0 : e.resyncSinceOpen
335
335
  })),
@@ -339,26 +339,26 @@ function Da() {
339
339
  }));
340
340
  }
341
341
  const xe = /* @__PURE__ */ new Map();
342
- function uc(n, r) {
342
+ function hc(n, r) {
343
343
  const t = He(n, r);
344
344
  let e = xe.get(t);
345
- return e || (e = Da(), xe.set(t, e)), e;
345
+ return e || (e = La(), xe.set(t, e)), e;
346
346
  }
347
- function La(n, r) {
347
+ function Ga(n, r) {
348
348
  const t = He(n, r);
349
349
  xe.get(t)?.getState().clear(), xe.delete(t);
350
350
  }
351
- function Ga(n) {
351
+ function Pa(n) {
352
352
  for (const [r, t] of [...xe.entries()])
353
353
  (r === n || r.startsWith(`${n}/`)) && (t.getState().clear(), xe.delete(r));
354
354
  }
355
- function Pa(n, r, t) {
355
+ function Ia(n, r, t) {
356
356
  const e = He(n, r), i = He(n, t);
357
357
  if (e === i) return;
358
358
  const a = xe.get(e);
359
359
  xe.get(i)?.getState().clear(), xe.delete(e), xe.delete(i), a && xe.set(i, a);
360
360
  }
361
- const Ia = {
361
+ const Fa = {
362
362
  ink: "--color-ink",
363
363
  panel: "--color-panel",
364
364
  panel2: "--color-panel-2",
@@ -373,17 +373,17 @@ const Ia = {
373
373
  fontMono: "--font-mono"
374
374
  };
375
375
  let _t = {}, wt = 0;
376
- function lc() {
376
+ function dc() {
377
377
  return _t;
378
378
  }
379
- function cc(n) {
379
+ function fc(n) {
380
380
  if (wt > 0 && n !== _t)
381
381
  throw new Error(
382
382
  "F8 Studio is already mounted. Two simultaneous Studio embeds are not supported (they share one instance registry and one set of persisted keys); unmount the first, or run the second in its own realm (iframe/worker)."
383
383
  );
384
384
  _t = n;
385
385
  }
386
- function hc() {
386
+ function gc() {
387
387
  if (wt > 0)
388
388
  throw new Error(
389
389
  "F8 Studio is already mounted. Two simultaneous Studio embeds are not supported (they share one instance registry and one set of persisted keys); unmount the first, or run the second in its own realm (iframe/worker)."
@@ -394,31 +394,31 @@ function hc() {
394
394
  n || (n = !0, wt -= 1);
395
395
  };
396
396
  }
397
- function dc() {
397
+ function pc() {
398
398
  wt === 0 && (_t = {});
399
399
  }
400
- function Fa(n) {
400
+ function Oa(n) {
401
401
  return `${_t.storageNamespace ?? ""}${n}`;
402
402
  }
403
- function Oa(n) {
403
+ function za(n) {
404
404
  const r = {};
405
405
  if (!n) return r;
406
406
  for (const [t, e] of Object.entries(n))
407
- e && (r[Ia[t]] = e);
407
+ e && (r[Fa[t]] = e);
408
408
  return r;
409
409
  }
410
- const za = hi({});
411
- function fc() {
412
- return di(za);
410
+ const Na = di({});
411
+ function vc() {
412
+ return fi(Na);
413
413
  }
414
- const Na = hi(void 0);
415
- function gc() {
416
- return di(Na);
414
+ const Ua = di(void 0);
415
+ function mc() {
416
+ return fi(Ua);
417
417
  }
418
- function Xe(n) {
419
- return Fa(`f8.workspace.${n}`);
418
+ function Ke(n) {
419
+ return Oa(`f8.workspace.${n}`);
420
420
  }
421
- function vi(n) {
421
+ function mi(n) {
422
422
  return n.label ?? n.edgePropertyId ?? null;
423
423
  }
424
424
  const un = 200;
@@ -430,7 +430,7 @@ function ln(n) {
430
430
  }
431
431
  return r;
432
432
  }
433
- function Ua(n, r, t) {
433
+ function $a(n, r, t) {
434
434
  const e = { ...t?.nodes ?? {} }, i = { ...t?.edges ?? {} };
435
435
  for (const a of n)
436
436
  e[a.id] = {
@@ -449,7 +449,7 @@ function Ua(n, r, t) {
449
449
  };
450
450
  return { nodes: e, edges: i };
451
451
  }
452
- const qt = {
452
+ const Ma = ["path", "subgraph", "stored"], cn = "path", Ba = (n) => typeof n == "string" && Ma.includes(n), yc = (n) => n === "SubGraph" ? "subgraph" : "path", qt = {
453
453
  from: "",
454
454
  to: "",
455
455
  algorithm: "BLS",
@@ -463,8 +463,8 @@ const qt = {
463
463
  edgeCost: "",
464
464
  filterSource: "inline",
465
465
  storedQuery: "",
466
- semantic: { ...pi }
467
- }, Xt = {
466
+ semantic: { ...vi }
467
+ }, Kt = {
468
468
  mode: "property",
469
469
  propertyScope: "key",
470
470
  propertyId: "",
@@ -499,7 +499,7 @@ const qt = {
499
499
  filterSource: "inline",
500
500
  storedQuery: "",
501
501
  semanticQuery: { ...$r }
502
- }, Kt = {
502
+ }, Xt = {
503
503
  idInput: "",
504
504
  lookupKind: "graphelement",
505
505
  maxElements: 1e3,
@@ -518,7 +518,7 @@ const qt = {
518
518
  showWriteBack: !1,
519
519
  writeBack: !1,
520
520
  writeBackKey: ""
521
- }, cn = {
521
+ }, hn = {
522
522
  tab: "style",
523
523
  findTerm: "",
524
524
  findLabel: "",
@@ -526,9 +526,9 @@ const qt = {
526
526
  connectMaxDepth: 3,
527
527
  connectScope: "all"
528
528
  };
529
- function $a(n) {
530
- return gi()(
531
- Ra(
529
+ function Wa(n) {
530
+ return pi()(
531
+ Aa(
532
532
  (r) => ({
533
533
  canvasNodes: {},
534
534
  canvasEdges: {},
@@ -537,17 +537,18 @@ function $a(n) {
537
537
  wholeGraphTruncation: null,
538
538
  resultSets: [],
539
539
  pathDraft: { ...qt },
540
- queryDraft: { ...Xt },
540
+ queryDraft: { ...Kt },
541
541
  subgraphDraft: { ...Lt },
542
- browserDraft: { ...Kt },
542
+ browserDraft: { ...Xt },
543
543
  analyticsDraft: { ...Yt },
544
- canvasToolsDraft: { ...cn },
544
+ canvasToolsDraft: { ...hn },
545
+ traverseTab: cn,
545
546
  scanPrefill: null,
546
547
  feedFilter: { ...sn },
547
548
  inspectPrefill: null,
548
549
  integrationWatch: null,
549
550
  mergeIntoCanvas: (t, e) => r((i) => {
550
- const a = Ua(t, e, {
551
+ const a = $a(t, e, {
551
552
  nodes: i.canvasNodes,
552
553
  edges: i.canvasEdges
553
554
  });
@@ -591,21 +592,22 @@ function $a(n) {
591
592
  setPathDraft: (t) => r((e) => ({ pathDraft: { ...e.pathDraft, ...t } })),
592
593
  resetPathDraft: () => r({ pathDraft: { ...qt } }),
593
594
  setQueryDraft: (t) => r((e) => ({ queryDraft: { ...e.queryDraft, ...t } })),
594
- resetQueryDraft: () => r({ queryDraft: { ...Xt } }),
595
+ resetQueryDraft: () => r({ queryDraft: { ...Kt } }),
595
596
  setSubgraphDraft: (t) => r((e) => ({ subgraphDraft: { ...e.subgraphDraft, ...t } })),
596
597
  resetSubgraphDraft: () => r({ subgraphDraft: { ...Lt } }),
597
598
  setBrowserDraft: (t) => r((e) => ({ browserDraft: { ...e.browserDraft, ...t } })),
598
- resetBrowserDraft: () => r({ browserDraft: { ...Kt } }),
599
+ resetBrowserDraft: () => r({ browserDraft: { ...Xt } }),
599
600
  setAnalyticsDraft: (t) => r((e) => ({ analyticsDraft: { ...e.analyticsDraft, ...t } })),
600
601
  resetAnalyticsDraft: () => r({ analyticsDraft: { ...Yt } }),
601
602
  setCanvasToolsDraft: (t) => r((e) => ({ canvasToolsDraft: { ...e.canvasToolsDraft, ...t } })),
603
+ setTraverseTab: (t) => r({ traverseTab: t }),
602
604
  setScanPrefill: (t) => r({ scanPrefill: t }),
603
605
  setFeedFilter: (t) => r((e) => ({ feedFilter: { ...e.feedFilter, ...t } })),
604
606
  setInspectPrefill: (t) => r({ inspectPrefill: t }),
605
607
  setIntegrationWatch: (t) => r({ integrationWatch: t })
606
608
  }),
607
609
  {
608
- name: Xe(n),
610
+ name: Ke(n),
609
611
  // One-shot navigation intents are session state: persisted, a never-consumed
610
612
  // one would fire a surprise lookup on a later session's first visit.
611
613
  partialize: ({ scanPrefill: r, inspectPrefill: t, ...e }) => e,
@@ -621,9 +623,9 @@ function $a(n) {
621
623
  ...e.pathDraft ?? {},
622
624
  // Nested draft added after some state was persisted: deep-default it too, so
623
625
  // an older pathDraft picks up every semantic field instead of a partial.
624
- semantic: { ...pi, ...e.pathDraft?.semantic ?? {} }
626
+ semantic: { ...vi, ...e.pathDraft?.semantic ?? {} }
625
627
  },
626
- queryDraft: { ...Xt, ...e.queryDraft ?? {} },
628
+ queryDraft: { ...Kt, ...e.queryDraft ?? {} },
627
629
  // A subgraph draft persisted before the slot-mode restructure (feature
628
630
  // subgraph-semantic-thresholds) carried a block-local `semantic` object and no
629
631
  // slot modes; it is RESET rather than migrated - a draft is a session
@@ -636,9 +638,12 @@ function $a(n) {
636
638
  ...e.subgraphDraft?.semanticQuery ?? {}
637
639
  }
638
640
  },
639
- browserDraft: { ...Kt, ...e.browserDraft ?? {} },
641
+ browserDraft: { ...Xt, ...e.browserDraft ?? {} },
640
642
  analyticsDraft: { ...Yt, ...e.analyticsDraft ?? {} },
641
- canvasToolsDraft: { ...cn, ...e.canvasToolsDraft ?? {} },
643
+ canvasToolsDraft: { ...hn, ...e.canvasToolsDraft ?? {} },
644
+ // Normalized, not trusted: a tab id this build does not know (hand-edited storage,
645
+ // a renamed tab) would leave the Traverse screen with every panel hidden.
646
+ traverseTab: Ba(e.traverseTab) ? e.traverseTab : cn,
642
647
  styleConfig: { ...Tr, ...e.styleConfig ?? {} },
643
648
  feedFilter: { ...sn, ...e.feedFilter ?? {} },
644
649
  // One-shots never rehydrate (see partialize); this also drops values
@@ -656,34 +661,34 @@ function $a(n) {
656
661
  );
657
662
  }
658
663
  const je = /* @__PURE__ */ new Map();
659
- function pc(n, r) {
664
+ function bc(n, r) {
660
665
  const t = He(n, r);
661
666
  let e = je.get(t);
662
- return e || (e = $a(t), je.set(t, e)), e;
667
+ return e || (e = Wa(t), je.set(t, e)), e;
663
668
  }
664
- function vc(n, r) {
669
+ function wc(n, r) {
665
670
  const t = He(n, r);
666
- je.delete(t), localStorage.removeItem(Xe(t)), La(n, r);
671
+ je.delete(t), localStorage.removeItem(Ke(t)), Ga(n, r);
667
672
  }
668
- function mc(n) {
673
+ function Ec(n) {
669
674
  for (const r of [...je.keys()])
670
675
  (r === n || r.startsWith(`${n}/`)) && je.delete(r);
671
676
  for (let r = localStorage.length - 1; r >= 0; r--) {
672
677
  const t = localStorage.key(r);
673
- (t === Xe(n) || t?.startsWith(Xe(`${n}/`))) && localStorage.removeItem(t);
678
+ (t === Ke(n) || t?.startsWith(Ke(`${n}/`))) && localStorage.removeItem(t);
674
679
  }
675
- Ga(n);
680
+ Pa(n);
676
681
  }
677
- function yc(n, r, t) {
682
+ function _c(n, r, t) {
678
683
  const e = He(n, r), i = He(n, t);
679
684
  if (e === i) return;
680
- const a = localStorage.getItem(Xe(e));
681
- a !== null && (localStorage.setItem(Xe(i), a), localStorage.removeItem(Xe(e))), je.delete(e), je.delete(i), Pa(n, r, t);
685
+ const a = localStorage.getItem(Ke(e));
686
+ a !== null && (localStorage.setItem(Ke(i), a), localStorage.removeItem(Ke(e))), je.delete(e), je.delete(i), Ia(n, r, t);
682
687
  }
683
- function bc() {
688
+ function Tc() {
684
689
  je.clear();
685
690
  }
686
- const hn = [
691
+ const dn = [
687
692
  "#4cc38a",
688
693
  // green
689
694
  "#58a6ff",
@@ -710,22 +715,22 @@ function Mt(n) {
710
715
  let r = 0;
711
716
  for (let t = 0; t < n.length; t++)
712
717
  r = r * 31 + n.charCodeAt(t) | 0;
713
- return hn[Math.abs(r) % hn.length];
718
+ return dn[Math.abs(r) % dn.length];
714
719
  }
715
- function mi(n) {
720
+ function yi(n) {
716
721
  return n == null || n === "" ? Tt : Mt(String(n));
717
722
  }
718
- const wc = "#39c5cf", Ec = "#f778ba";
719
- function Ma(n) {
723
+ const Sc = "#39c5cf", Rc = "#f778ba";
724
+ function Ha(n) {
720
725
  const r = Math.min(1, Math.max(0, n)), t = [57, 197, 207], e = [247, 120, 186];
721
726
  return `#${t.map((a, o) => Math.round(a + (e[o] - a) * r)).map((a) => a.toString(16).padStart(2, "0")).join("")}`;
722
727
  }
723
- const Ba = 5e3, Wa = {
728
+ const ja = 5e3, Va = {
724
729
  nodeIds: /* @__PURE__ */ new Set(),
725
730
  edgeIds: /* @__PURE__ */ new Set(),
726
731
  active: !1,
727
732
  dim: !1
728
- }, Mr = 5, Ha = [3, 14], ja = 1, Va = [0.5, 5], qa = 11, Xa = 9, Ka = 8, Ya = 3, Za = "#4cc38a", Qa = "#2a3240", Ja = "#1a2029", eo = "#2c3543";
733
+ }, Mr = 5, qa = [3, 14], Ka = 1, Xa = [0.5, 5], Ya = 11, Za = 9, Qa = 8, Ja = 3, eo = "#4cc38a", to = "#2a3240", ro = "#1a2029", no = "#2c3543";
729
734
  function tt(n, r) {
730
735
  return (n.props ?? {})[r];
731
736
  }
@@ -737,7 +742,7 @@ function St(n) {
737
742
  }
738
743
  return null;
739
744
  }
740
- function to(n) {
745
+ function io(n) {
741
746
  if (n == null || typeof n == "boolean") return null;
742
747
  const r = String(n).trim();
743
748
  return r ? /^(https?:\/\/|data:)/i.test(r) ? { kind: "url", value: r } : { kind: "emoji", value: [...r].slice(0, 8).join("") } : null;
@@ -756,7 +761,7 @@ function Ar(n, r, t) {
756
761
  }
757
762
  return { kind: "categorical", property: t };
758
763
  }
759
- function dn(n, r, t) {
764
+ function fn(n, r, t) {
760
765
  if (n.kind === "label") return t;
761
766
  const e = tt(r, n.property);
762
767
  if (e === void 0 || e === "") return Tt;
@@ -764,11 +769,11 @@ function dn(n, r, t) {
764
769
  const i = St(e);
765
770
  if (i === null) return Tt;
766
771
  const a = n.max - n.min;
767
- return Ma(a === 0 ? 0.5 : (i - n.min) / a);
772
+ return Ha(a === 0 ? 0.5 : (i - n.min) / a);
768
773
  }
769
- return mi(e);
774
+ return yi(e);
770
775
  }
771
- function fn(n, r, t) {
776
+ function gn(n, r, t) {
772
777
  const e = n.filter((u) => u !== null);
773
778
  if (e.length === 0) return () => t;
774
779
  const i = Math.min(...e), a = Math.max(...e), [o, s] = r;
@@ -784,32 +789,32 @@ function Rt(n) {
784
789
  function Gt(n, r) {
785
790
  return Rt(n) ? n : r;
786
791
  }
787
- function gn(n, r) {
792
+ function pn(n, r) {
788
793
  if (!n) return r;
789
794
  const [t, e] = n;
790
795
  return Rt(t) && Rt(e) ? n : r;
791
796
  }
792
- function ro(n, r) {
797
+ function ao(n, r) {
793
798
  const [t, e] = r;
794
799
  return Math.min(Math.max(n, Math.min(t, e)), Math.max(t, e));
795
800
  }
796
- function pn(n, r, t) {
797
- return Rt(n) ? r : ro(r, t);
801
+ function vn(n, r, t) {
802
+ return Rt(n) ? r : ao(r, t);
798
803
  }
799
- function no(n) {
800
- const r = Gt(n.nodeSize, Mr), t = gn(n.nodeSizeRange, Ha), e = Gt(n.edgeWidth, ja), i = gn(n.edgeWidthRange, Va);
804
+ function oo(n) {
805
+ const r = Gt(n.nodeSize, Mr), t = pn(n.nodeSizeRange, qa), e = Gt(n.edgeWidth, Ka), i = pn(n.edgeWidthRange, Xa);
801
806
  return {
802
807
  nodeSize: r,
803
808
  nodeSizeRange: t,
804
- nodeSizeFallback: pn(n.nodeSize, r, t),
809
+ nodeSizeFallback: vn(n.nodeSize, r, t),
805
810
  edgeWidth: e,
806
811
  edgeWidthRange: i,
807
- edgeWidthFallback: pn(n.edgeWidth, e, i),
808
- labelSize: Gt(n.labelSize, qa),
809
- edgeLabelSize: Gt(n.edgeLabelSize, Xa)
812
+ edgeWidthFallback: vn(n.edgeWidth, e, i),
813
+ labelSize: Gt(n.labelSize, Ya),
814
+ edgeLabelSize: Gt(n.edgeLabelSize, Za)
810
815
  };
811
816
  }
812
- function io(n) {
817
+ function so(n) {
813
818
  const r = /* @__PURE__ */ new Map(), t = (e) => {
814
819
  let i = r.get(e);
815
820
  return i || (i = { in: 0, out: 0 }, r.set(e, i)), i;
@@ -818,8 +823,8 @@ function io(n) {
818
823
  t(e.source).out++, t(e.target).in++;
819
824
  return r;
820
825
  }
821
- function ao(n, r, t, e) {
822
- const i = Object.values(n), a = Object.values(r), o = no(e), s = Ar(i, e.nodeColorMode, e.nodeColorProperty), u = Ar(a, e.edgeColorMode, e.edgeColorProperty), l = e.nodeSizeMode === "in-degree" || e.nodeSizeMode === "out-degree" || e.nodeSizeMode === "degree" ? io(a) : null, c = (w) => {
826
+ function uo(n, r, t, e) {
827
+ const i = Object.values(n), a = Object.values(r), o = oo(e), s = Ar(i, e.nodeColorMode, e.nodeColorProperty), u = Ar(a, e.edgeColorMode, e.edgeColorProperty), l = e.nodeSizeMode === "in-degree" || e.nodeSizeMode === "out-degree" || e.nodeSizeMode === "degree" ? so(a) : null, c = (w) => {
823
828
  switch (e.nodeSizeMode) {
824
829
  case "property":
825
830
  return e.nodeSizeProperty ? St(tt(w, e.nodeSizeProperty)) : null;
@@ -834,12 +839,12 @@ function ao(n, r, t, e) {
834
839
  default:
835
840
  return null;
836
841
  }
837
- }, h = e.nodeSizeMode === "fixed" ? () => o.nodeSize : fn(i.map(c), o.nodeSizeRange, o.nodeSizeFallback), v = (w) => e.edgeWidthMode === "property" && e.edgeWidthProperty ? St(tt(w, e.edgeWidthProperty)) : null, y = e.edgeWidthMode === "fixed" ? () => o.edgeWidth : fn(a.map(v), o.edgeWidthRange, o.edgeWidthFallback), b = {};
842
+ }, h = e.nodeSizeMode === "fixed" ? () => o.nodeSize : gn(i.map(c), o.nodeSizeRange, o.nodeSizeFallback), v = (w) => e.edgeWidthMode === "property" && e.edgeWidthProperty ? St(tt(w, e.edgeWidthProperty)) : null, y = e.edgeWidthMode === "fixed" ? () => o.edgeWidth : gn(a.map(v), o.edgeWidthRange, o.edgeWidthFallback), b = {};
838
843
  for (const w of i) {
839
- const k = t.nodeIds.has(w.id), E = t.active && t.dim && !k, m = h(c(w)), p = e.nodeImageProperty ? to(tt(w, e.nodeImageProperty)) : null;
844
+ const k = t.nodeIds.has(w.id), E = t.active && t.dim && !k, m = h(c(w)), p = e.nodeImageProperty ? io(tt(w, e.nodeImageProperty)) : null;
840
845
  b[w.id] = {
841
- color: E ? Qa : dn(s, w, Mt(w.label)),
842
- size: k ? Math.max(m, Ka) : m,
846
+ color: E ? to : fn(s, w, Mt(w.label)),
847
+ size: k ? Math.max(m, Qa) : m,
843
848
  // A dimmed image would still pop against the dim palette — suppress it (FR-9).
844
849
  image: E ? null : p,
845
850
  zIndex: k ? 2 : 1,
@@ -848,18 +853,18 @@ function ao(n, r, t, e) {
848
853
  }
849
854
  const R = {};
850
855
  for (const w of a) {
851
- const k = t.edgeIds.has(w.id), E = t.active && t.dim && !k, m = y(v(w)), p = vi(w), C = p ? Mt(p) : eo;
856
+ const k = t.edgeIds.has(w.id), E = t.active && t.dim && !k, m = y(v(w)), p = mi(w), C = p ? Mt(p) : no;
852
857
  R[w.id] = {
853
- color: k ? Za : E ? Ja : dn(u, w, C),
854
- width: k ? Math.max(m, Ya) : m,
858
+ color: k ? eo : E ? ro : fn(u, w, C),
859
+ width: k ? Math.max(m, Ja) : m,
855
860
  zIndex: k ? 2 : 0,
856
861
  dimmed: E
857
862
  };
858
863
  }
859
864
  return { nodes: b, edges: R, magnitudes: o };
860
865
  }
861
- const oo = 12;
862
- function _c(n, r) {
866
+ const lo = 12;
867
+ function Ac(n, r) {
863
868
  const t = Object.values(n), e = Ar(t, r.nodeColorMode, r.nodeColorProperty);
864
869
  if (e.kind === "gradient")
865
870
  return { kind: "gradient", title: e.property, min: e.min, max: e.max };
@@ -868,20 +873,20 @@ function _c(n, r) {
868
873
  let s, u;
869
874
  if (e.kind === "categorical") {
870
875
  const c = tt(o, e.property);
871
- s = c === void 0 || c === "" ? "(missing)" : String(c), u = c === void 0 || c === "" ? Tt : mi(c);
876
+ s = c === void 0 || c === "" ? "(missing)" : String(c), u = c === void 0 || c === "" ? Tt : yi(c);
872
877
  } else
873
878
  s = o.label ?? "(unlabeled)", u = Mt(o.label);
874
879
  const l = i.get(s);
875
880
  l ? l.count++ : i.set(s, { color: u, count: 1 });
876
881
  }
877
- const a = [...i.entries()].map(([o, { color: s, count: u }]) => ({ key: o, color: s, count: u })).sort((o, s) => s.count - o.count).slice(0, oo);
882
+ const a = [...i.entries()].map(([o, { color: s, count: u }]) => ({ key: o, color: s, count: u })).sort((o, s) => s.count - o.count).slice(0, lo);
878
883
  return {
879
884
  kind: "categorical",
880
885
  title: e.kind === "categorical" ? e.property : "labels",
881
886
  entries: a
882
887
  };
883
888
  }
884
- function Tc(n) {
889
+ function kc(n) {
885
890
  const r = /* @__PURE__ */ new Set();
886
891
  for (const t of n)
887
892
  for (const e of Object.keys(t.props ?? {})) r.add(e);
@@ -890,10 +895,10 @@ function Tc(n) {
890
895
  function Br(n) {
891
896
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
892
897
  }
893
- var Pt = { exports: {} }, vn;
894
- function so() {
895
- if (vn) return Pt.exports;
896
- vn = 1;
898
+ var Pt = { exports: {} }, mn;
899
+ function co() {
900
+ if (mn) return Pt.exports;
901
+ mn = 1;
897
902
  var n = typeof Reflect == "object" ? Reflect : null, r = n && typeof n.apply == "function" ? n.apply : function(C, L, g) {
898
903
  return Function.prototype.apply.call(C, L, g);
899
904
  }, t;
@@ -1102,15 +1107,15 @@ function so() {
1102
1107
  }
1103
1108
  return Pt.exports;
1104
1109
  }
1105
- var Wr = so();
1106
- function uo() {
1110
+ var Wr = co();
1111
+ function ho() {
1107
1112
  const n = arguments[0];
1108
1113
  for (let r = 1, t = arguments.length; r < t; r++)
1109
1114
  if (arguments[r])
1110
1115
  for (const e in arguments[r]) n[e] = arguments[r][e];
1111
1116
  return n;
1112
1117
  }
1113
- let ue = uo;
1118
+ let ue = ho;
1114
1119
  typeof Object.assign == "function" && (ue = Object.assign);
1115
1120
  function _e(n, r, t, e) {
1116
1121
  const i = n._nodes.get(r);
@@ -1120,7 +1125,7 @@ function _e(n, r, t, e) {
1120
1125
  function he(n) {
1121
1126
  return typeof n == "object" && n !== null;
1122
1127
  }
1123
- function yi(n) {
1128
+ function bi(n) {
1124
1129
  let r;
1125
1130
  for (r in n) return !1;
1126
1131
  return !0;
@@ -1140,10 +1145,10 @@ function Ae(n, r, t) {
1140
1145
  };
1141
1146
  typeof t == "function" ? e.get = t : (e.value = t, e.writable = !1), Object.defineProperty(n, r, e);
1142
1147
  }
1143
- function mn(n) {
1148
+ function yn(n) {
1144
1149
  return !(!he(n) || n.attributes && !Array.isArray(n.attributes));
1145
1150
  }
1146
- function lo() {
1151
+ function fo() {
1147
1152
  let n = Math.floor(Math.random() * 256) & 255;
1148
1153
  return () => n++;
1149
1154
  }
@@ -1204,22 +1209,22 @@ class Q extends Hr {
1204
1209
  super(r), this.name = "UsageGraphError", typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, Q.prototype.constructor);
1205
1210
  }
1206
1211
  }
1207
- function bi(n, r) {
1212
+ function wi(n, r) {
1208
1213
  this.key = n, this.attributes = r, this.clear();
1209
1214
  }
1210
- bi.prototype.clear = function() {
1215
+ wi.prototype.clear = function() {
1211
1216
  this.inDegree = 0, this.outDegree = 0, this.undirectedDegree = 0, this.undirectedLoops = 0, this.directedLoops = 0, this.in = {}, this.out = {}, this.undirected = {};
1212
1217
  };
1213
- function wi(n, r) {
1218
+ function Ei(n, r) {
1214
1219
  this.key = n, this.attributes = r, this.clear();
1215
1220
  }
1216
- wi.prototype.clear = function() {
1221
+ Ei.prototype.clear = function() {
1217
1222
  this.inDegree = 0, this.outDegree = 0, this.directedLoops = 0, this.in = {}, this.out = {};
1218
1223
  };
1219
- function Ei(n, r) {
1224
+ function _i(n, r) {
1220
1225
  this.key = n, this.attributes = r, this.clear();
1221
1226
  }
1222
- Ei.prototype.clear = function() {
1227
+ _i.prototype.clear = function() {
1223
1228
  this.undirectedDegree = 0, this.undirectedLoops = 0, this.undirected = {};
1224
1229
  };
1225
1230
  function ut(n, r, t, e, i) {
@@ -1252,16 +1257,16 @@ ut.prototype.detachMulti = function() {
1252
1257
  let t = "out", e = "in";
1253
1258
  this.undirected && (t = e = "undirected"), this.previous === void 0 ? this.next === void 0 ? (delete this.source[t][r], delete this.target[e][n]) : (this.next.previous = void 0, this.source[t][r] = this.next, this.target[e][n] = this.next) : (this.previous.next = this.next, this.next !== void 0 && (this.next.previous = this.previous));
1254
1259
  };
1255
- const _i = 0, Ti = 1, co = 2, Si = 3;
1260
+ const Ti = 0, Si = 1, go = 2, Ri = 3;
1256
1261
  function Ne(n, r, t, e, i, a, o) {
1257
1262
  let s, u, l, c;
1258
- if (e = "" + e, t === _i) {
1263
+ if (e = "" + e, t === Ti) {
1259
1264
  if (s = n._nodes.get(e), !s)
1260
1265
  throw new M(
1261
1266
  `Graph.${r}: could not find the "${e}" node in the graph.`
1262
1267
  );
1263
1268
  l = i, c = a;
1264
- } else if (t === Si) {
1269
+ } else if (t === Ri) {
1265
1270
  if (i = "" + i, u = n._edges.get(i), !u)
1266
1271
  throw new M(
1267
1272
  `Graph.${r}: could not find the "${i}" edge in the graph.`
@@ -1281,11 +1286,11 @@ function Ne(n, r, t, e, i, a, o) {
1281
1286
  throw new M(
1282
1287
  `Graph.${r}: could not find the "${e}" edge in the graph.`
1283
1288
  );
1284
- t === Ti ? s = u.source : s = u.target, l = i, c = a;
1289
+ t === Si ? s = u.source : s = u.target, l = i, c = a;
1285
1290
  }
1286
1291
  return [s, l, c];
1287
1292
  }
1288
- function ho(n, r, t) {
1293
+ function po(n, r, t) {
1289
1294
  n.prototype[r] = function(e, i, a) {
1290
1295
  const [o, s] = Ne(
1291
1296
  this,
@@ -1298,7 +1303,7 @@ function ho(n, r, t) {
1298
1303
  return o.attributes[s];
1299
1304
  };
1300
1305
  }
1301
- function fo(n, r, t) {
1306
+ function vo(n, r, t) {
1302
1307
  n.prototype[r] = function(e, i) {
1303
1308
  const [a] = Ne(
1304
1309
  this,
@@ -1310,7 +1315,7 @@ function fo(n, r, t) {
1310
1315
  return a.attributes;
1311
1316
  };
1312
1317
  }
1313
- function go(n, r, t) {
1318
+ function mo(n, r, t) {
1314
1319
  n.prototype[r] = function(e, i, a) {
1315
1320
  const [o, s] = Ne(
1316
1321
  this,
@@ -1323,7 +1328,7 @@ function go(n, r, t) {
1323
1328
  return o.attributes.hasOwnProperty(s);
1324
1329
  };
1325
1330
  }
1326
- function po(n, r, t) {
1331
+ function yo(n, r, t) {
1327
1332
  n.prototype[r] = function(e, i, a, o) {
1328
1333
  const [s, u, l] = Ne(
1329
1334
  this,
@@ -1342,7 +1347,7 @@ function po(n, r, t) {
1342
1347
  }), this;
1343
1348
  };
1344
1349
  }
1345
- function vo(n, r, t) {
1350
+ function bo(n, r, t) {
1346
1351
  n.prototype[r] = function(e, i, a, o) {
1347
1352
  const [s, u, l] = Ne(
1348
1353
  this,
@@ -1366,7 +1371,7 @@ function vo(n, r, t) {
1366
1371
  }), this;
1367
1372
  };
1368
1373
  }
1369
- function mo(n, r, t) {
1374
+ function wo(n, r, t) {
1370
1375
  n.prototype[r] = function(e, i, a) {
1371
1376
  const [o, s] = Ne(
1372
1377
  this,
@@ -1384,7 +1389,7 @@ function mo(n, r, t) {
1384
1389
  }), this;
1385
1390
  };
1386
1391
  }
1387
- function yo(n, r, t) {
1392
+ function Eo(n, r, t) {
1388
1393
  n.prototype[r] = function(e, i, a) {
1389
1394
  const [o, s] = Ne(
1390
1395
  this,
@@ -1405,7 +1410,7 @@ function yo(n, r, t) {
1405
1410
  }), this;
1406
1411
  };
1407
1412
  }
1408
- function bo(n, r, t) {
1413
+ function _o(n, r, t) {
1409
1414
  n.prototype[r] = function(e, i, a) {
1410
1415
  const [o, s] = Ne(
1411
1416
  this,
@@ -1427,7 +1432,7 @@ function bo(n, r, t) {
1427
1432
  }), this;
1428
1433
  };
1429
1434
  }
1430
- function wo(n, r, t) {
1435
+ function To(n, r, t) {
1431
1436
  n.prototype[r] = function(e, i, a) {
1432
1437
  const [o, s] = Ne(
1433
1438
  this,
@@ -1448,50 +1453,50 @@ function wo(n, r, t) {
1448
1453
  }), this;
1449
1454
  };
1450
1455
  }
1451
- const Eo = [
1456
+ const So = [
1452
1457
  {
1453
1458
  name: (n) => `get${n}Attribute`,
1454
- attacher: ho
1459
+ attacher: po
1455
1460
  },
1456
1461
  {
1457
1462
  name: (n) => `get${n}Attributes`,
1458
- attacher: fo
1463
+ attacher: vo
1459
1464
  },
1460
1465
  {
1461
1466
  name: (n) => `has${n}Attribute`,
1462
- attacher: go
1467
+ attacher: mo
1463
1468
  },
1464
1469
  {
1465
1470
  name: (n) => `set${n}Attribute`,
1466
- attacher: po
1471
+ attacher: yo
1467
1472
  },
1468
1473
  {
1469
1474
  name: (n) => `update${n}Attribute`,
1470
- attacher: vo
1475
+ attacher: bo
1471
1476
  },
1472
1477
  {
1473
1478
  name: (n) => `remove${n}Attribute`,
1474
- attacher: mo
1479
+ attacher: wo
1475
1480
  },
1476
1481
  {
1477
1482
  name: (n) => `replace${n}Attributes`,
1478
- attacher: yo
1483
+ attacher: Eo
1479
1484
  },
1480
1485
  {
1481
1486
  name: (n) => `merge${n}Attributes`,
1482
- attacher: bo
1487
+ attacher: _o
1483
1488
  },
1484
1489
  {
1485
1490
  name: (n) => `update${n}Attributes`,
1486
- attacher: wo
1491
+ attacher: To
1487
1492
  }
1488
1493
  ];
1489
- function _o(n) {
1490
- Eo.forEach(function({ name: r, attacher: t }) {
1491
- t(n, r("Node"), _i), t(n, r("Source"), Ti), t(n, r("Target"), co), t(n, r("Opposite"), Si);
1494
+ function Ro(n) {
1495
+ So.forEach(function({ name: r, attacher: t }) {
1496
+ t(n, r("Node"), Ti), t(n, r("Source"), Si), t(n, r("Target"), go), t(n, r("Opposite"), Ri);
1492
1497
  });
1493
1498
  }
1494
- function To(n, r, t) {
1499
+ function Ao(n, r, t) {
1495
1500
  n.prototype[r] = function(e, i) {
1496
1501
  let a;
1497
1502
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1521,7 +1526,7 @@ function To(n, r, t) {
1521
1526
  return a.attributes[i];
1522
1527
  };
1523
1528
  }
1524
- function So(n, r, t) {
1529
+ function ko(n, r, t) {
1525
1530
  n.prototype[r] = function(e) {
1526
1531
  let i;
1527
1532
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1551,7 +1556,7 @@ function So(n, r, t) {
1551
1556
  return i.attributes;
1552
1557
  };
1553
1558
  }
1554
- function Ro(n, r, t) {
1559
+ function Co(n, r, t) {
1555
1560
  n.prototype[r] = function(e, i) {
1556
1561
  let a;
1557
1562
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1581,7 +1586,7 @@ function Ro(n, r, t) {
1581
1586
  return a.attributes.hasOwnProperty(i);
1582
1587
  };
1583
1588
  }
1584
- function Ao(n, r, t) {
1589
+ function xo(n, r, t) {
1585
1590
  n.prototype[r] = function(e, i, a) {
1586
1591
  let o;
1587
1592
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1616,7 +1621,7 @@ function Ao(n, r, t) {
1616
1621
  }), this;
1617
1622
  };
1618
1623
  }
1619
- function ko(n, r, t) {
1624
+ function Do(n, r, t) {
1620
1625
  n.prototype[r] = function(e, i, a) {
1621
1626
  let o;
1622
1627
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1655,7 +1660,7 @@ function ko(n, r, t) {
1655
1660
  }), this;
1656
1661
  };
1657
1662
  }
1658
- function Co(n, r, t) {
1663
+ function Lo(n, r, t) {
1659
1664
  n.prototype[r] = function(e, i) {
1660
1665
  let a;
1661
1666
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1690,7 +1695,7 @@ function Co(n, r, t) {
1690
1695
  }), this;
1691
1696
  };
1692
1697
  }
1693
- function xo(n, r, t) {
1698
+ function Go(n, r, t) {
1694
1699
  n.prototype[r] = function(e, i) {
1695
1700
  let a;
1696
1701
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1728,7 +1733,7 @@ function xo(n, r, t) {
1728
1733
  }), this;
1729
1734
  };
1730
1735
  }
1731
- function Do(n, r, t) {
1736
+ function Po(n, r, t) {
1732
1737
  n.prototype[r] = function(e, i) {
1733
1738
  let a;
1734
1739
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1767,7 +1772,7 @@ function Do(n, r, t) {
1767
1772
  }), this;
1768
1773
  };
1769
1774
  }
1770
- function Lo(n, r, t) {
1775
+ function Io(n, r, t) {
1771
1776
  n.prototype[r] = function(e, i) {
1772
1777
  let a;
1773
1778
  if (this.type !== "mixed" && t !== "mixed" && t !== this.type)
@@ -1805,50 +1810,50 @@ function Lo(n, r, t) {
1805
1810
  }), this;
1806
1811
  };
1807
1812
  }
1808
- const Go = [
1813
+ const Fo = [
1809
1814
  {
1810
1815
  name: (n) => `get${n}Attribute`,
1811
- attacher: To
1816
+ attacher: Ao
1812
1817
  },
1813
1818
  {
1814
1819
  name: (n) => `get${n}Attributes`,
1815
- attacher: So
1820
+ attacher: ko
1816
1821
  },
1817
1822
  {
1818
1823
  name: (n) => `has${n}Attribute`,
1819
- attacher: Ro
1824
+ attacher: Co
1820
1825
  },
1821
1826
  {
1822
1827
  name: (n) => `set${n}Attribute`,
1823
- attacher: Ao
1828
+ attacher: xo
1824
1829
  },
1825
1830
  {
1826
1831
  name: (n) => `update${n}Attribute`,
1827
- attacher: ko
1832
+ attacher: Do
1828
1833
  },
1829
1834
  {
1830
1835
  name: (n) => `remove${n}Attribute`,
1831
- attacher: Co
1836
+ attacher: Lo
1832
1837
  },
1833
1838
  {
1834
1839
  name: (n) => `replace${n}Attributes`,
1835
- attacher: xo
1840
+ attacher: Go
1836
1841
  },
1837
1842
  {
1838
1843
  name: (n) => `merge${n}Attributes`,
1839
- attacher: Do
1844
+ attacher: Po
1840
1845
  },
1841
1846
  {
1842
1847
  name: (n) => `update${n}Attributes`,
1843
- attacher: Lo
1848
+ attacher: Io
1844
1849
  }
1845
1850
  ];
1846
- function Po(n) {
1847
- Go.forEach(function({ name: r, attacher: t }) {
1851
+ function Oo(n) {
1852
+ Fo.forEach(function({ name: r, attacher: t }) {
1848
1853
  t(n, r("Edge"), "mixed"), t(n, r("DirectedEdge"), "directed"), t(n, r("UndirectedEdge"), "undirected");
1849
1854
  });
1850
1855
  }
1851
- const Io = [
1856
+ const zo = [
1852
1857
  {
1853
1858
  name: "edges",
1854
1859
  type: "mixed"
@@ -1882,7 +1887,7 @@ const Io = [
1882
1887
  type: "undirected"
1883
1888
  }
1884
1889
  ];
1885
- function Fo(n, r, t, e) {
1890
+ function No(n, r, t, e) {
1886
1891
  let i = !1;
1887
1892
  for (const a in r) {
1888
1893
  if (a === e) continue;
@@ -1898,7 +1903,7 @@ function Fo(n, r, t, e) {
1898
1903
  ), n && i) return o.key;
1899
1904
  }
1900
1905
  }
1901
- function Oo(n, r, t, e) {
1906
+ function Uo(n, r, t, e) {
1902
1907
  let i, a, o, s = !1;
1903
1908
  for (const u in r)
1904
1909
  if (u !== e) {
@@ -1953,7 +1958,7 @@ function Zt(n, r) {
1953
1958
  }
1954
1959
  };
1955
1960
  }
1956
- function zo(n, r, t, e) {
1961
+ function $o(n, r, t, e) {
1957
1962
  const i = r[t];
1958
1963
  if (!i) return;
1959
1964
  const a = i.source, o = i.target;
@@ -1968,7 +1973,7 @@ function zo(n, r, t, e) {
1968
1973
  ) && n)
1969
1974
  return i.key;
1970
1975
  }
1971
- function No(n, r, t, e) {
1976
+ function Mo(n, r, t, e) {
1972
1977
  let i = r[t];
1973
1978
  if (!i) return;
1974
1979
  let a = !1;
@@ -2030,7 +2035,7 @@ function Qt(n, r) {
2030
2035
  }
2031
2036
  };
2032
2037
  }
2033
- function Uo(n, r) {
2038
+ function Bo(n, r) {
2034
2039
  if (n.size === 0) return [];
2035
2040
  if (r === "mixed" || r === n.type)
2036
2041
  return Array.from(n._edges.keys());
@@ -2040,7 +2045,7 @@ function Uo(n, r) {
2040
2045
  u = s.value, u.undirected === i && (e[o++] = u.key);
2041
2046
  return e;
2042
2047
  }
2043
- function Ri(n, r, t, e) {
2048
+ function Ai(n, r, t, e) {
2044
2049
  if (r.size === 0) return;
2045
2050
  const i = t !== "mixed" && t !== r.type, a = t === "undirected";
2046
2051
  let o, s, u = !1;
@@ -2059,7 +2064,7 @@ function Ri(n, r, t, e) {
2059
2064
  ), n && u) return c;
2060
2065
  }
2061
2066
  }
2062
- function $o(n, r) {
2067
+ function Wo(n, r) {
2063
2068
  if (n.size === 0) return st();
2064
2069
  const t = r !== "mixed" && r !== n.type, e = r === "undirected", i = n._edges.values();
2065
2070
  return {
@@ -2086,7 +2091,7 @@ function $o(n, r) {
2086
2091
  };
2087
2092
  }
2088
2093
  function jr(n, r, t, e, i, a) {
2089
- const o = r ? Oo : Fo;
2094
+ const o = r ? Uo : No;
2090
2095
  let s;
2091
2096
  if (t !== "undirected" && (e !== "out" && (s = o(n, i.in, a), n && s) || e !== "in" && (s = o(
2092
2097
  n,
@@ -2096,13 +2101,13 @@ function jr(n, r, t, e, i, a) {
2096
2101
  ), n && s)) || t !== "directed" && (s = o(n, i.undirected, a), n && s))
2097
2102
  return s;
2098
2103
  }
2099
- function Mo(n, r, t, e) {
2104
+ function Ho(n, r, t, e) {
2100
2105
  const i = [];
2101
2106
  return jr(!1, n, r, t, e, function(a) {
2102
2107
  i.push(a);
2103
2108
  }), i;
2104
2109
  }
2105
- function Bo(n, r, t) {
2110
+ function jo(n, r, t) {
2106
2111
  let e = st();
2107
2112
  return n !== "undirected" && (r !== "out" && typeof t.in < "u" && (e = ze(e, Zt(t.in))), r !== "in" && typeof t.out < "u" && (e = ze(
2108
2113
  e,
@@ -2110,12 +2115,12 @@ function Bo(n, r, t) {
2110
2115
  ))), n !== "directed" && typeof t.undirected < "u" && (e = ze(e, Zt(t.undirected))), e;
2111
2116
  }
2112
2117
  function Vr(n, r, t, e, i, a, o) {
2113
- const s = t ? No : zo;
2118
+ const s = t ? Mo : $o;
2114
2119
  let u;
2115
2120
  if (r !== "undirected" && (typeof i.in < "u" && e !== "out" && (u = s(n, i.in, a, o), n && u) || typeof i.out < "u" && e !== "in" && (e || i.key !== a) && (u = s(n, i.out, a, o), n && u)) || r !== "directed" && typeof i.undirected < "u" && (u = s(n, i.undirected, a, o), n && u))
2116
2121
  return u;
2117
2122
  }
2118
- function Wo(n, r, t, e, i) {
2123
+ function Vo(n, r, t, e, i) {
2119
2124
  const a = [];
2120
2125
  return Vr(
2121
2126
  !1,
@@ -2129,19 +2134,19 @@ function Wo(n, r, t, e, i) {
2129
2134
  }
2130
2135
  ), a;
2131
2136
  }
2132
- function Ho(n, r, t, e) {
2137
+ function qo(n, r, t, e) {
2133
2138
  let i = st();
2134
2139
  return n !== "undirected" && (typeof t.in < "u" && r !== "out" && e in t.in && (i = ze(i, Qt(t.in, e))), typeof t.out < "u" && r !== "in" && e in t.out && (r || t.key !== e) && (i = ze(i, Qt(t.out, e)))), n !== "directed" && typeof t.undirected < "u" && e in t.undirected && (i = ze(
2135
2140
  i,
2136
2141
  Qt(t.undirected, e)
2137
2142
  )), i;
2138
2143
  }
2139
- function jo(n, r) {
2144
+ function Ko(n, r) {
2140
2145
  const { name: t, type: e, direction: i } = r;
2141
2146
  n.prototype[t] = function(a, o) {
2142
2147
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2143
2148
  return [];
2144
- if (!arguments.length) return Uo(this, e);
2149
+ if (!arguments.length) return Bo(this, e);
2145
2150
  if (arguments.length === 1) {
2146
2151
  a = "" + a;
2147
2152
  const s = this._nodes.get(a);
@@ -2149,7 +2154,7 @@ function jo(n, r) {
2149
2154
  throw new M(
2150
2155
  `Graph.${t}: could not find the "${a}" node in the graph.`
2151
2156
  );
2152
- return Mo(
2157
+ return Ho(
2153
2158
  this.multi,
2154
2159
  e === "mixed" ? this.type : e,
2155
2160
  i,
@@ -2167,7 +2172,7 @@ function jo(n, r) {
2167
2172
  throw new M(
2168
2173
  `Graph.${t}: could not find the "${o}" target node in the graph.`
2169
2174
  );
2170
- return Wo(
2175
+ return Vo(
2171
2176
  e,
2172
2177
  this.multi,
2173
2178
  i,
@@ -2180,12 +2185,12 @@ function jo(n, r) {
2180
2185
  );
2181
2186
  };
2182
2187
  }
2183
- function Vo(n, r) {
2188
+ function Xo(n, r) {
2184
2189
  const { name: t, type: e, direction: i } = r, a = "forEach" + t[0].toUpperCase() + t.slice(1, -1);
2185
2190
  n.prototype[a] = function(l, c, h) {
2186
2191
  if (!(e !== "mixed" && this.type !== "mixed" && e !== this.type)) {
2187
2192
  if (arguments.length === 1)
2188
- return h = l, Ri(!1, this, e, h);
2193
+ return h = l, Ai(!1, this, e, h);
2189
2194
  if (arguments.length === 2) {
2190
2195
  l = "" + l, h = c;
2191
2196
  const v = this._nodes.get(l);
@@ -2271,13 +2276,13 @@ function Vo(n, r) {
2271
2276
  }), this[a].apply(this, l), v;
2272
2277
  };
2273
2278
  }
2274
- function qo(n, r) {
2279
+ function Yo(n, r) {
2275
2280
  const { name: t, type: e, direction: i } = r, a = "find" + t[0].toUpperCase() + t.slice(1, -1);
2276
2281
  n.prototype[a] = function(u, l, c) {
2277
2282
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2278
2283
  return !1;
2279
2284
  if (arguments.length === 1)
2280
- return c = u, Ri(!0, this, e, c);
2285
+ return c = u, Ai(!0, this, e, c);
2281
2286
  if (arguments.length === 2) {
2282
2287
  u = "" + u, c = l;
2283
2288
  const h = this._nodes.get(u);
@@ -2330,12 +2335,12 @@ function qo(n, r) {
2330
2335
  return u.push((h, v, y, b, R, w, k) => !l(h, v, y, b, R, w, k)), !this[a].apply(this, u);
2331
2336
  };
2332
2337
  }
2333
- function Xo(n, r) {
2338
+ function Zo(n, r) {
2334
2339
  const { name: t, type: e, direction: i } = r, a = t.slice(0, -1) + "Entries";
2335
2340
  n.prototype[a] = function(o, s) {
2336
2341
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
2337
2342
  return st();
2338
- if (!arguments.length) return $o(this, e);
2343
+ if (!arguments.length) return Wo(this, e);
2339
2344
  if (arguments.length === 1) {
2340
2345
  o = "" + o;
2341
2346
  const u = this._nodes.get(o);
@@ -2343,7 +2348,7 @@ function Xo(n, r) {
2343
2348
  throw new M(
2344
2349
  `Graph.${a}: could not find the "${o}" node in the graph.`
2345
2350
  );
2346
- return Bo(e, i, u);
2351
+ return jo(e, i, u);
2347
2352
  }
2348
2353
  if (arguments.length === 2) {
2349
2354
  o = "" + o, s = "" + s;
@@ -2356,19 +2361,19 @@ function Xo(n, r) {
2356
2361
  throw new M(
2357
2362
  `Graph.${a}: could not find the "${s}" target node in the graph.`
2358
2363
  );
2359
- return Ho(e, i, u, s);
2364
+ return qo(e, i, u, s);
2360
2365
  }
2361
2366
  throw new H(
2362
2367
  `Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`
2363
2368
  );
2364
2369
  };
2365
2370
  }
2366
- function Ko(n) {
2367
- Io.forEach((r) => {
2368
- jo(n, r), Vo(n, r), qo(n, r), Xo(n, r);
2371
+ function Qo(n) {
2372
+ zo.forEach((r) => {
2373
+ Ko(n, r), Xo(n, r), Yo(n, r), Zo(n, r);
2369
2374
  });
2370
2375
  }
2371
- const Yo = [
2376
+ const Jo = [
2372
2377
  {
2373
2378
  name: "neighbors",
2374
2379
  type: "mixed"
@@ -2471,7 +2476,7 @@ function qr(n, r, t, e, i) {
2471
2476
  ), n && o))
2472
2477
  return o;
2473
2478
  }
2474
- function Zo(n, r, t) {
2479
+ function es(n, r, t) {
2475
2480
  if (n !== "mixed") {
2476
2481
  if (n === "undirected") return Object.keys(t.undirected);
2477
2482
  if (typeof r == "string") return Object.keys(t[r]);
@@ -2506,7 +2511,7 @@ function dt(n, r, t) {
2506
2511
  }
2507
2512
  };
2508
2513
  }
2509
- function Qo(n, r, t) {
2514
+ function ts(n, r, t) {
2510
2515
  if (n !== "mixed") {
2511
2516
  if (n === "undirected")
2512
2517
  return dt(null, t, t.undirected);
@@ -2526,7 +2531,7 @@ function Qo(n, r, t) {
2526
2531
  dt(i, t, t.undirected)
2527
2532
  )), e;
2528
2533
  }
2529
- function Jo(n, r) {
2534
+ function rs(n, r) {
2530
2535
  const { name: t, type: e, direction: i } = r;
2531
2536
  n.prototype[t] = function(a) {
2532
2537
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
@@ -2537,14 +2542,14 @@ function Jo(n, r) {
2537
2542
  throw new M(
2538
2543
  `Graph.${t}: could not find the "${a}" node in the graph.`
2539
2544
  );
2540
- return Zo(
2545
+ return es(
2541
2546
  e === "mixed" ? this.type : e,
2542
2547
  i,
2543
2548
  o
2544
2549
  );
2545
2550
  };
2546
2551
  }
2547
- function es(n, r) {
2552
+ function ns(n, r) {
2548
2553
  const { name: t, type: e, direction: i } = r, a = "forEach" + t[0].toUpperCase() + t.slice(1, -1);
2549
2554
  n.prototype[a] = function(l, c) {
2550
2555
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type) return;
@@ -2588,7 +2593,7 @@ function es(n, r) {
2588
2593
  }), v;
2589
2594
  };
2590
2595
  }
2591
- function ts(n, r) {
2596
+ function is(n, r) {
2592
2597
  const { name: t, type: e, direction: i } = r, a = t[0].toUpperCase() + t.slice(1, -1), o = "find" + a;
2593
2598
  n.prototype[o] = function(l, c) {
2594
2599
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type) return;
@@ -2615,7 +2620,7 @@ function ts(n, r) {
2615
2620
  return !this[o](l, (v, y) => !c(v, y));
2616
2621
  };
2617
2622
  }
2618
- function rs(n, r) {
2623
+ function as(n, r) {
2619
2624
  const { name: t, type: e, direction: i } = r, a = t.slice(0, -1) + "Entries";
2620
2625
  n.prototype[a] = function(o) {
2621
2626
  if (e !== "mixed" && this.type !== "mixed" && e !== this.type)
@@ -2626,16 +2631,16 @@ function rs(n, r) {
2626
2631
  throw new M(
2627
2632
  `Graph.${a}: could not find the "${o}" node in the graph.`
2628
2633
  );
2629
- return Qo(
2634
+ return ts(
2630
2635
  e === "mixed" ? this.type : e,
2631
2636
  i,
2632
2637
  s
2633
2638
  );
2634
2639
  };
2635
2640
  }
2636
- function ns(n) {
2637
- Yo.forEach((r) => {
2638
- Jo(n, r), es(n, r), ts(n, r), rs(n, r);
2641
+ function os(n) {
2642
+ Jo.forEach((r) => {
2643
+ rs(n, r), ns(n, r), is(n, r), as(n, r);
2639
2644
  });
2640
2645
  }
2641
2646
  function It(n, r, t, e, i) {
@@ -2689,19 +2694,19 @@ function It(n, r, t, e, i) {
2689
2694
  );
2690
2695
  }
2691
2696
  }
2692
- function is(n, r) {
2697
+ function ss(n, r) {
2693
2698
  const t = { key: n };
2694
- return yi(r.attributes) || (t.attributes = ue({}, r.attributes)), t;
2699
+ return bi(r.attributes) || (t.attributes = ue({}, r.attributes)), t;
2695
2700
  }
2696
- function as(n, r, t) {
2701
+ function us(n, r, t) {
2697
2702
  const e = {
2698
2703
  key: r,
2699
2704
  source: t.source.key,
2700
2705
  target: t.target.key
2701
2706
  };
2702
- return yi(t.attributes) || (e.attributes = ue({}, t.attributes)), n === "mixed" && t.undirected && (e.undirected = !0), e;
2707
+ return bi(t.attributes) || (e.attributes = ue({}, t.attributes)), n === "mixed" && t.undirected && (e.undirected = !0), e;
2703
2708
  }
2704
- function os(n) {
2709
+ function ls(n) {
2705
2710
  if (!he(n))
2706
2711
  throw new H(
2707
2712
  'Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.'
@@ -2715,7 +2720,7 @@ function os(n) {
2715
2720
  "Graph.import: invalid attributes. Attributes should be a plain object, null or omitted."
2716
2721
  );
2717
2722
  }
2718
- function ss(n) {
2723
+ function cs(n) {
2719
2724
  if (!he(n))
2720
2725
  throw new H(
2721
2726
  'Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.'
@@ -2737,12 +2742,12 @@ function ss(n) {
2737
2742
  "Graph.import: invalid undirectedness information. Undirected should be boolean or omitted."
2738
2743
  );
2739
2744
  }
2740
- const us = lo(), ls = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"]), yn = /* @__PURE__ */ new Set([
2745
+ const hs = fo(), ds = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"]), bn = /* @__PURE__ */ new Set([
2741
2746
  "domain",
2742
2747
  "_events",
2743
2748
  "_eventsCount",
2744
2749
  "_maxListeners"
2745
- ]), cs = [
2750
+ ]), fs = [
2746
2751
  {
2747
2752
  name: (n) => `${n}Edge`,
2748
2753
  generateKey: !0
@@ -2768,12 +2773,12 @@ const us = lo(), ls = /* @__PURE__ */ new Set(["directed", "undirected", "mixed"
2768
2773
  name: (n) => `${n}UndirectedEdgeWithKey`,
2769
2774
  type: "undirected"
2770
2775
  }
2771
- ], hs = {
2776
+ ], gs = {
2772
2777
  allowSelfLoops: !0,
2773
2778
  multi: !1,
2774
2779
  type: "mixed"
2775
2780
  };
2776
- function ds(n, r, t) {
2781
+ function ps(n, r, t) {
2777
2782
  if (t && !he(t))
2778
2783
  throw new H(
2779
2784
  `Graph.addNode: invalid attributes. Expecting an object but got "${t}"`
@@ -2788,14 +2793,14 @@ function ds(n, r, t) {
2788
2793
  attributes: t
2789
2794
  }), e;
2790
2795
  }
2791
- function bn(n, r, t) {
2796
+ function wn(n, r, t) {
2792
2797
  const e = new n.NodeDataClass(r, t);
2793
2798
  return n._nodes.set(r, e), n.emit("nodeAdded", {
2794
2799
  key: r,
2795
2800
  attributes: t
2796
2801
  }), e;
2797
2802
  }
2798
- function Ai(n, r, t, e, i, a, o, s) {
2803
+ function ki(n, r, t, e, i, a, o, s) {
2799
2804
  if (!e && n.type === "undirected")
2800
2805
  throw new Q(
2801
2806
  `Graph.${r}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`
@@ -2849,7 +2854,7 @@ function Ai(n, r, t, e, i, a, o, s) {
2849
2854
  const v = a === o;
2850
2855
  return e ? (u.undirectedDegree++, l.undirectedDegree++, v && (u.undirectedLoops++, n._undirectedSelfLoopCount++)) : (u.outDegree++, l.inDegree++, v && (u.directedLoops++, n._directedSelfLoopCount++)), n.multi ? h.attachMulti() : h.attach(), e ? n._undirectedSize++ : n._directedSize++, c.key = i, n.emit("edgeAdded", c), i;
2851
2856
  }
2852
- function fs(n, r, t, e, i, a, o, s, u) {
2857
+ function vs(n, r, t, e, i, a, o, s, u) {
2853
2858
  if (!e && n.type === "undirected")
2854
2859
  throw new Q(
2855
2860
  `Graph.${r}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`
@@ -2917,7 +2922,7 @@ function fs(n, r, t, e, i, a, o, s, u) {
2917
2922
  `Graph.${r}: the "${i}" edge already exists in the graph.`
2918
2923
  );
2919
2924
  let R = !1, w = !1;
2920
- c || (c = bn(n, a, {}), R = !0, a === o && (h = c, w = !0)), h || (h = bn(n, o, {}), w = !0), v = new ut(e, i, c, h, s), n._edges.set(i, v);
2925
+ c || (c = wn(n, a, {}), R = !0, a === o && (h = c, w = !0)), h || (h = wn(n, o, {}), w = !0), v = new ut(e, i, c, h, s), n._edges.set(i, v);
2921
2926
  const k = a === o;
2922
2927
  return e ? (c.undirectedDegree++, h.undirectedDegree++, k && (c.undirectedLoops++, n._undirectedSelfLoopCount++)) : (c.outDegree++, h.inDegree++, k && (c.directedLoops++, n._directedSelfLoopCount++)), n.multi ? v.attachMulti() : v.attach(), e ? n._undirectedSize++ : n._directedSize++, b.key = i, n.emit("edgeAdded", b), [i, !0, R, w];
2923
2928
  }
@@ -2934,11 +2939,11 @@ function Je(n, r) {
2934
2939
  }
2935
2940
  class ae extends Wr.EventEmitter {
2936
2941
  constructor(r) {
2937
- if (super(), r = ue({}, hs, r), typeof r.multi != "boolean")
2942
+ if (super(), r = ue({}, gs, r), typeof r.multi != "boolean")
2938
2943
  throw new H(
2939
2944
  `Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${r.multi}".`
2940
2945
  );
2941
- if (!ls.has(r.type))
2946
+ if (!ds.has(r.type))
2942
2947
  throw new H(
2943
2948
  `Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${r.type}".`
2944
2949
  );
@@ -2946,9 +2951,9 @@ class ae extends Wr.EventEmitter {
2946
2951
  throw new H(
2947
2952
  `Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${r.allowSelfLoops}".`
2948
2953
  );
2949
- const t = r.type === "mixed" ? bi : r.type === "directed" ? wi : Ei;
2954
+ const t = r.type === "mixed" ? wi : r.type === "directed" ? Ei : _i;
2950
2955
  Ee(this, "NodeDataClass", t);
2951
- const e = "geid_" + us() + "_";
2956
+ const e = "geid_" + hs() + "_";
2952
2957
  let i = 0;
2953
2958
  const a = () => {
2954
2959
  let o;
@@ -2957,7 +2962,7 @@ class ae extends Wr.EventEmitter {
2957
2962
  while (this._edges.has(o));
2958
2963
  return o;
2959
2964
  };
2960
- Ee(this, "_attributes", {}), Ee(this, "_nodes", /* @__PURE__ */ new Map()), Ee(this, "_edges", /* @__PURE__ */ new Map()), Ee(this, "_directedSize", 0), Ee(this, "_undirectedSize", 0), Ee(this, "_directedSelfLoopCount", 0), Ee(this, "_undirectedSelfLoopCount", 0), Ee(this, "_edgeKeyGenerator", a), Ee(this, "_options", r), yn.forEach((o) => Ee(this, o, this[o])), Ae(this, "order", () => this._nodes.size), Ae(this, "size", () => this._edges.size), Ae(this, "directedSize", () => this._directedSize), Ae(this, "undirectedSize", () => this._undirectedSize), Ae(
2965
+ Ee(this, "_attributes", {}), Ee(this, "_nodes", /* @__PURE__ */ new Map()), Ee(this, "_edges", /* @__PURE__ */ new Map()), Ee(this, "_directedSize", 0), Ee(this, "_undirectedSize", 0), Ee(this, "_directedSelfLoopCount", 0), Ee(this, "_undirectedSelfLoopCount", 0), Ee(this, "_edgeKeyGenerator", a), Ee(this, "_options", r), bn.forEach((o) => Ee(this, o, this[o])), Ae(this, "order", () => this._nodes.size), Ae(this, "size", () => this._edges.size), Ae(this, "directedSize", () => this._directedSize), Ae(this, "undirectedSize", () => this._undirectedSize), Ae(
2961
2966
  this,
2962
2967
  "selfLoopCount",
2963
2968
  () => this._directedSelfLoopCount + this._undirectedSelfLoopCount
@@ -3686,7 +3691,7 @@ class ae extends Wr.EventEmitter {
3686
3691
  * @throws {Error} - Will throw if the given attributes are not an object.
3687
3692
  */
3688
3693
  addNode(r, t) {
3689
- return ds(this, r, t).key;
3694
+ return ps(this, r, t).key;
3690
3695
  }
3691
3696
  /**
3692
3697
  * Method used to merge a node into the graph.
@@ -4029,7 +4034,7 @@ class ae extends Wr.EventEmitter {
4029
4034
  throw new H(
4030
4035
  "Graph.updateEachNodeAttributes: expecting an updater function."
4031
4036
  );
4032
- if (t && !mn(t))
4037
+ if (t && !yn(t))
4033
4038
  throw new H(
4034
4039
  "Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"
4035
4040
  );
@@ -4052,7 +4057,7 @@ class ae extends Wr.EventEmitter {
4052
4057
  throw new H(
4053
4058
  "Graph.updateEachEdgeAttributes: expecting an updater function."
4054
4059
  );
4055
- if (t && !mn(t))
4060
+ if (t && !yn(t))
4056
4061
  throw new H(
4057
4062
  "Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}"
4058
4063
  );
@@ -4276,11 +4281,11 @@ class ae extends Wr.EventEmitter {
4276
4281
  const r = new Array(this._nodes.size);
4277
4282
  let t = 0;
4278
4283
  this._nodes.forEach((i, a) => {
4279
- r[t++] = is(a, i);
4284
+ r[t++] = ss(a, i);
4280
4285
  });
4281
4286
  const e = new Array(this._edges.size);
4282
4287
  return t = 0, this._edges.forEach((i, a) => {
4283
- e[t++] = as(this.type, a, i);
4288
+ e[t++] = us(this.type, a, i);
4284
4289
  }), {
4285
4290
  options: {
4286
4291
  type: this.type,
@@ -4324,7 +4329,7 @@ class ae extends Wr.EventEmitter {
4324
4329
  "Graph.import: invalid nodes. Expecting an array."
4325
4330
  );
4326
4331
  for (e = 0, i = a.length; e < i; e++) {
4327
- o = a[e], os(o);
4332
+ o = a[e], ls(o);
4328
4333
  const { key: u, attributes: l } = o;
4329
4334
  t ? this.mergeNode(u, l) : this.addNode(u, l);
4330
4335
  }
@@ -4336,7 +4341,7 @@ class ae extends Wr.EventEmitter {
4336
4341
  "Graph.import: invalid edges. Expecting an array."
4337
4342
  );
4338
4343
  for (e = 0, i = a.length; e < i; e++) {
4339
- s = a[e], ss(s);
4344
+ s = a[e], cs(s);
4340
4345
  const {
4341
4346
  source: l,
4342
4347
  target: c,
@@ -4400,7 +4405,7 @@ class ae extends Wr.EventEmitter {
4400
4405
  const t = this.emptyCopy(r), e = this._edges.values();
4401
4406
  let i, a;
4402
4407
  for (; i = e.next(), i.done !== !0; )
4403
- a = i.value, Ai(
4408
+ a = i.value, ki(
4404
4409
  t,
4405
4410
  "copy",
4406
4411
  !1,
@@ -4450,14 +4455,14 @@ class ae extends Wr.EventEmitter {
4450
4455
  });
4451
4456
  const i = {};
4452
4457
  for (const a in this)
4453
- this.hasOwnProperty(a) && !yn.has(a) && typeof this[a] != "function" && typeof a != "symbol" && (i[a] = this[a]);
4458
+ this.hasOwnProperty(a) && !bn.has(a) && typeof this[a] != "function" && typeof a != "symbol" && (i[a] = this[a]);
4454
4459
  return i.attributes = this._attributes, i.nodes = r, i.edges = t, Ee(i, "constructor", this.constructor), i;
4455
4460
  }
4456
4461
  }
4457
4462
  typeof Symbol < "u" && (ae.prototype[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = ae.prototype.inspect);
4458
- cs.forEach((n) => {
4463
+ fs.forEach((n) => {
4459
4464
  ["add", "merge", "update"].forEach((r) => {
4460
- const t = n.name(r), e = r === "add" ? Ai : fs;
4465
+ const t = n.name(r), e = r === "add" ? ki : vs;
4461
4466
  n.generateKey ? ae.prototype[t] = function(i, a, o) {
4462
4467
  return e(
4463
4468
  this,
@@ -4485,11 +4490,11 @@ cs.forEach((n) => {
4485
4490
  };
4486
4491
  });
4487
4492
  });
4488
- _o(ae);
4489
- Po(ae);
4490
- Ko(ae);
4491
- ns(ae);
4492
- class ki extends ae {
4493
+ Ro(ae);
4494
+ Oo(ae);
4495
+ Qo(ae);
4496
+ os(ae);
4497
+ class Ci extends ae {
4493
4498
  constructor(r) {
4494
4499
  const t = ue({ type: "directed" }, r);
4495
4500
  if ("multi" in t && t.multi !== !1)
@@ -4503,7 +4508,7 @@ class ki extends ae {
4503
4508
  super(t);
4504
4509
  }
4505
4510
  }
4506
- class Ci extends ae {
4511
+ class xi extends ae {
4507
4512
  constructor(r) {
4508
4513
  const t = ue({ type: "undirected" }, r);
4509
4514
  if ("multi" in t && t.multi !== !1)
@@ -4517,7 +4522,7 @@ class Ci extends ae {
4517
4522
  super(t);
4518
4523
  }
4519
4524
  }
4520
- class xi extends ae {
4525
+ class Di extends ae {
4521
4526
  constructor(r) {
4522
4527
  const t = ue({ multi: !0 }, r);
4523
4528
  if ("multi" in t && t.multi !== !0)
@@ -4527,7 +4532,7 @@ class xi extends ae {
4527
4532
  super(t);
4528
4533
  }
4529
4534
  }
4530
- class Di extends ae {
4535
+ class Li extends ae {
4531
4536
  constructor(r) {
4532
4537
  const t = ue({ type: "directed", multi: !0 }, r);
4533
4538
  if ("multi" in t && t.multi !== !0)
@@ -4541,7 +4546,7 @@ class Di extends ae {
4541
4546
  super(t);
4542
4547
  }
4543
4548
  }
4544
- class Li extends ae {
4549
+ class Gi extends ae {
4545
4550
  constructor(r) {
4546
4551
  const t = ue({ type: "undirected", multi: !0 }, r);
4547
4552
  if ("multi" in t && t.multi !== !0)
@@ -4562,21 +4567,21 @@ function lt(n) {
4562
4567
  };
4563
4568
  }
4564
4569
  lt(ae);
4565
- lt(ki);
4566
4570
  lt(Ci);
4567
4571
  lt(xi);
4568
4572
  lt(Di);
4569
4573
  lt(Li);
4574
+ lt(Gi);
4570
4575
  ae.Graph = ae;
4571
- ae.DirectedGraph = ki;
4572
- ae.UndirectedGraph = Ci;
4573
- ae.MultiGraph = xi;
4574
- ae.MultiDirectedGraph = Di;
4575
- ae.MultiUndirectedGraph = Li;
4576
+ ae.DirectedGraph = Ci;
4577
+ ae.UndirectedGraph = xi;
4578
+ ae.MultiGraph = Di;
4579
+ ae.MultiDirectedGraph = Li;
4580
+ ae.MultiUndirectedGraph = Gi;
4576
4581
  ae.InvalidArgumentsGraphError = H;
4577
4582
  ae.NotFoundGraphError = M;
4578
4583
  ae.UsageGraphError = Q;
4579
- function gs(n, r) {
4584
+ function ms(n, r) {
4580
4585
  if (typeof n != "object" || !n) return n;
4581
4586
  var t = n[Symbol.toPrimitive];
4582
4587
  if (t !== void 0) {
@@ -4587,20 +4592,20 @@ function gs(n, r) {
4587
4592
  return String(n);
4588
4593
  }
4589
4594
  function Et(n) {
4590
- var r = gs(n, "string");
4595
+ var r = ms(n, "string");
4591
4596
  return typeof r == "symbol" ? r : r + "";
4592
4597
  }
4593
4598
  function ge(n, r) {
4594
4599
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
4595
4600
  }
4596
- function wn(n, r) {
4601
+ function En(n, r) {
4597
4602
  for (var t = 0; t < r.length; t++) {
4598
4603
  var e = r[t];
4599
4604
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, Et(e.key), e);
4600
4605
  }
4601
4606
  }
4602
4607
  function pe(n, r, t) {
4603
- return r && wn(n.prototype, r), t && wn(n, t), Object.defineProperty(n, "prototype", {
4608
+ return r && En(n.prototype, r), t && En(n, t), Object.defineProperty(n, "prototype", {
4604
4609
  writable: !1
4605
4610
  }), n;
4606
4611
  }
@@ -4609,27 +4614,27 @@ function nt(n) {
4609
4614
  return r.__proto__ || Object.getPrototypeOf(r);
4610
4615
  }, nt(n);
4611
4616
  }
4612
- function Gi() {
4617
+ function Pi() {
4613
4618
  try {
4614
4619
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
4615
4620
  }));
4616
4621
  } catch {
4617
4622
  }
4618
- return (Gi = function() {
4623
+ return (Pi = function() {
4619
4624
  return !!n;
4620
4625
  })();
4621
4626
  }
4622
- function ps(n) {
4627
+ function ys(n) {
4623
4628
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4624
4629
  return n;
4625
4630
  }
4626
- function vs(n, r) {
4631
+ function bs(n, r) {
4627
4632
  if (r && (typeof r == "object" || typeof r == "function")) return r;
4628
4633
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
4629
- return ps(n);
4634
+ return ys(n);
4630
4635
  }
4631
4636
  function Te(n, r, t) {
4632
- return r = nt(r), vs(n, Gi() ? Reflect.construct(r, t || [], nt(n).constructor) : r.apply(n, t));
4637
+ return r = nt(r), bs(n, Pi() ? Reflect.construct(r, t || [], nt(n).constructor) : r.apply(n, t));
4633
4638
  }
4634
4639
  function kr(n, r) {
4635
4640
  return kr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
@@ -4648,10 +4653,10 @@ function Se(n, r) {
4648
4653
  writable: !1
4649
4654
  }), r && kr(n, r);
4650
4655
  }
4651
- function ms(n) {
4656
+ function ws(n) {
4652
4657
  if (Array.isArray(n)) return n;
4653
4658
  }
4654
- function ys(n, r) {
4659
+ function Es(n, r) {
4655
4660
  var t = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
4656
4661
  if (t != null) {
4657
4662
  var e, i, a, o, s = [], u = !0, l = !1;
@@ -4677,19 +4682,19 @@ function Cr(n, r) {
4677
4682
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
4678
4683
  return e;
4679
4684
  }
4680
- function Pi(n, r) {
4685
+ function Ii(n, r) {
4681
4686
  if (n) {
4682
4687
  if (typeof n == "string") return Cr(n, r);
4683
4688
  var t = {}.toString.call(n).slice(8, -1);
4684
4689
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Cr(n, r) : void 0;
4685
4690
  }
4686
4691
  }
4687
- function bs() {
4692
+ function _s() {
4688
4693
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4689
4694
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4690
4695
  }
4691
4696
  function it(n, r) {
4692
- return ms(n) || ys(n, r) || Pi(n, r) || bs();
4697
+ return ws(n) || Es(n, r) || Ii(n, r) || _s();
4693
4698
  }
4694
4699
  var Jt = {
4695
4700
  black: "#000000",
@@ -4840,13 +4845,13 @@ var Jt = {
4840
4845
  snow: "#FFFAFA",
4841
4846
  lightyellow: "#FFFFE0",
4842
4847
  ivory: "#FFFFF0"
4843
- }, Ii = new Int8Array(4), er = new Int32Array(Ii.buffer, 0, 1), ws = new Float32Array(Ii.buffer, 0, 1), Es = /^\s*rgba?\s*\(/, _s = /^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;
4844
- function Ts(n) {
4848
+ }, Fi = new Int8Array(4), er = new Int32Array(Fi.buffer, 0, 1), Ts = new Float32Array(Fi.buffer, 0, 1), Ss = /^\s*rgba?\s*\(/, Rs = /^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;
4849
+ function As(n) {
4845
4850
  var r = 0, t = 0, e = 0, i = 1;
4846
4851
  if (n[0] === "#")
4847
4852
  n.length === 4 ? (r = parseInt(n.charAt(1) + n.charAt(1), 16), t = parseInt(n.charAt(2) + n.charAt(2), 16), e = parseInt(n.charAt(3) + n.charAt(3), 16)) : (r = parseInt(n.charAt(1) + n.charAt(2), 16), t = parseInt(n.charAt(3) + n.charAt(4), 16), e = parseInt(n.charAt(5) + n.charAt(6), 16)), n.length === 9 && (i = parseInt(n.charAt(7) + n.charAt(8), 16) / 255);
4848
- else if (Es.test(n)) {
4849
- var a = n.match(_s);
4853
+ else if (Ss.test(n)) {
4854
+ var a = n.match(Rs);
4850
4855
  a && (r = +a[1], t = +a[2], e = +a[3], a[4] && (i = +a[4]));
4851
4856
  }
4852
4857
  return {
@@ -4859,26 +4864,26 @@ function Ts(n) {
4859
4864
  var rt = {};
4860
4865
  for (var Ft in Jt)
4861
4866
  rt[Ft] = Ye(Jt[Ft]), rt[Jt[Ft]] = rt[Ft];
4862
- function Fi(n, r, t, e, i) {
4863
- return er[0] = e << 24 | t << 16 | r << 8 | n, er[0] = er[0] & 4278190079, ws[0];
4867
+ function Oi(n, r, t, e, i) {
4868
+ return er[0] = e << 24 | t << 16 | r << 8 | n, er[0] = er[0] & 4278190079, Ts[0];
4864
4869
  }
4865
4870
  function Ye(n) {
4866
4871
  if (n = n.toLowerCase(), typeof rt[n] < "u") return rt[n];
4867
- var r = Ts(n), t = r.r, e = r.g, i = r.b, a = r.a;
4872
+ var r = As(n), t = r.r, e = r.g, i = r.b, a = r.a;
4868
4873
  a = a * 255 | 0;
4869
- var o = Fi(t, e, i, a);
4874
+ var o = Oi(t, e, i, a);
4870
4875
  return rt[n] = o, o;
4871
4876
  }
4872
4877
  var tr = {};
4873
- function Oi(n) {
4878
+ function zi(n) {
4874
4879
  if (typeof tr[n] < "u") return tr[n];
4875
- var r = (n & 16711680) >>> 16, t = (n & 65280) >>> 8, e = n & 255, i = 255, a = Fi(r, t, e, i);
4880
+ var r = (n & 16711680) >>> 16, t = (n & 65280) >>> 8, e = n & 255, i = 255, a = Oi(r, t, e, i);
4876
4881
  return tr[n] = a, a;
4877
4882
  }
4878
- function En(n, r, t, e) {
4883
+ function _n(n, r, t, e) {
4879
4884
  return t + (r << 8) + (n << 16);
4880
4885
  }
4881
- function _n(n, r, t, e, i, a) {
4886
+ function Tn(n, r, t, e, i, a) {
4882
4887
  var o = Math.floor(t / a * i), s = Math.floor(n.drawingBufferHeight / a - e / a * i), u = new Uint8Array(4);
4883
4888
  n.bindFramebuffer(n.FRAMEBUFFER, r), n.readPixels(o, s, 1, 1, n.RGBA, n.UNSIGNED_BYTE, u);
4884
4889
  var l = it(u, 4), c = l[0], h = l[1], v = l[2], y = l[3];
@@ -4892,7 +4897,7 @@ function N(n, r, t) {
4892
4897
  writable: !0
4893
4898
  }) : n[r] = t, n;
4894
4899
  }
4895
- function Tn(n, r) {
4900
+ function Sn(n, r) {
4896
4901
  var t = Object.keys(n);
4897
4902
  if (Object.getOwnPropertySymbols) {
4898
4903
  var e = Object.getOwnPropertySymbols(n);
@@ -4905,43 +4910,43 @@ function Tn(n, r) {
4905
4910
  function j(n) {
4906
4911
  for (var r = 1; r < arguments.length; r++) {
4907
4912
  var t = arguments[r] != null ? arguments[r] : {};
4908
- r % 2 ? Tn(Object(t), !0).forEach(function(e) {
4913
+ r % 2 ? Sn(Object(t), !0).forEach(function(e) {
4909
4914
  N(n, e, t[e]);
4910
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Tn(Object(t)).forEach(function(e) {
4915
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Sn(Object(t)).forEach(function(e) {
4911
4916
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
4912
4917
  });
4913
4918
  }
4914
4919
  return n;
4915
4920
  }
4916
- function Ss(n, r) {
4921
+ function ks(n, r) {
4917
4922
  for (; !{}.hasOwnProperty.call(n, r) && (n = nt(n)) !== null; ) ;
4918
4923
  return n;
4919
4924
  }
4920
4925
  function xr() {
4921
4926
  return xr = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, r, t) {
4922
- var e = Ss(n, r);
4927
+ var e = ks(n, r);
4923
4928
  if (e) {
4924
4929
  var i = Object.getOwnPropertyDescriptor(e, r);
4925
4930
  return i.get ? i.get.call(arguments.length < 3 ? n : t) : i.value;
4926
4931
  }
4927
4932
  }, xr.apply(null, arguments);
4928
4933
  }
4929
- function zi(n, r, t, e) {
4934
+ function Ni(n, r, t, e) {
4930
4935
  var i = xr(nt(n.prototype), r, t);
4931
4936
  return typeof i == "function" ? function(a) {
4932
4937
  return i.apply(t, a);
4933
4938
  } : i;
4934
4939
  }
4935
- function Rs(n) {
4940
+ function Cs(n) {
4936
4941
  return n.normalized ? 1 : n.size;
4937
4942
  }
4938
4943
  function rr(n) {
4939
4944
  var r = 0;
4940
4945
  return n.forEach(function(t) {
4941
- return r += Rs(t);
4946
+ return r += Cs(t);
4942
4947
  }), r;
4943
4948
  }
4944
- function Ni(n, r, t) {
4949
+ function Ui(n, r, t) {
4945
4950
  var e = n === "VERTEX" ? r.VERTEX_SHADER : r.FRAGMENT_SHADER, i = r.createShader(e);
4946
4951
  if (i === null)
4947
4952
  throw new Error("loadShader: error while creating the shader");
@@ -4955,13 +4960,13 @@ function Ni(n, r, t) {
4955
4960
  }
4956
4961
  return i;
4957
4962
  }
4958
- function As(n, r) {
4959
- return Ni("VERTEX", n, r);
4963
+ function xs(n, r) {
4964
+ return Ui("VERTEX", n, r);
4960
4965
  }
4961
- function ks(n, r) {
4962
- return Ni("FRAGMENT", n, r);
4966
+ function Ds(n, r) {
4967
+ return Ui("FRAGMENT", n, r);
4963
4968
  }
4964
- function Cs(n, r) {
4969
+ function Ls(n, r) {
4965
4970
  var t = n.createProgram();
4966
4971
  if (t === null)
4967
4972
  throw new Error("loadProgram: error while creating the program.");
@@ -4975,16 +4980,16 @@ function Cs(n, r) {
4975
4980
  }
4976
4981
  return t;
4977
4982
  }
4978
- function Sn(n) {
4983
+ function Rn(n) {
4979
4984
  var r = n.gl, t = n.buffer, e = n.program, i = n.vertexShader, a = n.fragmentShader;
4980
4985
  r.deleteShader(i), r.deleteShader(a), r.deleteProgram(e), r.deleteBuffer(t);
4981
4986
  }
4982
- var Rn = `#define PICKING_MODE
4983
- `, xs = N(N(N(N(N(N(N(N({}, WebGL2RenderingContext.BOOL, 1), WebGL2RenderingContext.BYTE, 1), WebGL2RenderingContext.UNSIGNED_BYTE, 1), WebGL2RenderingContext.SHORT, 2), WebGL2RenderingContext.UNSIGNED_SHORT, 2), WebGL2RenderingContext.INT, 4), WebGL2RenderingContext.UNSIGNED_INT, 4), WebGL2RenderingContext.FLOAT, 4), Ui = /* @__PURE__ */ (function() {
4987
+ var An = `#define PICKING_MODE
4988
+ `, Gs = N(N(N(N(N(N(N(N({}, WebGL2RenderingContext.BOOL, 1), WebGL2RenderingContext.BYTE, 1), WebGL2RenderingContext.UNSIGNED_BYTE, 1), WebGL2RenderingContext.SHORT, 2), WebGL2RenderingContext.UNSIGNED_SHORT, 2), WebGL2RenderingContext.INT, 4), WebGL2RenderingContext.UNSIGNED_INT, 4), WebGL2RenderingContext.FLOAT, 4), $i = /* @__PURE__ */ (function() {
4984
4989
  function n(r, t, e) {
4985
4990
  ge(this, n), N(this, "array", new Float32Array()), N(this, "constantArray", new Float32Array()), N(this, "capacity", 0), N(this, "verticesCount", 0);
4986
4991
  var i = this.getDefinition();
4987
- if (this.VERTICES = i.VERTICES, this.VERTEX_SHADER_SOURCE = i.VERTEX_SHADER_SOURCE, this.FRAGMENT_SHADER_SOURCE = i.FRAGMENT_SHADER_SOURCE, this.UNIFORMS = i.UNIFORMS, this.ATTRIBUTES = i.ATTRIBUTES, this.METHOD = i.METHOD, this.CONSTANT_ATTRIBUTES = "CONSTANT_ATTRIBUTES" in i ? i.CONSTANT_ATTRIBUTES : [], this.CONSTANT_DATA = "CONSTANT_DATA" in i ? i.CONSTANT_DATA : [], this.isInstanced = "CONSTANT_ATTRIBUTES" in i, this.ATTRIBUTES_ITEMS_COUNT = rr(this.ATTRIBUTES), this.STRIDE = this.VERTICES * this.ATTRIBUTES_ITEMS_COUNT, this.renderer = e, this.normalProgram = this.getProgramInfo("normal", r, i.VERTEX_SHADER_SOURCE, i.FRAGMENT_SHADER_SOURCE, null), this.pickProgram = t ? this.getProgramInfo("pick", r, Rn + i.VERTEX_SHADER_SOURCE, Rn + i.FRAGMENT_SHADER_SOURCE, t) : null, this.isInstanced) {
4992
+ if (this.VERTICES = i.VERTICES, this.VERTEX_SHADER_SOURCE = i.VERTEX_SHADER_SOURCE, this.FRAGMENT_SHADER_SOURCE = i.FRAGMENT_SHADER_SOURCE, this.UNIFORMS = i.UNIFORMS, this.ATTRIBUTES = i.ATTRIBUTES, this.METHOD = i.METHOD, this.CONSTANT_ATTRIBUTES = "CONSTANT_ATTRIBUTES" in i ? i.CONSTANT_ATTRIBUTES : [], this.CONSTANT_DATA = "CONSTANT_DATA" in i ? i.CONSTANT_DATA : [], this.isInstanced = "CONSTANT_ATTRIBUTES" in i, this.ATTRIBUTES_ITEMS_COUNT = rr(this.ATTRIBUTES), this.STRIDE = this.VERTICES * this.ATTRIBUTES_ITEMS_COUNT, this.renderer = e, this.normalProgram = this.getProgramInfo("normal", r, i.VERTEX_SHADER_SOURCE, i.FRAGMENT_SHADER_SOURCE, null), this.pickProgram = t ? this.getProgramInfo("pick", r, An + i.VERTEX_SHADER_SOURCE, An + i.FRAGMENT_SHADER_SOURCE, t) : null, this.isInstanced) {
4988
4993
  var a = rr(this.CONSTANT_ATTRIBUTES);
4989
4994
  if (this.CONSTANT_DATA.length !== this.VERTICES) throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES, " items, received ").concat(this.CONSTANT_DATA.length, " instead)"));
4990
4995
  this.constantArray = new Float32Array(this.CONSTANT_DATA.length * a);
@@ -4999,14 +5004,14 @@ var Rn = `#define PICKING_MODE
4999
5004
  return pe(n, [{
5000
5005
  key: "kill",
5001
5006
  value: function() {
5002
- Sn(this.normalProgram), this.pickProgram && (Sn(this.pickProgram), this.pickProgram = null);
5007
+ Rn(this.normalProgram), this.pickProgram && (Rn(this.pickProgram), this.pickProgram = null);
5003
5008
  }
5004
5009
  }, {
5005
5010
  key: "getProgramInfo",
5006
5011
  value: function(t, e, i, a, o) {
5007
5012
  var s = this.getDefinition(), u = e.createBuffer();
5008
5013
  if (u === null) throw new Error("Program: error while creating the WebGL buffer.");
5009
- var l = As(e, i), c = ks(e, a), h = Cs(e, [l, c]), v = {};
5014
+ var l = xs(e, i), c = Ds(e, a), h = Ls(e, [l, c]), v = {};
5010
5015
  s.UNIFORMS.forEach(function(R) {
5011
5016
  var w = e.getUniformLocation(h, R);
5012
5017
  w && (v[R] = w);
@@ -5061,7 +5066,7 @@ var Rn = `#define PICKING_MODE
5061
5066
  }, {
5062
5067
  key: "bindAttribute",
5063
5068
  value: function(t, e, i, a) {
5064
- var o = xs[t.type];
5069
+ var o = Gs[t.type];
5065
5070
  if (typeof o != "number") throw new Error('Program.bind: yet unsupported attribute type "'.concat(t.type, '"'));
5066
5071
  var s = e.attributeLocations[t.name], u = e.gl;
5067
5072
  if (s !== -1) {
@@ -5126,14 +5131,14 @@ var Rn = `#define PICKING_MODE
5126
5131
  }
5127
5132
  }
5128
5133
  }]);
5129
- })(), $i = /* @__PURE__ */ (function(n) {
5134
+ })(), Mi = /* @__PURE__ */ (function(n) {
5130
5135
  function r() {
5131
5136
  return ge(this, r), Te(this, r, arguments);
5132
5137
  }
5133
5138
  return Se(r, n), pe(r, [{
5134
5139
  key: "kill",
5135
5140
  value: function() {
5136
- zi(r, "kill", this)([]);
5141
+ Ni(r, "kill", this)([]);
5137
5142
  }
5138
5143
  }, {
5139
5144
  key: "process",
@@ -5144,10 +5149,10 @@ var Rn = `#define PICKING_MODE
5144
5149
  this.array[o] = 0;
5145
5150
  return;
5146
5151
  }
5147
- return this.processVisibleItem(Oi(e), o, a);
5152
+ return this.processVisibleItem(zi(e), o, a);
5148
5153
  }
5149
5154
  }]);
5150
- })(Ui), Ht = /* @__PURE__ */ (function(n) {
5155
+ })($i), Ht = /* @__PURE__ */ (function(n) {
5151
5156
  function r() {
5152
5157
  var t;
5153
5158
  ge(this, r);
@@ -5158,7 +5163,7 @@ var Rn = `#define PICKING_MODE
5158
5163
  return Se(r, n), pe(r, [{
5159
5164
  key: "kill",
5160
5165
  value: function() {
5161
- zi(r, "kill", this)([]);
5166
+ Ni(r, "kill", this)([]);
5162
5167
  }
5163
5168
  }, {
5164
5169
  key: "process",
@@ -5169,11 +5174,11 @@ var Rn = `#define PICKING_MODE
5169
5174
  this.array[u] = 0;
5170
5175
  return;
5171
5176
  }
5172
- return this.processVisibleItem(Oi(e), u, a, o, s);
5177
+ return this.processVisibleItem(zi(e), u, a, o, s);
5173
5178
  }
5174
5179
  }]);
5175
- })(Ui);
5176
- function Ds(n, r) {
5180
+ })($i);
5181
+ function Ps(n, r) {
5177
5182
  return /* @__PURE__ */ (function() {
5178
5183
  function t(e, i, a) {
5179
5184
  ge(this, t), N(this, "drawLabel", r), this.programs = n.map(function(o) {
@@ -5211,7 +5216,7 @@ function Ds(n, r) {
5211
5216
  }]);
5212
5217
  })();
5213
5218
  }
5214
- function Ls(n, r, t, e, i) {
5219
+ function Is(n, r, t, e, i) {
5215
5220
  var a = i.edgeLabelSize, o = i.edgeLabelFont, s = i.edgeLabelWeight, u = i.edgeLabelColor.attribute ? r[i.edgeLabelColor.attribute] || i.edgeLabelColor.color || "#000" : i.edgeLabelColor.color, l = r.label;
5216
5221
  if (l) {
5217
5222
  n.fillStyle = u, n.font = "".concat(s, " ").concat(a, "px ").concat(o);
@@ -5230,13 +5235,13 @@ function Ls(n, r, t, e, i) {
5230
5235
  }
5231
5236
  }
5232
5237
  }
5233
- function Mi(n, r, t) {
5238
+ function Bi(n, r, t) {
5234
5239
  if (r.label) {
5235
5240
  var e = t.labelSize, i = t.labelFont, a = t.labelWeight, o = t.labelColor.attribute ? r[t.labelColor.attribute] || t.labelColor.color || "#000" : t.labelColor.color;
5236
5241
  n.fillStyle = o, n.font = "".concat(a, " ").concat(e, "px ").concat(i), n.fillText(r.label, r.x + r.size + 3, r.y + e / 3);
5237
5242
  }
5238
5243
  }
5239
- function Gs(n, r, t) {
5244
+ function Fs(n, r, t) {
5240
5245
  var e = t.labelSize, i = t.labelFont, a = t.labelWeight;
5241
5246
  n.font = "".concat(a, " ").concat(e, "px ").concat(i), n.fillStyle = "#FFF", n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 8, n.shadowColor = "#000";
5242
5247
  var o = 2;
@@ -5245,9 +5250,9 @@ function Gs(n, r, t) {
5245
5250
  n.beginPath(), n.moveTo(r.x + v, r.y + l / 2), n.lineTo(r.x + c + u, r.y + l / 2), n.lineTo(r.x + c + u, r.y - l / 2), n.lineTo(r.x + v, r.y - l / 2), n.arc(r.x, r.y, c, h, -h), n.closePath(), n.fill();
5246
5251
  } else
5247
5252
  n.beginPath(), n.arc(r.x, r.y, r.size + o, 0, Math.PI * 2), n.closePath(), n.fill();
5248
- n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 0, Mi(n, r, t);
5253
+ n.shadowOffsetX = 0, n.shadowOffsetY = 0, n.shadowBlur = 0, Bi(n, r, t);
5249
5254
  }
5250
- var Ps = (
5255
+ var Os = (
5251
5256
  /*glsl*/
5252
5257
  `
5253
5258
  precision highp float;
@@ -5282,7 +5287,7 @@ void main(void) {
5282
5287
  #endif
5283
5288
  }
5284
5289
  `
5285
- ), Is = Ps, Fs = (
5290
+ ), zs = Os, Ns = (
5286
5291
  /*glsl*/
5287
5292
  `
5288
5293
  attribute vec4 a_id;
@@ -5326,7 +5331,7 @@ void main() {
5326
5331
  v_color.a *= bias;
5327
5332
  }
5328
5333
  `
5329
- ), Os = Fs, Bi = WebGLRenderingContext, An = Bi.UNSIGNED_BYTE, nr = Bi.FLOAT, zs = ["u_sizeRatio", "u_correctionRatio", "u_matrix"], At = /* @__PURE__ */ (function(n) {
5334
+ ), Us = Ns, Wi = WebGLRenderingContext, kn = Wi.UNSIGNED_BYTE, nr = Wi.FLOAT, $s = ["u_sizeRatio", "u_correctionRatio", "u_matrix"], At = /* @__PURE__ */ (function(n) {
5330
5335
  function r() {
5331
5336
  return ge(this, r), Te(this, r, arguments);
5332
5337
  }
@@ -5335,10 +5340,10 @@ void main() {
5335
5340
  value: function() {
5336
5341
  return {
5337
5342
  VERTICES: 3,
5338
- VERTEX_SHADER_SOURCE: Os,
5339
- FRAGMENT_SHADER_SOURCE: Is,
5343
+ VERTEX_SHADER_SOURCE: Us,
5344
+ FRAGMENT_SHADER_SOURCE: zs,
5340
5345
  METHOD: WebGLRenderingContext.TRIANGLES,
5341
- UNIFORMS: zs,
5346
+ UNIFORMS: $s,
5342
5347
  ATTRIBUTES: [{
5343
5348
  name: "a_position",
5344
5349
  size: 2,
@@ -5350,12 +5355,12 @@ void main() {
5350
5355
  }, {
5351
5356
  name: "a_color",
5352
5357
  size: 4,
5353
- type: An,
5358
+ type: kn,
5354
5359
  normalized: !0
5355
5360
  }, {
5356
5361
  name: "a_id",
5357
5362
  size: 4,
5358
- type: An,
5363
+ type: kn,
5359
5364
  normalized: !0
5360
5365
  }],
5361
5366
  CONSTANT_ATTRIBUTES: [{
@@ -5379,11 +5384,11 @@ void main() {
5379
5384
  a.uniform1f(u, e.correctionRatio), a.uniform1f(s, e.sizeRatio), a.uniformMatrix3fv(l, !1, e.matrix);
5380
5385
  }
5381
5386
  }]);
5382
- })($i);
5387
+ })(Mi);
5383
5388
  N(At, "ANGLE_1", 0);
5384
5389
  N(At, "ANGLE_2", 2 * Math.PI / 3);
5385
5390
  N(At, "ANGLE_3", 4 * Math.PI / 3);
5386
- var Ns = (
5391
+ var Ms = (
5387
5392
  /*glsl*/
5388
5393
  `
5389
5394
  precision mediump float;
@@ -5394,7 +5399,7 @@ void main(void) {
5394
5399
  gl_FragColor = v_color;
5395
5400
  }
5396
5401
  `
5397
- ), Us = Ns, $s = (
5402
+ ), Bs = Ms, Ws = (
5398
5403
  /*glsl*/
5399
5404
  `
5400
5405
  attribute vec2 a_position;
@@ -5463,12 +5468,12 @@ void main() {
5463
5468
  v_color.a *= bias;
5464
5469
  }
5465
5470
  `
5466
- ), Ms = $s, Wi = WebGLRenderingContext, kn = Wi.UNSIGNED_BYTE, Ot = Wi.FLOAT, Bs = ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness", "u_lengthToThicknessRatio", "u_widenessToThicknessRatio"], jt = {
5471
+ ), Hs = Ws, Hi = WebGLRenderingContext, Cn = Hi.UNSIGNED_BYTE, Ot = Hi.FLOAT, js = ["u_matrix", "u_sizeRatio", "u_correctionRatio", "u_minEdgeThickness", "u_lengthToThicknessRatio", "u_widenessToThicknessRatio"], jt = {
5467
5472
  extremity: "target",
5468
5473
  lengthToThicknessRatio: 2.5,
5469
5474
  widenessToThicknessRatio: 2
5470
5475
  };
5471
- function Hi(n) {
5476
+ function ji(n) {
5472
5477
  var r = j(j({}, jt), {});
5473
5478
  return /* @__PURE__ */ (function(t) {
5474
5479
  function e() {
@@ -5479,10 +5484,10 @@ function Hi(n) {
5479
5484
  value: function() {
5480
5485
  return {
5481
5486
  VERTICES: 3,
5482
- VERTEX_SHADER_SOURCE: Ms,
5483
- FRAGMENT_SHADER_SOURCE: Us,
5487
+ VERTEX_SHADER_SOURCE: Hs,
5488
+ FRAGMENT_SHADER_SOURCE: Bs,
5484
5489
  METHOD: WebGLRenderingContext.TRIANGLES,
5485
- UNIFORMS: Bs,
5490
+ UNIFORMS: js,
5486
5491
  ATTRIBUTES: [{
5487
5492
  name: "a_position",
5488
5493
  size: 2,
@@ -5498,12 +5503,12 @@ function Hi(n) {
5498
5503
  }, {
5499
5504
  name: "a_color",
5500
5505
  size: 4,
5501
- type: kn,
5506
+ type: Cn,
5502
5507
  normalized: !0
5503
5508
  }, {
5504
5509
  name: "a_id",
5505
5510
  size: 4,
5506
- type: kn,
5511
+ type: Cn,
5507
5512
  normalized: !0
5508
5513
  }],
5509
5514
  CONSTANT_ATTRIBUTES: [{
@@ -5535,8 +5540,8 @@ function Hi(n) {
5535
5540
  }]);
5536
5541
  })(Ht);
5537
5542
  }
5538
- Hi();
5539
- var Ws = (
5543
+ ji();
5544
+ var Vs = (
5540
5545
  /*glsl*/
5541
5546
  `
5542
5547
  precision mediump float;
@@ -5565,7 +5570,7 @@ void main(void) {
5565
5570
  #endif
5566
5571
  }
5567
5572
  `
5568
- ), ji = Ws, Hs = (
5573
+ ), Vi = Vs, qs = (
5569
5574
  /*glsl*/
5570
5575
  `
5571
5576
  attribute vec4 a_id;
@@ -5636,11 +5641,11 @@ void main() {
5636
5641
  v_color.a *= bias;
5637
5642
  }
5638
5643
  `
5639
- ), js = Hs, Vi = WebGLRenderingContext, Cn = Vi.UNSIGNED_BYTE, qe = Vi.FLOAT, Vs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness", "u_lengthToThicknessRatio"], qs = {
5644
+ ), Ks = qs, qi = WebGLRenderingContext, xn = qi.UNSIGNED_BYTE, qe = qi.FLOAT, Xs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness", "u_lengthToThicknessRatio"], Ys = {
5640
5645
  lengthToThicknessRatio: jt.lengthToThicknessRatio
5641
5646
  };
5642
- function qi(n) {
5643
- var r = j(j({}, qs), {});
5647
+ function Ki(n) {
5648
+ var r = j(j({}, Ys), {});
5644
5649
  return /* @__PURE__ */ (function(t) {
5645
5650
  function e() {
5646
5651
  return ge(this, e), Te(this, e, arguments);
@@ -5650,10 +5655,10 @@ function qi(n) {
5650
5655
  value: function() {
5651
5656
  return {
5652
5657
  VERTICES: 6,
5653
- VERTEX_SHADER_SOURCE: js,
5654
- FRAGMENT_SHADER_SOURCE: ji,
5658
+ VERTEX_SHADER_SOURCE: Ks,
5659
+ FRAGMENT_SHADER_SOURCE: Vi,
5655
5660
  METHOD: WebGLRenderingContext.TRIANGLES,
5656
- UNIFORMS: Vs,
5661
+ UNIFORMS: Xs,
5657
5662
  ATTRIBUTES: [{
5658
5663
  name: "a_positionStart",
5659
5664
  size: 2,
@@ -5669,12 +5674,12 @@ function qi(n) {
5669
5674
  }, {
5670
5675
  name: "a_color",
5671
5676
  size: 4,
5672
- type: Cn,
5677
+ type: xn,
5673
5678
  normalized: !0
5674
5679
  }, {
5675
5680
  name: "a_id",
5676
5681
  size: 4,
5677
- type: Cn,
5682
+ type: xn,
5678
5683
  normalized: !0
5679
5684
  }, {
5680
5685
  name: "a_radius",
@@ -5720,11 +5725,11 @@ function qi(n) {
5720
5725
  }]);
5721
5726
  })(Ht);
5722
5727
  }
5723
- qi();
5724
- function Xs(n) {
5725
- return Ds([qi(), Hi()]);
5728
+ Ki();
5729
+ function Zs(n) {
5730
+ return Ps([Ki(), ji()]);
5726
5731
  }
5727
- var Ks = Xs(), Xi = Ks, Ys = (
5732
+ var Qs = Zs(), Xi = Qs, Js = (
5728
5733
  /*glsl*/
5729
5734
  `
5730
5735
  attribute vec4 a_id;
@@ -5792,7 +5797,7 @@ void main() {
5792
5797
  v_color.a *= bias;
5793
5798
  }
5794
5799
  `
5795
- ), Zs = Ys, Ki = WebGLRenderingContext, xn = Ki.UNSIGNED_BYTE, ft = Ki.FLOAT, Qs = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness"], Yi = /* @__PURE__ */ (function(n) {
5800
+ ), eu = Js, Yi = WebGLRenderingContext, Dn = Yi.UNSIGNED_BYTE, ft = Yi.FLOAT, tu = ["u_matrix", "u_zoomRatio", "u_sizeRatio", "u_correctionRatio", "u_pixelRatio", "u_feather", "u_minEdgeThickness"], Zi = /* @__PURE__ */ (function(n) {
5796
5801
  function r() {
5797
5802
  return ge(this, r), Te(this, r, arguments);
5798
5803
  }
@@ -5801,10 +5806,10 @@ void main() {
5801
5806
  value: function() {
5802
5807
  return {
5803
5808
  VERTICES: 6,
5804
- VERTEX_SHADER_SOURCE: Zs,
5805
- FRAGMENT_SHADER_SOURCE: ji,
5809
+ VERTEX_SHADER_SOURCE: eu,
5810
+ FRAGMENT_SHADER_SOURCE: Vi,
5806
5811
  METHOD: WebGLRenderingContext.TRIANGLES,
5807
- UNIFORMS: Qs,
5812
+ UNIFORMS: tu,
5808
5813
  ATTRIBUTES: [{
5809
5814
  name: "a_positionStart",
5810
5815
  size: 2,
@@ -5820,12 +5825,12 @@ void main() {
5820
5825
  }, {
5821
5826
  name: "a_color",
5822
5827
  size: 4,
5823
- type: xn,
5828
+ type: Dn,
5824
5829
  normalized: !0
5825
5830
  }, {
5826
5831
  name: "a_id",
5827
5832
  size: 4,
5828
- type: xn,
5833
+ type: Dn,
5829
5834
  normalized: !0
5830
5835
  }],
5831
5836
  CONSTANT_ATTRIBUTES: [
@@ -5860,43 +5865,43 @@ void main() {
5860
5865
  a.uniformMatrix3fv(s, !1, e.matrix), a.uniform1f(u, e.zoomRatio), a.uniform1f(v, e.sizeRatio), a.uniform1f(h, e.correctionRatio), a.uniform1f(c, e.pixelRatio), a.uniform1f(l, e.antiAliasingFeather), a.uniform1f(y, e.minEdgeThickness);
5861
5866
  }
5862
5867
  }]);
5863
- })(Ht), Xr = /* @__PURE__ */ (function(n) {
5868
+ })(Ht), Kr = /* @__PURE__ */ (function(n) {
5864
5869
  function r() {
5865
5870
  var t;
5866
5871
  return ge(this, r), t = Te(this, r), t.rawEmitter = t, t;
5867
5872
  }
5868
5873
  return Se(r, n), pe(r);
5869
- })(Wr.EventEmitter), ir, Dn;
5874
+ })(Wr.EventEmitter), ir, Ln;
5870
5875
  function Ze() {
5871
- return Dn || (Dn = 1, ir = function(r) {
5876
+ return Ln || (Ln = 1, ir = function(r) {
5872
5877
  return r !== null && typeof r == "object" && typeof r.addUndirectedEdgeWithKey == "function" && typeof r.dropNode == "function" && typeof r.multi == "boolean";
5873
5878
  }), ir;
5874
5879
  }
5875
- var Js = Ze();
5876
- const eu = /* @__PURE__ */ Br(Js);
5877
- var tu = function(r) {
5880
+ var ru = Ze();
5881
+ const nu = /* @__PURE__ */ Br(ru);
5882
+ var iu = function(r) {
5878
5883
  return r;
5879
- }, ru = function(r) {
5884
+ }, au = function(r) {
5880
5885
  return r * r;
5881
- }, nu = function(r) {
5886
+ }, ou = function(r) {
5882
5887
  return r * (2 - r);
5883
- }, iu = function(r) {
5888
+ }, su = function(r) {
5884
5889
  return (r *= 2) < 1 ? 0.5 * r * r : -0.5 * (--r * (r - 2) - 1);
5885
- }, au = function(r) {
5890
+ }, uu = function(r) {
5886
5891
  return r * r * r;
5887
- }, ou = function(r) {
5892
+ }, lu = function(r) {
5888
5893
  return --r * r * r + 1;
5889
- }, su = function(r) {
5894
+ }, cu = function(r) {
5890
5895
  return (r *= 2) < 1 ? 0.5 * r * r * r : 0.5 * ((r -= 2) * r * r + 2);
5891
- }, uu = {
5892
- linear: tu,
5893
- quadraticIn: ru,
5894
- quadraticOut: nu,
5895
- quadraticInOut: iu,
5896
- cubicIn: au,
5897
- cubicOut: ou,
5898
- cubicInOut: su
5899
- }, lu = {
5896
+ }, hu = {
5897
+ linear: iu,
5898
+ quadraticIn: au,
5899
+ quadraticOut: ou,
5900
+ quadraticInOut: su,
5901
+ cubicIn: uu,
5902
+ cubicOut: lu,
5903
+ cubicInOut: cu
5904
+ }, du = {
5900
5905
  easing: "quadraticInOut",
5901
5906
  duration: 150
5902
5907
  };
@@ -5906,11 +5911,11 @@ function ke() {
5906
5911
  function zt(n, r, t) {
5907
5912
  return n[0] = r, n[4] = typeof t == "number" ? t : r, n;
5908
5913
  }
5909
- function Ln(n, r) {
5914
+ function Gn(n, r) {
5910
5915
  var t = Math.sin(r), e = Math.cos(r);
5911
5916
  return n[0] = e, n[1] = t, n[3] = -t, n[4] = e, n;
5912
5917
  }
5913
- function Gn(n, r, t) {
5918
+ function Pn(n, r, t) {
5914
5919
  return n[6] = r, n[7] = t, n;
5915
5920
  }
5916
5921
  function $e(n, r) {
@@ -5924,22 +5929,22 @@ function Dr(n, r) {
5924
5929
  y: l * i + c * o + u * t
5925
5930
  };
5926
5931
  }
5927
- function cu(n, r) {
5932
+ function fu(n, r) {
5928
5933
  var t = n.height / n.width, e = r.height / r.width;
5929
5934
  return t < 1 && e > 1 || t > 1 && e < 1 ? 1 : Math.min(Math.max(e, 1 / e), Math.max(1 / t, t));
5930
5935
  }
5931
5936
  function gt(n, r, t, e, i) {
5932
- var a = n.angle, o = n.ratio, s = n.x, u = n.y, l = r.width, c = r.height, h = ke(), v = Math.min(l, c) - 2 * e, y = cu(r, t);
5933
- return i ? ($e(h, Gn(ke(), s, u)), $e(h, zt(ke(), o)), $e(h, Ln(ke(), a)), $e(h, zt(ke(), l / v / 2 / y, c / v / 2 / y))) : ($e(h, zt(ke(), 2 * (v / l) * y, 2 * (v / c) * y)), $e(h, Ln(ke(), -a)), $e(h, zt(ke(), 1 / o)), $e(h, Gn(ke(), -s, -u))), h;
5937
+ var a = n.angle, o = n.ratio, s = n.x, u = n.y, l = r.width, c = r.height, h = ke(), v = Math.min(l, c) - 2 * e, y = fu(r, t);
5938
+ return i ? ($e(h, Pn(ke(), s, u)), $e(h, zt(ke(), o)), $e(h, Gn(ke(), a)), $e(h, zt(ke(), l / v / 2 / y, c / v / 2 / y))) : ($e(h, zt(ke(), 2 * (v / l) * y, 2 * (v / c) * y)), $e(h, Gn(ke(), -a)), $e(h, zt(ke(), 1 / o)), $e(h, Pn(ke(), -s, -u))), h;
5934
5939
  }
5935
- function hu(n, r, t) {
5940
+ function gu(n, r, t) {
5936
5941
  var e = Dr(n, {
5937
5942
  x: Math.cos(r.angle),
5938
5943
  y: Math.sin(r.angle)
5939
5944
  }, 0), i = e.x, a = e.y;
5940
5945
  return 1 / Math.sqrt(Math.pow(i, 2) + Math.pow(a, 2)) / t.width;
5941
5946
  }
5942
- function du(n) {
5947
+ function pu(n) {
5943
5948
  if (!n.order) return {
5944
5949
  x: [0, 1],
5945
5950
  y: [0, 1]
@@ -5953,14 +5958,14 @@ function du(n) {
5953
5958
  y: [e, i]
5954
5959
  };
5955
5960
  }
5956
- function fu(n) {
5957
- if (!eu(n)) throw new Error("Sigma: invalid graph instance.");
5961
+ function vu(n) {
5962
+ if (!nu(n)) throw new Error("Sigma: invalid graph instance.");
5958
5963
  n.forEachNode(function(r, t) {
5959
5964
  if (!Number.isFinite(t.x) || !Number.isFinite(t.y))
5960
5965
  throw new Error("Sigma: Coordinates of node ".concat(r, " are invalid. A node must have a numeric 'x' and 'y' attribute."));
5961
5966
  });
5962
5967
  }
5963
- function gu(n, r, t) {
5968
+ function mu(n, r, t) {
5964
5969
  var e = document.createElement(n);
5965
5970
  if (r)
5966
5971
  for (var i in r)
@@ -5970,16 +5975,16 @@ function gu(n, r, t) {
5970
5975
  e.setAttribute(a, t[a]);
5971
5976
  return e;
5972
5977
  }
5973
- function Pn() {
5978
+ function In() {
5974
5979
  return typeof window.devicePixelRatio < "u" ? window.devicePixelRatio : 1;
5975
5980
  }
5976
- function In(n, r, t) {
5981
+ function Fn(n, r, t) {
5977
5982
  return t.sort(function(e, i) {
5978
5983
  var a = r(e) || 0, o = r(i) || 0;
5979
5984
  return a < o ? -1 : a > o ? 1 : 0;
5980
5985
  });
5981
5986
  }
5982
- function Fn(n) {
5987
+ function On(n) {
5983
5988
  var r = it(n.x, 2), t = r[0], e = r[1], i = it(n.y, 2), a = i[0], o = i[1], s = Math.max(e - t, o - a), u = (e + t) / 2, l = (o + a) / 2;
5984
5989
  (s === 0 || Math.abs(s) === 1 / 0 || isNaN(s)) && (s = 1), isNaN(u) && (u = 0), isNaN(l) && (l = 0);
5985
5990
  var c = function(v) {
@@ -6005,7 +6010,7 @@ function Lr(n) {
6005
6010
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
6006
6011
  }, Lr(n);
6007
6012
  }
6008
- function On(n, r) {
6013
+ function zn(n, r) {
6009
6014
  var t = r.size;
6010
6015
  if (t !== 0) {
6011
6016
  var e = n.length;
@@ -6024,7 +6029,7 @@ function ar(n) {
6024
6029
  }
6025
6030
  return n;
6026
6031
  }
6027
- var Kr = {
6032
+ var Xr = {
6028
6033
  // Performance
6029
6034
  hideEdgesOnMove: !1,
6030
6035
  hideLabelsOnMove: !1,
@@ -6049,9 +6054,9 @@ var Kr = {
6049
6054
  attribute: "color"
6050
6055
  },
6051
6056
  stagePadding: 30,
6052
- defaultDrawEdgeLabel: Ls,
6053
- defaultDrawNodeLabel: Mi,
6054
- defaultDrawNodeHover: Gs,
6057
+ defaultDrawEdgeLabel: Is,
6058
+ defaultDrawNodeLabel: Bi,
6059
+ defaultDrawNodeHover: Fs,
6055
6060
  minEdgeThickness: 1.7,
6056
6061
  antiAliasingFeather: 1,
6057
6062
  // Mouse and touch settings
@@ -6091,11 +6096,11 @@ var Kr = {
6091
6096
  nodeProgramClasses: {},
6092
6097
  nodeHoverProgramClasses: {},
6093
6098
  edgeProgramClasses: {}
6094
- }, pu = {
6099
+ }, yu = {
6095
6100
  circle: At
6096
- }, vu = {
6101
+ }, bu = {
6097
6102
  arrow: Xi,
6098
- line: Yi
6103
+ line: Zi
6099
6104
  };
6100
6105
  function or(n) {
6101
6106
  if (typeof n.labelDensity != "number" || n.labelDensity < 0)
@@ -6104,11 +6109,11 @@ function or(n) {
6104
6109
  if (typeof r == "number" && typeof t == "number" && t < r)
6105
6110
  throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.");
6106
6111
  }
6107
- function mu(n) {
6108
- var r = ar({}, Kr, n);
6109
- return r.nodeProgramClasses = ar({}, pu, r.nodeProgramClasses), r.edgeProgramClasses = ar({}, vu, r.edgeProgramClasses), r;
6112
+ function wu(n) {
6113
+ var r = ar({}, Xr, n);
6114
+ return r.nodeProgramClasses = ar({}, yu, r.nodeProgramClasses), r.edgeProgramClasses = ar({}, bu, r.edgeProgramClasses), r;
6110
6115
  }
6111
- var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6116
+ var Nt = 1.5, Nn = /* @__PURE__ */ (function(n) {
6112
6117
  function r() {
6113
6118
  var t;
6114
6119
  return ge(this, r), t = Te(this, r), N(t, "x", 0.5), N(t, "y", 0.5), N(t, "angle", 0), N(t, "ratio", 1), N(t, "minRatio", null), N(t, "maxRatio", null), N(t, "enabledZooming", !0), N(t, "enabledPanning", !0), N(t, "enabledRotation", !0), N(t, "clean", null), N(t, "nextFrame", null), N(t, "previousState", null), N(t, "enabled", !0), t.previousState = t.getState(), t;
@@ -6222,7 +6227,7 @@ var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6222
6227
  return i.animate(e, a, y);
6223
6228
  });
6224
6229
  if (this.enabled) {
6225
- var s = j(j({}, lu), a), u = this.validateState(e), l = typeof s.easing == "function" ? s.easing : uu[s.easing], c = Date.now(), h = this.getState(), v = function() {
6230
+ var s = j(j({}, du), a), u = this.validateState(e), l = typeof s.easing == "function" ? s.easing : hu[s.easing], c = Date.now(), h = this.getState(), v = function() {
6226
6231
  var b = (Date.now() - c) / s.duration;
6227
6232
  if (b >= 1) {
6228
6233
  i.nextFrame = null, i.setState(u), i.animationCallback && (i.animationCallback.call(null), i.animationCallback = void 0);
@@ -6290,7 +6295,7 @@ var Nt = 1.5, zn = /* @__PURE__ */ (function(n) {
6290
6295
  return i.setState(e);
6291
6296
  }
6292
6297
  }]);
6293
- })(Xr);
6298
+ })(Kr);
6294
6299
  function De(n, r) {
6295
6300
  var t = r.getBoundingClientRect();
6296
6301
  return {
@@ -6318,14 +6323,14 @@ function pt(n) {
6318
6323
  });
6319
6324
  return r;
6320
6325
  }
6321
- function yu(n, r) {
6326
+ function Eu(n, r) {
6322
6327
  return j(j({}, Fe(n, r)), {}, {
6323
- delta: Zi(n)
6328
+ delta: Qi(n)
6324
6329
  });
6325
6330
  }
6326
- var bu = 2;
6331
+ var _u = 2;
6327
6332
  function Ut(n) {
6328
- for (var r = [], t = 0, e = Math.min(n.length, bu); t < e; t++) r.push(n[t]);
6333
+ for (var r = [], t = 0, e = Math.min(n.length, _u); t < e; t++) r.push(n[t]);
6329
6334
  return r;
6330
6335
  }
6331
6336
  function vt(n, r, t) {
@@ -6344,23 +6349,23 @@ function vt(n, r, t) {
6344
6349
  };
6345
6350
  return e;
6346
6351
  }
6347
- function Zi(n) {
6352
+ function Qi(n) {
6348
6353
  if (typeof n.deltaY < "u") return n.deltaY * -3 / 360;
6349
6354
  if (typeof n.detail < "u") return n.detail / -9;
6350
6355
  throw new Error("Captor: could not extract delta from event.");
6351
6356
  }
6352
- var Qi = /* @__PURE__ */ (function(n) {
6357
+ var Ji = /* @__PURE__ */ (function(n) {
6353
6358
  function r(t, e) {
6354
6359
  var i;
6355
6360
  return ge(this, r), i = Te(this, r), i.container = t, i.renderer = e, i;
6356
6361
  }
6357
6362
  return Se(r, n), pe(r);
6358
- })(Xr), wu = ["doubleClickTimeout", "doubleClickZoomingDuration", "doubleClickZoomingRatio", "dragTimeout", "draggedEventsTolerance", "inertiaDuration", "inertiaRatio", "zoomDuration", "zoomingRatio"], Eu = wu.reduce(function(n, r) {
6359
- return j(j({}, n), {}, N({}, r, Kr[r]));
6360
- }, {}), _u = /* @__PURE__ */ (function(n) {
6363
+ })(Kr), Tu = ["doubleClickTimeout", "doubleClickZoomingDuration", "doubleClickZoomingRatio", "dragTimeout", "draggedEventsTolerance", "inertiaDuration", "inertiaRatio", "zoomDuration", "zoomingRatio"], Su = Tu.reduce(function(n, r) {
6364
+ return j(j({}, n), {}, N({}, r, Xr[r]));
6365
+ }, {}), Ru = /* @__PURE__ */ (function(n) {
6361
6366
  function r(t, e) {
6362
6367
  var i;
6363
- return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "draggedEvents", 0), N(i, "downStartTime", null), N(i, "lastMouseX", null), N(i, "lastMouseY", null), N(i, "isMouseDown", !1), N(i, "isMoving", !1), N(i, "movingTimeout", null), N(i, "startCameraState", null), N(i, "clicks", 0), N(i, "doubleClickTimeout", null), N(i, "currentWheelDirection", 0), N(i, "settings", Eu), i.handleClick = i.handleClick.bind(i), i.handleRightClick = i.handleRightClick.bind(i), i.handleDown = i.handleDown.bind(i), i.handleUp = i.handleUp.bind(i), i.handleMove = i.handleMove.bind(i), i.handleWheel = i.handleWheel.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleEnter = i.handleEnter.bind(i), t.addEventListener("click", i.handleClick, {
6368
+ return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "draggedEvents", 0), N(i, "downStartTime", null), N(i, "lastMouseX", null), N(i, "lastMouseY", null), N(i, "isMouseDown", !1), N(i, "isMoving", !1), N(i, "movingTimeout", null), N(i, "startCameraState", null), N(i, "clicks", 0), N(i, "doubleClickTimeout", null), N(i, "currentWheelDirection", 0), N(i, "settings", Su), i.handleClick = i.handleClick.bind(i), i.handleRightClick = i.handleRightClick.bind(i), i.handleDown = i.handleDown.bind(i), i.handleUp = i.handleUp.bind(i), i.handleMove = i.handleMove.bind(i), i.handleWheel = i.handleWheel.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleEnter = i.handleEnter.bind(i), t.addEventListener("click", i.handleClick, {
6364
6369
  capture: !1
6365
6370
  }), t.addEventListener("contextmenu", i.handleRightClick, {
6366
6371
  capture: !1
@@ -6493,9 +6498,9 @@ var Qi = /* @__PURE__ */ (function(n) {
6493
6498
  value: function(e) {
6494
6499
  var i = this, a = this.renderer.getCamera();
6495
6500
  if (!(!this.enabled || !a.enabledZooming)) {
6496
- var o = Zi(e);
6501
+ var o = Qi(e);
6497
6502
  if (o) {
6498
- var s = yu(e, this.container);
6503
+ var s = Eu(e, this.container);
6499
6504
  if (this.emit("wheel", s), s.sigmaDefaultPrevented) {
6500
6505
  e.preventDefault(), e.stopPropagation();
6501
6506
  return;
@@ -6516,12 +6521,12 @@ var Qi = /* @__PURE__ */ (function(n) {
6516
6521
  this.settings = e;
6517
6522
  }
6518
6523
  }]);
6519
- })(Qi), Tu = ["dragTimeout", "inertiaDuration", "inertiaRatio", "doubleClickTimeout", "doubleClickZoomingRatio", "doubleClickZoomingDuration", "tapMoveTolerance"], Su = Tu.reduce(function(n, r) {
6520
- return j(j({}, n), {}, N({}, r, Kr[r]));
6521
- }, {}), Ru = /* @__PURE__ */ (function(n) {
6524
+ })(Ji), Au = ["dragTimeout", "inertiaDuration", "inertiaRatio", "doubleClickTimeout", "doubleClickZoomingRatio", "doubleClickZoomingDuration", "tapMoveTolerance"], ku = Au.reduce(function(n, r) {
6525
+ return j(j({}, n), {}, N({}, r, Xr[r]));
6526
+ }, {}), Cu = /* @__PURE__ */ (function(n) {
6522
6527
  function r(t, e) {
6523
6528
  var i;
6524
- return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "isMoving", !1), N(i, "hasMoved", !1), N(i, "touchMode", 0), N(i, "startTouchesPositions", []), N(i, "lastTouches", []), N(i, "lastTap", null), N(i, "settings", Su), i.handleStart = i.handleStart.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleMove = i.handleMove.bind(i), t.addEventListener("touchstart", i.handleStart, {
6529
+ return ge(this, r), i = Te(this, r, [t, e]), N(i, "enabled", !0), N(i, "isMoving", !1), N(i, "hasMoved", !1), N(i, "touchMode", 0), N(i, "startTouchesPositions", []), N(i, "lastTouches", []), N(i, "lastTap", null), N(i, "settings", ku), i.handleStart = i.handleStart.bind(i), i.handleLeave = i.handleLeave.bind(i), i.handleMove = i.handleMove.bind(i), t.addEventListener("touchstart", i.handleStart, {
6525
6530
  capture: !1
6526
6531
  }), t.addEventListener("touchcancel", i.handleLeave, {
6527
6532
  capture: !1
@@ -6654,7 +6659,7 @@ var Qi = /* @__PURE__ */ (function(n) {
6654
6659
  E.ratio = O, E.angle = c.angle + S;
6655
6660
  var I = this.getDimensions(), _ = this.renderer.viewportToFramedGraph((this.startTouchesPositions || [])[0], {
6656
6661
  cameraState: c
6657
- }), W = Math.min(I.width, I.height) - 2 * h, X = W / I.width, T = W / I.height, f = O / W, d = p - W / 2 / X, U = C - W / 2 / T, $ = [d * Math.cos(-E.angle) - U * Math.sin(-E.angle), U * Math.cos(-E.angle) + d * Math.sin(-E.angle)];
6662
+ }), W = Math.min(I.width, I.height) - 2 * h, K = W / I.width, T = W / I.height, f = O / W, d = p - W / 2 / K, U = C - W / 2 / T, $ = [d * Math.cos(-E.angle) - U * Math.sin(-E.angle), U * Math.cos(-E.angle) + d * Math.sin(-E.angle)];
6658
6663
  d = $[0], U = $[1], E.x = _.x - d * f, E.y = _.y + U * f, l.setState(E);
6659
6664
  break;
6660
6665
  }
@@ -6668,21 +6673,21 @@ var Qi = /* @__PURE__ */ (function(n) {
6668
6673
  this.settings = e;
6669
6674
  }
6670
6675
  }]);
6671
- })(Qi);
6672
- function Au(n) {
6676
+ })(Ji);
6677
+ function xu(n) {
6673
6678
  if (Array.isArray(n)) return Cr(n);
6674
6679
  }
6675
- function ku(n) {
6680
+ function Du(n) {
6676
6681
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
6677
6682
  }
6678
- function Cu() {
6683
+ function Lu() {
6679
6684
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
6680
6685
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6681
6686
  }
6682
- function Nn(n) {
6683
- return Au(n) || ku(n) || Pi(n) || Cu();
6687
+ function Un(n) {
6688
+ return xu(n) || Du(n) || Ii(n) || Lu();
6684
6689
  }
6685
- function xu(n, r) {
6690
+ function Gu(n, r) {
6686
6691
  if (n == null) return {};
6687
6692
  var t = {};
6688
6693
  for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
@@ -6693,14 +6698,14 @@ function xu(n, r) {
6693
6698
  }
6694
6699
  function sr(n, r) {
6695
6700
  if (n == null) return {};
6696
- var t, e, i = xu(n, r);
6701
+ var t, e, i = Gu(n, r);
6697
6702
  if (Object.getOwnPropertySymbols) {
6698
6703
  var a = Object.getOwnPropertySymbols(n);
6699
6704
  for (e = 0; e < a.length; e++) t = a[e], r.indexOf(t) === -1 && {}.propertyIsEnumerable.call(n, t) && (i[t] = n[t]);
6700
6705
  }
6701
6706
  return i;
6702
6707
  }
6703
- var Un = /* @__PURE__ */ (function() {
6708
+ var $n = /* @__PURE__ */ (function() {
6704
6709
  function n(r, t) {
6705
6710
  ge(this, n), this.key = r, this.size = t;
6706
6711
  }
@@ -6710,7 +6715,7 @@ var Un = /* @__PURE__ */ (function() {
6710
6715
  return t.size > e.size ? -1 : t.size < e.size || t.key > e.key ? 1 : -1;
6711
6716
  }
6712
6717
  }]);
6713
- })(), $n = /* @__PURE__ */ (function() {
6718
+ })(), Mn = /* @__PURE__ */ (function() {
6714
6719
  function n() {
6715
6720
  ge(this, n), N(this, "width", 0), N(this, "height", 0), N(this, "cellSize", 0), N(this, "columns", 0), N(this, "rows", 0), N(this, "cells", {});
6716
6721
  }
@@ -6728,7 +6733,7 @@ var Un = /* @__PURE__ */ (function() {
6728
6733
  }, {
6729
6734
  key: "add",
6730
6735
  value: function(t, e, i) {
6731
- var a = new Un(t, e), o = this.getIndex(i), s = this.cells[o];
6736
+ var a = new $n(t, e), o = this.getIndex(i), s = this.cells[o];
6732
6737
  s || (s = [], this.cells[o] = s), s.push(a);
6733
6738
  }
6734
6739
  }, {
@@ -6736,7 +6741,7 @@ var Un = /* @__PURE__ */ (function() {
6736
6741
  value: function() {
6737
6742
  for (var t in this.cells) {
6738
6743
  var e = this.cells[t];
6739
- e.sort(Un.compare);
6744
+ e.sort($n.compare);
6740
6745
  }
6741
6746
  }
6742
6747
  }, {
@@ -6750,30 +6755,30 @@ var Un = /* @__PURE__ */ (function() {
6750
6755
  }
6751
6756
  }]);
6752
6757
  })();
6753
- function Du(n) {
6758
+ function Pu(n) {
6754
6759
  var r = n.graph, t = n.hoveredNode, e = n.highlightedNodes, i = n.displayedNodeLabels, a = [];
6755
6760
  return r.forEachEdge(function(o, s, u, l) {
6756
6761
  (u === t || l === t || e.has(u) || e.has(l) || i.has(u) && i.has(l)) && a.push(o);
6757
6762
  }), a;
6758
6763
  }
6759
- var Mn = 150, Bn = 50, Oe = Object.prototype.hasOwnProperty;
6760
- function Lu(n, r, t) {
6764
+ var Bn = 150, Wn = 50, Oe = Object.prototype.hasOwnProperty;
6765
+ function Iu(n, r, t) {
6761
6766
  if (!Oe.call(t, "x") || !Oe.call(t, "y")) throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(r, '". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));
6762
6767
  return t.color || (t.color = n.defaultNodeColor), !t.label && t.label !== "" && (t.label = null), t.label !== void 0 && t.label !== null ? t.label = "" + t.label : t.label = null, t.size || (t.size = 2), Oe.call(t, "hidden") || (t.hidden = !1), Oe.call(t, "highlighted") || (t.highlighted = !1), Oe.call(t, "forceLabel") || (t.forceLabel = !1), (!t.type || t.type === "") && (t.type = n.defaultNodeType), t.zIndex || (t.zIndex = 0), t;
6763
6768
  }
6764
- function Gu(n, r, t) {
6769
+ function Fu(n, r, t) {
6765
6770
  return t.color || (t.color = n.defaultEdgeColor), t.label || (t.label = ""), t.size || (t.size = 0.5), Oe.call(t, "hidden") || (t.hidden = !1), Oe.call(t, "forceLabel") || (t.forceLabel = !1), (!t.type || t.type === "") && (t.type = n.defaultEdgeType), t.zIndex || (t.zIndex = 0), t;
6766
6771
  }
6767
- var Pu = /* @__PURE__ */ (function(n) {
6772
+ var Ou = /* @__PURE__ */ (function(n) {
6768
6773
  function r(t, e) {
6769
6774
  var i, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
6770
- if (ge(this, r), i = Te(this, r), N(i, "elements", {}), N(i, "canvasContexts", {}), N(i, "webGLContexts", {}), N(i, "pickingLayers", /* @__PURE__ */ new Set()), N(i, "textures", {}), N(i, "frameBuffers", {}), N(i, "activeListeners", {}), N(i, "labelGrid", new $n()), N(i, "nodeDataCache", {}), N(i, "edgeDataCache", {}), N(i, "nodeProgramIndex", {}), N(i, "edgeProgramIndex", {}), N(i, "nodesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "edgesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "nodeExtent", {
6775
+ if (ge(this, r), i = Te(this, r), N(i, "elements", {}), N(i, "canvasContexts", {}), N(i, "webGLContexts", {}), N(i, "pickingLayers", /* @__PURE__ */ new Set()), N(i, "textures", {}), N(i, "frameBuffers", {}), N(i, "activeListeners", {}), N(i, "labelGrid", new Mn()), N(i, "nodeDataCache", {}), N(i, "edgeDataCache", {}), N(i, "nodeProgramIndex", {}), N(i, "edgeProgramIndex", {}), N(i, "nodesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "edgesWithForcedLabels", /* @__PURE__ */ new Set()), N(i, "nodeExtent", {
6771
6776
  x: [0, 1],
6772
6777
  y: [0, 1]
6773
- }), N(i, "nodeZExtent", [1 / 0, -1 / 0]), N(i, "edgeZExtent", [1 / 0, -1 / 0]), N(i, "matrix", ke()), N(i, "invMatrix", ke()), N(i, "correctionRatio", 1), N(i, "customBBox", null), N(i, "normalizationFunction", Fn({
6778
+ }), N(i, "nodeZExtent", [1 / 0, -1 / 0]), N(i, "edgeZExtent", [1 / 0, -1 / 0]), N(i, "matrix", ke()), N(i, "invMatrix", ke()), N(i, "correctionRatio", 1), N(i, "customBBox", null), N(i, "normalizationFunction", On({
6774
6779
  x: [0, 1],
6775
6780
  y: [0, 1]
6776
- })), N(i, "graphToViewportRatio", 1), N(i, "itemIDsIndex", {}), N(i, "nodeIndices", {}), N(i, "edgeIndices", {}), N(i, "width", 0), N(i, "height", 0), N(i, "pixelRatio", Pn()), N(i, "pickingDownSizingRatio", 2 * i.pixelRatio), N(i, "displayedNodeLabels", /* @__PURE__ */ new Set()), N(i, "displayedEdgeLabels", /* @__PURE__ */ new Set()), N(i, "highlightedNodes", /* @__PURE__ */ new Set()), N(i, "hoveredNode", null), N(i, "hoveredEdge", null), N(i, "renderFrame", null), N(i, "renderHighlightedNodesFrame", null), N(i, "needToProcess", !1), N(i, "checkEdgesEventsFrame", null), N(i, "nodePrograms", {}), N(i, "nodeHoverPrograms", {}), N(i, "edgePrograms", {}), i.settings = mu(a), or(i.settings), fu(t), !(e instanceof HTMLElement)) throw new Error("Sigma: container should be an html element.");
6781
+ })), N(i, "graphToViewportRatio", 1), N(i, "itemIDsIndex", {}), N(i, "nodeIndices", {}), N(i, "edgeIndices", {}), N(i, "width", 0), N(i, "height", 0), N(i, "pixelRatio", In()), N(i, "pickingDownSizingRatio", 2 * i.pixelRatio), N(i, "displayedNodeLabels", /* @__PURE__ */ new Set()), N(i, "displayedEdgeLabels", /* @__PURE__ */ new Set()), N(i, "highlightedNodes", /* @__PURE__ */ new Set()), N(i, "hoveredNode", null), N(i, "hoveredEdge", null), N(i, "renderFrame", null), N(i, "renderHighlightedNodesFrame", null), N(i, "needToProcess", !1), N(i, "checkEdgesEventsFrame", null), N(i, "nodePrograms", {}), N(i, "nodeHoverPrograms", {}), N(i, "edgePrograms", {}), i.settings = wu(a), or(i.settings), vu(t), !(e instanceof HTMLElement)) throw new Error("Sigma: container should be an html element.");
6777
6782
  i.graph = t, i.container = e, i.createWebGLContext("edges", {
6778
6783
  picking: a.enableEdgeEvents
6779
6784
  }), i.createCanvasContext("edgeLabels"), i.createWebGLContext("nodes", {
@@ -6788,7 +6793,7 @@ var Pu = /* @__PURE__ */ (function(n) {
6788
6793
  i.registerNodeProgram(o, i.settings.nodeProgramClasses[o], i.settings.nodeHoverProgramClasses[o]);
6789
6794
  for (var s in i.settings.edgeProgramClasses)
6790
6795
  i.registerEdgeProgram(s, i.settings.edgeProgramClasses[s]);
6791
- return i.camera = new zn(), i.bindCameraHandlers(), i.mouseCaptor = new _u(i.elements.mouse, i), i.mouseCaptor.setSettings(i.settings), i.touchCaptor = new Ru(i.elements.mouse, i), i.touchCaptor.setSettings(i.settings), i.bindEventHandlers(), i.bindGraphHandlers(), i.handleSettingsUpdate(), i.refresh(), i;
6796
+ return i.camera = new Nn(), i.bindCameraHandlers(), i.mouseCaptor = new Ru(i.elements.mouse, i), i.mouseCaptor.setSettings(i.settings), i.touchCaptor = new Cu(i.elements.mouse, i), i.touchCaptor.setSettings(i.settings), i.bindEventHandlers(), i.bindGraphHandlers(), i.handleSettingsUpdate(), i.refresh(), i;
6792
6797
  }
6793
6798
  return Se(r, n), pe(r, [{
6794
6799
  key: "registerNodeProgram",
@@ -6883,7 +6888,7 @@ var Pu = /* @__PURE__ */ (function(n) {
6883
6888
  }, {
6884
6889
  key: "getNodeAtPosition",
6885
6890
  value: function(e) {
6886
- var i = e.x, a = e.y, o = _n(this.webGLContexts.nodes, this.frameBuffers.nodes, i, a, this.pixelRatio, this.pickingDownSizingRatio), s = En.apply(void 0, Nn(o)), u = this.itemIDsIndex[s];
6891
+ var i = e.x, a = e.y, o = Tn(this.webGLContexts.nodes, this.frameBuffers.nodes, i, a, this.pixelRatio, this.pickingDownSizingRatio), s = _n.apply(void 0, Un(o)), u = this.itemIDsIndex[s];
6887
6892
  return u && u.type === "node" ? u.id : null;
6888
6893
  }
6889
6894
  /**
@@ -7090,7 +7095,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7090
7095
  }, {
7091
7096
  key: "getEdgeAtPoint",
7092
7097
  value: function(e, i) {
7093
- var a = _n(this.webGLContexts.edges, this.frameBuffers.edges, e, i, this.pixelRatio, this.pickingDownSizingRatio), o = En.apply(void 0, Nn(a)), s = this.itemIDsIndex[o];
7098
+ var a = Tn(this.webGLContexts.edges, this.frameBuffers.edges, e, i, this.pixelRatio, this.pickingDownSizingRatio), o = _n.apply(void 0, Un(a)), s = this.itemIDsIndex[o];
7094
7099
  return s && s.type === "edge" ? s.id : null;
7095
7100
  }
7096
7101
  /**
@@ -7108,15 +7113,15 @@ var Pu = /* @__PURE__ */ (function(n) {
7108
7113
  var e = this;
7109
7114
  this.emit("beforeProcess");
7110
7115
  var i = this.graph, a = this.settings, o = this.getDimensions();
7111
- if (this.nodeExtent = du(this.graph), !this.settings.autoRescale) {
7116
+ if (this.nodeExtent = pu(this.graph), !this.settings.autoRescale) {
7112
7117
  var s = o.width, u = o.height, l = this.nodeExtent, c = l.x, h = l.y;
7113
7118
  this.nodeExtent = {
7114
7119
  x: [(c[0] + c[1]) / 2 - s / 2, (c[0] + c[1]) / 2 + s / 2],
7115
7120
  y: [(h[0] + h[1]) / 2 - u / 2, (h[0] + h[1]) / 2 + u / 2]
7116
7121
  };
7117
7122
  }
7118
- this.normalizationFunction = Fn(this.customBBox || this.nodeExtent);
7119
- var v = new zn(), y = gt(v.getState(), o, this.getGraphDimensions(), this.getStagePadding());
7123
+ this.normalizationFunction = On(this.customBBox || this.nodeExtent);
7124
+ var v = new Nn(), y = gt(v.getState(), o, this.getGraphDimensions(), this.getStagePadding());
7120
7125
  this.labelGrid.resizeAndClear(o, a.labelGridCellSize);
7121
7126
  for (var b = {}, R = {}, w = {}, k = {}, E = 1, m = i.nodes(), p = 0, C = m.length; p < C; p++) {
7122
7127
  var L = m[p], g = this.nodeDataCache[L], x = i.getNodeAttributes(L);
@@ -7130,7 +7135,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7130
7135
  throw new Error('Sigma: could not find a suitable program for node type "'.concat(S, '"!'));
7131
7136
  this.nodePrograms[S].reallocate(b[S] || 0), b[S] = 0;
7132
7137
  }
7133
- this.settings.zIndex && this.nodeZExtent[0] !== this.nodeZExtent[1] && (m = In(this.nodeZExtent, function(te) {
7138
+ this.settings.zIndex && this.nodeZExtent[0] !== this.nodeZExtent[1] && (m = Fn(this.nodeZExtent, function(te) {
7134
7139
  return e.nodeDataCache[te].zIndex;
7135
7140
  }, m));
7136
7141
  for (var D = 0, O = m.length; D < O; D++) {
@@ -7142,20 +7147,20 @@ var Pu = /* @__PURE__ */ (function(n) {
7142
7147
  var _ = this.nodeDataCache[I];
7143
7148
  this.addNodeToProgram(I, R[I], b[_.type]++);
7144
7149
  }
7145
- for (var W = {}, X = i.edges(), T = 0, f = X.length; T < f; T++) {
7146
- var d = X[T], U = this.edgeDataCache[d];
7150
+ for (var W = {}, K = i.edges(), T = 0, f = K.length; T < f; T++) {
7151
+ var d = K[T], U = this.edgeDataCache[d];
7147
7152
  W[U.type] = (W[U.type] || 0) + 1;
7148
7153
  }
7149
- this.settings.zIndex && this.edgeZExtent[0] !== this.edgeZExtent[1] && (X = In(this.edgeZExtent, function(te) {
7154
+ this.settings.zIndex && this.edgeZExtent[0] !== this.edgeZExtent[1] && (K = Fn(this.edgeZExtent, function(te) {
7150
7155
  return e.edgeDataCache[te].zIndex;
7151
- }, X));
7156
+ }, K));
7152
7157
  for (var $ in this.edgePrograms) {
7153
7158
  if (!Oe.call(this.edgePrograms, $))
7154
7159
  throw new Error('Sigma: could not find a suitable program for edge type "'.concat($, '"!'));
7155
7160
  this.edgePrograms[$].reallocate(W[$] || 0), W[$] = 0;
7156
7161
  }
7157
- for (var P = 0, A = X.length; P < A; P++) {
7158
- var z = X[P];
7162
+ for (var P = 0, A = K.length; P < A; P++) {
7163
+ var z = K[P];
7159
7164
  w[z] = E, k[w[z]] = {
7160
7165
  type: "edge",
7161
7166
  id: z
@@ -7216,8 +7221,8 @@ var Pu = /* @__PURE__ */ (function(n) {
7216
7221
  cameraState: e
7217
7222
  })], k = 1 / 0, E = -1 / 0, m = 1 / 0, p = -1 / 0;
7218
7223
  w.forEach(function(W) {
7219
- var X = W.x, T = W.y;
7220
- k = Math.min(k, X), E = Math.max(E, X), m = Math.min(m, T), p = Math.max(p, T);
7224
+ var K = W.x, T = W.y;
7225
+ k = Math.min(k, K), E = Math.max(E, K), m = Math.min(m, T), p = Math.max(p, T);
7221
7226
  });
7222
7227
  var C = E - k, L = p - m, g = this.getDimensions(), x = g.width, S = g.height, D = 0, O = 0;
7223
7228
  if (C >= x ? E < x - o ? D = E - (x - o) : k > o && (D = k - o) : E > x + o ? D = E - (x + o) : k < -o && (D = k + o), L >= S ? p < S - o ? O = p - (S - o) : m > o && (O = m - o) : p > S + o ? O = p - (S + o) : m < -o && (O = m + o), D || O) {
@@ -7246,12 +7251,12 @@ var Pu = /* @__PURE__ */ (function(n) {
7246
7251
  value: function() {
7247
7252
  if (!this.settings.renderLabels) return this;
7248
7253
  var e = this.camera.getState(), i = this.labelGrid.getLabelsToDisplay(e.ratio, this.settings.labelDensity);
7249
- On(i, this.nodesWithForcedLabels), this.displayedNodeLabels = /* @__PURE__ */ new Set();
7254
+ zn(i, this.nodesWithForcedLabels), this.displayedNodeLabels = /* @__PURE__ */ new Set();
7250
7255
  for (var a = this.canvasContexts.labels, o = 0, s = i.length; o < s; o++) {
7251
7256
  var u = i[o], l = this.nodeDataCache[u];
7252
7257
  if (!this.displayedNodeLabels.has(u) && !l.hidden) {
7253
7258
  var c = this.framedGraphToViewport(l), h = c.x, v = c.y, y = this.scaleSize(l.size);
7254
- if (!(!l.forceLabel && y < this.settings.labelRenderedSizeThreshold) && !(h < -Mn || h > this.width + Mn || v < -Bn || v > this.height + Bn)) {
7259
+ if (!(!l.forceLabel && y < this.settings.labelRenderedSizeThreshold) && !(h < -Bn || h > this.width + Bn || v < -Wn || v > this.height + Wn)) {
7255
7260
  this.displayedNodeLabels.add(u);
7256
7261
  var b = this.settings.defaultDrawNodeLabel, R = this.nodePrograms[l.type], w = R?.drawLabel || b;
7257
7262
  w(a, j(j({
@@ -7278,13 +7283,13 @@ var Pu = /* @__PURE__ */ (function(n) {
7278
7283
  if (!this.settings.renderEdgeLabels) return this;
7279
7284
  var e = this.canvasContexts.edgeLabels;
7280
7285
  e.clearRect(0, 0, this.width, this.height);
7281
- var i = Du({
7286
+ var i = Pu({
7282
7287
  graph: this.graph,
7283
7288
  hoveredNode: this.hoveredNode,
7284
7289
  displayedNodeLabels: this.displayedNodeLabels,
7285
7290
  highlightedNodes: this.highlightedNodes
7286
7291
  });
7287
- On(i, this.edgesWithForcedLabels);
7292
+ zn(i, this.edgesWithForcedLabels);
7288
7293
  for (var a = /* @__PURE__ */ new Set(), o = 0, s = i.length; o < s; o++) {
7289
7294
  var u = i[o], l = this.graph.extremities(u), c = this.nodeDataCache[l[0]], h = this.nodeDataCache[l[1]], v = this.edgeDataCache[u];
7290
7295
  if (!a.has(u) && !(v.hidden || c.hidden || h.hidden)) {
@@ -7377,7 +7382,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7377
7382
  return e.resetWebGLTexture(w);
7378
7383
  }), !this.graph.order) return i();
7379
7384
  var a = this.mouseCaptor, o = this.camera.isAnimated() || a.isMoving || a.draggedEvents || a.currentWheelDirection, s = this.camera.getState(), u = this.getDimensions(), l = this.getGraphDimensions(), c = this.getStagePadding();
7380
- this.matrix = gt(s, u, l, c), this.invMatrix = gt(s, u, l, c, !0), this.correctionRatio = hu(this.matrix, s, u), this.graphToViewportRatio = this.getGraphToViewportRatio();
7385
+ this.matrix = gt(s, u, l, c), this.invMatrix = gt(s, u, l, c, !0), this.correctionRatio = gu(this.matrix, s, u), this.graphToViewportRatio = this.getGraphToViewportRatio();
7381
7386
  var h = this.getRenderParams();
7382
7387
  for (var v in this.nodePrograms) {
7383
7388
  var y = this.nodePrograms[v];
@@ -7400,7 +7405,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7400
7405
  value: function(e) {
7401
7406
  var i = Object.assign({}, this.graph.getNodeAttributes(e));
7402
7407
  this.settings.nodeReducer && (i = this.settings.nodeReducer(e, i));
7403
- var a = Lu(this.settings, e, i);
7408
+ var a = Iu(this.settings, e, i);
7404
7409
  this.nodeDataCache[e] = a, this.nodesWithForcedLabels.delete(e), a.forceLabel && !a.hidden && this.nodesWithForcedLabels.add(e), this.highlightedNodes.delete(e), a.highlighted && !a.hidden && this.highlightedNodes.add(e), this.settings.zIndex && (a.zIndex < this.nodeZExtent[0] && (this.nodeZExtent[0] = a.zIndex), a.zIndex > this.nodeZExtent[1] && (this.nodeZExtent[1] = a.zIndex));
7405
7410
  }
7406
7411
  /**
@@ -7435,7 +7440,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7435
7440
  value: function(e) {
7436
7441
  var i = Object.assign({}, this.graph.getEdgeAttributes(e));
7437
7442
  this.settings.edgeReducer && (i = this.settings.edgeReducer(e, i));
7438
- var a = Gu(this.settings, e, i);
7443
+ var a = Fu(this.settings, e, i);
7439
7444
  this.edgeDataCache[e] = a, this.edgesWithForcedLabels.delete(e), a.forceLabel && !a.hidden && this.edgesWithForcedLabels.add(e), this.settings.zIndex && (a.zIndex < this.edgeZExtent[0] && (this.edgeZExtent[0] = a.zIndex), a.zIndex > this.edgeZExtent[1] && (this.edgeZExtent[1] = a.zIndex));
7440
7445
  }
7441
7446
  /**
@@ -7465,7 +7470,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7465
7470
  }, {
7466
7471
  key: "clearNodeIndices",
7467
7472
  value: function() {
7468
- this.labelGrid = new $n(), this.nodeExtent = {
7473
+ this.labelGrid = new Mn(), this.nodeExtent = {
7469
7474
  x: [0, 1],
7470
7475
  y: [0, 1]
7471
7476
  }, this.nodeDataCache = {}, this.edgeProgramIndex = {}, this.nodesWithForcedLabels = /* @__PURE__ */ new Set(), this.nodeZExtent = [1 / 0, -1 / 0], this.highlightedNodes = /* @__PURE__ */ new Set();
@@ -7595,7 +7600,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7595
7600
  value: function(e, i) {
7596
7601
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7597
7602
  if (this.elements[e]) throw new Error('Sigma: a layer named "'.concat(e, '" already exists'));
7598
- var o = gu(i, {
7603
+ var o = mu(i, {
7599
7604
  position: "absolute"
7600
7605
  }, {
7601
7606
  class: "sigma-".concat(e)
@@ -7890,7 +7895,7 @@ var Pu = /* @__PURE__ */ (function(n) {
7890
7895
  key: "resize",
7891
7896
  value: function(e) {
7892
7897
  var i = this.width, a = this.height;
7893
- if (this.width = this.container.offsetWidth, this.height = this.container.offsetHeight, this.pixelRatio = Pn(), this.width === 0)
7898
+ if (this.width = this.container.offsetWidth, this.height = this.container.offsetHeight, this.pixelRatio = In(), this.width === 0)
7894
7899
  if (this.settings.allowInvalidContainer) this.width = 1;
7895
7900
  else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");
7896
7901
  if (this.height === 0)
@@ -8210,36 +8215,36 @@ var Pu = /* @__PURE__ */ (function(n) {
8210
8215
  return e;
8211
8216
  }
8212
8217
  }]);
8213
- })(Xr), Iu = Pu;
8218
+ })(Kr), zu = Ou;
8214
8219
  function Gr(n, r) {
8215
8220
  (r == null || r > n.length) && (r = n.length);
8216
8221
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
8217
8222
  return e;
8218
8223
  }
8219
- function Fu(n) {
8224
+ function Nu(n) {
8220
8225
  if (Array.isArray(n)) return Gr(n);
8221
8226
  }
8222
- function Ou(n) {
8227
+ function Uu(n) {
8223
8228
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
8224
8229
  }
8225
- function zu(n, r) {
8230
+ function $u(n, r) {
8226
8231
  if (n) {
8227
8232
  if (typeof n == "string") return Gr(n, r);
8228
8233
  var t = {}.toString.call(n).slice(8, -1);
8229
8234
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Gr(n, r) : void 0;
8230
8235
  }
8231
8236
  }
8232
- function Nu() {
8237
+ function Mu() {
8233
8238
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
8234
8239
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
8235
8240
  }
8236
8241
  function Yr(n) {
8237
- return Fu(n) || Ou(n) || zu(n) || Nu();
8242
+ return Nu(n) || Uu(n) || $u(n) || Mu();
8238
8243
  }
8239
8244
  function Zr(n, r) {
8240
8245
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
8241
8246
  }
8242
- function Uu(n, r) {
8247
+ function Bu(n, r) {
8243
8248
  if (typeof n != "object" || !n) return n;
8244
8249
  var t = n[Symbol.toPrimitive];
8245
8250
  if (t !== void 0) {
@@ -8249,18 +8254,18 @@ function Uu(n, r) {
8249
8254
  }
8250
8255
  return (r === "string" ? String : Number)(n);
8251
8256
  }
8252
- function Ji(n) {
8253
- var r = Uu(n, "string");
8257
+ function ea(n) {
8258
+ var r = Bu(n, "string");
8254
8259
  return typeof r == "symbol" ? r : r + "";
8255
8260
  }
8256
- function $u(n, r) {
8261
+ function Wu(n, r) {
8257
8262
  for (var t = 0; t < r.length; t++) {
8258
8263
  var e = r[t];
8259
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, Ji(e.key), e);
8264
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, ea(e.key), e);
8260
8265
  }
8261
8266
  }
8262
8267
  function Qr(n, r, t) {
8263
- return r && $u(n.prototype, r), Object.defineProperty(n, "prototype", {
8268
+ return r && Wu(n.prototype, r), Object.defineProperty(n, "prototype", {
8264
8269
  writable: !1
8265
8270
  }), n;
8266
8271
  }
@@ -8269,13 +8274,13 @@ function at(n) {
8269
8274
  return r.__proto__ || Object.getPrototypeOf(r);
8270
8275
  }, at(n);
8271
8276
  }
8272
- function ea() {
8277
+ function ta() {
8273
8278
  try {
8274
8279
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
8275
8280
  }));
8276
8281
  } catch {
8277
8282
  }
8278
- return (ea = function() {
8283
+ return (ta = function() {
8279
8284
  return !!n;
8280
8285
  })();
8281
8286
  }
@@ -8283,28 +8288,28 @@ function Ce(n) {
8283
8288
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8284
8289
  return n;
8285
8290
  }
8286
- function Mu(n, r) {
8291
+ function Hu(n, r) {
8287
8292
  if (r && (typeof r == "object" || typeof r == "function")) return r;
8288
8293
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
8289
8294
  return Ce(n);
8290
8295
  }
8291
- function ta(n, r, t) {
8292
- return r = at(r), Mu(n, ea() ? Reflect.construct(r, t || [], at(n).constructor) : r.apply(n, t));
8296
+ function ra(n, r, t) {
8297
+ return r = at(r), Hu(n, ta() ? Reflect.construct(r, t || [], at(n).constructor) : r.apply(n, t));
8293
8298
  }
8294
- function Bu(n, r) {
8299
+ function ju(n, r) {
8295
8300
  for (; !{}.hasOwnProperty.call(n, r) && (n = at(n)) !== null; ) ;
8296
8301
  return n;
8297
8302
  }
8298
8303
  function Pr() {
8299
8304
  return Pr = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(n, r, t) {
8300
- var e = Bu(n, r);
8305
+ var e = ju(n, r);
8301
8306
  if (e) {
8302
8307
  var i = Object.getOwnPropertyDescriptor(e, r);
8303
8308
  return i.get ? i.get.call(arguments.length < 3 ? n : t) : i.value;
8304
8309
  }
8305
8310
  }, Pr.apply(null, arguments);
8306
8311
  }
8307
- function Wn(n, r, t, e) {
8312
+ function Hn(n, r, t, e) {
8308
8313
  var i = Pr(at(n.prototype), r, t);
8309
8314
  return typeof i == "function" ? function(a) {
8310
8315
  return i.apply(t, a);
@@ -8315,7 +8320,7 @@ function Ir(n, r) {
8315
8320
  return t.__proto__ = e, t;
8316
8321
  }, Ir(n, r);
8317
8322
  }
8318
- function ra(n, r) {
8323
+ function na(n, r) {
8319
8324
  if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
8320
8325
  n.prototype = Object.create(r && r.prototype, {
8321
8326
  constructor: {
@@ -8328,14 +8333,14 @@ function ra(n, r) {
8328
8333
  }), r && Ir(n, r);
8329
8334
  }
8330
8335
  function fe(n, r, t) {
8331
- return (r = Ji(r)) in n ? Object.defineProperty(n, r, {
8336
+ return (r = ea(r)) in n ? Object.defineProperty(n, r, {
8332
8337
  value: t,
8333
8338
  enumerable: !0,
8334
8339
  configurable: !0,
8335
8340
  writable: !0
8336
8341
  }) : n[r] = t, n;
8337
8342
  }
8338
- function Wu(n, r) {
8343
+ function Vu(n, r) {
8339
8344
  if (n == null) return {};
8340
8345
  var t = {};
8341
8346
  for (var e in n) if ({}.hasOwnProperty.call(n, e)) {
@@ -8344,16 +8349,16 @@ function Wu(n, r) {
8344
8349
  }
8345
8350
  return t;
8346
8351
  }
8347
- function Hu(n, r) {
8352
+ function qu(n, r) {
8348
8353
  if (n == null) return {};
8349
- var t, e, i = Wu(n, r);
8354
+ var t, e, i = Vu(n, r);
8350
8355
  if (Object.getOwnPropertySymbols) {
8351
8356
  var a = Object.getOwnPropertySymbols(n);
8352
8357
  for (e = 0; e < a.length; e++) t = a[e], r.includes(t) || {}.propertyIsEnumerable.call(n, t) && (i[t] = n[t]);
8353
8358
  }
8354
8359
  return i;
8355
8360
  }
8356
- function Hn(n, r) {
8361
+ function jn(n, r) {
8357
8362
  var t = Object.keys(n);
8358
8363
  if (Object.getOwnPropertySymbols) {
8359
8364
  var e = Object.getOwnPropertySymbols(n);
@@ -8366,15 +8371,15 @@ function Hn(n, r) {
8366
8371
  function me(n) {
8367
8372
  for (var r = 1; r < arguments.length; r++) {
8368
8373
  var t = arguments[r] != null ? arguments[r] : {};
8369
- r % 2 ? Hn(Object(t), !0).forEach(function(e) {
8374
+ r % 2 ? jn(Object(t), !0).forEach(function(e) {
8370
8375
  fe(n, e, t[e]);
8371
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Hn(Object(t)).forEach(function(e) {
8376
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : jn(Object(t)).forEach(function(e) {
8372
8377
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
8373
8378
  });
8374
8379
  }
8375
8380
  return n;
8376
8381
  }
8377
- function ju(n) {
8382
+ function Ku(n) {
8378
8383
  var r = n.texturesCount, t = (
8379
8384
  /*glsl*/
8380
8385
  `
@@ -8481,7 +8486,7 @@ void main(void) {
8481
8486
  );
8482
8487
  return t;
8483
8488
  }
8484
- var Vu = (
8489
+ var Xu = (
8485
8490
  /*glsl*/
8486
8491
  `
8487
8492
  attribute vec4 a_id;
@@ -8533,9 +8538,9 @@ void main() {
8533
8538
  v_color.a *= bias;
8534
8539
  }
8535
8540
  `
8536
- ), qu = Vu;
8537
- function Ke() {
8538
- Ke = function() {
8541
+ ), Yu = Xu;
8542
+ function Xe() {
8543
+ Xe = function() {
8539
8544
  return r;
8540
8545
  };
8541
8546
  var n, r = {}, t = Object.prototype, e = t.hasOwnProperty, i = Object.defineProperty || function(T, f, d) {
@@ -8587,7 +8592,7 @@ function Ke() {
8587
8592
  l(p, o, function() {
8588
8593
  return this;
8589
8594
  });
8590
- var C = Object.getPrototypeOf, L = C && C(C(X([])));
8595
+ var C = Object.getPrototypeOf, L = C && C(C(K([])));
8591
8596
  L && L !== t && e.call(L, o) && (p = L);
8592
8597
  var g = m.prototype = k.prototype = Object.create(p);
8593
8598
  function x(T) {
@@ -8687,7 +8692,7 @@ function Ke() {
8687
8692
  tryLoc: "root"
8688
8693
  }], T.forEach(I, this), this.reset(!0);
8689
8694
  }
8690
- function X(T) {
8695
+ function K(T) {
8691
8696
  if (T || T === "") {
8692
8697
  var f = T[o];
8693
8698
  if (f) return f.call(T);
@@ -8739,7 +8744,7 @@ function Ke() {
8739
8744
  }
8740
8745
  return $.done = !0, $;
8741
8746
  };
8742
- }, r.values = X, W.prototype = {
8747
+ }, r.values = K, W.prototype = {
8743
8748
  constructor: W,
8744
8749
  reset: function(T) {
8745
8750
  if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(_), !T) for (var f in this) f.charAt(0) === "t" && e.call(this, f) && !isNaN(+f.slice(1)) && (this[f] = n);
@@ -8811,14 +8816,14 @@ function Ke() {
8811
8816
  },
8812
8817
  delegateYield: function(T, f, d) {
8813
8818
  return this.delegate = {
8814
- iterator: X(T),
8819
+ iterator: K(T),
8815
8820
  resultName: f,
8816
8821
  nextLoc: d
8817
8822
  }, this.method === "next" && (this.arg = n), w;
8818
8823
  }
8819
8824
  }, r;
8820
8825
  }
8821
- function jn(n, r, t, e, i, a, o) {
8826
+ function Vn(n, r, t, e, i, a, o) {
8822
8827
  try {
8823
8828
  var s = n[a](o), u = s.value;
8824
8829
  } catch (l) {
@@ -8832,10 +8837,10 @@ function Jr(n) {
8832
8837
  return new Promise(function(e, i) {
8833
8838
  var a = n.apply(r, t);
8834
8839
  function o(u) {
8835
- jn(a, e, i, o, s, "next", u);
8840
+ Vn(a, e, i, o, s, "next", u);
8836
8841
  }
8837
8842
  function s(u) {
8838
- jn(a, e, i, o, s, "throw", u);
8843
+ Vn(a, e, i, o, s, "throw", u);
8839
8844
  }
8840
8845
  o(void 0);
8841
8846
  });
@@ -8851,7 +8856,7 @@ var en = {
8851
8856
  maxTextureSize: 4096,
8852
8857
  debounceTimeout: 500,
8853
8858
  crossOrigin: "anonymous"
8854
- }, Xu = 1;
8859
+ }, Zu = 1;
8855
8860
  function Fr(n) {
8856
8861
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = r.crossOrigin;
8857
8862
  return new Promise(function(e, i) {
@@ -8867,13 +8872,13 @@ function Fr(n) {
8867
8872
  }), t && a.setAttribute("crossOrigin", t), a.src = n;
8868
8873
  });
8869
8874
  }
8870
- function Ku(n) {
8875
+ function Qu(n) {
8871
8876
  return Or.apply(this, arguments);
8872
8877
  }
8873
8878
  function Or() {
8874
- return Or = Jr(/* @__PURE__ */ Ke().mark(function n(r) {
8879
+ return Or = Jr(/* @__PURE__ */ Xe().mark(function n(r) {
8875
8880
  var t, e, i, a, o, s, u, l, c, h, v, y, b, R = arguments;
8876
- return Ke().wrap(function(k) {
8881
+ return Xe().wrap(function(k) {
8877
8882
  for (; ; ) switch (k.prev = k.next) {
8878
8883
  case 0:
8879
8884
  if (t = R.length > 1 && R[1] !== void 0 ? R[1] : {}, e = t.size, i = t.crossOrigin, i !== "use-credentials") {
@@ -8911,20 +8916,20 @@ function Or() {
8911
8916
  }, n);
8912
8917
  })), Or.apply(this, arguments);
8913
8918
  }
8914
- function Yu(n) {
8919
+ function Ju(n) {
8915
8920
  return zr.apply(this, arguments);
8916
8921
  }
8917
8922
  function zr() {
8918
- return zr = Jr(/* @__PURE__ */ Ke().mark(function n(r) {
8923
+ return zr = Jr(/* @__PURE__ */ Xe().mark(function n(r) {
8919
8924
  var t, e, i, a, o, s, u = arguments;
8920
- return Ke().wrap(function(c) {
8925
+ return Xe().wrap(function(c) {
8921
8926
  for (; ; ) switch (c.prev = c.next) {
8922
8927
  case 0:
8923
8928
  if (e = u.length > 1 && u[1] !== void 0 ? u[1] : {}, i = e.size, a = e.crossOrigin, o = ((t = r.split(/[#?]/)[0].split(".").pop()) === null || t === void 0 ? void 0 : t.trim().toLowerCase()) === "svg", !(o && i)) {
8924
8929
  c.next = 16;
8925
8930
  break;
8926
8931
  }
8927
- return c.prev = 3, c.next = 6, Ku(r, {
8932
+ return c.prev = 3, c.next = 6, Qu(r, {
8928
8933
  size: i,
8929
8934
  crossOrigin: a
8930
8935
  });
@@ -8955,7 +8960,7 @@ function zr() {
8955
8960
  }, n, null, [[3, 9]]);
8956
8961
  })), zr.apply(this, arguments);
8957
8962
  }
8958
- function Zu(n, r, t) {
8963
+ function el(n, r, t) {
8959
8964
  var e = t.objectFit, i = t.size, a = t.correctCentering, o = e === "contain" ? Math.max(n.width, n.height) : Math.min(n.width, n.height), s = i.mode === "auto" ? o : i.mode === "force" ? i.value : Math.min(i.value, o), u = (n.width - o) / 2, l = (n.height - o) / 2;
8960
8965
  if (a) {
8961
8966
  var c = r.getCorrectionOffset(n, o);
@@ -8968,9 +8973,9 @@ function Zu(n, r, t) {
8968
8973
  destinationSize: s
8969
8974
  };
8970
8975
  }
8971
- function Qu(n, r, t) {
8976
+ function tl(n, r, t) {
8972
8977
  for (var e = r.canvas, i = e.width, a = e.height, o = [], s = t.x, u = t.y, l = t.rowHeight, c = t.maxRowWidth, h = {}, v = 0, y = n.length; v < y; v++) {
8973
- var b = n[v], R = b.key, w = b.image, k = b.sourceSize, E = b.sourceX, m = b.sourceY, p = b.destinationSize, C = p + Xu;
8978
+ var b = n[v], R = b.key, w = b.image, k = b.sourceSize, E = b.sourceX, m = b.sourceY, p = b.destinationSize, C = p + Zu;
8974
8979
  u + C > a || s + C > i && u + C + l > a || (s + C > i && (c = Math.max(c, s), s = 0, u += l, l = C), o.push({
8975
8980
  key: R,
8976
8981
  image: w,
@@ -8988,8 +8993,8 @@ function Qu(n, r, t) {
8988
8993
  }
8989
8994
  c = Math.max(c, s);
8990
8995
  for (var L = c, g = u + l, x = 0, S = o.length; x < S; x++) {
8991
- var D = o[x], O = D.image, I = D.sourceSize, _ = D.sourceX, W = D.sourceY, X = D.destinationSize, T = D.destinationX, f = D.destinationY;
8992
- r.drawImage(O, _, W, I, I, T, f, X, X);
8996
+ var D = o[x], O = D.image, I = D.sourceSize, _ = D.sourceX, W = D.sourceY, K = D.destinationSize, T = D.destinationX, f = D.destinationY;
8997
+ r.drawImage(O, _, W, I, I, T, f, K, K);
8993
8998
  }
8994
8999
  return {
8995
9000
  atlas: h,
@@ -9002,7 +9007,7 @@ function Qu(n, r, t) {
9002
9007
  }
9003
9008
  };
9004
9009
  }
9005
- function Ju(n, r, t) {
9010
+ function rl(n, r, t) {
9006
9011
  var e = n.atlas, i = n.textures, a = n.cursor, o = {
9007
9012
  atlas: me({}, e),
9008
9013
  textures: Yr(i.slice(0, -1)),
@@ -9018,7 +9023,7 @@ function Ju(n, r, t) {
9018
9023
  }
9019
9024
  }
9020
9025
  for (var v = function() {
9021
- var b = Qu(s, t, o.cursor), R = b.atlas, w = b.texture, k = b.cursor;
9026
+ var b = tl(s, t, o.cursor), R = b.atlas, w = b.texture, k = b.cursor;
9022
9027
  o.cursor = k;
9023
9028
  var E = [];
9024
9029
  s.forEach(function(m) {
@@ -9035,7 +9040,7 @@ function Ju(n, r, t) {
9035
9040
  v();
9036
9041
  return o;
9037
9042
  }
9038
- var el = /* @__PURE__ */ (function() {
9043
+ var nl = /* @__PURE__ */ (function() {
9039
9044
  function n() {
9040
9045
  Zr(this, n), this.canvas = document.createElement("canvas"), this.context = this.canvas.getContext("2d", {
9041
9046
  willReadFrequently: !0
@@ -9060,12 +9065,12 @@ var el = /* @__PURE__ */ (function() {
9060
9065
  }
9061
9066
  }]), n;
9062
9067
  })(), $t = /* @__PURE__ */ (function(n) {
9063
- ra(r, n);
9068
+ na(r, n);
9064
9069
  function r() {
9065
9070
  var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9066
- return Zr(this, r), t = ta(this, r), fe(Ce(t), "canvas", document.createElement("canvas")), fe(Ce(t), "ctx", t.canvas.getContext("2d", {
9071
+ return Zr(this, r), t = ra(this, r), fe(Ce(t), "canvas", document.createElement("canvas")), fe(Ce(t), "ctx", t.canvas.getContext("2d", {
9067
9072
  willReadFrequently: !0
9068
- })), fe(Ce(t), "corrector", new el()), fe(Ce(t), "imageStates", {}), fe(Ce(t), "textures", [t.ctx.getImageData(0, 0, 1, 1)]), fe(Ce(t), "lastTextureCursor", {
9073
+ })), fe(Ce(t), "corrector", new nl()), fe(Ce(t), "imageStates", {}), fe(Ce(t), "textures", [t.ctx.getImageData(0, 0, 1, 1)]), fe(Ce(t), "lastTextureCursor", {
9069
9074
  x: 0,
9070
9075
  y: 0,
9071
9076
  rowHeight: 0,
@@ -9083,7 +9088,7 @@ var el = /* @__PURE__ */ (function() {
9083
9088
  }, {
9084
9089
  key: "generateTextures",
9085
9090
  value: function() {
9086
- var e = Ju({
9091
+ var e = rl({
9087
9092
  atlas: this.atlas,
9088
9093
  textures: this.textures,
9089
9094
  cursor: this.lastTextureCursor
@@ -9097,9 +9102,9 @@ var el = /* @__PURE__ */ (function() {
9097
9102
  }, {
9098
9103
  key: "registerImage",
9099
9104
  value: (function() {
9100
- var t = Jr(/* @__PURE__ */ Ke().mark(function i(a) {
9105
+ var t = Jr(/* @__PURE__ */ Xe().mark(function i(a) {
9101
9106
  var o, s;
9102
- return Ke().wrap(function(l) {
9107
+ return Xe().wrap(function(l) {
9103
9108
  for (; ; ) switch (l.prev = l.next) {
9104
9109
  case 0:
9105
9110
  if (!this.imageStates[a]) {
@@ -9110,7 +9115,7 @@ var el = /* @__PURE__ */ (function() {
9110
9115
  case 2:
9111
9116
  return this.imageStates[a] = {
9112
9117
  status: "loading"
9113
- }, l.prev = 3, o = this.options.size, l.next = 7, Yu(a, {
9118
+ }, l.prev = 3, o = this.options.size, l.next = 7, Ju(a, {
9114
9119
  size: o.mode === "force" ? o.value : void 0,
9115
9120
  crossOrigin: this.options.crossOrigin || void 0
9116
9121
  });
@@ -9118,7 +9123,7 @@ var el = /* @__PURE__ */ (function() {
9118
9123
  s = l.sent, this.imageStates[a] = me({
9119
9124
  status: "ready",
9120
9125
  image: s
9121
- }, Zu(s, this.corrector, this.options)), this.scheduleGenerateTexture(), l.next = 15;
9126
+ }, el(s, this.corrector, this.options)), this.scheduleGenerateTexture(), l.next = 15;
9122
9127
  break;
9123
9128
  case 12:
9124
9129
  l.prev = 12, l.t0 = l.catch(3), this.imageStates[a] = {
@@ -9148,7 +9153,7 @@ var el = /* @__PURE__ */ (function() {
9148
9153
  }]), r;
9149
9154
  })(Wr.EventEmitter);
9150
9155
  fe($t, "NEW_TEXTURE_EVENT", "newTexture");
9151
- var tl = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding", "colorAttribute", "imageAttribute"], na = WebGLRenderingContext, Vn = na.UNSIGNED_BYTE, mt = na.FLOAT, rl = me(me({}, en), {}, {
9156
+ var il = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding", "colorAttribute", "imageAttribute"], ia = WebGLRenderingContext, qn = ia.UNSIGNED_BYTE, mt = ia.FLOAT, al = me(me({}, en), {}, {
9152
9157
  drawingMode: "background",
9153
9158
  keepWithinCircle: !0,
9154
9159
  drawLabel: void 0,
@@ -9156,18 +9161,18 @@ var tl = ["drawHover", "drawLabel", "drawingMode", "keepWithinCircle", "padding"
9156
9161
  padding: 0,
9157
9162
  colorAttribute: "color",
9158
9163
  imageAttribute: "image"
9159
- }), nl = ["u_sizeRatio", "u_correctionRatio", "u_cameraAngle", "u_percentagePadding", "u_matrix", "u_colorizeImages", "u_keepWithinCircle", "u_atlas"];
9164
+ }), ol = ["u_sizeRatio", "u_correctionRatio", "u_cameraAngle", "u_percentagePadding", "u_matrix", "u_colorizeImages", "u_keepWithinCircle", "u_atlas"];
9160
9165
  function tn(n) {
9161
9166
  var r, t = document.createElement("canvas").getContext("webgl"), e = Math.min(t.getParameter(t.MAX_TEXTURE_SIZE), en.maxTextureSize);
9162
9167
  t.canvas.remove();
9163
- var i = me(me(me({}, rl), {
9168
+ var i = me(me(me({}, al), {
9164
9169
  maxTextureSize: e
9165
- }), n || {}), a = i.drawHover, o = i.drawLabel, s = i.drawingMode, u = i.keepWithinCircle, l = i.padding, c = i.colorAttribute, h = i.imageAttribute, v = Hu(i, tl), y = new $t(v);
9170
+ }), n || {}), a = i.drawHover, o = i.drawLabel, s = i.drawingMode, u = i.keepWithinCircle, l = i.padding, c = i.colorAttribute, h = i.imageAttribute, v = qu(i, il), y = new $t(v);
9166
9171
  return r = /* @__PURE__ */ (function(b) {
9167
- ra(R, b);
9172
+ na(R, b);
9168
9173
  function R(w, k, E) {
9169
9174
  var m;
9170
- return Zr(this, R), m = ta(this, R, [w, k, E]), fe(Ce(m), "drawLabel", o), fe(Ce(m), "drawHover", a), fe(Ce(m), "textureManagerCallback", null), m.textureManagerCallback = function(p) {
9175
+ return Zr(this, R), m = ra(this, R, [w, k, E]), fe(Ce(m), "drawLabel", o), fe(Ce(m), "drawHover", a), fe(Ce(m), "textureManagerCallback", null), m.textureManagerCallback = function(p) {
9171
9176
  var C = p.atlas, L = p.textures, g = L.length !== m.textures.length;
9172
9177
  m.atlas = C, m.textureImages = L, g && m.upgradeShaders(), m.bindTextures(), m.latestRenderParams && m.render(m.latestRenderParams), m.renderer && m.renderer.refresh && m.renderer.refresh();
9173
9178
  }, y.on($t.NEW_TEXTURE_EVENT, m.textureManagerCallback), m.atlas = y.getAtlas(), m.textureImages = y.getTextures(), m.textures = m.textureImages.map(function() {
@@ -9179,12 +9184,12 @@ function tn(n) {
9179
9184
  value: function() {
9180
9185
  return {
9181
9186
  VERTICES: 3,
9182
- VERTEX_SHADER_SOURCE: qu,
9183
- FRAGMENT_SHADER_SOURCE: ju({
9187
+ VERTEX_SHADER_SOURCE: Yu,
9188
+ FRAGMENT_SHADER_SOURCE: Ku({
9184
9189
  texturesCount: y.getTextures().length
9185
9190
  }),
9186
9191
  METHOD: WebGLRenderingContext.TRIANGLES,
9187
- UNIFORMS: nl,
9192
+ UNIFORMS: ol,
9188
9193
  ATTRIBUTES: [{
9189
9194
  name: "a_position",
9190
9195
  size: 2,
@@ -9196,12 +9201,12 @@ function tn(n) {
9196
9201
  }, {
9197
9202
  name: "a_color",
9198
9203
  size: 4,
9199
- type: Vn,
9204
+ type: qn,
9200
9205
  normalized: !0
9201
9206
  }, {
9202
9207
  name: "a_id",
9203
9208
  size: 4,
9204
- type: Vn,
9209
+ type: qn,
9205
9210
  normalized: !0
9206
9211
  }, {
9207
9212
  name: "a_texture",
@@ -9233,7 +9238,7 @@ function tn(n) {
9233
9238
  if (E)
9234
9239
  for (var m = 0; m < this.textures.length; m++)
9235
9240
  E.deleteTexture(this.textures[m]);
9236
- this.textureManagerCallback && (y.off($t.NEW_TEXTURE_EVENT, this.textureManagerCallback), this.textureManagerCallback = null), Wn(R, "kill", this)([]);
9241
+ this.textureManagerCallback && (y.off($t.NEW_TEXTURE_EVENT, this.textureManagerCallback), this.textureManagerCallback = null), Hn(R, "kill", this)([]);
9237
9242
  }
9238
9243
  }, {
9239
9244
  key: "bindTextures",
@@ -9252,7 +9257,7 @@ function tn(n) {
9252
9257
  if (!E.isPicking)
9253
9258
  for (var m = E.gl, p = 0; p < this.textureImages.length; p++)
9254
9259
  m.activeTexture(m.TEXTURE0 + p), m.bindTexture(m.TEXTURE_2D, this.textures[p]);
9255
- Wn(R, "renderProgram", this)([k, E]);
9260
+ Hn(R, "renderProgram", this)([k, E]);
9256
9261
  }
9257
9262
  }, {
9258
9263
  key: "processVisibleItem",
@@ -9273,7 +9278,7 @@ function tn(n) {
9273
9278
  })), m.uniform1i(S, s === "color" ? 1 : 0), m.uniform1i(D, u ? 1 : 0);
9274
9279
  }
9275
9280
  }]), R;
9276
- })($i), fe(r, "ANGLE_1", 0), fe(r, "ANGLE_2", 2 * Math.PI / 3), fe(r, "ANGLE_3", 4 * Math.PI / 3), fe(r, "textureManager", y), r;
9281
+ })(Mi), fe(r, "ANGLE_1", 0), fe(r, "ANGLE_2", 2 * Math.PI / 3), fe(r, "ANGLE_3", 4 * Math.PI / 3), fe(r, "textureManager", y), r;
9277
9282
  }
9278
9283
  tn();
9279
9284
  tn({
@@ -9285,7 +9290,7 @@ tn({
9285
9290
  drawingMode: "color",
9286
9291
  correctCentering: !0
9287
9292
  });
9288
- function il(n, r) {
9293
+ function sl(n, r) {
9289
9294
  if (typeof n != "object" || !n) return n;
9290
9295
  var t = n[Symbol.toPrimitive];
9291
9296
  if (t !== void 0) {
@@ -9295,19 +9300,19 @@ function il(n, r) {
9295
9300
  }
9296
9301
  return (r === "string" ? String : Number)(n);
9297
9302
  }
9298
- function ia(n) {
9299
- var r = il(n, "string");
9303
+ function aa(n) {
9304
+ var r = sl(n, "string");
9300
9305
  return typeof r == "symbol" ? r : r + "";
9301
9306
  }
9302
- function aa(n, r, t) {
9303
- return (r = ia(r)) in n ? Object.defineProperty(n, r, {
9307
+ function oa(n, r, t) {
9308
+ return (r = aa(r)) in n ? Object.defineProperty(n, r, {
9304
9309
  value: t,
9305
9310
  enumerable: !0,
9306
9311
  configurable: !0,
9307
9312
  writable: !0
9308
9313
  }) : n[r] = t, n;
9309
9314
  }
9310
- function qn(n, r) {
9315
+ function Kn(n, r) {
9311
9316
  var t = Object.keys(n);
9312
9317
  if (Object.getOwnPropertySymbols) {
9313
9318
  var e = Object.getOwnPropertySymbols(n);
@@ -9320,25 +9325,25 @@ function qn(n, r) {
9320
9325
  function ot(n) {
9321
9326
  for (var r = 1; r < arguments.length; r++) {
9322
9327
  var t = arguments[r] != null ? arguments[r] : {};
9323
- r % 2 ? qn(Object(t), !0).forEach(function(e) {
9324
- aa(n, e, t[e]);
9325
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : qn(Object(t)).forEach(function(e) {
9328
+ r % 2 ? Kn(Object(t), !0).forEach(function(e) {
9329
+ oa(n, e, t[e]);
9330
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Kn(Object(t)).forEach(function(e) {
9326
9331
  Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(t, e));
9327
9332
  });
9328
9333
  }
9329
9334
  return n;
9330
9335
  }
9331
- function al(n, r) {
9336
+ function ul(n, r) {
9332
9337
  if (!(n instanceof r)) throw new TypeError("Cannot call a class as a function");
9333
9338
  }
9334
- function ol(n, r) {
9339
+ function ll(n, r) {
9335
9340
  for (var t = 0; t < r.length; t++) {
9336
9341
  var e = r[t];
9337
- e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, ia(e.key), e);
9342
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, aa(e.key), e);
9338
9343
  }
9339
9344
  }
9340
- function sl(n, r, t) {
9341
- return r && ol(n.prototype, r), Object.defineProperty(n, "prototype", {
9345
+ function cl(n, r, t) {
9346
+ return r && ll(n.prototype, r), Object.defineProperty(n, "prototype", {
9342
9347
  writable: !1
9343
9348
  }), n;
9344
9349
  }
@@ -9347,34 +9352,34 @@ function Bt(n) {
9347
9352
  return r.__proto__ || Object.getPrototypeOf(r);
9348
9353
  }, Bt(n);
9349
9354
  }
9350
- function oa() {
9355
+ function sa() {
9351
9356
  try {
9352
9357
  var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
9353
9358
  }));
9354
9359
  } catch {
9355
9360
  }
9356
- return (oa = function() {
9361
+ return (sa = function() {
9357
9362
  return !!n;
9358
9363
  })();
9359
9364
  }
9360
- function sa(n) {
9365
+ function ua(n) {
9361
9366
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9362
9367
  return n;
9363
9368
  }
9364
- function ul(n, r) {
9369
+ function hl(n, r) {
9365
9370
  if (r && (typeof r == "object" || typeof r == "function")) return r;
9366
9371
  if (r !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
9367
- return sa(n);
9372
+ return ua(n);
9368
9373
  }
9369
- function ll(n, r, t) {
9370
- return r = Bt(r), ul(n, oa() ? Reflect.construct(r, t || [], Bt(n).constructor) : r.apply(n, t));
9374
+ function dl(n, r, t) {
9375
+ return r = Bt(r), hl(n, sa() ? Reflect.construct(r, t || [], Bt(n).constructor) : r.apply(n, t));
9371
9376
  }
9372
9377
  function Nr(n, r) {
9373
9378
  return Nr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
9374
9379
  return t.__proto__ = e, t;
9375
9380
  }, Nr(n, r);
9376
9381
  }
9377
- function cl(n, r) {
9382
+ function fl(n, r) {
9378
9383
  if (typeof r != "function" && r !== null) throw new TypeError("Super expression must either be null or a function");
9379
9384
  n.prototype = Object.create(r && r.prototype, {
9380
9385
  constructor: {
@@ -9391,41 +9396,41 @@ function Ur(n, r) {
9391
9396
  for (var t = 0, e = Array(r); t < r; t++) e[t] = n[t];
9392
9397
  return e;
9393
9398
  }
9394
- function hl(n) {
9399
+ function gl(n) {
9395
9400
  if (Array.isArray(n)) return Ur(n);
9396
9401
  }
9397
- function dl(n) {
9402
+ function pl(n) {
9398
9403
  if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
9399
9404
  }
9400
- function fl(n, r) {
9405
+ function vl(n, r) {
9401
9406
  if (n) {
9402
9407
  if (typeof n == "string") return Ur(n, r);
9403
9408
  var t = {}.toString.call(n).slice(8, -1);
9404
9409
  return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ur(n, r) : void 0;
9405
9410
  }
9406
9411
  }
9407
- function gl() {
9412
+ function ml() {
9408
9413
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
9409
9414
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
9410
9415
  }
9411
9416
  function ur(n) {
9412
- return hl(n) || dl(n) || fl(n) || gl();
9417
+ return gl(n) || pl(n) || vl(n) || ml();
9413
9418
  }
9414
- function ua(n, r, t, e) {
9419
+ function la(n, r, t, e) {
9415
9420
  var i = Math.pow(1 - n, 2) * r.x + 2 * (1 - n) * n * t.x + Math.pow(n, 2) * e.x, a = Math.pow(1 - n, 2) * r.y + 2 * (1 - n) * n * t.y + Math.pow(n, 2) * e.y;
9416
9421
  return {
9417
9422
  x: i,
9418
9423
  y: a
9419
9424
  };
9420
9425
  }
9421
- function pl(n, r, t) {
9426
+ function yl(n, r, t) {
9422
9427
  for (var e = 20, i = 0, a = n, o = 0; o < e; o++) {
9423
- var s = ua((o + 1) / e, n, r, t);
9428
+ var s = la((o + 1) / e, n, r, t);
9424
9429
  i += Math.sqrt(Math.pow(a.x - s.x, 2) + Math.pow(a.y - s.y, 2)), a = s;
9425
9430
  }
9426
9431
  return i;
9427
9432
  }
9428
- function vl(n) {
9433
+ function bl(n) {
9429
9434
  var r = n.curvatureAttribute, t = n.defaultCurvature, e = n.keepLabelUpright, i = e === void 0 ? !0 : e;
9430
9435
  return function(a, o, s, u, l) {
9431
9436
  var c = l.edgeLabelSize, h = o[r] || t, v = l.edgeLabelFont, y = l.edgeLabelWeight, b = l.edgeLabelColor.attribute ? o[l.edgeLabelColor.attribute] || l.edgeLabelColor.color || "#000" : l.edgeLabelColor.color, R = o.label;
@@ -9434,11 +9439,11 @@ function vl(n) {
9434
9439
  var w = !i || s.x < u.x, k = w ? s.x : u.x, E = w ? s.y : u.y, m = w ? u.x : s.x, p = w ? u.y : s.y, C = (k + m) / 2, L = (E + p) / 2, g = m - k, x = p - E, S = Math.sqrt(Math.pow(g, 2) + Math.pow(x, 2)), D = w ? 1 : -1, O = C + x * h * D, I = L - g * h * D, _ = o.size * 0.7 + 5, W = {
9435
9440
  x: I - E,
9436
9441
  y: -(O - k)
9437
- }, X = Math.sqrt(Math.pow(W.x, 2) + Math.pow(W.y, 2)), T = {
9442
+ }, K = Math.sqrt(Math.pow(W.x, 2) + Math.pow(W.y, 2)), T = {
9438
9443
  x: p - I,
9439
9444
  y: -(m - O)
9440
9445
  }, f = Math.sqrt(Math.pow(T.x, 2) + Math.pow(T.y, 2));
9441
- k += _ * W.x / X, E += _ * W.y / X, m += _ * T.x / f, p += _ * T.y / f, O += _ * x / S, I -= _ * g / S;
9446
+ k += _ * W.x / K, E += _ * W.y / K, m += _ * T.x / f, p += _ * T.y / f, O += _ * x / S, I -= _ * g / S;
9442
9447
  var d = {
9443
9448
  x: O,
9444
9449
  y: I
@@ -9448,7 +9453,7 @@ function vl(n) {
9448
9453
  }, $ = {
9449
9454
  x: m,
9450
9455
  y: p
9451
- }, P = pl(U, d, $);
9456
+ }, P = yl(U, d, $);
9452
9457
  if (!(P < s.size + u.size)) {
9453
9458
  var A = a.measureText(R).width, z = P - s.size - u.size;
9454
9459
  if (A > z) {
@@ -9462,14 +9467,14 @@ function vl(n) {
9462
9467
  te[V] || (te[V] = a.measureText(V).width * (1 + h * 0.35));
9463
9468
  }
9464
9469
  for (var se = 0.5 - A / P / 2, ee = 0, re = R.length; ee < re; ee++) {
9465
- var J = R[ee], le = ua(se, U, d, $), q = 2 * (1 - se) * (O - k) + 2 * se * (m - O), B = 2 * (1 - se) * (I - E) + 2 * se * (p - I), G = Math.atan2(B, q);
9470
+ var J = R[ee], le = la(se, U, d, $), q = 2 * (1 - se) * (O - k) + 2 * se * (m - O), B = 2 * (1 - se) * (I - E) + 2 * se * (p - I), G = Math.atan2(B, q);
9466
9471
  a.save(), a.translate(le.x, le.y), a.rotate(G), a.fillText(J, 0, 0), a.restore(), se += te[J] / P;
9467
9472
  }
9468
9473
  }
9469
9474
  }
9470
9475
  };
9471
9476
  }
9472
- function ml(n) {
9477
+ function wl(n) {
9473
9478
  var r = n.arrowHead, t = r?.extremity === "target" || r?.extremity === "both", e = r?.extremity === "source" || r?.extremity === "both", i = (
9474
9479
  /*glsl*/
9475
9480
  `
@@ -9551,7 +9556,7 @@ void main(void) {
9551
9556
  );
9552
9557
  return i;
9553
9558
  }
9554
- function yl(n) {
9559
+ function El(n) {
9555
9560
  var r = n.arrowHead, t = r?.extremity === "target" || r?.extremity === "both", e = r?.extremity === "source" || r?.extremity === "both", i = (
9556
9561
  /*glsl*/
9557
9562
  `
@@ -9668,17 +9673,17 @@ void main() {
9668
9673
  );
9669
9674
  return i;
9670
9675
  }
9671
- var rn = 0.25, bl = {
9676
+ var rn = 0.25, _l = {
9672
9677
  arrowHead: null,
9673
9678
  curvatureAttribute: "curvature",
9674
9679
  defaultCurvature: rn
9675
- }, wl = {
9680
+ }, Tl = {
9676
9681
  edgeIndexAttribute: "parallelIndex",
9677
9682
  edgeMinIndexAttribute: "parallelMinIndex",
9678
9683
  edgeMaxIndexAttribute: "parallelMaxIndex"
9679
9684
  };
9680
- function El(n, r) {
9681
- var t = ot(ot({}, wl), {}), e = {}, i = {}, a = {}, o = 0;
9685
+ function Sl(n, r) {
9686
+ var t = ot(ot({}, Tl), {}), e = {}, i = {}, a = {}, o = 0;
9682
9687
  n.forEachNode(function(L) {
9683
9688
  e[L] = ++o + "";
9684
9689
  }), n.forEachEdge(function(L, g, x, S) {
@@ -9710,25 +9715,25 @@ function El(n, r) {
9710
9715
  }
9711
9716
  }
9712
9717
  }
9713
- var la = WebGLRenderingContext, Xn = la.UNSIGNED_BYTE, Me = la.FLOAT;
9718
+ var ca = WebGLRenderingContext, Xn = ca.UNSIGNED_BYTE, Me = ca.FLOAT;
9714
9719
  function nn(n) {
9715
- var r = ot(ot({}, bl), n || {}), t = r, e = t.arrowHead, i = t.curvatureAttribute, a = t.drawLabel, o = e?.extremity === "target" || e?.extremity === "both", s = e?.extremity === "source" || e?.extremity === "both", u = ["u_matrix", "u_sizeRatio", "u_dimensions", "u_pixelRatio", "u_feather", "u_minEdgeThickness"].concat(ur(e ? ["u_lengthToThicknessRatio", "u_widenessToThicknessRatio"] : []));
9720
+ var r = ot(ot({}, _l), n || {}), t = r, e = t.arrowHead, i = t.curvatureAttribute, a = t.drawLabel, o = e?.extremity === "target" || e?.extremity === "both", s = e?.extremity === "source" || e?.extremity === "both", u = ["u_matrix", "u_sizeRatio", "u_dimensions", "u_pixelRatio", "u_feather", "u_minEdgeThickness"].concat(ur(e ? ["u_lengthToThicknessRatio", "u_widenessToThicknessRatio"] : []));
9716
9721
  return /* @__PURE__ */ (function(l) {
9717
- cl(c, l);
9722
+ fl(c, l);
9718
9723
  function c() {
9719
9724
  var h;
9720
- al(this, c);
9725
+ ul(this, c);
9721
9726
  for (var v = arguments.length, y = new Array(v), b = 0; b < v; b++)
9722
9727
  y[b] = arguments[b];
9723
- return h = ll(this, c, [].concat(y)), aa(sa(h), "drawLabel", a || vl(r)), h;
9728
+ return h = dl(this, c, [].concat(y)), oa(ua(h), "drawLabel", a || bl(r)), h;
9724
9729
  }
9725
- return sl(c, [{
9730
+ return cl(c, [{
9726
9731
  key: "getDefinition",
9727
9732
  value: function() {
9728
9733
  return {
9729
9734
  VERTICES: 6,
9730
- VERTEX_SHADER_SOURCE: yl(r),
9731
- FRAGMENT_SHADER_SOURCE: ml(r),
9735
+ VERTEX_SHADER_SOURCE: El(r),
9736
+ FRAGMENT_SHADER_SOURCE: wl(r),
9732
9737
  METHOD: WebGLRenderingContext.TRIANGLES,
9733
9738
  UNIFORMS: u,
9734
9739
  ATTRIBUTES: [{
@@ -9801,7 +9806,7 @@ function nn(n) {
9801
9806
  }]), c;
9802
9807
  })(Ht);
9803
9808
  }
9804
- var _l = nn(), Tl = nn({
9809
+ var Rl = nn(), Al = nn({
9805
9810
  arrowHead: jt
9806
9811
  });
9807
9812
  nn({
@@ -9809,10 +9814,10 @@ nn({
9809
9814
  extremity: "both"
9810
9815
  })
9811
9816
  });
9812
- var et = {}, lr, Kn;
9817
+ var et = {}, lr, Yn;
9813
9818
  function Vt() {
9814
- if (Kn) return lr;
9815
- Kn = 1;
9819
+ if (Yn) return lr;
9820
+ Yn = 1;
9816
9821
  function n(t) {
9817
9822
  return !t || typeof t != "object" || typeof t == "function" || Array.isArray(t) || t instanceof Set || t instanceof Map || t instanceof RegExp || t instanceof Date;
9818
9823
  }
@@ -9831,10 +9836,10 @@ function Vt() {
9831
9836
  }
9832
9837
  return lr = r, lr;
9833
9838
  }
9834
- var cr, Yn;
9835
- function Sl() {
9836
- if (Yn) return cr;
9837
- Yn = 1;
9839
+ var cr, Zn;
9840
+ function kl() {
9841
+ if (Zn) return cr;
9842
+ Zn = 1;
9838
9843
  function n(t) {
9839
9844
  return function(e, i) {
9840
9845
  return e + Math.floor(t() * (i - e + 1));
@@ -9843,11 +9848,11 @@ function Sl() {
9843
9848
  var r = n(Math.random);
9844
9849
  return r.createRandom = n, cr = r, cr;
9845
9850
  }
9846
- var hr, Zn;
9847
- function Rl() {
9848
- if (Zn) return hr;
9849
- Zn = 1;
9850
- var n = Sl().createRandom;
9851
+ var hr, Qn;
9852
+ function Cl() {
9853
+ if (Qn) return hr;
9854
+ Qn = 1;
9855
+ var n = kl().createRandom;
9851
9856
  function r(e) {
9852
9857
  var i = n(e);
9853
9858
  return function(a) {
@@ -9860,11 +9865,11 @@ function Rl() {
9860
9865
  var t = r(Math.random);
9861
9866
  return t.createShuffleInPlace = r, hr = t, hr;
9862
9867
  }
9863
- var dr, Qn;
9864
- function Al() {
9865
- if (Qn) return dr;
9866
- Qn = 1;
9867
- var n = Vt(), r = Ze(), t = Rl(), e = {
9868
+ var dr, Jn;
9869
+ function xl() {
9870
+ if (Jn) return dr;
9871
+ Jn = 1;
9872
+ var n = Vt(), r = Ze(), t = Cl(), e = {
9868
9873
  attributes: {
9869
9874
  x: "x",
9870
9875
  y: "y"
@@ -9920,16 +9925,16 @@ function Al() {
9920
9925
  return new i(null, g.x, g.y, g.r);
9921
9926
  }
9922
9927
  function c(g, x) {
9923
- var S = g.x, D = g.y, O = g.r, I = x.x, _ = x.y, W = x.r, X = I - S, T = _ - D, f = W - O, d = Math.sqrt(X * X + T * T);
9928
+ var S = g.x, D = g.y, O = g.r, I = x.x, _ = x.y, W = x.r, K = I - S, T = _ - D, f = W - O, d = Math.sqrt(K * K + T * T);
9924
9929
  return new i(
9925
9930
  null,
9926
- (S + I + X / d * f) / 2,
9931
+ (S + I + K / d * f) / 2,
9927
9932
  (D + _ + T / d * f) / 2,
9928
9933
  (d + O + W) / 2
9929
9934
  );
9930
9935
  }
9931
9936
  function h(g, x, S) {
9932
- var D = g.x, O = g.y, I = g.r, _ = x.x, W = x.y, X = x.r, T = S.x, f = S.y, d = S.r, U = D - _, $ = D - T, P = O - W, A = O - f, z = X - I, Z = d - I, te = D * D + O * O - I * I, oe = te - _ * _ - W * W + X * X, ne = te - T * T - f * f + d * d, V = $ * P - U * A, se = (P * ne - A * oe) / (V * 2) - D, ee = (A * z - P * Z) / V, re = ($ * oe - U * ne) / (V * 2) - O, J = (U * Z - $ * z) / V, le = ee * ee + J * J - 1, q = 2 * (I + se * ee + re * J), B = se * se + re * re - I * I, G = -(le ? (q + Math.sqrt(q * q - 4 * le * B)) / (2 * le) : B / q);
9937
+ var D = g.x, O = g.y, I = g.r, _ = x.x, W = x.y, K = x.r, T = S.x, f = S.y, d = S.r, U = D - _, $ = D - T, P = O - W, A = O - f, z = K - I, Z = d - I, te = D * D + O * O - I * I, oe = te - _ * _ - W * W + K * K, ne = te - T * T - f * f + d * d, V = $ * P - U * A, se = (P * ne - A * oe) / (V * 2) - D, ee = (A * z - P * Z) / V, re = ($ * oe - U * ne) / (V * 2) - O, J = (U * Z - $ * z) / V, le = ee * ee + J * J - 1, q = 2 * (I + se * ee + re * J), B = se * se + re * re - I * I, G = -(le ? (q + Math.sqrt(q * q - 4 * le * B)) / (2 * le) : B / q);
9933
9938
  return new i(null, D + se + ee * G, O + re + J * G, G);
9934
9939
  }
9935
9940
  function v(g) {
@@ -9969,8 +9974,8 @@ function Al() {
9969
9974
  return W;
9970
9975
  }
9971
9976
  function w(g, x, S) {
9972
- var D = g.x - x.x, O, I, _ = g.y - x.y, W, X, T = D * D + _ * _;
9973
- T ? (I = x.r + S.r, I *= I, X = g.r + S.r, X *= X, I > X ? (O = (T + X - I) / (2 * T), W = Math.sqrt(Math.max(0, X / T - O * O)), S.x = g.x - O * D - W * _, S.y = g.y - O * _ + W * D) : (O = (T + I - X) / (2 * T), W = Math.sqrt(Math.max(0, I / T - O * O)), S.x = x.x + O * D - W * _, S.y = x.y + O * _ + W * D)) : (S.x = x.x + S.r, S.y = x.y);
9977
+ var D = g.x - x.x, O, I, _ = g.y - x.y, W, K, T = D * D + _ * _;
9978
+ T ? (I = x.r + S.r, I *= I, K = g.r + S.r, K *= K, I > K ? (O = (T + K - I) / (2 * T), W = Math.sqrt(Math.max(0, K / T - O * O)), S.x = g.x - O * D - W * _, S.y = g.y - O * _ + W * D) : (O = (T + I - K) / (2 * T), W = Math.sqrt(Math.max(0, I / T - O * O)), S.x = x.x + O * D - W * _, S.y = x.y + O * _ + W * D)) : (S.x = x.x + S.r, S.y = x.y);
9974
9979
  }
9975
9980
  function k(g, x) {
9976
9981
  var S = g.r + x.r - 1e-6, D = x.x - g.x, O = x.y - g.y;
@@ -9979,22 +9984,22 @@ function Al() {
9979
9984
  function E(g, x) {
9980
9985
  var S = g.length;
9981
9986
  if (S === 0) return 0;
9982
- var D, O, I, _, W, X, T, f, d, U;
9987
+ var D, O, I, _, W, K, T, f, d, U;
9983
9988
  if (D = g[0], D.x = 0, D.y = 0, S <= 1) return D.r;
9984
9989
  if (O = g[1], D.x = -O.r, O.x = D.r, O.y = 0, S <= 2) return D.r + O.r;
9985
9990
  I = g[2], w(O, D, I), D = new i(null, null, null, null, D), O = new i(null, null, null, null, O), I = new i(null, null, null, null, I), D.next = I.previous = O, O.next = D.previous = I, I.next = O.previous = D;
9986
- e: for (X = 3; X < S; ++X) {
9987
- I = g[X], w(D.wrappedCircle, O.wrappedCircle, I), I = new i(null, null, null, null, I), T = O.next, f = D.previous, d = O.wrappedCircle.r, U = D.wrappedCircle.r;
9991
+ e: for (K = 3; K < S; ++K) {
9992
+ I = g[K], w(D.wrappedCircle, O.wrappedCircle, I), I = new i(null, null, null, null, I), T = O.next, f = D.previous, d = O.wrappedCircle.r, U = D.wrappedCircle.r;
9988
9993
  do
9989
9994
  if (d <= U) {
9990
9995
  if (k(T.wrappedCircle, I.wrappedCircle)) {
9991
- O = T, D.next = O, O.previous = D, --X;
9996
+ O = T, D.next = O, O.previous = D, --K;
9992
9997
  continue e;
9993
9998
  }
9994
9999
  d += T.wrappedCircle.r, T = T.next;
9995
10000
  } else {
9996
10001
  if (k(f.wrappedCircle, I.wrappedCircle)) {
9997
- D = f, D.next = O, O.previous = D, --X;
10002
+ D = f, D.next = O, O.previous = D, --K;
9998
10003
  continue e;
9999
10004
  }
10000
10005
  U += f.wrappedCircle.r, f = f.previous;
@@ -10007,8 +10012,8 @@ function Al() {
10007
10012
  D = [O.wrappedCircle], I = O;
10008
10013
  for (var $ = 1e4; (I = I.next) !== O && --$ !== 0; )
10009
10014
  D.push(I.wrappedCircle);
10010
- for (I = R(D, x), X = 0; X < S; ++X)
10011
- D = g[X], D.x -= I.x, D.y -= I.y;
10015
+ for (I = R(D, x), K = 0; K < S; ++K)
10016
+ D = g[K], D.x -= I.x, D.y -= I.y;
10012
10017
  return I.r;
10013
10018
  }
10014
10019
  function m(g, x) {
@@ -10035,14 +10040,14 @@ function Al() {
10035
10040
  "graphology-layout/circlepack: the given graph is not a valid graphology instance."
10036
10041
  );
10037
10042
  S = n(S, e);
10038
- var D = {}, O = {}, I = x.nodes(), _ = S.center, W = S.hierarchyAttributes, X = t.createShuffleInPlace(S.rng), T = S.scale, f = new i();
10043
+ var D = {}, O = {}, I = x.nodes(), _ = S.center, W = S.hierarchyAttributes, K = t.createShuffleInPlace(S.rng), T = S.scale, f = new i();
10039
10044
  x.forEachNode(function(z, Z) {
10040
10045
  var te = Z.size ? Z.size : 1, oe = new i(z, null, null, te), ne = f;
10041
10046
  W.forEach(function(V) {
10042
10047
  var se = Z[V];
10043
10048
  ne = ne.getChild(se);
10044
10049
  }), ne.addChild(z, oe);
10045
- }), p(f, X), a(x, f, D);
10050
+ }), p(f, K), a(x, f, D);
10046
10051
  var d = I.length, U, $, P;
10047
10052
  for (P = 0; P < d; P++) {
10048
10053
  var A = I[P];
@@ -10056,10 +10061,10 @@ function Al() {
10056
10061
  var L = C.bind(null, !1);
10057
10062
  return L.assign = C.bind(null, !0), dr = L, dr;
10058
10063
  }
10059
- var fr, Jn;
10060
- function kl() {
10061
- if (Jn) return fr;
10062
- Jn = 1;
10064
+ var fr, ei;
10065
+ function Dl() {
10066
+ if (ei) return fr;
10067
+ ei = 1;
10063
10068
  var n = Vt(), r = Ze(), t = {
10064
10069
  dimensions: ["x", "y"],
10065
10070
  center: 0.5,
@@ -10097,10 +10102,10 @@ function kl() {
10097
10102
  var i = e.bind(null, !1);
10098
10103
  return i.assign = e.bind(null, !0), fr = i, fr;
10099
10104
  }
10100
- var gr, ei;
10101
- function Cl() {
10102
- if (ei) return gr;
10103
- ei = 1;
10105
+ var gr, ti;
10106
+ function Ll() {
10107
+ if (ti) return gr;
10108
+ ti = 1;
10104
10109
  var n = Vt(), r = Ze(), t = {
10105
10110
  dimensions: ["x", "y"],
10106
10111
  center: 0.5,
@@ -10140,10 +10145,10 @@ function Cl() {
10140
10145
  var i = e.bind(null, !1);
10141
10146
  return i.assign = e.bind(null, !0), gr = i, gr;
10142
10147
  }
10143
- var pr, ti;
10144
- function xl() {
10145
- if (ti) return pr;
10146
- ti = 1;
10148
+ var pr, ri;
10149
+ function Gl() {
10150
+ if (ri) return pr;
10151
+ ri = 1;
10147
10152
  var n = Vt(), r = Ze(), t = Math.PI / 180, e = {
10148
10153
  dimensions: ["x", "y"],
10149
10154
  centeredOnZero: !1,
@@ -10192,18 +10197,18 @@ function xl() {
10192
10197
  var a = i.bind(null, !1);
10193
10198
  return a.assign = i.bind(null, !0), pr = a, pr;
10194
10199
  }
10195
- var ri;
10196
- function Dl() {
10197
- return ri || (ri = 1, et.circlepack = Al(), et.circular = kl(), et.random = Cl(), et.rotation = xl()), et;
10200
+ var ni;
10201
+ function Pl() {
10202
+ return ni || (ni = 1, et.circlepack = xl(), et.circular = Dl(), et.random = Ll(), et.rotation = Gl()), et;
10198
10203
  }
10199
- var vr = Dl(), mr, ni;
10200
- function Ll() {
10201
- return ni || (ni = 1, mr = function() {
10204
+ var vr = Pl(), mr, ii;
10205
+ function Il() {
10206
+ return ii || (ii = 1, mr = function() {
10202
10207
  var r, t, e = {};
10203
10208
  (function() {
10204
- var a = 0, o = 1, s = 2, u = 3, l = 4, c = 5, h = 6, v = 7, y = 8, b = 9, R = 0, w = 1, k = 2, E = 0, m = 1, p = 2, C = 3, L = 4, g = 5, x = 6, S = 7, D = 8, O = 3, I = 10, _ = 3, W = 9, X = 10;
10209
+ var a = 0, o = 1, s = 2, u = 3, l = 4, c = 5, h = 6, v = 7, y = 8, b = 9, R = 0, w = 1, k = 2, E = 0, m = 1, p = 2, C = 3, L = 4, g = 5, x = 6, S = 7, D = 8, O = 3, I = 10, _ = 3, W = 9, K = 10;
10205
10210
  e.exports = function(f, d, U) {
10206
- var $, P, A, z, Z, te, oe, ne, V, se, ee = d.length, re = U.length, J = f.adjustSizes, le = f.barnesHutTheta * f.barnesHutTheta, q, B, G, ie, de, Y, K, F = [];
10211
+ var $, P, A, z, Z, te, oe, ne, V, se, ee = d.length, re = U.length, J = f.adjustSizes, le = f.barnesHutTheta * f.barnesHutTheta, q, B, G, ie, de, Y, X, F = [];
10207
10212
  for (A = 0; A < ee; A += I)
10208
10213
  d[A + l] = d[A + s], d[A + c] = d[A + u], d[A + s] = 0, d[A + u] = 0;
10209
10214
  if (f.outboundAttractionDistribution) {
@@ -10248,30 +10253,30 @@ function Ll() {
10248
10253
  d[A + o] - F[P + D],
10249
10254
  2
10250
10255
  ), se = F[P + C], 4 * se * se / Y < le) {
10251
- if (G = d[A + a] - F[P + S], ie = d[A + o] - F[P + D], J === !0 ? Y > 0 ? (K = B * d[A + h] * F[P + x] / Y, d[A + s] += G * K, d[A + u] += ie * K) : Y < 0 && (K = -B * d[A + h] * F[P + x] / Math.sqrt(Y), d[A + s] += G * K, d[A + u] += ie * K) : Y > 0 && (K = B * d[A + h] * F[P + x] / Y, d[A + s] += G * K, d[A + u] += ie * K), P = F[P + L], P < 0) break;
10256
+ if (G = d[A + a] - F[P + S], ie = d[A + o] - F[P + D], J === !0 ? Y > 0 ? (X = B * d[A + h] * F[P + x] / Y, d[A + s] += G * X, d[A + u] += ie * X) : Y < 0 && (X = -B * d[A + h] * F[P + x] / Math.sqrt(Y), d[A + s] += G * X, d[A + u] += ie * X) : Y > 0 && (X = B * d[A + h] * F[P + x] / Y, d[A + s] += G * X, d[A + u] += ie * X), P = F[P + L], P < 0) break;
10252
10257
  continue;
10253
10258
  } else {
10254
10259
  P = F[P + g];
10255
10260
  continue;
10256
10261
  }
10257
10262
  else {
10258
- if (te = F[P + E], te >= 0 && te !== A && (G = d[A + a] - d[te + a], ie = d[A + o] - d[te + o], Y = G * G + ie * ie, J === !0 ? Y > 0 ? (K = B * d[A + h] * d[te + h] / Y, d[A + s] += G * K, d[A + u] += ie * K) : Y < 0 && (K = -B * d[A + h] * d[te + h] / Math.sqrt(Y), d[A + s] += G * K, d[A + u] += ie * K) : Y > 0 && (K = B * d[A + h] * d[te + h] / Y, d[A + s] += G * K, d[A + u] += ie * K)), P = F[P + L], P < 0) break;
10263
+ if (te = F[P + E], te >= 0 && te !== A && (G = d[A + a] - d[te + a], ie = d[A + o] - d[te + o], Y = G * G + ie * ie, J === !0 ? Y > 0 ? (X = B * d[A + h] * d[te + h] / Y, d[A + s] += G * X, d[A + u] += ie * X) : Y < 0 && (X = -B * d[A + h] * d[te + h] / Math.sqrt(Y), d[A + s] += G * X, d[A + u] += ie * X) : Y > 0 && (X = B * d[A + h] * d[te + h] / Y, d[A + s] += G * X, d[A + u] += ie * X)), P = F[P + L], P < 0) break;
10259
10264
  continue;
10260
10265
  }
10261
10266
  else
10262
10267
  for (B = f.scalingRatio, z = 0; z < ee; z += I)
10263
10268
  for (Z = 0; Z < z; Z += I)
10264
- G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], Y > 0 ? (K = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K) : Y < 0 && (K = 100 * B * d[z + h] * d[Z + h], d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K)) : (Y = Math.sqrt(G * G + ie * ie), Y > 0 && (K = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K));
10269
+ G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], Y > 0 ? (X = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X) : Y < 0 && (X = 100 * B * d[z + h] * d[Z + h], d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X)) : (Y = Math.sqrt(G * G + ie * ie), Y > 0 && (X = B * d[z + h] * d[Z + h] / Y / Y, d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X));
10265
10270
  for (V = f.gravity / f.scalingRatio, B = f.scalingRatio, A = 0; A < ee; A += I)
10266
- K = 0, G = d[A + a], ie = d[A + o], Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.strongGravityMode ? Y > 0 && (K = B * d[A + h] * V) : Y > 0 && (K = B * d[A + h] * V / Y), d[A + s] -= G * K, d[A + u] -= ie * K;
10271
+ X = 0, G = d[A + a], ie = d[A + o], Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.strongGravityMode ? Y > 0 && (X = B * d[A + h] * V) : Y > 0 && (X = B * d[A + h] * V / Y), d[A + s] -= G * X, d[A + u] -= ie * X;
10267
10272
  for (B = 1 * (f.outboundAttractionDistribution ? q : 1), oe = 0; oe < re; oe += _)
10268
- z = U[oe + R], Z = U[oe + w], ne = U[oe + k], de = Math.pow(ne, f.edgeWeightInfluence), G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (K = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (K = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? Y > 0 && (K = -B * de / d[z + h]) : Y > 0 && (K = -B * de)) : (Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (K = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (K = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? (Y = 1, K = -B * de / d[z + h]) : (Y = 1, K = -B * de)), Y > 0 && (d[z + s] += G * K, d[z + u] += ie * K, d[Z + s] -= G * K, d[Z + u] -= ie * K);
10273
+ z = U[oe + R], Z = U[oe + w], ne = U[oe + k], de = Math.pow(ne, f.edgeWeightInfluence), G = d[z + a] - d[Z + a], ie = d[z + o] - d[Z + o], J === !0 ? (Y = Math.sqrt(G * G + ie * ie) - d[z + y] - d[Z + y], f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (X = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (X = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? Y > 0 && (X = -B * de / d[z + h]) : Y > 0 && (X = -B * de)) : (Y = Math.sqrt(Math.pow(G, 2) + Math.pow(ie, 2)), f.linLogMode ? f.outboundAttractionDistribution ? Y > 0 && (X = -B * de * Math.log(1 + Y) / Y / d[z + h]) : Y > 0 && (X = -B * de * Math.log(1 + Y) / Y) : f.outboundAttractionDistribution ? (Y = 1, X = -B * de / d[z + h]) : (Y = 1, X = -B * de)), Y > 0 && (d[z + s] += G * X, d[z + u] += ie * X, d[Z + s] -= G * X, d[Z + u] -= ie * X);
10269
10274
  var Pe, ct, kt, Ve, Ct, xt;
10270
10275
  if (J === !0)
10271
10276
  for (A = 0; A < ee; A += I)
10272
10277
  d[A + b] !== 1 && (Pe = Math.sqrt(
10273
10278
  Math.pow(d[A + s], 2) + Math.pow(d[A + u], 2)
10274
- ), Pe > X && (d[A + s] = d[A + s] * X / Pe, d[A + u] = d[A + u] * X / Pe), ct = d[A + h] * Math.sqrt(
10279
+ ), Pe > K && (d[A + s] = d[A + s] * K / Pe, d[A + u] = d[A + u] * K / Pe), ct = d[A + h] * Math.sqrt(
10275
10280
  (d[A + l] - d[A + s]) * (d[A + l] - d[A + s]) + (d[A + c] - d[A + u]) * (d[A + c] - d[A + u])
10276
10281
  ), kt = Math.sqrt(
10277
10282
  (d[A + l] + d[A + s]) * (d[A + l] + d[A + s]) + (d[A + c] + d[A + u]) * (d[A + c] + d[A + u])
@@ -10303,10 +10308,10 @@ function Ll() {
10303
10308
  });
10304
10309
  }), mr;
10305
10310
  }
10306
- var yt = {}, ii;
10307
- function ca() {
10308
- if (ii) return yt;
10309
- ii = 1;
10311
+ var yt = {}, ai;
10312
+ function ha() {
10313
+ if (ai) return yt;
10314
+ ai = 1;
10310
10315
  function n(e) {
10311
10316
  return typeof e != "number" || isNaN(e) ? 1 : e;
10312
10317
  }
@@ -10379,10 +10384,10 @@ function ca() {
10379
10384
  return t(e, n);
10380
10385
  }, yt;
10381
10386
  }
10382
- var Ie = {}, ai;
10383
- function ha() {
10384
- if (ai) return Ie;
10385
- ai = 1;
10387
+ var Ie = {}, oi;
10388
+ function da() {
10389
+ if (oi) return Ie;
10390
+ oi = 1;
10386
10391
  var n = 10, r = 3;
10387
10392
  return Ie.assign = function(t) {
10388
10393
  t = t || {};
@@ -10441,9 +10446,9 @@ function ha() {
10441
10446
  return i.revokeObjectURL(o), s;
10442
10447
  }, Ie;
10443
10448
  }
10444
- var yr, oi;
10445
- function da() {
10446
- return oi || (oi = 1, yr = {
10449
+ var yr, si;
10450
+ function fa() {
10451
+ return si || (si = 1, yr = {
10447
10452
  linLogMode: !1,
10448
10453
  outboundAttractionDistribution: !1,
10449
10454
  adjustSizes: !1,
@@ -10456,11 +10461,11 @@ function da() {
10456
10461
  barnesHutTheta: 0.5
10457
10462
  }), yr;
10458
10463
  }
10459
- var br, si;
10460
- function Gl() {
10461
- if (si) return br;
10462
- si = 1;
10463
- var n = Ll(), r = Ze(), t = ca().createEdgeWeightGetter, e = ha(), i = da();
10464
+ var br, ui;
10465
+ function Fl() {
10466
+ if (ui) return br;
10467
+ ui = 1;
10468
+ var n = Il(), r = Ze(), t = ha().createEdgeWeightGetter, e = da(), i = fa();
10464
10469
  function a(o, s) {
10465
10470
  if (s = s || {}, !r(o))
10466
10471
  throw new Error(
@@ -10509,15 +10514,15 @@ function Gl() {
10509
10514
  this.running = !1, this.killed = !0, this.matrices = null, this.worker.terminate(), this.graph.removeListener("nodeAdded", this.handleGraphUpdate), this.graph.removeListener("edgeAdded", this.handleGraphUpdate), this.graph.removeListener("nodeDropped", this.handleGraphUpdate), this.graph.removeListener("edgeDropped", this.handleGraphUpdate);
10510
10515
  }, br = a, br;
10511
10516
  }
10512
- var Pl = Gl();
10513
- const Il = /* @__PURE__ */ Br(Pl);
10514
- var wr, ui;
10515
- function Fl() {
10516
- if (ui) return wr;
10517
- ui = 1;
10517
+ var Ol = Fl();
10518
+ const zl = /* @__PURE__ */ Br(Ol);
10519
+ var wr, li;
10520
+ function Nl() {
10521
+ if (li) return wr;
10522
+ li = 1;
10518
10523
  var n = 0, r = 1, t = 2, e = 3, i = 4, a = 5, o = 6, s = 7, u = 8, l = 9, c = 0, h = 1, v = 2, y = 0, b = 1, R = 2, w = 3, k = 4, E = 5, m = 6, p = 7, C = 8, L = 3, g = 10, x = 3, S = 9, D = 10;
10519
10524
  return wr = function(I, _, W) {
10520
- var X, T, f, d, U, $, P, A, z, Z, te = _.length, oe = W.length, ne = I.adjustSizes, V = I.barnesHutTheta * I.barnesHutTheta, se, ee, re, J, le, q, B, G = [];
10525
+ var K, T, f, d, U, $, P, A, z, Z, te = _.length, oe = W.length, ne = I.adjustSizes, V = I.barnesHutTheta * I.barnesHutTheta, se, ee, re, J, le, q, B, G = [];
10521
10526
  for (f = 0; f < te; f += g)
10522
10527
  _[f + i] = _[f + t], _[f + a] = _[f + e], _[f + t] = 0, _[f + e] = 0;
10523
10528
  if (I.outboundAttractionDistribution) {
@@ -10526,11 +10531,11 @@ function Fl() {
10526
10531
  se /= te / g;
10527
10532
  }
10528
10533
  if (I.barnesHutOptimize) {
10529
- var ie = 1 / 0, de = -1 / 0, Y = 1 / 0, K = -1 / 0, F, ve, Le;
10534
+ var ie = 1 / 0, de = -1 / 0, Y = 1 / 0, X = -1 / 0, F, ve, Le;
10530
10535
  for (f = 0; f < te; f += g)
10531
- ie = Math.min(ie, _[f + n]), de = Math.max(de, _[f + n]), Y = Math.min(Y, _[f + r]), K = Math.max(K, _[f + r]);
10532
- var ye = de - ie, Re = K - Y;
10533
- for (ye > Re ? (Y -= (ye - Re) / 2, K = Y + ye) : (ie -= (Re - ye) / 2, de = ie + Re), G[0 + y] = -1, G[0 + b] = (ie + de) / 2, G[0 + R] = (Y + K) / 2, G[0 + w] = Math.max(de - ie, K - Y), G[0 + k] = -1, G[0 + E] = -1, G[0 + m] = 0, G[0 + p] = 0, G[0 + C] = 0, X = 1, f = 0; f < te; f += g)
10536
+ ie = Math.min(ie, _[f + n]), de = Math.max(de, _[f + n]), Y = Math.min(Y, _[f + r]), X = Math.max(X, _[f + r]);
10537
+ var ye = de - ie, Re = X - Y;
10538
+ for (ye > Re ? (Y -= (ye - Re) / 2, X = Y + ye) : (ie -= (Re - ye) / 2, de = ie + Re), G[0 + y] = -1, G[0 + b] = (ie + de) / 2, G[0 + R] = (Y + X) / 2, G[0 + w] = Math.max(de - ie, X - Y), G[0 + k] = -1, G[0 + E] = -1, G[0 + m] = 0, G[0 + p] = 0, G[0 + C] = 0, K = 1, f = 0; f < te; f += g)
10534
10539
  for (T = 0, Le = L; ; )
10535
10540
  if (G[T + E] >= 0) {
10536
10541
  _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[f + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + p] = (G[T + p] * G[T + m] + _[f + n] * _[f + o]) / (G[T + m] + _[f + o]), G[T + C] = (G[T + C] * G[T + m] + _[f + r] * _[f + o]) / (G[T + m] + _[f + o]), G[T + m] += _[f + o], T = F;
@@ -10539,7 +10544,7 @@ function Fl() {
10539
10544
  G[T + y] = f;
10540
10545
  break;
10541
10546
  } else {
10542
- if (G[T + E] = X * S, A = G[T + w] / 2, z = G[T + E], G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = G[T + k], G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, X += 4, _[G[T + y] + n] < G[T + b] ? _[G[T + y] + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[G[T + y] + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + m] = _[G[T + y] + o], G[T + p] = _[G[T + y] + n], G[T + C] = _[G[T + y] + r], G[F + y] = G[T + y], G[T + y] = -1, _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? ve = G[T + E] : ve = G[T + E] + S : _[f + r] < G[T + R] ? ve = G[T + E] + S * 2 : ve = G[T + E] + S * 3, F === ve)
10547
+ if (G[T + E] = K * S, A = G[T + w] / 2, z = G[T + E], G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] - A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] - A, G[z + w] = A, G[z + k] = z + S, G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, z += S, G[z + y] = -1, G[z + b] = G[T + b] + A, G[z + R] = G[T + R] + A, G[z + w] = A, G[z + k] = G[T + k], G[z + E] = -1, G[z + m] = 0, G[z + p] = 0, G[z + C] = 0, K += 4, _[G[T + y] + n] < G[T + b] ? _[G[T + y] + r] < G[T + R] ? F = G[T + E] : F = G[T + E] + S : _[G[T + y] + r] < G[T + R] ? F = G[T + E] + S * 2 : F = G[T + E] + S * 3, G[T + m] = _[G[T + y] + o], G[T + p] = _[G[T + y] + n], G[T + C] = _[G[T + y] + r], G[F + y] = G[T + y], G[T + y] = -1, _[f + n] < G[T + b] ? _[f + r] < G[T + R] ? ve = G[T + E] : ve = G[T + E] + S : _[f + r] < G[T + R] ? ve = G[T + E] + S * 2 : ve = G[T + E] + S * 3, F === ve)
10543
10548
  if (Le--) {
10544
10549
  T = F;
10545
10550
  continue;
@@ -10605,11 +10610,11 @@ function Fl() {
10605
10610
  return {};
10606
10611
  }, wr;
10607
10612
  }
10608
- var Er, li;
10609
- function Ol() {
10610
- if (li) return Er;
10611
- li = 1;
10612
- var n = Ze(), r = ca().createEdgeWeightGetter, t = Fl(), e = ha(), i = da();
10613
+ var Er, ci;
10614
+ function Ul() {
10615
+ if (ci) return Er;
10616
+ ci = 1;
10617
+ var n = Ze(), r = ha().createEdgeWeightGetter, t = Nl(), e = da(), i = fa();
10613
10618
  function a(u, l, c) {
10614
10619
  if (!n(l))
10615
10620
  throw new Error(
@@ -10654,9 +10659,9 @@ function Ol() {
10654
10659
  var s = a.bind(null, !1);
10655
10660
  return s.assign = a.bind(null, !0), s.inferSettings = o, Er = s, Er;
10656
10661
  }
10657
- var zl = Ol();
10658
- const Nl = /* @__PURE__ */ Br(zl), bt = 64, ci = /* @__PURE__ */ new Map();
10659
- function Ul(n) {
10662
+ var $l = Ul();
10663
+ const Ml = /* @__PURE__ */ Br($l), bt = 64, hi = /* @__PURE__ */ new Map();
10664
+ function Bl(n) {
10660
10665
  const r = document.createElement("canvas");
10661
10666
  r.width = bt, r.height = bt;
10662
10667
  const t = r.getContext("2d");
@@ -10664,39 +10669,39 @@ function Ul(n) {
10664
10669
  const e = [...n].length, i = Math.floor(bt * (e <= 2 ? 0.78 : e <= 4 ? 0.4 : 0.22));
10665
10670
  return t.font = `${i}px "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif`, t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = "#cdd6e4", t.fillText(n, bt / 2, bt / 2 + 2), r.toDataURL("image/png");
10666
10671
  }
10667
- function $l(n) {
10672
+ function Wl(n) {
10668
10673
  if (n.kind === "url") return n.value;
10669
- let r = ci.get(n.value);
10670
- return r === void 0 && (r = Ul(n.value), ci.set(n.value, r)), r;
10674
+ let r = hi.get(n.value);
10675
+ return r === void 0 && (r = Bl(n.value), hi.set(n.value, r)), r;
10671
10676
  }
10672
- const Ml = 9;
10673
- function Bl(n) {
10674
- return Math.max(n, Ml);
10677
+ const Hl = 9;
10678
+ function jl(n) {
10679
+ return Math.max(n, Hl);
10675
10680
  }
10676
- const fa = 4;
10677
- function Wl(n) {
10678
- return Math.cbrt(Math.max(n, 0)) * fa;
10681
+ const ga = 4;
10682
+ function Vl(n) {
10683
+ return Math.cbrt(Math.max(n, 0)) * ga;
10679
10684
  }
10680
- function Sc(n, r, t, e) {
10685
+ function Cc(n, r, t, e) {
10681
10686
  if (n <= 0) return 0;
10682
10687
  const i = t * Math.PI / 360, a = e / (2 * Math.tan(i));
10683
10688
  return r / n * a;
10684
10689
  }
10685
- function Rc(n) {
10690
+ function xc(n) {
10686
10691
  return Math.pow(n / Mr, 3);
10687
10692
  }
10688
- const Ac = 2 * fa / Mr, kc = 50, Hl = 60;
10689
- function jl(n, r, t) {
10690
- const e = Math.min(n.width, n.height), i = Number.isFinite(t) ? t : r, a = Math.min(Math.max(i, 0), Math.max(r, ga(e))), o = e - 2 * r, s = e - 2 * a;
10693
+ const Dc = 2 * ga / Mr, Lc = 50, ql = 60;
10694
+ function Kl(n, r, t) {
10695
+ const e = Math.min(n.width, n.height), i = Number.isFinite(t) ? t : r, a = Math.min(Math.max(i, 0), Math.max(r, pa(e))), o = e - 2 * r, s = e - 2 * a;
10691
10696
  return o > 0 && s > 0 ? o / s : 1;
10692
10697
  }
10693
- function Cc(n, r, t, e, i) {
10698
+ function Gc(n, r, t, e, i) {
10694
10699
  if (!(t > 0) || !(e > 0)) return 0;
10695
10700
  let a = 0;
10696
10701
  for (const l of n) {
10697
10702
  const { x: c = Number.NaN, y: h = Number.NaN, z: v = Number.NaN } = l;
10698
10703
  if (!Number.isFinite(c) || !Number.isFinite(h) || !Number.isFinite(v)) continue;
10699
- const y = Wl(l.val);
10704
+ const y = Vl(l.val);
10700
10705
  a = Math.max(
10701
10706
  a,
10702
10707
  Math.abs(c) + y,
@@ -10713,32 +10718,32 @@ function Cc(n, r, t, e, i) {
10713
10718
  );
10714
10719
  return Number.isFinite(u) ? u : 0;
10715
10720
  }
10716
- function xc(n, r) {
10721
+ function Pc(n, r) {
10717
10722
  const t = Math.hypot(n.x, n.y, n.z);
10718
10723
  if (!(t > 0)) return { x: 0, y: 0, z: r };
10719
10724
  const e = r / t;
10720
10725
  return { x: n.x * e, y: n.y * e, z: n.z * e };
10721
10726
  }
10722
- function ga(n) {
10727
+ function pa(n) {
10723
10728
  return Math.max(n, 0) * 0.4;
10724
10729
  }
10725
- function Dc(n, r) {
10726
- const t = Number.isFinite(n) ? n : Hl;
10727
- return Math.min(Math.max(t, 0), ga(r));
10730
+ function Ic(n, r) {
10731
+ const t = Number.isFinite(n) ? n : ql;
10732
+ return Math.min(Math.max(t, 0), pa(r));
10728
10733
  }
10729
- function Vl(n, r, t) {
10734
+ function Xl(n, r, t) {
10730
10735
  const e = Number.isFinite(n) ? n : r;
10731
10736
  return Math.max(e, t);
10732
10737
  }
10733
- function ql(n) {
10738
+ function Yl(n) {
10734
10739
  return Rt(n);
10735
10740
  }
10736
- function pa(n, r) {
10737
- if (n < 0) return -pa(-n, r);
10741
+ function va(n, r) {
10742
+ if (n < 0) return -va(-n, r);
10738
10743
  const t = 3.5, e = t * (1 - Math.exp(-r / t)) * rn;
10739
10744
  return r === 0 ? 0 : e * n / r;
10740
10745
  }
10741
- function Xl({
10746
+ function Zl({
10742
10747
  nodes: n,
10743
10748
  edges: r,
10744
10749
  styles: t,
@@ -10753,7 +10758,7 @@ function Xl({
10753
10758
  }, [a]), Qe(() => {
10754
10759
  const b = s.current;
10755
10760
  if (!b) return;
10756
- const R = h.current, w = new Iu(R, b, {
10761
+ const R = h.current, w = new zu(R, b, {
10757
10762
  allowInvalidContainer: !0,
10758
10763
  // Off by default in Sigma v3 - without it clickEdge never fires, breaking edge
10759
10764
  // selection on the canvas and edge hops in the adjacency preview.
@@ -10775,10 +10780,10 @@ function Xl({
10775
10780
  image: tn()
10776
10781
  },
10777
10782
  edgeProgramClasses: {
10778
- line: Yi,
10783
+ line: Zi,
10779
10784
  arrow: Xi,
10780
- curved: _l,
10781
- curvedArrow: Tl
10785
+ curved: Rl,
10786
+ curvedArrow: Al
10782
10787
  }
10783
10788
  });
10784
10789
  u.current = w, w.on("clickNode", ({ node: E }) => v.current({ kind: "node", id: Number(E) })), w.on("clickEdge", ({ edge: E }) => {
@@ -10790,11 +10795,11 @@ function Xl({
10790
10795
  k.disconnect(), l.current?.kill(), l.current = null, w.kill(), u.current = null;
10791
10796
  };
10792
10797
  }, []), Qe(() => {
10793
- const b = h.current, w = Object.keys(n).length + Object.keys(r).length <= Ba, k = /* @__PURE__ */ new Set();
10798
+ const b = h.current, w = Object.keys(n).length + Object.keys(r).length <= ja, k = /* @__PURE__ */ new Set();
10794
10799
  for (const m of Object.values(n)) {
10795
10800
  const p = String(m.id);
10796
10801
  k.add(p);
10797
- const C = t.nodes[m.id], L = C.image ? $l(C.image) : null, g = {
10802
+ const C = t.nodes[m.id], L = C.image ? Wl(C.image) : null, g = {
10798
10803
  label: w && e.showNodeLabels ? m.label ? `${m.label} #${m.id}` : `#${m.id}` : null,
10799
10804
  color: C.color,
10800
10805
  size: C.size,
@@ -10819,7 +10824,7 @@ function Xl({
10819
10824
  E.add(p);
10820
10825
  const g = t.edges[m.id], x = {
10821
10826
  elementId: m.id,
10822
- label: w && e.showEdgeLabels ? vi(m) ?? void 0 : void 0,
10827
+ label: w && e.showEdgeLabels ? mi(m) ?? void 0 : void 0,
10823
10828
  color: g.color,
10824
10829
  size: g.width,
10825
10830
  zIndex: g.zIndex
@@ -10828,33 +10833,33 @@ function Xl({
10828
10833
  }
10829
10834
  for (const m of b.edges())
10830
10835
  E.has(m) || b.dropEdge(m);
10831
- El(b), b.forEachEdge((m, p) => {
10836
+ Sl(b), b.forEachEdge((m, p) => {
10832
10837
  const C = p.parallelIndex, L = p.parallelMaxIndex;
10833
10838
  typeof C == "number" ? b.mergeEdgeAttributes(m, {
10834
10839
  type: e.edgeArrows ? "curvedArrow" : "curved",
10835
- curvature: pa(C, L ?? 1)
10840
+ curvature: va(C, L ?? 1)
10836
10841
  }) : b.mergeEdgeAttributes(m, {
10837
10842
  type: e.edgeArrows ? "arrow" : "line",
10838
10843
  curvature: 0
10839
10844
  });
10840
10845
  }), u.current?.refresh();
10841
- }, [n, r, t, e.showNodeLabels, e.showEdgeLabels, e.edgeArrows]), fi(
10846
+ }, [n, r, t, e.showNodeLabels, e.showEdgeLabels, e.edgeArrows]), gi(
10842
10847
  o,
10843
10848
  () => ({
10844
10849
  fitToView(b, R) {
10845
10850
  const w = u.current;
10846
10851
  if (!w) return;
10847
10852
  w.resize();
10848
- const k = w.getStagePadding(), E = jl(w.getDimensions(), k, R ?? k);
10853
+ const k = w.getStagePadding(), E = Kl(w.getDimensions(), k, R ?? k);
10849
10854
  w.getCamera().animate(
10850
10855
  { x: 0.5, y: 0.5, ratio: E, angle: 0 },
10851
10856
  // Floor of 1: sigma cannot take a zero duration (fitDurationMs says why).
10852
- { duration: Vl(b, Kl, 1) }
10857
+ { duration: Xl(b, Ql, 1) }
10853
10858
  ), w.scheduleRender();
10854
10859
  },
10855
10860
  getCameraRatio: () => u.current?.getCamera().ratio ?? 1,
10856
10861
  setCameraRatio: (b) => {
10857
- ql(b) && u.current?.getCamera().animate({ ratio: b }, { duration: 1 });
10862
+ Yl(b) && u.current?.getCamera().animate({ ratio: b }, { duration: 1 });
10858
10863
  }
10859
10864
  }),
10860
10865
  []
@@ -10893,8 +10898,8 @@ function Xl({
10893
10898
  }
10894
10899
  if (b.order === 0) return;
10895
10900
  if (!l.current) {
10896
- const w = Nl.inferSettings(b);
10897
- l.current = new Il(b, { settings: w });
10901
+ const w = Ml.inferSettings(b);
10902
+ l.current = new zl(b, { settings: w });
10898
10903
  }
10899
10904
  l.current.start();
10900
10905
  const R = window.setTimeout(() => l.current?.stop(), 5e3);
@@ -10911,7 +10916,7 @@ function Xl({
10911
10916
  if (!k || !E)
10912
10917
  b.style.display = "none";
10913
10918
  else {
10914
- const { x: m, y: p } = k.framedGraphToViewport({ x: E.x, y: E.y }), C = Bl(k.scaleSize(E.size));
10919
+ const { x: m, y: p } = k.framedGraphToViewport({ x: E.x, y: E.y }), C = jl(k.scaleSize(E.size));
10915
10920
  b.style.display = "block", b.style.left = `${m}px`, b.style.top = `${p}px`, b.style.setProperty("--eclipse-r", `${C}px`);
10916
10921
  }
10917
10922
  R = requestAnimationFrame(w);
@@ -10919,7 +10924,7 @@ function Xl({
10919
10924
  return R = requestAnimationFrame(w), () => {
10920
10925
  cancelAnimationFrame(R), b.style.display = "none";
10921
10926
  };
10922
- }, [i]), /* @__PURE__ */ va("div", { className: "relative h-full w-full", children: [
10927
+ }, [i]), /* @__PURE__ */ ma("div", { className: "relative h-full w-full", children: [
10923
10928
  /* @__PURE__ */ We(
10924
10929
  "div",
10925
10930
  {
@@ -10933,8 +10938,8 @@ function Xl({
10933
10938
  /* @__PURE__ */ We("div", { ref: c, className: "eclipse-highlight", style: { display: "none" }, "aria-hidden": !0 })
10934
10939
  ] });
10935
10940
  }
10936
- const Kl = 600, Yl = ma(() => import("./Canvas3D-BXYc6PEP.js").then((n) => ({ default: n.Canvas3D })));
10937
- function Zl({
10941
+ const Ql = 600, Jl = ya(() => import("./Canvas3D-CmDAo5BT.js").then((n) => ({ default: n.Canvas3D })));
10942
+ function ec({
10938
10943
  nodes: n,
10939
10944
  edges: r,
10940
10945
  config: t,
@@ -10956,17 +10961,17 @@ function Zl({
10956
10961
  edgeIds: new Set(i.edgeIds),
10957
10962
  active: !0,
10958
10963
  dim: !1
10959
- } : Wa;
10964
+ } : Va;
10960
10965
  }, [e, i]), c = an(
10961
- () => ao(n, r, l, t),
10966
+ () => uo(n, r, l, t),
10962
10967
  [n, r, l, t]
10963
10968
  );
10964
10969
  return t.renderer === "3d" ? /* @__PURE__ */ We(
10965
- ya,
10970
+ ba,
10966
10971
  {
10967
10972
  fallback: /* @__PURE__ */ We("div", { className: "bg-ink text-fg-faint flex h-full w-full items-center justify-center text-[11px]", children: "loading 3D renderer…" }),
10968
10973
  children: /* @__PURE__ */ We(
10969
- Yl,
10974
+ Jl,
10970
10975
  {
10971
10976
  nodes: n,
10972
10977
  edges: r,
@@ -10979,7 +10984,7 @@ function Zl({
10979
10984
  )
10980
10985
  }
10981
10986
  ) : /* @__PURE__ */ We(
10982
- Xl,
10987
+ Zl,
10983
10988
  {
10984
10989
  nodes: n,
10985
10990
  edges: r,
@@ -10991,7 +10996,7 @@ function Zl({
10991
10996
  }
10992
10997
  );
10993
10998
  }
10994
- function Lc({
10999
+ function Fc({
10995
11000
  nodes: n,
10996
11001
  edges: r,
10997
11002
  config: t = Tr,
@@ -11002,7 +11007,7 @@ function Lc({
11002
11007
  ref: s
11003
11008
  }) {
11004
11009
  const u = Be(null);
11005
- return fi(
11010
+ return gi(
11006
11011
  s,
11007
11012
  () => ({
11008
11013
  fitToView: (l, c) => u.current?.fitToView(l, c),
@@ -11010,8 +11015,8 @@ function Lc({
11010
11015
  setCameraRatio: (l) => u.current?.setCameraRatio(l)
11011
11016
  }),
11012
11017
  []
11013
- ), /* @__PURE__ */ We("div", { className: "f8-studio", style: Oa(o), children: /* @__PURE__ */ We(
11014
- Zl,
11018
+ ), /* @__PURE__ */ We("div", { className: "f8-studio", style: za(o), children: /* @__PURE__ */ We(
11019
+ ec,
11015
11020
  {
11016
11021
  nodes: n,
11017
11022
  edges: r,
@@ -11025,67 +11030,70 @@ function Lc({
11025
11030
  ) });
11026
11031
  }
11027
11032
  export {
11028
- Tc as $,
11029
- sc as A,
11030
- oc as B,
11031
- gc as C,
11033
+ Ma as $,
11034
+ cc as A,
11035
+ lc as B,
11036
+ mc as C,
11032
11037
  Tr as D,
11033
- Xa as E,
11034
- Lc as F,
11038
+ Za as E,
11039
+ Fc as F,
11035
11040
  Sr as G,
11036
11041
  Rr as H,
11037
- Ca as I,
11038
- fc as J,
11039
- vc as K,
11040
- qa as L,
11041
- yc as M,
11042
+ xa as I,
11043
+ vc as J,
11044
+ wc as K,
11045
+ Ya as L,
11046
+ _c as M,
11042
11047
  Mr as N,
11043
- mc as O,
11044
- Ya as P,
11045
- Ua as Q,
11046
- Zl as R,
11047
- Ac as S,
11048
- Aa as T,
11049
- rc as U,
11050
- ic as V,
11051
- ec as W,
11052
- tc as X,
11053
- ka as Y,
11054
- nc as Z,
11055
- _c as _,
11056
- ja as a,
11057
- wc as a0,
11058
- Ec as a1,
11059
- cc as a2,
11060
- bc as a3,
11061
- dc as a4,
11062
- hc as a5,
11063
- za as a6,
11064
- Na as a7,
11065
- Oa as a8,
11066
- Va as b,
11067
- Ha as c,
11068
- Ka as d,
11069
- Cc as e,
11070
- Dc as f,
11048
+ Ec as O,
11049
+ Ja as P,
11050
+ $a as Q,
11051
+ ec as R,
11052
+ Dc as S,
11053
+ ka as T,
11054
+ ac as U,
11055
+ sc as V,
11056
+ nc as W,
11057
+ ic as X,
11058
+ Ca as Y,
11059
+ oc as Z,
11060
+ Ba as _,
11061
+ Ka as a,
11062
+ yc as a0,
11063
+ Ac as a1,
11064
+ kc as a2,
11065
+ Sc as a3,
11066
+ Rc as a4,
11067
+ fc as a5,
11068
+ Tc as a6,
11069
+ pc as a7,
11070
+ gc as a8,
11071
+ Na as a9,
11072
+ Ua as aa,
11073
+ za as ab,
11074
+ Xa as b,
11075
+ qa as c,
11076
+ Qa as d,
11077
+ Gc as e,
11078
+ Ic as f,
11071
11079
  Br as g,
11072
- Hl as h,
11073
- kc as i,
11074
- Vl as j,
11075
- ql as k,
11076
- Rc as l,
11077
- $l as m,
11078
- vi as n,
11079
- Kl as o,
11080
- Bl as p,
11081
- Sc as q,
11082
- gi as r,
11083
- xc as s,
11084
- Ra as t,
11085
- Fa as u,
11086
- lc as v,
11087
- Wl as w,
11088
- pc as x,
11089
- uc as y,
11090
- ac as z
11080
+ ql as h,
11081
+ Lc as i,
11082
+ Xl as j,
11083
+ Yl as k,
11084
+ xc as l,
11085
+ Wl as m,
11086
+ mi as n,
11087
+ Ql as o,
11088
+ jl as p,
11089
+ Cc as q,
11090
+ pi as r,
11091
+ Pc as s,
11092
+ Aa as t,
11093
+ Oa as u,
11094
+ dc as v,
11095
+ Vl as w,
11096
+ bc as x,
11097
+ hc as y,
11098
+ uc as z
11091
11099
  };