react-semaphor 0.0.385 → 0.0.387
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{index-LX2lZe9q.js → index-6C0raQZK.js} +71 -71
- package/dist/chunks/{index-pusA885l.js → index-DEK6orAX.js} +931 -899
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +56 -51
- package/dist/index.js +2392 -2427
- package/dist/style.css +1 -1
- package/dist/types/main.d.ts +7 -0
- package/package.json +1 -1
|
@@ -265,7 +265,7 @@ const It = (e) => {
|
|
|
265
265
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
266
266
|
M6.test(e) && !T6.test(e)
|
|
267
267
|
), nP = () => !1, H6 = (e) => D6.test(e), j6 = (e) => I6.test(e), W6 = () => {
|
|
268
|
-
const e = It("colors"), t = It("spacing"), n = It("blur"), r = It("brightness"), o = It("borderColor"), i = It("borderRadius"), a = It("borderSpacing"), s = It("borderWidth"), l = It("contrast"), c = It("grayscale"), u = It("hueRotate"), d = It("invert"), h = It("gap"), f = It("gradientColorStops"), p = It("gradientColorStopPositions"), g = It("inset"), m = It("margin"), b = It("opacity"), y = It("padding"), w = It("saturate"), _ = It("scale"), x = It("sepia"), S = It("skew"), E = It("space"), k = It("translate"), O = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", He, t], I = () => [He, t],
|
|
268
|
+
const e = It("colors"), t = It("spacing"), n = It("blur"), r = It("brightness"), o = It("borderColor"), i = It("borderRadius"), a = It("borderSpacing"), s = It("borderWidth"), l = It("contrast"), c = It("grayscale"), u = It("hueRotate"), d = It("invert"), h = It("gap"), f = It("gradientColorStops"), p = It("gradientColorStopPositions"), g = It("inset"), m = It("margin"), b = It("opacity"), y = It("padding"), w = It("saturate"), _ = It("scale"), x = It("sepia"), S = It("skew"), E = It("space"), k = It("translate"), O = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", He, t], I = () => [He, t], W = () => ["", Go, Si], $ = () => ["auto", ul, He], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], N = () => ["solid", "dashed", "dotted", "double", "none"], A = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", He], P = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [ul, He];
|
|
269
269
|
return {
|
|
270
270
|
cacheSize: 500,
|
|
271
271
|
separator: ":",
|
|
@@ -273,26 +273,26 @@ const It = (e) => {
|
|
|
273
273
|
colors: [Mc],
|
|
274
274
|
spacing: [Go, Si],
|
|
275
275
|
blur: ["none", "", Ci, He],
|
|
276
|
-
brightness:
|
|
276
|
+
brightness: B(),
|
|
277
277
|
borderColor: [e],
|
|
278
278
|
borderRadius: ["none", "", "full", Ci, He],
|
|
279
279
|
borderSpacing: I(),
|
|
280
|
-
borderWidth:
|
|
281
|
-
contrast:
|
|
280
|
+
borderWidth: W(),
|
|
281
|
+
contrast: B(),
|
|
282
282
|
grayscale: H(),
|
|
283
|
-
hueRotate:
|
|
283
|
+
hueRotate: B(),
|
|
284
284
|
invert: H(),
|
|
285
285
|
gap: I(),
|
|
286
286
|
gradientColorStops: [e],
|
|
287
287
|
gradientColorStopPositions: [A6, Si],
|
|
288
288
|
inset: D(),
|
|
289
289
|
margin: D(),
|
|
290
|
-
opacity:
|
|
290
|
+
opacity: B(),
|
|
291
291
|
padding: I(),
|
|
292
|
-
saturate:
|
|
293
|
-
scale:
|
|
292
|
+
saturate: B(),
|
|
293
|
+
scale: B(),
|
|
294
294
|
sepia: H(),
|
|
295
|
-
skew:
|
|
295
|
+
skew: B(),
|
|
296
296
|
space: I(),
|
|
297
297
|
translate: I()
|
|
298
298
|
},
|
|
@@ -1597,7 +1597,7 @@ const It = (e) => {
|
|
|
1597
1597
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1598
1598
|
*/
|
|
1599
1599
|
"ring-w": [{
|
|
1600
|
-
ring:
|
|
1600
|
+
ring: W()
|
|
1601
1601
|
}],
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Ring Width Inset
|
|
@@ -1867,7 +1867,7 @@ const It = (e) => {
|
|
|
1867
1867
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
1868
1868
|
*/
|
|
1869
1869
|
duration: [{
|
|
1870
|
-
duration:
|
|
1870
|
+
duration: B()
|
|
1871
1871
|
}],
|
|
1872
1872
|
/**
|
|
1873
1873
|
* Transition Timing Function
|
|
@@ -1881,7 +1881,7 @@ const It = (e) => {
|
|
|
1881
1881
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
1882
1882
|
*/
|
|
1883
1883
|
delay: [{
|
|
1884
|
-
delay:
|
|
1884
|
+
delay: B()
|
|
1885
1885
|
}],
|
|
1886
1886
|
/**
|
|
1887
1887
|
* Animation
|
|
@@ -4059,7 +4059,7 @@ function hve(e, t) {
|
|
|
4059
4059
|
return o || i;
|
|
4060
4060
|
}
|
|
4061
4061
|
function k8(e) {
|
|
4062
|
-
return e.startsWith(`${Ly}.`) ? e : `${Ly}.${e}
|
|
4062
|
+
return e ? e != null && e.startsWith(`${Ly}.`) ? e : `${Ly}.${e}` : "";
|
|
4063
4063
|
}
|
|
4064
4064
|
function P8({
|
|
4065
4065
|
schemaName: e,
|
|
@@ -5052,11 +5052,11 @@ async function vve(e) {
|
|
|
5052
5052
|
var Hh = { exports: {} };
|
|
5053
5053
|
Hh.exports;
|
|
5054
5054
|
(function(e, t) {
|
|
5055
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", m = "[object Number]", b = "[object Null]", y = "[object Object]", w = "[object Proxy]", _ = "[object RegExp]", x = "[object Set]", S = "[object String]", E = "[object Undefined]", k = "[object WeakMap]", O = "[object ArrayBuffer]", M = "[object DataView]", D = "[object Float32Array]", I = "[object Float64Array]",
|
|
5056
|
-
R[D] = R[I] = R[
|
|
5057
|
-
var
|
|
5055
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", f = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", m = "[object Number]", b = "[object Null]", y = "[object Object]", w = "[object Proxy]", _ = "[object RegExp]", x = "[object Set]", S = "[object String]", E = "[object Undefined]", k = "[object WeakMap]", O = "[object ArrayBuffer]", M = "[object DataView]", D = "[object Float32Array]", I = "[object Float64Array]", W = "[object Int8Array]", $ = "[object Int16Array]", T = "[object Int32Array]", N = "[object Uint8Array]", A = "[object Uint8ClampedArray]", F = "[object Uint16Array]", H = "[object Uint32Array]", P = /[\\^$.*+?()[\]{}|]/g, B = /^\[object .+?Constructor\]$/, L = /^(?:0|[1-9]\d*)$/, R = {};
|
|
5056
|
+
R[D] = R[I] = R[W] = R[$] = R[T] = R[N] = R[A] = R[F] = R[H] = !0, R[s] = R[l] = R[O] = R[u] = R[M] = R[d] = R[h] = R[f] = R[g] = R[m] = R[y] = R[_] = R[x] = R[S] = R[k] = !1;
|
|
5057
|
+
var U = typeof li == "object" && li && li.Object === Object && li, G = typeof self == "object" && self && self.Object === Object && self, q = U || G || Function("return this")(), V = t && !t.nodeType && t, j = V && !0 && e && !e.nodeType && e, K = j && j.exports === V, ee = K && U.process, re = function() {
|
|
5058
5058
|
try {
|
|
5059
|
-
var z =
|
|
5059
|
+
var z = j && j.require && j.require("util").types;
|
|
5060
5060
|
return z || ee && ee.binding && ee.binding("util");
|
|
5061
5061
|
} catch {
|
|
5062
5062
|
}
|
|
@@ -5276,7 +5276,7 @@ Hh.exports;
|
|
|
5276
5276
|
function O3(z) {
|
|
5277
5277
|
if (!ba(z) || G3(z))
|
|
5278
5278
|
return !1;
|
|
5279
|
-
var X = Pm(z) ? ue :
|
|
5279
|
+
var X = Pm(z) ? ue : B;
|
|
5280
5280
|
return X.test(Z3(z));
|
|
5281
5281
|
}
|
|
5282
5282
|
function M3(z) {
|
|
@@ -7460,7 +7460,7 @@ function E9({
|
|
|
7460
7460
|
(N) => N.actions.setFilterValues
|
|
7461
7461
|
), D = se((N) => N.filterValues), I = se(
|
|
7462
7462
|
(N) => N.actions.setThemeStyle
|
|
7463
|
-
),
|
|
7463
|
+
), W = se(
|
|
7464
7464
|
(N) => N.actions.setDashboardTheme
|
|
7465
7465
|
), $ = se((N) => N.actions.setOnEvent);
|
|
7466
7466
|
we(() => {
|
|
@@ -7468,9 +7468,9 @@ function E9({
|
|
|
7468
7468
|
}, [s, O]), we(() => {
|
|
7469
7469
|
if (g) {
|
|
7470
7470
|
const N = IP(g);
|
|
7471
|
-
|
|
7471
|
+
W(N);
|
|
7472
7472
|
}
|
|
7473
|
-
}, [g,
|
|
7473
|
+
}, [g, W]), we(() => {
|
|
7474
7474
|
t && m(t);
|
|
7475
7475
|
}, [t, m]);
|
|
7476
7476
|
const T = qe(() => {
|
|
@@ -7487,20 +7487,20 @@ function E9({
|
|
|
7487
7487
|
c && c.dashboard && T();
|
|
7488
7488
|
}, [g, e, b, T, c]), we(() => {
|
|
7489
7489
|
var L, R;
|
|
7490
|
-
function N(
|
|
7491
|
-
const q =
|
|
7492
|
-
for (const
|
|
7493
|
-
const K = q.find((ee) => ee.id ===
|
|
7494
|
-
K &&
|
|
7495
|
-
filterId:
|
|
7490
|
+
function N(U, G) {
|
|
7491
|
+
const q = U.filters || [], V = [];
|
|
7492
|
+
for (const j of G) {
|
|
7493
|
+
const K = q.find((ee) => ee.id === j.filterId);
|
|
7494
|
+
K && V.push({
|
|
7495
|
+
filterId: j.filterId,
|
|
7496
7496
|
connectionType: K.database === "NA" ? "api" : "database",
|
|
7497
7497
|
name: K.column,
|
|
7498
7498
|
operation: K.operation,
|
|
7499
7499
|
valueType: fu(K),
|
|
7500
|
-
values:
|
|
7500
|
+
values: j.values
|
|
7501
7501
|
});
|
|
7502
7502
|
}
|
|
7503
|
-
return
|
|
7503
|
+
return V;
|
|
7504
7504
|
}
|
|
7505
7505
|
if (!c || !c.dashboard) return;
|
|
7506
7506
|
const {
|
|
@@ -7508,10 +7508,10 @@ function E9({
|
|
|
7508
7508
|
filterValues: F,
|
|
7509
7509
|
defaultLensId: H,
|
|
7510
7510
|
lenses: P
|
|
7511
|
-
} = c,
|
|
7511
|
+
} = c, B = N(A, f || []);
|
|
7512
7512
|
w(
|
|
7513
7513
|
A,
|
|
7514
|
-
(!F || (F == null ? void 0 : F.length) === 0 ?
|
|
7514
|
+
(!F || (F == null ? void 0 : F.length) === 0 ? B : F) || []
|
|
7515
7515
|
), H && k(H), P && E(P), _(i || ((R = (L = A == null ? void 0 : A.sheets) == null ? void 0 : L[0]) == null ? void 0 : R.id) || null);
|
|
7516
7516
|
}, [
|
|
7517
7517
|
c,
|
|
@@ -7962,7 +7962,7 @@ var j9 = C.forwardRef((e, t) => {
|
|
|
7962
7962
|
if (k.target === k.currentTarget && O && !b) {
|
|
7963
7963
|
const M = new CustomEvent(Vm, $9);
|
|
7964
7964
|
if (k.currentTarget.dispatchEvent(M), !M.defaultPrevented) {
|
|
7965
|
-
const D = _().filter((N) => N.focusable), I = D.find((N) => N.active),
|
|
7965
|
+
const D = _().filter((N) => N.focusable), I = D.find((N) => N.active), W = D.find((N) => N.id === g), T = [I, W, ...D].filter(
|
|
7966
7966
|
Boolean
|
|
7967
7967
|
).map((N) => N.ref.current);
|
|
7968
7968
|
VP(T, u);
|
|
@@ -8307,43 +8307,43 @@ var rO = { exports: {} }, Sd = {}, n0 = { exports: {} };
|
|
|
8307
8307
|
(function(n, r) {
|
|
8308
8308
|
r(t);
|
|
8309
8309
|
})(li, function(n) {
|
|
8310
|
-
function r(
|
|
8310
|
+
function r(j) {
|
|
8311
8311
|
return function(ee, re, Z, ie, te, fe, he) {
|
|
8312
|
-
return
|
|
8312
|
+
return j(ee, re, he);
|
|
8313
8313
|
};
|
|
8314
8314
|
}
|
|
8315
|
-
function o(
|
|
8315
|
+
function o(j) {
|
|
8316
8316
|
return function(ee, re, Z, ie) {
|
|
8317
8317
|
if (!ee || !re || typeof ee != "object" || typeof re != "object")
|
|
8318
|
-
return
|
|
8318
|
+
return j(ee, re, Z, ie);
|
|
8319
8319
|
var te = ie.get(ee), fe = ie.get(re);
|
|
8320
8320
|
if (te && fe)
|
|
8321
8321
|
return te === re && fe === ee;
|
|
8322
8322
|
ie.set(ee, re), ie.set(re, ee);
|
|
8323
|
-
var he =
|
|
8323
|
+
var he = j(ee, re, Z, ie);
|
|
8324
8324
|
return ie.delete(ee), ie.delete(re), he;
|
|
8325
8325
|
};
|
|
8326
8326
|
}
|
|
8327
|
-
function i(
|
|
8327
|
+
function i(j, K) {
|
|
8328
8328
|
var ee = {};
|
|
8329
|
-
for (var re in
|
|
8330
|
-
ee[re] =
|
|
8329
|
+
for (var re in j)
|
|
8330
|
+
ee[re] = j[re];
|
|
8331
8331
|
for (var re in K)
|
|
8332
8332
|
ee[re] = K[re];
|
|
8333
8333
|
return ee;
|
|
8334
8334
|
}
|
|
8335
|
-
function a(
|
|
8336
|
-
return
|
|
8335
|
+
function a(j) {
|
|
8336
|
+
return j.constructor === Object || j.constructor == null;
|
|
8337
8337
|
}
|
|
8338
|
-
function s(
|
|
8339
|
-
return typeof
|
|
8338
|
+
function s(j) {
|
|
8339
|
+
return typeof j.then == "function";
|
|
8340
8340
|
}
|
|
8341
|
-
function l(
|
|
8342
|
-
return
|
|
8341
|
+
function l(j, K) {
|
|
8342
|
+
return j === K || j !== j && K !== K;
|
|
8343
8343
|
}
|
|
8344
8344
|
var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", h = "[object RegExp]", f = "[object Map]", p = "[object Number]", g = "[object Object]", m = "[object Set]", b = "[object String]", y = Object.prototype.toString;
|
|
8345
|
-
function w(
|
|
8346
|
-
var K =
|
|
8345
|
+
function w(j) {
|
|
8346
|
+
var K = j.areArraysEqual, ee = j.areDatesEqual, re = j.areMapsEqual, Z = j.areObjectsEqual, ie = j.areRegExpsEqual, te = j.areSetsEqual, fe = j.createIsNestedEqual, he = fe(_e);
|
|
8347
8347
|
function _e(be, xe, Ve) {
|
|
8348
8348
|
if (be === xe)
|
|
8349
8349
|
return !0;
|
|
@@ -8359,67 +8359,67 @@ var rO = { exports: {} }, Sd = {}, n0 = { exports: {} };
|
|
|
8359
8359
|
}
|
|
8360
8360
|
return _e;
|
|
8361
8361
|
}
|
|
8362
|
-
function _(
|
|
8363
|
-
var Z =
|
|
8362
|
+
function _(j, K, ee, re) {
|
|
8363
|
+
var Z = j.length;
|
|
8364
8364
|
if (K.length !== Z)
|
|
8365
8365
|
return !1;
|
|
8366
8366
|
for (; Z-- > 0; )
|
|
8367
|
-
if (!ee(
|
|
8367
|
+
if (!ee(j[Z], K[Z], Z, Z, j, K, re))
|
|
8368
8368
|
return !1;
|
|
8369
8369
|
return !0;
|
|
8370
8370
|
}
|
|
8371
8371
|
var x = o(_);
|
|
8372
|
-
function S(
|
|
8373
|
-
return l(
|
|
8372
|
+
function S(j, K) {
|
|
8373
|
+
return l(j.valueOf(), K.valueOf());
|
|
8374
8374
|
}
|
|
8375
|
-
function E(
|
|
8376
|
-
var Z =
|
|
8375
|
+
function E(j, K, ee, re) {
|
|
8376
|
+
var Z = j.size === K.size;
|
|
8377
8377
|
if (!Z)
|
|
8378
8378
|
return !1;
|
|
8379
|
-
if (!
|
|
8379
|
+
if (!j.size)
|
|
8380
8380
|
return !0;
|
|
8381
8381
|
var ie = {}, te = 0;
|
|
8382
|
-
return
|
|
8382
|
+
return j.forEach(function(fe, he) {
|
|
8383
8383
|
if (Z) {
|
|
8384
8384
|
var _e = !1, be = 0;
|
|
8385
8385
|
K.forEach(function(xe, Ve) {
|
|
8386
|
-
!_e && !ie[be] && (_e = ee(he, Ve, te, be,
|
|
8386
|
+
!_e && !ie[be] && (_e = ee(he, Ve, te, be, j, K, re) && ee(fe, xe, he, Ve, j, K, re)) && (ie[be] = !0), be++;
|
|
8387
8387
|
}), te++, Z = _e;
|
|
8388
8388
|
}
|
|
8389
8389
|
}), Z;
|
|
8390
8390
|
}
|
|
8391
8391
|
var k = o(E), O = "_owner", M = Object.prototype.hasOwnProperty;
|
|
8392
|
-
function D(
|
|
8393
|
-
var Z = Object.keys(
|
|
8392
|
+
function D(j, K, ee, re) {
|
|
8393
|
+
var Z = Object.keys(j), ie = Z.length;
|
|
8394
8394
|
if (Object.keys(K).length !== ie)
|
|
8395
8395
|
return !1;
|
|
8396
8396
|
for (var te; ie-- > 0; ) {
|
|
8397
8397
|
if (te = Z[ie], te === O) {
|
|
8398
|
-
var fe = !!
|
|
8398
|
+
var fe = !!j.$$typeof, he = !!K.$$typeof;
|
|
8399
8399
|
if ((fe || he) && fe !== he)
|
|
8400
8400
|
return !1;
|
|
8401
8401
|
}
|
|
8402
|
-
if (!M.call(K, te) || !ee(
|
|
8402
|
+
if (!M.call(K, te) || !ee(j[te], K[te], te, te, j, K, re))
|
|
8403
8403
|
return !1;
|
|
8404
8404
|
}
|
|
8405
8405
|
return !0;
|
|
8406
8406
|
}
|
|
8407
8407
|
var I = o(D);
|
|
8408
|
-
function j
|
|
8409
|
-
return
|
|
8408
|
+
function W(j, K) {
|
|
8409
|
+
return j.source === K.source && j.flags === K.flags;
|
|
8410
8410
|
}
|
|
8411
|
-
function $(
|
|
8412
|
-
var Z =
|
|
8411
|
+
function $(j, K, ee, re) {
|
|
8412
|
+
var Z = j.size === K.size;
|
|
8413
8413
|
if (!Z)
|
|
8414
8414
|
return !1;
|
|
8415
|
-
if (!
|
|
8415
|
+
if (!j.size)
|
|
8416
8416
|
return !0;
|
|
8417
8417
|
var ie = {};
|
|
8418
|
-
return
|
|
8418
|
+
return j.forEach(function(te, fe) {
|
|
8419
8419
|
if (Z) {
|
|
8420
8420
|
var he = !1, _e = 0;
|
|
8421
8421
|
K.forEach(function(be, xe) {
|
|
8422
|
-
!he && !ie[_e] && (he = ee(te, be, fe, xe,
|
|
8422
|
+
!he && !ie[_e] && (he = ee(te, be, fe, xe, j, K, re)) && (ie[_e] = !0), _e++;
|
|
8423
8423
|
}), Z = he;
|
|
8424
8424
|
}
|
|
8425
8425
|
}), Z;
|
|
@@ -8429,7 +8429,7 @@ var rO = { exports: {} }, Sd = {}, n0 = { exports: {} };
|
|
|
8429
8429
|
areDatesEqual: S,
|
|
8430
8430
|
areMapsEqual: E,
|
|
8431
8431
|
areObjectsEqual: D,
|
|
8432
|
-
areRegExpsEqual:
|
|
8432
|
+
areRegExpsEqual: W,
|
|
8433
8433
|
areSetsEqual: $,
|
|
8434
8434
|
createIsNestedEqual: r
|
|
8435
8435
|
}), A = Object.freeze({
|
|
@@ -8437,41 +8437,41 @@ var rO = { exports: {} }, Sd = {}, n0 = { exports: {} };
|
|
|
8437
8437
|
areDatesEqual: S,
|
|
8438
8438
|
areMapsEqual: k,
|
|
8439
8439
|
areObjectsEqual: I,
|
|
8440
|
-
areRegExpsEqual:
|
|
8440
|
+
areRegExpsEqual: W,
|
|
8441
8441
|
areSetsEqual: T,
|
|
8442
8442
|
createIsNestedEqual: r
|
|
8443
8443
|
}), F = w(N);
|
|
8444
|
-
function H(
|
|
8445
|
-
return F(
|
|
8444
|
+
function H(j, K) {
|
|
8445
|
+
return F(j, K, void 0);
|
|
8446
8446
|
}
|
|
8447
8447
|
var P = w(i(N, { createIsNestedEqual: function() {
|
|
8448
8448
|
return l;
|
|
8449
8449
|
} }));
|
|
8450
|
-
function
|
|
8451
|
-
return P(
|
|
8450
|
+
function B(j, K) {
|
|
8451
|
+
return P(j, K, void 0);
|
|
8452
8452
|
}
|
|
8453
8453
|
var L = w(A);
|
|
8454
|
-
function R(
|
|
8455
|
-
return L(
|
|
8454
|
+
function R(j, K) {
|
|
8455
|
+
return L(j, K, /* @__PURE__ */ new WeakMap());
|
|
8456
8456
|
}
|
|
8457
|
-
var
|
|
8457
|
+
var U = w(i(A, {
|
|
8458
8458
|
createIsNestedEqual: function() {
|
|
8459
8459
|
return l;
|
|
8460
8460
|
}
|
|
8461
8461
|
}));
|
|
8462
|
-
function G(
|
|
8463
|
-
return
|
|
8462
|
+
function G(j, K) {
|
|
8463
|
+
return U(j, K, /* @__PURE__ */ new WeakMap());
|
|
8464
8464
|
}
|
|
8465
|
-
function q(
|
|
8466
|
-
return w(i(N,
|
|
8465
|
+
function q(j) {
|
|
8466
|
+
return w(i(N, j(N)));
|
|
8467
8467
|
}
|
|
8468
|
-
function
|
|
8469
|
-
var K = w(i(A,
|
|
8468
|
+
function V(j) {
|
|
8469
|
+
var K = w(i(A, j(A)));
|
|
8470
8470
|
return function(ee, re, Z) {
|
|
8471
8471
|
return Z === void 0 && (Z = /* @__PURE__ */ new WeakMap()), K(ee, re, Z);
|
|
8472
8472
|
};
|
|
8473
8473
|
}
|
|
8474
|
-
n.circularDeepEqual = R, n.circularShallowEqual = G, n.createCustomCircularEqual =
|
|
8474
|
+
n.circularDeepEqual = R, n.circularShallowEqual = G, n.createCustomCircularEqual = V, n.createCustomEqual = q, n.deepEqual = H, n.sameValueZeroEqual = l, n.shallowEqual = B, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
8475
8475
|
});
|
|
8476
8476
|
})(n0, n0.exports);
|
|
8477
8477
|
var Ow = n0.exports;
|
|
@@ -9032,14 +9032,14 @@ function C$() {
|
|
|
9032
9032
|
}
|
|
9033
9033
|
}
|
|
9034
9034
|
}
|
|
9035
|
-
var x = l, S = c, E = s, k = a, O = t, M = u, D = r, I = p,
|
|
9035
|
+
var x = l, S = c, E = s, k = a, O = t, M = u, D = r, I = p, W = f, $ = n, T = i, N = o, A = d, F = !1;
|
|
9036
9036
|
function H(Z) {
|
|
9037
9037
|
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(Z) || _(Z) === l;
|
|
9038
9038
|
}
|
|
9039
9039
|
function P(Z) {
|
|
9040
9040
|
return _(Z) === c;
|
|
9041
9041
|
}
|
|
9042
|
-
function
|
|
9042
|
+
function B(Z) {
|
|
9043
9043
|
return _(Z) === s;
|
|
9044
9044
|
}
|
|
9045
9045
|
function L(Z) {
|
|
@@ -9048,7 +9048,7 @@ function C$() {
|
|
|
9048
9048
|
function R(Z) {
|
|
9049
9049
|
return typeof Z == "object" && Z !== null && Z.$$typeof === t;
|
|
9050
9050
|
}
|
|
9051
|
-
function
|
|
9051
|
+
function U(Z) {
|
|
9052
9052
|
return _(Z) === u;
|
|
9053
9053
|
}
|
|
9054
9054
|
function G(Z) {
|
|
@@ -9057,10 +9057,10 @@ function C$() {
|
|
|
9057
9057
|
function q(Z) {
|
|
9058
9058
|
return _(Z) === p;
|
|
9059
9059
|
}
|
|
9060
|
-
function
|
|
9060
|
+
function V(Z) {
|
|
9061
9061
|
return _(Z) === f;
|
|
9062
9062
|
}
|
|
9063
|
-
function
|
|
9063
|
+
function j(Z) {
|
|
9064
9064
|
return _(Z) === n;
|
|
9065
9065
|
}
|
|
9066
9066
|
function K(Z) {
|
|
@@ -9072,7 +9072,7 @@ function C$() {
|
|
|
9072
9072
|
function re(Z) {
|
|
9073
9073
|
return _(Z) === d;
|
|
9074
9074
|
}
|
|
9075
|
-
gt.AsyncMode = x, gt.ConcurrentMode = S, gt.ContextConsumer = E, gt.ContextProvider = k, gt.Element = O, gt.ForwardRef = M, gt.Fragment = D, gt.Lazy = I, gt.Memo =
|
|
9075
|
+
gt.AsyncMode = x, gt.ConcurrentMode = S, gt.ContextConsumer = E, gt.ContextProvider = k, gt.Element = O, gt.ForwardRef = M, gt.Fragment = D, gt.Lazy = I, gt.Memo = W, gt.Portal = $, gt.Profiler = T, gt.StrictMode = N, gt.Suspense = A, gt.isAsyncMode = H, gt.isConcurrentMode = P, gt.isContextConsumer = B, gt.isContextProvider = L, gt.isElement = R, gt.isForwardRef = U, gt.isFragment = G, gt.isLazy = q, gt.isMemo = V, gt.isPortal = j, gt.isProfiler = K, gt.isStrictMode = ee, gt.isSuspense = re, gt.isValidElementType = w, gt.typeOf = _;
|
|
9076
9076
|
}()), gt;
|
|
9077
9077
|
}
|
|
9078
9078
|
var TC;
|
|
@@ -9210,9 +9210,9 @@ function R$() {
|
|
|
9210
9210
|
return Gm = function(s, l) {
|
|
9211
9211
|
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
9212
9212
|
function d(P) {
|
|
9213
|
-
var
|
|
9214
|
-
if (typeof
|
|
9215
|
-
return
|
|
9213
|
+
var B = P && (c && P[c] || P[u]);
|
|
9214
|
+
if (typeof B == "function")
|
|
9215
|
+
return B;
|
|
9216
9216
|
}
|
|
9217
9217
|
var h = "<<anonymous>>", f = {
|
|
9218
9218
|
array: b("array"),
|
|
@@ -9233,211 +9233,211 @@ function R$() {
|
|
|
9233
9233
|
oneOf: E,
|
|
9234
9234
|
oneOfType: O,
|
|
9235
9235
|
shape: I,
|
|
9236
|
-
exact:
|
|
9236
|
+
exact: W
|
|
9237
9237
|
};
|
|
9238
|
-
function p(P,
|
|
9239
|
-
return P ===
|
|
9238
|
+
function p(P, B) {
|
|
9239
|
+
return P === B ? P !== 0 || 1 / P === 1 / B : P !== P && B !== B;
|
|
9240
9240
|
}
|
|
9241
|
-
function g(P,
|
|
9242
|
-
this.message = P, this.data =
|
|
9241
|
+
function g(P, B) {
|
|
9242
|
+
this.message = P, this.data = B && typeof B == "object" ? B : {}, this.stack = "";
|
|
9243
9243
|
}
|
|
9244
9244
|
g.prototype = Error.prototype;
|
|
9245
9245
|
function m(P) {
|
|
9246
9246
|
if (process.env.NODE_ENV !== "production")
|
|
9247
|
-
var
|
|
9248
|
-
function R(G, q,
|
|
9249
|
-
if (
|
|
9247
|
+
var B = {}, L = 0;
|
|
9248
|
+
function R(G, q, V, j, K, ee, re) {
|
|
9249
|
+
if (j = j || h, ee = ee || V, re !== n) {
|
|
9250
9250
|
if (l) {
|
|
9251
9251
|
var Z = new Error(
|
|
9252
9252
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
9253
9253
|
);
|
|
9254
9254
|
throw Z.name = "Invariant Violation", Z;
|
|
9255
9255
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
9256
|
-
var ie =
|
|
9257
|
-
!
|
|
9256
|
+
var ie = j + ":" + V;
|
|
9257
|
+
!B[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
9258
9258
|
L < 3 && (i(
|
|
9259
|
-
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" +
|
|
9260
|
-
),
|
|
9259
|
+
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
9260
|
+
), B[ie] = !0, L++);
|
|
9261
9261
|
}
|
|
9262
9262
|
}
|
|
9263
|
-
return q[
|
|
9263
|
+
return q[V] == null ? G ? q[V] === null ? new g("The " + K + " `" + ee + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new g("The " + K + " `" + ee + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : P(q, V, j, K, ee);
|
|
9264
9264
|
}
|
|
9265
|
-
var
|
|
9266
|
-
return
|
|
9265
|
+
var U = R.bind(null, !1);
|
|
9266
|
+
return U.isRequired = R.bind(null, !0), U;
|
|
9267
9267
|
}
|
|
9268
9268
|
function b(P) {
|
|
9269
|
-
function
|
|
9270
|
-
var
|
|
9269
|
+
function B(L, R, U, G, q, V) {
|
|
9270
|
+
var j = L[R], K = N(j);
|
|
9271
9271
|
if (K !== P) {
|
|
9272
|
-
var ee = A(
|
|
9272
|
+
var ee = A(j);
|
|
9273
9273
|
return new g(
|
|
9274
|
-
"Invalid " + G + " `" + q + "` of type " + ("`" + ee + "` supplied to `" +
|
|
9274
|
+
"Invalid " + G + " `" + q + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected ") + ("`" + P + "`."),
|
|
9275
9275
|
{ expectedType: P }
|
|
9276
9276
|
);
|
|
9277
9277
|
}
|
|
9278
9278
|
return null;
|
|
9279
9279
|
}
|
|
9280
|
-
return m(
|
|
9280
|
+
return m(B);
|
|
9281
9281
|
}
|
|
9282
9282
|
function y() {
|
|
9283
9283
|
return m(a);
|
|
9284
9284
|
}
|
|
9285
9285
|
function w(P) {
|
|
9286
|
-
function
|
|
9286
|
+
function B(L, R, U, G, q) {
|
|
9287
9287
|
if (typeof P != "function")
|
|
9288
|
-
return new g("Property `" + q + "` of component `" +
|
|
9289
|
-
var
|
|
9290
|
-
if (!Array.isArray(
|
|
9291
|
-
var
|
|
9292
|
-
return new g("Invalid " + G + " `" + q + "` of type " + ("`" +
|
|
9288
|
+
return new g("Property `" + q + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
9289
|
+
var V = L[R];
|
|
9290
|
+
if (!Array.isArray(V)) {
|
|
9291
|
+
var j = N(V);
|
|
9292
|
+
return new g("Invalid " + G + " `" + q + "` of type " + ("`" + j + "` supplied to `" + U + "`, expected an array."));
|
|
9293
9293
|
}
|
|
9294
|
-
for (var K = 0; K <
|
|
9295
|
-
var ee = P(
|
|
9294
|
+
for (var K = 0; K < V.length; K++) {
|
|
9295
|
+
var ee = P(V, K, U, G, q + "[" + K + "]", n);
|
|
9296
9296
|
if (ee instanceof Error)
|
|
9297
9297
|
return ee;
|
|
9298
9298
|
}
|
|
9299
9299
|
return null;
|
|
9300
9300
|
}
|
|
9301
|
-
return m(
|
|
9301
|
+
return m(B);
|
|
9302
9302
|
}
|
|
9303
9303
|
function _() {
|
|
9304
|
-
function P(
|
|
9305
|
-
var q =
|
|
9304
|
+
function P(B, L, R, U, G) {
|
|
9305
|
+
var q = B[L];
|
|
9306
9306
|
if (!s(q)) {
|
|
9307
|
-
var
|
|
9308
|
-
return new g("Invalid " +
|
|
9307
|
+
var V = N(q);
|
|
9308
|
+
return new g("Invalid " + U + " `" + G + "` of type " + ("`" + V + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
9309
9309
|
}
|
|
9310
9310
|
return null;
|
|
9311
9311
|
}
|
|
9312
9312
|
return m(P);
|
|
9313
9313
|
}
|
|
9314
9314
|
function x() {
|
|
9315
|
-
function P(
|
|
9316
|
-
var q =
|
|
9315
|
+
function P(B, L, R, U, G) {
|
|
9316
|
+
var q = B[L];
|
|
9317
9317
|
if (!e.isValidElementType(q)) {
|
|
9318
|
-
var
|
|
9319
|
-
return new g("Invalid " +
|
|
9318
|
+
var V = N(q);
|
|
9319
|
+
return new g("Invalid " + U + " `" + G + "` of type " + ("`" + V + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
9320
9320
|
}
|
|
9321
9321
|
return null;
|
|
9322
9322
|
}
|
|
9323
9323
|
return m(P);
|
|
9324
9324
|
}
|
|
9325
9325
|
function S(P) {
|
|
9326
|
-
function
|
|
9326
|
+
function B(L, R, U, G, q) {
|
|
9327
9327
|
if (!(L[R] instanceof P)) {
|
|
9328
|
-
var
|
|
9329
|
-
return new g("Invalid " + G + " `" + q + "` of type " + ("`" +
|
|
9328
|
+
var V = P.name || h, j = H(L[R]);
|
|
9329
|
+
return new g("Invalid " + G + " `" + q + "` of type " + ("`" + j + "` supplied to `" + U + "`, expected ") + ("instance of `" + V + "`."));
|
|
9330
9330
|
}
|
|
9331
9331
|
return null;
|
|
9332
9332
|
}
|
|
9333
|
-
return m(
|
|
9333
|
+
return m(B);
|
|
9334
9334
|
}
|
|
9335
9335
|
function E(P) {
|
|
9336
9336
|
if (!Array.isArray(P))
|
|
9337
9337
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
9338
9338
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
9339
9339
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
9340
|
-
function
|
|
9341
|
-
for (var
|
|
9342
|
-
if (p(
|
|
9340
|
+
function B(L, R, U, G, q) {
|
|
9341
|
+
for (var V = L[R], j = 0; j < P.length; j++)
|
|
9342
|
+
if (p(V, P[j]))
|
|
9343
9343
|
return null;
|
|
9344
9344
|
var K = JSON.stringify(P, function(re, Z) {
|
|
9345
9345
|
var ie = A(Z);
|
|
9346
9346
|
return ie === "symbol" ? String(Z) : Z;
|
|
9347
9347
|
});
|
|
9348
|
-
return new g("Invalid " + G + " `" + q + "` of value `" + String(
|
|
9348
|
+
return new g("Invalid " + G + " `" + q + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + K + "."));
|
|
9349
9349
|
}
|
|
9350
|
-
return m(
|
|
9350
|
+
return m(B);
|
|
9351
9351
|
}
|
|
9352
9352
|
function k(P) {
|
|
9353
|
-
function
|
|
9353
|
+
function B(L, R, U, G, q) {
|
|
9354
9354
|
if (typeof P != "function")
|
|
9355
|
-
return new g("Property `" + q + "` of component `" +
|
|
9356
|
-
var
|
|
9357
|
-
if (
|
|
9358
|
-
return new g("Invalid " + G + " `" + q + "` of type " + ("`" +
|
|
9359
|
-
for (var K in
|
|
9360
|
-
if (r(
|
|
9361
|
-
var ee = P(
|
|
9355
|
+
return new g("Property `" + q + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
9356
|
+
var V = L[R], j = N(V);
|
|
9357
|
+
if (j !== "object")
|
|
9358
|
+
return new g("Invalid " + G + " `" + q + "` of type " + ("`" + j + "` supplied to `" + U + "`, expected an object."));
|
|
9359
|
+
for (var K in V)
|
|
9360
|
+
if (r(V, K)) {
|
|
9361
|
+
var ee = P(V, K, U, G, q + "." + K, n);
|
|
9362
9362
|
if (ee instanceof Error)
|
|
9363
9363
|
return ee;
|
|
9364
9364
|
}
|
|
9365
9365
|
return null;
|
|
9366
9366
|
}
|
|
9367
|
-
return m(
|
|
9367
|
+
return m(B);
|
|
9368
9368
|
}
|
|
9369
9369
|
function O(P) {
|
|
9370
9370
|
if (!Array.isArray(P))
|
|
9371
9371
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
9372
|
-
for (var
|
|
9373
|
-
var L = P[
|
|
9372
|
+
for (var B = 0; B < P.length; B++) {
|
|
9373
|
+
var L = P[B];
|
|
9374
9374
|
if (typeof L != "function")
|
|
9375
9375
|
return i(
|
|
9376
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(L) + " at index " +
|
|
9376
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + F(L) + " at index " + B + "."
|
|
9377
9377
|
), a;
|
|
9378
9378
|
}
|
|
9379
|
-
function R(
|
|
9379
|
+
function R(U, G, q, V, j) {
|
|
9380
9380
|
for (var K = [], ee = 0; ee < P.length; ee++) {
|
|
9381
|
-
var re = P[ee], Z = re(
|
|
9381
|
+
var re = P[ee], Z = re(U, G, q, V, j, n);
|
|
9382
9382
|
if (Z == null)
|
|
9383
9383
|
return null;
|
|
9384
9384
|
Z.data && r(Z.data, "expectedType") && K.push(Z.data.expectedType);
|
|
9385
9385
|
}
|
|
9386
9386
|
var ie = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
9387
|
-
return new g("Invalid " +
|
|
9387
|
+
return new g("Invalid " + V + " `" + j + "` supplied to " + ("`" + q + "`" + ie + "."));
|
|
9388
9388
|
}
|
|
9389
9389
|
return m(R);
|
|
9390
9390
|
}
|
|
9391
9391
|
function M() {
|
|
9392
|
-
function P(
|
|
9393
|
-
return $(
|
|
9392
|
+
function P(B, L, R, U, G) {
|
|
9393
|
+
return $(B[L]) ? null : new g("Invalid " + U + " `" + G + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
9394
9394
|
}
|
|
9395
9395
|
return m(P);
|
|
9396
9396
|
}
|
|
9397
|
-
function D(P,
|
|
9397
|
+
function D(P, B, L, R, U) {
|
|
9398
9398
|
return new g(
|
|
9399
|
-
(P || "React class") + ": " +
|
|
9399
|
+
(P || "React class") + ": " + B + " type `" + L + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
9400
9400
|
);
|
|
9401
9401
|
}
|
|
9402
9402
|
function I(P) {
|
|
9403
|
-
function
|
|
9404
|
-
var
|
|
9405
|
-
if (
|
|
9406
|
-
return new g("Invalid " + G + " `" + q + "` of type `" +
|
|
9403
|
+
function B(L, R, U, G, q) {
|
|
9404
|
+
var V = L[R], j = N(V);
|
|
9405
|
+
if (j !== "object")
|
|
9406
|
+
return new g("Invalid " + G + " `" + q + "` of type `" + j + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
9407
9407
|
for (var K in P) {
|
|
9408
9408
|
var ee = P[K];
|
|
9409
9409
|
if (typeof ee != "function")
|
|
9410
|
-
return D(
|
|
9411
|
-
var re = ee(
|
|
9410
|
+
return D(U, G, q, K, A(ee));
|
|
9411
|
+
var re = ee(V, K, U, G, q + "." + K, n);
|
|
9412
9412
|
if (re)
|
|
9413
9413
|
return re;
|
|
9414
9414
|
}
|
|
9415
9415
|
return null;
|
|
9416
9416
|
}
|
|
9417
|
-
return m(
|
|
9417
|
+
return m(B);
|
|
9418
9418
|
}
|
|
9419
|
-
function
|
|
9420
|
-
function
|
|
9421
|
-
var
|
|
9422
|
-
if (
|
|
9423
|
-
return new g("Invalid " + G + " `" + q + "` of type `" +
|
|
9419
|
+
function W(P) {
|
|
9420
|
+
function B(L, R, U, G, q) {
|
|
9421
|
+
var V = L[R], j = N(V);
|
|
9422
|
+
if (j !== "object")
|
|
9423
|
+
return new g("Invalid " + G + " `" + q + "` of type `" + j + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
9424
9424
|
var K = t({}, L[R], P);
|
|
9425
9425
|
for (var ee in K) {
|
|
9426
9426
|
var re = P[ee];
|
|
9427
9427
|
if (r(P, ee) && typeof re != "function")
|
|
9428
|
-
return D(
|
|
9428
|
+
return D(U, G, q, ee, A(re));
|
|
9429
9429
|
if (!re)
|
|
9430
9430
|
return new g(
|
|
9431
|
-
"Invalid " + G + " `" + q + "` key `" + ee + "` supplied to `" +
|
|
9431
|
+
"Invalid " + G + " `" + q + "` key `" + ee + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(L[R], null, " ") + `
|
|
9432
9432
|
Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
9433
9433
|
);
|
|
9434
|
-
var Z = re(
|
|
9434
|
+
var Z = re(V, ee, U, G, q + "." + ee, n);
|
|
9435
9435
|
if (Z)
|
|
9436
9436
|
return Z;
|
|
9437
9437
|
}
|
|
9438
9438
|
return null;
|
|
9439
9439
|
}
|
|
9440
|
-
return m(
|
|
9440
|
+
return m(B);
|
|
9441
9441
|
}
|
|
9442
9442
|
function $(P) {
|
|
9443
9443
|
switch (typeof P) {
|
|
@@ -9452,17 +9452,17 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
9452
9452
|
return P.every($);
|
|
9453
9453
|
if (P === null || s(P))
|
|
9454
9454
|
return !0;
|
|
9455
|
-
var
|
|
9456
|
-
if (
|
|
9457
|
-
var L =
|
|
9458
|
-
if (
|
|
9455
|
+
var B = d(P);
|
|
9456
|
+
if (B) {
|
|
9457
|
+
var L = B.call(P), R;
|
|
9458
|
+
if (B !== P.entries) {
|
|
9459
9459
|
for (; !(R = L.next()).done; )
|
|
9460
9460
|
if (!$(R.value))
|
|
9461
9461
|
return !1;
|
|
9462
9462
|
} else
|
|
9463
9463
|
for (; !(R = L.next()).done; ) {
|
|
9464
|
-
var
|
|
9465
|
-
if (
|
|
9464
|
+
var U = R.value;
|
|
9465
|
+
if (U && !$(U[1]))
|
|
9466
9466
|
return !1;
|
|
9467
9467
|
}
|
|
9468
9468
|
} else
|
|
@@ -9472,37 +9472,37 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
|
|
9472
9472
|
return !1;
|
|
9473
9473
|
}
|
|
9474
9474
|
}
|
|
9475
|
-
function T(P,
|
|
9476
|
-
return P === "symbol" ? !0 :
|
|
9475
|
+
function T(P, B) {
|
|
9476
|
+
return P === "symbol" ? !0 : B ? B["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && B instanceof Symbol : !1;
|
|
9477
9477
|
}
|
|
9478
9478
|
function N(P) {
|
|
9479
|
-
var
|
|
9480
|
-
return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : T(
|
|
9479
|
+
var B = typeof P;
|
|
9480
|
+
return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : T(B, P) ? "symbol" : B;
|
|
9481
9481
|
}
|
|
9482
9482
|
function A(P) {
|
|
9483
9483
|
if (typeof P > "u" || P === null)
|
|
9484
9484
|
return "" + P;
|
|
9485
|
-
var
|
|
9486
|
-
if (
|
|
9485
|
+
var B = N(P);
|
|
9486
|
+
if (B === "object") {
|
|
9487
9487
|
if (P instanceof Date)
|
|
9488
9488
|
return "date";
|
|
9489
9489
|
if (P instanceof RegExp)
|
|
9490
9490
|
return "regexp";
|
|
9491
9491
|
}
|
|
9492
|
-
return
|
|
9492
|
+
return B;
|
|
9493
9493
|
}
|
|
9494
9494
|
function F(P) {
|
|
9495
|
-
var
|
|
9496
|
-
switch (
|
|
9495
|
+
var B = A(P);
|
|
9496
|
+
switch (B) {
|
|
9497
9497
|
case "array":
|
|
9498
9498
|
case "object":
|
|
9499
|
-
return "an " +
|
|
9499
|
+
return "an " + B;
|
|
9500
9500
|
case "boolean":
|
|
9501
9501
|
case "date":
|
|
9502
9502
|
case "regexp":
|
|
9503
|
-
return "a " +
|
|
9503
|
+
return "a " + B;
|
|
9504
9504
|
default:
|
|
9505
|
-
return
|
|
9505
|
+
return B;
|
|
9506
9506
|
}
|
|
9507
9507
|
}
|
|
9508
9508
|
function H(P) {
|
|
@@ -10375,7 +10375,7 @@ In(lg, "defaultProps", {
|
|
|
10375
10375
|
position: M,
|
|
10376
10376
|
positionOffset: D,
|
|
10377
10377
|
scale: I,
|
|
10378
|
-
...
|
|
10378
|
+
...W
|
|
10379
10379
|
} = this.props;
|
|
10380
10380
|
let $ = {}, T = null;
|
|
10381
10381
|
const A = !!!M || this.state.dragging, F = M || S, H = {
|
|
@@ -10389,7 +10389,7 @@ In(lg, "defaultProps", {
|
|
|
10389
10389
|
[k]: this.state.dragging,
|
|
10390
10390
|
[O]: this.state.dragged
|
|
10391
10391
|
});
|
|
10392
|
-
return /* @__PURE__ */ t.createElement(l.default, f({},
|
|
10392
|
+
return /* @__PURE__ */ t.createElement(l.default, f({}, W, {
|
|
10393
10393
|
onStart: this.onDragStart,
|
|
10394
10394
|
onDrag: this.onDrag,
|
|
10395
10395
|
onStop: this.onDragStop
|
|
@@ -12928,6 +12928,9 @@ function hs(e, t, n) {
|
|
|
12928
12928
|
}
|
|
12929
12929
|
const wr = oP()(
|
|
12930
12930
|
dP((e, t) => ({
|
|
12931
|
+
userInputForAI: "",
|
|
12932
|
+
triggerAIRun: !1,
|
|
12933
|
+
showAIDialog: !1,
|
|
12931
12934
|
isShowingVisual: !0,
|
|
12932
12935
|
runSql: !1,
|
|
12933
12936
|
sqlGen: {},
|
|
@@ -12958,6 +12961,26 @@ const wr = oP()(
|
|
|
12958
12961
|
activeCardId: ""
|
|
12959
12962
|
},
|
|
12960
12963
|
actions: {
|
|
12964
|
+
runAssistant: (n) => {
|
|
12965
|
+
e((r) => {
|
|
12966
|
+
r.showAIDialog = !0, r.userInputForAI = n, r.triggerAIRun = !0;
|
|
12967
|
+
});
|
|
12968
|
+
},
|
|
12969
|
+
setShowAIDialog: (n) => {
|
|
12970
|
+
e((r) => {
|
|
12971
|
+
r.showAIDialog = n;
|
|
12972
|
+
});
|
|
12973
|
+
},
|
|
12974
|
+
setUserInputForAI: (n) => {
|
|
12975
|
+
e((r) => {
|
|
12976
|
+
r.userInputForAI = n;
|
|
12977
|
+
});
|
|
12978
|
+
},
|
|
12979
|
+
setTriggerAIRun: (n) => {
|
|
12980
|
+
e((r) => {
|
|
12981
|
+
r.triggerAIRun = n;
|
|
12982
|
+
});
|
|
12983
|
+
},
|
|
12961
12984
|
updateCardTab: (n, r) => {
|
|
12962
12985
|
e((o) => {
|
|
12963
12986
|
const i = o.frame, a = {
|
|
@@ -14377,6 +14400,7 @@ function wa({
|
|
|
14377
14400
|
), c = Zc(l, n), u = a[0], d = g0(e, u);
|
|
14378
14401
|
ZO(r, t), JO(r);
|
|
14379
14402
|
const { options: h, plugins: f } = tM({
|
|
14403
|
+
cardType: o,
|
|
14380
14404
|
cfg: t,
|
|
14381
14405
|
preferences: r,
|
|
14382
14406
|
customCfg: n
|
|
@@ -14450,97 +14474,98 @@ function eM(e, t) {
|
|
|
14450
14474
|
};
|
|
14451
14475
|
}
|
|
14452
14476
|
function tM({
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14477
|
+
cardType: e,
|
|
14478
|
+
cfg: t,
|
|
14479
|
+
preferences: n,
|
|
14480
|
+
customCfg: r
|
|
14456
14481
|
}) {
|
|
14457
|
-
var
|
|
14458
|
-
const
|
|
14459
|
-
(
|
|
14460
|
-
|
|
14461
|
-
), a = Zn(
|
|
14462
|
-
o,
|
|
14463
|
-
i
|
|
14482
|
+
var f, p, g, m, b, y, w, _, x, S, E, k, O, M, D, I, W, $, T, N, A, F, H, P, B, L, R, U, G, q, V;
|
|
14483
|
+
const o = se.getState().themeStyle, i = eM(t, n), a = Zn(
|
|
14484
|
+
(t == null ? void 0 : t.options) || {},
|
|
14485
|
+
n == null ? void 0 : n.chartOptions
|
|
14464
14486
|
), s = Zn(
|
|
14487
|
+
i,
|
|
14488
|
+
a
|
|
14489
|
+
), l = Zn(
|
|
14465
14490
|
// fmtNumberOptions || {},
|
|
14466
14491
|
// cfg?.options || {},
|
|
14467
14492
|
// mergedOptions,
|
|
14468
|
-
|
|
14469
|
-
(
|
|
14470
|
-
),
|
|
14471
|
-
...
|
|
14493
|
+
s,
|
|
14494
|
+
(r == null ? void 0 : r.options) || {}
|
|
14495
|
+
), c = {
|
|
14496
|
+
...l,
|
|
14472
14497
|
scales: {
|
|
14473
|
-
...
|
|
14498
|
+
...l == null ? void 0 : l.scales,
|
|
14474
14499
|
x: {
|
|
14475
|
-
...(
|
|
14500
|
+
...(f = l == null ? void 0 : l.scales) == null ? void 0 : f.x,
|
|
14476
14501
|
grid: {
|
|
14477
|
-
...(
|
|
14478
|
-
color: (w = (y = (b = (m =
|
|
14502
|
+
...(g = (p = l == null ? void 0 : l.scales) == null ? void 0 : p.x) == null ? void 0 : g.grid,
|
|
14503
|
+
color: (_ = (w = (y = (b = (m = o == null ? void 0 : o.chart) == null ? void 0 : m.options) == null ? void 0 : b.scales) == null ? void 0 : y.x) == null ? void 0 : w.grid) == null ? void 0 : _.color
|
|
14479
14504
|
}
|
|
14480
14505
|
},
|
|
14481
14506
|
y: {
|
|
14482
|
-
...(
|
|
14507
|
+
...(x = l == null ? void 0 : l.scales) == null ? void 0 : x.y,
|
|
14483
14508
|
grid: {
|
|
14484
|
-
...(
|
|
14485
|
-
color: (D = (M = (O = (k =
|
|
14509
|
+
...(E = (S = l == null ? void 0 : l.scales) == null ? void 0 : S.y) == null ? void 0 : E.grid,
|
|
14510
|
+
color: (I = (D = (M = (O = (k = o == null ? void 0 : o.chart) == null ? void 0 : k.options) == null ? void 0 : O.scales) == null ? void 0 : M.y) == null ? void 0 : D.grid) == null ? void 0 : I.color
|
|
14486
14511
|
}
|
|
14487
14512
|
}
|
|
14488
14513
|
},
|
|
14489
14514
|
plugins: {
|
|
14490
|
-
...
|
|
14515
|
+
...l == null ? void 0 : l.plugins,
|
|
14491
14516
|
tooltip: {
|
|
14492
14517
|
// ...options?.plugins?.tooltip,
|
|
14493
|
-
filter: function(
|
|
14494
|
-
return
|
|
14518
|
+
filter: function(j) {
|
|
14519
|
+
return j.raw !== void 0 && j.raw !== 0;
|
|
14495
14520
|
},
|
|
14496
14521
|
callbacks: {
|
|
14497
|
-
title: function(
|
|
14498
|
-
var
|
|
14499
|
-
const
|
|
14500
|
-
if (
|
|
14501
|
-
const
|
|
14502
|
-
const
|
|
14503
|
-
return
|
|
14504
|
-
}, 0),
|
|
14505
|
-
number:
|
|
14506
|
-
decimalPlaces: ((
|
|
14507
|
-
useSuffix: !!((
|
|
14522
|
+
title: function(j) {
|
|
14523
|
+
var ee, re, Z, ie, te;
|
|
14524
|
+
const K = ((ee = j == null ? void 0 : j[0]) == null ? void 0 : ee.label) || "";
|
|
14525
|
+
if (j.length > 1 && ["stackedBar", "stackedLine"].includes(e || "")) {
|
|
14526
|
+
const fe = j.reduce((_e, be) => {
|
|
14527
|
+
const xe = be.raw;
|
|
14528
|
+
return xe !== void 0 && xe !== 0 ? _e + xe : _e;
|
|
14529
|
+
}, 0), he = Lr({
|
|
14530
|
+
number: fe,
|
|
14531
|
+
decimalPlaces: ((re = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : re.decimalPlaces) || 0,
|
|
14532
|
+
useSuffix: !!((Z = n == null ? void 0 : n.numberAxisFormat) != null && Z.suffix),
|
|
14508
14533
|
customSuffix: "",
|
|
14509
|
-
locale: ((
|
|
14510
|
-
currency: ((
|
|
14534
|
+
locale: ((ie = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : ie.locale) || "",
|
|
14535
|
+
currency: ((te = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : te.currency) || ""
|
|
14511
14536
|
});
|
|
14512
|
-
return `${
|
|
14537
|
+
return `${K} (${he})`;
|
|
14513
14538
|
}
|
|
14514
|
-
return
|
|
14539
|
+
return K;
|
|
14515
14540
|
},
|
|
14516
|
-
label: function(
|
|
14517
|
-
var
|
|
14518
|
-
const
|
|
14519
|
-
if (
|
|
14541
|
+
label: function(j) {
|
|
14542
|
+
var Z, ie, te, fe, he;
|
|
14543
|
+
const K = ((Z = j == null ? void 0 : j.dataset) == null ? void 0 : Z.label) || "", ee = j == null ? void 0 : j.raw;
|
|
14544
|
+
if (ee === void 0 || ee === 0)
|
|
14520
14545
|
return;
|
|
14521
|
-
const
|
|
14522
|
-
number: Number(
|
|
14523
|
-
decimalPlaces: ((
|
|
14524
|
-
useSuffix: !!((
|
|
14546
|
+
const re = Lr({
|
|
14547
|
+
number: Number(ee),
|
|
14548
|
+
decimalPlaces: ((ie = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : ie.decimalPlaces) || 0,
|
|
14549
|
+
useSuffix: !!((te = n == null ? void 0 : n.numberAxisFormat) != null && te.suffix),
|
|
14525
14550
|
customSuffix: "",
|
|
14526
|
-
locale: ((
|
|
14527
|
-
currency: ((
|
|
14551
|
+
locale: ((fe = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : fe.locale) || "",
|
|
14552
|
+
currency: ((he = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : he.currency) || ""
|
|
14528
14553
|
});
|
|
14529
|
-
return `${
|
|
14554
|
+
return `${K}: ${re}`;
|
|
14530
14555
|
},
|
|
14531
|
-
...(
|
|
14556
|
+
...($ = (W = l == null ? void 0 : l.plugins) == null ? void 0 : W.tooltip) == null ? void 0 : $.callbacks
|
|
14532
14557
|
// spreading this in the end because the pie and doughnut charts have a different callback
|
|
14533
14558
|
},
|
|
14534
|
-
...(
|
|
14535
|
-
backgroundColor: (
|
|
14536
|
-
bodyColor: (
|
|
14537
|
-
titleColor: (
|
|
14559
|
+
...(T = l == null ? void 0 : l.plugins) == null ? void 0 : T.tooltip,
|
|
14560
|
+
backgroundColor: (H = (F = (A = (N = o == null ? void 0 : o.chart) == null ? void 0 : N.options) == null ? void 0 : A.plugins) == null ? void 0 : F.tooltip) == null ? void 0 : H.backgroundColor,
|
|
14561
|
+
bodyColor: (R = (L = (B = (P = o == null ? void 0 : o.chart) == null ? void 0 : P.options) == null ? void 0 : B.plugins) == null ? void 0 : L.tooltip) == null ? void 0 : R.bodyColor,
|
|
14562
|
+
titleColor: (V = (q = (G = (U = o == null ? void 0 : o.chart) == null ? void 0 : U.options) == null ? void 0 : G.plugins) == null ? void 0 : q.tooltip) == null ? void 0 : V.titleColor
|
|
14538
14563
|
}
|
|
14539
14564
|
}
|
|
14540
|
-
}, { plugins:
|
|
14565
|
+
}, { plugins: u, options: d } = m0((n == null ? void 0 : n.customVisualCode) || "");
|
|
14541
14566
|
return {
|
|
14542
|
-
options: Zn(
|
|
14543
|
-
plugins:
|
|
14567
|
+
options: Zn(c, d),
|
|
14568
|
+
plugins: u
|
|
14544
14569
|
};
|
|
14545
14570
|
}
|
|
14546
14571
|
/*!
|
|
@@ -19312,11 +19337,11 @@ class ua extends Vo {
|
|
|
19312
19337
|
const n = this.axis, r = this.chart, o = this.options, { grid: i, position: a, border: s } = o, l = i.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = Fc(i), f = [], p = s.setContext(this.getContext()), g = p.display ? p.width : 0, m = g / 2, b = function(N) {
|
|
19313
19338
|
return Sa(r, N, g);
|
|
19314
19339
|
};
|
|
19315
|
-
let y, w, _, x, S, E, k, O, M, D, I,
|
|
19340
|
+
let y, w, _, x, S, E, k, O, M, D, I, W;
|
|
19316
19341
|
if (a === "top")
|
|
19317
|
-
y = b(this.bottom), E = this.bottom - h, O = y - m, D = b(t.top) + m,
|
|
19342
|
+
y = b(this.bottom), E = this.bottom - h, O = y - m, D = b(t.top) + m, W = t.bottom;
|
|
19318
19343
|
else if (a === "bottom")
|
|
19319
|
-
y = b(this.top), D = t.top,
|
|
19344
|
+
y = b(this.top), D = t.top, W = b(t.bottom) - m, E = y + m, O = this.top + h;
|
|
19320
19345
|
else if (a === "left")
|
|
19321
19346
|
y = b(this.right), S = this.right - h, k = y - m, M = b(t.left) + m, I = t.right;
|
|
19322
19347
|
else if (a === "right")
|
|
@@ -19328,7 +19353,7 @@ class ua extends Vo {
|
|
|
19328
19353
|
const N = Object.keys(a)[0], A = a[N];
|
|
19329
19354
|
y = b(this.chart.scales[N].getPixelForValue(A));
|
|
19330
19355
|
}
|
|
19331
|
-
D = t.top,
|
|
19356
|
+
D = t.top, W = t.bottom, E = y + m, O = E + h;
|
|
19332
19357
|
} else if (n === "y") {
|
|
19333
19358
|
if (a === "center")
|
|
19334
19359
|
y = b((t.left + t.right) / 2);
|
|
@@ -19340,8 +19365,8 @@ class ua extends Vo {
|
|
|
19340
19365
|
}
|
|
19341
19366
|
const $ = Ae(o.ticks.maxTicksLimit, d), T = Math.max(1, Math.ceil(d / $));
|
|
19342
19367
|
for (w = 0; w < d; w += T) {
|
|
19343
|
-
const N = this.getContext(w), A = i.setContext(N), F = s.setContext(N), H = A.lineWidth, P = A.color,
|
|
19344
|
-
_ = Gj(this, w, l), _ !== void 0 && (x = Sa(r, _, H), c ? S = k = M = I = x : E = O = D =
|
|
19368
|
+
const N = this.getContext(w), A = i.setContext(N), F = s.setContext(N), H = A.lineWidth, P = A.color, B = F.dash || [], L = F.dashOffset, R = A.tickWidth, U = A.tickColor, G = A.tickBorderDash || [], q = A.tickBorderDashOffset;
|
|
19369
|
+
_ = Gj(this, w, l), _ !== void 0 && (x = Sa(r, _, H), c ? S = k = M = I = x : E = O = D = W = x, f.push({
|
|
19345
19370
|
tx1: S,
|
|
19346
19371
|
ty1: E,
|
|
19347
19372
|
tx2: k,
|
|
@@ -19349,13 +19374,13 @@ class ua extends Vo {
|
|
|
19349
19374
|
x1: M,
|
|
19350
19375
|
y1: D,
|
|
19351
19376
|
x2: I,
|
|
19352
|
-
y2:
|
|
19377
|
+
y2: W,
|
|
19353
19378
|
width: H,
|
|
19354
19379
|
color: P,
|
|
19355
|
-
borderDash:
|
|
19380
|
+
borderDash: B,
|
|
19356
19381
|
borderDashOffset: L,
|
|
19357
19382
|
tickWidth: R,
|
|
19358
|
-
tickColor:
|
|
19383
|
+
tickColor: U,
|
|
19359
19384
|
tickBorderDash: G,
|
|
19360
19385
|
tickBorderDashOffset: q
|
|
19361
19386
|
}));
|
|
@@ -19364,7 +19389,7 @@ class ua extends Vo {
|
|
|
19364
19389
|
}
|
|
19365
19390
|
_computeLabelItems(t) {
|
|
19366
19391
|
const n = this.axis, r = this.options, { position: o, ticks: i } = r, a = this.isHorizontal(), s = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = i, h = Fc(r.grid), f = h + u, p = d ? -u : f, g = -Jr(this.labelRotation), m = [];
|
|
19367
|
-
let b, y, w, _, x, S, E, k, O, M, D, I,
|
|
19392
|
+
let b, y, w, _, x, S, E, k, O, M, D, I, W = "middle";
|
|
19368
19393
|
if (o === "top")
|
|
19369
19394
|
S = this.bottom - p, E = this._getXAxisLabelAlignment();
|
|
19370
19395
|
else if (o === "bottom")
|
|
@@ -19392,7 +19417,7 @@ class ua extends Vo {
|
|
|
19392
19417
|
}
|
|
19393
19418
|
E = this._getYAxisLabelAlignment(h).textAlign;
|
|
19394
19419
|
}
|
|
19395
|
-
n === "y" && (l === "start" ?
|
|
19420
|
+
n === "y" && (l === "start" ? W = "top" : l === "end" && (W = "bottom"));
|
|
19396
19421
|
const $ = this._getLabelSizes();
|
|
19397
19422
|
for (b = 0, y = s.length; b < y; ++b) {
|
|
19398
19423
|
w = s[b], _ = w.label;
|
|
@@ -19401,11 +19426,11 @@ class ua extends Vo {
|
|
|
19401
19426
|
const N = D / 2, A = T.color, F = T.textStrokeColor, H = T.textStrokeWidth;
|
|
19402
19427
|
let P = E;
|
|
19403
19428
|
a ? (x = k, E === "inner" && (b === y - 1 ? P = this.options.reverse ? "left" : "right" : b === 0 ? P = this.options.reverse ? "right" : "left" : P = "center"), o === "top" ? c === "near" || g !== 0 ? I = -D * M + M / 2 : c === "center" ? I = -$.highest.height / 2 - N * M + M : I = -$.highest.height + M / 2 : c === "near" || g !== 0 ? I = M / 2 : c === "center" ? I = $.highest.height / 2 - N * M : I = $.highest.height - D * M, d && (I *= -1), g !== 0 && !T.showLabelBackdrop && (x += M / 2 * Math.sin(g))) : (S = k, I = (1 - D) * M / 2);
|
|
19404
|
-
let
|
|
19429
|
+
let B;
|
|
19405
19430
|
if (T.showLabelBackdrop) {
|
|
19406
|
-
const L = mn(T.backdropPadding), R = $.heights[b],
|
|
19431
|
+
const L = mn(T.backdropPadding), R = $.heights[b], U = $.widths[b];
|
|
19407
19432
|
let G = I - L.top, q = 0 - L.left;
|
|
19408
|
-
switch (
|
|
19433
|
+
switch (W) {
|
|
19409
19434
|
case "middle":
|
|
19410
19435
|
G -= R / 2;
|
|
19411
19436
|
break;
|
|
@@ -19415,19 +19440,19 @@ class ua extends Vo {
|
|
|
19415
19440
|
}
|
|
19416
19441
|
switch (E) {
|
|
19417
19442
|
case "center":
|
|
19418
|
-
q -=
|
|
19443
|
+
q -= U / 2;
|
|
19419
19444
|
break;
|
|
19420
19445
|
case "right":
|
|
19421
|
-
q -=
|
|
19446
|
+
q -= U;
|
|
19422
19447
|
break;
|
|
19423
19448
|
case "inner":
|
|
19424
|
-
b === y - 1 ? q -=
|
|
19449
|
+
b === y - 1 ? q -= U : b > 0 && (q -= U / 2);
|
|
19425
19450
|
break;
|
|
19426
19451
|
}
|
|
19427
|
-
|
|
19452
|
+
B = {
|
|
19428
19453
|
left: q,
|
|
19429
19454
|
top: G,
|
|
19430
|
-
width:
|
|
19455
|
+
width: U + L.width,
|
|
19431
19456
|
height: R + L.height,
|
|
19432
19457
|
color: T.backdropColor
|
|
19433
19458
|
};
|
|
@@ -19442,12 +19467,12 @@ class ua extends Vo {
|
|
|
19442
19467
|
strokeColor: F,
|
|
19443
19468
|
strokeWidth: H,
|
|
19444
19469
|
textAlign: P,
|
|
19445
|
-
textBaseline:
|
|
19470
|
+
textBaseline: W,
|
|
19446
19471
|
translation: [
|
|
19447
19472
|
x,
|
|
19448
19473
|
S
|
|
19449
19474
|
],
|
|
19450
|
-
backdrop:
|
|
19475
|
+
backdrop: B
|
|
19451
19476
|
}
|
|
19452
19477
|
});
|
|
19453
19478
|
}
|
|
@@ -20655,7 +20680,7 @@ function op(e, t, n, r, o, i) {
|
|
|
20655
20680
|
const T = u > 0 ? u - r : 0, N = d > 0 ? d - r : 0, A = (T + N) / 2, F = A !== 0 ? p * A / (A + r) : p;
|
|
20656
20681
|
f = (p - F) / 2;
|
|
20657
20682
|
}
|
|
20658
|
-
const g = Math.max(1e-3, p * d - n / $t) / d, m = (p - g) / 2, b = l + m + f, y = o - m - f, { outerStart: w, outerEnd: _, innerStart: x, innerEnd: S } = _W(t, h, d, y - b), E = d - w, k = d - _, O = b + w / E, M = y - _ / k, D = h + x, I = h + S,
|
|
20683
|
+
const g = Math.max(1e-3, p * d - n / $t) / d, m = (p - g) / 2, b = l + m + f, y = o - m - f, { outerStart: w, outerEnd: _, innerStart: x, innerEnd: S } = _W(t, h, d, y - b), E = d - w, k = d - _, O = b + w / E, M = y - _ / k, D = h + x, I = h + S, W = b + x / D, $ = y - S / I;
|
|
20659
20684
|
if (e.beginPath(), i) {
|
|
20660
20685
|
const T = (O + M) / 2;
|
|
20661
20686
|
if (e.arc(a, s, d, O, T), e.arc(a, s, d, T, M), _ > 0) {
|
|
@@ -20669,8 +20694,8 @@ function op(e, t, n, r, o, i) {
|
|
|
20669
20694
|
}
|
|
20670
20695
|
const A = (y - S / h + (b + x / h)) / 2;
|
|
20671
20696
|
if (e.arc(a, s, h, y - S / h, A, !0), e.arc(a, s, h, A, b + x / h, !0), x > 0) {
|
|
20672
|
-
const H = Ws(D,
|
|
20673
|
-
e.arc(H.x, H.y, x,
|
|
20697
|
+
const H = Ws(D, W, a, s);
|
|
20698
|
+
e.arc(H.x, H.y, x, W + Math.PI, b - Xt);
|
|
20674
20699
|
}
|
|
20675
20700
|
const F = Ws(E, b, a, s);
|
|
20676
20701
|
if (e.lineTo(F.x, F.y), w > 0) {
|
|
@@ -21807,7 +21832,7 @@ class oE extends Vo {
|
|
|
21807
21832
|
bM(o, M, D, I, a.pointStyleWidth && p);
|
|
21808
21833
|
} else {
|
|
21809
21834
|
const M = E + Math.max((d - g) / 2, 0), D = l.leftForLtr(S, p), I = es(k.borderRadius);
|
|
21810
|
-
o.beginPath(), Object.values(I).some((
|
|
21835
|
+
o.beginPath(), Object.values(I).some((W) => W !== 0) ? Bu(o, {
|
|
21811
21836
|
x: D,
|
|
21812
21837
|
y: M,
|
|
21813
21838
|
w: p,
|
|
@@ -21837,8 +21862,8 @@ class oE extends Vo {
|
|
|
21837
21862
|
const k = o.measureText(S.text).width, O = l.textAlign(S.textAlign || (S.textAlign = a.textAlign)), M = p + h + k;
|
|
21838
21863
|
let D = f.x, I = f.y;
|
|
21839
21864
|
l.setWidth(this.width), w ? E > 0 && D + M + u > this.right && (I = f.y += x, f.line++, D = f.x = _n(i, this.left + u, this.right - r[f.line])) : E > 0 && I + x > this.bottom && (D = f.x = D + n[f.line].width + u, f.line++, I = f.y = _n(i, this.top + _ + u, this.bottom - n[f.line].height));
|
|
21840
|
-
const
|
|
21841
|
-
if (b(
|
|
21865
|
+
const W = l.x(D);
|
|
21866
|
+
if (b(W, I, S), D = BV(O, D + p + h, w ? D + M : this.right, t.rtl), y(l.x(D), I, S), w)
|
|
21842
21867
|
f.x += M + u;
|
|
21843
21868
|
else if (typeof S.text != "string") {
|
|
21844
21869
|
const $ = c.lineHeight;
|
|
@@ -23898,12 +23923,12 @@ function sT(e, t) {
|
|
|
23898
23923
|
for (var d, h, f = d[h - 1], p = bb(f), g = f[1] / 2 + xE, m = Le(g), b = ze(g), y = 0; y < h; ++y, p = _, m = S, b = E, f = w) {
|
|
23899
23924
|
var w = d[y], _ = bb(w), x = w[1] / 2 + xE, S = Le(x), E = ze(x), k = _ - p, O = k >= 0 ? 1 : -1, M = O * k, D = M > Ke, I = m * S;
|
|
23900
23925
|
if (l.add(To(I * O * Le(M), b * E + I * ze(M))), a += D ? k + O * Pr : k, D ^ p >= n ^ _ >= n) {
|
|
23901
|
-
var
|
|
23902
|
-
T0(
|
|
23903
|
-
var $ = cp(i,
|
|
23926
|
+
var W = cp(Xl(f), Xl(w));
|
|
23927
|
+
T0(W);
|
|
23928
|
+
var $ = cp(i, W);
|
|
23904
23929
|
T0($);
|
|
23905
23930
|
var T = (D ^ k >= 0 ? -1 : 1) * Hr($[2]);
|
|
23906
|
-
(r > T || r === T && (
|
|
23931
|
+
(r > T || r === T && (W[0] || W[1])) && (s += D ^ k >= 0 ? 1 : -1);
|
|
23907
23932
|
}
|
|
23908
23933
|
}
|
|
23909
23934
|
return (a < -1e-6 || a < Pe && l < -1e-12) ^ s & 1;
|
|
@@ -24048,13 +24073,13 @@ function pG(e) {
|
|
|
24048
24073
|
mb(E, k);
|
|
24049
24074
|
var O = S, M = Af(E, O), D = Af(O, O), I = M * M - D * (Af(E, E) - 1);
|
|
24050
24075
|
if (!(I < 0)) {
|
|
24051
|
-
var
|
|
24076
|
+
var W = Vn(I), $ = Nf(O, (-M - W) / D);
|
|
24052
24077
|
if (mb($, E), $ = M0($), !h) return $;
|
|
24053
24078
|
var T = u[0], N = d[0], A = u[1], F = d[1], H;
|
|
24054
24079
|
N < T && (H = T, T = N, N = H);
|
|
24055
|
-
var P = N - T,
|
|
24056
|
-
if (!
|
|
24057
|
-
var R = Nf(O, (-M +
|
|
24080
|
+
var P = N - T, B = it(P - Ke) < Pe, L = B || P < Pe;
|
|
24081
|
+
if (!B && F < A && (H = A, A = F, F = H), L ? B ? A + F > 0 ^ $[1] < (it($[0] - T) < Pe ? A : F) : A <= $[1] && $[1] <= F : P > Ke ^ (T <= $[0] && $[0] <= N)) {
|
|
24082
|
+
var R = Nf(O, (-M + W) / D);
|
|
24058
24083
|
return mb(R, E), [$, M0(R)];
|
|
24059
24084
|
}
|
|
24060
24085
|
}
|
|
@@ -24133,7 +24158,7 @@ function mG(e, t, n, r) {
|
|
|
24133
24158
|
var u = c, d = iT(), h, f, p, g, m, b, y, w, _, x, S, E = {
|
|
24134
24159
|
point: k,
|
|
24135
24160
|
lineStart: I,
|
|
24136
|
-
lineEnd:
|
|
24161
|
+
lineEnd: W,
|
|
24137
24162
|
polygonStart: M,
|
|
24138
24163
|
polygonEnd: D
|
|
24139
24164
|
};
|
|
@@ -24142,8 +24167,8 @@ function mG(e, t, n, r) {
|
|
|
24142
24167
|
}
|
|
24143
24168
|
function O() {
|
|
24144
24169
|
for (var T = 0, N = 0, A = f.length; N < A; ++N)
|
|
24145
|
-
for (var F = f[N], H = 1, P = F.length,
|
|
24146
|
-
L =
|
|
24170
|
+
for (var F = f[N], H = 1, P = F.length, B = F[0], L, R, U = B[0], G = B[1]; H < P; ++H)
|
|
24171
|
+
L = U, R = G, B = F[H], U = B[0], G = B[1], R <= r ? G > r && (U - L) * (r - R) > (G - R) * (e - L) && ++T : G <= r && (U - L) * (r - R) < (G - R) * (e - L) && --T;
|
|
24147
24172
|
return T;
|
|
24148
24173
|
}
|
|
24149
24174
|
function M() {
|
|
@@ -24156,7 +24181,7 @@ function mG(e, t, n, r) {
|
|
|
24156
24181
|
function I() {
|
|
24157
24182
|
E.point = $, f && f.push(p = []), x = !0, _ = !1, y = w = NaN;
|
|
24158
24183
|
}
|
|
24159
|
-
function
|
|
24184
|
+
function W() {
|
|
24160
24185
|
h && ($(g, m), b && _ && d.rejoin(), h.push(d.result())), E.point = k, _ && u.lineEnd();
|
|
24161
24186
|
}
|
|
24162
24187
|
function $(T, N) {
|
|
@@ -24643,8 +24668,8 @@ function zG(e, t) {
|
|
|
24643
24668
|
function n(r, o, i, a, s, l, c, u, d, h, f, p, g, m) {
|
|
24644
24669
|
var b = c - r, y = u - o, w = b * b + y * y;
|
|
24645
24670
|
if (w > 4 * t && g--) {
|
|
24646
|
-
var _ = a + h, x = s + f, S = l + p, E = Vn(_ * _ + x * x + S * S), k = Hr(S /= E), O = it(it(S) - 1) < Pe || it(i - d) < Pe ? (i + d) / 2 : To(x, _), M = e(O, k), D = M[0], I = M[1],
|
|
24647
|
-
(T * T / w > t || it((b *
|
|
24671
|
+
var _ = a + h, x = s + f, S = l + p, E = Vn(_ * _ + x * x + S * S), k = Hr(S /= E), O = it(it(S) - 1) < Pe || it(i - d) < Pe ? (i + d) / 2 : To(x, _), M = e(O, k), D = M[0], I = M[1], W = D - r, $ = I - o, T = y * W - b * $;
|
|
24672
|
+
(T * T / w > t || it((b * W + y * $) / w - 0.5) > 0.3 || a * h + s * f + l * p < LG) && (n(r, o, i, a, s, l, D, I, O, _ /= E, x /= E, S, g, m), m.point(D, I), n(D, I, O, _, x, S, c, u, d, h, f, p, g, m));
|
|
24648
24673
|
}
|
|
24649
24674
|
}
|
|
24650
24675
|
return function(r) {
|
|
@@ -24739,19 +24764,19 @@ function ET(e) {
|
|
|
24739
24764
|
}, D.clipExtent = function(T) {
|
|
24740
24765
|
return arguments.length ? (_ = T == null ? (m = b = y = w = null, $0) : mG(m = +T[0][0], b = +T[0][1], y = +T[1][0], w = +T[1][1]), $()) : m == null ? null : [[m, b], [y, w]];
|
|
24741
24766
|
}, D.scale = function(T) {
|
|
24742
|
-
return arguments.length ? (n = +T,
|
|
24767
|
+
return arguments.length ? (n = +T, W()) : n;
|
|
24743
24768
|
}, D.translate = function(T) {
|
|
24744
|
-
return arguments.length ? (r = +T[0], o = +T[1],
|
|
24769
|
+
return arguments.length ? (r = +T[0], o = +T[1], W()) : [r, o];
|
|
24745
24770
|
}, D.center = function(T) {
|
|
24746
|
-
return arguments.length ? (i = T[0] % 360 * Ct, a = T[1] % 360 * Ct,
|
|
24771
|
+
return arguments.length ? (i = T[0] % 360 * Ct, a = T[1] % 360 * Ct, W()) : [i * Fn, a * Fn];
|
|
24747
24772
|
}, D.rotate = function(T) {
|
|
24748
|
-
return arguments.length ? (s = T[0] % 360 * Ct, l = T[1] % 360 * Ct, c = T.length > 2 ? T[2] % 360 * Ct : 0,
|
|
24773
|
+
return arguments.length ? (s = T[0] % 360 * Ct, l = T[1] % 360 * Ct, c = T.length > 2 ? T[2] % 360 * Ct : 0, W()) : [s * Fn, l * Fn, c * Fn];
|
|
24749
24774
|
}, D.angle = function(T) {
|
|
24750
|
-
return arguments.length ? (d = T % 360 * Ct,
|
|
24775
|
+
return arguments.length ? (d = T % 360 * Ct, W()) : d * Fn;
|
|
24751
24776
|
}, D.reflectX = function(T) {
|
|
24752
|
-
return arguments.length ? (h = T ? -1 : 1,
|
|
24777
|
+
return arguments.length ? (h = T ? -1 : 1, W()) : h < 0;
|
|
24753
24778
|
}, D.reflectY = function(T) {
|
|
24754
|
-
return arguments.length ? (f = T ? -1 : 1,
|
|
24779
|
+
return arguments.length ? (f = T ? -1 : 1, W()) : f < 0;
|
|
24755
24780
|
}, D.precision = function(T) {
|
|
24756
24781
|
return arguments.length ? (S = GE(E, x = T * T), $()) : Vn(x);
|
|
24757
24782
|
}, D.fitExtent = function(T, N) {
|
|
@@ -24763,7 +24788,7 @@ function ET(e) {
|
|
|
24763
24788
|
}, D.fitHeight = function(T, N) {
|
|
24764
24789
|
return _T(D, T, N);
|
|
24765
24790
|
};
|
|
24766
|
-
function
|
|
24791
|
+
function W() {
|
|
24767
24792
|
var T = qE(n, 0, 0, h, f, d).apply(null, t(i, a)), N = qE(n, r - T[0], o - T[1], h, f, d);
|
|
24768
24793
|
return u = oT(s, l, c), E = D0(t, N), k = D0(u, E), S = GE(E, x), $();
|
|
24769
24794
|
}
|
|
@@ -24771,7 +24796,7 @@ function ET(e) {
|
|
|
24771
24796
|
return O = M = null, D;
|
|
24772
24797
|
}
|
|
24773
24798
|
return function() {
|
|
24774
|
-
return t = e.apply(this, arguments), D.invert = t.invert && I,
|
|
24799
|
+
return t = e.apply(this, arguments), D.invert = t.invert && I, W();
|
|
24775
24800
|
};
|
|
24776
24801
|
}
|
|
24777
24802
|
function _x(e) {
|
|
@@ -26950,8 +26975,8 @@ function QT({
|
|
|
26950
26975
|
}
|
|
26951
26976
|
}, { keys: x } = pn(e), S = w.map((I) => {
|
|
26952
26977
|
var N;
|
|
26953
|
-
const
|
|
26954
|
-
(A) => (A == null ? void 0 : A[
|
|
26978
|
+
const W = x == null ? void 0 : x[0], $ = x == null ? void 0 : x[1], T = (N = e.find(
|
|
26979
|
+
(A) => (A == null ? void 0 : A[W]) === I.properties.NAME || (A == null ? void 0 : A[W]) === I.properties.name
|
|
26955
26980
|
)) == null ? void 0 : N[$];
|
|
26956
26981
|
return {
|
|
26957
26982
|
feature: I,
|
|
@@ -26979,7 +27004,8 @@ function QT({
|
|
|
26979
27004
|
}, { options: M } = tM({
|
|
26980
27005
|
cfg: O,
|
|
26981
27006
|
preferences: a,
|
|
26982
|
-
customCfg: r
|
|
27007
|
+
customCfg: r,
|
|
27008
|
+
cardType: t
|
|
26983
27009
|
});
|
|
26984
27010
|
return {
|
|
26985
27011
|
...O,
|
|
@@ -27087,7 +27113,7 @@ function QT({
|
|
|
27087
27113
|
), M = Zn(O, S), D = eM(n, a), I = Zn(
|
|
27088
27114
|
M,
|
|
27089
27115
|
D
|
|
27090
|
-
),
|
|
27116
|
+
), W = {
|
|
27091
27117
|
...I,
|
|
27092
27118
|
plugins: {
|
|
27093
27119
|
...I == null ? void 0 : I.plugins,
|
|
@@ -27095,14 +27121,14 @@ function QT({
|
|
|
27095
27121
|
...(g = I == null ? void 0 : I.plugins) == null ? void 0 : g.datalabels,
|
|
27096
27122
|
// anchor: 'end', // Position the label inside the bar
|
|
27097
27123
|
// align: 'end', // Aligns the label inside the bar
|
|
27098
|
-
formatter: (F, H) => F.map((
|
|
27099
|
-
var L, R,
|
|
27124
|
+
formatter: (F, H) => F.map((B) => {
|
|
27125
|
+
var L, R, U, G;
|
|
27100
27126
|
return Lr({
|
|
27101
|
-
number: Number(
|
|
27127
|
+
number: Number(B),
|
|
27102
27128
|
decimalPlaces: ((L = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : L.decimalPlaces) || 0,
|
|
27103
27129
|
useSuffix: !!((R = a == null ? void 0 : a.numberAxisFormat) != null && R.suffix),
|
|
27104
27130
|
customSuffix: "",
|
|
27105
|
-
locale: ((
|
|
27131
|
+
locale: ((U = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : U.locale) || "",
|
|
27106
27132
|
currency: ((G = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : G.currency) || ""
|
|
27107
27133
|
});
|
|
27108
27134
|
}).slice(0, 2).join(" - ")
|
|
@@ -27115,7 +27141,7 @@ function QT({
|
|
|
27115
27141
|
labels: [...new Set(g0(e, T))],
|
|
27116
27142
|
datasets: _
|
|
27117
27143
|
},
|
|
27118
|
-
options:
|
|
27144
|
+
options: W,
|
|
27119
27145
|
// plugins: [
|
|
27120
27146
|
// {
|
|
27121
27147
|
// afterDatasetsDraw: function (chart: any) {
|
|
@@ -27184,18 +27210,18 @@ function QT({
|
|
|
27184
27210
|
), I = Zn(
|
|
27185
27211
|
D,
|
|
27186
27212
|
(a == null ? void 0 : a.chartOptions) || {}
|
|
27187
|
-
),
|
|
27213
|
+
), W = {
|
|
27188
27214
|
...I,
|
|
27189
27215
|
plugins: {
|
|
27190
27216
|
...I.plugins,
|
|
27191
27217
|
datalabels: {
|
|
27192
27218
|
...(m = I.plugins) == null ? void 0 : m.datalabels,
|
|
27193
27219
|
formatter: (F, H) => {
|
|
27194
|
-
var P,
|
|
27220
|
+
var P, B, L, R;
|
|
27195
27221
|
return Lr({
|
|
27196
27222
|
number: Number(F),
|
|
27197
27223
|
decimalPlaces: ((P = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : P.decimalPlaces) || 0,
|
|
27198
|
-
useSuffix: !!((
|
|
27224
|
+
useSuffix: !!((B = a == null ? void 0 : a.numberAxisFormat) != null && B.suffix),
|
|
27199
27225
|
customSuffix: "",
|
|
27200
27226
|
locale: ((L = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : L.locale) || "",
|
|
27201
27227
|
currency: ((R = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : R.currency) || ""
|
|
@@ -27206,19 +27232,19 @@ function QT({
|
|
|
27206
27232
|
...(b = I.plugins) == null ? void 0 : b.tooltip,
|
|
27207
27233
|
callbacks: {
|
|
27208
27234
|
label: function(F) {
|
|
27209
|
-
var
|
|
27235
|
+
var U, G, q, V;
|
|
27210
27236
|
F.dataset.label;
|
|
27211
27237
|
const P = F.dataset.data.reduce(
|
|
27212
|
-
(
|
|
27238
|
+
(j, K) => j + K,
|
|
27213
27239
|
0
|
|
27214
|
-
),
|
|
27215
|
-
number: Number(
|
|
27216
|
-
decimalPlaces: ((
|
|
27240
|
+
), B = F.parsed, L = Lr({
|
|
27241
|
+
number: Number(B),
|
|
27242
|
+
decimalPlaces: ((U = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
|
|
27217
27243
|
useSuffix: !!((G = a == null ? void 0 : a.numberAxisFormat) != null && G.suffix),
|
|
27218
27244
|
customSuffix: "",
|
|
27219
27245
|
locale: ((q = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : q.locale) || "",
|
|
27220
|
-
currency: ((
|
|
27221
|
-
}), R = (
|
|
27246
|
+
currency: ((V = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : V.currency) || ""
|
|
27247
|
+
}), R = (B / P * 100).toFixed(2);
|
|
27222
27248
|
return L + ` (${R}%)`;
|
|
27223
27249
|
}
|
|
27224
27250
|
}
|
|
@@ -27226,7 +27252,7 @@ function QT({
|
|
|
27226
27252
|
}
|
|
27227
27253
|
}, $ = Zn(
|
|
27228
27254
|
I,
|
|
27229
|
-
|
|
27255
|
+
W
|
|
27230
27256
|
), T = Zn(
|
|
27231
27257
|
$,
|
|
27232
27258
|
k
|
|
@@ -27242,22 +27268,22 @@ function QT({
|
|
|
27242
27268
|
id: "doughnutLabel",
|
|
27243
27269
|
beforeDatasetsDraw: function(F, H, P) {
|
|
27244
27270
|
var K, ee, re, Z;
|
|
27245
|
-
const { ctx:
|
|
27246
|
-
|
|
27247
|
-
const R = F.getDatasetMeta(0).data[0].x,
|
|
27248
|
-
|
|
27249
|
-
const
|
|
27271
|
+
const { ctx: B, data: L } = F;
|
|
27272
|
+
B.save();
|
|
27273
|
+
const R = F.getDatasetMeta(0).data[0].x, U = F.getDatasetMeta(0).data[0].y, G = Nu(Vh()), q = window.getComputedStyle(B.canvas).fontFamily;
|
|
27274
|
+
B.font = `1em ${q}`, B.fontWeight = "bolder", B.fillStyle = G, B.textAlign = "center", B.textBaseline = "middle";
|
|
27275
|
+
const V = L.datasets[0].data.reduce(
|
|
27250
27276
|
(ie, te) => ie + te,
|
|
27251
27277
|
0
|
|
27252
|
-
),
|
|
27253
|
-
number: Number(
|
|
27278
|
+
), j = Lr({
|
|
27279
|
+
number: Number(V),
|
|
27254
27280
|
decimalPlaces: ((K = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : K.decimalPlaces) || 0,
|
|
27255
27281
|
useSuffix: !!((ee = a == null ? void 0 : a.numberAxisFormat) != null && ee.suffix),
|
|
27256
27282
|
customSuffix: "",
|
|
27257
27283
|
locale: ((re = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : re.locale) || "",
|
|
27258
27284
|
currency: ((Z = a == null ? void 0 : a.numberAxisFormat) == null ? void 0 : Z.currency) || ""
|
|
27259
27285
|
});
|
|
27260
|
-
|
|
27286
|
+
B.fillText(j, R, U);
|
|
27261
27287
|
}
|
|
27262
27288
|
} : "", ...E]
|
|
27263
27289
|
};
|
|
@@ -27283,11 +27309,11 @@ function QT({
|
|
|
27283
27309
|
callbacks: {
|
|
27284
27310
|
label: function(k) {
|
|
27285
27311
|
var N;
|
|
27286
|
-
const O = k.dataset.label, M = k.dataIndex, D = k.dataset.data, I = (N = D == null ? void 0 : D[M]) == null ? void 0 : N.label,
|
|
27312
|
+
const O = k.dataset.label, M = k.dataIndex, D = k.dataset.data, I = (N = D == null ? void 0 : D[M]) == null ? void 0 : N.label, W = y == null ? void 0 : y[0], $ = y == null ? void 0 : y[1], T = y == null ? void 0 : y[2];
|
|
27287
27313
|
if (t === "bubble")
|
|
27288
|
-
return I ? `${O} (${I}): ${
|
|
27314
|
+
return I ? `${O} (${I}): ${W}: ${k.raw.x.toFixed(2)}, ${$}: ${k.raw.y.toFixed(2)}, ${T}: ${k.raw.r.toFixed(2)}` : `${O}: ${W}: ${k.raw.x.toFixed(2)}, ${$}: ${k.raw.y.toFixed(2)}, ${T}: ${k.raw.r.toFixed(2)}`;
|
|
27289
27315
|
if (t === "scatter")
|
|
27290
|
-
return I ? `${O} (${I}): ${
|
|
27316
|
+
return I ? `${O} (${I}): ${W}: ${k.raw.x.toFixed(2)}, ${$}: ${k.raw.y.toFixed(2)}` : `${O}: ${W}: ${k.raw.x.toFixed(2)}, ${$}: ${k.raw.y.toFixed(2)}`;
|
|
27291
27317
|
}
|
|
27292
27318
|
}
|
|
27293
27319
|
},
|
|
@@ -27581,9 +27607,9 @@ function Ove(e) {
|
|
|
27581
27607
|
return { ...o, data: ((s = o == null ? void 0 : o.data) == null ? void 0 : s.records) || [], card: i };
|
|
27582
27608
|
}
|
|
27583
27609
|
function ZT(e) {
|
|
27584
|
-
var
|
|
27610
|
+
var W, $, T, N;
|
|
27585
27611
|
const { onChartElementClicked: t } = jr(), [n, r] = ge(0);
|
|
27586
|
-
((
|
|
27612
|
+
((W = e == null ? void 0 : e.preferences) == null ? void 0 : W.filterOnClickColumnIndex) === void 0 || ($ = e.preferences) == null || $.filterOnClickColumnIndex;
|
|
27587
27613
|
const o = se((A) => A.isVisualEditing), i = se((A) => A.filteringCards), a = se((A) => A.selectedSheetId), s = se((A) => A.selectedLensId);
|
|
27588
27614
|
se((A) => A.selectedCardId), se((A) => A.dashboard), se(
|
|
27589
27615
|
(A) => A.isDashboardEditing
|
|
@@ -27627,7 +27653,7 @@ function ZT(e) {
|
|
|
27627
27653
|
}, [S, O, e.id, i]);
|
|
27628
27654
|
function I(A, F, H, P) {
|
|
27629
27655
|
var R;
|
|
27630
|
-
let
|
|
27656
|
+
let B = !1;
|
|
27631
27657
|
if (!(m != null && m.records)) return;
|
|
27632
27658
|
const L = uK({
|
|
27633
27659
|
card: e,
|
|
@@ -27638,30 +27664,30 @@ function ZT(e) {
|
|
|
27638
27664
|
});
|
|
27639
27665
|
if (console.log("fieldValues", L), t == null || t(e, L), !!(((R = e == null ? void 0 : e.preferences) == null ? void 0 : R.onClickFilter) ?? []).length) {
|
|
27640
27666
|
if (S) {
|
|
27641
|
-
const
|
|
27642
|
-
p(
|
|
27667
|
+
const U = e.id;
|
|
27668
|
+
p(U), g(e);
|
|
27643
27669
|
} else {
|
|
27644
|
-
if (
|
|
27645
|
-
const
|
|
27670
|
+
if (B = !0, !L) return;
|
|
27671
|
+
const U = [];
|
|
27646
27672
|
L.forEach((G, q) => {
|
|
27647
|
-
const
|
|
27648
|
-
if (!
|
|
27649
|
-
const
|
|
27673
|
+
const V = u == null ? void 0 : u.find((K) => K.columnIndex === q);
|
|
27674
|
+
if (!V) return;
|
|
27675
|
+
const j = {
|
|
27650
27676
|
// filterId: fieldValue.columnName,
|
|
27651
27677
|
filterId: e.id + "-" + G.columnName + "-" + a,
|
|
27652
27678
|
// filterId: card.id + '-' + i,
|
|
27653
27679
|
connectionId: e == null ? void 0 : e.connectionId,
|
|
27654
27680
|
tableName: e.lastSelectedTable,
|
|
27655
27681
|
name: G.columnName,
|
|
27656
|
-
expression:
|
|
27682
|
+
expression: V.expression,
|
|
27657
27683
|
valueType: hw(
|
|
27658
|
-
L[
|
|
27684
|
+
L[V.columnIndex].columnValue
|
|
27659
27685
|
),
|
|
27660
27686
|
operation: "=",
|
|
27661
|
-
values: [L[
|
|
27687
|
+
values: [L[V.columnIndex].columnValue]
|
|
27662
27688
|
};
|
|
27663
|
-
|
|
27664
|
-
}), f(
|
|
27689
|
+
U.push(j);
|
|
27690
|
+
}), f(U), d(e);
|
|
27665
27691
|
}
|
|
27666
27692
|
aK({
|
|
27667
27693
|
chart: A,
|
|
@@ -27669,7 +27695,7 @@ function ZT(e) {
|
|
|
27669
27695
|
datasetIndex: F,
|
|
27670
27696
|
cardType: e.type,
|
|
27671
27697
|
cfg: M,
|
|
27672
|
-
apply:
|
|
27698
|
+
apply: B
|
|
27673
27699
|
});
|
|
27674
27700
|
}
|
|
27675
27701
|
}
|
|
@@ -27765,7 +27791,7 @@ function Y0({
|
|
|
27765
27791
|
card: e,
|
|
27766
27792
|
data: t
|
|
27767
27793
|
}) {
|
|
27768
|
-
var y, w, _, x, S, E, k, O, M, D, I,
|
|
27794
|
+
var y, w, _, x, S, E, k, O, M, D, I, W, $, T, N, A;
|
|
27769
27795
|
const n = se((F) => F.actions.setCardTitle), r = se(
|
|
27770
27796
|
(F) => F.actions.setCardDescription
|
|
27771
27797
|
), o = se((F) => F.isVisualEditing), i = wr((F) => F.card), a = wr((F) => F.actions.setCard);
|
|
@@ -27820,7 +27846,7 @@ function Y0({
|
|
|
27820
27846
|
"from ",
|
|
27821
27847
|
Lr({
|
|
27822
27848
|
number: f,
|
|
27823
|
-
decimalPlaces: ((
|
|
27849
|
+
decimalPlaces: ((W = (I = e.preferences) == null ? void 0 : I.formatNumber) == null ? void 0 : W.decimalPlaces) || 0,
|
|
27824
27850
|
useSuffix: !!((T = ($ = e.preferences) == null ? void 0 : $.formatNumber) != null && T.suffix),
|
|
27825
27851
|
customSuffix: ((A = (N = e.preferences) == null ? void 0 : N.formatNumber) == null ? void 0 : A.suffix) || "",
|
|
27826
27852
|
locale: l() || "",
|
|
@@ -28156,7 +28182,7 @@ const SK = (e) => ({
|
|
|
28156
28182
|
}, f = Ax(o), p = Ix(f), g = await a.getDimensions(c), m = f === "y", b = m ? "top" : "left", y = m ? "bottom" : "right", w = m ? "clientHeight" : "clientWidth", _ = i.reference[p] + i.reference[f] - h[f] - i.floating[p], x = h[f] - i.reference[f], S = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
28157
28183
|
let E = S ? S[w] : 0;
|
|
28158
28184
|
(!E || !await (a.isElement == null ? void 0 : a.isElement(S))) && (E = s.floating[w] || i.floating[p]);
|
|
28159
|
-
const k = _ / 2 - x / 2, O = E / 2 - g[p] / 2 - 1, M = bi(d[b], O), D = bi(d[y], O), I = M,
|
|
28185
|
+
const k = _ / 2 - x / 2, O = E / 2 - g[p] / 2 - 1, M = bi(d[b], O), D = bi(d[y], O), I = M, W = E - g[p] - D, $ = E / 2 - g[p] / 2 + k, T = K0(I, $, W), N = !l.arrow && mc(o) != null && $ !== T && i.reference[p] / 2 - ($ < I ? M : D) - g[p] / 2 < 0, A = N ? $ < I ? $ - I : $ - W : 0;
|
|
28160
28186
|
return {
|
|
28161
28187
|
[f]: h[f] + A,
|
|
28162
28188
|
data: {
|
|
@@ -28221,8 +28247,8 @@ const SK = (e) => ({
|
|
|
28221
28247
|
if (!N)
|
|
28222
28248
|
switch (f) {
|
|
28223
28249
|
case "bestFit": {
|
|
28224
|
-
var
|
|
28225
|
-
const A = (
|
|
28250
|
+
var W;
|
|
28251
|
+
const A = (W = M.filter((F) => {
|
|
28226
28252
|
if (S) {
|
|
28227
28253
|
const H = na(F.placement);
|
|
28228
28254
|
return H === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -28230,7 +28256,7 @@ const SK = (e) => ({
|
|
|
28230
28256
|
H === "y";
|
|
28231
28257
|
}
|
|
28232
28258
|
return !0;
|
|
28233
|
-
}).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, P) => H + P, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 :
|
|
28259
|
+
}).map((F) => [F.placement, F.overflows.filter((H) => H > 0).reduce((H, P) => H + P, 0)]).sort((F, H) => F[1] - H[1])[0]) == null ? void 0 : W[0];
|
|
28234
28260
|
A && (N = A);
|
|
28235
28261
|
break;
|
|
28236
28262
|
}
|
|
@@ -28473,8 +28499,8 @@ const RK = function(e) {
|
|
|
28473
28499
|
const y = g - u.top - u.bottom, w = p - u.left - u.right, _ = bi(g - u[m], y), x = bi(p - u[b], w), S = !t.middlewareData.shift;
|
|
28474
28500
|
let E = _, k = x;
|
|
28475
28501
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (E = y), S && !h) {
|
|
28476
|
-
const M = En(u.left, 0), D = En(u.right, 0), I = En(u.top, 0),
|
|
28477
|
-
f ? k = p - 2 * (M !== 0 || D !== 0 ? M + D : En(u.left, u.right)) : E = g - 2 * (I !== 0 ||
|
|
28502
|
+
const M = En(u.left, 0), D = En(u.right, 0), I = En(u.top, 0), W = En(u.bottom, 0);
|
|
28503
|
+
f ? k = p - 2 * (M !== 0 || D !== 0 ? M + D : En(u.left, u.right)) : E = g - 2 * (I !== 0 || W !== 0 ? I + W : En(u.top, u.bottom));
|
|
28478
28504
|
}
|
|
28479
28505
|
await l({
|
|
28480
28506
|
...t,
|
|
@@ -29049,7 +29075,7 @@ function fD(e) {
|
|
|
29049
29075
|
F !== S.current && (S.current = F, g(F));
|
|
29050
29076
|
}, []), w = C.useCallback((F) => {
|
|
29051
29077
|
F !== E.current && (E.current = F, b(F));
|
|
29052
|
-
}, []), _ = i || p, x = a || m, S = C.useRef(null), E = C.useRef(null), k = C.useRef(u), O = l != null, M = Cb(l), D = Cb(o), I = Cb(c),
|
|
29078
|
+
}, []), _ = i || p, x = a || m, S = C.useRef(null), E = C.useRef(null), k = C.useRef(u), O = l != null, M = Cb(l), D = Cb(o), I = Cb(c), W = C.useCallback(() => {
|
|
29053
29079
|
if (!S.current || !E.current)
|
|
29054
29080
|
return;
|
|
29055
29081
|
const F = {
|
|
@@ -29083,10 +29109,10 @@ function fD(e) {
|
|
|
29083
29109
|
}), []), Oh(() => {
|
|
29084
29110
|
if (_ && (S.current = _), x && (E.current = x), _ && x) {
|
|
29085
29111
|
if (M.current)
|
|
29086
|
-
return M.current(_, x,
|
|
29087
|
-
|
|
29112
|
+
return M.current(_, x, W);
|
|
29113
|
+
W();
|
|
29088
29114
|
}
|
|
29089
|
-
}, [_, x,
|
|
29115
|
+
}, [_, x, W, M, O]);
|
|
29090
29116
|
const T = C.useMemo(() => ({
|
|
29091
29117
|
reference: S,
|
|
29092
29118
|
floating: E,
|
|
@@ -29118,11 +29144,11 @@ function fD(e) {
|
|
|
29118
29144
|
}, [n, s, N.floating, u.x, u.y]);
|
|
29119
29145
|
return C.useMemo(() => ({
|
|
29120
29146
|
...u,
|
|
29121
|
-
update:
|
|
29147
|
+
update: W,
|
|
29122
29148
|
refs: T,
|
|
29123
29149
|
elements: N,
|
|
29124
29150
|
floatingStyles: A
|
|
29125
|
-
}), [u,
|
|
29151
|
+
}), [u, W, T, N, A]);
|
|
29126
29152
|
}
|
|
29127
29153
|
const eX = (e) => {
|
|
29128
29154
|
function t(n) {
|
|
@@ -29222,7 +29248,7 @@ var wD = "PopperAnchor", xD = C.forwardRef(
|
|
|
29222
29248
|
xD.displayName = wD;
|
|
29223
29249
|
var Vx = "PopperContent", [sX, lX] = bD(Vx), SD = C.forwardRef(
|
|
29224
29250
|
(e, t) => {
|
|
29225
|
-
var
|
|
29251
|
+
var V, j, K, ee, re, Z;
|
|
29226
29252
|
const {
|
|
29227
29253
|
__scopePopper: n,
|
|
29228
29254
|
side: r = "bottom",
|
|
@@ -29238,7 +29264,7 @@ var Vx = "PopperContent", [sX, lX] = bD(Vx), SD = C.forwardRef(
|
|
|
29238
29264
|
updatePositionStrategy: f = "optimized",
|
|
29239
29265
|
onPlaced: p,
|
|
29240
29266
|
...g
|
|
29241
|
-
} = e, m = yD(Vx, n), [b, y] = C.useState(null), w = Ne(t, (ie) => y(ie)), [_, x] = C.useState(null), S = Pg(_), E = (S == null ? void 0 : S.width) ?? 0, k = (S == null ? void 0 : S.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(c) ? c : [c], I = D.length > 0,
|
|
29267
|
+
} = e, m = yD(Vx, n), [b, y] = C.useState(null), w = Ne(t, (ie) => y(ie)), [_, x] = C.useState(null), S = Pg(_), E = (S == null ? void 0 : S.width) ?? 0, k = (S == null ? void 0 : S.height) ?? 0, O = r + (i !== "center" ? "-" + i : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(c) ? c : [c], I = D.length > 0, W = {
|
|
29242
29268
|
padding: M,
|
|
29243
29269
|
boundary: D.filter(uX),
|
|
29244
29270
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -29259,11 +29285,11 @@ var Vx = "PopperContent", [sX, lX] = bD(Vx), SD = C.forwardRef(
|
|
|
29259
29285
|
mainAxis: !0,
|
|
29260
29286
|
crossAxis: !1,
|
|
29261
29287
|
limiter: d === "partial" ? tX() : void 0,
|
|
29262
|
-
...
|
|
29288
|
+
...W
|
|
29263
29289
|
}),
|
|
29264
|
-
l && pD({ ...
|
|
29290
|
+
l && pD({ ...W }),
|
|
29265
29291
|
gD({
|
|
29266
|
-
...
|
|
29292
|
+
...W,
|
|
29267
29293
|
apply: ({ elements: ie, rects: te, availableWidth: fe, availableHeight: he }) => {
|
|
29268
29294
|
const { width: _e, height: be } = te.reference, xe = ie.floating.style;
|
|
29269
29295
|
xe.setProperty("--radix-popper-available-width", `${fe}px`), xe.setProperty("--radix-popper-available-height", `${he}px`), xe.setProperty("--radix-popper-anchor-width", `${_e}px`), xe.setProperty("--radix-popper-anchor-height", `${be}px`);
|
|
@@ -29271,13 +29297,13 @@ var Vx = "PopperContent", [sX, lX] = bD(Vx), SD = C.forwardRef(
|
|
|
29271
29297
|
}),
|
|
29272
29298
|
_ && rX({ element: _, padding: s }),
|
|
29273
29299
|
dX({ arrowWidth: E, arrowHeight: k }),
|
|
29274
|
-
h && nX({ strategy: "referenceHidden", ...
|
|
29300
|
+
h && nX({ strategy: "referenceHidden", ...W })
|
|
29275
29301
|
]
|
|
29276
|
-
}), [H, P] = ED(N),
|
|
29302
|
+
}), [H, P] = ED(N), B = on(p);
|
|
29277
29303
|
gn(() => {
|
|
29278
|
-
A && (
|
|
29279
|
-
}, [A,
|
|
29280
|
-
const L = (
|
|
29304
|
+
A && (B == null || B());
|
|
29305
|
+
}, [A, B]);
|
|
29306
|
+
const L = (V = F.arrow) == null ? void 0 : V.x, R = (j = F.arrow) == null ? void 0 : j.y, U = ((K = F.arrow) == null ? void 0 : K.centerOffset) !== 0, [G, q] = C.useState();
|
|
29281
29307
|
return gn(() => {
|
|
29282
29308
|
b && q(window.getComputedStyle(b).zIndex);
|
|
29283
29309
|
}, [b]), /* @__PURE__ */ v(
|
|
@@ -29312,7 +29338,7 @@ var Vx = "PopperContent", [sX, lX] = bD(Vx), SD = C.forwardRef(
|
|
|
29312
29338
|
onArrowChange: x,
|
|
29313
29339
|
arrowX: L,
|
|
29314
29340
|
arrowY: R,
|
|
29315
|
-
shouldHideArrow:
|
|
29341
|
+
shouldHideArrow: U,
|
|
29316
29342
|
children: /* @__PURE__ */ v(
|
|
29317
29343
|
ye.div,
|
|
29318
29344
|
{
|
|
@@ -29738,7 +29764,7 @@ function AD({ card: e }) {
|
|
|
29738
29764
|
] });
|
|
29739
29765
|
}
|
|
29740
29766
|
function MX({ card: e, renderFilterInfo: t }) {
|
|
29741
|
-
var p, g, m, b, y, w, _, x, S, E, k, O, M, D, I,
|
|
29767
|
+
var p, g, m, b, y, w, _, x, S, E, k, O, M, D, I, W;
|
|
29742
29768
|
se(($) => $.themeStyle);
|
|
29743
29769
|
const { data: n, isLoading: r } = gs(e), o = (n == null ? void 0 : n.records) || [], i = se(
|
|
29744
29770
|
($) => $.isDashboardEditing
|
|
@@ -29776,7 +29802,7 @@ function MX({ card: e, renderFilterInfo: t }) {
|
|
|
29776
29802
|
number: d,
|
|
29777
29803
|
decimalPlaces: ((O = (k = e.preferences) == null ? void 0 : k.formatNumber) == null ? void 0 : O.decimalPlaces) || 0,
|
|
29778
29804
|
useSuffix: !!((D = (M = e.preferences) == null ? void 0 : M.formatNumber) != null && D.suffix),
|
|
29779
|
-
customSuffix: ((
|
|
29805
|
+
customSuffix: ((W = (I = e.preferences) == null ? void 0 : I.formatNumber) == null ? void 0 : W.suffix) || "",
|
|
29780
29806
|
locale: s() || "",
|
|
29781
29807
|
currency: a() || ""
|
|
29782
29808
|
})}` })
|
|
@@ -32932,7 +32958,7 @@ var GZ = [" ", "Enter", "ArrowUp", "ArrowDown"], qZ = [" ", "Enter"], Ld = "Sele
|
|
|
32932
32958
|
prop: a,
|
|
32933
32959
|
defaultProp: s,
|
|
32934
32960
|
onChange: l
|
|
32935
|
-
}), D = C.useRef(null), I = m ? p || !!m.closest("form") : !0, [
|
|
32961
|
+
}), D = C.useRef(null), I = m ? p || !!m.closest("form") : !0, [W, $] = C.useState(/* @__PURE__ */ new Set()), T = Array.from(W).map((N) => N.props.value).join(";");
|
|
32936
32962
|
return /* @__PURE__ */ v(Md, { ...g, children: /* @__PURE__ */ Q(
|
|
32937
32963
|
KZ,
|
|
32938
32964
|
{
|
|
@@ -32983,7 +33009,7 @@ var GZ = [" ", "Enter", "ArrowUp", "ArrowDown"], qZ = [" ", "Enter"], Ld = "Sele
|
|
|
32983
33009
|
form: p,
|
|
32984
33010
|
children: [
|
|
32985
33011
|
O === void 0 ? /* @__PURE__ */ v("option", { value: "" }) : null,
|
|
32986
|
-
Array.from(
|
|
33012
|
+
Array.from(W)
|
|
32987
33013
|
]
|
|
32988
33014
|
},
|
|
32989
33015
|
T
|
|
@@ -33101,17 +33127,17 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33101
33127
|
avoidCollisions: m,
|
|
33102
33128
|
//
|
|
33103
33129
|
...b
|
|
33104
|
-
} = e, y = da(xs, n), [w, _] = C.useState(null), [x, S] = C.useState(null), E = Ne(t, (
|
|
33130
|
+
} = e, y = da(xs, n), [w, _] = C.useState(null), [x, S] = C.useState(null), E = Ne(t, (V) => _(V)), [k, O] = C.useState(null), [M, D] = C.useState(
|
|
33105
33131
|
null
|
|
33106
|
-
), I = Hg(n), [
|
|
33132
|
+
), I = Hg(n), [W, $] = C.useState(!1), T = C.useRef(!1);
|
|
33107
33133
|
C.useEffect(() => {
|
|
33108
33134
|
if (w) return zg(w);
|
|
33109
33135
|
}, [w]), Lg();
|
|
33110
33136
|
const N = C.useCallback(
|
|
33111
|
-
(
|
|
33112
|
-
const [
|
|
33113
|
-
for (const Z of
|
|
33114
|
-
if (Z === re || (Z == null || Z.scrollIntoView({ block: "nearest" }), Z ===
|
|
33137
|
+
(V) => {
|
|
33138
|
+
const [j, ...K] = I().map((Z) => Z.ref.current), [ee] = K.slice(-1), re = document.activeElement;
|
|
33139
|
+
for (const Z of V)
|
|
33140
|
+
if (Z === re || (Z == null || Z.scrollIntoView({ block: "nearest" }), Z === j && x && (x.scrollTop = 0), Z === ee && x && (x.scrollTop = x.scrollHeight), Z == null || Z.focus(), document.activeElement !== re)) return;
|
|
33115
33141
|
},
|
|
33116
33142
|
[I, x]
|
|
33117
33143
|
), A = C.useCallback(
|
|
@@ -33119,44 +33145,44 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33119
33145
|
[N, k, w]
|
|
33120
33146
|
);
|
|
33121
33147
|
C.useEffect(() => {
|
|
33122
|
-
|
|
33123
|
-
}, [
|
|
33148
|
+
W && A();
|
|
33149
|
+
}, [W, A]);
|
|
33124
33150
|
const { onOpenChange: F, triggerPointerDownPosRef: H } = y;
|
|
33125
33151
|
C.useEffect(() => {
|
|
33126
33152
|
if (w) {
|
|
33127
|
-
let
|
|
33128
|
-
const
|
|
33153
|
+
let V = { x: 0, y: 0 };
|
|
33154
|
+
const j = (ee) => {
|
|
33129
33155
|
var re, Z;
|
|
33130
|
-
|
|
33156
|
+
V = {
|
|
33131
33157
|
x: Math.abs(Math.round(ee.pageX) - (((re = H.current) == null ? void 0 : re.x) ?? 0)),
|
|
33132
33158
|
y: Math.abs(Math.round(ee.pageY) - (((Z = H.current) == null ? void 0 : Z.y) ?? 0))
|
|
33133
33159
|
};
|
|
33134
33160
|
}, K = (ee) => {
|
|
33135
|
-
|
|
33161
|
+
V.x <= 10 && V.y <= 10 ? ee.preventDefault() : w.contains(ee.target) || F(!1), document.removeEventListener("pointermove", j), H.current = null;
|
|
33136
33162
|
};
|
|
33137
|
-
return H.current !== null && (document.addEventListener("pointermove",
|
|
33138
|
-
document.removeEventListener("pointermove",
|
|
33163
|
+
return H.current !== null && (document.addEventListener("pointermove", j), document.addEventListener("pointerup", K, { capture: !0, once: !0 })), () => {
|
|
33164
|
+
document.removeEventListener("pointermove", j), document.removeEventListener("pointerup", K, { capture: !0 });
|
|
33139
33165
|
};
|
|
33140
33166
|
}
|
|
33141
33167
|
}, [w, F, H]), C.useEffect(() => {
|
|
33142
|
-
const
|
|
33143
|
-
return window.addEventListener("blur",
|
|
33144
|
-
window.removeEventListener("blur",
|
|
33168
|
+
const V = () => F(!1);
|
|
33169
|
+
return window.addEventListener("blur", V), window.addEventListener("resize", V), () => {
|
|
33170
|
+
window.removeEventListener("blur", V), window.removeEventListener("resize", V);
|
|
33145
33171
|
};
|
|
33146
33172
|
}, [F]);
|
|
33147
|
-
const [P,
|
|
33148
|
-
const
|
|
33173
|
+
const [P, B] = VI((V) => {
|
|
33174
|
+
const j = I().filter((re) => !re.disabled), K = j.find((re) => re.ref.current === document.activeElement), ee = HI(j, V, K);
|
|
33149
33175
|
ee && setTimeout(() => ee.ref.current.focus());
|
|
33150
33176
|
}), L = C.useCallback(
|
|
33151
|
-
(
|
|
33177
|
+
(V, j, K) => {
|
|
33152
33178
|
const ee = !T.current && !K;
|
|
33153
|
-
(y.value !== void 0 && y.value ===
|
|
33179
|
+
(y.value !== void 0 && y.value === j || ee) && (O(V), ee && (T.current = !0));
|
|
33154
33180
|
},
|
|
33155
33181
|
[y.value]
|
|
33156
|
-
), R = C.useCallback(() => w == null ? void 0 : w.focus(), [w]),
|
|
33157
|
-
(
|
|
33182
|
+
), R = C.useCallback(() => w == null ? void 0 : w.focus(), [w]), U = C.useCallback(
|
|
33183
|
+
(V, j, K) => {
|
|
33158
33184
|
const ee = !T.current && !K;
|
|
33159
|
-
(y.value !== void 0 && y.value ===
|
|
33185
|
+
(y.value !== void 0 && y.value === j || ee) && D(V);
|
|
33160
33186
|
},
|
|
33161
33187
|
[y.value]
|
|
33162
33188
|
), G = r === "popper" ? cv : _I, q = G === cv ? {
|
|
@@ -33181,23 +33207,23 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33181
33207
|
itemRefCallback: L,
|
|
33182
33208
|
selectedItem: k,
|
|
33183
33209
|
onItemLeave: R,
|
|
33184
|
-
itemTextRefCallback:
|
|
33210
|
+
itemTextRefCallback: U,
|
|
33185
33211
|
focusSelectedItem: A,
|
|
33186
33212
|
selectedItemText: M,
|
|
33187
33213
|
position: r,
|
|
33188
|
-
isPositioned:
|
|
33214
|
+
isPositioned: W,
|
|
33189
33215
|
searchRef: P,
|
|
33190
33216
|
children: /* @__PURE__ */ v(Fd, { as: gi, allowPinchZoom: !0, children: /* @__PURE__ */ v(
|
|
33191
33217
|
Nd,
|
|
33192
33218
|
{
|
|
33193
33219
|
asChild: !0,
|
|
33194
33220
|
trapped: y.open,
|
|
33195
|
-
onMountAutoFocus: (
|
|
33196
|
-
|
|
33221
|
+
onMountAutoFocus: (V) => {
|
|
33222
|
+
V.preventDefault();
|
|
33197
33223
|
},
|
|
33198
|
-
onUnmountAutoFocus: ce(o, (
|
|
33199
|
-
var
|
|
33200
|
-
(
|
|
33224
|
+
onUnmountAutoFocus: ce(o, (V) => {
|
|
33225
|
+
var j;
|
|
33226
|
+
(j = y.trigger) == null || j.focus({ preventScroll: !0 }), V.preventDefault();
|
|
33201
33227
|
}),
|
|
33202
33228
|
children: /* @__PURE__ */ v(
|
|
33203
33229
|
As,
|
|
@@ -33206,7 +33232,7 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33206
33232
|
disableOutsidePointerEvents: !0,
|
|
33207
33233
|
onEscapeKeyDown: i,
|
|
33208
33234
|
onPointerDownOutside: a,
|
|
33209
|
-
onFocusOutside: (
|
|
33235
|
+
onFocusOutside: (V) => V.preventDefault(),
|
|
33210
33236
|
onDismiss: () => y.onOpenChange(!1),
|
|
33211
33237
|
children: /* @__PURE__ */ v(
|
|
33212
33238
|
G,
|
|
@@ -33215,7 +33241,7 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33215
33241
|
id: y.contentId,
|
|
33216
33242
|
"data-state": y.open ? "open" : "closed",
|
|
33217
33243
|
dir: y.dir,
|
|
33218
|
-
onContextMenu: (
|
|
33244
|
+
onContextMenu: (V) => V.preventDefault(),
|
|
33219
33245
|
...b,
|
|
33220
33246
|
...q,
|
|
33221
33247
|
onPlaced: () => $(!0),
|
|
@@ -33228,15 +33254,15 @@ var Yr = 10, [SI, fa] = vc(xs), eJ = "SelectContentImpl", CI = C.forwardRef(
|
|
|
33228
33254
|
outline: "none",
|
|
33229
33255
|
...b.style
|
|
33230
33256
|
},
|
|
33231
|
-
onKeyDown: ce(b.onKeyDown, (
|
|
33232
|
-
const
|
|
33233
|
-
if (
|
|
33257
|
+
onKeyDown: ce(b.onKeyDown, (V) => {
|
|
33258
|
+
const j = V.ctrlKey || V.altKey || V.metaKey;
|
|
33259
|
+
if (V.key === "Tab" && V.preventDefault(), !j && V.key.length === 1 && B(V.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(V.key)) {
|
|
33234
33260
|
let ee = I().filter((re) => !re.disabled).map((re) => re.ref.current);
|
|
33235
|
-
if (["ArrowUp", "End"].includes(
|
|
33236
|
-
const re =
|
|
33261
|
+
if (["ArrowUp", "End"].includes(V.key) && (ee = ee.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(V.key)) {
|
|
33262
|
+
const re = V.target, Z = ee.indexOf(re);
|
|
33237
33263
|
ee = ee.slice(Z + 1);
|
|
33238
33264
|
}
|
|
33239
|
-
setTimeout(() => N(ee)),
|
|
33265
|
+
setTimeout(() => N(ee)), V.preventDefault();
|
|
33240
33266
|
}
|
|
33241
33267
|
})
|
|
33242
33268
|
}
|
|
@@ -33272,25 +33298,25 @@ var tJ = "SelectItemAlignedPosition", _I = C.forwardRef((e, t) => {
|
|
|
33272
33298
|
]);
|
|
33273
33299
|
s.style.minWidth = te + "px", s.style.right = _e + "px";
|
|
33274
33300
|
}
|
|
33275
|
-
const D = h(), I = window.innerHeight - Yr * 2,
|
|
33276
|
-
if (
|
|
33301
|
+
const D = h(), I = window.innerHeight - Yr * 2, W = g.scrollHeight, $ = window.getComputedStyle(c), T = parseInt($.borderTopWidth, 10), N = parseInt($.paddingTop, 10), A = parseInt($.borderBottomWidth, 10), F = parseInt($.paddingBottom, 10), H = T + N + W + F + A, P = Math.min(m.offsetHeight * 5, H), B = window.getComputedStyle(g), L = parseInt(B.paddingTop, 10), R = parseInt(B.paddingBottom, 10), U = E.top + E.height / 2 - Yr, G = I - U, q = m.offsetHeight / 2, V = m.offsetTop + q, j = T + N + V, K = H - j;
|
|
33302
|
+
if (j <= U) {
|
|
33277
33303
|
const re = D.length > 0 && m === D[D.length - 1].ref.current;
|
|
33278
33304
|
s.style.bottom = "0px";
|
|
33279
33305
|
const Z = c.clientHeight - g.offsetTop - g.offsetHeight, ie = Math.max(
|
|
33280
33306
|
G,
|
|
33281
33307
|
q + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
33282
33308
|
(re ? R : 0) + Z + A
|
|
33283
|
-
), te =
|
|
33309
|
+
), te = j + ie;
|
|
33284
33310
|
s.style.height = te + "px";
|
|
33285
33311
|
} else {
|
|
33286
33312
|
const re = D.length > 0 && m === D[0].ref.current;
|
|
33287
33313
|
s.style.top = "0px";
|
|
33288
33314
|
const ie = Math.max(
|
|
33289
|
-
|
|
33315
|
+
U,
|
|
33290
33316
|
T + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
33291
33317
|
(re ? L : 0) + q
|
|
33292
33318
|
) + K;
|
|
33293
|
-
s.style.height = ie + "px", g.scrollTop =
|
|
33319
|
+
s.style.height = ie + "px", g.scrollTop = j - U + g.offsetTop;
|
|
33294
33320
|
}
|
|
33295
33321
|
s.style.margin = `${Yr}px 0`, s.style.minHeight = P + "px", s.style.maxHeight = I + "px", r == null || r(), requestAnimationFrame(() => f.current = !0);
|
|
33296
33322
|
}
|
|
@@ -34489,7 +34515,7 @@ function UJ({
|
|
|
34489
34515
|
)
|
|
34490
34516
|
] }) });
|
|
34491
34517
|
}
|
|
34492
|
-
function
|
|
34518
|
+
function W() {
|
|
34493
34519
|
O({
|
|
34494
34520
|
...o,
|
|
34495
34521
|
columnSettings: []
|
|
@@ -34509,7 +34535,7 @@ function UJ({
|
|
|
34509
34535
|
function T() {
|
|
34510
34536
|
var N, A, F, H;
|
|
34511
34537
|
if (i === "date") {
|
|
34512
|
-
const P = DJ(f, g),
|
|
34538
|
+
const P = DJ(f, g), B = {
|
|
34513
34539
|
columnIdx: e,
|
|
34514
34540
|
type: i,
|
|
34515
34541
|
options: P
|
|
@@ -34521,7 +34547,7 @@ function UJ({
|
|
|
34521
34547
|
...((N = o == null ? void 0 : o.columnSettings) == null ? void 0 : N.filter(
|
|
34522
34548
|
(L) => L.columnIdx !== e
|
|
34523
34549
|
)) || [],
|
|
34524
|
-
|
|
34550
|
+
B
|
|
34525
34551
|
]
|
|
34526
34552
|
});
|
|
34527
34553
|
} else if (i === "number") {
|
|
@@ -34544,7 +34570,7 @@ function UJ({
|
|
|
34544
34570
|
},
|
|
34545
34571
|
colorRanges: d.length > 0 ? d : void 0
|
|
34546
34572
|
};
|
|
34547
|
-
const
|
|
34573
|
+
const B = {
|
|
34548
34574
|
columnIdx: e,
|
|
34549
34575
|
type: i,
|
|
34550
34576
|
textAlign: s,
|
|
@@ -34558,7 +34584,7 @@ function UJ({
|
|
|
34558
34584
|
...((A = o == null ? void 0 : o.columnSettings) == null ? void 0 : A.filter(
|
|
34559
34585
|
(L) => L.columnIdx !== e
|
|
34560
34586
|
)) || [],
|
|
34561
|
-
|
|
34587
|
+
B
|
|
34562
34588
|
]
|
|
34563
34589
|
});
|
|
34564
34590
|
} else if (i === "html") {
|
|
@@ -34573,7 +34599,7 @@ function UJ({
|
|
|
34573
34599
|
...o,
|
|
34574
34600
|
columnSettings: [
|
|
34575
34601
|
...((F = o == null ? void 0 : o.columnSettings) == null ? void 0 : F.filter(
|
|
34576
|
-
(
|
|
34602
|
+
(B) => B.columnIdx !== e
|
|
34577
34603
|
)) || [],
|
|
34578
34604
|
P
|
|
34579
34605
|
]
|
|
@@ -34590,7 +34616,7 @@ function UJ({
|
|
|
34590
34616
|
...o,
|
|
34591
34617
|
columnSettings: [
|
|
34592
34618
|
...((H = o == null ? void 0 : o.columnSettings) == null ? void 0 : H.filter(
|
|
34593
|
-
(
|
|
34619
|
+
(B) => B.columnIdx !== e
|
|
34594
34620
|
)) || [],
|
|
34595
34621
|
P
|
|
34596
34622
|
]
|
|
@@ -34644,7 +34670,7 @@ function UJ({
|
|
|
34644
34670
|
/* @__PURE__ */ v(
|
|
34645
34671
|
an,
|
|
34646
34672
|
{
|
|
34647
|
-
onClick:
|
|
34673
|
+
onClick: W,
|
|
34648
34674
|
variant: "secondary",
|
|
34649
34675
|
className: "col-span-1 col-start-1 h-8 w-full text-destructive",
|
|
34650
34676
|
children: "Reset All"
|
|
@@ -34690,19 +34716,19 @@ function qJ({ data: e, card: t }) {
|
|
|
34690
34716
|
function g(k, O) {
|
|
34691
34717
|
const M = k;
|
|
34692
34718
|
if ((O == null ? void 0 : O.type) === "date" && GJ(k)) {
|
|
34693
|
-
const { locale: D, options: I } = O.options,
|
|
34694
|
-
return new Date(
|
|
34719
|
+
const { locale: D, options: I } = O.options, W = new Date(k);
|
|
34720
|
+
return new Date(W.getTime()).toLocaleDateString(
|
|
34695
34721
|
D,
|
|
34696
34722
|
I
|
|
34697
34723
|
);
|
|
34698
34724
|
}
|
|
34699
34725
|
if ((O == null ? void 0 : O.type) === "number") {
|
|
34700
|
-
const { locale: D, currency: I, options:
|
|
34726
|
+
const { locale: D, currency: I, options: W } = O.options;
|
|
34701
34727
|
return I ? new Intl.NumberFormat(D, {
|
|
34702
34728
|
style: "currency",
|
|
34703
34729
|
currency: I,
|
|
34704
|
-
...
|
|
34705
|
-
}).format(k) : new Intl.NumberFormat(D,
|
|
34730
|
+
...W
|
|
34731
|
+
}).format(k) : new Intl.NumberFormat(D, W).format(k);
|
|
34706
34732
|
}
|
|
34707
34733
|
return (O == null ? void 0 : O.type) === "html" ? /* @__PURE__ */ v(
|
|
34708
34734
|
"div",
|
|
@@ -34717,9 +34743,9 @@ function qJ({ data: e, card: t }) {
|
|
|
34717
34743
|
accessorKey: k,
|
|
34718
34744
|
header: ({ column: M }) => {
|
|
34719
34745
|
var A;
|
|
34720
|
-
const D = M.getIsSorted(), I = O,
|
|
34746
|
+
const D = M.getIsSorted(), I = O, W = (A = p == null ? void 0 : p.columnSettings) == null ? void 0 : A.find(
|
|
34721
34747
|
(F) => F.columnIdx === I
|
|
34722
|
-
), $ =
|
|
34748
|
+
), $ = W == null ? void 0 : W.textAlign, T = W == null ? void 0 : W.width, N = T ? { width: T } : {};
|
|
34723
34749
|
return /* @__PURE__ */ Q("div", { className: "flex w-full items-center justify-between gap-2", children: [
|
|
34724
34750
|
/* @__PURE__ */ Q(
|
|
34725
34751
|
"div",
|
|
@@ -34744,21 +34770,21 @@ function qJ({ data: e, card: t }) {
|
|
|
34744
34770
|
var N, A;
|
|
34745
34771
|
const D = M.getValue(), I = (N = p == null ? void 0 : p.columnSettings) == null ? void 0 : N.find(
|
|
34746
34772
|
(F) => F.columnIdx === O
|
|
34747
|
-
),
|
|
34773
|
+
), W = g(D, I), $ = nx(
|
|
34748
34774
|
D,
|
|
34749
34775
|
(A = I == null ? void 0 : I.options) == null ? void 0 : A.colorRanges
|
|
34750
34776
|
), T = I == null ? void 0 : I.textAlign;
|
|
34751
34777
|
return I != null && I.width && I.width, /* @__PURE__ */ v(
|
|
34752
34778
|
"p",
|
|
34753
34779
|
{
|
|
34754
|
-
title:
|
|
34780
|
+
title: W,
|
|
34755
34781
|
className: ae("overflow-auto px-2 py-1", {
|
|
34756
34782
|
"text-center": T === "center",
|
|
34757
34783
|
"text-right": T === "right",
|
|
34758
34784
|
"text-left": T === "left"
|
|
34759
34785
|
}),
|
|
34760
34786
|
style: { backgroundColor: $ },
|
|
34761
|
-
children:
|
|
34787
|
+
children: W
|
|
34762
34788
|
}
|
|
34763
34789
|
);
|
|
34764
34790
|
}
|
|
@@ -34824,12 +34850,12 @@ function qJ({ data: e, card: t }) {
|
|
|
34824
34850
|
},
|
|
34825
34851
|
children: /* @__PURE__ */ Q("table", { className: "w-full", onMouseDown: (k) => k.stopPropagation(), children: [
|
|
34826
34852
|
/* @__PURE__ */ v(GD, { className: "group", children: b.getHeaderGroups().map((k) => /* @__PURE__ */ v(Mh, { children: k.headers.map((O, M) => {
|
|
34827
|
-
var D, I,
|
|
34853
|
+
var D, I, W, $, T, N, A;
|
|
34828
34854
|
return /* @__PURE__ */ v(
|
|
34829
34855
|
YD,
|
|
34830
34856
|
{
|
|
34831
34857
|
style: {
|
|
34832
|
-
backgroundColor: (
|
|
34858
|
+
backgroundColor: (W = (I = (D = a == null ? void 0 : a.chart) == null ? void 0 : D.dataset) == null ? void 0 : I.backgroundColor) == null ? void 0 : W[0],
|
|
34833
34859
|
color: Nu(
|
|
34834
34860
|
(N = (T = ($ = a == null ? void 0 : a.chart) == null ? void 0 : $.dataset) == null ? void 0 : T.backgroundColor) == null ? void 0 : N[0]
|
|
34835
34861
|
)
|
|
@@ -34866,11 +34892,11 @@ function qJ({ data: e, card: t }) {
|
|
|
34866
34892
|
var T, N;
|
|
34867
34893
|
const I = (T = p == null ? void 0 : p.columnSettings) == null ? void 0 : T.find(
|
|
34868
34894
|
(A) => A.columnIdx === D
|
|
34869
|
-
),
|
|
34895
|
+
), W = I == null ? void 0 : I.width;
|
|
34870
34896
|
return /* @__PURE__ */ v(
|
|
34871
34897
|
"td",
|
|
34872
34898
|
{
|
|
34873
|
-
style:
|
|
34899
|
+
style: W ? { width: W, maxWidth: W } : {},
|
|
34874
34900
|
onClick: (A) => {
|
|
34875
34901
|
var H;
|
|
34876
34902
|
const F = ((H = window == null ? void 0 : window.getSelection()) == null ? void 0 : H.toString()) || "";
|
|
@@ -35006,8 +35032,8 @@ function JJ({
|
|
|
35006
35032
|
const g = u(h), m = Object.keys(
|
|
35007
35033
|
((E = e.customCardPreferences) == null ? void 0 : E.dataInputCardIds) || {}
|
|
35008
35034
|
).map((M) => {
|
|
35009
|
-
var
|
|
35010
|
-
const D = ($ = (
|
|
35035
|
+
var W, $, T;
|
|
35036
|
+
const D = ($ = (W = e.customCardPreferences) == null ? void 0 : W.dataInputCardIds) == null ? void 0 : $[M].cardId, I = (T = t == null ? void 0 : t.cards) == null ? void 0 : T.find((N) => N.id === D);
|
|
35011
35037
|
return I || null;
|
|
35012
35038
|
});
|
|
35013
35039
|
function b(M) {
|
|
@@ -35032,8 +35058,8 @@ function JJ({
|
|
|
35032
35058
|
Object.keys(
|
|
35033
35059
|
((O = e.customCardPreferences) == null ? void 0 : O.dataInputCardIds) || {}
|
|
35034
35060
|
).map((M) => {
|
|
35035
|
-
var
|
|
35036
|
-
const D = ($ = (
|
|
35061
|
+
var W, $, T;
|
|
35062
|
+
const D = ($ = (W = e.customCardPreferences) == null ? void 0 : W.dataInputCardIds) == null ? void 0 : $[M].cardId, I = (T = t == null ? void 0 : t.cards) == null ? void 0 : T.find(
|
|
35037
35063
|
(N) => N.id === D
|
|
35038
35064
|
);
|
|
35039
35065
|
if (I)
|
|
@@ -38326,8 +38352,8 @@ function JA() {
|
|
|
38326
38352
|
}
|
|
38327
38353
|
function rre(e, t) {
|
|
38328
38354
|
var n = Mt(), r = JA(), o = h1(), i = g1(), a = b1(), s = a.focusDayAfter, l = a.focusDayBefore, c = a.focusWeekAfter, u = a.focusWeekBefore, d = a.blur, h = a.focus, f = a.focusMonthBefore, p = a.focusMonthAfter, g = a.focusYearBefore, m = a.focusYearAfter, b = a.focusStartOfWeek, y = a.focusEndOfWeek, w = function(A) {
|
|
38329
|
-
var F, H, P,
|
|
38330
|
-
Yg(n) ? (F = r.onDayClick) === null || F === void 0 || F.call(r, e, t, A) : Bd(n) ? (H = o.onDayClick) === null || H === void 0 || H.call(o, e, t, A) : Vd(n) ? (P = i.onDayClick) === null || P === void 0 || P.call(i, e, t, A) : (
|
|
38355
|
+
var F, H, P, B;
|
|
38356
|
+
Yg(n) ? (F = r.onDayClick) === null || F === void 0 || F.call(r, e, t, A) : Bd(n) ? (H = o.onDayClick) === null || H === void 0 || H.call(o, e, t, A) : Vd(n) ? (P = i.onDayClick) === null || P === void 0 || P.call(i, e, t, A) : (B = n.onDayClick) === null || B === void 0 || B.call(n, e, t, A);
|
|
38331
38357
|
}, _ = function(A) {
|
|
38332
38358
|
var F;
|
|
38333
38359
|
h(e), (F = n.onDayFocus) === null || F === void 0 || F.call(n, e, t, A);
|
|
@@ -38355,7 +38381,7 @@ function rre(e, t) {
|
|
|
38355
38381
|
}, I = function(A) {
|
|
38356
38382
|
var F;
|
|
38357
38383
|
(F = n.onDayTouchMove) === null || F === void 0 || F.call(n, e, t, A);
|
|
38358
|
-
},
|
|
38384
|
+
}, W = function(A) {
|
|
38359
38385
|
var F;
|
|
38360
38386
|
(F = n.onDayTouchStart) === null || F === void 0 || F.call(n, e, t, A);
|
|
38361
38387
|
}, $ = function(A) {
|
|
@@ -38403,7 +38429,7 @@ function rre(e, t) {
|
|
|
38403
38429
|
onTouchCancel: M,
|
|
38404
38430
|
onTouchEnd: D,
|
|
38405
38431
|
onTouchMove: I,
|
|
38406
|
-
onTouchStart:
|
|
38432
|
+
onTouchStart: W
|
|
38407
38433
|
};
|
|
38408
38434
|
return N;
|
|
38409
38435
|
}
|
|
@@ -40904,16 +40930,16 @@ function Tie({ children: e, enabled: t = !0 }) {
|
|
|
40904
40930
|
c && i(0);
|
|
40905
40931
|
}, [c]);
|
|
40906
40932
|
let { refs: b, floatingStyles: y, context: w } = Cie({ open: c, placement: g === "selection" ? m === "center" ? "bottom" : `bottom-${m}` : m === "center" ? `${g}` : `${g}-${m}`, strategy: "absolute", transform: !1, middleware: [zx({ mainAxis: g === "selection" ? 0 : d, crossAxis: h }), hD({ padding: f }), g !== "selection" && pD({ padding: f }), g === "selection" && p ? Eie({ ...p, padding: f, overflowRef: a, offset: o, minItemsVisible: c2, referenceOverflowThreshold: f, onFallbackChange(D) {
|
|
40907
|
-
var I,
|
|
40933
|
+
var I, W;
|
|
40908
40934
|
if (!D) return;
|
|
40909
40935
|
let $ = w.elements.floating;
|
|
40910
40936
|
if (!$) return;
|
|
40911
40937
|
let T = parseFloat(getComputedStyle($).scrollPaddingBottom) || 0, N = Math.min(c2, $.childElementCount), A = 0, F = 0;
|
|
40912
|
-
for (let H of (
|
|
40913
|
-
let P = H.offsetTop,
|
|
40914
|
-
if (P >= L &&
|
|
40938
|
+
for (let H of (W = (I = w.elements.floating) == null ? void 0 : I.childNodes) != null ? W : []) if (H instanceof HTMLElement) {
|
|
40939
|
+
let P = H.offsetTop, B = P + H.clientHeight + T, L = $.scrollTop, R = L + $.clientHeight;
|
|
40940
|
+
if (P >= L && B <= R) N--;
|
|
40915
40941
|
else {
|
|
40916
|
-
F = Math.max(0, Math.min(
|
|
40942
|
+
F = Math.max(0, Math.min(B, R) - Math.max(P, L)), A = H.clientHeight;
|
|
40917
40943
|
break;
|
|
40918
40944
|
}
|
|
40919
40945
|
}
|
|
@@ -40921,8 +40947,8 @@ function Tie({ children: e, enabled: t = !0 }) {
|
|
|
40921
40947
|
let P = A * N - F + T;
|
|
40922
40948
|
return H >= P ? H : P;
|
|
40923
40949
|
});
|
|
40924
|
-
} }) : null, gD({ padding: f, apply({ availableWidth: D, availableHeight: I, elements:
|
|
40925
|
-
Object.assign(
|
|
40950
|
+
} }) : null, gD({ padding: f, apply({ availableWidth: D, availableHeight: I, elements: W }) {
|
|
40951
|
+
Object.assign(W.floating.style, { overflow: "auto", maxWidth: `${D}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${I}px)` });
|
|
40926
40952
|
} })].filter(Boolean), whileElementsMounted: uD }), [_ = g, x = m] = w.placement.split("-");
|
|
40927
40953
|
g === "selection" && (_ = "selection");
|
|
40928
40954
|
let S = wt(() => ({ anchor: [_, x].filter(Boolean).join(" ") }), [_, x]), E = Rie(w, { overflowRef: a, onChange: i }), { getReferenceProps: k, getFloatingProps: O } = _ie([E]), M = Ee((D) => {
|
|
@@ -41249,7 +41275,7 @@ function nae(e, t) {
|
|
|
41249
41275
|
let rae = zr;
|
|
41250
41276
|
function oae(e, t) {
|
|
41251
41277
|
var n, r;
|
|
41252
|
-
let o = w1(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: h, __demoMode: f = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: b, ...y } = e, w = Zre(a), [_ = p ? [] : void 0, x] = Qre(i, s, w), [S, E] = Kk(nae, { dataRef: d6(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), k = me(!1), O = me({ static: !1, hold: !1 }), M = Toe(u), D = Ee((te) => m ? u === null ? m.options.indexOf(te) : m.options.findIndex((fe) => M(fe, te)) : S.options.findIndex((fe) => M(fe.dataRef.current.value, te))), I = qe((te) => no($.mode, { 1: () => _.some((fe) => M(fe, te)), 0: () => M(_, te) }), [_]),
|
|
41278
|
+
let o = w1(), { value: i, defaultValue: a, onChange: s, form: l, name: c, by: u, disabled: d = o || !1, onClose: h, __demoMode: f = !1, multiple: p = !1, immediate: g = !1, virtual: m = null, nullable: b, ...y } = e, w = Zre(a), [_ = p ? [] : void 0, x] = Qre(i, s, w), [S, E] = Kk(nae, { dataRef: d6(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: m ? { options: m.options, disabled: (n = m.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), k = me(!1), O = me({ static: !1, hold: !1 }), M = Toe(u), D = Ee((te) => m ? u === null ? m.options.indexOf(te) : m.options.findIndex((fe) => M(fe, te)) : S.options.findIndex((fe) => M(fe.dataRef.current.value, te))), I = qe((te) => no($.mode, { 1: () => _.some((fe) => M(fe, te)), 0: () => M(_, te) }), [_]), W = Ee((te) => S.activeOptionIndex === D(te)), $ = wt(() => ({ ...S, immediate: g, optionsPropsRef: O, value: _, defaultValue: w, disabled: d, mode: p ? 1 : 0, virtual: m ? S.virtual : null, get activeOptionIndex() {
|
|
41253
41279
|
if (k.current && S.activeOptionIndex === null && (m ? m.options.length > 0 : S.options.length > 0)) {
|
|
41254
41280
|
if (m) {
|
|
41255
41281
|
let fe = m.options.findIndex((he) => {
|
|
@@ -41262,7 +41288,7 @@ function oae(e, t) {
|
|
|
41262
41288
|
if (te !== -1) return te;
|
|
41263
41289
|
}
|
|
41264
41290
|
return S.activeOptionIndex;
|
|
41265
|
-
}, calculateIndex: D, compare: M, isSelected: I, isActive:
|
|
41291
|
+
}, calculateIndex: D, compare: M, isSelected: I, isActive: W }), [_, w, d, p, f, S, m]);
|
|
41266
41292
|
xt(() => {
|
|
41267
41293
|
var te;
|
|
41268
41294
|
m && E({ type: 7, options: m.options, disabled: (te = m.disabled) != null ? te : null });
|
|
@@ -41270,18 +41296,18 @@ function oae(e, t) {
|
|
|
41270
41296
|
S.dataRef.current = $;
|
|
41271
41297
|
}, [$]);
|
|
41272
41298
|
let T = $.comboboxState === 0;
|
|
41273
|
-
Uoe(T, [$.buttonElement, $.inputElement, $.optionsElement], () =>
|
|
41299
|
+
Uoe(T, [$.buttonElement, $.inputElement, $.optionsElement], () => j.closeCombobox());
|
|
41274
41300
|
let N = wt(() => {
|
|
41275
41301
|
var te, fe, he;
|
|
41276
41302
|
return { open: $.comboboxState === 0, disabled: d, activeIndex: $.activeOptionIndex, activeOption: $.activeOptionIndex === null ? null : $.virtual ? $.virtual.options[(te = $.activeOptionIndex) != null ? te : 0] : (he = (fe = $.options[$.activeOptionIndex]) == null ? void 0 : fe.dataRef.current.value) != null ? he : null, value: _ };
|
|
41277
41303
|
}, [$, d, _]), A = Ee(() => {
|
|
41278
41304
|
if ($.activeOptionIndex !== null) {
|
|
41279
|
-
if (
|
|
41305
|
+
if (j.setIsTyping(!1), $.virtual) R($.virtual.options[$.activeOptionIndex]);
|
|
41280
41306
|
else {
|
|
41281
41307
|
let { dataRef: te } = $.options[$.activeOptionIndex];
|
|
41282
41308
|
R(te.current.value);
|
|
41283
41309
|
}
|
|
41284
|
-
|
|
41310
|
+
j.goToOption(Jt.Specific, $.activeOptionIndex);
|
|
41285
41311
|
}
|
|
41286
41312
|
}), F = Ee(() => {
|
|
41287
41313
|
E({ type: 0 }), k.current = !0;
|
|
@@ -41289,25 +41315,25 @@ function oae(e, t) {
|
|
|
41289
41315
|
E({ type: 1 }), k.current = !1, h == null || h();
|
|
41290
41316
|
}), P = Ee((te) => {
|
|
41291
41317
|
E({ type: 3, isTyping: te });
|
|
41292
|
-
}),
|
|
41318
|
+
}), B = Ee((te, fe, he) => (k.current = !1, te === Jt.Specific ? E({ type: 2, focus: Jt.Specific, idx: fe, trigger: he }) : E({ type: 2, focus: te, trigger: he }))), L = Ee((te, fe) => (E({ type: 4, payload: { id: te, dataRef: fe } }), () => {
|
|
41293
41319
|
$.isActive(fe.current.value) && (k.current = !0), E({ type: 5, id: te });
|
|
41294
41320
|
})), R = Ee((te) => no($.mode, { 0() {
|
|
41295
41321
|
return x == null ? void 0 : x(te);
|
|
41296
41322
|
}, 1() {
|
|
41297
41323
|
let fe = $.value.slice(), he = fe.findIndex((_e) => M(_e, te));
|
|
41298
41324
|
return he === -1 ? fe.push(te) : fe.splice(he, 1), x == null ? void 0 : x(fe);
|
|
41299
|
-
} })),
|
|
41325
|
+
} })), U = Ee((te) => {
|
|
41300
41326
|
E({ type: 6, trigger: te });
|
|
41301
41327
|
}), G = Ee((te) => {
|
|
41302
41328
|
E({ type: 8, element: te });
|
|
41303
41329
|
}), q = Ee((te) => {
|
|
41304
41330
|
E({ type: 9, element: te });
|
|
41305
|
-
}),
|
|
41331
|
+
}), V = Ee((te) => {
|
|
41306
41332
|
E({ type: 10, element: te });
|
|
41307
|
-
}),
|
|
41333
|
+
}), j = wt(() => ({ onChange: R, registerOption: L, goToOption: B, setIsTyping: P, closeCombobox: H, openCombobox: F, setActivationTrigger: U, selectActiveOption: A, setInputElement: G, setButtonElement: q, setOptionsElement: V }), []), [K, ee] = hoe(), re = t === null ? {} : { ref: t }, Z = qe(() => {
|
|
41308
41334
|
if (w !== void 0) return x == null ? void 0 : x(w);
|
|
41309
41335
|
}, [x, w]), ie = Mr();
|
|
41310
|
-
return J.createElement(ee, { value: K, props: { htmlFor: (r = $.inputElement) == null ? void 0 : r.id }, slot: { open: $.comboboxState === 0, disabled: d } }, J.createElement(Tie, null, J.createElement(M1.Provider, { value:
|
|
41336
|
+
return J.createElement(ee, { value: K, props: { htmlFor: (r = $.inputElement) == null ? void 0 : r.id }, slot: { open: $.comboboxState === 0, disabled: d } }, J.createElement(Tie, null, J.createElement(M1.Provider, { value: j }, J.createElement(ed.Provider, { value: $ }, J.createElement(NN, { value: no($.comboboxState, { 0: eo.Open, 1: eo.Closed }) }, c != null && J.createElement(roe, { disabled: d, data: _ != null ? { [c]: _ } : {}, form: l, onReset: Z }), ie({ ourProps: re, theirProps: y, slot: N, defaultTag: rae, name: "Combobox" }))))));
|
|
41311
41337
|
}
|
|
41312
41338
|
let iae = "input";
|
|
41313
41339
|
function aae(e, t) {
|
|
@@ -41318,21 +41344,21 @@ function aae(e, t) {
|
|
|
41318
41344
|
var R;
|
|
41319
41345
|
return typeof f == "function" && s.value !== void 0 ? (R = f(s.value)) != null ? R : "" : typeof s.value == "string" ? s.value : "";
|
|
41320
41346
|
}, [s.value, f]);
|
|
41321
|
-
r2(([R,
|
|
41347
|
+
r2(([R, U], [G, q]) => {
|
|
41322
41348
|
if (s.isTyping) return;
|
|
41323
|
-
let
|
|
41324
|
-
|
|
41325
|
-
if (s.isTyping || !
|
|
41326
|
-
let { selectionStart:
|
|
41327
|
-
Math.abs((K ?? 0) - (
|
|
41349
|
+
let V = y.current;
|
|
41350
|
+
V && ((q === 0 && U === 1 || R !== G) && (V.value = R), requestAnimationFrame(() => {
|
|
41351
|
+
if (s.isTyping || !V || (_ == null ? void 0 : _.activeElement) !== V) return;
|
|
41352
|
+
let { selectionStart: j, selectionEnd: K } = V;
|
|
41353
|
+
Math.abs((K ?? 0) - (j ?? 0)) === 0 && j === 0 && V.setSelectionRange(V.value.length, V.value.length);
|
|
41328
41354
|
}));
|
|
41329
|
-
}, [E, s.comboboxState, _, s.isTyping]), r2(([R], [
|
|
41330
|
-
if (R === 0 &&
|
|
41355
|
+
}, [E, s.comboboxState, _, s.isTyping]), r2(([R], [U]) => {
|
|
41356
|
+
if (R === 0 && U === 1) {
|
|
41331
41357
|
if (s.isTyping) return;
|
|
41332
41358
|
let G = y.current;
|
|
41333
41359
|
if (!G) return;
|
|
41334
|
-
let q = G.value, { selectionStart:
|
|
41335
|
-
G.value = "", G.value = q, K !== null ? G.setSelectionRange(
|
|
41360
|
+
let q = G.value, { selectionStart: V, selectionEnd: j, selectionDirection: K } = G;
|
|
41361
|
+
G.value = "", G.value = q, K !== null ? G.setSelectionRange(V, j, K) : G.setSelectionRange(V, j);
|
|
41336
41362
|
}
|
|
41337
41363
|
}, [s.comboboxState]);
|
|
41338
41364
|
let k = me(!1), O = Ee(() => {
|
|
@@ -41376,18 +41402,18 @@ function aae(e, t) {
|
|
|
41376
41402
|
}
|
|
41377
41403
|
}), I = Ee((R) => {
|
|
41378
41404
|
h == null || h(R), s.mode === 0 && R.target.value === "" && S(), l.openCombobox();
|
|
41379
|
-
}),
|
|
41380
|
-
var
|
|
41381
|
-
let
|
|
41382
|
-
if (!((G = s.optionsElement) != null && G.contains(
|
|
41405
|
+
}), W = Ee((R) => {
|
|
41406
|
+
var U, G, q;
|
|
41407
|
+
let V = (U = R.relatedTarget) != null ? U : Da.find((j) => j !== R.currentTarget);
|
|
41408
|
+
if (!((G = s.optionsElement) != null && G.contains(V)) && !((q = s.buttonElement) != null && q.contains(V)) && s.comboboxState === 0) return R.preventDefault(), s.mode === 0 && s.value === null && S(), l.closeCombobox();
|
|
41383
41409
|
}), $ = Ee((R) => {
|
|
41384
|
-
var
|
|
41385
|
-
let
|
|
41386
|
-
(G = s.buttonElement) != null && G.contains(
|
|
41410
|
+
var U, G, q;
|
|
41411
|
+
let V = (U = R.relatedTarget) != null ? U : Da.find((j) => j !== R.currentTarget);
|
|
41412
|
+
(G = s.buttonElement) != null && G.contains(V) || (q = s.optionsElement) != null && q.contains(V) || s.disabled || s.immediate && s.comboboxState !== 0 && x.microTask(() => {
|
|
41387
41413
|
Na(() => l.openCombobox()), l.setActivationTrigger(1);
|
|
41388
41414
|
});
|
|
41389
|
-
}), T = Xg(), N = coe(), { isFocused: A, focusProps: F } = fN({ autoFocus: g }), { isHovered: H, hoverProps: P } = dN({ isDisabled: p }),
|
|
41390
|
-
return Mr()({ ourProps: L, theirProps: b, slot:
|
|
41415
|
+
}), T = Xg(), N = coe(), { isFocused: A, focusProps: F } = fN({ autoFocus: g }), { isHovered: H, hoverProps: P } = dN({ isDisabled: p }), B = wt(() => ({ open: s.comboboxState === 0, disabled: p, hover: H, focus: A, autofocus: g }), [s, H, A, g, p]), L = x1({ ref: w, id: d, role: "combobox", type: m, "aria-controls": (n = s.optionsElement) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null ? void 0 : s.virtual ? (r = s.options.find((R) => !R.dataRef.current.disabled && s.compare(R.dataRef.current.value, s.virtual.options[s.activeOptionIndex]))) == null ? void 0 : r.id : (o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": T, "aria-describedby": N, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? f == null ? void 0 : f(s.defaultValue) : null) != null ? a : s.defaultValue, disabled: p || void 0, autoFocus: g, onCompositionStart: O, onCompositionEnd: M, onKeyDown: D, onChange: I, onFocus: $, onBlur: W }, F, P);
|
|
41416
|
+
return Mr()({ ourProps: L, theirProps: b, slot: B, defaultTag: iae, name: "Combobox.Input" });
|
|
41391
41417
|
}
|
|
41392
41418
|
let sae = "button";
|
|
41393
41419
|
function lae(e, t) {
|
|
@@ -41436,17 +41462,17 @@ function dae(e, t) {
|
|
|
41436
41462
|
}, walk(L) {
|
|
41437
41463
|
L.setAttribute("role", "none");
|
|
41438
41464
|
} });
|
|
41439
|
-
let I = Xg([(n = f.buttonElement) == null ? void 0 : n.id]),
|
|
41465
|
+
let I = Xg([(n = f.buttonElement) == null ? void 0 : n.id]), W = wt(() => ({ open: f.comboboxState === 0, option: void 0 }), [f.comboboxState]), $ = Ee(() => {
|
|
41440
41466
|
p.setActivationTrigger(0);
|
|
41441
41467
|
}), T = Ee((L) => {
|
|
41442
41468
|
L.preventDefault(), p.setActivationTrigger(0);
|
|
41443
41469
|
}), N = x1(g ? _() : {}, { "aria-labelledby": I, role: "listbox", "aria-multiselectable": f.mode === 1 ? !0 : void 0, id: a, ref: x, style: { ...h.style, ...b, "--input-width": XR(f.inputElement, !0).width, "--button-width": XR(f.buttonElement, !0).width }, onWheel: f.activationTrigger === 0 ? void 0 : $, onMouseDown: T, ...MN(O) }), A = k && f.comboboxState === 1, F = Ev(A, (r = f.virtual) == null ? void 0 : r.options), H = Ev(A, f.value), P = Ee((L) => f.compare(H, L));
|
|
41444
41470
|
if (f.virtual) {
|
|
41445
41471
|
if (F === void 0) throw new Error("Missing `options` in virtual mode");
|
|
41446
|
-
Object.assign(h, { children: J.createElement(ed.Provider, { value: F !== f.virtual.options ? { ...f, virtual: { ...f.virtual, options: F } } : f }, J.createElement(tae, { slot:
|
|
41472
|
+
Object.assign(h, { children: J.createElement(ed.Provider, { value: F !== f.virtual.options ? { ...f, virtual: { ...f.virtual, options: F } } : f }, J.createElement(tae, { slot: W }, h.children)) });
|
|
41447
41473
|
}
|
|
41448
|
-
let
|
|
41449
|
-
return J.createElement(Kie, { enabled: c ? e.static || k : !1 }, J.createElement(ed.Provider, { value: f.mode === 1 ? f : { ...f, isSelected: P } },
|
|
41474
|
+
let B = Mr();
|
|
41475
|
+
return J.createElement(Kie, { enabled: c ? e.static || k : !1 }, J.createElement(ed.Provider, { value: f.mode === 1 ? f : { ...f, isSelected: P } }, B({ ourProps: N, theirProps: { ...h, children: J.createElement(Aie, { freeze: A }, typeof h.children == "function" ? (o = h.children) == null ? void 0 : o.call(h, W) : h.children) }, slot: W, defaultTag: cae, features: uae, visible: k, name: "Combobox.Options" })));
|
|
41450
41476
|
}
|
|
41451
41477
|
let fae = "div";
|
|
41452
41478
|
function hae(e, t) {
|
|
@@ -41478,8 +41504,8 @@ function hae(e, t) {
|
|
|
41478
41504
|
s.goToOption(Jt.Specific, N, 0);
|
|
41479
41505
|
}), I = Ee((T) => {
|
|
41480
41506
|
O.wasMoved(T) && (d || g && (a.optionsPropsRef.current.hold || s.goToOption(Jt.Nothing)));
|
|
41481
|
-
}),
|
|
41482
|
-
return Mr()({ ourProps: $, theirProps: f, slot:
|
|
41507
|
+
}), W = wt(() => ({ active: g, focus: g, selected: m, disabled: d }), [g, m, d]), $ = { id: c, ref: _, role: "option", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-selected": m, disabled: void 0, onMouseDown: E, onFocus: k, onPointerEnter: M, onMouseEnter: M, onPointerMove: D, onMouseMove: D, onPointerLeave: I, onMouseLeave: I };
|
|
41508
|
+
return Mr()({ ourProps: $, theirProps: f, slot: W, defaultTag: fae, name: "Combobox.Option" });
|
|
41483
41509
|
}
|
|
41484
41510
|
let pae = sr(oae), zN = sr(lae), BN = sr(aae), gae = boe, VN = sr(dae), HN = sr(hae), mae = Object.assign(pae, { Input: BN, Button: zN, Label: gae, Options: VN, Option: HN });
|
|
41485
41511
|
function bae() {
|
|
@@ -41541,41 +41567,41 @@ function WN(e, t) {
|
|
|
41541
41567
|
let UN = zr, GN = Ip.RenderStrategy;
|
|
41542
41568
|
function xae(e, t) {
|
|
41543
41569
|
var n, r;
|
|
41544
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: c, enterFrom: u, enterTo: d, entered: h, leave: f, leaveFrom: p, leaveTo: g, ...m } = e, [b, y] = ge(null), w = me(null), _ = jN(e), x = so(..._ ? [w, t, y] : t === null ? [] : [t]), S = (n = m.unmount) == null || n ? Gi.Unmount : Gi.Hidden, { show: E, appear: k, initial: O } = vae(), [M, D] = ge(E ? "visible" : "hidden"), I = wae(), { register:
|
|
41545
|
-
xt(() =>
|
|
41570
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: a, beforeLeave: s, afterLeave: l, enter: c, enterFrom: u, enterTo: d, entered: h, leave: f, leaveFrom: p, leaveTo: g, ...m } = e, [b, y] = ge(null), w = me(null), _ = jN(e), x = so(..._ ? [w, t, y] : t === null ? [] : [t]), S = (n = m.unmount) == null || n ? Gi.Unmount : Gi.Hidden, { show: E, appear: k, initial: O } = vae(), [M, D] = ge(E ? "visible" : "hidden"), I = wae(), { register: W, unregister: $ } = I;
|
|
41571
|
+
xt(() => W(w), [W, w]), xt(() => {
|
|
41546
41572
|
if (S === Gi.Hidden && w.current) {
|
|
41547
41573
|
if (E && M !== "visible") {
|
|
41548
41574
|
D("visible");
|
|
41549
41575
|
return;
|
|
41550
41576
|
}
|
|
41551
|
-
return no(M, { hidden: () => $(w), visible: () =>
|
|
41577
|
+
return no(M, { hidden: () => $(w), visible: () => W(w) });
|
|
41552
41578
|
}
|
|
41553
|
-
}, [M, w,
|
|
41579
|
+
}, [M, w, W, $, E, S]);
|
|
41554
41580
|
let T = O1();
|
|
41555
41581
|
xt(() => {
|
|
41556
41582
|
if (_ && T && M === "visible" && w.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
41557
41583
|
}, [w, M, T, _]);
|
|
41558
41584
|
let N = O && !k, A = k && E && O, F = me(!1), H = WN(() => {
|
|
41559
41585
|
F.current || (D("hidden"), $(w));
|
|
41560
|
-
}, I), P = Ee((
|
|
41586
|
+
}, I), P = Ee((V) => {
|
|
41561
41587
|
F.current = !0;
|
|
41562
|
-
let
|
|
41563
|
-
H.onStart(w,
|
|
41588
|
+
let j = V ? "enter" : "leave";
|
|
41589
|
+
H.onStart(w, j, (K) => {
|
|
41564
41590
|
K === "enter" ? i == null || i() : K === "leave" && (s == null || s());
|
|
41565
41591
|
});
|
|
41566
|
-
}),
|
|
41567
|
-
let
|
|
41568
|
-
F.current = !1, H.onStop(w,
|
|
41592
|
+
}), B = Ee((V) => {
|
|
41593
|
+
let j = V ? "enter" : "leave";
|
|
41594
|
+
F.current = !1, H.onStop(w, j, (K) => {
|
|
41569
41595
|
K === "enter" ? a == null || a() : K === "leave" && (l == null || l());
|
|
41570
|
-
}),
|
|
41596
|
+
}), j === "leave" && !em(H) && (D("hidden"), $(w));
|
|
41571
41597
|
});
|
|
41572
41598
|
we(() => {
|
|
41573
|
-
_ && o || (P(E),
|
|
41599
|
+
_ && o || (P(E), B(E));
|
|
41574
41600
|
}, [E, _, o]);
|
|
41575
|
-
let L = !(!o || !_ || !T || N), [, R] = TN(L, b, E, { start: P, end:
|
|
41601
|
+
let L = !(!o || !_ || !T || N), [, R] = TN(L, b, E, { start: P, end: B }), U = Di({ ref: x, className: ((r = xv(m.className, A && c, A && u, R.enter && c, R.enter && R.closed && u, R.enter && !R.closed && d, R.leave && f, R.leave && !R.closed && p, R.leave && R.closed && g, !R.transition && E && h)) == null ? void 0 : r.trim()) || void 0, ...MN(R) }), G = 0;
|
|
41576
41602
|
M === "visible" && (G |= eo.Open), M === "hidden" && (G |= eo.Closed), R.enter && (G |= eo.Opening), R.leave && (G |= eo.Closing);
|
|
41577
41603
|
let q = Mr();
|
|
41578
|
-
return J.createElement(Jg.Provider, { value: H }, J.createElement(NN, { value: G }, q({ ourProps:
|
|
41604
|
+
return J.createElement(Jg.Provider, { value: H }, J.createElement(NN, { value: G }, q({ ourProps: U, theirProps: m, defaultTag: UN, features: GN, visible: M === "visible", name: "Transition.Child" })));
|
|
41579
41605
|
}
|
|
41580
41606
|
function Sae(e, t) {
|
|
41581
41607
|
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, a = me(null), s = jN(e), l = so(...s ? [a, t] : t === null ? [] : [t]);
|
|
@@ -42328,10 +42354,10 @@ function Uae({ card: e, frame: t }) {
|
|
|
42328
42354
|
function E() {
|
|
42329
42355
|
var A, F, H;
|
|
42330
42356
|
if (n && n.length > 0) {
|
|
42331
|
-
const P = n.find((
|
|
42357
|
+
const P = n.find((B) => B.cardId === e.id);
|
|
42332
42358
|
if (P && P.replaceDefault) {
|
|
42333
|
-
const
|
|
42334
|
-
if (
|
|
42359
|
+
const B = P.content;
|
|
42360
|
+
if (B) return /* @__PURE__ */ v(B, { card: e });
|
|
42335
42361
|
}
|
|
42336
42362
|
}
|
|
42337
42363
|
if (e.type === "kpi") {
|
|
@@ -42347,7 +42373,7 @@ function Uae({ card: e, frame: t }) {
|
|
|
42347
42373
|
card: e,
|
|
42348
42374
|
data: (x == null ? void 0 : x.records) || []
|
|
42349
42375
|
}
|
|
42350
|
-
) }) :
|
|
42376
|
+
) }) : W;
|
|
42351
42377
|
}
|
|
42352
42378
|
function k() {
|
|
42353
42379
|
return ["{{ filters | where }}", "{{ filters | and }}"].some(
|
|
@@ -42428,11 +42454,11 @@ function Uae({ card: e, frame: t }) {
|
|
|
42428
42454
|
value: t.activeCardId,
|
|
42429
42455
|
className: "flex items-center justify-end gap-3",
|
|
42430
42456
|
onValueChange: (P) => {
|
|
42431
|
-
const
|
|
42457
|
+
const B = {
|
|
42432
42458
|
...t,
|
|
42433
42459
|
activeCardId: P
|
|
42434
42460
|
};
|
|
42435
|
-
p(i,
|
|
42461
|
+
p(i, B);
|
|
42436
42462
|
},
|
|
42437
42463
|
children: /* @__PURE__ */ v(
|
|
42438
42464
|
kw,
|
|
@@ -42443,16 +42469,16 @@ function Uae({ card: e, frame: t }) {
|
|
|
42443
42469
|
className: "flex-end flex-wrap items-center",
|
|
42444
42470
|
children: (H = t.cards.filter(
|
|
42445
42471
|
(P) => {
|
|
42446
|
-
var
|
|
42447
|
-
return !((
|
|
42472
|
+
var B;
|
|
42473
|
+
return !((B = P.tabTitle) != null && B.endsWith("__Header")) && (P.displayTab === !0 || P.displayTab === void 0);
|
|
42448
42474
|
}
|
|
42449
42475
|
)) == null ? void 0 : H.map((P) => {
|
|
42450
|
-
var
|
|
42476
|
+
var B, L;
|
|
42451
42477
|
return /* @__PURE__ */ v(
|
|
42452
42478
|
Pw,
|
|
42453
42479
|
{
|
|
42454
42480
|
style: {
|
|
42455
|
-
borderRadius: (L = (
|
|
42481
|
+
borderRadius: (L = (B = o == null ? void 0 : o.chart) == null ? void 0 : B.options) == null ? void 0 : L.borderRadius
|
|
42456
42482
|
},
|
|
42457
42483
|
value: P.id,
|
|
42458
42484
|
children: P.tabTitle || P.title
|
|
@@ -42534,7 +42560,7 @@ function Uae({ card: e, frame: t }) {
|
|
|
42534
42560
|
] });
|
|
42535
42561
|
}
|
|
42536
42562
|
if (!e.id) return null;
|
|
42537
|
-
const
|
|
42563
|
+
const W = /* @__PURE__ */ Q(bt, { children: [
|
|
42538
42564
|
g ? /* @__PURE__ */ v(ww, { children: /* @__PURE__ */ Q("div", { className: "flex flex-wrap items-start justify-between gap-2", children: [
|
|
42539
42565
|
/* @__PURE__ */ v("div", { className: "grow", role: "header-container", children: I() }),
|
|
42540
42566
|
/* @__PURE__ */ Q("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
@@ -42999,14 +43025,14 @@ function Sse(e) {
|
|
|
42999
43025
|
}
|
|
43000
43026
|
var Cse = (e) => {
|
|
43001
43027
|
var t, n, r, o, i, a, s, l, c, u, d;
|
|
43002
|
-
let { invert: h, toast: f, unstyled: p, interacting: g, setHeights: m, visibleToasts: b, heights: y, index: w, toasts: _, expanded: x, removeToast: S, defaultRichColors: E, closeButton: k, style: O, cancelButtonStyle: M, actionButtonStyle: D, className: I = "", descriptionClassName:
|
|
43028
|
+
let { invert: h, toast: f, unstyled: p, interacting: g, setHeights: m, visibleToasts: b, heights: y, index: w, toasts: _, expanded: x, removeToast: S, defaultRichColors: E, closeButton: k, style: O, cancelButtonStyle: M, actionButtonStyle: D, className: I = "", descriptionClassName: W = "", duration: $, position: T, gap: N, loadingIcon: A, expandByDefault: F, classNames: H, icons: P, closeButtonAriaLabel: B = "Close toast", pauseWhenPageIsHidden: L } = e, [R, U] = J.useState(null), [G, q] = J.useState(null), [V, j] = J.useState(!1), [K, ee] = J.useState(!1), [re, Z] = J.useState(!1), [ie, te] = J.useState(!1), [fe, he] = J.useState(!1), [_e, be] = J.useState(0), [xe, Ve] = J.useState(0), st = J.useRef(f.duration || $ || f2), Qt = J.useRef(null), Qe = J.useRef(null), ur = w === 0, Tt = w + 1 <= b, ne = f.type, ue = f.dismissible !== !1, Ce = f.className || "", Te = f.descriptionClassName || "", Ye = J.useMemo(() => y.findIndex((Fe) => Fe.toastId === f.id) || 0, [y, f.id]), bn = J.useMemo(() => {
|
|
43003
43029
|
var Fe;
|
|
43004
43030
|
return (Fe = f.closeButton) != null ? Fe : k;
|
|
43005
43031
|
}, [f.closeButton, k]), dr = J.useMemo(() => f.duration || $ || f2, [f.duration, $]), Dn = J.useRef(0), jn = J.useRef(0), yn = J.useRef(0), Dt = J.useRef(null), [co, Wn] = T.split("-"), tf = J.useMemo(() => y.reduce((Fe, ht, kt) => kt >= Ye ? Fe : Fe + ht.height, 0), [y, Ye]), Ec = ase(), ma = f.invert || h, Rc = ne === "loading";
|
|
43006
43032
|
jn.current = J.useMemo(() => Ye * N + tf, [Ye, tf]), J.useEffect(() => {
|
|
43007
43033
|
st.current = dr;
|
|
43008
43034
|
}, [dr]), J.useEffect(() => {
|
|
43009
|
-
|
|
43035
|
+
j(!0);
|
|
43010
43036
|
}, []), J.useEffect(() => {
|
|
43011
43037
|
let Fe = Qe.current;
|
|
43012
43038
|
if (Fe) {
|
|
@@ -43014,12 +43040,12 @@ var Cse = (e) => {
|
|
|
43014
43040
|
return Ve(ht), m((kt) => [{ toastId: f.id, height: ht, position: f.position }, ...kt]), () => m((kt) => kt.filter((fr) => fr.toastId !== f.id));
|
|
43015
43041
|
}
|
|
43016
43042
|
}, [m, f.id]), J.useLayoutEffect(() => {
|
|
43017
|
-
if (!
|
|
43043
|
+
if (!V) return;
|
|
43018
43044
|
let Fe = Qe.current, ht = Fe.style.height;
|
|
43019
43045
|
Fe.style.height = "auto";
|
|
43020
43046
|
let kt = Fe.getBoundingClientRect().height;
|
|
43021
43047
|
Fe.style.height = ht, Ve(kt), m((fr) => fr.find((Yt) => Yt.toastId === f.id) ? fr.map((Yt) => Yt.toastId === f.id ? { ...Yt, height: kt } : Yt) : [{ toastId: f.id, height: kt, position: f.position }, ...fr]);
|
|
43022
|
-
}, [
|
|
43048
|
+
}, [V, f.title, f.description, m, f.id]);
|
|
43023
43049
|
let vn = J.useCallback(() => {
|
|
43024
43050
|
ee(!0), be(jn.current), m((Fe) => Fe.filter((ht) => ht.toastId !== f.id)), setTimeout(() => {
|
|
43025
43051
|
S(f);
|
|
@@ -43045,8 +43071,8 @@ var Cse = (e) => {
|
|
|
43045
43071
|
var Fe, ht, kt;
|
|
43046
43072
|
return P != null && P.loading ? J.createElement("div", { className: Gr(H == null ? void 0 : H.loader, (Fe = f == null ? void 0 : f.classNames) == null ? void 0 : Fe.loader, "sonner-loader"), "data-visible": ne === "loading" }, P.loading) : A ? J.createElement("div", { className: Gr(H == null ? void 0 : H.loader, (ht = f == null ? void 0 : f.classNames) == null ? void 0 : ht.loader, "sonner-loader"), "data-visible": ne === "loading" }, A) : J.createElement(ese, { className: Gr(H == null ? void 0 : H.loader, (kt = f == null ? void 0 : f.classNames) == null ? void 0 : kt.loader), visible: ne === "loading" });
|
|
43047
43073
|
}
|
|
43048
|
-
return J.createElement("li", { tabIndex: 0, ref: Qe, className: Gr(I, Ce, H == null ? void 0 : H.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, H == null ? void 0 : H.default, H == null ? void 0 : H[ne], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[ne]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || p), "data-mounted":
|
|
43049
|
-
Z(!1),
|
|
43074
|
+
return J.createElement("li", { tabIndex: 0, ref: Qe, className: Gr(I, Ce, H == null ? void 0 : H.toast, (t = f == null ? void 0 : f.classNames) == null ? void 0 : t.toast, H == null ? void 0 : H.default, H == null ? void 0 : H[ne], (n = f == null ? void 0 : f.classNames) == null ? void 0 : n[ne]), "data-sonner-toast": "", "data-rich-colors": (r = f.richColors) != null ? r : E, "data-styled": !(f.jsx || f.unstyled || p), "data-mounted": V, "data-promise": !!f.promise, "data-swiped": fe, "data-removed": K, "data-visible": Tt, "data-y-position": co, "data-x-position": Wn, "data-index": w, "data-front": ur, "data-swiping": re, "data-dismissible": ue, "data-type": ne, "data-invert": ma, "data-swipe-out": ie, "data-swipe-direction": G, "data-expanded": !!(x || F && V), style: { "--index": w, "--toasts-before": w, "--z-index": _.length - w, "--offset": `${K ? _e : jn.current}px`, "--initial-height": F ? "auto" : `${xe}px`, ...O, ...f.style }, onDragEnd: () => {
|
|
43075
|
+
Z(!1), U(null), Dt.current = null;
|
|
43050
43076
|
}, onPointerDown: (Fe) => {
|
|
43051
43077
|
Rc || !ue || (Qt.current = /* @__PURE__ */ new Date(), be(jn.current), Fe.target.setPointerCapture(Fe.pointerId), Fe.target.tagName !== "BUTTON" && (Z(!0), Dt.current = { x: Fe.clientX, y: Fe.clientY }));
|
|
43052
43078
|
}, onPointerUp: () => {
|
|
@@ -43058,19 +43084,19 @@ var Cse = (e) => {
|
|
|
43058
43084
|
be(jn.current), (fr = f.onDismiss) == null || fr.call(f, f), q(R === "x" ? Yt > 0 ? "right" : "left" : uo > 0 ? "down" : "up"), vn(), te(!0), he(!1);
|
|
43059
43085
|
return;
|
|
43060
43086
|
}
|
|
43061
|
-
Z(!1),
|
|
43087
|
+
Z(!1), U(null);
|
|
43062
43088
|
}, onPointerMove: (Fe) => {
|
|
43063
43089
|
var ht, kt, fr, Yt;
|
|
43064
43090
|
if (!Dt.current || !ue || ((ht = window.getSelection()) == null ? void 0 : ht.toString().length) > 0) return;
|
|
43065
43091
|
let uo = Fe.clientY - Dt.current.y, Uo = Fe.clientX - Dt.current.x, hr = (kt = e.swipeDirections) != null ? kt : Sse(T);
|
|
43066
|
-
!R && (Math.abs(Uo) > 1 || Math.abs(uo) > 1) &&
|
|
43092
|
+
!R && (Math.abs(Uo) > 1 || Math.abs(uo) > 1) && U(Math.abs(Uo) > Math.abs(uo) ? "x" : "y");
|
|
43067
43093
|
let fo = { x: 0, y: 0 };
|
|
43068
43094
|
R === "y" ? (hr.includes("top") || hr.includes("bottom")) && (hr.includes("top") && uo < 0 || hr.includes("bottom") && uo > 0) && (fo.y = uo) : R === "x" && (hr.includes("left") || hr.includes("right")) && (hr.includes("left") && Uo < 0 || hr.includes("right") && Uo > 0) && (fo.x = Uo), (Math.abs(fo.x) > 0 || Math.abs(fo.y) > 0) && he(!0), (fr = Qe.current) == null || fr.style.setProperty("--swipe-amount-x", `${fo.x}px`), (Yt = Qe.current) == null || Yt.style.setProperty("--swipe-amount-y", `${fo.y}px`);
|
|
43069
|
-
} }, bn && !f.jsx ? J.createElement("button", { "aria-label":
|
|
43095
|
+
} }, bn && !f.jsx ? J.createElement("button", { "aria-label": B, "data-disabled": Rc, "data-close-button": !0, onClick: Rc || !ue ? () => {
|
|
43070
43096
|
} : () => {
|
|
43071
43097
|
var Fe;
|
|
43072
43098
|
vn(), (Fe = f.onDismiss) == null || Fe.call(f, f);
|
|
43073
|
-
}, className: Gr(H == null ? void 0 : H.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (i = P == null ? void 0 : P.close) != null ? i : ise) : null, f.jsx || bh(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : J.createElement(J.Fragment, null, ne || f.icon || f.promise ? J.createElement("div", { "data-icon": "", className: Gr(H == null ? void 0 : H.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || wm() : null, f.type !== "loading" ? f.icon || (P == null ? void 0 : P[ne]) || Zae(ne) : null) : null, J.createElement("div", { "data-content": "", className: Gr(H == null ? void 0 : H.content, (s = f == null ? void 0 : f.classNames) == null ? void 0 : s.content) }, J.createElement("div", { "data-title": "", className: Gr(H == null ? void 0 : H.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? J.createElement("div", { "data-description": "", className: Gr(
|
|
43099
|
+
}, className: Gr(H == null ? void 0 : H.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (i = P == null ? void 0 : P.close) != null ? i : ise) : null, f.jsx || bh(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : J.createElement(J.Fragment, null, ne || f.icon || f.promise ? J.createElement("div", { "data-icon": "", className: Gr(H == null ? void 0 : H.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || wm() : null, f.type !== "loading" ? f.icon || (P == null ? void 0 : P[ne]) || Zae(ne) : null) : null, J.createElement("div", { "data-content": "", className: Gr(H == null ? void 0 : H.content, (s = f == null ? void 0 : f.classNames) == null ? void 0 : s.content) }, J.createElement("div", { "data-title": "", className: Gr(H == null ? void 0 : H.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? J.createElement("div", { "data-description": "", className: Gr(W, Te, H == null ? void 0 : H.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), bh(f.cancel) ? f.cancel : f.cancel && rh(f.cancel) ? J.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || M, onClick: (Fe) => {
|
|
43074
43100
|
var ht, kt;
|
|
43075
43101
|
rh(f.cancel) && ue && ((kt = (ht = f.cancel).onClick) == null || kt.call(ht, Fe), vn());
|
|
43076
43102
|
}, className: Gr(H == null ? void 0 : H.cancelButton, (u = f == null ? void 0 : f.classNames) == null ? void 0 : u.cancelButton) }, f.cancel.label) : null, bh(f.action) ? f.action : f.action && rh(f.action) ? J.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || D, onClick: (Fe) => {
|
|
@@ -43098,22 +43124,22 @@ function _se(e, t) {
|
|
|
43098
43124
|
}), n;
|
|
43099
43125
|
}
|
|
43100
43126
|
var Wve = Mn(function(e, t) {
|
|
43101
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: f, visibleToasts: p = gse, toastOptions: g, dir: m = h2(), gap: b = vse, loadingIcon: y, icons: w, containerAriaLabel: _ = "Notifications", pauseWhenPageIsHidden: x } = e, [S, E] = J.useState([]), k = J.useMemo(() => Array.from(new Set([r].concat(S.filter((L) => L.position).map((L) => L.position)))), [S, r]), [O, M] = J.useState([]), [D, I] = J.useState(!1), [
|
|
43127
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: f, visibleToasts: p = gse, toastOptions: g, dir: m = h2(), gap: b = vse, loadingIcon: y, icons: w, containerAriaLabel: _ = "Notifications", pauseWhenPageIsHidden: x } = e, [S, E] = J.useState([]), k = J.useMemo(() => Array.from(new Set([r].concat(S.filter((L) => L.position).map((L) => L.position)))), [S, r]), [O, M] = J.useState([]), [D, I] = J.useState(!1), [W, $] = J.useState(!1), [T, N] = J.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), A = J.useRef(null), F = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), H = J.useRef(null), P = J.useRef(!1), B = J.useCallback((L) => {
|
|
43102
43128
|
E((R) => {
|
|
43103
|
-
var
|
|
43104
|
-
return (
|
|
43129
|
+
var U;
|
|
43130
|
+
return (U = R.find((G) => G.id === L.id)) != null && U.delete || Jn.dismiss(L.id), R.filter(({ id: G }) => G !== L.id);
|
|
43105
43131
|
});
|
|
43106
43132
|
}, []);
|
|
43107
43133
|
return J.useEffect(() => Jn.subscribe((L) => {
|
|
43108
43134
|
if (L.dismiss) {
|
|
43109
|
-
E((R) => R.map((
|
|
43135
|
+
E((R) => R.map((U) => U.id === L.id ? { ...U, delete: !0 } : U));
|
|
43110
43136
|
return;
|
|
43111
43137
|
}
|
|
43112
43138
|
setTimeout(() => {
|
|
43113
43139
|
lc.flushSync(() => {
|
|
43114
43140
|
E((R) => {
|
|
43115
|
-
let
|
|
43116
|
-
return
|
|
43141
|
+
let U = R.findIndex((G) => G.id === L.id);
|
|
43142
|
+
return U !== -1 ? [...R.slice(0, U), { ...R[U], ...L }, ...R.slice(U + 1)] : [L, ...R];
|
|
43117
43143
|
});
|
|
43118
43144
|
});
|
|
43119
43145
|
});
|
|
@@ -43129,9 +43155,9 @@ var Wve = Mn(function(e, t) {
|
|
|
43129
43155
|
N(R ? "dark" : "light");
|
|
43130
43156
|
});
|
|
43131
43157
|
} catch {
|
|
43132
|
-
L.addListener(({ matches:
|
|
43158
|
+
L.addListener(({ matches: U }) => {
|
|
43133
43159
|
try {
|
|
43134
|
-
N(
|
|
43160
|
+
N(U ? "dark" : "light");
|
|
43135
43161
|
} catch (G) {
|
|
43136
43162
|
console.error(G);
|
|
43137
43163
|
}
|
|
@@ -43141,8 +43167,8 @@ var Wve = Mn(function(e, t) {
|
|
|
43141
43167
|
S.length <= 1 && I(!1);
|
|
43142
43168
|
}, [S]), J.useEffect(() => {
|
|
43143
43169
|
let L = (R) => {
|
|
43144
|
-
var
|
|
43145
|
-
o.every((q) => R[q] || R.code === q) && (I(!0), (
|
|
43170
|
+
var U, G;
|
|
43171
|
+
o.every((q) => R[q] || R.code === q) && (I(!0), (U = A.current) == null || U.focus()), R.code === "Escape" && (document.activeElement === A.current || (G = A.current) != null && G.contains(document.activeElement)) && I(!1);
|
|
43146
43172
|
};
|
|
43147
43173
|
return document.addEventListener("keydown", L), () => document.removeEventListener("keydown", L);
|
|
43148
43174
|
}, [o]), J.useEffect(() => {
|
|
@@ -43150,19 +43176,19 @@ var Wve = Mn(function(e, t) {
|
|
|
43150
43176
|
H.current && (H.current.focus({ preventScroll: !0 }), H.current = null, P.current = !1);
|
|
43151
43177
|
};
|
|
43152
43178
|
}, [A.current]), J.createElement("section", { ref: t, "aria-label": `${_} ${F}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, k.map((L, R) => {
|
|
43153
|
-
var
|
|
43179
|
+
var U;
|
|
43154
43180
|
let [G, q] = L.split("-");
|
|
43155
|
-
return S.length ? J.createElement("ol", { key: L, dir: m === "auto" ? h2() : m, tabIndex: -1, ref: A, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": G, "data-lifted": D && S.length > 1 && !i, "data-x-position": q, style: { "--front-toast-height": `${((
|
|
43156
|
-
P.current && !
|
|
43157
|
-
}, onFocus: (
|
|
43158
|
-
|
|
43181
|
+
return S.length ? J.createElement("ol", { key: L, dir: m === "auto" ? h2() : m, tabIndex: -1, ref: A, className: s, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": G, "data-lifted": D && S.length > 1 && !i, "data-x-position": q, style: { "--front-toast-height": `${((U = O[0]) == null ? void 0 : U.height) || 0}px`, "--width": `${yse}px`, "--gap": `${b}px`, ...f, ..._se(l, c) }, onBlur: (V) => {
|
|
43182
|
+
P.current && !V.currentTarget.contains(V.relatedTarget) && (P.current = !1, H.current && (H.current.focus({ preventScroll: !0 }), H.current = null));
|
|
43183
|
+
}, onFocus: (V) => {
|
|
43184
|
+
V.target instanceof HTMLElement && V.target.dataset.dismissible === "false" || P.current || (P.current = !0, H.current = V.relatedTarget);
|
|
43159
43185
|
}, onMouseEnter: () => I(!0), onMouseMove: () => I(!0), onMouseLeave: () => {
|
|
43160
|
-
|
|
43161
|
-
}, onDragEnd: () => I(!1), onPointerDown: (
|
|
43162
|
-
|
|
43163
|
-
}, onPointerUp: () => $(!1) }, S.filter((
|
|
43186
|
+
W || I(!1);
|
|
43187
|
+
}, onDragEnd: () => I(!1), onPointerDown: (V) => {
|
|
43188
|
+
V.target instanceof HTMLElement && V.target.dataset.dismissible === "false" || $(!0);
|
|
43189
|
+
}, onPointerUp: () => $(!1) }, S.filter((V) => !V.position && R === 0 || V.position === L).map((V, j) => {
|
|
43164
43190
|
var K, ee;
|
|
43165
|
-
return J.createElement(Cse, { key:
|
|
43191
|
+
return J.createElement(Cse, { key: V.id, icons: w, index: j, toast: V, defaultRichColors: d, duration: (K = g == null ? void 0 : g.duration) != null ? K : h, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: n, visibleToasts: p, closeButton: (ee = g == null ? void 0 : g.closeButton) != null ? ee : a, interacting: W, position: L, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: B, toasts: S.filter((re) => re.position == V.position), heights: O.filter((re) => re.position == V.position), setHeights: M, expandByDefault: i, gap: b, loadingIcon: y, expanded: D, pauseWhenPageIsHidden: x, swipeDirections: e.swipeDirections });
|
|
43166
43192
|
})) : null;
|
|
43167
43193
|
}));
|
|
43168
43194
|
});
|
|
@@ -44805,8 +44831,8 @@ async function L5(...e) {
|
|
|
44805
44831
|
const [f] = V1(h);
|
|
44806
44832
|
if (!f) return;
|
|
44807
44833
|
const [p, g] = F5(t, f), [m, b, y, w] = ai.get(t), _ = () => {
|
|
44808
|
-
const
|
|
44809
|
-
return (Co(i.revalidate) ? i.revalidate(p().data, h) : i.revalidate !== !1) && (delete y[f], delete w[f],
|
|
44834
|
+
const W = m[f];
|
|
44835
|
+
return (Co(i.revalidate) ? i.revalidate(p().data, h) : i.revalidate !== !1) && (delete y[f], delete w[f], W && W[0]) ? W[0](A5).then(() => p().data) : p().data;
|
|
44810
44836
|
};
|
|
44811
44837
|
if (e.length < 3)
|
|
44812
44838
|
return _();
|
|
@@ -44823,12 +44849,12 @@ async function L5(...e) {
|
|
|
44823
44849
|
})), Co(x))
|
|
44824
44850
|
try {
|
|
44825
44851
|
x = x(I);
|
|
44826
|
-
} catch (
|
|
44827
|
-
S =
|
|
44852
|
+
} catch (W) {
|
|
44853
|
+
S = W;
|
|
44828
44854
|
}
|
|
44829
44855
|
if (x && N5(x))
|
|
44830
|
-
if (x = await x.catch((
|
|
44831
|
-
S =
|
|
44856
|
+
if (x = await x.catch((W) => {
|
|
44857
|
+
S = W;
|
|
44832
44858
|
}), E !== b[f][0]) {
|
|
44833
44859
|
if (S) throw S;
|
|
44834
44860
|
return x;
|
|
@@ -44838,9 +44864,9 @@ async function L5(...e) {
|
|
|
44838
44864
|
}));
|
|
44839
44865
|
if (a && !S)
|
|
44840
44866
|
if (Co(a)) {
|
|
44841
|
-
const
|
|
44867
|
+
const W = a(x, I);
|
|
44842
44868
|
g({
|
|
44843
|
-
data:
|
|
44869
|
+
data: W,
|
|
44844
44870
|
error: Bn,
|
|
44845
44871
|
_c: Bn
|
|
44846
44872
|
});
|
|
@@ -44994,7 +45020,7 @@ const iy = J.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
44994
45020
|
}), ay = {
|
|
44995
45021
|
dedupe: !0
|
|
44996
45022
|
}, Zle = (e, t, n) => {
|
|
44997
|
-
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: h } = n, [f, p, g, m] = ai.get(r), [b, y] = V1(e), w = me(!1), _ = me(!1), x = me(b), S = me(t), E = me(n), k = () => E.current, O = () => k().isVisible() && k().isOnline(), [M, D, I,
|
|
45023
|
+
const { cache: r, compare: o, suspense: i, fallbackData: a, revalidateOnMount: s, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: h } = n, [f, p, g, m] = ai.get(r), [b, y] = V1(e), w = me(!1), _ = me(!1), x = me(b), S = me(t), E = me(n), k = () => E.current, O = () => k().isVisible() && k().isOnline(), [M, D, I, W] = F5(r, b), $ = me({}).current, T = ot(a) ? ot(n.fallback) ? Bn : n.fallback[b] : a, N = (ie, te) => {
|
|
44998
45024
|
for (const fe in $) {
|
|
44999
45025
|
const he = fe;
|
|
45000
45026
|
if (he === "data") {
|
|
@@ -45012,7 +45038,7 @@ const iy = J.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
45012
45038
|
isLoading: !0,
|
|
45013
45039
|
...st
|
|
45014
45040
|
} : st;
|
|
45015
|
-
}, fe = M(), he =
|
|
45041
|
+
}, fe = M(), he = W(), _e = te(fe), be = fe === he ? _e : te(he);
|
|
45016
45042
|
let xe = _e;
|
|
45017
45043
|
return [
|
|
45018
45044
|
() => {
|
|
@@ -45033,7 +45059,7 @@ const iy = J.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
45033
45059
|
r,
|
|
45034
45060
|
b
|
|
45035
45061
|
]
|
|
45036
|
-
), A[0], A[1]), H = !w.current, P = f[b] && f[b].length > 0,
|
|
45062
|
+
), A[0], A[1]), H = !w.current, P = f[b] && f[b].length > 0, B = F.data, L = ot(B) ? T && N5(T) ? iy(T) : T : B, R = F.error, U = me(L), G = h ? ot(B) ? ot(U.current) ? L : U.current : B : L, q = P && !ot(R) ? !1 : H && !ot(s) ? s : k().isPaused() ? !1 : i ? ot(L) ? !1 : l : ot(L) || l, V = !!(b && t && H && q), j = ot(F.isValidating) ? V : F.isValidating, K = ot(F.isLoading) ? V : F.isLoading, ee = qe(
|
|
45037
45063
|
async (ie) => {
|
|
45038
45064
|
const te = S.current;
|
|
45039
45065
|
if (!b || !te || _.current || k().isPaused())
|
|
@@ -45103,7 +45129,7 @@ const iy = J.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
45103
45129
|
[]
|
|
45104
45130
|
);
|
|
45105
45131
|
if (ny(() => {
|
|
45106
|
-
S.current = t, E.current = n, ot(
|
|
45132
|
+
S.current = t, E.current = n, ot(B) || (U.current = B);
|
|
45107
45133
|
}), ny(() => {
|
|
45108
45134
|
if (!b) return;
|
|
45109
45135
|
const ie = ee.bind(Bn, ay);
|
|
@@ -45169,7 +45195,7 @@ const iy = J.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
45169
45195
|
return $.error = !0, R;
|
|
45170
45196
|
},
|
|
45171
45197
|
get isValidating() {
|
|
45172
|
-
return $.isValidating = !0,
|
|
45198
|
+
return $.isValidating = !0, j;
|
|
45173
45199
|
},
|
|
45174
45200
|
get isLoading() {
|
|
45175
45201
|
return $.isLoading = !0, K;
|
|
@@ -45231,9 +45257,9 @@ function rce({
|
|
|
45231
45257
|
we(() => {
|
|
45232
45258
|
M.current = k || [];
|
|
45233
45259
|
}, [k]);
|
|
45234
|
-
const { data: D, mutate: I } = ah([x, "streamData"], null),
|
|
45260
|
+
const { data: D, mutate: I } = ah([x, "streamData"], null), W = me(D);
|
|
45235
45261
|
we(() => {
|
|
45236
|
-
|
|
45262
|
+
W.current = D;
|
|
45237
45263
|
}, [D]);
|
|
45238
45264
|
const { data: $ = "ready", mutate: T } = ah([x, "status"], null), { data: N = void 0, mutate: A } = ah([x, "error"], null), F = me(null), H = me({
|
|
45239
45265
|
credentials: h,
|
|
@@ -45282,7 +45308,7 @@ function rce({
|
|
|
45282
45308
|
...Te !== void 0 && { toolInvocations: Te },
|
|
45283
45309
|
...Ye !== void 0 && { parts: Ye }
|
|
45284
45310
|
})
|
|
45285
|
-
), Qe =
|
|
45311
|
+
), Qe = W.current;
|
|
45286
45312
|
await xle({
|
|
45287
45313
|
api: e,
|
|
45288
45314
|
body: (ie = a == null ? void 0 : a({
|
|
@@ -45349,7 +45375,7 @@ function rce({
|
|
|
45349
45375
|
d,
|
|
45350
45376
|
A,
|
|
45351
45377
|
I,
|
|
45352
|
-
|
|
45378
|
+
W,
|
|
45353
45379
|
l,
|
|
45354
45380
|
o,
|
|
45355
45381
|
a,
|
|
@@ -45363,7 +45389,7 @@ function rce({
|
|
|
45363
45389
|
y,
|
|
45364
45390
|
_
|
|
45365
45391
|
]
|
|
45366
|
-
),
|
|
45392
|
+
), B = qe(
|
|
45367
45393
|
async (re, {
|
|
45368
45394
|
data: Z,
|
|
45369
45395
|
headers: ie,
|
|
@@ -45399,7 +45425,7 @@ function rce({
|
|
|
45399
45425
|
[P]
|
|
45400
45426
|
), R = qe(() => {
|
|
45401
45427
|
F.current && (F.current.abort(), F.current = null);
|
|
45402
|
-
}, []),
|
|
45428
|
+
}, []), U = qe(
|
|
45403
45429
|
(re) => {
|
|
45404
45430
|
typeof re == "function" && (re = re(M.current));
|
|
45405
45431
|
const Z = ey(re);
|
|
@@ -45408,10 +45434,10 @@ function rce({
|
|
|
45408
45434
|
[O]
|
|
45409
45435
|
), G = qe(
|
|
45410
45436
|
(re) => {
|
|
45411
|
-
typeof re == "function" && (re = re(
|
|
45437
|
+
typeof re == "function" && (re = re(W.current)), I(re, !1), W.current = re;
|
|
45412
45438
|
},
|
|
45413
45439
|
[I]
|
|
45414
|
-
), [q,
|
|
45440
|
+
), [q, V] = ge(r), j = qe(
|
|
45415
45441
|
async (re, Z = {}, ie) => {
|
|
45416
45442
|
var te;
|
|
45417
45443
|
if ((te = re == null ? void 0 : re.preventDefault) == null || te.call(re), !q && !Z.allowEmptySubmit)
|
|
@@ -45435,11 +45461,11 @@ function rce({
|
|
|
45435
45461
|
body: Z.body,
|
|
45436
45462
|
data: Z.data
|
|
45437
45463
|
};
|
|
45438
|
-
P(_e),
|
|
45464
|
+
P(_e), V("");
|
|
45439
45465
|
},
|
|
45440
45466
|
[q, g, P]
|
|
45441
45467
|
), K = (re) => {
|
|
45442
|
-
|
|
45468
|
+
V(re.target.value);
|
|
45443
45469
|
}, ee = qe(
|
|
45444
45470
|
({ toolCallId: re, result: Z }) => {
|
|
45445
45471
|
const ie = M.current;
|
|
@@ -45456,17 +45482,17 @@ function rce({
|
|
|
45456
45482
|
return {
|
|
45457
45483
|
messages: k ?? [],
|
|
45458
45484
|
id: _,
|
|
45459
|
-
setMessages:
|
|
45485
|
+
setMessages: U,
|
|
45460
45486
|
data: D,
|
|
45461
45487
|
setData: G,
|
|
45462
45488
|
error: N,
|
|
45463
|
-
append:
|
|
45489
|
+
append: B,
|
|
45464
45490
|
reload: L,
|
|
45465
45491
|
stop: R,
|
|
45466
45492
|
input: q,
|
|
45467
|
-
setInput:
|
|
45493
|
+
setInput: V,
|
|
45468
45494
|
handleInputChange: K,
|
|
45469
|
-
handleSubmit:
|
|
45495
|
+
handleSubmit: j,
|
|
45470
45496
|
isLoading: $ === "submitted" || $ === "streaming",
|
|
45471
45497
|
status: $,
|
|
45472
45498
|
addToolResult: ee
|
|
@@ -47896,10 +47922,10 @@ function Kue(e, t, n) {
|
|
|
47896
47922
|
return S.enter("codeFencedFence"), dt(T) ? Ot(S, I, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(T) : I(T);
|
|
47897
47923
|
}
|
|
47898
47924
|
function I(T) {
|
|
47899
|
-
return T === s ? (S.enter("codeFencedFenceSequence"),
|
|
47925
|
+
return T === s ? (S.enter("codeFencedFenceSequence"), W(T)) : k(T);
|
|
47900
47926
|
}
|
|
47901
|
-
function
|
|
47902
|
-
return T === s ? (O++, S.consume(T),
|
|
47927
|
+
function W(T) {
|
|
47928
|
+
return T === s ? (O++, S.consume(T), W) : O >= a ? (S.exit("codeFencedFenceSequence"), dt(T) ? Ot(S, $, "whitespace")(T) : $(T)) : k(T);
|
|
47903
47929
|
}
|
|
47904
47930
|
function $(T) {
|
|
47905
47931
|
return T === null || De(T) ? (S.exit("codeFencedFence"), E(T)) : k(T);
|
|
@@ -48563,16 +48589,16 @@ function Ede(e, t, n) {
|
|
|
48563
48589
|
return R === 45 ? (e.consume(R), r.interrupt ? t : P) : n(R);
|
|
48564
48590
|
}
|
|
48565
48591
|
function p(R) {
|
|
48566
|
-
const
|
|
48567
|
-
return R ===
|
|
48592
|
+
const U = "CDATA[";
|
|
48593
|
+
return R === U.charCodeAt(s++) ? (e.consume(R), s === U.length ? r.interrupt ? t : I : p) : n(R);
|
|
48568
48594
|
}
|
|
48569
48595
|
function g(R) {
|
|
48570
48596
|
return _o(R) ? (e.consume(R), a = String.fromCharCode(R), m) : n(R);
|
|
48571
48597
|
}
|
|
48572
48598
|
function m(R) {
|
|
48573
48599
|
if (R === null || R === 47 || R === 62 || ir(R)) {
|
|
48574
|
-
const
|
|
48575
|
-
return !
|
|
48600
|
+
const U = R === 47, G = a.toLowerCase();
|
|
48601
|
+
return !U && !i && U2.includes(G) ? (o = 1, r.interrupt ? t(R) : I(R)) : wde.includes(a.toLowerCase()) ? (o = 6, U ? (e.consume(R), b) : r.interrupt ? t(R) : I(R)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(R) : i ? y(R) : w(R));
|
|
48576
48602
|
}
|
|
48577
48603
|
return R === 45 || Cr(R) ? (e.consume(R), a += String.fromCharCode(R), m) : n(R);
|
|
48578
48604
|
}
|
|
@@ -48610,16 +48636,16 @@ function Ede(e, t, n) {
|
|
|
48610
48636
|
return R === null || De(R) ? I(R) : dt(R) ? (e.consume(R), D) : n(R);
|
|
48611
48637
|
}
|
|
48612
48638
|
function I(R) {
|
|
48613
|
-
return R === 45 && o === 2 ? (e.consume(R), N) : R === 60 && o === 1 ? (e.consume(R), A) : R === 62 && o === 4 ? (e.consume(R),
|
|
48639
|
+
return R === 45 && o === 2 ? (e.consume(R), N) : R === 60 && o === 1 ? (e.consume(R), A) : R === 62 && o === 4 ? (e.consume(R), B) : R === 63 && o === 3 ? (e.consume(R), P) : R === 93 && o === 5 ? (e.consume(R), H) : De(R) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check(Sde, L, W)(R)) : R === null || De(R) ? (e.exit("htmlFlowData"), W(R)) : (e.consume(R), I);
|
|
48614
48640
|
}
|
|
48615
|
-
function
|
|
48641
|
+
function W(R) {
|
|
48616
48642
|
return e.check(Cde, $, L)(R);
|
|
48617
48643
|
}
|
|
48618
48644
|
function $(R) {
|
|
48619
48645
|
return e.enter("lineEnding"), e.consume(R), e.exit("lineEnding"), T;
|
|
48620
48646
|
}
|
|
48621
48647
|
function T(R) {
|
|
48622
|
-
return R === null || De(R) ?
|
|
48648
|
+
return R === null || De(R) ? W(R) : (e.enter("htmlFlowData"), I(R));
|
|
48623
48649
|
}
|
|
48624
48650
|
function N(R) {
|
|
48625
48651
|
return R === 45 ? (e.consume(R), P) : I(R);
|
|
@@ -48629,8 +48655,8 @@ function Ede(e, t, n) {
|
|
|
48629
48655
|
}
|
|
48630
48656
|
function F(R) {
|
|
48631
48657
|
if (R === 62) {
|
|
48632
|
-
const
|
|
48633
|
-
return U2.includes(
|
|
48658
|
+
const U = a.toLowerCase();
|
|
48659
|
+
return U2.includes(U) ? (e.consume(R), B) : I(R);
|
|
48634
48660
|
}
|
|
48635
48661
|
return _o(R) && a.length < 8 ? (e.consume(R), a += String.fromCharCode(R), F) : I(R);
|
|
48636
48662
|
}
|
|
@@ -48638,10 +48664,10 @@ function Ede(e, t, n) {
|
|
|
48638
48664
|
return R === 93 ? (e.consume(R), P) : I(R);
|
|
48639
48665
|
}
|
|
48640
48666
|
function P(R) {
|
|
48641
|
-
return R === 62 ? (e.consume(R),
|
|
48667
|
+
return R === 62 ? (e.consume(R), B) : R === 45 && o === 2 ? (e.consume(R), P) : I(R);
|
|
48642
48668
|
}
|
|
48643
|
-
function
|
|
48644
|
-
return R === null || De(R) ? (e.exit("htmlFlowData"), L(R)) : (e.consume(R),
|
|
48669
|
+
function B(R) {
|
|
48670
|
+
return R === null || De(R) ? (e.exit("htmlFlowData"), L(R)) : (e.consume(R), B);
|
|
48645
48671
|
}
|
|
48646
48672
|
function L(R) {
|
|
48647
48673
|
return e.exit("htmlFlow"), t(R);
|
|
@@ -48693,8 +48719,8 @@ function Ode(e, t, n) {
|
|
|
48693
48719
|
return P === 62 ? N(P) : P === 45 ? h(P) : d(P);
|
|
48694
48720
|
}
|
|
48695
48721
|
function p(P) {
|
|
48696
|
-
const
|
|
48697
|
-
return P ===
|
|
48722
|
+
const B = "CDATA[";
|
|
48723
|
+
return P === B.charCodeAt(i++) ? (e.consume(P), i === B.length ? g : p) : n(P);
|
|
48698
48724
|
}
|
|
48699
48725
|
function g(P) {
|
|
48700
48726
|
return P === null ? n(P) : P === 93 ? (e.consume(P), m) : De(P) ? (a = g, A(P)) : (e.consume(P), g);
|
|
@@ -48736,10 +48762,10 @@ function Ode(e, t, n) {
|
|
|
48736
48762
|
return P === 61 ? (e.consume(P), I) : De(P) ? (a = D, A(P)) : dt(P) ? (e.consume(P), D) : O(P);
|
|
48737
48763
|
}
|
|
48738
48764
|
function I(P) {
|
|
48739
|
-
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), o = P,
|
|
48765
|
+
return P === null || P === 60 || P === 61 || P === 62 || P === 96 ? n(P) : P === 34 || P === 39 ? (e.consume(P), o = P, W) : De(P) ? (a = I, A(P)) : dt(P) ? (e.consume(P), I) : (e.consume(P), $);
|
|
48740
48766
|
}
|
|
48741
|
-
function
|
|
48742
|
-
return P === o ? (e.consume(P), o = void 0, T) : P === null ? n(P) : De(P) ? (a =
|
|
48767
|
+
function W(P) {
|
|
48768
|
+
return P === o ? (e.consume(P), o = void 0, T) : P === null ? n(P) : De(P) ? (a = W, A(P)) : (e.consume(P), W);
|
|
48743
48769
|
}
|
|
48744
48770
|
function $(P) {
|
|
48745
48771
|
return P === null || P === 34 || P === 39 || P === 60 || P === 61 || P === 96 ? n(P) : P === 47 || P === 62 || ir(P) ? O(P) : (e.consume(P), $);
|
|
@@ -49326,14 +49352,14 @@ function mfe(e, t, n) {
|
|
|
49326
49352
|
const {
|
|
49327
49353
|
_bufferIndex: D,
|
|
49328
49354
|
_index: I,
|
|
49329
|
-
line:
|
|
49355
|
+
line: W,
|
|
49330
49356
|
column: $,
|
|
49331
49357
|
offset: T
|
|
49332
49358
|
} = r;
|
|
49333
49359
|
return {
|
|
49334
49360
|
_bufferIndex: D,
|
|
49335
49361
|
_index: I,
|
|
49336
|
-
line:
|
|
49362
|
+
line: W,
|
|
49337
49363
|
column: $,
|
|
49338
49364
|
offset: T
|
|
49339
49365
|
};
|
|
@@ -49362,8 +49388,8 @@ function mfe(e, t, n) {
|
|
|
49362
49388
|
a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = D;
|
|
49363
49389
|
}
|
|
49364
49390
|
function w(D, I) {
|
|
49365
|
-
const
|
|
49366
|
-
return
|
|
49391
|
+
const W = I || {};
|
|
49392
|
+
return W.type = D, W.start = p(), c.events.push(["enter", W, c]), s.push(W), W;
|
|
49367
49393
|
}
|
|
49368
49394
|
function _(D) {
|
|
49369
49395
|
const I = s.pop();
|
|
@@ -49376,8 +49402,8 @@ function mfe(e, t, n) {
|
|
|
49376
49402
|
I.restore();
|
|
49377
49403
|
}
|
|
49378
49404
|
function E(D, I) {
|
|
49379
|
-
return
|
|
49380
|
-
function
|
|
49405
|
+
return W;
|
|
49406
|
+
function W($, T, N) {
|
|
49381
49407
|
let A, F, H, P;
|
|
49382
49408
|
return Array.isArray($) ? (
|
|
49383
49409
|
/* c8 ignore next 1 */
|
|
@@ -49388,37 +49414,37 @@ function mfe(e, t, n) {
|
|
|
49388
49414
|
/** @type {Construct} */
|
|
49389
49415
|
$
|
|
49390
49416
|
])
|
|
49391
|
-
) :
|
|
49392
|
-
function
|
|
49393
|
-
return
|
|
49394
|
-
function
|
|
49395
|
-
const K =
|
|
49417
|
+
) : B($);
|
|
49418
|
+
function B(q) {
|
|
49419
|
+
return V;
|
|
49420
|
+
function V(j) {
|
|
49421
|
+
const K = j !== null && q[j], ee = j !== null && q.null, re = [
|
|
49396
49422
|
// To do: add more extension tests.
|
|
49397
49423
|
/* c8 ignore next 2 */
|
|
49398
49424
|
...Array.isArray(K) ? K : K ? [K] : [],
|
|
49399
49425
|
...Array.isArray(ee) ? ee : ee ? [ee] : []
|
|
49400
49426
|
];
|
|
49401
|
-
return L(re)(
|
|
49427
|
+
return L(re)(j);
|
|
49402
49428
|
}
|
|
49403
49429
|
}
|
|
49404
49430
|
function L(q) {
|
|
49405
49431
|
return A = q, F = 0, q.length === 0 ? N : R(q[F]);
|
|
49406
49432
|
}
|
|
49407
49433
|
function R(q) {
|
|
49408
|
-
return
|
|
49409
|
-
function
|
|
49434
|
+
return V;
|
|
49435
|
+
function V(j) {
|
|
49410
49436
|
return P = O(), H = q, q.partial || (c.currentConstruct = q), q.name && c.parser.constructs.disable.null.includes(q.name) ? G() : q.tokenize.call(
|
|
49411
49437
|
// If we do have fields, create an object w/ `context` as its
|
|
49412
49438
|
// prototype.
|
|
49413
49439
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
49414
49440
|
I ? Object.assign(Object.create(c), I) : c,
|
|
49415
49441
|
l,
|
|
49416
|
-
|
|
49442
|
+
U,
|
|
49417
49443
|
G
|
|
49418
|
-
)(
|
|
49444
|
+
)(j);
|
|
49419
49445
|
}
|
|
49420
49446
|
}
|
|
49421
|
-
function
|
|
49447
|
+
function U(q) {
|
|
49422
49448
|
return D(H, P), T;
|
|
49423
49449
|
}
|
|
49424
49450
|
function G(q) {
|
|
@@ -49430,13 +49456,13 @@ function mfe(e, t, n) {
|
|
|
49430
49456
|
D.resolveAll && !i.includes(D) && i.push(D), D.resolve && Lo(c.events, I, c.events.length - I, D.resolve(c.events.slice(I), c)), D.resolveTo && (c.events = D.resolveTo(c.events, c));
|
|
49431
49457
|
}
|
|
49432
49458
|
function O() {
|
|
49433
|
-
const D = p(), I = c.previous,
|
|
49459
|
+
const D = p(), I = c.previous, W = c.currentConstruct, $ = c.events.length, T = Array.from(s);
|
|
49434
49460
|
return {
|
|
49435
49461
|
from: $,
|
|
49436
49462
|
restore: N
|
|
49437
49463
|
};
|
|
49438
49464
|
function N() {
|
|
49439
|
-
r = D, c.previous = I, c.currentConstruct =
|
|
49465
|
+
r = D, c.previous = I, c.currentConstruct = W, c.events.length = $, s = T, M();
|
|
49440
49466
|
}
|
|
49441
49467
|
}
|
|
49442
49468
|
function M() {
|
|
@@ -49629,13 +49655,13 @@ function Rfe(e) {
|
|
|
49629
49655
|
atxHeadingSequence: x,
|
|
49630
49656
|
autolink: l(),
|
|
49631
49657
|
autolinkEmail: K,
|
|
49632
|
-
autolinkProtocol:
|
|
49658
|
+
autolinkProtocol: j,
|
|
49633
49659
|
blockQuote: l(),
|
|
49634
49660
|
characterEscapeValue: M,
|
|
49635
49661
|
characterReferenceMarkerHexadecimal: G,
|
|
49636
49662
|
characterReferenceMarkerNumeric: G,
|
|
49637
49663
|
characterReferenceValue: q,
|
|
49638
|
-
characterReference:
|
|
49664
|
+
characterReference: V,
|
|
49639
49665
|
codeFenced: l(m),
|
|
49640
49666
|
codeFencedFence: g,
|
|
49641
49667
|
codeFencedFenceInfo: f,
|
|
@@ -49652,7 +49678,7 @@ function Rfe(e) {
|
|
|
49652
49678
|
emphasis: l(),
|
|
49653
49679
|
hardBreakEscape: l(I),
|
|
49654
49680
|
hardBreakTrailing: l(I),
|
|
49655
|
-
htmlFlow: l(
|
|
49681
|
+
htmlFlow: l(W),
|
|
49656
49682
|
htmlFlowData: M,
|
|
49657
49683
|
htmlText: l($),
|
|
49658
49684
|
htmlTextData: M,
|
|
@@ -49665,9 +49691,9 @@ function Rfe(e) {
|
|
|
49665
49691
|
listOrdered: l(),
|
|
49666
49692
|
listUnordered: l(),
|
|
49667
49693
|
paragraph: l(),
|
|
49668
|
-
referenceString:
|
|
49694
|
+
referenceString: U,
|
|
49669
49695
|
resourceDestinationString: P,
|
|
49670
|
-
resourceTitleString:
|
|
49696
|
+
resourceTitleString: B,
|
|
49671
49697
|
resource: L,
|
|
49672
49698
|
setextHeading: l(k),
|
|
49673
49699
|
setextHeadingLineSequence: E,
|
|
@@ -49898,7 +49924,7 @@ function Rfe(e) {
|
|
|
49898
49924
|
function I() {
|
|
49899
49925
|
this.data.atHardBreak = !0;
|
|
49900
49926
|
}
|
|
49901
|
-
function
|
|
49927
|
+
function W() {
|
|
49902
49928
|
const ne = this.resume(), ue = this.stack[this.stack.length - 1];
|
|
49903
49929
|
ue.value = ne;
|
|
49904
49930
|
}
|
|
@@ -49944,7 +49970,7 @@ function Rfe(e) {
|
|
|
49944
49970
|
const ne = this.resume(), ue = this.stack[this.stack.length - 1];
|
|
49945
49971
|
ue.url = ne;
|
|
49946
49972
|
}
|
|
49947
|
-
function
|
|
49973
|
+
function B() {
|
|
49948
49974
|
const ne = this.resume(), ue = this.stack[this.stack.length - 1];
|
|
49949
49975
|
ue.title = ne;
|
|
49950
49976
|
}
|
|
@@ -49954,7 +49980,7 @@ function Rfe(e) {
|
|
|
49954
49980
|
function R() {
|
|
49955
49981
|
this.data.referenceType = "collapsed";
|
|
49956
49982
|
}
|
|
49957
|
-
function
|
|
49983
|
+
function U(ne) {
|
|
49958
49984
|
const ue = this.resume(), Ce = this.stack[this.stack.length - 1];
|
|
49959
49985
|
Ce.label = ue, Ce.identifier = xl(this.sliceSerialize(ne)).toLowerCase(), this.data.referenceType = "full";
|
|
49960
49986
|
}
|
|
@@ -49968,11 +49994,11 @@ function Rfe(e) {
|
|
|
49968
49994
|
const Ye = this.stack[this.stack.length - 1];
|
|
49969
49995
|
Ye.value += Te;
|
|
49970
49996
|
}
|
|
49971
|
-
function
|
|
49997
|
+
function V(ne) {
|
|
49972
49998
|
const ue = this.stack.pop();
|
|
49973
49999
|
ue.position.end = ki(ne.end);
|
|
49974
50000
|
}
|
|
49975
|
-
function
|
|
50001
|
+
function j(ne) {
|
|
49976
50002
|
M.call(this, ne);
|
|
49977
50003
|
const ue = this.stack[this.stack.length - 1];
|
|
49978
50004
|
ue.url = this.sliceSerialize(ne);
|
|
@@ -52768,31 +52794,31 @@ var Zhe = Object.create, im = Object.defineProperty, Jhe = Object.defineProperti
|
|
|
52768
52794
|
var I = E.pattern.toString().match(/[imsuy]*$/)[0];
|
|
52769
52795
|
E.pattern = RegExp(E.pattern.source, I + "g");
|
|
52770
52796
|
}
|
|
52771
|
-
for (var
|
|
52797
|
+
for (var W = E.pattern || E, $ = b.next, T = y; $ !== g.tail && !(w && T >= w.reach); T += $.value.length, $ = $.next) {
|
|
52772
52798
|
var N = $.value;
|
|
52773
52799
|
if (g.length > p.length)
|
|
52774
52800
|
return;
|
|
52775
52801
|
if (!(N instanceof s)) {
|
|
52776
52802
|
var A = 1, F;
|
|
52777
52803
|
if (M) {
|
|
52778
|
-
if (F = l(
|
|
52804
|
+
if (F = l(W, T, p, O), !F || F.index >= p.length)
|
|
52779
52805
|
break;
|
|
52780
52806
|
var L = F.index, H = F.index + F[0].length, P = T;
|
|
52781
52807
|
for (P += $.value.length; L >= P; )
|
|
52782
52808
|
$ = $.next, P += $.value.length;
|
|
52783
52809
|
if (P -= $.value.length, T = P, $.value instanceof s)
|
|
52784
52810
|
continue;
|
|
52785
|
-
for (var
|
|
52786
|
-
A++, P +=
|
|
52811
|
+
for (var B = $; B !== g.tail && (P < H || typeof B.value == "string"); B = B.next)
|
|
52812
|
+
A++, P += B.value.length;
|
|
52787
52813
|
A--, N = p.slice(T, P), F.index -= T;
|
|
52788
|
-
} else if (F = l(
|
|
52814
|
+
} else if (F = l(W, 0, N, O), !F)
|
|
52789
52815
|
continue;
|
|
52790
|
-
var L = F.index, R = F[0],
|
|
52816
|
+
var L = F.index, R = F[0], U = N.slice(0, L), G = N.slice(L + R.length), q = T + N.length;
|
|
52791
52817
|
w && q > w.reach && (w.reach = q);
|
|
52792
|
-
var
|
|
52793
|
-
|
|
52794
|
-
var
|
|
52795
|
-
if ($ = d(g,
|
|
52818
|
+
var V = $.prev;
|
|
52819
|
+
U && (V = d(g, V, U), T += U.length), h(g, V, A);
|
|
52820
|
+
var j = new s(_, k ? a.tokenize(R, k) : R, D, R);
|
|
52821
|
+
if ($ = d(g, V, j), G && d(g, $, G), A > 1) {
|
|
52796
52822
|
var K = {
|
|
52797
52823
|
cause: _ + "," + S,
|
|
52798
52824
|
reach: q
|
|
@@ -55226,7 +55252,16 @@ function age({
|
|
|
55226
55252
|
) : /* @__PURE__ */ v("code", { className: "rounded-md bg-muted px-2 py-1 text-xs", ...o });
|
|
55227
55253
|
},
|
|
55228
55254
|
pre: (r) => /* @__PURE__ */ v(cge, { ...r, handleRun: t }),
|
|
55229
|
-
li: ({ node: r, ...o }) => /* @__PURE__ */ v("li", { className: "my-2 list-outside pl-4 text-sm", ...o })
|
|
55255
|
+
li: ({ node: r, ...o }) => /* @__PURE__ */ v("li", { className: "my-2 list-outside pl-4 text-sm", ...o }),
|
|
55256
|
+
a: ({ node: r, ...o }) => /* @__PURE__ */ v(
|
|
55257
|
+
"a",
|
|
55258
|
+
{
|
|
55259
|
+
target: "_blank",
|
|
55260
|
+
rel: "noopener noreferrer",
|
|
55261
|
+
className: "text-blue-700",
|
|
55262
|
+
...o
|
|
55263
|
+
}
|
|
55264
|
+
)
|
|
55230
55265
|
// You can add more overrides for other elements like h1, h2, etc.
|
|
55231
55266
|
}, children: e.content.replace(/DuckDB/gi, "Semaphor") });
|
|
55232
55267
|
}
|
|
@@ -55492,14 +55527,14 @@ function fge({
|
|
|
55492
55527
|
sql: M,
|
|
55493
55528
|
data: D,
|
|
55494
55529
|
cardCfg: I,
|
|
55495
|
-
cardTitle:
|
|
55530
|
+
cardTitle: W,
|
|
55496
55531
|
connectionId: $,
|
|
55497
55532
|
cardType: T
|
|
55498
55533
|
}) {
|
|
55499
55534
|
if (!l) return;
|
|
55500
55535
|
const N = {
|
|
55501
55536
|
id: hs(),
|
|
55502
|
-
title:
|
|
55537
|
+
title: W || "Title",
|
|
55503
55538
|
description: "Description",
|
|
55504
55539
|
preferences: {
|
|
55505
55540
|
onClickFilter: [
|
|
@@ -55724,14 +55759,14 @@ function A4({
|
|
|
55724
55759
|
O(I.current, $);
|
|
55725
55760
|
}
|
|
55726
55761
|
}), [b, y, w, S, D, O]);
|
|
55727
|
-
const
|
|
55762
|
+
const W = _(I.current, o);
|
|
55728
55763
|
return sc(p, {
|
|
55729
55764
|
...g,
|
|
55730
55765
|
children: e,
|
|
55731
55766
|
className: t,
|
|
55732
55767
|
id: a,
|
|
55733
55768
|
style: {
|
|
55734
|
-
...
|
|
55769
|
+
...W,
|
|
55735
55770
|
...f
|
|
55736
55771
|
},
|
|
55737
55772
|
// CSS selectors
|
|
@@ -55739,7 +55774,7 @@ function A4({
|
|
|
55739
55774
|
"data-panel-collapsible": r || void 0,
|
|
55740
55775
|
"data-panel-group-id": x,
|
|
55741
55776
|
"data-panel-id": D,
|
|
55742
|
-
"data-panel-size": parseFloat("" +
|
|
55777
|
+
"data-panel-size": parseFloat("" + W.flexGrow).toFixed(1)
|
|
55743
55778
|
});
|
|
55744
55779
|
}
|
|
55745
55780
|
const N4 = T4((e, t) => sc(A4, {
|
|
@@ -56606,15 +56641,15 @@ function Q4({
|
|
|
56606
56641
|
},
|
|
56607
56642
|
setLayout: (R) => {
|
|
56608
56643
|
const {
|
|
56609
|
-
onLayout:
|
|
56644
|
+
onLayout: U
|
|
56610
56645
|
} = S.current, {
|
|
56611
56646
|
layout: G,
|
|
56612
56647
|
panelDataArray: q
|
|
56613
|
-
} = E.current,
|
|
56648
|
+
} = E.current, V = kk({
|
|
56614
56649
|
layout: R,
|
|
56615
|
-
panelConstraints: q.map((
|
|
56650
|
+
panelConstraints: q.map((j) => j.constraints)
|
|
56616
56651
|
});
|
|
56617
|
-
Ek(G,
|
|
56652
|
+
Ek(G, V) || (b(V), E.current.layout = V, U && U(V), Zs(q, V, w.current));
|
|
56618
56653
|
}
|
|
56619
56654
|
}), []), ls(() => {
|
|
56620
56655
|
S.current.autoSaveId = e, S.current.direction = r, S.current.dragState = p, S.current.id = h, S.current.onLayout = a, S.current.storage = l;
|
|
@@ -56633,79 +56668,79 @@ function Q4({
|
|
|
56633
56668
|
if (e) {
|
|
56634
56669
|
if (m.length === 0 || m.length !== R.length)
|
|
56635
56670
|
return;
|
|
56636
|
-
let
|
|
56637
|
-
|
|
56671
|
+
let U = Pk[e];
|
|
56672
|
+
U == null && (U = $ge(Bge, Vge), Pk[e] = U);
|
|
56638
56673
|
const G = [...R], q = new Map(_.current);
|
|
56639
|
-
|
|
56674
|
+
U(e, G, q, m, l);
|
|
56640
56675
|
}
|
|
56641
56676
|
}, [e, m, l]), ss(() => {
|
|
56642
56677
|
});
|
|
56643
56678
|
const k = Kn((R) => {
|
|
56644
56679
|
const {
|
|
56645
|
-
onLayout:
|
|
56680
|
+
onLayout: U
|
|
56646
56681
|
} = S.current, {
|
|
56647
56682
|
layout: G,
|
|
56648
56683
|
panelDataArray: q
|
|
56649
56684
|
} = E.current;
|
|
56650
56685
|
if (R.constraints.collapsible) {
|
|
56651
|
-
const
|
|
56652
|
-
collapsedSize:
|
|
56686
|
+
const V = q.map((re) => re.constraints), {
|
|
56687
|
+
collapsedSize: j = 0,
|
|
56653
56688
|
panelSize: K,
|
|
56654
56689
|
pivotIndices: ee
|
|
56655
56690
|
} = Ea(q, R, G);
|
|
56656
|
-
if (Ge(K != null, `Panel size not found for panel "${R.id}"`), !si(K,
|
|
56691
|
+
if (Ge(K != null, `Panel size not found for panel "${R.id}"`), !si(K, j)) {
|
|
56657
56692
|
_.current.set(R.id, K);
|
|
56658
|
-
const Z = el(q, R) === q.length - 1 ? K -
|
|
56693
|
+
const Z = el(q, R) === q.length - 1 ? K - j : j - K, ie = lu({
|
|
56659
56694
|
delta: Z,
|
|
56660
56695
|
initialLayout: G,
|
|
56661
|
-
panelConstraints:
|
|
56696
|
+
panelConstraints: V,
|
|
56662
56697
|
pivotIndices: ee,
|
|
56663
56698
|
prevLayout: G,
|
|
56664
56699
|
trigger: "imperative-api"
|
|
56665
56700
|
});
|
|
56666
|
-
uh(G, ie) || (b(ie), E.current.layout = ie,
|
|
56701
|
+
uh(G, ie) || (b(ie), E.current.layout = ie, U && U(ie), Zs(q, ie, w.current));
|
|
56667
56702
|
}
|
|
56668
56703
|
}
|
|
56669
|
-
}, []), O = Kn((R,
|
|
56704
|
+
}, []), O = Kn((R, U) => {
|
|
56670
56705
|
const {
|
|
56671
56706
|
onLayout: G
|
|
56672
56707
|
} = S.current, {
|
|
56673
56708
|
layout: q,
|
|
56674
|
-
panelDataArray:
|
|
56709
|
+
panelDataArray: V
|
|
56675
56710
|
} = E.current;
|
|
56676
56711
|
if (R.constraints.collapsible) {
|
|
56677
|
-
const
|
|
56712
|
+
const j = V.map((te) => te.constraints), {
|
|
56678
56713
|
collapsedSize: K = 0,
|
|
56679
56714
|
panelSize: ee = 0,
|
|
56680
56715
|
minSize: re = 0,
|
|
56681
56716
|
pivotIndices: Z
|
|
56682
|
-
} = Ea(
|
|
56717
|
+
} = Ea(V, R, q), ie = U ?? re;
|
|
56683
56718
|
if (si(ee, K)) {
|
|
56684
|
-
const te = _.current.get(R.id), fe = te != null && te >= ie ? te : ie, _e = el(
|
|
56719
|
+
const te = _.current.get(R.id), fe = te != null && te >= ie ? te : ie, _e = el(V, R) === V.length - 1 ? ee - fe : fe - ee, be = lu({
|
|
56685
56720
|
delta: _e,
|
|
56686
56721
|
initialLayout: q,
|
|
56687
|
-
panelConstraints:
|
|
56722
|
+
panelConstraints: j,
|
|
56688
56723
|
pivotIndices: Z,
|
|
56689
56724
|
prevLayout: q,
|
|
56690
56725
|
trigger: "imperative-api"
|
|
56691
56726
|
});
|
|
56692
|
-
uh(q, be) || (b(be), E.current.layout = be, G && G(be), Zs(
|
|
56727
|
+
uh(q, be) || (b(be), E.current.layout = be, G && G(be), Zs(V, be, w.current));
|
|
56693
56728
|
}
|
|
56694
56729
|
}
|
|
56695
56730
|
}, []), M = Kn((R) => {
|
|
56696
56731
|
const {
|
|
56697
|
-
layout:
|
|
56732
|
+
layout: U,
|
|
56698
56733
|
panelDataArray: G
|
|
56699
56734
|
} = E.current, {
|
|
56700
56735
|
panelSize: q
|
|
56701
|
-
} = Ea(G, R,
|
|
56736
|
+
} = Ea(G, R, U);
|
|
56702
56737
|
return Ge(q != null, `Panel size not found for panel "${R.id}"`), q;
|
|
56703
|
-
}, []), D = Kn((R,
|
|
56738
|
+
}, []), D = Kn((R, U) => {
|
|
56704
56739
|
const {
|
|
56705
56740
|
panelDataArray: G
|
|
56706
56741
|
} = E.current, q = el(G, R);
|
|
56707
56742
|
return Lge({
|
|
56708
|
-
defaultSize:
|
|
56743
|
+
defaultSize: U,
|
|
56709
56744
|
dragState: p,
|
|
56710
56745
|
layout: m,
|
|
56711
56746
|
panelData: G,
|
|
@@ -56713,31 +56748,31 @@ function Q4({
|
|
|
56713
56748
|
});
|
|
56714
56749
|
}, [p, m]), I = Kn((R) => {
|
|
56715
56750
|
const {
|
|
56716
|
-
layout:
|
|
56751
|
+
layout: U,
|
|
56717
56752
|
panelDataArray: G
|
|
56718
56753
|
} = E.current, {
|
|
56719
56754
|
collapsedSize: q = 0,
|
|
56720
|
-
collapsible:
|
|
56721
|
-
panelSize:
|
|
56722
|
-
} = Ea(G, R,
|
|
56723
|
-
return Ge(
|
|
56724
|
-
}, []),
|
|
56755
|
+
collapsible: V,
|
|
56756
|
+
panelSize: j
|
|
56757
|
+
} = Ea(G, R, U);
|
|
56758
|
+
return Ge(j != null, `Panel size not found for panel "${R.id}"`), V === !0 && si(j, q);
|
|
56759
|
+
}, []), W = Kn((R) => {
|
|
56725
56760
|
const {
|
|
56726
|
-
layout:
|
|
56761
|
+
layout: U,
|
|
56727
56762
|
panelDataArray: G
|
|
56728
56763
|
} = E.current, {
|
|
56729
56764
|
collapsedSize: q = 0,
|
|
56730
|
-
collapsible:
|
|
56731
|
-
panelSize:
|
|
56732
|
-
} = Ea(G, R,
|
|
56733
|
-
return Ge(
|
|
56765
|
+
collapsible: V,
|
|
56766
|
+
panelSize: j
|
|
56767
|
+
} = Ea(G, R, U);
|
|
56768
|
+
return Ge(j != null, `Panel size not found for panel "${R.id}"`), !V || _s(j, q) > 0;
|
|
56734
56769
|
}, []), $ = Kn((R) => {
|
|
56735
56770
|
const {
|
|
56736
|
-
panelDataArray:
|
|
56771
|
+
panelDataArray: U
|
|
56737
56772
|
} = E.current;
|
|
56738
|
-
|
|
56739
|
-
const
|
|
56740
|
-
return
|
|
56773
|
+
U.push(R), U.sort((G, q) => {
|
|
56774
|
+
const V = G.order, j = q.order;
|
|
56775
|
+
return V == null && j == null ? 0 : V == null ? -1 : j == null ? 1 : V - j;
|
|
56741
56776
|
}), E.current.panelDataArrayChanged = !0, y();
|
|
56742
56777
|
}, [y]);
|
|
56743
56778
|
ls(() => {
|
|
@@ -56745,25 +56780,25 @@ function Q4({
|
|
|
56745
56780
|
E.current.panelDataArrayChanged = !1;
|
|
56746
56781
|
const {
|
|
56747
56782
|
autoSaveId: R,
|
|
56748
|
-
onLayout:
|
|
56783
|
+
onLayout: U,
|
|
56749
56784
|
storage: G
|
|
56750
56785
|
} = S.current, {
|
|
56751
56786
|
layout: q,
|
|
56752
|
-
panelDataArray:
|
|
56787
|
+
panelDataArray: V
|
|
56753
56788
|
} = E.current;
|
|
56754
|
-
let
|
|
56789
|
+
let j = null;
|
|
56755
56790
|
if (R) {
|
|
56756
|
-
const ee = zge(R,
|
|
56757
|
-
ee && (_.current = new Map(Object.entries(ee.expandToSizes)),
|
|
56791
|
+
const ee = zge(R, V, G);
|
|
56792
|
+
ee && (_.current = new Map(Object.entries(ee.expandToSizes)), j = ee.layout);
|
|
56758
56793
|
}
|
|
56759
|
-
|
|
56760
|
-
panelDataArray:
|
|
56794
|
+
j == null && (j = Fge({
|
|
56795
|
+
panelDataArray: V
|
|
56761
56796
|
}));
|
|
56762
56797
|
const K = kk({
|
|
56763
|
-
layout:
|
|
56764
|
-
panelConstraints:
|
|
56798
|
+
layout: j,
|
|
56799
|
+
panelConstraints: V.map((ee) => ee.constraints)
|
|
56765
56800
|
});
|
|
56766
|
-
Ek(q, K) || (b(K), E.current.layout = K,
|
|
56801
|
+
Ek(q, K) || (b(K), E.current.layout = K, U && U(K), Zs(V, K, w.current));
|
|
56767
56802
|
}
|
|
56768
56803
|
}), ls(() => {
|
|
56769
56804
|
const R = E.current;
|
|
@@ -56772,12 +56807,12 @@ function Q4({
|
|
|
56772
56807
|
};
|
|
56773
56808
|
}, []);
|
|
56774
56809
|
const T = Kn((R) => {
|
|
56775
|
-
let
|
|
56810
|
+
let U = !1;
|
|
56776
56811
|
const G = f.current;
|
|
56777
|
-
return G && window.getComputedStyle(G, null).getPropertyValue("direction") === "rtl" && (
|
|
56778
|
-
|
|
56779
|
-
const
|
|
56780
|
-
if (!
|
|
56812
|
+
return G && window.getComputedStyle(G, null).getPropertyValue("direction") === "rtl" && (U = !0), function(V) {
|
|
56813
|
+
V.preventDefault();
|
|
56814
|
+
const j = f.current;
|
|
56815
|
+
if (!j)
|
|
56781
56816
|
return () => null;
|
|
56782
56817
|
const {
|
|
56783
56818
|
direction: K,
|
|
@@ -56790,48 +56825,48 @@ function Q4({
|
|
|
56790
56825
|
panelDataArray: fe
|
|
56791
56826
|
} = E.current, {
|
|
56792
56827
|
initialLayout: he
|
|
56793
|
-
} = ee ?? {}, _e = U4(re, R,
|
|
56794
|
-
let be = Nge(
|
|
56828
|
+
} = ee ?? {}, _e = U4(re, R, j);
|
|
56829
|
+
let be = Nge(V, R, K, ee, Z, j);
|
|
56795
56830
|
const xe = K === "horizontal";
|
|
56796
|
-
xe &&
|
|
56831
|
+
xe && U && (be = -be);
|
|
56797
56832
|
const Ve = fe.map((Qe) => Qe.constraints), st = lu({
|
|
56798
56833
|
delta: be,
|
|
56799
56834
|
initialLayout: he ?? te,
|
|
56800
56835
|
panelConstraints: Ve,
|
|
56801
56836
|
pivotIndices: _e,
|
|
56802
56837
|
prevLayout: te,
|
|
56803
|
-
trigger: F4(
|
|
56838
|
+
trigger: F4(V) ? "keyboard" : "mouse-or-touch"
|
|
56804
56839
|
}), Qt = !uh(te, st);
|
|
56805
|
-
(L4(
|
|
56840
|
+
(L4(V) || $4(V)) && x.current != be && (x.current = be, !Qt && be !== 0 ? xe ? vy(R, be < 0 ? B4 : V4) : vy(R, be < 0 ? H4 : j4) : vy(R, 0)), Qt && (b(st), E.current.layout = st, ie && ie(st), Zs(fe, st, w.current));
|
|
56806
56841
|
};
|
|
56807
|
-
}, []), N = Kn((R,
|
|
56842
|
+
}, []), N = Kn((R, U) => {
|
|
56808
56843
|
const {
|
|
56809
56844
|
onLayout: G
|
|
56810
56845
|
} = S.current, {
|
|
56811
56846
|
layout: q,
|
|
56812
|
-
panelDataArray:
|
|
56813
|
-
} = E.current,
|
|
56847
|
+
panelDataArray: V
|
|
56848
|
+
} = E.current, j = V.map((te) => te.constraints), {
|
|
56814
56849
|
panelSize: K,
|
|
56815
56850
|
pivotIndices: ee
|
|
56816
|
-
} = Ea(
|
|
56851
|
+
} = Ea(V, R, q);
|
|
56817
56852
|
Ge(K != null, `Panel size not found for panel "${R.id}"`);
|
|
56818
|
-
const Z = el(
|
|
56853
|
+
const Z = el(V, R) === V.length - 1 ? K - U : U - K, ie = lu({
|
|
56819
56854
|
delta: Z,
|
|
56820
56855
|
initialLayout: q,
|
|
56821
|
-
panelConstraints:
|
|
56856
|
+
panelConstraints: j,
|
|
56822
56857
|
pivotIndices: ee,
|
|
56823
56858
|
prevLayout: q,
|
|
56824
56859
|
trigger: "imperative-api"
|
|
56825
56860
|
});
|
|
56826
|
-
uh(q, ie) || (b(ie), E.current.layout = ie, G && G(ie), Zs(
|
|
56827
|
-
}, []), A = Kn((R,
|
|
56861
|
+
uh(q, ie) || (b(ie), E.current.layout = ie, G && G(ie), Zs(V, ie, w.current));
|
|
56862
|
+
}, []), A = Kn((R, U) => {
|
|
56828
56863
|
const {
|
|
56829
56864
|
layout: G,
|
|
56830
56865
|
panelDataArray: q
|
|
56831
56866
|
} = E.current, {
|
|
56832
|
-
collapsedSize:
|
|
56833
|
-
collapsible:
|
|
56834
|
-
} =
|
|
56867
|
+
collapsedSize: V = 0,
|
|
56868
|
+
collapsible: j
|
|
56869
|
+
} = U, {
|
|
56835
56870
|
collapsedSize: K = 0,
|
|
56836
56871
|
collapsible: ee,
|
|
56837
56872
|
maxSize: re = 100,
|
|
@@ -56839,8 +56874,8 @@ function Q4({
|
|
|
56839
56874
|
} = R.constraints, {
|
|
56840
56875
|
panelSize: ie
|
|
56841
56876
|
} = Ea(q, R, G);
|
|
56842
|
-
ie != null && (
|
|
56843
|
-
}, [N]), F = Kn((R,
|
|
56877
|
+
ie != null && (j && ee && si(ie, V) ? si(V, K) || N(R, K) : ie < Z ? N(R, Z) : ie > re && N(R, re));
|
|
56878
|
+
}, [N]), F = Kn((R, U) => {
|
|
56844
56879
|
const {
|
|
56845
56880
|
direction: G
|
|
56846
56881
|
} = S.current, {
|
|
@@ -56848,23 +56883,23 @@ function Q4({
|
|
|
56848
56883
|
} = E.current;
|
|
56849
56884
|
if (!f.current)
|
|
56850
56885
|
return;
|
|
56851
|
-
const
|
|
56852
|
-
Ge(
|
|
56853
|
-
const
|
|
56886
|
+
const V = um(R, f.current);
|
|
56887
|
+
Ge(V, `Drag handle element not found for id "${R}"`);
|
|
56888
|
+
const j = q4(G, U);
|
|
56854
56889
|
g({
|
|
56855
56890
|
dragHandleId: R,
|
|
56856
|
-
dragHandleRect:
|
|
56857
|
-
initialCursorPosition:
|
|
56891
|
+
dragHandleRect: V.getBoundingClientRect(),
|
|
56892
|
+
initialCursorPosition: j,
|
|
56858
56893
|
initialLayout: q
|
|
56859
56894
|
});
|
|
56860
56895
|
}, []), H = Kn(() => {
|
|
56861
56896
|
g(null);
|
|
56862
56897
|
}, []), P = Kn((R) => {
|
|
56863
56898
|
const {
|
|
56864
|
-
panelDataArray:
|
|
56865
|
-
} = E.current, G = el(
|
|
56866
|
-
G >= 0 && (
|
|
56867
|
-
}, [y]),
|
|
56899
|
+
panelDataArray: U
|
|
56900
|
+
} = E.current, G = el(U, R);
|
|
56901
|
+
G >= 0 && (U.splice(G, 1), delete w.current[R.id], E.current.panelDataArrayChanged = !0, y());
|
|
56902
|
+
}, [y]), B = gge(() => ({
|
|
56868
56903
|
collapsePanel: k,
|
|
56869
56904
|
direction: r,
|
|
56870
56905
|
dragState: p,
|
|
@@ -56873,7 +56908,7 @@ function Q4({
|
|
|
56873
56908
|
getPanelStyle: D,
|
|
56874
56909
|
groupId: h,
|
|
56875
56910
|
isPanelCollapsed: I,
|
|
56876
|
-
isPanelExpanded:
|
|
56911
|
+
isPanelExpanded: W,
|
|
56877
56912
|
reevaluatePanelConstraints: A,
|
|
56878
56913
|
registerPanel: $,
|
|
56879
56914
|
registerResizeHandle: T,
|
|
@@ -56882,7 +56917,7 @@ function Q4({
|
|
|
56882
56917
|
stopDragging: H,
|
|
56883
56918
|
unregisterPanel: P,
|
|
56884
56919
|
panelGroupElement: f.current
|
|
56885
|
-
}), [k, p, r, O, M, D, h, I,
|
|
56920
|
+
}), [k, p, r, O, M, D, h, I, W, A, $, T, N, F, H, P]), L = {
|
|
56886
56921
|
display: "flex",
|
|
56887
56922
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
56888
56923
|
height: "100%",
|
|
@@ -56890,7 +56925,7 @@ function Q4({
|
|
|
56890
56925
|
width: "100%"
|
|
56891
56926
|
};
|
|
56892
56927
|
return sc(sm.Provider, {
|
|
56893
|
-
value:
|
|
56928
|
+
value: B
|
|
56894
56929
|
}, sc(u, {
|
|
56895
56930
|
...d,
|
|
56896
56931
|
children: t,
|
|
@@ -56996,17 +57031,17 @@ function pS({
|
|
|
56996
57031
|
startDragging: _,
|
|
56997
57032
|
stopDragging: x,
|
|
56998
57033
|
panelGroupElement: S
|
|
56999
|
-
} = m, E = uS(o), [k, O] = Sl("inactive"), [M, D] = Sl(!1), [I,
|
|
57034
|
+
} = m, E = uS(o), [k, O] = Sl("inactive"), [M, D] = Sl(!1), [I, W] = Sl(null), $ = er({
|
|
57000
57035
|
state: k
|
|
57001
57036
|
});
|
|
57002
57037
|
ls(() => {
|
|
57003
57038
|
$.current.state = k;
|
|
57004
57039
|
}), ss(() => {
|
|
57005
57040
|
if (n)
|
|
57006
|
-
|
|
57041
|
+
W(null);
|
|
57007
57042
|
else {
|
|
57008
57043
|
const F = w(E);
|
|
57009
|
-
|
|
57044
|
+
W(() => F);
|
|
57010
57045
|
}
|
|
57011
57046
|
}, [n, E, w]);
|
|
57012
57047
|
const T = (h = r == null ? void 0 : r.coarse) !== null && h !== void 0 ? h : 15, N = (f = r == null ? void 0 : r.fine) !== null && f !== void 0 ? f : 5;
|
|
@@ -57017,8 +57052,8 @@ function pS({
|
|
|
57017
57052
|
return Ge(F, "Element ref not attached"), Pge(E, F, b, {
|
|
57018
57053
|
coarse: T,
|
|
57019
57054
|
fine: N
|
|
57020
|
-
}, (P,
|
|
57021
|
-
if (
|
|
57055
|
+
}, (P, B, L) => {
|
|
57056
|
+
if (B)
|
|
57022
57057
|
switch (P) {
|
|
57023
57058
|
case "down": {
|
|
57024
57059
|
O("drag"), Ge(L, 'Expected event to be defined for "down" action'), _(E, L);
|
|
@@ -57852,17 +57887,17 @@ var Vr = "MenuContent", [kme, RS] = Fs(Vr), KF = C.forwardRef(
|
|
|
57852
57887
|
onDismiss: f,
|
|
57853
57888
|
disableOutsideScroll: p,
|
|
57854
57889
|
...g
|
|
57855
|
-
} = e, m = Ls(Vr, n), b = Zd(Vr, n), y = hm(n), w = UF(n), _ = xme(n), [x, S] = C.useState(null), E = C.useRef(null), k = Ne(t, E, m.onContentChange), O = C.useRef(0), M = C.useRef(""), D = C.useRef(0), I = C.useRef(null),
|
|
57856
|
-
var
|
|
57857
|
-
const P = M.current + H,
|
|
57890
|
+
} = e, m = Ls(Vr, n), b = Zd(Vr, n), y = hm(n), w = UF(n), _ = xme(n), [x, S] = C.useState(null), E = C.useRef(null), k = Ne(t, E, m.onContentChange), O = C.useRef(0), M = C.useRef(""), D = C.useRef(0), I = C.useRef(null), W = C.useRef("right"), $ = C.useRef(0), T = p ? Fd : C.Fragment, N = p ? { as: gi, allowPinchZoom: !0 } : void 0, A = (H) => {
|
|
57891
|
+
var V, j;
|
|
57892
|
+
const P = M.current + H, B = _().filter((K) => !K.disabled), L = document.activeElement, R = (V = B.find((K) => K.ref.current === L)) == null ? void 0 : V.textValue, U = B.map((K) => K.textValue), G = Vme(U, P, R), q = (j = B.find((K) => K.textValue === G)) == null ? void 0 : j.ref.current;
|
|
57858
57893
|
(function K(ee) {
|
|
57859
57894
|
M.current = ee, window.clearTimeout(O.current), ee !== "" && (O.current = window.setTimeout(() => K(""), 1e3));
|
|
57860
57895
|
})(P), q && setTimeout(() => q.focus());
|
|
57861
57896
|
};
|
|
57862
57897
|
C.useEffect(() => () => window.clearTimeout(O.current), []), Lg();
|
|
57863
57898
|
const F = C.useCallback((H) => {
|
|
57864
|
-
var
|
|
57865
|
-
return
|
|
57899
|
+
var B, L;
|
|
57900
|
+
return W.current === ((B = I.current) == null ? void 0 : B.side) && jme(H, (L = I.current) == null ? void 0 : L.area);
|
|
57866
57901
|
}, []);
|
|
57867
57902
|
return /* @__PURE__ */ v(
|
|
57868
57903
|
kme,
|
|
@@ -57939,12 +57974,12 @@ var Vr = "MenuContent", [kme, RS] = Fs(Vr), KF = C.forwardRef(
|
|
|
57939
57974
|
ref: k,
|
|
57940
57975
|
style: { outline: "none", ...g.style },
|
|
57941
57976
|
onKeyDown: ce(g.onKeyDown, (H) => {
|
|
57942
|
-
const
|
|
57943
|
-
|
|
57944
|
-
const
|
|
57945
|
-
if (H.target !==
|
|
57977
|
+
const B = H.target.closest("[data-radix-menu-content]") === H.currentTarget, L = H.ctrlKey || H.altKey || H.metaKey, R = H.key.length === 1;
|
|
57978
|
+
B && (H.key === "Tab" && H.preventDefault(), !L && R && A(H.key));
|
|
57979
|
+
const U = E.current;
|
|
57980
|
+
if (H.target !== U || !yme.includes(H.key)) return;
|
|
57946
57981
|
H.preventDefault();
|
|
57947
|
-
const q = _().filter((
|
|
57982
|
+
const q = _().filter((V) => !V.disabled).map((V) => V.ref.current);
|
|
57948
57983
|
jF.includes(H.key) && q.reverse(), zme(q);
|
|
57949
57984
|
}),
|
|
57950
57985
|
onBlur: ce(e.onBlur, (H) => {
|
|
@@ -57953,10 +57988,10 @@ var Vr = "MenuContent", [kme, RS] = Fs(Vr), KF = C.forwardRef(
|
|
|
57953
57988
|
onPointerMove: ce(
|
|
57954
57989
|
e.onPointerMove,
|
|
57955
57990
|
dd((H) => {
|
|
57956
|
-
const P = H.target,
|
|
57957
|
-
if (H.currentTarget.contains(P) &&
|
|
57991
|
+
const P = H.target, B = $.current !== H.clientX;
|
|
57992
|
+
if (H.currentTarget.contains(P) && B) {
|
|
57958
57993
|
const L = H.clientX > $.current ? "right" : "left";
|
|
57959
|
-
|
|
57994
|
+
W.current = L, $.current = H.clientX;
|
|
57960
57995
|
}
|
|
57961
57996
|
})
|
|
57962
57997
|
)
|
|
@@ -59150,15 +59185,15 @@ function Bye({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
59150
59185
|
M.current(E.current);
|
|
59151
59186
|
let T = cl(E.current, e || "", r || n || "text", i || ""), N = cl(E.current, t || "", o || n || "text", a || "");
|
|
59152
59187
|
(A = S.current) == null || A.setModel({ original: T, modified: N });
|
|
59153
|
-
}, [n, t, o, e, r, i, a]),
|
|
59188
|
+
}, [n, t, o, e, r, i, a]), W = qe(() => {
|
|
59154
59189
|
var T;
|
|
59155
59190
|
!D.current && k.current && (S.current = E.current.editor.createDiffEditor(k.current, { automaticLayout: !0, ...d }), I(), (T = E.current) == null || T.editor.setTheme(c), w(!0), D.current = !0);
|
|
59156
59191
|
}, [d, c, I]);
|
|
59157
59192
|
we(() => {
|
|
59158
59193
|
y && O.current(S.current, E.current);
|
|
59159
59194
|
}, [y]), we(() => {
|
|
59160
|
-
!_ && !y &&
|
|
59161
|
-
}, [_, y,
|
|
59195
|
+
!_ && !y && W();
|
|
59196
|
+
}, [_, y, W]);
|
|
59162
59197
|
function $() {
|
|
59163
59198
|
var N, A, F, H;
|
|
59164
59199
|
let T = (N = S.current) == null ? void 0 : N.getModel();
|
|
@@ -59186,36 +59221,36 @@ function jye(e) {
|
|
|
59186
59221
|
}
|
|
59187
59222
|
var Wye = jye, fh = /* @__PURE__ */ new Map();
|
|
59188
59223
|
function Uye({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: h = !1, width: f = "100%", height: p = "100%", className: g, wrapperProps: m = {}, beforeMount: b = Du, onMount: y = Du, onChange: w, onValidate: _ = Du }) {
|
|
59189
|
-
let [x, S] = ge(!1), [E, k] = ge(!0), O = me(null), M = me(null), D = me(null), I = me(y),
|
|
59224
|
+
let [x, S] = ge(!1), [E, k] = ge(!0), O = me(null), M = me(null), D = me(null), I = me(y), W = me(b), $ = me(), T = me(r), N = Wye(i), A = me(!1), F = me(!1);
|
|
59190
59225
|
DS(() => {
|
|
59191
|
-
let
|
|
59192
|
-
return
|
|
59226
|
+
let B = Up.init();
|
|
59227
|
+
return B.then((L) => (O.current = L) && k(!1)).catch((L) => (L == null ? void 0 : L.type) !== "cancelation" && console.error("Monaco initialization: error:", L)), () => M.current ? P() : B.cancel();
|
|
59193
59228
|
}), Sr(() => {
|
|
59194
|
-
var L, R,
|
|
59195
|
-
let
|
|
59196
|
-
|
|
59229
|
+
var L, R, U, G;
|
|
59230
|
+
let B = cl(O.current, e || r || "", t || o || "", i || n || "");
|
|
59231
|
+
B !== ((L = M.current) == null ? void 0 : L.getModel()) && (d && fh.set(N, (R = M.current) == null ? void 0 : R.saveViewState()), (U = M.current) == null || U.setModel(B), d && ((G = M.current) == null || G.restoreViewState(fh.get(i))));
|
|
59197
59232
|
}, [i], x), Sr(() => {
|
|
59198
|
-
var
|
|
59199
|
-
(
|
|
59233
|
+
var B;
|
|
59234
|
+
(B = M.current) == null || B.updateOptions(c);
|
|
59200
59235
|
}, [c], x), Sr(() => {
|
|
59201
59236
|
!M.current || r === void 0 || (M.current.getOption(O.current.editor.EditorOption.readOnly) ? M.current.setValue(r) : r !== M.current.getValue() && (F.current = !0, M.current.executeEdits("", [{ range: M.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), M.current.pushUndoStop(), F.current = !1));
|
|
59202
59237
|
}, [r], x), Sr(() => {
|
|
59203
59238
|
var L, R;
|
|
59204
|
-
let
|
|
59205
|
-
|
|
59239
|
+
let B = (L = M.current) == null ? void 0 : L.getModel();
|
|
59240
|
+
B && o && ((R = O.current) == null || R.editor.setModelLanguage(B, o));
|
|
59206
59241
|
}, [o], x), Sr(() => {
|
|
59207
|
-
var
|
|
59208
|
-
s !== void 0 && ((
|
|
59242
|
+
var B;
|
|
59243
|
+
s !== void 0 && ((B = M.current) == null || B.revealLine(s));
|
|
59209
59244
|
}, [s], x), Sr(() => {
|
|
59210
|
-
var
|
|
59211
|
-
(
|
|
59245
|
+
var B;
|
|
59246
|
+
(B = O.current) == null || B.editor.setTheme(a);
|
|
59212
59247
|
}, [a], x);
|
|
59213
59248
|
let H = qe(() => {
|
|
59214
|
-
var
|
|
59249
|
+
var B;
|
|
59215
59250
|
if (!(!D.current || !O.current) && !A.current) {
|
|
59216
|
-
|
|
59251
|
+
W.current(O.current);
|
|
59217
59252
|
let L = i || n, R = cl(O.current, r || e || "", t || o || "", L || "");
|
|
59218
|
-
M.current = (
|
|
59253
|
+
M.current = (B = O.current) == null ? void 0 : B.editor.create(D.current, { model: R, automaticLayout: !0, ...c }, u), d && M.current.restoreViewState(fh.get(L)), O.current.editor.setTheme(a), s !== void 0 && M.current.revealLine(s), S(!0), A.current = !0;
|
|
59219
59254
|
}
|
|
59220
59255
|
}, [e, t, n, r, o, i, c, u, d, a, s]);
|
|
59221
59256
|
we(() => {
|
|
@@ -59223,30 +59258,30 @@ function Uye({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
59223
59258
|
}, [x]), we(() => {
|
|
59224
59259
|
!E && !x && H();
|
|
59225
59260
|
}, [E, x, H]), T.current = r, we(() => {
|
|
59226
|
-
var
|
|
59227
|
-
x && w && ((
|
|
59261
|
+
var B, L;
|
|
59262
|
+
x && w && ((B = $.current) == null || B.dispose(), $.current = (L = M.current) == null ? void 0 : L.onDidChangeModelContent((R) => {
|
|
59228
59263
|
F.current || w(M.current.getValue(), R);
|
|
59229
59264
|
}));
|
|
59230
59265
|
}, [x, w]), we(() => {
|
|
59231
59266
|
if (x) {
|
|
59232
|
-
let
|
|
59233
|
-
var
|
|
59234
|
-
let R = (
|
|
59267
|
+
let B = O.current.editor.onDidChangeMarkers((L) => {
|
|
59268
|
+
var U;
|
|
59269
|
+
let R = (U = M.current.getModel()) == null ? void 0 : U.uri;
|
|
59235
59270
|
if (R && L.find((G) => G.path === R.path)) {
|
|
59236
59271
|
let G = O.current.editor.getModelMarkers({ resource: R });
|
|
59237
59272
|
_ == null || _(G);
|
|
59238
59273
|
}
|
|
59239
59274
|
});
|
|
59240
59275
|
return () => {
|
|
59241
|
-
|
|
59276
|
+
B == null || B.dispose();
|
|
59242
59277
|
};
|
|
59243
59278
|
}
|
|
59244
59279
|
return () => {
|
|
59245
59280
|
};
|
|
59246
59281
|
}, [x, _]);
|
|
59247
59282
|
function P() {
|
|
59248
|
-
var
|
|
59249
|
-
(
|
|
59283
|
+
var B, L;
|
|
59284
|
+
(B = $.current) == null || B.dispose(), h ? d && fh.set(i, M.current.saveViewState()) : (L = M.current.getModel()) == null || L.dispose(), M.current.dispose();
|
|
59250
59285
|
}
|
|
59251
59286
|
return J.createElement(HL, { width: f, height: p, isEditorReady: x, loading: l, _ref: D, className: g, wrapperProps: m });
|
|
59252
59287
|
}
|
|
@@ -59666,92 +59701,92 @@ var qc = '[cmdk-group=""]', Ey = '[cmdk-group-items=""]', _0e = '[cmdk-group-hea
|
|
|
59666
59701
|
n.current.value = L, E.emit();
|
|
59667
59702
|
}
|
|
59668
59703
|
}, [u]), Rs(() => {
|
|
59669
|
-
S(6,
|
|
59704
|
+
S(6, W);
|
|
59670
59705
|
}, []);
|
|
59671
|
-
let E = C.useMemo(() => ({ subscribe: (L) => (a.current.add(L), () => a.current.delete(L)), snapshot: () => n.current, setState: (L, R,
|
|
59672
|
-
var G, q,
|
|
59706
|
+
let E = C.useMemo(() => ({ subscribe: (L) => (a.current.add(L), () => a.current.delete(L)), snapshot: () => n.current, setState: (L, R, U) => {
|
|
59707
|
+
var G, q, V;
|
|
59673
59708
|
if (!Object.is(n.current[L], R)) {
|
|
59674
59709
|
if (n.current[L] = R, L === "search") I(), M(), S(1, D);
|
|
59675
|
-
else if (L === "value" && (
|
|
59676
|
-
let
|
|
59677
|
-
(
|
|
59710
|
+
else if (L === "value" && (U || S(5, W), ((G = s.current) == null ? void 0 : G.value) !== void 0)) {
|
|
59711
|
+
let j = R ?? "";
|
|
59712
|
+
(V = (q = s.current).onValueChange) == null || V.call(q, j);
|
|
59678
59713
|
return;
|
|
59679
59714
|
}
|
|
59680
59715
|
E.emit();
|
|
59681
59716
|
}
|
|
59682
59717
|
}, emit: () => {
|
|
59683
59718
|
a.current.forEach((L) => L());
|
|
59684
|
-
} }), []), k = C.useMemo(() => ({ value: (L, R,
|
|
59719
|
+
} }), []), k = C.useMemo(() => ({ value: (L, R, U) => {
|
|
59685
59720
|
var G;
|
|
59686
|
-
R !== ((G = i.current.get(L)) == null ? void 0 : G.value) && (i.current.set(L, { value: R, keywords:
|
|
59721
|
+
R !== ((G = i.current.get(L)) == null ? void 0 : G.value) && (i.current.set(L, { value: R, keywords: U }), n.current.filtered.items.set(L, O(R, U)), S(2, () => {
|
|
59687
59722
|
M(), E.emit();
|
|
59688
59723
|
}));
|
|
59689
59724
|
}, item: (L, R) => (r.current.add(L), R && (o.current.has(R) ? o.current.get(R).add(L) : o.current.set(R, /* @__PURE__ */ new Set([L]))), S(3, () => {
|
|
59690
59725
|
I(), M(), n.current.value || D(), E.emit();
|
|
59691
59726
|
}), () => {
|
|
59692
59727
|
i.current.delete(L), r.current.delete(L), n.current.filtered.items.delete(L);
|
|
59693
|
-
let
|
|
59728
|
+
let U = $();
|
|
59694
59729
|
S(4, () => {
|
|
59695
|
-
I(), (
|
|
59730
|
+
I(), (U == null ? void 0 : U.getAttribute("id")) === L && D(), E.emit();
|
|
59696
59731
|
});
|
|
59697
59732
|
}), group: (L) => (o.current.has(L) || o.current.set(L, /* @__PURE__ */ new Set()), () => {
|
|
59698
59733
|
i.current.delete(L), o.current.delete(L);
|
|
59699
59734
|
}), filter: () => s.current.shouldFilter, label: l || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: y, inputId: _, labelId: w, listInnerRef: x }), []);
|
|
59700
59735
|
function O(L, R) {
|
|
59701
|
-
var
|
|
59702
|
-
let q = (G = (
|
|
59736
|
+
var U, G;
|
|
59737
|
+
let q = (G = (U = s.current) == null ? void 0 : U.filter) != null ? G : E0e;
|
|
59703
59738
|
return L ? q(L, n.current.search, R) : 0;
|
|
59704
59739
|
}
|
|
59705
59740
|
function M() {
|
|
59706
59741
|
if (!n.current.search || s.current.shouldFilter === !1) return;
|
|
59707
59742
|
let L = n.current.filtered.items, R = [];
|
|
59708
59743
|
n.current.filtered.groups.forEach((G) => {
|
|
59709
|
-
let q = o.current.get(G),
|
|
59710
|
-
q.forEach((
|
|
59711
|
-
let K = L.get(
|
|
59712
|
-
|
|
59713
|
-
}), R.push([G,
|
|
59744
|
+
let q = o.current.get(G), V = 0;
|
|
59745
|
+
q.forEach((j) => {
|
|
59746
|
+
let K = L.get(j);
|
|
59747
|
+
V = Math.max(K, V);
|
|
59748
|
+
}), R.push([G, V]);
|
|
59714
59749
|
});
|
|
59715
|
-
let
|
|
59750
|
+
let U = x.current;
|
|
59716
59751
|
T().sort((G, q) => {
|
|
59717
|
-
var
|
|
59752
|
+
var V, j;
|
|
59718
59753
|
let K = G.getAttribute("id"), ee = q.getAttribute("id");
|
|
59719
|
-
return ((
|
|
59754
|
+
return ((V = L.get(ee)) != null ? V : 0) - ((j = L.get(K)) != null ? j : 0);
|
|
59720
59755
|
}).forEach((G) => {
|
|
59721
59756
|
let q = G.closest(Ey);
|
|
59722
|
-
q ? q.appendChild(G.parentElement === q ? G : G.closest(`${Ey} > *`)) :
|
|
59757
|
+
q ? q.appendChild(G.parentElement === q ? G : G.closest(`${Ey} > *`)) : U.appendChild(G.parentElement === U ? G : G.closest(`${Ey} > *`));
|
|
59723
59758
|
}), R.sort((G, q) => q[1] - G[1]).forEach((G) => {
|
|
59724
59759
|
var q;
|
|
59725
|
-
let
|
|
59726
|
-
|
|
59760
|
+
let V = (q = x.current) == null ? void 0 : q.querySelector(`${qc}[${Aa}="${encodeURIComponent(G[0])}"]`);
|
|
59761
|
+
V == null || V.parentElement.appendChild(V);
|
|
59727
59762
|
});
|
|
59728
59763
|
}
|
|
59729
59764
|
function D() {
|
|
59730
|
-
let L = T().find((
|
|
59765
|
+
let L = T().find((U) => U.getAttribute("aria-disabled") !== "true"), R = L == null ? void 0 : L.getAttribute(Aa);
|
|
59731
59766
|
E.setState("value", R || void 0);
|
|
59732
59767
|
}
|
|
59733
59768
|
function I() {
|
|
59734
|
-
var L, R,
|
|
59769
|
+
var L, R, U, G;
|
|
59735
59770
|
if (!n.current.search || s.current.shouldFilter === !1) {
|
|
59736
59771
|
n.current.filtered.count = r.current.size;
|
|
59737
59772
|
return;
|
|
59738
59773
|
}
|
|
59739
59774
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
59740
59775
|
let q = 0;
|
|
59741
|
-
for (let
|
|
59742
|
-
let
|
|
59743
|
-
n.current.filtered.items.set(
|
|
59776
|
+
for (let V of r.current) {
|
|
59777
|
+
let j = (R = (L = i.current.get(V)) == null ? void 0 : L.value) != null ? R : "", K = (G = (U = i.current.get(V)) == null ? void 0 : U.keywords) != null ? G : [], ee = O(j, K);
|
|
59778
|
+
n.current.filtered.items.set(V, ee), ee > 0 && q++;
|
|
59744
59779
|
}
|
|
59745
|
-
for (let [
|
|
59746
|
-
n.current.filtered.groups.add(
|
|
59780
|
+
for (let [V, j] of o.current) for (let K of j) if (n.current.filtered.items.get(K) > 0) {
|
|
59781
|
+
n.current.filtered.groups.add(V);
|
|
59747
59782
|
break;
|
|
59748
59783
|
}
|
|
59749
59784
|
n.current.filtered.count = q;
|
|
59750
59785
|
}
|
|
59751
|
-
function
|
|
59752
|
-
var L, R,
|
|
59786
|
+
function W() {
|
|
59787
|
+
var L, R, U;
|
|
59753
59788
|
let G = $();
|
|
59754
|
-
G && (((L = G.parentElement) == null ? void 0 : L.firstChild) === G && ((
|
|
59789
|
+
G && (((L = G.parentElement) == null ? void 0 : L.firstChild) === G && ((U = (R = G.closest(qc)) == null ? void 0 : R.querySelector(_0e)) == null || U.scrollIntoView({ block: "nearest" })), G.scrollIntoView({ block: "nearest" }));
|
|
59755
59790
|
}
|
|
59756
59791
|
function $() {
|
|
59757
59792
|
var L;
|
|
@@ -59767,17 +59802,17 @@ var qc = '[cmdk-group=""]', Ey = '[cmdk-group-items=""]', _0e = '[cmdk-group-hea
|
|
|
59767
59802
|
}
|
|
59768
59803
|
function A(L) {
|
|
59769
59804
|
var R;
|
|
59770
|
-
let
|
|
59771
|
-
(R = s.current) != null && R.loop && (
|
|
59805
|
+
let U = $(), G = T(), q = G.findIndex((j) => j === U), V = G[q + L];
|
|
59806
|
+
(R = s.current) != null && R.loop && (V = q + L < 0 ? G[G.length - 1] : q + L === G.length ? G[0] : G[q + L]), V && E.setState("value", V.getAttribute(Aa));
|
|
59772
59807
|
}
|
|
59773
59808
|
function F(L) {
|
|
59774
|
-
let R = $(),
|
|
59775
|
-
for (;
|
|
59809
|
+
let R = $(), U = R == null ? void 0 : R.closest(qc), G;
|
|
59810
|
+
for (; U && !G; ) U = L > 0 ? A0e(U, qc) : N0e(U, qc), G = U == null ? void 0 : U.querySelector(zk);
|
|
59776
59811
|
G ? E.setState("value", G.getAttribute(Aa)) : A(L);
|
|
59777
59812
|
}
|
|
59778
59813
|
let H = () => N(T().length - 1), P = (L) => {
|
|
59779
59814
|
L.preventDefault(), L.metaKey ? H() : L.altKey ? F(1) : A(1);
|
|
59780
|
-
},
|
|
59815
|
+
}, B = (L) => {
|
|
59781
59816
|
L.preventDefault(), L.metaKey ? N(0) : L.altKey ? F(-1) : A(-1);
|
|
59782
59817
|
};
|
|
59783
59818
|
return C.createElement(ye.div, { ref: t, tabIndex: -1, ...b, "cmdk-root": "", onKeyDown: (L) => {
|
|
@@ -59794,11 +59829,11 @@ var qc = '[cmdk-group=""]', Ey = '[cmdk-group-items=""]', _0e = '[cmdk-group-hea
|
|
|
59794
59829
|
}
|
|
59795
59830
|
case "p":
|
|
59796
59831
|
case "k": {
|
|
59797
|
-
m && L.ctrlKey &&
|
|
59832
|
+
m && L.ctrlKey && B(L);
|
|
59798
59833
|
break;
|
|
59799
59834
|
}
|
|
59800
59835
|
case "ArrowUp": {
|
|
59801
|
-
|
|
59836
|
+
B(L);
|
|
59802
59837
|
break;
|
|
59803
59838
|
}
|
|
59804
59839
|
case "Home": {
|
|
@@ -59812,10 +59847,10 @@ var qc = '[cmdk-group=""]', Ey = '[cmdk-group-items=""]', _0e = '[cmdk-group-hea
|
|
|
59812
59847
|
case "Enter":
|
|
59813
59848
|
if (!L.nativeEvent.isComposing && L.keyCode !== 229) {
|
|
59814
59849
|
L.preventDefault();
|
|
59815
|
-
let
|
|
59816
|
-
if (
|
|
59850
|
+
let U = $();
|
|
59851
|
+
if (U) {
|
|
59817
59852
|
let G = new Event(nw);
|
|
59818
|
-
|
|
59853
|
+
U.dispatchEvent(G);
|
|
59819
59854
|
}
|
|
59820
59855
|
}
|
|
59821
59856
|
}
|
|
@@ -60210,10 +60245,10 @@ export {
|
|
|
60210
60245
|
vl as a3,
|
|
60211
60246
|
hve as a4,
|
|
60212
60247
|
qg as a5,
|
|
60213
|
-
|
|
60214
|
-
|
|
60215
|
-
|
|
60216
|
-
|
|
60248
|
+
k8 as a6,
|
|
60249
|
+
P8 as a7,
|
|
60250
|
+
Zp as a8,
|
|
60251
|
+
gve as a9,
|
|
60217
60252
|
jge as aA,
|
|
60218
60253
|
Ok as aB,
|
|
60219
60254
|
Yve as aC,
|
|
@@ -60241,23 +60276,23 @@ export {
|
|
|
60241
60276
|
AP as aY,
|
|
60242
60277
|
f5 as aZ,
|
|
60243
60278
|
xw as a_,
|
|
60244
|
-
|
|
60245
|
-
|
|
60246
|
-
|
|
60247
|
-
|
|
60248
|
-
|
|
60249
|
-
|
|
60250
|
-
|
|
60251
|
-
|
|
60252
|
-
|
|
60253
|
-
|
|
60254
|
-
|
|
60255
|
-
|
|
60256
|
-
|
|
60257
|
-
|
|
60258
|
-
|
|
60259
|
-
|
|
60260
|
-
|
|
60279
|
+
qx as aa,
|
|
60280
|
+
SB as ab,
|
|
60281
|
+
pg as ac,
|
|
60282
|
+
rce as ad,
|
|
60283
|
+
Uve as ae,
|
|
60284
|
+
Gve as af,
|
|
60285
|
+
qve as ag,
|
|
60286
|
+
dc as ah,
|
|
60287
|
+
OB as ai,
|
|
60288
|
+
lge as aj,
|
|
60289
|
+
sge as ak,
|
|
60290
|
+
uge as al,
|
|
60291
|
+
dge as am,
|
|
60292
|
+
Obe as an,
|
|
60293
|
+
z8 as ao,
|
|
60294
|
+
rwe as ap,
|
|
60295
|
+
gs as aq,
|
|
60261
60296
|
gP as ar,
|
|
60262
60297
|
JB as as,
|
|
60263
60298
|
owe as at,
|
|
@@ -60268,7 +60303,7 @@ export {
|
|
|
60268
60303
|
PB as ay,
|
|
60269
60304
|
Ed as az,
|
|
60270
60305
|
jr as b,
|
|
60271
|
-
|
|
60306
|
+
v9 as b$,
|
|
60272
60307
|
xA as b0,
|
|
60273
60308
|
qJ as b1,
|
|
60274
60309
|
DB as b2,
|
|
@@ -60279,68 +60314,65 @@ export {
|
|
|
60279
60314
|
kw as b7,
|
|
60280
60315
|
Pw as b8,
|
|
60281
60316
|
nO as b9,
|
|
60282
|
-
|
|
60283
|
-
|
|
60284
|
-
|
|
60285
|
-
|
|
60286
|
-
|
|
60287
|
-
|
|
60288
|
-
|
|
60289
|
-
|
|
60290
|
-
|
|
60291
|
-
|
|
60292
|
-
|
|
60293
|
-
|
|
60294
|
-
|
|
60295
|
-
|
|
60296
|
-
|
|
60297
|
-
|
|
60298
|
-
|
|
60299
|
-
|
|
60300
|
-
|
|
60301
|
-
|
|
60302
|
-
|
|
60303
|
-
|
|
60304
|
-
|
|
60305
|
-
|
|
60306
|
-
|
|
60307
|
-
|
|
60308
|
-
|
|
60309
|
-
|
|
60310
|
-
|
|
60311
|
-
|
|
60312
|
-
|
|
60313
|
-
|
|
60314
|
-
|
|
60315
|
-
|
|
60316
|
-
|
|
60317
|
-
|
|
60318
|
-
|
|
60319
|
-
|
|
60320
|
-
|
|
60321
|
-
|
|
60322
|
-
|
|
60323
|
-
|
|
60324
|
-
|
|
60325
|
-
|
|
60326
|
-
|
|
60327
|
-
|
|
60328
|
-
|
|
60329
|
-
|
|
60330
|
-
|
|
60331
|
-
|
|
60332
|
-
|
|
60333
|
-
|
|
60334
|
-
|
|
60317
|
+
Qae as bA,
|
|
60318
|
+
Cve as bB,
|
|
60319
|
+
z0e as bC,
|
|
60320
|
+
B0e as bD,
|
|
60321
|
+
V0e as bE,
|
|
60322
|
+
H0e as bF,
|
|
60323
|
+
j0e as bG,
|
|
60324
|
+
U0e as bH,
|
|
60325
|
+
WO as bI,
|
|
60326
|
+
swe as bJ,
|
|
60327
|
+
f0e as bK,
|
|
60328
|
+
h0e as bL,
|
|
60329
|
+
bve as bM,
|
|
60330
|
+
p0e as bN,
|
|
60331
|
+
IJ as bO,
|
|
60332
|
+
QO as bP,
|
|
60333
|
+
zbe as bQ,
|
|
60334
|
+
Bbe as bR,
|
|
60335
|
+
Vbe as bS,
|
|
60336
|
+
pme as bT,
|
|
60337
|
+
qye as bU,
|
|
60338
|
+
x9 as bV,
|
|
60339
|
+
Wve as bW,
|
|
60340
|
+
gme as bX,
|
|
60341
|
+
k9 as bY,
|
|
60342
|
+
Lve as bZ,
|
|
60343
|
+
Hve as b_,
|
|
60344
|
+
_9 as ba,
|
|
60345
|
+
vve as bb,
|
|
60346
|
+
XJ as bc,
|
|
60347
|
+
e1 as bd,
|
|
60348
|
+
t1 as be,
|
|
60349
|
+
Wg as bf,
|
|
60350
|
+
Yae as bg,
|
|
60351
|
+
Y0 as bh,
|
|
60352
|
+
tv as bi,
|
|
60353
|
+
Zye as bj,
|
|
60354
|
+
yB as bk,
|
|
60355
|
+
Ap as bl,
|
|
60356
|
+
sl as bm,
|
|
60357
|
+
gB as bn,
|
|
60358
|
+
yh as bo,
|
|
60359
|
+
D1 as bp,
|
|
60360
|
+
ZO as bq,
|
|
60361
|
+
_ve as br,
|
|
60362
|
+
Ih as bs,
|
|
60363
|
+
fC as bt,
|
|
60364
|
+
Nu as bu,
|
|
60365
|
+
Vh as bv,
|
|
60366
|
+
p0 as bw,
|
|
60367
|
+
yP as bx,
|
|
60368
|
+
Vve as by,
|
|
60369
|
+
Ly as bz,
|
|
60335
60370
|
at as c,
|
|
60336
|
-
|
|
60337
|
-
|
|
60338
|
-
|
|
60339
|
-
|
|
60340
|
-
|
|
60341
|
-
fu as c5,
|
|
60342
|
-
fve as c6,
|
|
60343
|
-
hw as c7,
|
|
60371
|
+
Ove as c0,
|
|
60372
|
+
lwe as c1,
|
|
60373
|
+
fu as c2,
|
|
60374
|
+
fve as c3,
|
|
60375
|
+
hw as c4,
|
|
60344
60376
|
twe as d,
|
|
60345
60377
|
nwe as e,
|
|
60346
60378
|
Abe as f,
|