qjzy-flow-vue 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -0
- package/dist/index.d.ts +5 -25
- package/dist/index.js +282 -285
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as df, ref as ff, onMounted as pf, onUnmounted as hf, createElementBlock as gf, openBlock as vf, normalizeStyle as mf, normalizeClass as yf } from "vue";
|
|
2
2
|
const wf = "5";
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(wf);
|
|
4
|
-
const Ml = 1, Tl = 2, Ll = 4, bf = 8, xf = 16, Cf = 1, $f = 2, Vl = 4, _f = 8, kf = 16, Dl = 1, Sf = 2, Ol = "[", xi = "[!", Vs = "]", cr = {}, at = Symbol(), Ef = "http://www.w3.org/1999/xhtml", Pf = "http://www.w3.org/2000/svg", Nf = "@attach", Mf = !1;
|
|
4
|
+
const Ml = 1, Tl = 2, Ll = 4, bf = 8, xf = 16, Cf = 1, $f = 2, Vl = 4, _f = 8, kf = 16, Dl = 1, Sf = 2, Ol = "[", xi = "[!", Vs = "]", cr = {}, at = /* @__PURE__ */ Symbol(), Ef = "http://www.w3.org/1999/xhtml", Pf = "http://www.w3.org/2000/svg", Nf = "@attach", Mf = !1;
|
|
5
5
|
var Ci = Array.isArray, Tf = Array.prototype.indexOf, Ds = Array.from, Jo = Object.keys, ei = Object.defineProperty, Sn = Object.getOwnPropertyDescriptor, zl = Object.getOwnPropertyDescriptors, Al = Object.prototype, Lf = Array.prototype, $i = Object.getPrototypeOf, wa = Object.isExtensible;
|
|
6
|
-
function
|
|
6
|
+
function Yr(e) {
|
|
7
7
|
return typeof e == "function";
|
|
8
8
|
}
|
|
9
9
|
const vt = () => {
|
|
@@ -40,10 +40,10 @@ function mo(e, t) {
|
|
|
40
40
|
if (n.push(r), n.length === t) break;
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
|
-
const ct = 2, Os = 4, _i = 8, Il = 1 << 24, Vn = 16, Dn = 32, Qn = 64, ki = 128, Qt = 512, ht = 1024, St = 2048, On = 4096, Ot = 8192, En = 16384, Si = 32768, Nn = 65536, ba = 1 << 17, Zl = 1 << 18,
|
|
43
|
+
const ct = 2, Os = 4, _i = 8, Il = 1 << 24, Vn = 16, Dn = 32, Qn = 64, ki = 128, Qt = 512, ht = 1024, St = 2048, On = 4096, Ot = 8192, En = 16384, Si = 32768, Nn = 65536, ba = 1 << 17, Zl = 1 << 18, mr = 1 << 19, jl = 1 << 20, dr = 32768, as = 1 << 21, zs = 1 << 22, Bn = 1 << 23, fn = /* @__PURE__ */ Symbol("$state"), As = /* @__PURE__ */ Symbol("legacy props"), Df = /* @__PURE__ */ Symbol(""), $r = new class extends Error {
|
|
44
44
|
name = "StaleReactionError";
|
|
45
45
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
46
|
-
}(), Of = 1, Ei = 3,
|
|
46
|
+
}(), Of = 1, Ei = 3, yr = 8;
|
|
47
47
|
function Hs(e) {
|
|
48
48
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
49
49
|
}
|
|
@@ -122,7 +122,7 @@ function ve(e = 1) {
|
|
|
122
122
|
}
|
|
123
123
|
function ti(e = !0) {
|
|
124
124
|
for (var t = 0, n = Pe; ; ) {
|
|
125
|
-
if (n.nodeType ===
|
|
125
|
+
if (n.nodeType === yr) {
|
|
126
126
|
var r = (
|
|
127
127
|
/** @type {Comment} */
|
|
128
128
|
n.data
|
|
@@ -140,7 +140,7 @@ function ti(e = !0) {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
function Kl(e) {
|
|
143
|
-
if (!e || e.nodeType !==
|
|
143
|
+
if (!e || e.nodeType !== yr)
|
|
144
144
|
throw yo(), cr;
|
|
145
145
|
return (
|
|
146
146
|
/** @type {Comment} */
|
|
@@ -156,9 +156,9 @@ function Bl(e, t) {
|
|
|
156
156
|
function Wl(e) {
|
|
157
157
|
return !Bl(e, this.v);
|
|
158
158
|
}
|
|
159
|
-
let
|
|
159
|
+
let Kr = !1, Xf = !1;
|
|
160
160
|
function Gf() {
|
|
161
|
-
|
|
161
|
+
Kr = !0;
|
|
162
162
|
}
|
|
163
163
|
const Uf = [];
|
|
164
164
|
function Yl(e, t = !1, n = !1) {
|
|
@@ -237,7 +237,7 @@ function Wo(e, t, n, r, o = null, i = !1) {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
let We = null;
|
|
240
|
-
function
|
|
240
|
+
function Mr(e) {
|
|
241
241
|
We = e;
|
|
242
242
|
}
|
|
243
243
|
function Fn(e) {
|
|
@@ -246,7 +246,7 @@ function Fn(e) {
|
|
|
246
246
|
Fl().get(e)
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Tr(e, t) {
|
|
250
250
|
return Fl().set(e, t), t;
|
|
251
251
|
}
|
|
252
252
|
function le(e, t = !1, n) {
|
|
@@ -257,7 +257,7 @@ function le(e, t = !1, n) {
|
|
|
257
257
|
e: null,
|
|
258
258
|
s: e,
|
|
259
259
|
x: null,
|
|
260
|
-
l:
|
|
260
|
+
l: Kr && !t ? { s: null, u: null, $: [] } : null
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
function ue(e) {
|
|
@@ -274,7 +274,7 @@ function ue(e) {
|
|
|
274
274
|
{};
|
|
275
275
|
}
|
|
276
276
|
function wo() {
|
|
277
|
-
return !
|
|
277
|
+
return !Kr || We !== null && We.l === null;
|
|
278
278
|
}
|
|
279
279
|
function Fl(e) {
|
|
280
280
|
return We === null && Hs(), We.c ??= new Map(Qf(We) || void 0);
|
|
@@ -295,7 +295,7 @@ function ql() {
|
|
|
295
295
|
or = [], ss(e);
|
|
296
296
|
}
|
|
297
297
|
function Jn(e) {
|
|
298
|
-
if (or.length === 0 && !
|
|
298
|
+
if (or.length === 0 && !Jr) {
|
|
299
299
|
var t = or;
|
|
300
300
|
queueMicrotask(() => {
|
|
301
301
|
t === or && ql();
|
|
@@ -316,9 +316,9 @@ function Xl(e) {
|
|
|
316
316
|
throw e;
|
|
317
317
|
t.b.error(e);
|
|
318
318
|
} else
|
|
319
|
-
|
|
319
|
+
Lr(e, t);
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function Lr(e, t) {
|
|
322
322
|
for (; t !== null; ) {
|
|
323
323
|
if ((t.f & ki) !== 0)
|
|
324
324
|
try {
|
|
@@ -332,7 +332,7 @@ function Tr(e, t) {
|
|
|
332
332
|
throw e;
|
|
333
333
|
}
|
|
334
334
|
const zo = /* @__PURE__ */ new Set();
|
|
335
|
-
let Fe = null, jt = null, Zt = [], Pi = null, ls = !1,
|
|
335
|
+
let Fe = null, jt = null, Zt = [], Pi = null, ls = !1, Jr = !1;
|
|
336
336
|
class Gt {
|
|
337
337
|
committed = !1;
|
|
338
338
|
/**
|
|
@@ -452,7 +452,7 @@ class Gt {
|
|
|
452
452
|
#u(t) {
|
|
453
453
|
if (t !== null)
|
|
454
454
|
for (const n of t)
|
|
455
|
-
(n.f & ct) === 0 || (n.f &
|
|
455
|
+
(n.f & ct) === 0 || (n.f & dr) === 0 || (n.f ^= dr, this.#u(
|
|
456
456
|
/** @type {Derived} */
|
|
457
457
|
n.deps
|
|
458
458
|
));
|
|
@@ -552,9 +552,9 @@ class Gt {
|
|
|
552
552
|
}
|
|
553
553
|
revive() {
|
|
554
554
|
for (const t of this.#a)
|
|
555
|
-
gt(t, St),
|
|
555
|
+
gt(t, St), fr(t);
|
|
556
556
|
for (const t of this.#o)
|
|
557
|
-
gt(t, On),
|
|
557
|
+
gt(t, On), fr(t);
|
|
558
558
|
this.#a = [], this.#o = [], this.flush();
|
|
559
559
|
}
|
|
560
560
|
/** @param {() => void} fn */
|
|
@@ -571,7 +571,7 @@ class Gt {
|
|
|
571
571
|
static ensure() {
|
|
572
572
|
if (Fe === null) {
|
|
573
573
|
const t = Fe = new Gt();
|
|
574
|
-
zo.add(Fe),
|
|
574
|
+
zo.add(Fe), Jr || Gt.enqueue(() => {
|
|
575
575
|
Fe === t && t.flush();
|
|
576
576
|
});
|
|
577
577
|
}
|
|
@@ -585,8 +585,8 @@ class Gt {
|
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
function g(e) {
|
|
588
|
-
var t =
|
|
589
|
-
|
|
588
|
+
var t = Jr;
|
|
589
|
+
Jr = !0;
|
|
590
590
|
try {
|
|
591
591
|
for (var n; ; ) {
|
|
592
592
|
if (Jf(), Zt.length === 0 && (Fe?.flush(), Zt.length === 0))
|
|
@@ -595,7 +595,7 @@ function g(e) {
|
|
|
595
595
|
Gl();
|
|
596
596
|
}
|
|
597
597
|
} finally {
|
|
598
|
-
|
|
598
|
+
Jr = t;
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
function Gl() {
|
|
@@ -619,7 +619,7 @@ function ep() {
|
|
|
619
619
|
try {
|
|
620
620
|
Zf();
|
|
621
621
|
} catch (e) {
|
|
622
|
-
|
|
622
|
+
Lr(e, Pi);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
let bn = null;
|
|
@@ -657,7 +657,7 @@ function Ul(e, t, n, r) {
|
|
|
657
657
|
t,
|
|
658
658
|
n,
|
|
659
659
|
r
|
|
660
|
-
) : (i & (zs | Vn)) !== 0 && (i & St) === 0 && Ql(o, t, r) && (gt(o, St),
|
|
660
|
+
) : (i & (zs | Vn)) !== 0 && (i & St) === 0 && Ql(o, t, r) && (gt(o, St), fr(
|
|
661
661
|
/** @type {Effect} */
|
|
662
662
|
o
|
|
663
663
|
));
|
|
@@ -684,7 +684,7 @@ function Ql(e, t, n) {
|
|
|
684
684
|
}
|
|
685
685
|
return n.set(e, !1), !1;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function fr(e) {
|
|
688
688
|
for (var t = Pi = e; t.parent !== null; ) {
|
|
689
689
|
t = t.parent;
|
|
690
690
|
var n = t.f;
|
|
@@ -700,14 +700,14 @@ function dr(e) {
|
|
|
700
700
|
function Jl(e) {
|
|
701
701
|
let t = 0, n = qn(0), r;
|
|
702
702
|
return () => {
|
|
703
|
-
no() && (c(n), xo(() => (t === 0 && (r = lt(() => e(() =>
|
|
703
|
+
no() && (c(n), xo(() => (t === 0 && (r = lt(() => e(() => eo(n)))), t += 1, () => {
|
|
704
704
|
Jn(() => {
|
|
705
|
-
t -= 1, t === 0 && (r?.(), r = void 0,
|
|
705
|
+
t -= 1, t === 0 && (r?.(), r = void 0, eo(n));
|
|
706
706
|
});
|
|
707
707
|
})));
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
var tp = Nn |
|
|
710
|
+
var tp = Nn | mr | ki;
|
|
711
711
|
function np(e, t, n) {
|
|
712
712
|
new rp(e, t, n);
|
|
713
713
|
}
|
|
@@ -756,11 +756,11 @@ class rp {
|
|
|
756
756
|
*/
|
|
757
757
|
constructor(t, n, r) {
|
|
758
758
|
this.#t = t, this.#r = n, this.#l = r, this.parent = /** @type {Effect} */
|
|
759
|
-
Ne.b, this.#e = !!this.#r.pending, this.#a =
|
|
759
|
+
Ne.b, this.#e = !!this.#r.pending, this.#a = Br(() => {
|
|
760
760
|
if (Ne.b = this, be) {
|
|
761
761
|
const i = this.#n;
|
|
762
762
|
Mn(), /** @type {Comment} */
|
|
763
|
-
i.nodeType ===
|
|
763
|
+
i.nodeType === yr && /** @type {Comment} */
|
|
764
764
|
i.data === xi ? this.#x() : this.#b();
|
|
765
765
|
} else {
|
|
766
766
|
var o = this.#m();
|
|
@@ -788,7 +788,7 @@ class rp {
|
|
|
788
788
|
const t = this.#r.pending;
|
|
789
789
|
t && (this.#i = Vt(() => t(this.#t)), Gt.enqueue(() => {
|
|
790
790
|
var n = this.#m();
|
|
791
|
-
this.#o = this.#g(() => (Gt.ensure(), Vt(() => this.#l(n)))), this.#f > 0 ? this.#v() : (
|
|
791
|
+
this.#o = this.#g(() => (Gt.ensure(), Vt(() => this.#l(n)))), this.#f > 0 ? this.#v() : (kr(
|
|
792
792
|
/** @type {Effect} */
|
|
793
793
|
this.#i,
|
|
794
794
|
() => {
|
|
@@ -816,13 +816,13 @@ class rp {
|
|
|
816
816
|
*/
|
|
817
817
|
#g(t) {
|
|
818
818
|
var n = Ne, r = Ve, o = We;
|
|
819
|
-
Bt(this.#a), $t(this.#a),
|
|
819
|
+
Bt(this.#a), $t(this.#a), Mr(this.#a.ctx);
|
|
820
820
|
try {
|
|
821
821
|
return t();
|
|
822
822
|
} catch (i) {
|
|
823
823
|
return Xl(i), null;
|
|
824
824
|
} finally {
|
|
825
|
-
Bt(n), $t(r),
|
|
825
|
+
Bt(n), $t(r), Mr(o);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
#v() {
|
|
@@ -845,7 +845,7 @@ class rp {
|
|
|
845
845
|
this.parent && this.parent.#y(t);
|
|
846
846
|
return;
|
|
847
847
|
}
|
|
848
|
-
this.#f += t, this.#f === 0 && (this.#e = !1, this.#i &&
|
|
848
|
+
this.#f += t, this.#f === 0 && (this.#e = !1, this.#i && kr(this.#i, () => {
|
|
849
849
|
this.#i = null;
|
|
850
850
|
}), this.#u && (this.#t.before(this.#u), this.#u = null));
|
|
851
851
|
}
|
|
@@ -856,7 +856,7 @@ class rp {
|
|
|
856
856
|
* @param {1 | -1} d
|
|
857
857
|
*/
|
|
858
858
|
update_pending_count(t) {
|
|
859
|
-
this.#y(t), this.#d += t, this.#p &&
|
|
859
|
+
this.#y(t), this.#d += t, this.#p && Dr(this.#p, this.#d);
|
|
860
860
|
}
|
|
861
861
|
get_effect_pending() {
|
|
862
862
|
return this.#w(), c(
|
|
@@ -880,7 +880,7 @@ class rp {
|
|
|
880
880
|
qf();
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
o = !0, i && Yf(), Gt.ensure(), this.#d = 0, this.#s !== null &&
|
|
883
|
+
o = !0, i && Yf(), Gt.ensure(), this.#d = 0, this.#s !== null && kr(this.#s, () => {
|
|
884
884
|
this.#s = null;
|
|
885
885
|
}), this.#e = this.has_pending_snippet(), this.#o = this.#g(() => (this.#h = !1, Vt(() => this.#l(this.#t)))), this.#f > 0 ? this.#v() : this.#e = !1;
|
|
886
886
|
};
|
|
@@ -888,7 +888,7 @@ class rp {
|
|
|
888
888
|
try {
|
|
889
889
|
$t(null), i = !0, n?.(t, s), i = !1;
|
|
890
890
|
} catch (l) {
|
|
891
|
-
|
|
891
|
+
Lr(l, this.#a && this.#a.parent);
|
|
892
892
|
} finally {
|
|
893
893
|
$t(a);
|
|
894
894
|
}
|
|
@@ -904,7 +904,7 @@ class rp {
|
|
|
904
904
|
);
|
|
905
905
|
});
|
|
906
906
|
} catch (l) {
|
|
907
|
-
return
|
|
907
|
+
return Lr(
|
|
908
908
|
l,
|
|
909
909
|
/** @type {Effect} */
|
|
910
910
|
this.#a.parent
|
|
@@ -916,7 +916,7 @@ class rp {
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Vr(e, t) {
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
922
|
function op(e, t, n) {
|
|
@@ -959,11 +959,11 @@ function mt(e, t, n, r, o, i = null) {
|
|
|
959
959
|
return Ci(x) ? x : x == null ? [] : Ds(x);
|
|
960
960
|
}), w, m = !0;
|
|
961
961
|
function b() {
|
|
962
|
-
ip(_, w, s, t, r), h !== null && (w.length === 0 ? (h.fragment ? (s.before(h.fragment), h.fragment = null) : Ws(h.effect), $.first = h.effect) :
|
|
962
|
+
ip(_, w, s, t, r), h !== null && (w.length === 0 ? (h.fragment ? (s.before(h.fragment), h.fragment = null) : Ws(h.effect), $.first = h.effect) : kr(h.effect, () => {
|
|
963
963
|
h = null;
|
|
964
964
|
}));
|
|
965
965
|
}
|
|
966
|
-
var $ =
|
|
966
|
+
var $ = Br(() => {
|
|
967
967
|
w = /** @type {V[]} */
|
|
968
968
|
c(y);
|
|
969
969
|
var x = w.length;
|
|
@@ -976,11 +976,11 @@ function mt(e, t, n, r, o, i = null) {
|
|
|
976
976
|
/** @type {Batch} */
|
|
977
977
|
Fe
|
|
978
978
|
), A = null, H = uu(), z = 0; z < x; z += 1) {
|
|
979
|
-
be && Pe.nodeType ===
|
|
979
|
+
be && Pe.nodeType === yr && /** @type {Comment} */
|
|
980
980
|
Pe.data === Vs && (s = /** @type {Comment} */
|
|
981
981
|
Pe, k = !0, Dt(!1));
|
|
982
982
|
var S = w[z], T = r(S, z), C = m ? null : a.get(T);
|
|
983
|
-
C ? (d &&
|
|
983
|
+
C ? (d && Dr(C.v, S), p ? Dr(
|
|
984
984
|
/** @type {Value<number>} */
|
|
985
985
|
C.i,
|
|
986
986
|
z
|
|
@@ -1094,20 +1094,17 @@ function sp(e, t, n, r, o, i, s, a) {
|
|
|
1094
1094
|
prev: t,
|
|
1095
1095
|
next: null
|
|
1096
1096
|
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
h.append(e = Et());
|
|
1101
|
-
}
|
|
1102
|
-
return f.e = Vt(() => i(
|
|
1103
|
-
/** @type {Node} */
|
|
1104
|
-
e,
|
|
1105
|
-
d,
|
|
1106
|
-
p,
|
|
1107
|
-
a
|
|
1108
|
-
)), t !== null && (t.next = f), f;
|
|
1109
|
-
} finally {
|
|
1097
|
+
if (e === null) {
|
|
1098
|
+
var h = document.createDocumentFragment();
|
|
1099
|
+
h.append(e = Et());
|
|
1110
1100
|
}
|
|
1101
|
+
return f.e = Vt(() => i(
|
|
1102
|
+
/** @type {Node} */
|
|
1103
|
+
e,
|
|
1104
|
+
d,
|
|
1105
|
+
p,
|
|
1106
|
+
a
|
|
1107
|
+
)), t !== null && (t.next = f), f;
|
|
1111
1108
|
}
|
|
1112
1109
|
function Wi(e, t, n) {
|
|
1113
1110
|
for (var r = e.next ? (
|
|
@@ -1146,11 +1143,11 @@ function eu(e, t, n, r) {
|
|
|
1146
1143
|
try {
|
|
1147
1144
|
r([...t.map(o), ...u]);
|
|
1148
1145
|
} catch (d) {
|
|
1149
|
-
(s.f & En) === 0 &&
|
|
1146
|
+
(s.f & En) === 0 && Lr(d, s);
|
|
1150
1147
|
}
|
|
1151
1148
|
i?.deactivate(), ni();
|
|
1152
1149
|
}).catch((u) => {
|
|
1153
|
-
|
|
1150
|
+
Lr(u, s);
|
|
1154
1151
|
});
|
|
1155
1152
|
}
|
|
1156
1153
|
e.length > 0 ? Promise.all(e).then(() => {
|
|
@@ -1165,11 +1162,11 @@ function eu(e, t, n, r) {
|
|
|
1165
1162
|
function ap() {
|
|
1166
1163
|
var e = Ne, t = Ve, n = We, r = Fe;
|
|
1167
1164
|
return function(o = !0) {
|
|
1168
|
-
Bt(e), $t(t),
|
|
1165
|
+
Bt(e), $t(t), Mr(n), o && r?.activate();
|
|
1169
1166
|
};
|
|
1170
1167
|
}
|
|
1171
1168
|
function ni() {
|
|
1172
|
-
Bt(null), $t(null),
|
|
1169
|
+
Bt(null), $t(null), Mr(null);
|
|
1173
1170
|
}
|
|
1174
1171
|
// @__NO_SIDE_EFFECTS__
|
|
1175
1172
|
function bo(e) {
|
|
@@ -1177,7 +1174,7 @@ function bo(e) {
|
|
|
1177
1174
|
/** @type {Derived} */
|
|
1178
1175
|
Ve
|
|
1179
1176
|
) : null;
|
|
1180
|
-
return Ne !== null && (Ne.f |=
|
|
1177
|
+
return Ne !== null && (Ne.f |= mr), {
|
|
1181
1178
|
ctx: We,
|
|
1182
1179
|
deps: null,
|
|
1183
1180
|
effects: null,
|
|
@@ -1229,16 +1226,16 @@ function lp(e, t) {
|
|
|
1229
1226
|
);
|
|
1230
1227
|
if (s) {
|
|
1231
1228
|
var d = !r.is_pending();
|
|
1232
|
-
r.update_pending_count(1), u.increment(d), a.get(u)?.reject(
|
|
1229
|
+
r.update_pending_count(1), u.increment(d), a.get(u)?.reject($r), a.delete(u), a.set(u, l);
|
|
1233
1230
|
}
|
|
1234
1231
|
const p = (f, h = void 0) => {
|
|
1235
1232
|
if (u.activate(), h)
|
|
1236
|
-
h !==
|
|
1233
|
+
h !== $r && (i.f |= Bn, Dr(i, h));
|
|
1237
1234
|
else {
|
|
1238
|
-
(i.f & Bn) !== 0 && (i.f ^= Bn),
|
|
1235
|
+
(i.f & Bn) !== 0 && (i.f ^= Bn), Dr(i, f);
|
|
1239
1236
|
for (const [y, w] of a) {
|
|
1240
1237
|
if (a.delete(y), y === u) break;
|
|
1241
|
-
w.reject(
|
|
1238
|
+
w.reject($r);
|
|
1242
1239
|
}
|
|
1243
1240
|
}
|
|
1244
1241
|
s && (r.update_pending_count(-1), u.decrement(d));
|
|
@@ -1246,7 +1243,7 @@ function lp(e, t) {
|
|
|
1246
1243
|
l.promise.then(p, (f) => p(null, f || "unknown"));
|
|
1247
1244
|
}), Ni(() => {
|
|
1248
1245
|
for (const l of a.values())
|
|
1249
|
-
l.reject(
|
|
1246
|
+
l.reject($r);
|
|
1250
1247
|
}), new Promise((l) => {
|
|
1251
1248
|
function u(d) {
|
|
1252
1249
|
function p() {
|
|
@@ -1293,7 +1290,7 @@ function Zs(e) {
|
|
|
1293
1290
|
var t, n = Ne;
|
|
1294
1291
|
Bt(up(e));
|
|
1295
1292
|
try {
|
|
1296
|
-
e.f &= ~
|
|
1293
|
+
e.f &= ~dr, tu(e), t = ku(e);
|
|
1297
1294
|
} finally {
|
|
1298
1295
|
Bt(n);
|
|
1299
1296
|
}
|
|
@@ -1301,7 +1298,7 @@ function Zs(e) {
|
|
|
1301
1298
|
}
|
|
1302
1299
|
function nu(e) {
|
|
1303
1300
|
var t = Zs(e);
|
|
1304
|
-
if (e.equals(t) || (Fe?.is_fork || (e.v = t), e.wv = $u()), !
|
|
1301
|
+
if (e.equals(t) || (Fe?.is_fork || (e.v = t), e.wv = $u()), !wr)
|
|
1305
1302
|
if (jt !== null)
|
|
1306
1303
|
(no() || Fe?.is_fork) && jt.set(e, t);
|
|
1307
1304
|
else {
|
|
@@ -1332,19 +1329,19 @@ function Ee(e, t) {
|
|
|
1332
1329
|
// @__NO_SIDE_EFFECTS__
|
|
1333
1330
|
function ou(e, t = !1, n = !0) {
|
|
1334
1331
|
const r = qn(e);
|
|
1335
|
-
return t || (r.equals = Wl),
|
|
1332
|
+
return t || (r.equals = Wl), Kr && n && We !== null && We.l !== null && (We.l.s ??= []).push(r), r;
|
|
1336
1333
|
}
|
|
1337
1334
|
function Q(e, t, n = !1) {
|
|
1338
1335
|
Ve !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1339
1336
|
// to ensure we error if state is set inside an inspect effect
|
|
1340
1337
|
(!dn || (Ve.f & ba) !== 0) && wo() && (Ve.f & (ct | Vn | zs | ba)) !== 0 && !Pn?.includes(e) && Wf();
|
|
1341
1338
|
let r = n ? Rt(t) : t;
|
|
1342
|
-
return
|
|
1339
|
+
return Dr(e, r);
|
|
1343
1340
|
}
|
|
1344
|
-
function
|
|
1341
|
+
function Dr(e, t) {
|
|
1345
1342
|
if (!e.equals(t)) {
|
|
1346
1343
|
var n = e.v;
|
|
1347
|
-
|
|
1344
|
+
wr ? Wn.set(e, t) : Wn.set(e, n), e.v = t;
|
|
1348
1345
|
var r = Gt.ensure();
|
|
1349
1346
|
r.capture(e, n), (e.f & ct) !== 0 && ((e.f & St) !== 0 && Zs(
|
|
1350
1347
|
/** @type {Derived} */
|
|
@@ -1370,7 +1367,7 @@ function Ca(e, t = 1) {
|
|
|
1370
1367
|
var n = c(e), r = t === 1 ? n++ : n--;
|
|
1371
1368
|
return Q(e, n), r;
|
|
1372
1369
|
}
|
|
1373
|
-
function
|
|
1370
|
+
function eo(e) {
|
|
1374
1371
|
Q(e, e.v + 1);
|
|
1375
1372
|
}
|
|
1376
1373
|
function iu(e, t) {
|
|
@@ -1385,11 +1382,11 @@ function iu(e, t) {
|
|
|
1385
1382
|
/** @type {Derived} */
|
|
1386
1383
|
s
|
|
1387
1384
|
);
|
|
1388
|
-
jt?.delete(u), (a &
|
|
1385
|
+
jt?.delete(u), (a & dr) === 0 && (a & Qt && (s.f |= dr), iu(u, On));
|
|
1389
1386
|
} else l && ((a & Vn) !== 0 && bn !== null && bn.add(
|
|
1390
1387
|
/** @type {Effect} */
|
|
1391
1388
|
s
|
|
1392
|
-
),
|
|
1389
|
+
), fr(
|
|
1393
1390
|
/** @type {Effect} */
|
|
1394
1391
|
s
|
|
1395
1392
|
));
|
|
@@ -1430,10 +1427,10 @@ function Rt(e) {
|
|
|
1430
1427
|
if (u === void 0) {
|
|
1431
1428
|
if (l in a) {
|
|
1432
1429
|
const d = s(() => /* @__PURE__ */ Ee(at));
|
|
1433
|
-
n.set(l, d),
|
|
1430
|
+
n.set(l, d), eo(o);
|
|
1434
1431
|
}
|
|
1435
1432
|
} else
|
|
1436
|
-
Q(u, at),
|
|
1433
|
+
Q(u, at), eo(o);
|
|
1437
1434
|
return !0;
|
|
1438
1435
|
},
|
|
1439
1436
|
get(a, l, u) {
|
|
@@ -1505,7 +1502,7 @@ function Rt(e) {
|
|
|
1505
1502
|
), $ = Number(l);
|
|
1506
1503
|
Number.isInteger($) && $ >= b.v && Q(b, $ + 1);
|
|
1507
1504
|
}
|
|
1508
|
-
|
|
1505
|
+
eo(o);
|
|
1509
1506
|
}
|
|
1510
1507
|
return !0;
|
|
1511
1508
|
},
|
|
@@ -1647,7 +1644,7 @@ function Ks(e) {
|
|
|
1647
1644
|
}
|
|
1648
1645
|
}
|
|
1649
1646
|
function cu(e) {
|
|
1650
|
-
Ne === null && (Ve === null && If(), Hf()),
|
|
1647
|
+
Ne === null && (Ve === null && If(), Hf()), wr && Af();
|
|
1651
1648
|
}
|
|
1652
1649
|
function gp(e, t) {
|
|
1653
1650
|
var n = t.last;
|
|
@@ -1680,10 +1677,10 @@ function Wt(e, t, n) {
|
|
|
1680
1677
|
} catch (a) {
|
|
1681
1678
|
throw it(o), a;
|
|
1682
1679
|
}
|
|
1683
|
-
else t !== null &&
|
|
1680
|
+
else t !== null && fr(o);
|
|
1684
1681
|
var i = o;
|
|
1685
1682
|
if (n && i.deps === null && i.teardown === null && i.nodes_start === null && i.first === i.last && // either `null`, or a singular child
|
|
1686
|
-
(i.f &
|
|
1683
|
+
(i.f & mr) === 0 && (i = i.first, (e & Vn) !== 0 && (e & Nn) !== 0 && i !== null && (i.f |= Nn)), i !== null && (i.parent = r, r !== null && gp(i, r), Ve !== null && (Ve.f & ct) !== 0 && (e & Qn) === 0)) {
|
|
1687
1684
|
var s = (
|
|
1688
1685
|
/** @type {Derived} */
|
|
1689
1686
|
Ve
|
|
@@ -1722,25 +1719,25 @@ function fu(e) {
|
|
|
1722
1719
|
}
|
|
1723
1720
|
function Rs(e) {
|
|
1724
1721
|
Gt.ensure();
|
|
1725
|
-
const t = Wt(Qn |
|
|
1722
|
+
const t = Wt(Qn | mr, e, !0);
|
|
1726
1723
|
return () => {
|
|
1727
1724
|
it(t);
|
|
1728
1725
|
};
|
|
1729
1726
|
}
|
|
1730
1727
|
function vp(e) {
|
|
1731
1728
|
Gt.ensure();
|
|
1732
|
-
const t = Wt(Qn |
|
|
1729
|
+
const t = Wt(Qn | mr, e, !0);
|
|
1733
1730
|
return (n = {}) => new Promise((r) => {
|
|
1734
|
-
n.outro ?
|
|
1731
|
+
n.outro ? kr(t, () => {
|
|
1735
1732
|
it(t), r(void 0);
|
|
1736
1733
|
}) : (it(t), r(void 0));
|
|
1737
1734
|
});
|
|
1738
1735
|
}
|
|
1739
|
-
function
|
|
1736
|
+
function Rr(e) {
|
|
1740
1737
|
return Wt(Os, e, !1);
|
|
1741
1738
|
}
|
|
1742
1739
|
function mp(e) {
|
|
1743
|
-
return Wt(zs |
|
|
1740
|
+
return Wt(zs | mr, e, !0);
|
|
1744
1741
|
}
|
|
1745
1742
|
function xo(e, t = 0) {
|
|
1746
1743
|
return Wt(_i | t, e, !0);
|
|
@@ -1750,7 +1747,7 @@ function $e(e, t = [], n = [], r = []) {
|
|
|
1750
1747
|
Wt(_i, () => e(...o.map(c)), !0);
|
|
1751
1748
|
});
|
|
1752
1749
|
}
|
|
1753
|
-
function
|
|
1750
|
+
function Br(e, t = 0) {
|
|
1754
1751
|
var n = Wt(Vn | t, e, !0);
|
|
1755
1752
|
return n;
|
|
1756
1753
|
}
|
|
@@ -1759,12 +1756,12 @@ function pu(e, t = 0) {
|
|
|
1759
1756
|
return n;
|
|
1760
1757
|
}
|
|
1761
1758
|
function Vt(e) {
|
|
1762
|
-
return Wt(Dn |
|
|
1759
|
+
return Wt(Dn | mr, e, !0);
|
|
1763
1760
|
}
|
|
1764
1761
|
function hu(e) {
|
|
1765
1762
|
var t = e.teardown;
|
|
1766
1763
|
if (t !== null) {
|
|
1767
|
-
const n =
|
|
1764
|
+
const n = wr, r = Ve;
|
|
1768
1765
|
ka(!0), $t(null);
|
|
1769
1766
|
try {
|
|
1770
1767
|
t.call(null);
|
|
@@ -1778,7 +1775,7 @@ function gu(e, t = !1) {
|
|
|
1778
1775
|
for (e.first = e.last = null; n !== null; ) {
|
|
1779
1776
|
const o = n.ac;
|
|
1780
1777
|
o !== null && Ks(() => {
|
|
1781
|
-
o.abort(
|
|
1778
|
+
o.abort($r);
|
|
1782
1779
|
});
|
|
1783
1780
|
var r = n.next;
|
|
1784
1781
|
(n.f & Qn) !== 0 ? n.parent = null : it(n, t), n = r;
|
|
@@ -1818,7 +1815,7 @@ function mu(e) {
|
|
|
1818
1815
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1819
1816
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1820
1817
|
}
|
|
1821
|
-
function
|
|
1818
|
+
function kr(e, t, n = !0) {
|
|
1822
1819
|
var r = [];
|
|
1823
1820
|
Bs(e, r, !0), yu(r, () => {
|
|
1824
1821
|
n && it(e), t && t();
|
|
@@ -1852,7 +1849,7 @@ function Ws(e) {
|
|
|
1852
1849
|
}
|
|
1853
1850
|
function wu(e, t) {
|
|
1854
1851
|
if ((e.f & Ot) !== 0) {
|
|
1855
|
-
e.f ^= Ot, (e.f & ht) === 0 && (gt(e, St),
|
|
1852
|
+
e.f ^= Ot, (e.f & ht) === 0 && (gt(e, St), fr(e));
|
|
1856
1853
|
for (var n = e.first; n !== null; ) {
|
|
1857
1854
|
var r = n.next, o = (n.f & Nn) !== 0 || (n.f & Dn) !== 0;
|
|
1858
1855
|
wu(n, o ? t : !1), n = r;
|
|
@@ -1875,9 +1872,9 @@ let Yn = !1;
|
|
|
1875
1872
|
function ri(e) {
|
|
1876
1873
|
Yn = e;
|
|
1877
1874
|
}
|
|
1878
|
-
let
|
|
1875
|
+
let wr = !1;
|
|
1879
1876
|
function ka(e) {
|
|
1880
|
-
|
|
1877
|
+
wr = e;
|
|
1881
1878
|
}
|
|
1882
1879
|
let Ve = null, dn = !1;
|
|
1883
1880
|
function $t(e) {
|
|
@@ -1906,7 +1903,7 @@ function Co(e) {
|
|
|
1906
1903
|
var t = e.f;
|
|
1907
1904
|
if ((t & St) !== 0)
|
|
1908
1905
|
return !0;
|
|
1909
|
-
if (t & ct && (e.f &=
|
|
1906
|
+
if (t & ct && (e.f &= ~dr), (t & On) !== 0) {
|
|
1910
1907
|
var n = e.deps;
|
|
1911
1908
|
if (n !== null)
|
|
1912
1909
|
for (var r = n.length, o = 0; o < r; o++) {
|
|
@@ -1936,7 +1933,7 @@ function _u(e, t, n = !0) {
|
|
|
1936
1933
|
i,
|
|
1937
1934
|
t,
|
|
1938
1935
|
!1
|
|
1939
|
-
) : t === i && (n ? gt(i, St) : (i.f & ht) !== 0 && gt(i, On),
|
|
1936
|
+
) : t === i && (n ? gt(i, St) : (i.f & ht) !== 0 && gt(i, On), fr(
|
|
1940
1937
|
/** @type {Effect} */
|
|
1941
1938
|
i
|
|
1942
1939
|
));
|
|
@@ -1945,8 +1942,8 @@ function _u(e, t, n = !0) {
|
|
|
1945
1942
|
function ku(e) {
|
|
1946
1943
|
var t = wt, n = Lt, r = It, o = Ve, i = Pn, s = We, a = dn, l = ar, u = e.f;
|
|
1947
1944
|
wt = /** @type {null | Value[]} */
|
|
1948
|
-
null, Lt = 0, It = null, Ve = (u & (Dn | Qn)) === 0 ? e : null, Pn = null,
|
|
1949
|
-
e.ac.abort(
|
|
1945
|
+
null, Lt = 0, It = null, Ve = (u & (Dn | Qn)) === 0 ? e : null, Pn = null, Mr(e.ctx), dn = !1, ar = ++ro, e.ac !== null && (Ks(() => {
|
|
1946
|
+
e.ac.abort($r);
|
|
1950
1947
|
}), e.ac = null);
|
|
1951
1948
|
try {
|
|
1952
1949
|
e.f |= as;
|
|
@@ -1978,7 +1975,7 @@ function ku(e) {
|
|
|
1978
1975
|
} catch (y) {
|
|
1979
1976
|
return Xl(y);
|
|
1980
1977
|
} finally {
|
|
1981
|
-
e.f ^= as, wt = t, Lt = n, It = r, Ve = o, Pn = i,
|
|
1978
|
+
e.f ^= as, wt = t, Lt = n, It = r, Ve = o, Pn = i, Mr(s), dn = a, ar = l;
|
|
1982
1979
|
}
|
|
1983
1980
|
}
|
|
1984
1981
|
function bp(e, t) {
|
|
@@ -1993,7 +1990,7 @@ function bp(e, t) {
|
|
|
1993
1990
|
n === null && (t.f & ct) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1994
1991
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1995
1992
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1996
|
-
(wt === null || !wt.includes(t)) && (gt(t, On), (t.f & Qt) !== 0 && (t.f ^= Qt, t.f &=
|
|
1993
|
+
(wt === null || !wt.includes(t)) && (gt(t, On), (t.f & Qt) !== 0 && (t.f ^= Qt, t.f &= ~dr), tu(
|
|
1997
1994
|
/** @type {Derived} **/
|
|
1998
1995
|
t
|
|
1999
1996
|
), oi(
|
|
@@ -2040,7 +2037,7 @@ function c(e) {
|
|
|
2040
2037
|
}
|
|
2041
2038
|
}
|
|
2042
2039
|
}
|
|
2043
|
-
if (
|
|
2040
|
+
if (wr) {
|
|
2044
2041
|
if (Wn.has(e))
|
|
2045
2042
|
return Wn.get(e);
|
|
2046
2043
|
if (n) {
|
|
@@ -2136,7 +2133,7 @@ function ds(e, t = /* @__PURE__ */ new Set()) {
|
|
|
2136
2133
|
const Pu = /* @__PURE__ */ new Set(), fs = /* @__PURE__ */ new Set();
|
|
2137
2134
|
function Fs(e, t, n, r = {}) {
|
|
2138
2135
|
function o(i) {
|
|
2139
|
-
if (r.capture ||
|
|
2136
|
+
if (r.capture || Xr.call(t, i), !i.cancelBubble)
|
|
2140
2137
|
return Ks(() => n?.call(this, i));
|
|
2141
2138
|
}
|
|
2142
2139
|
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Jn(() => {
|
|
@@ -2165,7 +2162,7 @@ function er(e) {
|
|
|
2165
2162
|
n(e);
|
|
2166
2163
|
}
|
|
2167
2164
|
let Ea = null;
|
|
2168
|
-
function
|
|
2165
|
+
function Xr(e) {
|
|
2169
2166
|
var t = this, n = (
|
|
2170
2167
|
/** @type {Node} */
|
|
2171
2168
|
t.ownerDocument
|
|
@@ -2414,7 +2411,7 @@ function Vp(e, t) {
|
|
|
2414
2411
|
for (var i = (
|
|
2415
2412
|
/** @type {TemplateNode} */
|
|
2416
2413
|
/* @__PURE__ */ rt(n)
|
|
2417
|
-
); i && (i.nodeType !==
|
|
2414
|
+
); i && (i.nodeType !== yr || /** @type {Comment} */
|
|
2418
2415
|
i.data !== Ol); )
|
|
2419
2416
|
i = /** @type {TemplateNode} */
|
|
2420
2417
|
/* @__PURE__ */ tn(i);
|
|
@@ -2436,7 +2433,7 @@ function Vp(e, t) {
|
|
|
2436
2433
|
Dt(r), et(o);
|
|
2437
2434
|
}
|
|
2438
2435
|
}
|
|
2439
|
-
const
|
|
2436
|
+
const xr = /* @__PURE__ */ new Map();
|
|
2440
2437
|
function Mu(e, { target: t, anchor: n, props: r = {}, events: o, context: i, intro: s = !0 }) {
|
|
2441
2438
|
cs();
|
|
2442
2439
|
var a = /* @__PURE__ */ new Set(), l = (p) => {
|
|
@@ -2445,9 +2442,9 @@ function Mu(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
2445
2442
|
if (!a.has(h)) {
|
|
2446
2443
|
a.add(h);
|
|
2447
2444
|
var y = Mp(h);
|
|
2448
|
-
t.addEventListener(h,
|
|
2449
|
-
var w =
|
|
2450
|
-
w === void 0 ? (document.addEventListener(h,
|
|
2445
|
+
t.addEventListener(h, Xr, { passive: y });
|
|
2446
|
+
var w = xr.get(h);
|
|
2447
|
+
w === void 0 ? (document.addEventListener(h, Xr, { passive: y }), xr.set(h, 1)) : xr.set(h, w + 1);
|
|
2451
2448
|
}
|
|
2452
2449
|
}
|
|
2453
2450
|
};
|
|
@@ -2474,19 +2471,19 @@ function Mu(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
2474
2471
|
/** @type {TemplateNode} */
|
|
2475
2472
|
f,
|
|
2476
2473
|
null
|
|
2477
|
-
), u = e(f, r) || {}, be && (Ne.nodes_end = Pe, Pe === null || Pe.nodeType !==
|
|
2474
|
+
), u = e(f, r) || {}, be && (Ne.nodes_end = Pe, Pe === null || Pe.nodeType !== yr || /** @type {Comment} */
|
|
2478
2475
|
Pe.data !== Vs))
|
|
2479
2476
|
throw yo(), cr;
|
|
2480
2477
|
i && ue();
|
|
2481
2478
|
}
|
|
2482
2479
|
), () => {
|
|
2483
2480
|
for (var f of a) {
|
|
2484
|
-
t.removeEventListener(f,
|
|
2481
|
+
t.removeEventListener(f, Xr);
|
|
2485
2482
|
var h = (
|
|
2486
2483
|
/** @type {number} */
|
|
2487
|
-
|
|
2484
|
+
xr.get(f)
|
|
2488
2485
|
);
|
|
2489
|
-
--h === 0 ? (document.removeEventListener(f,
|
|
2486
|
+
--h === 0 ? (document.removeEventListener(f, Xr), xr.delete(f)) : xr.set(f, h);
|
|
2490
2487
|
}
|
|
2491
2488
|
fs.delete(l), p !== n && p.parentNode?.removeChild(p);
|
|
2492
2489
|
};
|
|
@@ -2573,7 +2570,7 @@ class Mi {
|
|
|
2573
2570
|
it(s);
|
|
2574
2571
|
this.#r.delete(i), this.#t.delete(i);
|
|
2575
2572
|
};
|
|
2576
|
-
this.#l || !r ? (this.#r.add(i),
|
|
2573
|
+
this.#l || !r ? (this.#r.add(i), kr(s, a, !1)) : a();
|
|
2577
2574
|
}
|
|
2578
2575
|
}
|
|
2579
2576
|
};
|
|
@@ -2604,13 +2601,13 @@ class Mi {
|
|
|
2604
2601
|
}
|
|
2605
2602
|
function Ge(e, t, ...n) {
|
|
2606
2603
|
var r = new Mi(e);
|
|
2607
|
-
|
|
2604
|
+
Br(() => {
|
|
2608
2605
|
const o = t() ?? null;
|
|
2609
2606
|
r.ensure(o, o && ((i) => o(i, ...n)));
|
|
2610
2607
|
}, Nn);
|
|
2611
2608
|
}
|
|
2612
2609
|
function zn(e) {
|
|
2613
|
-
We === null && Hs(),
|
|
2610
|
+
We === null && Hs(), Kr && We.l !== null ? Op(We).m.push(e) : qe(() => {
|
|
2614
2611
|
const t = lt(e);
|
|
2615
2612
|
if (typeof t == "function") return (
|
|
2616
2613
|
/** @type {() => void} */
|
|
@@ -2642,7 +2639,7 @@ function ae(e, t, n = !1) {
|
|
|
2642
2639
|
}
|
|
2643
2640
|
r.ensure(s, a);
|
|
2644
2641
|
}
|
|
2645
|
-
|
|
2642
|
+
Br(() => {
|
|
2646
2643
|
var s = !1;
|
|
2647
2644
|
t((a, l = !0) => {
|
|
2648
2645
|
s = !0, i(l, a);
|
|
@@ -2679,7 +2676,7 @@ function Xs(e, t, n = !1, r = !1, o = !1) {
|
|
|
2679
2676
|
), a.nodes_start = a.nodes_end = null), s !== "") {
|
|
2680
2677
|
if (be) {
|
|
2681
2678
|
Pe.data;
|
|
2682
|
-
for (var l = Mn(), u = l; l !== null && (l.nodeType !==
|
|
2679
|
+
for (var l = Mn(), u = l; l !== null && (l.nodeType !== yr || /** @type {Comment} */
|
|
2683
2680
|
l.data !== ""); )
|
|
2684
2681
|
u = l, l = /** @type {TemplateNode} */
|
|
2685
2682
|
/* @__PURE__ */ tn(l);
|
|
@@ -2711,7 +2708,7 @@ function Xs(e, t, n = !1, r = !1, o = !1) {
|
|
|
2711
2708
|
function Ti(e, t, n) {
|
|
2712
2709
|
be && Mn();
|
|
2713
2710
|
var r = new Mi(e);
|
|
2714
|
-
|
|
2711
|
+
Br(() => {
|
|
2715
2712
|
var o = t() ?? null;
|
|
2716
2713
|
r.ensure(o, o && ((i) => n(i, o)));
|
|
2717
2714
|
}, Nn);
|
|
@@ -2726,7 +2723,7 @@ function Ap(e, t, n, r, o, i) {
|
|
|
2726
2723
|
/** @type {TemplateNode} */
|
|
2727
2724
|
be ? Pe : e
|
|
2728
2725
|
), u = new Mi(l, !1);
|
|
2729
|
-
|
|
2726
|
+
Br(() => {
|
|
2730
2727
|
const d = t() || null;
|
|
2731
2728
|
var p = d === "svg" ? Pf : null;
|
|
2732
2729
|
if (d === null) {
|
|
@@ -2755,7 +2752,7 @@ function Ap(e, t, n, r, o, i) {
|
|
|
2755
2752
|
}), s && (Dt(!0), et(l));
|
|
2756
2753
|
}
|
|
2757
2754
|
function He(e, t) {
|
|
2758
|
-
|
|
2755
|
+
Rr(() => {
|
|
2759
2756
|
var n = e.getRootNode(), r = (
|
|
2760
2757
|
/** @type {ShadowRoot} */
|
|
2761
2758
|
n.host ? (
|
|
@@ -2774,7 +2771,7 @@ function He(e, t) {
|
|
|
2774
2771
|
});
|
|
2775
2772
|
}
|
|
2776
2773
|
function pt(e, t, n) {
|
|
2777
|
-
|
|
2774
|
+
Rr(() => {
|
|
2778
2775
|
var r = lt(() => t(e, n?.()) || {});
|
|
2779
2776
|
if (n && r?.update) {
|
|
2780
2777
|
var o = !1, i = (
|
|
@@ -2797,7 +2794,7 @@ function Hp(e, t) {
|
|
|
2797
2794
|
var n = void 0, r;
|
|
2798
2795
|
pu(() => {
|
|
2799
2796
|
n !== (n = t()) && (r && (it(r), r = null), n && (r = Vt(() => {
|
|
2800
|
-
|
|
2797
|
+
Rr(() => (
|
|
2801
2798
|
/** @type {(node: Element) => void} */
|
|
2802
2799
|
n(e)
|
|
2803
2800
|
));
|
|
@@ -2945,7 +2942,7 @@ function Kp(e) {
|
|
|
2945
2942
|
function Ma(e) {
|
|
2946
2943
|
return "__value" in e ? e.__value : e.value;
|
|
2947
2944
|
}
|
|
2948
|
-
const jn = Symbol("class"), cn = Symbol("style"), Lu = Symbol("is custom element"), Vu = Symbol("is html");
|
|
2945
|
+
const jn = /* @__PURE__ */ Symbol("class"), cn = /* @__PURE__ */ Symbol("style"), Lu = /* @__PURE__ */ Symbol("is custom element"), Vu = /* @__PURE__ */ Symbol("is html");
|
|
2949
2946
|
function Cn(e) {
|
|
2950
2947
|
if (be) {
|
|
2951
2948
|
var t = !1, n = () => {
|
|
@@ -3107,7 +3104,7 @@ function ot(e, t, n = [], r = [], o = [], i, s = !1, a = !1) {
|
|
|
3107
3104
|
/** @type {HTMLSelectElement} */
|
|
3108
3105
|
e
|
|
3109
3106
|
);
|
|
3110
|
-
|
|
3107
|
+
Rr(() => {
|
|
3111
3108
|
gs(
|
|
3112
3109
|
h,
|
|
3113
3110
|
/** @type {Record<string | symbol, any>} */
|
|
@@ -3184,13 +3181,13 @@ var Wp = /* @__PURE__ */ new Gs({
|
|
|
3184
3181
|
});
|
|
3185
3182
|
function La(e, t, n) {
|
|
3186
3183
|
var r = Wp.observe(e, () => n(e[t]));
|
|
3187
|
-
|
|
3184
|
+
Rr(() => (lt(() => n(e[t])), r));
|
|
3188
3185
|
}
|
|
3189
3186
|
function Va(e, t) {
|
|
3190
3187
|
return e === t || e?.[fn] === t;
|
|
3191
3188
|
}
|
|
3192
3189
|
function Nt(e = {}, t, n, r) {
|
|
3193
|
-
return
|
|
3190
|
+
return Rr(() => {
|
|
3194
3191
|
var o, i;
|
|
3195
3192
|
return xo(() => {
|
|
3196
3193
|
o = i, i = [], lt(() => {
|
|
@@ -3346,14 +3343,14 @@ const Xp = {
|
|
|
3346
3343
|
let n = e.props.length;
|
|
3347
3344
|
for (; n--; ) {
|
|
3348
3345
|
let r = e.props[n];
|
|
3349
|
-
if (
|
|
3346
|
+
if (Yr(r) && (r = r()), typeof r == "object" && r !== null && t in r) return r[t];
|
|
3350
3347
|
}
|
|
3351
3348
|
},
|
|
3352
3349
|
set(e, t, n) {
|
|
3353
3350
|
let r = e.props.length;
|
|
3354
3351
|
for (; r--; ) {
|
|
3355
3352
|
let o = e.props[r];
|
|
3356
|
-
|
|
3353
|
+
Yr(o) && (o = o());
|
|
3357
3354
|
const i = Sn(o, t);
|
|
3358
3355
|
if (i && i.set)
|
|
3359
3356
|
return i.set(n), !0;
|
|
@@ -3364,7 +3361,7 @@ const Xp = {
|
|
|
3364
3361
|
let n = e.props.length;
|
|
3365
3362
|
for (; n--; ) {
|
|
3366
3363
|
let r = e.props[n];
|
|
3367
|
-
if (
|
|
3364
|
+
if (Yr(r) && (r = r()), typeof r == "object" && r !== null && t in r) {
|
|
3368
3365
|
const o = Sn(r, t);
|
|
3369
3366
|
return o && !o.configurable && (o.configurable = !0), o;
|
|
3370
3367
|
}
|
|
@@ -3373,13 +3370,13 @@ const Xp = {
|
|
|
3373
3370
|
has(e, t) {
|
|
3374
3371
|
if (t === fn || t === As) return !1;
|
|
3375
3372
|
for (let n of e.props)
|
|
3376
|
-
if (
|
|
3373
|
+
if (Yr(n) && (n = n()), n != null && t in n) return !0;
|
|
3377
3374
|
return !1;
|
|
3378
3375
|
},
|
|
3379
3376
|
ownKeys(e) {
|
|
3380
3377
|
const t = [];
|
|
3381
3378
|
for (let n of e.props)
|
|
3382
|
-
if (
|
|
3379
|
+
if (Yr(n) && (n = n()), !!n) {
|
|
3383
3380
|
for (const r in n)
|
|
3384
3381
|
t.includes(r) || t.push(r);
|
|
3385
3382
|
for (const r of Object.getOwnPropertySymbols(n))
|
|
@@ -3392,7 +3389,7 @@ function Be(...e) {
|
|
|
3392
3389
|
return new Proxy({ props: e }, Xp);
|
|
3393
3390
|
}
|
|
3394
3391
|
function v(e, t, n, r) {
|
|
3395
|
-
var o = !
|
|
3392
|
+
var o = !Kr || (n & $f) !== 0, i = (n & _f) !== 0, s = (n & kf) !== 0, a = (
|
|
3396
3393
|
/** @type {V} */
|
|
3397
3394
|
r
|
|
3398
3395
|
), l = !0, u = () => (l && (l = !1, a = s ? lt(
|
|
@@ -3432,9 +3429,9 @@ function v(e, t, n, r) {
|
|
|
3432
3429
|
var w = e.$$legacy;
|
|
3433
3430
|
return (
|
|
3434
3431
|
/** @type {() => V} */
|
|
3435
|
-
function(_, x) {
|
|
3432
|
+
(function(_, x) {
|
|
3436
3433
|
return arguments.length > 0 ? ((!o || !x || w || h) && d(x ? y() : _), _) : y();
|
|
3437
|
-
}
|
|
3434
|
+
})
|
|
3438
3435
|
);
|
|
3439
3436
|
}
|
|
3440
3437
|
var m = !1, b = ((n & Cf) !== 0 ? bo : Is)(() => (m = !1, y()));
|
|
@@ -3445,13 +3442,13 @@ function v(e, t, n, r) {
|
|
|
3445
3442
|
);
|
|
3446
3443
|
return (
|
|
3447
3444
|
/** @type {() => V} */
|
|
3448
|
-
function(_, x) {
|
|
3445
|
+
(function(_, x) {
|
|
3449
3446
|
if (arguments.length > 0) {
|
|
3450
3447
|
const k = x ? c(b) : o && i ? Rt(_) : _;
|
|
3451
3448
|
return Q(b, k), m = !0, a !== void 0 && (a = k), _;
|
|
3452
3449
|
}
|
|
3453
|
-
return
|
|
3454
|
-
}
|
|
3450
|
+
return wr && m || ($.f & En) !== 0 ? b.v : c(b);
|
|
3451
|
+
})
|
|
3455
3452
|
);
|
|
3456
3453
|
}
|
|
3457
3454
|
function Gp(e) {
|
|
@@ -4093,9 +4090,9 @@ function Fh(e, t, n) {
|
|
|
4093
4090
|
};
|
|
4094
4091
|
}
|
|
4095
4092
|
function qh(e, t, n) {
|
|
4096
|
-
return arguments.length > 1 ? this.each((t == null ? Wh : typeof t == "function" ? Fh : Yh)(e, t, n ?? "")) :
|
|
4093
|
+
return arguments.length > 1 ? this.each((t == null ? Wh : typeof t == "function" ? Fh : Yh)(e, t, n ?? "")) : Or(this.node(), e);
|
|
4097
4094
|
}
|
|
4098
|
-
function
|
|
4095
|
+
function Or(e, t) {
|
|
4099
4096
|
return e.style.getPropertyValue(t) || Ku(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
4100
4097
|
}
|
|
4101
4098
|
function Xh(e) {
|
|
@@ -4395,16 +4392,16 @@ const Og = { passive: !1 }, io = { capture: !0, passive: !1 };
|
|
|
4395
4392
|
function qi(e) {
|
|
4396
4393
|
e.stopImmediatePropagation();
|
|
4397
4394
|
}
|
|
4398
|
-
function
|
|
4395
|
+
function Sr(e) {
|
|
4399
4396
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
4400
4397
|
}
|
|
4401
4398
|
function Xu(e) {
|
|
4402
|
-
var t = e.document.documentElement, n = Kt(e).on("dragstart.drag",
|
|
4403
|
-
"onselectstart" in t ? n.on("selectstart.drag",
|
|
4399
|
+
var t = e.document.documentElement, n = Kt(e).on("dragstart.drag", Sr, io);
|
|
4400
|
+
"onselectstart" in t ? n.on("selectstart.drag", Sr, io) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
|
|
4404
4401
|
}
|
|
4405
4402
|
function Gu(e, t) {
|
|
4406
4403
|
var n = e.document.documentElement, r = Kt(e).on("dragstart.drag", null);
|
|
4407
|
-
t && (r.on("click.drag",
|
|
4404
|
+
t && (r.on("click.drag", Sr, io), setTimeout(function() {
|
|
4408
4405
|
r.on("click.drag", null);
|
|
4409
4406
|
}, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
|
|
4410
4407
|
}
|
|
@@ -4463,14 +4460,14 @@ function Zg() {
|
|
|
4463
4460
|
}
|
|
4464
4461
|
}
|
|
4465
4462
|
function y(x) {
|
|
4466
|
-
if (
|
|
4463
|
+
if (Sr(x), !u) {
|
|
4467
4464
|
var k = x.clientX - a, N = x.clientY - l;
|
|
4468
4465
|
u = k * k + N * N > p;
|
|
4469
4466
|
}
|
|
4470
4467
|
o.mouse("drag", x);
|
|
4471
4468
|
}
|
|
4472
4469
|
function w(x) {
|
|
4473
|
-
Kt(x.view).on("mousemove.drag mouseup.drag", null), Gu(x.view, u),
|
|
4470
|
+
Kt(x.view).on("mousemove.drag mouseup.drag", null), Gu(x.view, u), Sr(x), o.mouse("end", x);
|
|
4474
4471
|
}
|
|
4475
4472
|
function m(x, k) {
|
|
4476
4473
|
if (e.call(this, x, k)) {
|
|
@@ -4482,7 +4479,7 @@ function Zg() {
|
|
|
4482
4479
|
function b(x) {
|
|
4483
4480
|
var k = x.changedTouches, N = k.length, V, j;
|
|
4484
4481
|
for (V = 0; V < N; ++V)
|
|
4485
|
-
(j = o[k[V].identifier]) && (
|
|
4482
|
+
(j = o[k[V].identifier]) && (Sr(x), j("drag", x, k[V]));
|
|
4486
4483
|
}
|
|
4487
4484
|
function $(x) {
|
|
4488
4485
|
var k = x.changedTouches, N = k.length, V, j;
|
|
@@ -4561,7 +4558,7 @@ function Uu(e, t) {
|
|
|
4561
4558
|
}
|
|
4562
4559
|
function ko() {
|
|
4563
4560
|
}
|
|
4564
|
-
var so = 0.7, ai = 1 / so,
|
|
4561
|
+
var so = 0.7, ai = 1 / so, Er = "\\s*([+-]?\\d+)\\s*", ao = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", pn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", jg = /^#([0-9a-f]{3,8})$/, Kg = new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`), Rg = new RegExp(`^rgb\\(${pn},${pn},${pn}\\)$`), Bg = new RegExp(`^rgba\\(${Er},${Er},${Er},${ao}\\)$`), Wg = new RegExp(`^rgba\\(${pn},${pn},${pn},${ao}\\)$`), Yg = new RegExp(`^hsl\\(${ao},${pn},${pn}\\)$`), Fg = new RegExp(`^hsla\\(${ao},${pn},${pn},${ao}\\)$`), Ha = {
|
|
4565
4562
|
aliceblue: 15792383,
|
|
4566
4563
|
antiquewhite: 16444375,
|
|
4567
4564
|
aqua: 65535,
|
|
@@ -4711,7 +4708,7 @@ var so = 0.7, ai = 1 / so, Sr = "\\s*([+-]?\\d+)\\s*", ao = "\\s*([+-]?(?:\\d*\\
|
|
|
4711
4708
|
yellow: 16776960,
|
|
4712
4709
|
yellowgreen: 10145074
|
|
4713
4710
|
};
|
|
4714
|
-
Js(ko,
|
|
4711
|
+
Js(ko, pr, {
|
|
4715
4712
|
copy(e) {
|
|
4716
4713
|
return Object.assign(new this.constructor(), this, e);
|
|
4717
4714
|
},
|
|
@@ -4738,7 +4735,7 @@ function Xg() {
|
|
|
4738
4735
|
function Za() {
|
|
4739
4736
|
return this.rgb().formatRgb();
|
|
4740
4737
|
}
|
|
4741
|
-
function
|
|
4738
|
+
function pr(e) {
|
|
4742
4739
|
var t, n;
|
|
4743
4740
|
return e = (e + "").trim().toLowerCase(), (t = jg.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ja(t) : n === 3 ? new _t(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Zo(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Zo(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Kg.exec(e)) ? new _t(t[1], t[2], t[3], 1) : (t = Rg.exec(e)) ? new _t(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Bg.exec(e)) ? Zo(t[1], t[2], t[3], t[4]) : (t = Wg.exec(e)) ? Zo(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Yg.exec(e)) ? Ba(t[1], t[2] / 100, t[3] / 100, 1) : (t = Fg.exec(e)) ? Ba(t[1], t[2] / 100, t[3] / 100, t[4]) : Ha.hasOwnProperty(e) ? ja(Ha[e]) : e === "transparent" ? new _t(NaN, NaN, NaN, 0) : null;
|
|
4744
4741
|
}
|
|
@@ -4749,7 +4746,7 @@ function Zo(e, t, n, r) {
|
|
|
4749
4746
|
return r <= 0 && (e = t = n = NaN), new _t(e, t, n, r);
|
|
4750
4747
|
}
|
|
4751
4748
|
function Gg(e) {
|
|
4752
|
-
return e instanceof ko || (e =
|
|
4749
|
+
return e instanceof ko || (e = pr(e)), e ? (e = e.rgb(), new _t(e.r, e.g, e.b, e.opacity)) : new _t();
|
|
4753
4750
|
}
|
|
4754
4751
|
function ys(e, t, n, r) {
|
|
4755
4752
|
return arguments.length === 1 ? Gg(e) : new _t(e, t, n, r ?? 1);
|
|
@@ -4804,7 +4801,7 @@ function Ba(e, t, n, r) {
|
|
|
4804
4801
|
}
|
|
4805
4802
|
function Qu(e) {
|
|
4806
4803
|
if (e instanceof Xt) return new Xt(e.h, e.s, e.l, e.opacity);
|
|
4807
|
-
if (e instanceof ko || (e =
|
|
4804
|
+
if (e instanceof ko || (e = pr(e)), !e) return new Xt();
|
|
4808
4805
|
if (e instanceof Xt) return e;
|
|
4809
4806
|
e = e.rgb();
|
|
4810
4807
|
var t = e.r / 255, n = e.g / 255, r = e.b / 255, o = Math.min(t, n, r), i = Math.max(t, n, r), s = NaN, a = i - o, l = (i + o) / 2;
|
|
@@ -4872,7 +4869,7 @@ function Ju(e, t) {
|
|
|
4872
4869
|
var n = t - e;
|
|
4873
4870
|
return n ? Jg(e, n) : ea(isNaN(e) ? t : e);
|
|
4874
4871
|
}
|
|
4875
|
-
const ui = function e(t) {
|
|
4872
|
+
const ui = (function e(t) {
|
|
4876
4873
|
var n = t1(t);
|
|
4877
4874
|
function r(o, i) {
|
|
4878
4875
|
var s = n((o = ys(o)).r, (i = ys(i)).r), a = n(o.g, i.g), l = n(o.b, i.b), u = Ju(o.opacity, i.opacity);
|
|
@@ -4881,7 +4878,7 @@ const ui = function e(t) {
|
|
|
4881
4878
|
};
|
|
4882
4879
|
}
|
|
4883
4880
|
return r.gamma = e, r;
|
|
4884
|
-
}(1);
|
|
4881
|
+
})(1);
|
|
4885
4882
|
function n1(e, t) {
|
|
4886
4883
|
t || (t = []);
|
|
4887
4884
|
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), o;
|
|
@@ -4895,7 +4892,7 @@ function r1(e) {
|
|
|
4895
4892
|
}
|
|
4896
4893
|
function o1(e, t) {
|
|
4897
4894
|
var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, o = new Array(r), i = new Array(n), s;
|
|
4898
|
-
for (s = 0; s < r; ++s) o[s] =
|
|
4895
|
+
for (s = 0; s < r; ++s) o[s] = to(e[s], t[s]);
|
|
4899
4896
|
for (; s < n; ++s) i[s] = t[s];
|
|
4900
4897
|
return function(a) {
|
|
4901
4898
|
for (s = 0; s < r; ++s) i[s] = o[s](a);
|
|
@@ -4917,7 +4914,7 @@ function s1(e, t) {
|
|
|
4917
4914
|
var n = {}, r = {}, o;
|
|
4918
4915
|
(e === null || typeof e != "object") && (e = {}), (t === null || typeof t != "object") && (t = {});
|
|
4919
4916
|
for (o in t)
|
|
4920
|
-
o in e ? n[o] =
|
|
4917
|
+
o in e ? n[o] = to(e[o], t[o]) : r[o] = t[o];
|
|
4921
4918
|
return function(i) {
|
|
4922
4919
|
for (o in n) r[o] = n[o](i);
|
|
4923
4920
|
return r;
|
|
@@ -4943,9 +4940,9 @@ function ec(e, t) {
|
|
|
4943
4940
|
return a.join("");
|
|
4944
4941
|
});
|
|
4945
4942
|
}
|
|
4946
|
-
function
|
|
4943
|
+
function to(e, t) {
|
|
4947
4944
|
var n = typeof t, r;
|
|
4948
|
-
return t == null || n === "boolean" ? ea(t) : (n === "number" ? un : n === "string" ? (r =
|
|
4945
|
+
return t == null || n === "boolean" ? ea(t) : (n === "number" ? un : n === "string" ? (r = pr(t)) ? (t = r, ui) : ec : t instanceof pr ? ui : t instanceof Date ? i1 : r1(t) ? n1 : Array.isArray(t) ? o1 : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? s1 : un)(e, t);
|
|
4949
4946
|
}
|
|
4950
4947
|
var Ya = 180 / Math.PI, tc = {
|
|
4951
4948
|
translateX: 0,
|
|
@@ -5014,7 +5011,7 @@ function h1(e) {
|
|
|
5014
5011
|
function g1(e) {
|
|
5015
5012
|
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
5016
5013
|
}
|
|
5017
|
-
const Xo = function e(t, n, r) {
|
|
5014
|
+
const Xo = (function e(t, n, r) {
|
|
5018
5015
|
function o(i, s) {
|
|
5019
5016
|
var a = i[0], l = i[1], u = i[2], d = s[0], p = s[1], f = s[2], h = d - a, y = p - l, w = h * h + y * y, m, b;
|
|
5020
5017
|
if (w < p1)
|
|
@@ -5042,15 +5039,15 @@ const Xo = function e(t, n, r) {
|
|
|
5042
5039
|
var s = Math.max(1e-3, +i), a = s * s, l = a * a;
|
|
5043
5040
|
return e(s, a, l);
|
|
5044
5041
|
}, o;
|
|
5045
|
-
}(Math.SQRT2, 2, 4);
|
|
5046
|
-
var
|
|
5042
|
+
})(Math.SQRT2, 2, 4);
|
|
5043
|
+
var zr = 0, Gr = 0, Fr = 0, oc = 1e3, ci, Ur, di = 0, hr = 0, Oi = 0, lo = typeof performance == "object" && performance.now ? performance : Date, ic = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
5047
5044
|
setTimeout(e, 17);
|
|
5048
5045
|
};
|
|
5049
5046
|
function ta() {
|
|
5050
|
-
return
|
|
5047
|
+
return hr || (ic(v1), hr = lo.now() + Oi);
|
|
5051
5048
|
}
|
|
5052
5049
|
function v1() {
|
|
5053
|
-
|
|
5050
|
+
hr = 0;
|
|
5054
5051
|
}
|
|
5055
5052
|
function fi() {
|
|
5056
5053
|
this._call = this._time = this._next = null;
|
|
@@ -5059,7 +5056,7 @@ fi.prototype = sc.prototype = {
|
|
|
5059
5056
|
constructor: fi,
|
|
5060
5057
|
restart: function(e, t, n) {
|
|
5061
5058
|
if (typeof e != "function") throw new TypeError("callback is not a function");
|
|
5062
|
-
n = (n == null ? ta() : +n) + (t == null ? 0 : +t), !this._next &&
|
|
5059
|
+
n = (n == null ? ta() : +n) + (t == null ? 0 : +t), !this._next && Ur !== this && (Ur ? Ur._next = this : ci = this, Ur = this), this._call = e, this._time = n, bs();
|
|
5063
5060
|
},
|
|
5064
5061
|
stop: function() {
|
|
5065
5062
|
this._call && (this._call = null, this._time = 1 / 0, bs());
|
|
@@ -5070,17 +5067,17 @@ function sc(e, t, n) {
|
|
|
5070
5067
|
return r.restart(e, t, n), r;
|
|
5071
5068
|
}
|
|
5072
5069
|
function m1() {
|
|
5073
|
-
ta(), ++
|
|
5070
|
+
ta(), ++zr;
|
|
5074
5071
|
for (var e = ci, t; e; )
|
|
5075
|
-
(t =
|
|
5076
|
-
--
|
|
5072
|
+
(t = hr - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
5073
|
+
--zr;
|
|
5077
5074
|
}
|
|
5078
5075
|
function qa() {
|
|
5079
|
-
|
|
5076
|
+
hr = (di = lo.now()) + Oi, zr = Gr = 0;
|
|
5080
5077
|
try {
|
|
5081
5078
|
m1();
|
|
5082
5079
|
} finally {
|
|
5083
|
-
|
|
5080
|
+
zr = 0, w1(), hr = 0;
|
|
5084
5081
|
}
|
|
5085
5082
|
}
|
|
5086
5083
|
function y1() {
|
|
@@ -5090,13 +5087,13 @@ function y1() {
|
|
|
5090
5087
|
function w1() {
|
|
5091
5088
|
for (var e, t = ci, n, r = 1 / 0; t; )
|
|
5092
5089
|
t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : ci = n);
|
|
5093
|
-
|
|
5090
|
+
Ur = e, bs(r);
|
|
5094
5091
|
}
|
|
5095
5092
|
function bs(e) {
|
|
5096
|
-
if (!
|
|
5097
|
-
|
|
5098
|
-
var t = e -
|
|
5099
|
-
t > 24 ? (e < 1 / 0 && (
|
|
5093
|
+
if (!zr) {
|
|
5094
|
+
Gr && (Gr = clearTimeout(Gr));
|
|
5095
|
+
var t = e - hr;
|
|
5096
|
+
t > 24 ? (e < 1 / 0 && (Gr = setTimeout(qa, e - lo.now() - Oi)), Fr && (Fr = clearInterval(Fr))) : (Fr || (di = lo.now(), Fr = setInterval(y1, oc)), zr = 1, ic(qa));
|
|
5100
5097
|
}
|
|
5101
5098
|
}
|
|
5102
5099
|
function Xa(e, t, n) {
|
|
@@ -5246,7 +5243,7 @@ function ra(e, t, n) {
|
|
|
5246
5243
|
}
|
|
5247
5244
|
function lc(e, t) {
|
|
5248
5245
|
var n;
|
|
5249
|
-
return (typeof t == "number" ? un : t instanceof
|
|
5246
|
+
return (typeof t == "number" ? un : t instanceof pr ? ui : (n = pr(t)) ? (t = n, ui) : ec)(e, t);
|
|
5250
5247
|
}
|
|
5251
5248
|
function E1(e) {
|
|
5252
5249
|
return function() {
|
|
@@ -5443,7 +5440,7 @@ function iv() {
|
|
|
5443
5440
|
function sv(e, t) {
|
|
5444
5441
|
var n, r, o;
|
|
5445
5442
|
return function() {
|
|
5446
|
-
var i =
|
|
5443
|
+
var i = Or(this, e), s = (this.style.removeProperty(e), Or(this, e));
|
|
5447
5444
|
return i === s ? null : i === n && s === r ? o : o = t(n = i, r = s);
|
|
5448
5445
|
};
|
|
5449
5446
|
}
|
|
@@ -5455,15 +5452,15 @@ function uc(e) {
|
|
|
5455
5452
|
function av(e, t, n) {
|
|
5456
5453
|
var r, o = n + "", i;
|
|
5457
5454
|
return function() {
|
|
5458
|
-
var s =
|
|
5455
|
+
var s = Or(this, e);
|
|
5459
5456
|
return s === o ? null : s === r ? i : i = t(r = s, n);
|
|
5460
5457
|
};
|
|
5461
5458
|
}
|
|
5462
5459
|
function lv(e, t, n) {
|
|
5463
5460
|
var r, o, i;
|
|
5464
5461
|
return function() {
|
|
5465
|
-
var s =
|
|
5466
|
-
return a == null && (l = a = (this.style.removeProperty(e),
|
|
5462
|
+
var s = Or(this, e), a = n(this), l = a + "";
|
|
5463
|
+
return a == null && (l = a = (this.style.removeProperty(e), Or(this, e))), s === l ? null : s === r && l === o ? i : (o = l, i = t(r = s, a));
|
|
5467
5464
|
};
|
|
5468
5465
|
}
|
|
5469
5466
|
function uv(e, t) {
|
|
@@ -5686,7 +5683,7 @@ function dc(e) {
|
|
|
5686
5683
|
function Ui(e) {
|
|
5687
5684
|
e.stopImmediatePropagation();
|
|
5688
5685
|
}
|
|
5689
|
-
function
|
|
5686
|
+
function qr(e) {
|
|
5690
5687
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
5691
5688
|
}
|
|
5692
5689
|
function Pv(e) {
|
|
@@ -5818,7 +5815,7 @@ function fc() {
|
|
|
5818
5815
|
if (K.k === B) return;
|
|
5819
5816
|
M.mouse = [W, K.invert(W)], Qo(this), M.start();
|
|
5820
5817
|
}
|
|
5821
|
-
|
|
5818
|
+
qr(C), M.wheel = setTimeout(D, y), M.zoom("mouse", n(_($(K, B), M.mouse[0], M.mouse[1]), M.extent, s));
|
|
5822
5819
|
function D() {
|
|
5823
5820
|
M.wheel = null, M.end();
|
|
5824
5821
|
}
|
|
@@ -5828,20 +5825,20 @@ function fc() {
|
|
|
5828
5825
|
var M = C.currentTarget, K = N(this, P, !0).event(C), B = Kt(C.view).on("mousemove.zoom", q, !0).on("mouseup.zoom", U, !0), W = qt(C, M), D = C.clientX, X = C.clientY;
|
|
5829
5826
|
Xu(C.view), Ui(C), K.mouse = [W, this.__zoom.invert(W)], Qo(this), K.start();
|
|
5830
5827
|
function q(I) {
|
|
5831
|
-
if (
|
|
5828
|
+
if (qr(I), !K.moved) {
|
|
5832
5829
|
var F = I.clientX - D, G = I.clientY - X;
|
|
5833
5830
|
K.moved = F * F + G * G > w;
|
|
5834
5831
|
}
|
|
5835
5832
|
K.event(I).zoom("mouse", n(_(K.that.__zoom, K.mouse[0] = qt(I, M), K.mouse[1]), K.extent, s));
|
|
5836
5833
|
}
|
|
5837
5834
|
function U(I) {
|
|
5838
|
-
B.on("mousemove.zoom mouseup.zoom", null), Gu(I.view, K.moved),
|
|
5835
|
+
B.on("mousemove.zoom mouseup.zoom", null), Gu(I.view, K.moved), qr(I), K.event(I).end();
|
|
5839
5836
|
}
|
|
5840
5837
|
}
|
|
5841
5838
|
function H(C, ...P) {
|
|
5842
5839
|
if (e.apply(this, arguments)) {
|
|
5843
5840
|
var M = this.__zoom, K = qt(C.changedTouches ? C.changedTouches[0] : C, this), B = M.invert(K), W = M.k * (C.shiftKey ? 0.5 : 2), D = n(_($(M, W), K, B), t.apply(this, P), s);
|
|
5844
|
-
|
|
5841
|
+
qr(C), a > 0 ? Kt(this).transition().duration(a).call(k, D, K, C) : Kt(this).call(b.transform, D, K, C);
|
|
5845
5842
|
}
|
|
5846
5843
|
}
|
|
5847
5844
|
function z(C, ...P) {
|
|
@@ -5857,7 +5854,7 @@ function fc() {
|
|
|
5857
5854
|
function S(C, ...P) {
|
|
5858
5855
|
if (this.__zooming) {
|
|
5859
5856
|
var M = N(this, P).event(C), K = C.changedTouches, B = K.length, W, D, X, q;
|
|
5860
|
-
for (
|
|
5857
|
+
for (qr(C), W = 0; W < B; ++W)
|
|
5861
5858
|
D = K[W], X = qt(D, this), M.touch0 && M.touch0[2] === D.identifier ? M.touch0[0] = X : M.touch1 && M.touch1[2] === D.identifier && (M.touch1[0] = X);
|
|
5862
5859
|
if (D = M.that.__zoom, M.touch1) {
|
|
5863
5860
|
var U = M.touch0[0], I = M.touch0[1], F = M.touch1[0], G = M.touch1[1], te = (te = F[0] - U[0]) * te + (te = F[1] - U[1]) * te, ne = (ne = G[0] - I[0]) * ne + (ne = G[1] - I[1]) * ne;
|
|
@@ -5943,10 +5940,10 @@ const uo = {
|
|
|
5943
5940
|
// Handle
|
|
5944
5941
|
"handle.ariaLabel": "Handle"
|
|
5945
5942
|
};
|
|
5946
|
-
var
|
|
5943
|
+
var Ar;
|
|
5947
5944
|
(function(e) {
|
|
5948
5945
|
e.Strict = "strict", e.Loose = "loose";
|
|
5949
|
-
})(
|
|
5946
|
+
})(Ar || (Ar = {}));
|
|
5950
5947
|
var ur;
|
|
5951
5948
|
(function(e) {
|
|
5952
5949
|
e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal";
|
|
@@ -6041,7 +6038,7 @@ const hc = (e) => "id" in e && "source" in e && "target" in e, zv = (e) => "id"
|
|
|
6041
6038
|
const { measured: d, selectable: p = !0, hidden: f = !1 } = u;
|
|
6042
6039
|
if (s && !p || f)
|
|
6043
6040
|
continue;
|
|
6044
|
-
const h = d.width ?? u.width ?? u.initialWidth ?? null, y = d.height ?? u.height ?? u.initialHeight ?? null, w = fo(a,
|
|
6041
|
+
const h = d.width ?? u.width ?? u.initialWidth ?? null, y = d.height ?? u.height ?? u.initialHeight ?? null, w = fo(a, Ir(u)), m = (h ?? 0) * (y ?? 0), b = i && w > 0;
|
|
6045
6042
|
(!u.internals.handleBounds || b || w >= m || u.dragging) && l.push(u);
|
|
6046
6043
|
}
|
|
6047
6044
|
return l;
|
|
@@ -6080,11 +6077,11 @@ function gc({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0],
|
|
|
6080
6077
|
[l + h, u + y]
|
|
6081
6078
|
]);
|
|
6082
6079
|
}
|
|
6083
|
-
else a &&
|
|
6080
|
+
else a && Zr(s.extent) && (p = [
|
|
6084
6081
|
[s.extent[0][0] + l, s.extent[0][1] + u],
|
|
6085
6082
|
[s.extent[1][0] + l, s.extent[1][1] + u]
|
|
6086
6083
|
]);
|
|
6087
|
-
const f =
|
|
6084
|
+
const f = Zr(p) ? gr(t, p, s.measured) : t;
|
|
6088
6085
|
return (s.measured.width === void 0 || s.measured.height === void 0) && i?.("015", uo.error015()), {
|
|
6089
6086
|
position: {
|
|
6090
6087
|
x: f.x - l + (s.measured.width ?? 0) * d[0],
|
|
@@ -6115,18 +6112,18 @@ async function jv({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edge
|
|
|
6115
6112
|
});
|
|
6116
6113
|
return typeof d == "boolean" ? d ? { edges: u, nodes: s } : { edges: [], nodes: [] } : d;
|
|
6117
6114
|
}
|
|
6118
|
-
const
|
|
6119
|
-
x:
|
|
6120
|
-
y:
|
|
6115
|
+
const Hr = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), gr = (e = { x: 0, y: 0 }, t, n) => ({
|
|
6116
|
+
x: Hr(e.x, t[0][0], t[1][0] - (n?.width ?? 0)),
|
|
6117
|
+
y: Hr(e.y, t[0][1], t[1][1] - (n?.height ?? 0))
|
|
6121
6118
|
});
|
|
6122
6119
|
function vc(e, t, n) {
|
|
6123
6120
|
const { width: r, height: o } = tr(n), { x: i, y: s } = n.internals.positionAbsolute;
|
|
6124
|
-
return
|
|
6121
|
+
return gr(e, [
|
|
6125
6122
|
[i, s],
|
|
6126
6123
|
[i + r, s + o]
|
|
6127
6124
|
], t);
|
|
6128
6125
|
}
|
|
6129
|
-
const tl = (e, t, n) => e < t ?
|
|
6126
|
+
const tl = (e, t, n) => e < t ? Hr(Math.abs(e - t), 1, t) / t : e > n ? -Hr(Math.abs(e - n), 1, t) / t : 0, mc = (e, t, n = 15, r = 40) => {
|
|
6130
6127
|
const o = tl(e.x, r, t.width - r) * n, i = tl(e.y, r, t.height - r) * n;
|
|
6131
6128
|
return [o, i];
|
|
6132
6129
|
}, Hi = (e, t) => ({
|
|
@@ -6144,7 +6141,7 @@ const tl = (e, t, n) => e < t ? Ar(Math.abs(e - t), 1, t) / t : e > n ? -Ar(Math
|
|
|
6144
6141
|
y: t,
|
|
6145
6142
|
width: n - e,
|
|
6146
6143
|
height: r - t
|
|
6147
|
-
}),
|
|
6144
|
+
}), Ir = (e, t = [0, 0]) => {
|
|
6148
6145
|
const { x: n, y: r } = oa(e) ? e.internals.positionAbsolute : So(e, t);
|
|
6149
6146
|
return {
|
|
6150
6147
|
x: n,
|
|
@@ -6177,7 +6174,7 @@ const tl = (e, t, n) => e < t ? Ar(Math.abs(e - t), 1, t) / t : e > n ? -Ar(Math
|
|
|
6177
6174
|
x: e * o + n,
|
|
6178
6175
|
y: t * o + r
|
|
6179
6176
|
});
|
|
6180
|
-
function
|
|
6177
|
+
function Cr(e, t) {
|
|
6181
6178
|
if (typeof e == "number")
|
|
6182
6179
|
return Math.floor((t - t / (1 + e)) * 0.5);
|
|
6183
6180
|
if (typeof e == "string" && e.endsWith("px")) {
|
|
@@ -6194,7 +6191,7 @@ function xr(e, t) {
|
|
|
6194
6191
|
}
|
|
6195
6192
|
function Rv(e, t, n) {
|
|
6196
6193
|
if (typeof e == "string" || typeof e == "number") {
|
|
6197
|
-
const r =
|
|
6194
|
+
const r = Cr(e, n), o = Cr(e, t);
|
|
6198
6195
|
return {
|
|
6199
6196
|
top: r,
|
|
6200
6197
|
right: o,
|
|
@@ -6205,7 +6202,7 @@ function Rv(e, t, n) {
|
|
|
6205
6202
|
};
|
|
6206
6203
|
}
|
|
6207
6204
|
if (typeof e == "object") {
|
|
6208
|
-
const r =
|
|
6205
|
+
const r = Cr(e.top ?? e.y ?? 0, n), o = Cr(e.bottom ?? e.y ?? 0, n), i = Cr(e.left ?? e.x ?? 0, t), s = Cr(e.right ?? e.x ?? 0, t);
|
|
6209
6206
|
return { top: r, right: s, bottom: o, left: i, x: i + s, y: r + o };
|
|
6210
6207
|
}
|
|
6211
6208
|
return { top: 0, right: 0, bottom: 0, left: 0, x: 0, y: 0 };
|
|
@@ -6220,7 +6217,7 @@ function Bv(e, t, n, r, o, i) {
|
|
|
6220
6217
|
};
|
|
6221
6218
|
}
|
|
6222
6219
|
const sa = (e, t, n, r, o, i) => {
|
|
6223
|
-
const s = Rv(i, t, n), a = (t - s.x) / e.width, l = (n - s.y) / e.height, u = Math.min(a, l), d =
|
|
6220
|
+
const s = Rv(i, t, n), a = (t - s.x) / e.width, l = (n - s.y) / e.height, u = Math.min(a, l), d = Hr(u, r, o), p = e.x + e.width / 2, f = e.y + e.height / 2, h = t / 2 - p * d, y = n / 2 - f * d, w = Bv(e, h, y, d, t, n), m = {
|
|
6224
6221
|
left: Math.min(w.left - s.left, 0),
|
|
6225
6222
|
top: Math.min(w.top - s.top, 0),
|
|
6226
6223
|
right: Math.min(w.right - s.right, 0),
|
|
@@ -6232,7 +6229,7 @@ const sa = (e, t, n, r, o, i) => {
|
|
|
6232
6229
|
zoom: d
|
|
6233
6230
|
};
|
|
6234
6231
|
}, sr = () => typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0;
|
|
6235
|
-
function
|
|
6232
|
+
function Zr(e) {
|
|
6236
6233
|
return e != null && e !== "parent";
|
|
6237
6234
|
}
|
|
6238
6235
|
function tr(e) {
|
|
@@ -6471,7 +6468,7 @@ function r0(e) {
|
|
|
6471
6468
|
return null;
|
|
6472
6469
|
const r = t.internals.handleBounds || ll(t.handles), o = n.internals.handleBounds || ll(n.handles), i = ul(r?.source ?? [], e.sourceHandle), s = ul(
|
|
6473
6470
|
// when connection type is loose we can define all handles as sources and connect source -> source
|
|
6474
|
-
e.connectionMode ===
|
|
6471
|
+
e.connectionMode === Ar.Strict ? o?.target ?? [] : (o?.target ?? []).concat(o?.source ?? []),
|
|
6475
6472
|
e.targetHandle
|
|
6476
6473
|
);
|
|
6477
6474
|
if (!i || !s)
|
|
@@ -6578,7 +6575,7 @@ function l0(e, t, n) {
|
|
|
6578
6575
|
if (o.parentId)
|
|
6579
6576
|
ca(o, e, t, r);
|
|
6580
6577
|
else {
|
|
6581
|
-
const i = So(o, r.nodeOrigin), s =
|
|
6578
|
+
const i = So(o, r.nodeOrigin), s = Zr(o.extent) ? o.extent : r.nodeExtent, a = gr(i, s, tr(o));
|
|
6582
6579
|
o.internals.positionAbsolute = a;
|
|
6583
6580
|
}
|
|
6584
6581
|
}
|
|
@@ -6614,7 +6611,7 @@ function c0(e, t, n, r) {
|
|
|
6614
6611
|
if (o.checkEquality && u === d?.internals.userNode)
|
|
6615
6612
|
t.set(u.id, d);
|
|
6616
6613
|
else {
|
|
6617
|
-
const p = So(u, o.nodeOrigin), f =
|
|
6614
|
+
const p = So(u, o.nodeOrigin), f = Zr(u.extent) ? u.extent : o.nodeExtent, h = gr(p, f, tr(u));
|
|
6618
6615
|
d = {
|
|
6619
6616
|
...o.defaults,
|
|
6620
6617
|
...u,
|
|
@@ -6662,8 +6659,8 @@ function Pc(e, t) {
|
|
|
6662
6659
|
return (_n(e.zIndex) ? e.zIndex : 0) + (e.selected ? t : 0);
|
|
6663
6660
|
}
|
|
6664
6661
|
function f0(e, t, n, r, o) {
|
|
6665
|
-
const { x: i, y: s } = t.internals.positionAbsolute, a = tr(e), l = So(e, n), u =
|
|
6666
|
-
let d =
|
|
6662
|
+
const { x: i, y: s } = t.internals.positionAbsolute, a = tr(e), l = So(e, n), u = Zr(e.extent) ? gr(l, e.extent, a) : l;
|
|
6663
|
+
let d = gr({ x: i + u.x, y: s + u.y }, r, a);
|
|
6667
6664
|
e.extent === "parent" && (d = vc(d, a, t));
|
|
6668
6665
|
const p = Pc(e, o), f = t.internals.z ?? 0;
|
|
6669
6666
|
return {
|
|
@@ -6678,7 +6675,7 @@ function p0(e, t, n, r = [0, 0]) {
|
|
|
6678
6675
|
const a = t.get(s.parentId);
|
|
6679
6676
|
if (!a)
|
|
6680
6677
|
continue;
|
|
6681
|
-
const l = i.get(s.parentId)?.expandedRect ??
|
|
6678
|
+
const l = i.get(s.parentId)?.expandedRect ?? Ir(a), u = yc(l, s.rect);
|
|
6682
6679
|
i.set(s.parentId, { expandedRect: u, parent: a });
|
|
6683
6680
|
}
|
|
6684
6681
|
return i.size > 0 && i.forEach(({ expandedRect: s, parent: a }, l) => {
|
|
@@ -6732,9 +6729,9 @@ function h0(e, t, n, r, o, i) {
|
|
|
6732
6729
|
}
|
|
6733
6730
|
const y = bc(f.nodeElement), w = h.measured.width !== y.width || h.measured.height !== y.height;
|
|
6734
6731
|
if (y.width && y.height && (w || !h.internals.handleBounds || f.force)) {
|
|
6735
|
-
const m = f.nodeElement.getBoundingClientRect(), b =
|
|
6732
|
+
const m = f.nodeElement.getBoundingClientRect(), b = Zr(h.extent) ? h.extent : i;
|
|
6736
6733
|
let { positionAbsolute: $ } = h.internals;
|
|
6737
|
-
h.parentId && h.extent === "parent" ? $ = vc($, y, t.get(h.parentId)) : b && ($ =
|
|
6734
|
+
h.parentId && h.extent === "parent" ? $ = vc($, y, t.get(h.parentId)) : b && ($ = gr($, b, y));
|
|
6738
6735
|
const _ = {
|
|
6739
6736
|
...h,
|
|
6740
6737
|
measured: y,
|
|
@@ -6754,7 +6751,7 @@ function h0(e, t, n, r, o, i) {
|
|
|
6754
6751
|
}), h.expandParent && h.parentId && p.push({
|
|
6755
6752
|
id: h.id,
|
|
6756
6753
|
parentId: h.parentId,
|
|
6757
|
-
rect:
|
|
6754
|
+
rect: Ir(_, o)
|
|
6758
6755
|
}));
|
|
6759
6756
|
}
|
|
6760
6757
|
}
|
|
@@ -7006,7 +7003,7 @@ function x0(e, t, n) {
|
|
|
7006
7003
|
height: n * 2
|
|
7007
7004
|
};
|
|
7008
7005
|
for (const i of t.values())
|
|
7009
|
-
fo(o,
|
|
7006
|
+
fo(o, Ir(i)) > 0 && r.push(i);
|
|
7010
7007
|
return r;
|
|
7011
7008
|
}
|
|
7012
7009
|
const C0 = 250;
|
|
@@ -7156,7 +7153,7 @@ function Vc(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, f
|
|
|
7156
7153
|
targetHandle: p ? o : x
|
|
7157
7154
|
};
|
|
7158
7155
|
b.connection = V;
|
|
7159
|
-
const j = k && N && (n ===
|
|
7156
|
+
const j = k && N && (n === Ar.Strict ? p && $ === "source" || !p && $ === "target" : _ !== r || x !== o);
|
|
7160
7157
|
b.isValid = j && u(V), b.toHandle = Mc(_, $, x, d, n, !0);
|
|
7161
7158
|
}
|
|
7162
7159
|
return b;
|
|
@@ -7217,7 +7214,7 @@ const Zi = (e) => ({
|
|
|
7217
7214
|
x: e.x,
|
|
7218
7215
|
y: e.y,
|
|
7219
7216
|
zoom: e.k
|
|
7220
|
-
}), es = ({ x: e, y: t, zoom: n }) => Ai.translate(e, t).scale(n),
|
|
7217
|
+
}), es = ({ x: e, y: t, zoom: n }) => Ai.translate(e, t).scale(n), _r = (e, t) => e.target.closest(`.${t}`), Dc = (e, t) => t === 2 && Array.isArray(e) && e.includes(2), E0 = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2, ts = (e, t = 0, n = E0, r = () => {
|
|
7221
7218
|
}) => {
|
|
7222
7219
|
const o = typeof t == "number" && t > 0;
|
|
7223
7220
|
return o || r(), o ? e.transition().duration(t).ease(n).on("end", r) : e;
|
|
@@ -7227,7 +7224,7 @@ const Zi = (e) => ({
|
|
|
7227
7224
|
};
|
|
7228
7225
|
function P0({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r, panOnScrollMode: o, panOnScrollSpeed: i, zoomOnPinch: s, onPanZoomStart: a, onPanZoom: l, onPanZoomEnd: u }) {
|
|
7229
7226
|
return (d) => {
|
|
7230
|
-
if (
|
|
7227
|
+
if (_r(d, t))
|
|
7231
7228
|
return d.ctrlKey && d.preventDefault(), !1;
|
|
7232
7229
|
d.preventDefault(), d.stopImmediatePropagation();
|
|
7233
7230
|
const p = n.property("__zoom").k || 1;
|
|
@@ -7253,7 +7250,7 @@ function P0({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
|
|
|
7253
7250
|
}
|
|
7254
7251
|
function N0({ noWheelClassName: e, preventScrolling: t, d3ZoomHandler: n }) {
|
|
7255
7252
|
return function(r, o) {
|
|
7256
|
-
const i = r.type === "wheel", s = !t && i && !r.ctrlKey, a =
|
|
7253
|
+
const i = r.type === "wheel", s = !t && i && !r.ctrlKey, a = _r(r, e);
|
|
7257
7254
|
if (r.ctrlKey && i && a && r.preventDefault(), s || a)
|
|
7258
7255
|
return null;
|
|
7259
7256
|
r.preventDefault(), n.call(this, r, o);
|
|
@@ -7289,9 +7286,9 @@ function L0({ zoomPanValues: e, panOnDrag: t, panOnScroll: n, onDraggingChange:
|
|
|
7289
7286
|
function V0({ zoomActivationKeyPressed: e, zoomOnScroll: t, zoomOnPinch: n, panOnDrag: r, panOnScroll: o, zoomOnDoubleClick: i, userSelectionActive: s, noWheelClassName: a, noPanClassName: l, lib: u, connectionInProgress: d }) {
|
|
7290
7287
|
return (p) => {
|
|
7291
7288
|
const f = e || t, h = n && p.ctrlKey, y = p.type === "wheel";
|
|
7292
|
-
if (p.button === 1 && p.type === "mousedown" && (
|
|
7289
|
+
if (p.button === 1 && p.type === "mousedown" && (_r(p, `${u}-flow__node`) || _r(p, `${u}-flow__edge`)))
|
|
7293
7290
|
return !0;
|
|
7294
|
-
if (!r && !f && !o && !i && !n || s || d && !y ||
|
|
7291
|
+
if (!r && !f && !o && !i && !n || s || d && !y || _r(p, a) && y || _r(p, l) && (!y || o && y && !e) || !n && p.ctrlKey && y)
|
|
7295
7292
|
return !1;
|
|
7296
7293
|
if (!n && p.type === "touchstart" && p.touches?.length > 1)
|
|
7297
7294
|
return p.preventDefault(), !1;
|
|
@@ -7314,7 +7311,7 @@ function D0({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
7314
7311
|
$({
|
|
7315
7312
|
x: o.x,
|
|
7316
7313
|
y: o.y,
|
|
7317
|
-
zoom:
|
|
7314
|
+
zoom: Hr(o.zoom, t, n)
|
|
7318
7315
|
}, [
|
|
7319
7316
|
[0, 0],
|
|
7320
7317
|
[d.width, d.height]
|
|
@@ -7323,7 +7320,7 @@ function D0({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
7323
7320
|
p.wheelDelta(Oc);
|
|
7324
7321
|
function w(z, S) {
|
|
7325
7322
|
return f ? new Promise((T) => {
|
|
7326
|
-
p?.interpolate(S?.interpolate === "linear" ?
|
|
7323
|
+
p?.interpolate(S?.interpolate === "linear" ? to : Xo).transform(ts(f, S?.duration, S?.ease, () => T(!0)), z);
|
|
7327
7324
|
}) : Promise.resolve(!1);
|
|
7328
7325
|
}
|
|
7329
7326
|
function m({ noWheelClassName: z, noPanClassName: S, onPaneContextMenu: T, userSelectionActive: C, panOnScroll: P, panOnDrag: M, panOnScrollMode: K, panOnScrollSpeed: B, preventScrolling: W, zoomOnPinch: D, zoomOnScroll: X, zoomOnDoubleClick: q, zoomActivationKeyPressed: U, lib: I, onTransformChange: F, connectionInProgress: G, paneClickDistance: te, selectionOnDrag: ne }) {
|
|
@@ -7409,12 +7406,12 @@ function D0({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
7409
7406
|
}
|
|
7410
7407
|
function N(z, S) {
|
|
7411
7408
|
return f ? new Promise((T) => {
|
|
7412
|
-
p?.interpolate(S?.interpolate === "linear" ?
|
|
7409
|
+
p?.interpolate(S?.interpolate === "linear" ? to : Xo).scaleTo(ts(f, S?.duration, S?.ease, () => T(!0)), z);
|
|
7413
7410
|
}) : Promise.resolve(!1);
|
|
7414
7411
|
}
|
|
7415
7412
|
function V(z, S) {
|
|
7416
7413
|
return f ? new Promise((T) => {
|
|
7417
|
-
p?.interpolate(S?.interpolate === "linear" ?
|
|
7414
|
+
p?.interpolate(S?.interpolate === "linear" ? to : Xo).scaleBy(ts(f, S?.duration, S?.ease, () => T(!0)), z);
|
|
7418
7415
|
}) : Promise.resolve(!1);
|
|
7419
7416
|
}
|
|
7420
7417
|
function j(z) {
|
|
@@ -7482,7 +7479,7 @@ function Xn(e, t) {
|
|
|
7482
7479
|
let N = /* @__PURE__ */ E(() => {
|
|
7483
7480
|
if (!_.connection.inProgress)
|
|
7484
7481
|
return [!1, !1, !1, !1, null];
|
|
7485
|
-
const { fromHandle: D, toHandle: X, isValid: q } = _.connection, U = D && D.nodeId === w && D.type === r() && D.id === n(), I = X && X.nodeId === w && X.type === r() && X.id === n(), F = _.connectionMode ===
|
|
7482
|
+
const { fromHandle: D, toHandle: X, isValid: q } = _.connection, U = D && D.nodeId === w && D.type === r() && D.id === n(), I = X && X.nodeId === w && X.type === r() && X.id === n(), F = _.connectionMode === Ar.Strict ? D?.type !== r() : w !== D?.nodeId || n() !== D?.id;
|
|
7486
7483
|
return [
|
|
7487
7484
|
!0,
|
|
7488
7485
|
U,
|
|
@@ -9188,7 +9185,7 @@ function G0(e) {
|
|
|
9188
9185
|
set connection(r) {
|
|
9189
9186
|
Q(this.#q, r);
|
|
9190
9187
|
}
|
|
9191
|
-
#X = /* @__PURE__ */ E(() => e.props.connectionMode ??
|
|
9188
|
+
#X = /* @__PURE__ */ E(() => e.props.connectionMode ?? Ar.Strict);
|
|
9192
9189
|
get connectionMode() {
|
|
9193
9190
|
return c(this.#X);
|
|
9194
9191
|
}
|
|
@@ -9403,7 +9400,7 @@ function rn() {
|
|
|
9403
9400
|
throw new Error("To call useStore outside of <SvelteFlow /> you need to wrap your component in a <SvelteFlowProvider />");
|
|
9404
9401
|
return e.getStore();
|
|
9405
9402
|
}
|
|
9406
|
-
const mi = Symbol();
|
|
9403
|
+
const mi = /* @__PURE__ */ Symbol();
|
|
9407
9404
|
function Fc(e) {
|
|
9408
9405
|
const t = G0(e);
|
|
9409
9406
|
function n(H) {
|
|
@@ -10108,11 +10105,11 @@ function td(e, t) {
|
|
|
10108
10105
|
return n().parentLookup.has(ye);
|
|
10109
10106
|
}
|
|
10110
10107
|
let ie = /* @__PURE__ */ E(() => re(I)), fe = /* @__PURE__ */ Ee(null), pe = null, Ce = c(A), de = c(z), we = c(S), Oe = /* @__PURE__ */ E(() => n().nodeTypes[c(A)] ?? da), Y = /* @__PURE__ */ E(() => n().ariaLabelConfig);
|
|
10111
|
-
|
|
10108
|
+
Tr("svelteflow__node_connectable", {
|
|
10112
10109
|
get value() {
|
|
10113
10110
|
return c(te);
|
|
10114
10111
|
}
|
|
10115
|
-
}),
|
|
10112
|
+
}), Tr("svelteflow__node_id", I);
|
|
10116
10113
|
let je = /* @__PURE__ */ E(() => {
|
|
10117
10114
|
const ye = c(T) === void 0 ? c(K) ?? c(P) : c(K), Ye = c(C) === void 0 ? c(B) ?? c(M) : c(B);
|
|
10118
10115
|
if (!(ye === void 0 && Ye === void 0 && c(V) === void 0))
|
|
@@ -10510,7 +10507,7 @@ function rd(e, t) {
|
|
|
10510
10507
|
const n = v(t, "edge", 7), r = v(t, "store", 15), o = v(t, "onedgeclick", 7), i = v(t, "onedgecontextmenu", 7), s = v(t, "onedgepointerenter", 7), a = v(t, "onedgepointerleave", 7);
|
|
10511
10508
|
let l = /* @__PURE__ */ E(() => n().source), u = /* @__PURE__ */ E(() => n().target), d = /* @__PURE__ */ E(() => n().sourceX), p = /* @__PURE__ */ E(() => n().sourceY), f = /* @__PURE__ */ E(() => n().targetX), h = /* @__PURE__ */ E(() => n().targetY), y = /* @__PURE__ */ E(() => n().sourcePosition), w = /* @__PURE__ */ E(() => n().targetPosition), m = /* @__PURE__ */ E(() => yt(n().animated, !1)), b = /* @__PURE__ */ E(() => yt(n().selected, !1)), $ = /* @__PURE__ */ E(() => n().label), _ = /* @__PURE__ */ E(() => n().labelStyle), x = /* @__PURE__ */ E(() => yt(n().data, () => ({}), !0)), k = /* @__PURE__ */ E(() => n().style), N = /* @__PURE__ */ E(() => n().interactionWidth), V = /* @__PURE__ */ E(() => yt(n().type, "default")), j = /* @__PURE__ */ E(() => n().sourceHandle), A = /* @__PURE__ */ E(() => n().targetHandle), H = /* @__PURE__ */ E(() => n().markerStart), z = /* @__PURE__ */ E(() => n().markerEnd), S = /* @__PURE__ */ E(() => n().selectable), T = /* @__PURE__ */ E(() => n().focusable), C = /* @__PURE__ */ E(() => yt(n().deletable, !0)), P = /* @__PURE__ */ E(() => n().hidden), M = /* @__PURE__ */ E(() => n().zIndex), K = /* @__PURE__ */ E(() => n().class), B = /* @__PURE__ */ E(() => n().ariaLabel), W = null;
|
|
10512
10509
|
const { id: D } = n();
|
|
10513
|
-
|
|
10510
|
+
Tr("svelteflow__edge_id", D);
|
|
10514
10511
|
let X = /* @__PURE__ */ E(() => c(S) ?? r().elementsSelectable), q = /* @__PURE__ */ E(() => c(T) ?? r().edgesFocusable), U = /* @__PURE__ */ E(() => r().edgeTypes[c(V)] ?? fa), I = /* @__PURE__ */ E(() => c(H) ? `url('#${Ss(c(H), r().flowId)}')` : void 0), F = /* @__PURE__ */ E(() => c(z) ? `url('#${Ss(c(z), r().flowId)}')` : void 0);
|
|
10515
10512
|
function G(ie) {
|
|
10516
10513
|
const fe = r().edgeLookup.get(D);
|
|
@@ -11138,7 +11135,7 @@ function st() {
|
|
|
11138
11135
|
width: s.measured?.width ?? s.width,
|
|
11139
11136
|
height: s.measured?.height ?? s.height
|
|
11140
11137
|
};
|
|
11141
|
-
return
|
|
11138
|
+
return Ir(l);
|
|
11142
11139
|
};
|
|
11143
11140
|
function n(i, s, a = { replace: !1 }) {
|
|
11144
11141
|
c(e).nodes = lt(() => c(e).nodes).map((l) => {
|
|
@@ -11207,7 +11204,7 @@ function st() {
|
|
|
11207
11204
|
const p = c(e).nodeLookup.get(d.id);
|
|
11208
11205
|
if (!p || !l && d.id === i.id)
|
|
11209
11206
|
return !1;
|
|
11210
|
-
const f =
|
|
11207
|
+
const f = Ir(p), h = fo(f, u);
|
|
11211
11208
|
return s && h > 0 || h >= f.width * f.height || h >= u.width * u.height;
|
|
11212
11209
|
}) : [];
|
|
11213
11210
|
},
|
|
@@ -11851,7 +11848,7 @@ function fd(e, t) {
|
|
|
11851
11848
|
}
|
|
11852
11849
|
});
|
|
11853
11850
|
const we = Fn(mi);
|
|
11854
|
-
we && we.setStore && we.setStore(de),
|
|
11851
|
+
we && we.setStore && we.setStore(de), Tr(mi, {
|
|
11855
11852
|
provider: !1,
|
|
11856
11853
|
getStore() {
|
|
11857
11854
|
return de;
|
|
@@ -12310,7 +12307,7 @@ function fd(e, t) {
|
|
|
12310
12307
|
set store(Xe) {
|
|
12311
12308
|
de = Xe;
|
|
12312
12309
|
},
|
|
12313
|
-
children: (Xe,
|
|
12310
|
+
children: (Xe, br) => {
|
|
12314
12311
|
var sn = _m(), an = O(oe(sn), 2);
|
|
12315
12312
|
sd(an, {
|
|
12316
12313
|
get onedgeclick() {
|
|
@@ -12418,13 +12415,13 @@ function fd(e, t) {
|
|
|
12418
12415
|
});
|
|
12419
12416
|
var Tt = O(nt, 2);
|
|
12420
12417
|
{
|
|
12421
|
-
let Xe = /* @__PURE__ */ E(() => !!(de.selectionRect && de.selectionRectMode === "user")),
|
|
12418
|
+
let Xe = /* @__PURE__ */ E(() => !!(de.selectionRect && de.selectionRectMode === "user")), br = /* @__PURE__ */ E(() => de.selectionRect?.width), sn = /* @__PURE__ */ E(() => de.selectionRect?.height), an = /* @__PURE__ */ E(() => de.selectionRect?.x), ft = /* @__PURE__ */ E(() => de.selectionRect?.y);
|
|
12422
12419
|
pa(Tt, {
|
|
12423
12420
|
get isVisible() {
|
|
12424
12421
|
return c(Xe);
|
|
12425
12422
|
},
|
|
12426
12423
|
get width() {
|
|
12427
|
-
return c(
|
|
12424
|
+
return c(br);
|
|
12428
12425
|
},
|
|
12429
12426
|
get height() {
|
|
12430
12427
|
return c(sn);
|
|
@@ -12526,7 +12523,7 @@ se(
|
|
|
12526
12523
|
function pd(e, t) {
|
|
12527
12524
|
le(t, !0);
|
|
12528
12525
|
let n = v(t, "children", 7), r = /* @__PURE__ */ Ee(Fc({ props: {}, nodes: [], edges: [] }));
|
|
12529
|
-
|
|
12526
|
+
Tr(mi, {
|
|
12530
12527
|
provider: !0,
|
|
12531
12528
|
getStore() {
|
|
12532
12529
|
return c(r);
|
|
@@ -12549,7 +12546,7 @@ function pd(e, t) {
|
|
|
12549
12546
|
}
|
|
12550
12547
|
se(pd, { children: {} }, [], [], !0);
|
|
12551
12548
|
var Em = /* @__PURE__ */ ee("<button><!></button>");
|
|
12552
|
-
function
|
|
12549
|
+
function Qr(e, t) {
|
|
12553
12550
|
le(t, !0);
|
|
12554
12551
|
let n = v(t, "class", 7), r = v(t, "bgColor", 7), o = v(t, "bgColorHover", 7), i = v(t, "color", 7), s = v(t, "colorHover", 7), a = v(t, "borderColor", 7), l = v(t, "onclick", 7), u = v(t, "children", 7), d = /* @__PURE__ */ Ze(t, [
|
|
12555
12552
|
"$$slots",
|
|
@@ -12632,7 +12629,7 @@ function Ur(e, t) {
|
|
|
12632
12629
|
return Ge(h, () => u() ?? vt), Z(f), L(e, f), ue(p);
|
|
12633
12630
|
}
|
|
12634
12631
|
se(
|
|
12635
|
-
|
|
12632
|
+
Qr,
|
|
12636
12633
|
{
|
|
12637
12634
|
class: {},
|
|
12638
12635
|
bgColor: {},
|
|
@@ -12857,7 +12854,7 @@ function wd(e, t) {
|
|
|
12857
12854
|
{
|
|
12858
12855
|
var q = (ce) => {
|
|
12859
12856
|
var re = Vm(), ie = oe(re);
|
|
12860
|
-
|
|
12857
|
+
Qr(ie, Be(
|
|
12861
12858
|
{
|
|
12862
12859
|
onclick: H,
|
|
12863
12860
|
class: "svelte-flow__controls-zoomin",
|
|
@@ -12880,7 +12877,7 @@ function wd(e, t) {
|
|
|
12880
12877
|
}
|
|
12881
12878
|
));
|
|
12882
12879
|
var fe = O(ie, 2);
|
|
12883
|
-
|
|
12880
|
+
Qr(fe, Be(
|
|
12884
12881
|
{
|
|
12885
12882
|
onclick: z,
|
|
12886
12883
|
class: "svelte-flow__controls-zoomout",
|
|
@@ -12910,7 +12907,7 @@ function wd(e, t) {
|
|
|
12910
12907
|
var U = O(X, 2);
|
|
12911
12908
|
{
|
|
12912
12909
|
var I = (ce) => {
|
|
12913
|
-
|
|
12910
|
+
Qr(ce, Be(
|
|
12914
12911
|
{
|
|
12915
12912
|
class: "svelte-flow__controls-fitview",
|
|
12916
12913
|
onclick: S,
|
|
@@ -12937,7 +12934,7 @@ function wd(e, t) {
|
|
|
12937
12934
|
var F = O(U, 2);
|
|
12938
12935
|
{
|
|
12939
12936
|
var G = (ce) => {
|
|
12940
|
-
|
|
12937
|
+
Qr(ce, Be(
|
|
12941
12938
|
{
|
|
12942
12939
|
class: "svelte-flow__controls-interactive",
|
|
12943
12940
|
onclick: T,
|
|
@@ -14325,7 +14322,7 @@ function Pd(e, t) {
|
|
|
14325
14322
|
return ot(u, () => ({
|
|
14326
14323
|
...r,
|
|
14327
14324
|
class: `tf-tabs ${Ys(r), lt(() => r.class) ?? ""}`
|
|
14328
|
-
})), mt(u, 5, o,
|
|
14325
|
+
})), mt(u, 5, o, Vr, (d, p, f) => {
|
|
14329
14326
|
var h = ry();
|
|
14330
14327
|
xe(h, "tabindex", f), h.__click = () => a(c(p), f), h.__keydown = (b) => {
|
|
14331
14328
|
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), a(c(p), f));
|
|
@@ -14380,7 +14377,7 @@ function Nd(e, t) {
|
|
|
14380
14377
|
o(l), g();
|
|
14381
14378
|
}
|
|
14382
14379
|
}, a = uy();
|
|
14383
|
-
return mt(a, 21, n,
|
|
14380
|
+
return mt(a, 21, n, Vr, (l, u, d) => {
|
|
14384
14381
|
var p = ly(), f = R(p);
|
|
14385
14382
|
xe(f, "tabindex", d), f.__click = () => i(c(u)), f.__keydown = (k) => {
|
|
14386
14383
|
(k.key === "Enter" || k.key === " ") && (k.preventDefault(), i(c(u)));
|
|
@@ -14671,7 +14668,7 @@ se(
|
|
|
14671
14668
|
[],
|
|
14672
14669
|
!0
|
|
14673
14670
|
);
|
|
14674
|
-
const ho = Math.min,
|
|
14671
|
+
const ho = Math.min, Pr = Math.max, yi = Math.round, hn = (e) => ({
|
|
14675
14672
|
x: e,
|
|
14676
14673
|
y: e
|
|
14677
14674
|
}), wy = {
|
|
@@ -14684,12 +14681,12 @@ const ho = Math.min, Er = Math.max, yi = Math.round, hn = (e) => ({
|
|
|
14684
14681
|
end: "start"
|
|
14685
14682
|
};
|
|
14686
14683
|
function Es(e, t, n) {
|
|
14687
|
-
return
|
|
14684
|
+
return Pr(e, ho(t, n));
|
|
14688
14685
|
}
|
|
14689
14686
|
function Lo(e, t) {
|
|
14690
14687
|
return typeof e == "function" ? e(t) : e;
|
|
14691
14688
|
}
|
|
14692
|
-
function
|
|
14689
|
+
function vr(e) {
|
|
14693
14690
|
return e.split("-")[0];
|
|
14694
14691
|
}
|
|
14695
14692
|
function Vo(e) {
|
|
@@ -14703,7 +14700,7 @@ function ga(e) {
|
|
|
14703
14700
|
}
|
|
14704
14701
|
const xy = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
14705
14702
|
function Rn(e) {
|
|
14706
|
-
return xy.has(
|
|
14703
|
+
return xy.has(vr(e)) ? "y" : "x";
|
|
14707
14704
|
}
|
|
14708
14705
|
function va(e) {
|
|
14709
14706
|
return Md(Rn(e));
|
|
@@ -14736,7 +14733,7 @@ function Sy(e, t, n) {
|
|
|
14736
14733
|
}
|
|
14737
14734
|
function Ey(e, t, n, r) {
|
|
14738
14735
|
const o = Vo(e);
|
|
14739
|
-
let i = Sy(
|
|
14736
|
+
let i = Sy(vr(e), n === "start", r);
|
|
14740
14737
|
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ps)))), i;
|
|
14741
14738
|
}
|
|
14742
14739
|
function wi(e) {
|
|
@@ -14782,7 +14779,7 @@ function $l(e, t, n) {
|
|
|
14782
14779
|
reference: r,
|
|
14783
14780
|
floating: o
|
|
14784
14781
|
} = e;
|
|
14785
|
-
const i = Rn(t), s = va(t), a = ga(s), l =
|
|
14782
|
+
const i = Rn(t), s = va(t), a = ga(s), l = vr(t), u = i === "y", d = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, f = r[a] / 2 - o[a] / 2;
|
|
14786
14783
|
let h;
|
|
14787
14784
|
switch (l) {
|
|
14788
14785
|
case "top":
|
|
@@ -14992,7 +14989,7 @@ const My = (e) => ({
|
|
|
14992
14989
|
} = Lo(e, t);
|
|
14993
14990
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
14994
14991
|
return {};
|
|
14995
|
-
const b =
|
|
14992
|
+
const b = vr(o), $ = Rn(a), _ = vr(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = f || (_ || !w ? [wi(a)] : $y(a)), N = y !== "none";
|
|
14996
14993
|
!f && N && k.push(...Ey(a, w, y, x));
|
|
14997
14994
|
const V = [a, ...k], j = await Ld(t, m), A = [];
|
|
14998
14995
|
let H = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -15055,7 +15052,7 @@ async function Vy(e, t) {
|
|
|
15055
15052
|
placement: n,
|
|
15056
15053
|
platform: r,
|
|
15057
15054
|
elements: o
|
|
15058
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s =
|
|
15055
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = vr(n), a = Vo(n), l = Rn(n) === "y", u = Ly.has(s) ? -1 : 1, d = i && l ? -1 : 1, p = Lo(t, e);
|
|
15059
15056
|
let {
|
|
15060
15057
|
mainAxis: f,
|
|
15061
15058
|
crossAxis: h,
|
|
@@ -15127,7 +15124,7 @@ const Dy = function(e) {
|
|
|
15127
15124
|
} = Lo(e, t), u = {
|
|
15128
15125
|
x: n,
|
|
15129
15126
|
y: r
|
|
15130
|
-
}, d = await Ld(t, l), p = Rn(
|
|
15127
|
+
}, d = await Ld(t, l), p = Rn(vr(o)), f = Md(p);
|
|
15131
15128
|
let h = u[f], y = u[p];
|
|
15132
15129
|
if (i) {
|
|
15133
15130
|
const m = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", $ = h + d[m], _ = h - d[b];
|
|
@@ -15159,7 +15156,7 @@ const Dy = function(e) {
|
|
|
15159
15156
|
function ji() {
|
|
15160
15157
|
return typeof window < "u";
|
|
15161
15158
|
}
|
|
15162
|
-
function
|
|
15159
|
+
function Wr(e) {
|
|
15163
15160
|
return Vd(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
15164
15161
|
}
|
|
15165
15162
|
function zt(e) {
|
|
@@ -15194,7 +15191,7 @@ function Do(e) {
|
|
|
15194
15191
|
}
|
|
15195
15192
|
const Ay = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
15196
15193
|
function Hy(e) {
|
|
15197
|
-
return Ay.has(
|
|
15194
|
+
return Ay.has(Wr(e));
|
|
15198
15195
|
}
|
|
15199
15196
|
const Iy = [":popover-open", ":modal"];
|
|
15200
15197
|
function Ki(e) {
|
|
@@ -15213,7 +15210,7 @@ function ma(e) {
|
|
|
15213
15210
|
}
|
|
15214
15211
|
function Ry(e) {
|
|
15215
15212
|
let t = Gn(e);
|
|
15216
|
-
for (; vn(t) && !
|
|
15213
|
+
for (; vn(t) && !jr(t); ) {
|
|
15217
15214
|
if (ma(t))
|
|
15218
15215
|
return t;
|
|
15219
15216
|
if (Ki(t))
|
|
@@ -15226,8 +15223,8 @@ function ya() {
|
|
|
15226
15223
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
15227
15224
|
}
|
|
15228
15225
|
const By = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
15229
|
-
function
|
|
15230
|
-
return By.has(
|
|
15226
|
+
function jr(e) {
|
|
15227
|
+
return By.has(Wr(e));
|
|
15231
15228
|
}
|
|
15232
15229
|
function en(e) {
|
|
15233
15230
|
return zt(e).getComputedStyle(e);
|
|
@@ -15242,7 +15239,7 @@ function Ri(e) {
|
|
|
15242
15239
|
};
|
|
15243
15240
|
}
|
|
15244
15241
|
function Gn(e) {
|
|
15245
|
-
if (
|
|
15242
|
+
if (Wr(e) === "html")
|
|
15246
15243
|
return e;
|
|
15247
15244
|
const t = (
|
|
15248
15245
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -15255,7 +15252,7 @@ function Gn(e) {
|
|
|
15255
15252
|
}
|
|
15256
15253
|
function Dd(e) {
|
|
15257
15254
|
const t = Gn(e);
|
|
15258
|
-
return
|
|
15255
|
+
return jr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : vn(t) && Do(t) ? t : Dd(t);
|
|
15259
15256
|
}
|
|
15260
15257
|
function Od(e, t, n) {
|
|
15261
15258
|
var r;
|
|
@@ -15279,7 +15276,7 @@ function zd(e) {
|
|
|
15279
15276
|
function Ad(e) {
|
|
15280
15277
|
return Jt(e) ? e : e.contextElement;
|
|
15281
15278
|
}
|
|
15282
|
-
function
|
|
15279
|
+
function Nr(e) {
|
|
15283
15280
|
const t = Ad(e);
|
|
15284
15281
|
if (!vn(t))
|
|
15285
15282
|
return hn(1);
|
|
@@ -15309,14 +15306,14 @@ function go(e, t, n, r) {
|
|
|
15309
15306
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
15310
15307
|
const o = e.getBoundingClientRect(), i = Ad(e);
|
|
15311
15308
|
let s = hn(1);
|
|
15312
|
-
t && (r ? Jt(r) && (s =
|
|
15309
|
+
t && (r ? Jt(r) && (s = Nr(r)) : s = Nr(e));
|
|
15313
15310
|
const a = Yy(i, n, r) ? Hd(i) : hn(0);
|
|
15314
15311
|
let l = (o.left + a.x) / s.x, u = (o.top + a.y) / s.y, d = o.width / s.x, p = o.height / s.y;
|
|
15315
15312
|
if (i) {
|
|
15316
15313
|
const f = zt(i), h = r && Jt(r) ? zt(r) : r;
|
|
15317
15314
|
let y = f, w = Ns(y);
|
|
15318
15315
|
for (; w && r && h !== y; ) {
|
|
15319
|
-
const m =
|
|
15316
|
+
const m = Nr(w), b = w.getBoundingClientRect(), $ = en(w), _ = b.left + (w.clientLeft + parseFloat($.paddingLeft)) * m.x, x = b.top + (w.clientTop + parseFloat($.paddingTop)) * m.y;
|
|
15320
15317
|
l *= m.x, u *= m.y, d *= m.x, p *= m.y, l += _, u += x, y = zt(w), w = Ns(y);
|
|
15321
15318
|
}
|
|
15322
15319
|
}
|
|
@@ -15353,9 +15350,9 @@ function Fy(e) {
|
|
|
15353
15350
|
scrollTop: 0
|
|
15354
15351
|
}, u = hn(1);
|
|
15355
15352
|
const d = hn(0), p = vn(r);
|
|
15356
|
-
if ((p || !p && !i) && ((
|
|
15353
|
+
if ((p || !p && !i) && ((Wr(r) !== "body" || Do(s)) && (l = Ri(r)), vn(r))) {
|
|
15357
15354
|
const h = go(r);
|
|
15358
|
-
u =
|
|
15355
|
+
u = Nr(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
15359
15356
|
}
|
|
15360
15357
|
const f = s && !p && !i ? Id(s, l) : hn(0);
|
|
15361
15358
|
return {
|
|
@@ -15369,10 +15366,10 @@ function qy(e) {
|
|
|
15369
15366
|
return Array.from(e.getClientRects());
|
|
15370
15367
|
}
|
|
15371
15368
|
function Xy(e) {
|
|
15372
|
-
const t = In(e), n = Ri(e), r = e.ownerDocument.body, o =
|
|
15369
|
+
const t = In(e), n = Ri(e), r = e.ownerDocument.body, o = Pr(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Pr(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
15373
15370
|
let s = -n.scrollLeft + Bi(e);
|
|
15374
15371
|
const a = -n.scrollTop;
|
|
15375
|
-
return en(r).direction === "rtl" && (s +=
|
|
15372
|
+
return en(r).direction === "rtl" && (s += Pr(t.clientWidth, r.clientWidth) - o), {
|
|
15376
15373
|
width: o,
|
|
15377
15374
|
height: i,
|
|
15378
15375
|
x: s,
|
|
@@ -15402,7 +15399,7 @@ function Gy(e, t) {
|
|
|
15402
15399
|
}
|
|
15403
15400
|
const Uy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
15404
15401
|
function Qy(e, t) {
|
|
15405
|
-
const n = go(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = vn(e) ?
|
|
15402
|
+
const n = go(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = vn(e) ? Nr(e) : hn(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, u = r * i.y;
|
|
15406
15403
|
return {
|
|
15407
15404
|
width: s,
|
|
15408
15405
|
height: a,
|
|
@@ -15431,16 +15428,16 @@ function Sl(e, t, n) {
|
|
|
15431
15428
|
}
|
|
15432
15429
|
function Zd(e, t) {
|
|
15433
15430
|
const n = Gn(e);
|
|
15434
|
-
return n === t || !Jt(n) ||
|
|
15431
|
+
return n === t || !Jt(n) || jr(n) ? !1 : en(n).position === "fixed" || Zd(n, t);
|
|
15435
15432
|
}
|
|
15436
15433
|
function Jy(e, t) {
|
|
15437
15434
|
const n = t.get(e);
|
|
15438
15435
|
if (n)
|
|
15439
15436
|
return n;
|
|
15440
|
-
let r = Od(e, []).filter((a) => Jt(a) &&
|
|
15437
|
+
let r = Od(e, []).filter((a) => Jt(a) && Wr(a) !== "body"), o = null;
|
|
15441
15438
|
const i = en(e).position === "fixed";
|
|
15442
15439
|
let s = i ? Gn(e) : e;
|
|
15443
|
-
for (; Jt(s) && !
|
|
15440
|
+
for (; Jt(s) && !jr(s); ) {
|
|
15444
15441
|
const a = en(s), l = ma(s);
|
|
15445
15442
|
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && o && Uy.has(o.position) || Do(s) && !l && Zd(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = Gn(s);
|
|
15446
15443
|
}
|
|
@@ -15455,7 +15452,7 @@ function e2(e) {
|
|
|
15455
15452
|
} = e;
|
|
15456
15453
|
const i = [...n === "clippingAncestors" ? Ki(t) ? [] : Jy(t, this._c) : [].concat(n), r], s = i[0], a = i.reduce((l, u) => {
|
|
15457
15454
|
const d = Sl(t, u, o);
|
|
15458
|
-
return l.top =
|
|
15455
|
+
return l.top = Pr(d.top, l.top), l.right = ho(d.right, l.right), l.bottom = ho(d.bottom, l.bottom), l.left = Pr(d.left, l.left), l;
|
|
15459
15456
|
}, Sl(t, s, o));
|
|
15460
15457
|
return {
|
|
15461
15458
|
width: a.right - a.left,
|
|
@@ -15485,7 +15482,7 @@ function n2(e, t, n) {
|
|
|
15485
15482
|
l.x = Bi(o);
|
|
15486
15483
|
}
|
|
15487
15484
|
if (r || !r && !i)
|
|
15488
|
-
if ((
|
|
15485
|
+
if ((Wr(t) !== "body" || Do(o)) && (a = Ri(t)), r) {
|
|
15489
15486
|
const h = go(t, !0, i, t);
|
|
15490
15487
|
l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
|
|
15491
15488
|
} else o && u();
|
|
@@ -15515,7 +15512,7 @@ function jd(e, t) {
|
|
|
15515
15512
|
return n;
|
|
15516
15513
|
if (!vn(e)) {
|
|
15517
15514
|
let o = Gn(e);
|
|
15518
|
-
for (; o && !
|
|
15515
|
+
for (; o && !jr(o); ) {
|
|
15519
15516
|
if (Jt(o) && !os(o))
|
|
15520
15517
|
return o;
|
|
15521
15518
|
o = Gn(o);
|
|
@@ -15525,7 +15522,7 @@ function jd(e, t) {
|
|
|
15525
15522
|
let r = El(e, t);
|
|
15526
15523
|
for (; r && Hy(r) && os(r); )
|
|
15527
15524
|
r = El(r, t);
|
|
15528
|
-
return r &&
|
|
15525
|
+
return r && jr(r) && os(r) && !ma(r) ? n : r || Ry(e) || n;
|
|
15529
15526
|
}
|
|
15530
15527
|
const r2 = async function(e) {
|
|
15531
15528
|
const t = this.getOffsetParent || jd, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -15550,7 +15547,7 @@ const i2 = {
|
|
|
15550
15547
|
getElementRects: r2,
|
|
15551
15548
|
getClientRects: qy,
|
|
15552
15549
|
getDimensions: t2,
|
|
15553
|
-
getScale:
|
|
15550
|
+
getScale: Nr,
|
|
15554
15551
|
isElement: Jt,
|
|
15555
15552
|
isRTL: o2
|
|
15556
15553
|
}, s2 = Dy, a2 = Oy, l2 = Ty, u2 = My, c2 = (e, t, n) => {
|
|
@@ -16016,10 +16013,10 @@ function Yt(e, t) {
|
|
|
16016
16013
|
});
|
|
16017
16014
|
}
|
|
16018
16015
|
Z(nt);
|
|
16019
|
-
var Xe = O(nt, 2),
|
|
16016
|
+
var Xe = O(nt, 2), br = O(R(Xe));
|
|
16020
16017
|
{
|
|
16021
16018
|
let ft = /* @__PURE__ */ E(() => n().maxLoopCount || "0");
|
|
16022
|
-
Ke(
|
|
16019
|
+
Ke(br, {
|
|
16023
16020
|
rows: 1,
|
|
16024
16021
|
style: "width: 100%;",
|
|
16025
16022
|
onchange: (xt) => {
|
|
@@ -16073,10 +16070,10 @@ function Yt(e, t) {
|
|
|
16073
16070
|
});
|
|
16074
16071
|
}
|
|
16075
16072
|
Z(nt);
|
|
16076
|
-
var Xe = O(nt, 2),
|
|
16073
|
+
var Xe = O(nt, 2), br = O(R(Xe));
|
|
16077
16074
|
{
|
|
16078
16075
|
let ft = /* @__PURE__ */ E(() => n().maxRetryCount || "3");
|
|
16079
|
-
Ke(
|
|
16076
|
+
Ke(br, {
|
|
16080
16077
|
rows: 1,
|
|
16081
16078
|
style: "width: 100%;",
|
|
16082
16079
|
onchange: (xt) => {
|
|
@@ -17060,7 +17057,7 @@ function Gd(e, t) {
|
|
|
17060
17057
|
{
|
|
17061
17058
|
var x = (S) => {
|
|
17062
17059
|
var T = Se(), C = oe(T);
|
|
17063
|
-
mt(C, 17, r,
|
|
17060
|
+
mt(C, 17, r, Vr, (P, M) => {
|
|
17064
17061
|
ve();
|
|
17065
17062
|
var K = ke(" ");
|
|
17066
17063
|
L(P, K);
|
|
@@ -19209,11 +19206,11 @@ function lf(e, t) {
|
|
|
19209
19206
|
}
|
|
19210
19207
|
}), Z(p);
|
|
19211
19208
|
var h = O(p, 2), y = R(h);
|
|
19212
|
-
mt(y, 21, () => o,
|
|
19209
|
+
mt(y, 21, () => o, Vr, (b, $) => {
|
|
19213
19210
|
Ts(b, Be(() => c($)));
|
|
19214
19211
|
}), Z(y);
|
|
19215
19212
|
var w = O(y, 2);
|
|
19216
|
-
mt(w, 21, () => s,
|
|
19213
|
+
mt(w, 21, () => s, Vr, (b, $) => {
|
|
19217
19214
|
Ts(b, Be(() => c($)));
|
|
19218
19215
|
}), Z(w), Z(h), Z(d);
|
|
19219
19216
|
var m = O(d, 2);
|
|
@@ -19366,7 +19363,7 @@ function uf(e, t) {
|
|
|
19366
19363
|
{
|
|
19367
19364
|
var j = (S) => {
|
|
19368
19365
|
var T = Se(), C = oe(T);
|
|
19369
|
-
mt(C, 17, () => h,
|
|
19366
|
+
mt(C, 17, () => h, Vr, (P, M) => {
|
|
19370
19367
|
var K = Se(), B = oe(K);
|
|
19371
19368
|
{
|
|
19372
19369
|
var W = (X) => {
|
|
@@ -20041,7 +20038,7 @@ function Ab(e, t) {
|
|
|
20041
20038
|
} catch {
|
|
20042
20039
|
console.error("Invalid JSON data:", o);
|
|
20043
20040
|
}
|
|
20044
|
-
Le.init(o?.nodes || [], o?.edges || []),
|
|
20041
|
+
Le.init(o?.nodes || [], o?.edges || []), Tr("tinyflow_options", n());
|
|
20045
20042
|
var i = {
|
|
20046
20043
|
get options() {
|
|
20047
20044
|
return n();
|
|
@@ -20110,8 +20107,8 @@ const Ib = /* @__PURE__ */ df({
|
|
|
20110
20107
|
}), (a, l) => (vf(), gf("div", {
|
|
20111
20108
|
ref_key: "divRef",
|
|
20112
20109
|
ref: r,
|
|
20113
|
-
class: yf(["tinyflow",
|
|
20114
|
-
style: mf(
|
|
20110
|
+
class: yf(["tinyflow", e.className]),
|
|
20111
|
+
style: mf(e.style)
|
|
20115
20112
|
}, null, 6));
|
|
20116
20113
|
}
|
|
20117
20114
|
});
|