react-semaphor 0.0.375 → 0.0.376
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-B2p-cOUv.js → index-BHFp3m2S.js} +2 -2
- package/dist/chunks/{index-DoLlK9ST.js → index-BOpp3w2L.js} +491 -493
- package/dist/chunks/{index-CuobpRkO.js → index-CrjQ8QqC.js} +2 -2
- package/dist/chunks/{index-DWWu7tnn.js → index-F8s-l6Wu.js} +28 -28
- package/dist/chunks/{lucide-react-U9ZX0O9B.js → lucide-react-BCNS53ze.js} +3 -3
- package/dist/chunks/{lucide-react-BsK5F15T.js → lucide-react-CxAXGpsK.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -81,25 +81,25 @@ function Oq() {
|
|
|
81
81
|
function y(ee) {
|
|
82
82
|
if (ee === null || typeof ee != "object")
|
|
83
83
|
return null;
|
|
84
|
-
var
|
|
85
|
-
return typeof
|
|
84
|
+
var Re = m && ee[m] || ee[b];
|
|
85
|
+
return typeof Re == "function" ? Re : null;
|
|
86
86
|
}
|
|
87
87
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
88
88
|
function w(ee) {
|
|
89
89
|
{
|
|
90
|
-
for (var
|
|
90
|
+
for (var Re = arguments.length, Me = new Array(Re > 1 ? Re - 1 : 0), qe = 1; qe < Re; qe++)
|
|
91
91
|
Me[qe - 1] = arguments[qe];
|
|
92
92
|
_("error", ee, Me);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function _(ee,
|
|
95
|
+
function _(ee, Re, Me) {
|
|
96
96
|
{
|
|
97
97
|
var qe = x.ReactDebugCurrentFrame, jt = qe.getStackAddendum();
|
|
98
|
-
jt !== "" && (
|
|
98
|
+
jt !== "" && (Re += "%s", Me = Me.concat([jt]));
|
|
99
99
|
var Ut = Me.map(function(Rt) {
|
|
100
100
|
return String(Rt);
|
|
101
101
|
});
|
|
102
|
-
Ut.unshift("Warning: " +
|
|
102
|
+
Ut.unshift("Warning: " + Re), Function.prototype.apply.call(console[ee], console, Ut);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
var E = !1, C = !1, R = !1, T = !1, O = !1, D;
|
|
@@ -111,11 +111,11 @@ function Oq() {
|
|
|
111
111
|
// with.
|
|
112
112
|
ee.$$typeof === D || ee.getModuleId !== void 0));
|
|
113
113
|
}
|
|
114
|
-
function L(ee,
|
|
114
|
+
function L(ee, Re, Me) {
|
|
115
115
|
var qe = ee.displayName;
|
|
116
116
|
if (qe)
|
|
117
117
|
return qe;
|
|
118
|
-
var jt =
|
|
118
|
+
var jt = Re.displayName || Re.name || "";
|
|
119
119
|
return jt !== "" ? Me + "(" + jt + ")" : Me;
|
|
120
120
|
}
|
|
121
121
|
function j(ee) {
|
|
@@ -145,8 +145,8 @@ function Oq() {
|
|
|
145
145
|
if (typeof ee == "object")
|
|
146
146
|
switch (ee.$$typeof) {
|
|
147
147
|
case a:
|
|
148
|
-
var
|
|
149
|
-
return j(
|
|
148
|
+
var Re = ee;
|
|
149
|
+
return j(Re) + ".Consumer";
|
|
150
150
|
case s:
|
|
151
151
|
var Me = ee;
|
|
152
152
|
return j(Me._context) + ".Provider";
|
|
@@ -166,14 +166,14 @@ function Oq() {
|
|
|
166
166
|
}
|
|
167
167
|
return null;
|
|
168
168
|
}
|
|
169
|
-
var B = Object.assign, N = 0, U, H, z,
|
|
169
|
+
var B = Object.assign, N = 0, U, H, z, K, M, G, W;
|
|
170
170
|
function A() {
|
|
171
171
|
}
|
|
172
172
|
A.__reactDisabledLog = !0;
|
|
173
173
|
function J() {
|
|
174
174
|
{
|
|
175
175
|
if (N === 0) {
|
|
176
|
-
U = console.log, H = console.info, z = console.warn,
|
|
176
|
+
U = console.log, H = console.info, z = console.warn, K = console.error, M = console.group, G = console.groupCollapsed, W = console.groupEnd;
|
|
177
177
|
var ee = {
|
|
178
178
|
configurable: !0,
|
|
179
179
|
enumerable: !0,
|
|
@@ -212,7 +212,7 @@ function Oq() {
|
|
|
212
212
|
value: z
|
|
213
213
|
}),
|
|
214
214
|
error: B({}, ee, {
|
|
215
|
-
value:
|
|
215
|
+
value: K
|
|
216
216
|
}),
|
|
217
217
|
group: B({}, ee, {
|
|
218
218
|
value: M
|
|
@@ -228,18 +228,18 @@ function Oq() {
|
|
|
228
228
|
N < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
-
var ie = x.ReactCurrentDispatcher,
|
|
232
|
-
function Z(ee,
|
|
231
|
+
var ie = x.ReactCurrentDispatcher, Y;
|
|
232
|
+
function Z(ee, Re, Me) {
|
|
233
233
|
{
|
|
234
|
-
if (
|
|
234
|
+
if (Y === void 0)
|
|
235
235
|
try {
|
|
236
236
|
throw Error();
|
|
237
237
|
} catch (jt) {
|
|
238
238
|
var qe = jt.stack.trim().match(/\n( *(at )?)/);
|
|
239
|
-
|
|
239
|
+
Y = qe && qe[1] || "";
|
|
240
240
|
}
|
|
241
241
|
return `
|
|
242
|
-
` +
|
|
242
|
+
` + Y + ee;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
var oe = !1, ae;
|
|
@@ -247,7 +247,7 @@ function Oq() {
|
|
|
247
247
|
var ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
248
248
|
ae = new ge();
|
|
249
249
|
}
|
|
250
|
-
function ne(ee,
|
|
250
|
+
function ne(ee, Re) {
|
|
251
251
|
if (!ee || oe)
|
|
252
252
|
return "";
|
|
253
253
|
{
|
|
@@ -262,7 +262,7 @@ function Oq() {
|
|
|
262
262
|
var Ut;
|
|
263
263
|
Ut = ie.current, ie.current = null, J();
|
|
264
264
|
try {
|
|
265
|
-
if (
|
|
265
|
+
if (Re) {
|
|
266
266
|
var Rt = function() {
|
|
267
267
|
throw Error();
|
|
268
268
|
};
|
|
@@ -318,14 +318,14 @@ function Oq() {
|
|
|
318
318
|
var Lt = ee ? ee.displayName || ee.name : "", xn = Lt ? Z(Lt) : "";
|
|
319
319
|
return typeof ee == "function" && ae.set(ee, xn), xn;
|
|
320
320
|
}
|
|
321
|
-
function he(ee,
|
|
321
|
+
function he(ee, Re, Me) {
|
|
322
322
|
return ne(ee, !1);
|
|
323
323
|
}
|
|
324
324
|
function fe(ee) {
|
|
325
|
-
var
|
|
326
|
-
return !!(
|
|
325
|
+
var Re = ee.prototype;
|
|
326
|
+
return !!(Re && Re.isReactComponent);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ee(ee, Re, Me) {
|
|
329
329
|
if (ee == null)
|
|
330
330
|
return "";
|
|
331
331
|
if (typeof ee == "function")
|
|
@@ -343,11 +343,11 @@ function Oq() {
|
|
|
343
343
|
case l:
|
|
344
344
|
return he(ee.render);
|
|
345
345
|
case d:
|
|
346
|
-
return
|
|
346
|
+
return Ee(ee.type, Re, Me);
|
|
347
347
|
case p: {
|
|
348
348
|
var qe = ee, jt = qe._payload, Ut = qe._init;
|
|
349
349
|
try {
|
|
350
|
-
return
|
|
350
|
+
return Ee(Ut(jt), Re, Me);
|
|
351
351
|
} catch {
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -357,12 +357,12 @@ function Oq() {
|
|
|
357
357
|
var Oe = Object.prototype.hasOwnProperty, $e = {}, ke = x.ReactDebugCurrentFrame;
|
|
358
358
|
function We(ee) {
|
|
359
359
|
if (ee) {
|
|
360
|
-
var
|
|
360
|
+
var Re = ee._owner, Me = Ee(ee.type, ee._source, Re ? Re.type : null);
|
|
361
361
|
ke.setExtraStackFrame(Me);
|
|
362
362
|
} else
|
|
363
363
|
ke.setExtraStackFrame(null);
|
|
364
364
|
}
|
|
365
|
-
function pt(ee,
|
|
365
|
+
function pt(ee, Re, Me, qe, jt) {
|
|
366
366
|
{
|
|
367
367
|
var Ut = Function.call.bind(Oe);
|
|
368
368
|
for (var Rt in ee)
|
|
@@ -373,7 +373,7 @@ function Oq() {
|
|
|
373
373
|
var Fe = Error((qe || "React class") + ": " + Me + " type `" + Rt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof ee[Rt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
374
374
|
throw Fe.name = "Invariant Violation", Fe;
|
|
375
375
|
}
|
|
376
|
-
xt = ee[Rt](
|
|
376
|
+
xt = ee[Rt](Re, Rt, qe, Me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
377
377
|
} catch (te) {
|
|
378
378
|
xt = te;
|
|
379
379
|
}
|
|
@@ -387,7 +387,7 @@ function Oq() {
|
|
|
387
387
|
}
|
|
388
388
|
function vt(ee) {
|
|
389
389
|
{
|
|
390
|
-
var
|
|
390
|
+
var Re = typeof Symbol == "function" && Symbol.toStringTag, Me = Re && ee[Symbol.toStringTag] || ee.constructor.name || "Object";
|
|
391
391
|
return Me;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
@@ -413,27 +413,27 @@ function Oq() {
|
|
|
413
413
|
}, Ke, ut;
|
|
414
414
|
function $n(ee) {
|
|
415
415
|
if (Oe.call(ee, "ref")) {
|
|
416
|
-
var
|
|
417
|
-
if (
|
|
416
|
+
var Re = Object.getOwnPropertyDescriptor(ee, "ref").get;
|
|
417
|
+
if (Re && Re.isReactWarning)
|
|
418
418
|
return !1;
|
|
419
419
|
}
|
|
420
420
|
return ee.ref !== void 0;
|
|
421
421
|
}
|
|
422
422
|
function Un(ee) {
|
|
423
423
|
if (Oe.call(ee, "key")) {
|
|
424
|
-
var
|
|
425
|
-
if (
|
|
424
|
+
var Re = Object.getOwnPropertyDescriptor(ee, "key").get;
|
|
425
|
+
if (Re && Re.isReactWarning)
|
|
426
426
|
return !1;
|
|
427
427
|
}
|
|
428
428
|
return ee.key !== void 0;
|
|
429
429
|
}
|
|
430
|
-
function In(ee,
|
|
430
|
+
function In(ee, Re) {
|
|
431
431
|
typeof ee.ref == "string" && _e.current;
|
|
432
432
|
}
|
|
433
|
-
function hn(ee,
|
|
433
|
+
function hn(ee, Re) {
|
|
434
434
|
{
|
|
435
435
|
var Me = function() {
|
|
436
|
-
Ke || (Ke = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
436
|
+
Ke || (Ke = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Re));
|
|
437
437
|
};
|
|
438
438
|
Me.isReactWarning = !0, Object.defineProperty(ee, "key", {
|
|
439
439
|
get: Me,
|
|
@@ -441,10 +441,10 @@ function Oq() {
|
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function Gn(ee,
|
|
444
|
+
function Gn(ee, Re) {
|
|
445
445
|
{
|
|
446
446
|
var Me = function() {
|
|
447
|
-
ut || (ut = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
447
|
+
ut || (ut = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Re));
|
|
448
448
|
};
|
|
449
449
|
Me.isReactWarning = !0, Object.defineProperty(ee, "ref", {
|
|
450
450
|
get: Me,
|
|
@@ -452,13 +452,13 @@ function Oq() {
|
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
var ln = function(ee,
|
|
455
|
+
var ln = function(ee, Re, Me, qe, jt, Ut, Rt) {
|
|
456
456
|
var xt = {
|
|
457
457
|
// This tag allows us to uniquely identify this as a React Element
|
|
458
458
|
$$typeof: t,
|
|
459
459
|
// Built-in properties that belong on the element
|
|
460
460
|
type: ee,
|
|
461
|
-
key:
|
|
461
|
+
key: Re,
|
|
462
462
|
ref: Me,
|
|
463
463
|
props: Rt,
|
|
464
464
|
// Record the component responsible for creating this element.
|
|
@@ -481,12 +481,12 @@ function Oq() {
|
|
|
481
481
|
value: jt
|
|
482
482
|
}), Object.freeze && (Object.freeze(xt.props), Object.freeze(xt)), xt;
|
|
483
483
|
};
|
|
484
|
-
function dr(ee,
|
|
484
|
+
function dr(ee, Re, Me, qe, jt) {
|
|
485
485
|
{
|
|
486
486
|
var Ut, Rt = {}, xt = null, Fe = null;
|
|
487
|
-
Me !== void 0 && (de(Me), xt = "" + Me), Un(
|
|
488
|
-
for (Ut in
|
|
489
|
-
Oe.call(
|
|
487
|
+
Me !== void 0 && (de(Me), xt = "" + Me), Un(Re) && (de(Re.key), xt = "" + Re.key), $n(Re) && (Fe = Re.ref, In(Re, jt));
|
|
488
|
+
for (Ut in Re)
|
|
489
|
+
Oe.call(Re, Ut) && !Ue.hasOwnProperty(Ut) && (Rt[Ut] = Re[Ut]);
|
|
490
490
|
if (ee && ee.defaultProps) {
|
|
491
491
|
var te = ee.defaultProps;
|
|
492
492
|
for (Ut in te)
|
|
@@ -502,7 +502,7 @@ function Oq() {
|
|
|
502
502
|
var ir = x.ReactCurrentOwner, Ji = x.ReactDebugCurrentFrame;
|
|
503
503
|
function Tr(ee) {
|
|
504
504
|
if (ee) {
|
|
505
|
-
var
|
|
505
|
+
var Re = ee._owner, Me = Ee(ee.type, ee._source, Re ? Re.type : null);
|
|
506
506
|
Ji.setExtraStackFrame(Me);
|
|
507
507
|
} else
|
|
508
508
|
Ji.setExtraStackFrame(null);
|
|
@@ -530,22 +530,22 @@ Check the render method of \`` + ee + "`.";
|
|
|
530
530
|
var ze = {};
|
|
531
531
|
function Et(ee) {
|
|
532
532
|
{
|
|
533
|
-
var
|
|
534
|
-
if (!
|
|
533
|
+
var Re = Wr();
|
|
534
|
+
if (!Re) {
|
|
535
535
|
var Me = typeof ee == "string" ? ee : ee.displayName || ee.name;
|
|
536
|
-
Me && (
|
|
536
|
+
Me && (Re = `
|
|
537
537
|
|
|
538
538
|
Check the top-level render call using <` + Me + ">.");
|
|
539
539
|
}
|
|
540
|
-
return
|
|
540
|
+
return Re;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function Kt(ee,
|
|
543
|
+
function Kt(ee, Re) {
|
|
544
544
|
{
|
|
545
545
|
if (!ee._store || ee._store.validated || ee.key != null)
|
|
546
546
|
return;
|
|
547
547
|
ee._store.validated = !0;
|
|
548
|
-
var Me = Et(
|
|
548
|
+
var Me = Et(Re);
|
|
549
549
|
if (ze[Me])
|
|
550
550
|
return;
|
|
551
551
|
ze[Me] = !0;
|
|
@@ -553,14 +553,14 @@ Check the top-level render call using <` + Me + ">.");
|
|
|
553
553
|
ee && ee._owner && ee._owner !== ir.current && (qe = " It was passed a child from " + X(ee._owner.type) + "."), Tr(ee), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Me, qe), Tr(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function or(ee,
|
|
556
|
+
function or(ee, Re) {
|
|
557
557
|
{
|
|
558
558
|
if (typeof ee != "object")
|
|
559
559
|
return;
|
|
560
560
|
if (fn(ee))
|
|
561
561
|
for (var Me = 0; Me < ee.length; Me++) {
|
|
562
562
|
var qe = ee[Me];
|
|
563
|
-
kr(qe) && Kt(qe,
|
|
563
|
+
kr(qe) && Kt(qe, Re);
|
|
564
564
|
}
|
|
565
565
|
else if (kr(ee))
|
|
566
566
|
ee._store && (ee._store.validated = !0);
|
|
@@ -568,39 +568,39 @@ Check the top-level render call using <` + Me + ">.");
|
|
|
568
568
|
var jt = y(ee);
|
|
569
569
|
if (typeof jt == "function" && jt !== ee.entries)
|
|
570
570
|
for (var Ut = jt.call(ee), Rt; !(Rt = Ut.next()).done; )
|
|
571
|
-
kr(Rt.value) && Kt(Rt.value,
|
|
571
|
+
kr(Rt.value) && Kt(Rt.value, Re);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function sr(ee) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
if (
|
|
577
|
+
var Re = ee.type;
|
|
578
|
+
if (Re == null || typeof Re == "string")
|
|
579
579
|
return;
|
|
580
580
|
var Me;
|
|
581
|
-
if (typeof
|
|
582
|
-
Me =
|
|
583
|
-
else if (typeof
|
|
581
|
+
if (typeof Re == "function")
|
|
582
|
+
Me = Re.propTypes;
|
|
583
|
+
else if (typeof Re == "object" && (Re.$$typeof === l || // Note: Memo only checks outer props here.
|
|
584
584
|
// Inner props are checked in the reconciler.
|
|
585
|
-
|
|
586
|
-
Me =
|
|
585
|
+
Re.$$typeof === d))
|
|
586
|
+
Me = Re.propTypes;
|
|
587
587
|
else
|
|
588
588
|
return;
|
|
589
589
|
if (Me) {
|
|
590
|
-
var qe = X(
|
|
590
|
+
var qe = X(Re);
|
|
591
591
|
pt(Me, ee.props, "prop", qe, ee);
|
|
592
|
-
} else if (
|
|
592
|
+
} else if (Re.PropTypes !== void 0 && !qo) {
|
|
593
593
|
qo = !0;
|
|
594
|
-
var jt = X(
|
|
594
|
+
var jt = X(Re);
|
|
595
595
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", jt || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof
|
|
597
|
+
typeof Re.getDefaultProps == "function" && !Re.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Ur(ee) {
|
|
601
601
|
{
|
|
602
|
-
for (var
|
|
603
|
-
var qe =
|
|
602
|
+
for (var Re = Object.keys(ee.props), Me = 0; Me < Re.length; Me++) {
|
|
603
|
+
var qe = Re[Me];
|
|
604
604
|
if (qe !== "children" && qe !== "key") {
|
|
605
605
|
Tr(ee), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", qe), Tr(null);
|
|
606
606
|
break;
|
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + Me + ">.");
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
var vr = {};
|
|
613
|
-
function fr(ee,
|
|
613
|
+
function fr(ee, Re, Me, qe, jt, Ut) {
|
|
614
614
|
{
|
|
615
615
|
var Rt = F(ee);
|
|
616
616
|
if (!Rt) {
|
|
@@ -621,11 +621,11 @@ Check the top-level render call using <` + Me + ">.");
|
|
|
621
621
|
var te;
|
|
622
622
|
ee === null ? te = "null" : fn(ee) ? te = "array" : ee !== void 0 && ee.$$typeof === t ? (te = "<" + (X(ee.type) || "Unknown") + " />", xt = " Did you accidentally export a JSX literal instead of a component?") : te = typeof ee, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, xt);
|
|
623
623
|
}
|
|
624
|
-
var Se = dr(ee,
|
|
624
|
+
var Se = dr(ee, Re, Me, jt, Ut);
|
|
625
625
|
if (Se == null)
|
|
626
626
|
return Se;
|
|
627
627
|
if (Rt) {
|
|
628
|
-
var De =
|
|
628
|
+
var De = Re.children;
|
|
629
629
|
if (De !== void 0)
|
|
630
630
|
if (qe)
|
|
631
631
|
if (fn(De)) {
|
|
@@ -637,8 +637,8 @@ Check the top-level render call using <` + Me + ">.");
|
|
|
637
637
|
else
|
|
638
638
|
or(De, ee);
|
|
639
639
|
}
|
|
640
|
-
if (Oe.call(
|
|
641
|
-
var xn = X(ee), Mt = Object.keys(
|
|
640
|
+
if (Oe.call(Re, "key")) {
|
|
641
|
+
var xn = X(ee), Mt = Object.keys(Re).filter(function(ks) {
|
|
642
642
|
return ks !== "key";
|
|
643
643
|
}), Qn = Mt.length > 0 ? "{key: someKey, " + Mt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
644
644
|
if (!vr[xn + Qn]) {
|
|
@@ -654,11 +654,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
654
654
|
return ee === r ? Ur(Se) : sr(Se), Se;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function En(ee,
|
|
658
|
-
return fr(ee,
|
|
657
|
+
function En(ee, Re, Me) {
|
|
658
|
+
return fr(ee, Re, Me, !0);
|
|
659
659
|
}
|
|
660
|
-
function pa(ee,
|
|
661
|
-
return fr(ee,
|
|
660
|
+
function pa(ee, Re, Me) {
|
|
661
|
+
return fr(ee, Re, Me, !1);
|
|
662
662
|
}
|
|
663
663
|
var Kc = pa, Xc = En;
|
|
664
664
|
bf.Fragment = r, bf.jsx = Kc, bf.jsxs = Xc;
|
|
@@ -912,7 +912,7 @@ const Pn = (e) => {
|
|
|
912
912
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
913
913
|
Kq.test(e) && !Xq.test(e)
|
|
914
914
|
), ZD = () => !1, aY = (e) => Qq.test(e), lY = (e) => Zq.test(e), cY = () => {
|
|
915
|
-
const e = Pn("colors"), t = Pn("spacing"), n = Pn("blur"), r = Pn("brightness"), i = Pn("borderColor"), o = Pn("borderRadius"), s = Pn("borderSpacing"), a = Pn("borderWidth"), l = Pn("contrast"), c = Pn("grayscale"), u = Pn("hueRotate"), d = Pn("invert"), p = Pn("gap"), h = Pn("gradientColorStops"), m = Pn("gradientColorStopPositions"), b = Pn("inset"), y = Pn("margin"), x = Pn("opacity"), w = Pn("padding"), _ = Pn("saturate"), E = Pn("scale"), C = Pn("sepia"), R = Pn("skew"), T = Pn("space"), O = Pn("translate"), D = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", mt, t], j = () => [mt, t], X = () => ["", $s, Ca], B = () => ["auto", Nu, mt], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"],
|
|
915
|
+
const e = Pn("colors"), t = Pn("spacing"), n = Pn("blur"), r = Pn("brightness"), i = Pn("borderColor"), o = Pn("borderRadius"), s = Pn("borderSpacing"), a = Pn("borderWidth"), l = Pn("contrast"), c = Pn("grayscale"), u = Pn("hueRotate"), d = Pn("invert"), p = Pn("gap"), h = Pn("gradientColorStops"), m = Pn("gradientColorStopPositions"), b = Pn("inset"), y = Pn("margin"), x = Pn("opacity"), w = Pn("padding"), _ = Pn("saturate"), E = Pn("scale"), C = Pn("sepia"), R = Pn("skew"), T = Pn("space"), O = Pn("translate"), D = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", mt, t], j = () => [mt, t], X = () => ["", $s, Ca], B = () => ["auto", Nu, mt], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], K = () => ["", "0", mt], M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Nu, mt];
|
|
916
916
|
return {
|
|
917
917
|
cacheSize: 500,
|
|
918
918
|
separator: ":",
|
|
@@ -926,9 +926,9 @@ const Pn = (e) => {
|
|
|
926
926
|
borderSpacing: j(),
|
|
927
927
|
borderWidth: X(),
|
|
928
928
|
contrast: G(),
|
|
929
|
-
grayscale:
|
|
929
|
+
grayscale: K(),
|
|
930
930
|
hueRotate: G(),
|
|
931
|
-
invert:
|
|
931
|
+
invert: K(),
|
|
932
932
|
gap: j(),
|
|
933
933
|
gradientColorStops: [e],
|
|
934
934
|
gradientColorStopPositions: [Jq, Ca],
|
|
@@ -938,7 +938,7 @@ const Pn = (e) => {
|
|
|
938
938
|
padding: j(),
|
|
939
939
|
saturate: G(),
|
|
940
940
|
scale: G(),
|
|
941
|
-
sepia:
|
|
941
|
+
sepia: K(),
|
|
942
942
|
skew: G(),
|
|
943
943
|
space: j(),
|
|
944
944
|
translate: j()
|
|
@@ -1193,14 +1193,14 @@ const Pn = (e) => {
|
|
|
1193
1193
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1194
1194
|
*/
|
|
1195
1195
|
grow: [{
|
|
1196
|
-
grow:
|
|
1196
|
+
grow: K()
|
|
1197
1197
|
}],
|
|
1198
1198
|
/**
|
|
1199
1199
|
* Flex Shrink
|
|
1200
1200
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1201
1201
|
*/
|
|
1202
1202
|
shrink: [{
|
|
1203
|
-
shrink:
|
|
1203
|
+
shrink: K()
|
|
1204
1204
|
}],
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Order
|
|
@@ -4742,7 +4742,7 @@ var vb = { exports: {} };
|
|
|
4742
4742
|
vb.exports;
|
|
4743
4743
|
(function(e, t) {
|
|
4744
4744
|
(function() {
|
|
4745
|
-
var n, r = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", d = 1, p = 2, h = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, R = 64, T = 128, O = 256, D = 512, F = 30, L = "...", j = 800, X = 16, B = 1, N = 2, U = 3, H = 1 / 0, z = 9007199254740991,
|
|
4745
|
+
var n, r = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, u = "__lodash_placeholder__", d = 1, p = 2, h = 4, m = 1, b = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, C = 32, R = 64, T = 128, O = 256, D = 512, F = 30, L = "...", j = 800, X = 16, B = 1, N = 2, U = 3, H = 1 / 0, z = 9007199254740991, K = 17976931348623157e292, M = NaN, G = 4294967295, W = G - 1, A = G >>> 1, J = [
|
|
4746
4746
|
["ary", T],
|
|
4747
4747
|
["bind", y],
|
|
4748
4748
|
["bindKey", x],
|
|
@@ -4752,7 +4752,7 @@ vb.exports;
|
|
|
4752
4752
|
["partial", C],
|
|
4753
4753
|
["partialRight", R],
|
|
4754
4754
|
["rearg", O]
|
|
4755
|
-
], q = "[object Arguments]", ie = "[object Array]",
|
|
4755
|
+
], q = "[object Arguments]", ie = "[object Array]", Y = "[object AsyncFunction]", Z = "[object Boolean]", oe = "[object Date]", ae = "[object DOMException]", ge = "[object Error]", ne = "[object Function]", he = "[object GeneratorFunction]", fe = "[object Map]", Ee = "[object Number]", Oe = "[object Null]", $e = "[object Object]", ke = "[object Promise]", We = "[object Proxy]", pt = "[object RegExp]", Tt = "[object Set]", fn = "[object String]", vt = "[object Symbol]", Yt = "[object Undefined]", Ht = "[object WeakMap]", de = "[object WeakSet]", _e = "[object ArrayBuffer]", Ue = "[object DataView]", Ke = "[object Float32Array]", ut = "[object Float64Array]", $n = "[object Int8Array]", Un = "[object Int16Array]", In = "[object Int32Array]", hn = "[object Uint8Array]", Gn = "[object Uint8ClampedArray]", ln = "[object Uint16Array]", dr = "[object Uint32Array]", ir = /\b__p \+= '';/g, Ji = /\b(__p \+=) '' \+/g, Tr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, qo = /&(?:amp|lt|gt|quot|#39);/g, kr = /[&<>"']/g, Wr = RegExp(qo.source), yl = RegExp(kr.source), ze = /<%-([\s\S]+?)%>/g, Et = /<%([\s\S]+?)%>/g, Kt = /<%=([\s\S]+?)%>/g, or = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, sr = /^\w*$/, Ur = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, vr = /[\\^$.*+?()[\]{}|]/g, fr = RegExp(vr.source), En = /^\s+/, pa = /\s/, Kc = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Xc = /\{\n\/\* \[wrapped with (.+)\] \*/, ee = /,? & /, Re = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Me = /[()=,{}\[\]\/\s]/, qe = /\\(\\)?/g, jt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Ut = /\w*$/, Rt = /^[-+]0x[0-9a-f]+$/i, xt = /^0b[01]+$/i, Fe = /^\[object .+?Constructor\]$/, te = /^0o[0-7]+$/i, Se = /^(?:0|[1-9]\d*)$/, De = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Lt = /($^)/, xn = /['\n\r\u2028\u2029\\]/g, Mt = "\\ud800-\\udfff", Qn = "\\u0300-\\u036f", ai = "\\ufe20-\\ufe2f", ks = "\\u20d0-\\u20ff", hr = Qn + ai + ks, Zd = "\\u2700-\\u27bf", Jd = "a-z\\xdf-\\xf6\\xf8-\\xff", yz = "\\xac\\xb1\\xd7\\xf7", vz = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", xz = "\\u2000-\\u206f", wz = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", m2 = "A-Z\\xc0-\\xd6\\xd8-\\xde", b2 = "\\ufe0e\\ufe0f", y2 = yz + vz + xz + wz, K0 = "['’]", Sz = "[" + Mt + "]", v2 = "[" + y2 + "]", Kp = "[" + hr + "]", x2 = "\\d+", _z = "[" + Zd + "]", w2 = "[" + Jd + "]", S2 = "[^" + Mt + y2 + x2 + Zd + Jd + m2 + "]", X0 = "\\ud83c[\\udffb-\\udfff]", Cz = "(?:" + Kp + "|" + X0 + ")", _2 = "[^" + Mt + "]", Q0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", Z0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", Qc = "[" + m2 + "]", C2 = "\\u200d", E2 = "(?:" + w2 + "|" + S2 + ")", Ez = "(?:" + Qc + "|" + S2 + ")", R2 = "(?:" + K0 + "(?:d|ll|m|re|s|t|ve))?", P2 = "(?:" + K0 + "(?:D|LL|M|RE|S|T|VE))?", T2 = Cz + "?", k2 = "[" + b2 + "]?", Rz = "(?:" + C2 + "(?:" + [_2, Q0, Z0].join("|") + ")" + k2 + T2 + ")*", Pz = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Tz = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", A2 = k2 + T2 + Rz, kz = "(?:" + [_z, Q0, Z0].join("|") + ")" + A2, Az = "(?:" + [_2 + Kp + "?", Kp, Q0, Z0, Sz].join("|") + ")", Oz = RegExp(K0, "g"), Mz = RegExp(Kp, "g"), J0 = RegExp(X0 + "(?=" + X0 + ")|" + Az + A2, "g"), Iz = RegExp([
|
|
4756
4756
|
Qc + "?" + w2 + "+" + R2 + "(?=" + [v2, Qc, "$"].join("|") + ")",
|
|
4757
4757
|
Ez + "+" + P2 + "(?=" + [v2, Qc + E2, "$"].join("|") + ")",
|
|
4758
4758
|
Qc + "?" + E2 + "+" + R2,
|
|
@@ -4793,9 +4793,9 @@ vb.exports;
|
|
|
4793
4793
|
"parseInt",
|
|
4794
4794
|
"setTimeout"
|
|
4795
4795
|
], Fz = -1, Rn = {};
|
|
4796
|
-
Rn[Ke] = Rn[ut] = Rn[$n] = Rn[Un] = Rn[In] = Rn[hn] = Rn[Gn] = Rn[ln] = Rn[dr] = !0, Rn[q] = Rn[ie] = Rn[_e] = Rn[Z] = Rn[Ue] = Rn[oe] = Rn[ge] = Rn[ne] = Rn[fe] = Rn[
|
|
4796
|
+
Rn[Ke] = Rn[ut] = Rn[$n] = Rn[Un] = Rn[In] = Rn[hn] = Rn[Gn] = Rn[ln] = Rn[dr] = !0, Rn[q] = Rn[ie] = Rn[_e] = Rn[Z] = Rn[Ue] = Rn[oe] = Rn[ge] = Rn[ne] = Rn[fe] = Rn[Ee] = Rn[$e] = Rn[pt] = Rn[Tt] = Rn[fn] = Rn[Ht] = !1;
|
|
4797
4797
|
var wn = {};
|
|
4798
|
-
wn[q] = wn[ie] = wn[_e] = wn[Ue] = wn[Z] = wn[oe] = wn[Ke] = wn[ut] = wn[$n] = wn[Un] = wn[In] = wn[fe] = wn[
|
|
4798
|
+
wn[q] = wn[ie] = wn[_e] = wn[Ue] = wn[Z] = wn[oe] = wn[Ke] = wn[ut] = wn[$n] = wn[Un] = wn[In] = wn[fe] = wn[Ee] = wn[$e] = wn[pt] = wn[Tt] = wn[fn] = wn[vt] = wn[hn] = wn[Gn] = wn[ln] = wn[dr] = !0, wn[ge] = wn[ne] = wn[Ht] = !1;
|
|
4799
4799
|
var jz = {
|
|
4800
4800
|
// Latin-1 Supplement block.
|
|
4801
4801
|
À: "A",
|
|
@@ -5101,7 +5101,7 @@ vb.exports;
|
|
|
5101
5101
|
return le.split("");
|
|
5102
5102
|
}
|
|
5103
5103
|
function Xz(le) {
|
|
5104
|
-
return le.match(
|
|
5104
|
+
return le.match(Re) || [];
|
|
5105
5105
|
}
|
|
5106
5106
|
function z2(le, me, pe) {
|
|
5107
5107
|
var Be;
|
|
@@ -6592,7 +6592,7 @@ vb.exports;
|
|
|
6592
6592
|
return !(f.byteLength != g.byteLength || !V(new ig(f), new ig(g)));
|
|
6593
6593
|
case Z:
|
|
6594
6594
|
case oe:
|
|
6595
|
-
case
|
|
6595
|
+
case Ee:
|
|
6596
6596
|
return Ro(+f, +g);
|
|
6597
6597
|
case ge:
|
|
6598
6598
|
return f.name == g.name && f.message == g.message;
|
|
@@ -6790,7 +6790,7 @@ vb.exports;
|
|
|
6790
6790
|
return AP(f, S);
|
|
6791
6791
|
case fe:
|
|
6792
6792
|
return new k();
|
|
6793
|
-
case
|
|
6793
|
+
case Ee:
|
|
6794
6794
|
case fn:
|
|
6795
6795
|
return new k(f);
|
|
6796
6796
|
case pt:
|
|
@@ -7665,7 +7665,7 @@ vb.exports;
|
|
|
7665
7665
|
if (!Ln(f))
|
|
7666
7666
|
return !1;
|
|
7667
7667
|
var g = Gr(f);
|
|
7668
|
-
return g == ne || g == he || g ==
|
|
7668
|
+
return g == ne || g == he || g == Y || g == We;
|
|
7669
7669
|
}
|
|
7670
7670
|
function xT(f) {
|
|
7671
7671
|
return typeof f == "number" && f == gt(f);
|
|
@@ -7702,7 +7702,7 @@ vb.exports;
|
|
|
7702
7702
|
return f == null;
|
|
7703
7703
|
}
|
|
7704
7704
|
function ST(f) {
|
|
7705
|
-
return typeof f == "number" || zn(f) && Gr(f) ==
|
|
7705
|
+
return typeof f == "number" || zn(f) && Gr(f) == Ee;
|
|
7706
7706
|
}
|
|
7707
7707
|
function gf(f) {
|
|
7708
7708
|
if (!zn(f) || Gr(f) != $e)
|
|
@@ -7752,7 +7752,7 @@ vb.exports;
|
|
|
7752
7752
|
return f === 0 ? f : 0;
|
|
7753
7753
|
if (f = ao(f), f === H || f === -1 / 0) {
|
|
7754
7754
|
var g = f < 0 ? -1 : 1;
|
|
7755
|
-
return g *
|
|
7755
|
+
return g * K;
|
|
7756
7756
|
}
|
|
7757
7757
|
return f === f ? f : 0;
|
|
7758
7758
|
}
|
|
@@ -11223,8 +11223,8 @@ function $K({
|
|
|
11223
11223
|
const N = Ct(() => {
|
|
11224
11224
|
const U = Lu.cloneDeep(bb), H = Lu.merge(U, x);
|
|
11225
11225
|
if (e) {
|
|
11226
|
-
const z = Lu.merge(H, e),
|
|
11227
|
-
j(
|
|
11226
|
+
const z = Lu.merge(H, e), K = gk(b, z);
|
|
11227
|
+
j(K), C(z);
|
|
11228
11228
|
} else {
|
|
11229
11229
|
const z = gk(b, H);
|
|
11230
11230
|
j(z), C(bb);
|
|
@@ -11235,10 +11235,10 @@ function $K({
|
|
|
11235
11235
|
}, [b, e, x, N, c]), Ve(() => {
|
|
11236
11236
|
var W, A;
|
|
11237
11237
|
function U(J, q) {
|
|
11238
|
-
const ie = J.filters || [],
|
|
11238
|
+
const ie = J.filters || [], Y = [];
|
|
11239
11239
|
for (const Z of q) {
|
|
11240
11240
|
const oe = ie.find((ae) => ae.id === Z.filterId);
|
|
11241
|
-
oe &&
|
|
11241
|
+
oe && Y.push({
|
|
11242
11242
|
filterId: Z.filterId,
|
|
11243
11243
|
connectionType: oe.database === "NA" ? "api" : "database",
|
|
11244
11244
|
name: oe.column,
|
|
@@ -11247,19 +11247,19 @@ function $K({
|
|
|
11247
11247
|
values: Z.values
|
|
11248
11248
|
});
|
|
11249
11249
|
}
|
|
11250
|
-
return
|
|
11250
|
+
return Y;
|
|
11251
11251
|
}
|
|
11252
11252
|
if (!c || !c.dashboard) return;
|
|
11253
11253
|
const {
|
|
11254
11254
|
dashboard: H,
|
|
11255
11255
|
filterValues: z,
|
|
11256
|
-
defaultLensId:
|
|
11256
|
+
defaultLensId: K,
|
|
11257
11257
|
lenses: M
|
|
11258
11258
|
} = c, G = U(H, h || []);
|
|
11259
11259
|
_(
|
|
11260
11260
|
H,
|
|
11261
11261
|
(!z || (z == null ? void 0 : z.length) === 0 ? G : z) || []
|
|
11262
|
-
),
|
|
11262
|
+
), K && O(K), M && T(M), E(o || ((A = (W = H == null ? void 0 : H.sheets) == null ? void 0 : W[0]) == null ? void 0 : A.id) || null);
|
|
11263
11263
|
}, [
|
|
11264
11264
|
c,
|
|
11265
11265
|
w,
|
|
@@ -12062,7 +12062,7 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12062
12062
|
r(t);
|
|
12063
12063
|
})(Na, function(n) {
|
|
12064
12064
|
function r(Z) {
|
|
12065
|
-
return function(ae, ge, ne, he, fe,
|
|
12065
|
+
return function(ae, ge, ne, he, fe, Ee, Oe) {
|
|
12066
12066
|
return Z(ae, ge, Oe);
|
|
12067
12067
|
};
|
|
12068
12068
|
}
|
|
@@ -12070,9 +12070,9 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12070
12070
|
return function(ae, ge, ne, he) {
|
|
12071
12071
|
if (!ae || !ge || typeof ae != "object" || typeof ge != "object")
|
|
12072
12072
|
return Z(ae, ge, ne, he);
|
|
12073
|
-
var fe = he.get(ae),
|
|
12074
|
-
if (fe &&
|
|
12075
|
-
return fe === ge &&
|
|
12073
|
+
var fe = he.get(ae), Ee = he.get(ge);
|
|
12074
|
+
if (fe && Ee)
|
|
12075
|
+
return fe === ge && Ee === ae;
|
|
12076
12076
|
he.set(ae, ge), he.set(ge, ae);
|
|
12077
12077
|
var Oe = Z(ae, ge, ne, he);
|
|
12078
12078
|
return he.delete(ae), he.delete(ge), Oe;
|
|
@@ -12097,7 +12097,7 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12097
12097
|
}
|
|
12098
12098
|
var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", p = "[object RegExp]", h = "[object Map]", m = "[object Number]", b = "[object Object]", y = "[object Set]", x = "[object String]", w = Object.prototype.toString;
|
|
12099
12099
|
function _(Z) {
|
|
12100
|
-
var oe = Z.areArraysEqual, ae = Z.areDatesEqual, ge = Z.areMapsEqual, ne = Z.areObjectsEqual, he = Z.areRegExpsEqual, fe = Z.areSetsEqual,
|
|
12100
|
+
var oe = Z.areArraysEqual, ae = Z.areDatesEqual, ge = Z.areMapsEqual, ne = Z.areObjectsEqual, he = Z.areRegExpsEqual, fe = Z.areSetsEqual, Ee = Z.createIsNestedEqual, Oe = Ee($e);
|
|
12101
12101
|
function $e(ke, We, pt) {
|
|
12102
12102
|
if (ke === We)
|
|
12103
12103
|
return !0;
|
|
@@ -12133,11 +12133,11 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12133
12133
|
if (!Z.size)
|
|
12134
12134
|
return !0;
|
|
12135
12135
|
var he = {}, fe = 0;
|
|
12136
|
-
return Z.forEach(function(
|
|
12136
|
+
return Z.forEach(function(Ee, Oe) {
|
|
12137
12137
|
if (ne) {
|
|
12138
12138
|
var $e = !1, ke = 0;
|
|
12139
12139
|
oe.forEach(function(We, pt) {
|
|
12140
|
-
!$e && !he[ke] && ($e = ae(Oe, pt, fe, ke, Z, oe, ge) && ae(
|
|
12140
|
+
!$e && !he[ke] && ($e = ae(Oe, pt, fe, ke, Z, oe, ge) && ae(Ee, We, Oe, pt, Z, oe, ge)) && (he[ke] = !0), ke++;
|
|
12141
12141
|
}), fe++, ne = $e;
|
|
12142
12142
|
}
|
|
12143
12143
|
}), ne;
|
|
@@ -12149,8 +12149,8 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12149
12149
|
return !1;
|
|
12150
12150
|
for (var fe; he-- > 0; ) {
|
|
12151
12151
|
if (fe = ne[he], fe === D) {
|
|
12152
|
-
var
|
|
12153
|
-
if ((
|
|
12152
|
+
var Ee = !!Z.$$typeof, Oe = !!oe.$$typeof;
|
|
12153
|
+
if ((Ee || Oe) && Ee !== Oe)
|
|
12154
12154
|
return !1;
|
|
12155
12155
|
}
|
|
12156
12156
|
if (!F.call(oe, fe) || !ae(Z[fe], oe[fe], fe, fe, Z, oe, ge))
|
|
@@ -12169,11 +12169,11 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12169
12169
|
if (!Z.size)
|
|
12170
12170
|
return !0;
|
|
12171
12171
|
var he = {};
|
|
12172
|
-
return Z.forEach(function(fe,
|
|
12172
|
+
return Z.forEach(function(fe, Ee) {
|
|
12173
12173
|
if (ne) {
|
|
12174
12174
|
var Oe = !1, $e = 0;
|
|
12175
12175
|
oe.forEach(function(ke, We) {
|
|
12176
|
-
!Oe && !he[$e] && (Oe = ae(fe, ke,
|
|
12176
|
+
!Oe && !he[$e] && (Oe = ae(fe, ke, Ee, We, Z, oe, ge)) && (he[$e] = !0), $e++;
|
|
12177
12177
|
}), ne = Oe;
|
|
12178
12178
|
}
|
|
12179
12179
|
}), ne;
|
|
@@ -12195,7 +12195,7 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12195
12195
|
areSetsEqual: N,
|
|
12196
12196
|
createIsNestedEqual: r
|
|
12197
12197
|
}), z = _(U);
|
|
12198
|
-
function
|
|
12198
|
+
function K(Z, oe) {
|
|
12199
12199
|
return z(Z, oe, void 0);
|
|
12200
12200
|
}
|
|
12201
12201
|
var M = _(o(U, { createIsNestedEqual: function() {
|
|
@@ -12219,13 +12219,13 @@ var JN = { exports: {} }, mp = {}, D1 = { exports: {} };
|
|
|
12219
12219
|
function ie(Z) {
|
|
12220
12220
|
return _(o(U, Z(U)));
|
|
12221
12221
|
}
|
|
12222
|
-
function
|
|
12222
|
+
function Y(Z) {
|
|
12223
12223
|
var oe = _(o(H, Z(H)));
|
|
12224
12224
|
return function(ae, ge, ne) {
|
|
12225
12225
|
return ne === void 0 && (ne = /* @__PURE__ */ new WeakMap()), oe(ae, ge, ne);
|
|
12226
12226
|
};
|
|
12227
12227
|
}
|
|
12228
|
-
n.circularDeepEqual = A, n.circularShallowEqual = q, n.createCustomCircularEqual =
|
|
12228
|
+
n.circularDeepEqual = A, n.circularShallowEqual = q, n.createCustomCircularEqual = Y, n.createCustomEqual = ie, n.deepEqual = K, n.sameValueZeroEqual = l, n.shallowEqual = G, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
12229
12229
|
});
|
|
12230
12230
|
})(D1, D1.exports);
|
|
12231
12231
|
var lC = D1.exports;
|
|
@@ -12769,14 +12769,14 @@ function FX() {
|
|
|
12769
12769
|
case d:
|
|
12770
12770
|
return fe;
|
|
12771
12771
|
default:
|
|
12772
|
-
var
|
|
12773
|
-
switch (
|
|
12772
|
+
var Ee = fe && fe.$$typeof;
|
|
12773
|
+
switch (Ee) {
|
|
12774
12774
|
case a:
|
|
12775
12775
|
case u:
|
|
12776
12776
|
case m:
|
|
12777
12777
|
case h:
|
|
12778
12778
|
case s:
|
|
12779
|
-
return
|
|
12779
|
+
return Ee;
|
|
12780
12780
|
default:
|
|
12781
12781
|
return he;
|
|
12782
12782
|
}
|
|
@@ -12787,7 +12787,7 @@ function FX() {
|
|
|
12787
12787
|
}
|
|
12788
12788
|
}
|
|
12789
12789
|
var C = l, R = c, T = a, O = s, D = t, F = u, L = r, j = m, X = h, B = n, N = o, U = i, H = d, z = !1;
|
|
12790
|
-
function
|
|
12790
|
+
function K(ne) {
|
|
12791
12791
|
return z || (z = !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.")), M(ne) || E(ne) === l;
|
|
12792
12792
|
}
|
|
12793
12793
|
function M(ne) {
|
|
@@ -12811,7 +12811,7 @@ function FX() {
|
|
|
12811
12811
|
function ie(ne) {
|
|
12812
12812
|
return E(ne) === m;
|
|
12813
12813
|
}
|
|
12814
|
-
function
|
|
12814
|
+
function Y(ne) {
|
|
12815
12815
|
return E(ne) === h;
|
|
12816
12816
|
}
|
|
12817
12817
|
function Z(ne) {
|
|
@@ -12826,7 +12826,7 @@ function FX() {
|
|
|
12826
12826
|
function ge(ne) {
|
|
12827
12827
|
return E(ne) === d;
|
|
12828
12828
|
}
|
|
12829
|
-
on.AsyncMode = C, on.ConcurrentMode = R, on.ContextConsumer = T, on.ContextProvider = O, on.Element = D, on.ForwardRef = F, on.Fragment = L, on.Lazy = j, on.Memo = X, on.Portal = B, on.Profiler = N, on.StrictMode = U, on.Suspense = H, on.isAsyncMode =
|
|
12829
|
+
on.AsyncMode = C, on.ConcurrentMode = R, on.ContextConsumer = T, on.ContextProvider = O, on.Element = D, on.ForwardRef = F, on.Fragment = L, on.Lazy = j, on.Memo = X, on.Portal = B, on.Profiler = N, on.StrictMode = U, on.Suspense = H, on.isAsyncMode = K, on.isConcurrentMode = M, on.isContextConsumer = G, on.isContextProvider = W, on.isElement = A, on.isForwardRef = J, on.isFragment = q, on.isLazy = ie, on.isMemo = Y, on.isPortal = Z, on.isProfiler = oe, on.isStrictMode = ae, on.isSuspense = ge, on.isValidElementType = _, on.typeOf = E;
|
|
12830
12830
|
}()), on;
|
|
12831
12831
|
}
|
|
12832
12832
|
var xk;
|
|
@@ -12999,28 +12999,28 @@ function zX() {
|
|
|
12999
12999
|
function y(M) {
|
|
13000
13000
|
if (process.env.NODE_ENV !== "production")
|
|
13001
13001
|
var G = {}, W = 0;
|
|
13002
|
-
function A(q, ie,
|
|
13003
|
-
if (Z = Z || p, ae = ae ||
|
|
13002
|
+
function A(q, ie, Y, Z, oe, ae, ge) {
|
|
13003
|
+
if (Z = Z || p, ae = ae || Y, ge !== n) {
|
|
13004
13004
|
if (l) {
|
|
13005
13005
|
var ne = new Error(
|
|
13006
13006
|
"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"
|
|
13007
13007
|
);
|
|
13008
13008
|
throw ne.name = "Invariant Violation", ne;
|
|
13009
13009
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
13010
|
-
var he = Z + ":" +
|
|
13010
|
+
var he = Z + ":" + Y;
|
|
13011
13011
|
!G[he] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
13012
13012
|
W < 3 && (o(
|
|
13013
13013
|
"You are manually calling a React.PropTypes validation function for the `" + ae + "` prop on `" + Z + "`. 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."
|
|
13014
13014
|
), G[he] = !0, W++);
|
|
13015
13015
|
}
|
|
13016
13016
|
}
|
|
13017
|
-
return ie[
|
|
13017
|
+
return ie[Y] == null ? q ? ie[Y] === null ? new b("The " + oe + " `" + ae + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new b("The " + oe + " `" + ae + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : M(ie, Y, Z, oe, ae);
|
|
13018
13018
|
}
|
|
13019
13019
|
var J = A.bind(null, !1);
|
|
13020
13020
|
return J.isRequired = A.bind(null, !0), J;
|
|
13021
13021
|
}
|
|
13022
13022
|
function x(M) {
|
|
13023
|
-
function G(W, A, J, q, ie,
|
|
13023
|
+
function G(W, A, J, q, ie, Y) {
|
|
13024
13024
|
var Z = W[A], oe = U(Z);
|
|
13025
13025
|
if (oe !== M) {
|
|
13026
13026
|
var ae = H(Z);
|
|
@@ -13040,13 +13040,13 @@ function zX() {
|
|
|
13040
13040
|
function G(W, A, J, q, ie) {
|
|
13041
13041
|
if (typeof M != "function")
|
|
13042
13042
|
return new b("Property `" + ie + "` of component `" + J + "` has invalid PropType notation inside arrayOf.");
|
|
13043
|
-
var
|
|
13044
|
-
if (!Array.isArray(
|
|
13045
|
-
var Z = U(
|
|
13043
|
+
var Y = W[A];
|
|
13044
|
+
if (!Array.isArray(Y)) {
|
|
13045
|
+
var Z = U(Y);
|
|
13046
13046
|
return new b("Invalid " + q + " `" + ie + "` of type " + ("`" + Z + "` supplied to `" + J + "`, expected an array."));
|
|
13047
13047
|
}
|
|
13048
|
-
for (var oe = 0; oe <
|
|
13049
|
-
var ae = M(
|
|
13048
|
+
for (var oe = 0; oe < Y.length; oe++) {
|
|
13049
|
+
var ae = M(Y, oe, J, q, ie + "[" + oe + "]", n);
|
|
13050
13050
|
if (ae instanceof Error)
|
|
13051
13051
|
return ae;
|
|
13052
13052
|
}
|
|
@@ -13058,8 +13058,8 @@ function zX() {
|
|
|
13058
13058
|
function M(G, W, A, J, q) {
|
|
13059
13059
|
var ie = G[W];
|
|
13060
13060
|
if (!a(ie)) {
|
|
13061
|
-
var
|
|
13062
|
-
return new b("Invalid " + J + " `" + q + "` of type " + ("`" +
|
|
13061
|
+
var Y = U(ie);
|
|
13062
|
+
return new b("Invalid " + J + " `" + q + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
13063
13063
|
}
|
|
13064
13064
|
return null;
|
|
13065
13065
|
}
|
|
@@ -13069,8 +13069,8 @@ function zX() {
|
|
|
13069
13069
|
function M(G, W, A, J, q) {
|
|
13070
13070
|
var ie = G[W];
|
|
13071
13071
|
if (!e.isValidElementType(ie)) {
|
|
13072
|
-
var
|
|
13073
|
-
return new b("Invalid " + J + " `" + q + "` of type " + ("`" +
|
|
13072
|
+
var Y = U(ie);
|
|
13073
|
+
return new b("Invalid " + J + " `" + q + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
13074
13074
|
}
|
|
13075
13075
|
return null;
|
|
13076
13076
|
}
|
|
@@ -13079,8 +13079,8 @@ function zX() {
|
|
|
13079
13079
|
function R(M) {
|
|
13080
13080
|
function G(W, A, J, q, ie) {
|
|
13081
13081
|
if (!(W[A] instanceof M)) {
|
|
13082
|
-
var
|
|
13083
|
-
return new b("Invalid " + q + " `" + ie + "` of type " + ("`" + Z + "` supplied to `" + J + "`, expected ") + ("instance of `" +
|
|
13082
|
+
var Y = M.name || p, Z = K(W[A]);
|
|
13083
|
+
return new b("Invalid " + q + " `" + ie + "` of type " + ("`" + Z + "` supplied to `" + J + "`, expected ") + ("instance of `" + Y + "`."));
|
|
13084
13084
|
}
|
|
13085
13085
|
return null;
|
|
13086
13086
|
}
|
|
@@ -13092,14 +13092,14 @@ function zX() {
|
|
|
13092
13092
|
"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])."
|
|
13093
13093
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
13094
13094
|
function G(W, A, J, q, ie) {
|
|
13095
|
-
for (var
|
|
13096
|
-
if (m(
|
|
13095
|
+
for (var Y = W[A], Z = 0; Z < M.length; Z++)
|
|
13096
|
+
if (m(Y, M[Z]))
|
|
13097
13097
|
return null;
|
|
13098
13098
|
var oe = JSON.stringify(M, function(ge, ne) {
|
|
13099
13099
|
var he = H(ne);
|
|
13100
13100
|
return he === "symbol" ? String(ne) : ne;
|
|
13101
13101
|
});
|
|
13102
|
-
return new b("Invalid " + q + " `" + ie + "` of value `" + String(
|
|
13102
|
+
return new b("Invalid " + q + " `" + ie + "` of value `" + String(Y) + "` " + ("supplied to `" + J + "`, expected one of " + oe + "."));
|
|
13103
13103
|
}
|
|
13104
13104
|
return y(G);
|
|
13105
13105
|
}
|
|
@@ -13107,12 +13107,12 @@ function zX() {
|
|
|
13107
13107
|
function G(W, A, J, q, ie) {
|
|
13108
13108
|
if (typeof M != "function")
|
|
13109
13109
|
return new b("Property `" + ie + "` of component `" + J + "` has invalid PropType notation inside objectOf.");
|
|
13110
|
-
var
|
|
13110
|
+
var Y = W[A], Z = U(Y);
|
|
13111
13111
|
if (Z !== "object")
|
|
13112
13112
|
return new b("Invalid " + q + " `" + ie + "` of type " + ("`" + Z + "` supplied to `" + J + "`, expected an object."));
|
|
13113
|
-
for (var oe in
|
|
13114
|
-
if (r(
|
|
13115
|
-
var ae = M(
|
|
13113
|
+
for (var oe in Y)
|
|
13114
|
+
if (r(Y, oe)) {
|
|
13115
|
+
var ae = M(Y, oe, J, q, ie + "." + oe, n);
|
|
13116
13116
|
if (ae instanceof Error)
|
|
13117
13117
|
return ae;
|
|
13118
13118
|
}
|
|
@@ -13130,15 +13130,15 @@ function zX() {
|
|
|
13130
13130
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(W) + " at index " + G + "."
|
|
13131
13131
|
), s;
|
|
13132
13132
|
}
|
|
13133
|
-
function A(J, q, ie,
|
|
13133
|
+
function A(J, q, ie, Y, Z) {
|
|
13134
13134
|
for (var oe = [], ae = 0; ae < M.length; ae++) {
|
|
13135
|
-
var ge = M[ae], ne = ge(J, q, ie,
|
|
13135
|
+
var ge = M[ae], ne = ge(J, q, ie, Y, Z, n);
|
|
13136
13136
|
if (ne == null)
|
|
13137
13137
|
return null;
|
|
13138
13138
|
ne.data && r(ne.data, "expectedType") && oe.push(ne.data.expectedType);
|
|
13139
13139
|
}
|
|
13140
13140
|
var he = oe.length > 0 ? ", expected one of type [" + oe.join(", ") + "]" : "";
|
|
13141
|
-
return new b("Invalid " +
|
|
13141
|
+
return new b("Invalid " + Y + " `" + Z + "` supplied to " + ("`" + ie + "`" + he + "."));
|
|
13142
13142
|
}
|
|
13143
13143
|
return y(A);
|
|
13144
13144
|
}
|
|
@@ -13155,14 +13155,14 @@ function zX() {
|
|
|
13155
13155
|
}
|
|
13156
13156
|
function j(M) {
|
|
13157
13157
|
function G(W, A, J, q, ie) {
|
|
13158
|
-
var
|
|
13158
|
+
var Y = W[A], Z = U(Y);
|
|
13159
13159
|
if (Z !== "object")
|
|
13160
13160
|
return new b("Invalid " + q + " `" + ie + "` of type `" + Z + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
13161
13161
|
for (var oe in M) {
|
|
13162
13162
|
var ae = M[oe];
|
|
13163
13163
|
if (typeof ae != "function")
|
|
13164
13164
|
return L(J, q, ie, oe, H(ae));
|
|
13165
|
-
var ge = ae(
|
|
13165
|
+
var ge = ae(Y, oe, J, q, ie + "." + oe, n);
|
|
13166
13166
|
if (ge)
|
|
13167
13167
|
return ge;
|
|
13168
13168
|
}
|
|
@@ -13172,7 +13172,7 @@ function zX() {
|
|
|
13172
13172
|
}
|
|
13173
13173
|
function X(M) {
|
|
13174
13174
|
function G(W, A, J, q, ie) {
|
|
13175
|
-
var
|
|
13175
|
+
var Y = W[A], Z = U(Y);
|
|
13176
13176
|
if (Z !== "object")
|
|
13177
13177
|
return new b("Invalid " + q + " `" + ie + "` of type `" + Z + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
13178
13178
|
var oe = t({}, W[A], M);
|
|
@@ -13185,7 +13185,7 @@ function zX() {
|
|
|
13185
13185
|
"Invalid " + q + " `" + ie + "` key `" + ae + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(W[A], null, " ") + `
|
|
13186
13186
|
Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
13187
13187
|
);
|
|
13188
|
-
var ne = ge(
|
|
13188
|
+
var ne = ge(Y, ae, J, q, ie + "." + ae, n);
|
|
13189
13189
|
if (ne)
|
|
13190
13190
|
return ne;
|
|
13191
13191
|
}
|
|
@@ -13259,7 +13259,7 @@ Valid keys: ` + JSON.stringify(Object.keys(M), null, " ")
|
|
|
13259
13259
|
return G;
|
|
13260
13260
|
}
|
|
13261
13261
|
}
|
|
13262
|
-
function
|
|
13262
|
+
function K(M) {
|
|
13263
13263
|
return !M.constructor || !M.constructor.name ? p : M.constructor.name;
|
|
13264
13264
|
}
|
|
13265
13265
|
return h.checkPropTypes = i, h.resetWarningCache = i.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -14132,13 +14132,13 @@ Xr(jy, "defaultProps", {
|
|
|
14132
14132
|
...X
|
|
14133
14133
|
} = this.props;
|
|
14134
14134
|
let B = {}, N = null;
|
|
14135
|
-
const H = !!!F || this.state.dragging, z = F || R,
|
|
14135
|
+
const H = !!!F || this.state.dragging, z = F || R, K = {
|
|
14136
14136
|
// Set left if horizontal drag is enabled
|
|
14137
14137
|
x: (0, s.canDragX)(this) && H ? this.state.x : z.x,
|
|
14138
14138
|
// Set top if vertical drag is enabled
|
|
14139
14139
|
y: (0, s.canDragY)(this) && H ? this.state.y : z.y
|
|
14140
14140
|
};
|
|
14141
|
-
this.state.isElementSVG ? N = (0, o.createSVGTransform)(
|
|
14141
|
+
this.state.isElementSVG ? N = (0, o.createSVGTransform)(K, L) : B = (0, o.createCSSTransform)(K, L);
|
|
14142
14142
|
const M = (0, i.default)(C.props.className || "", T, {
|
|
14143
14143
|
[O]: this.state.dragging,
|
|
14144
14144
|
[D]: this.state.dragged
|
|
@@ -17171,16 +17171,14 @@ function G1({
|
|
|
17171
17171
|
return l[u] || (l[u] = { [t]: u }), l[u][d] = p, l;
|
|
17172
17172
|
}, {});
|
|
17173
17173
|
let s = Object.values(o);
|
|
17174
|
-
i !== "none" && i !== void 0 && (s = _J(
|
|
17174
|
+
return i !== "none" && i !== void 0 && (s = _J(
|
|
17175
17175
|
s,
|
|
17176
17176
|
i
|
|
17177
|
-
))
|
|
17178
|
-
const a = s.map(
|
|
17177
|
+
)), s.map(
|
|
17179
17178
|
(l) => Object.fromEntries(
|
|
17180
17179
|
Object.entries(l).filter(([c, u]) => u !== 0)
|
|
17181
17180
|
)
|
|
17182
17181
|
);
|
|
17183
|
-
return console.log("cleanedData", a), a;
|
|
17184
17182
|
}
|
|
17185
17183
|
function vi(e, t) {
|
|
17186
17184
|
var s;
|
|
@@ -18213,7 +18211,7 @@ function Q5({
|
|
|
18213
18211
|
preferences: t,
|
|
18214
18212
|
customCfg: n
|
|
18215
18213
|
}) {
|
|
18216
|
-
var p, h, m, b, y, x, w, _, E, C, R, T, O, D, F, L, j, X, B, N, U, H, z,
|
|
18214
|
+
var p, h, m, b, y, x, w, _, E, C, R, T, O, D, F, L, j, X, B, N, U, H, z, K, M, G, W, A, J, q, ie;
|
|
18217
18215
|
const r = ye.getState().themeStyle, i = X5(e, t), o = vi(
|
|
18218
18216
|
(e == null ? void 0 : e.options) || {},
|
|
18219
18217
|
t == null ? void 0 : t.chartOptions
|
|
@@ -18249,22 +18247,22 @@ function Q5({
|
|
|
18249
18247
|
...a == null ? void 0 : a.plugins,
|
|
18250
18248
|
tooltip: {
|
|
18251
18249
|
// ...options?.plugins?.tooltip,
|
|
18252
|
-
filter: function(
|
|
18253
|
-
return
|
|
18250
|
+
filter: function(Y) {
|
|
18251
|
+
return Y.raw !== void 0 && Y.raw !== 0;
|
|
18254
18252
|
},
|
|
18255
18253
|
callbacks: {
|
|
18256
|
-
label: function(
|
|
18257
|
-
var ge, ne, he, fe;
|
|
18258
|
-
const Z =
|
|
18254
|
+
label: function(Y) {
|
|
18255
|
+
var ge, ne, he, fe, Ee;
|
|
18256
|
+
const Z = ((ge = Y == null ? void 0 : Y.dataset) == null ? void 0 : ge.label) || "", oe = Y == null ? void 0 : Y.raw;
|
|
18259
18257
|
if (oe === void 0 || oe === 0)
|
|
18260
18258
|
return;
|
|
18261
18259
|
const ae = Lo({
|
|
18262
18260
|
number: Number(oe),
|
|
18263
|
-
decimalPlaces: ((
|
|
18264
|
-
useSuffix: !!((
|
|
18261
|
+
decimalPlaces: ((ne = t == null ? void 0 : t.numberAxisFormat) == null ? void 0 : ne.decimalPlaces) || 0,
|
|
18262
|
+
useSuffix: !!((he = t == null ? void 0 : t.numberAxisFormat) != null && he.suffix),
|
|
18265
18263
|
customSuffix: "",
|
|
18266
|
-
locale: ((
|
|
18267
|
-
currency: ((
|
|
18264
|
+
locale: ((fe = t == null ? void 0 : t.numberAxisFormat) == null ? void 0 : fe.locale) || "",
|
|
18265
|
+
currency: ((Ee = t == null ? void 0 : t.numberAxisFormat) == null ? void 0 : Ee.currency) || ""
|
|
18268
18266
|
});
|
|
18269
18267
|
return `${Z}: ${ae}`;
|
|
18270
18268
|
},
|
|
@@ -18273,7 +18271,7 @@ function Q5({
|
|
|
18273
18271
|
},
|
|
18274
18272
|
...(B = a == null ? void 0 : a.plugins) == null ? void 0 : B.tooltip,
|
|
18275
18273
|
backgroundColor: (z = (H = (U = (N = r == null ? void 0 : r.chart) == null ? void 0 : N.options) == null ? void 0 : U.plugins) == null ? void 0 : H.tooltip) == null ? void 0 : z.backgroundColor,
|
|
18276
|
-
bodyColor: (W = (G = (M = (
|
|
18274
|
+
bodyColor: (W = (G = (M = (K = r == null ? void 0 : r.chart) == null ? void 0 : K.options) == null ? void 0 : M.plugins) == null ? void 0 : G.tooltip) == null ? void 0 : W.bodyColor,
|
|
18277
18275
|
titleColor: (ie = (q = (J = (A = r == null ? void 0 : r.chart) == null ? void 0 : A.options) == null ? void 0 : J.plugins) == null ? void 0 : q.tooltip) == null ? void 0 : ie.titleColor
|
|
18278
18276
|
}
|
|
18279
18277
|
}
|
|
@@ -23055,8 +23053,8 @@ class fl extends Es {
|
|
|
23055
23053
|
}
|
|
23056
23054
|
const B = st(i.ticks.maxTicksLimit, d), N = Math.max(1, Math.ceil(d / B));
|
|
23057
23055
|
for (_ = 0; _ < d; _ += N) {
|
|
23058
|
-
const U = this.getContext(_), H = o.setContext(U), z = a.setContext(U),
|
|
23059
|
-
E = ire(this, _, l), E !== void 0 && (C = Ml(r, E,
|
|
23056
|
+
const U = this.getContext(_), H = o.setContext(U), z = a.setContext(U), K = H.lineWidth, M = H.color, G = z.dash || [], W = z.dashOffset, A = H.tickWidth, J = H.tickColor, q = H.tickBorderDash || [], ie = H.tickBorderDashOffset;
|
|
23057
|
+
E = ire(this, _, l), E !== void 0 && (C = Ml(r, E, K), c ? R = O = F = j = C : T = D = L = X = C, h.push({
|
|
23060
23058
|
tx1: R,
|
|
23061
23059
|
ty1: T,
|
|
23062
23060
|
tx2: O,
|
|
@@ -23065,7 +23063,7 @@ class fl extends Es {
|
|
|
23065
23063
|
y1: L,
|
|
23066
23064
|
x2: j,
|
|
23067
23065
|
y2: X,
|
|
23068
|
-
width:
|
|
23066
|
+
width: K,
|
|
23069
23067
|
color: M,
|
|
23070
23068
|
borderDash: G,
|
|
23071
23069
|
borderDashOffset: W,
|
|
@@ -23113,7 +23111,7 @@ class fl extends Es {
|
|
|
23113
23111
|
_ = a[x], E = _.label;
|
|
23114
23112
|
const N = o.setContext(this.getContext(x));
|
|
23115
23113
|
O = this.getPixelForTick(x) + o.labelOffset, D = this._resolveTickFontOptions(x), F = D.lineHeight, L = kn(E) ? E.length : 1;
|
|
23116
|
-
const U = L / 2, H = N.color, z = N.textStrokeColor,
|
|
23114
|
+
const U = L / 2, H = N.color, z = N.textStrokeColor, K = N.textStrokeWidth;
|
|
23117
23115
|
let M = T;
|
|
23118
23116
|
s ? (C = O, T === "inner" && (x === w - 1 ? M = this.options.reverse ? "left" : "right" : x === 0 ? M = this.options.reverse ? "right" : "left" : M = "center"), i === "top" ? c === "near" || b !== 0 ? j = -L * F + F / 2 : c === "center" ? j = -B.highest.height / 2 - U * F + F : j = -B.highest.height + F / 2 : c === "near" || b !== 0 ? j = F / 2 : c === "center" ? j = B.highest.height / 2 - U * F : j = B.highest.height - L * F, d && (j *= -1), b !== 0 && !N.showLabelBackdrop && (C += F / 2 * Math.sin(b))) : (R = O, j = (1 - L) * F / 2);
|
|
23119
23117
|
let G;
|
|
@@ -23155,7 +23153,7 @@ class fl extends Es {
|
|
|
23155
23153
|
rotation: b,
|
|
23156
23154
|
color: H,
|
|
23157
23155
|
strokeColor: z,
|
|
23158
|
-
strokeWidth:
|
|
23156
|
+
strokeWidth: K,
|
|
23159
23157
|
textAlign: M,
|
|
23160
23158
|
textBaseline: X,
|
|
23161
23159
|
translation: [
|
|
@@ -24374,23 +24372,23 @@ function Ib(e, t, n, r, i, o) {
|
|
|
24374
24372
|
if (e.beginPath(), o) {
|
|
24375
24373
|
const N = (D + F) / 2;
|
|
24376
24374
|
if (e.arc(s, a, d, D, N), e.arc(s, a, d, N, F), E > 0) {
|
|
24377
|
-
const
|
|
24378
|
-
e.arc(
|
|
24375
|
+
const K = gu(O, F, s, a);
|
|
24376
|
+
e.arc(K.x, K.y, E, F, w + Xn);
|
|
24379
24377
|
}
|
|
24380
24378
|
const U = gu(j, w, s, a);
|
|
24381
24379
|
if (e.lineTo(U.x, U.y), R > 0) {
|
|
24382
|
-
const
|
|
24383
|
-
e.arc(
|
|
24380
|
+
const K = gu(j, B, s, a);
|
|
24381
|
+
e.arc(K.x, K.y, R, w + Xn, B + Math.PI);
|
|
24384
24382
|
}
|
|
24385
24383
|
const H = (w - R / p + (x + C / p)) / 2;
|
|
24386
24384
|
if (e.arc(s, a, p, w - R / p, H, !0), e.arc(s, a, p, H, x + C / p, !0), C > 0) {
|
|
24387
|
-
const
|
|
24388
|
-
e.arc(
|
|
24385
|
+
const K = gu(L, X, s, a);
|
|
24386
|
+
e.arc(K.x, K.y, C, X + Math.PI, x - Xn);
|
|
24389
24387
|
}
|
|
24390
24388
|
const z = gu(T, x, s, a);
|
|
24391
24389
|
if (e.lineTo(z.x, z.y), _ > 0) {
|
|
24392
|
-
const
|
|
24393
|
-
e.arc(
|
|
24390
|
+
const K = gu(T, D, s, a);
|
|
24391
|
+
e.arc(K.x, K.y, _, x - Xn, D);
|
|
24394
24392
|
}
|
|
24395
24393
|
} else {
|
|
24396
24394
|
e.moveTo(s, a);
|
|
@@ -27765,10 +27763,10 @@ function Roe(e) {
|
|
|
27765
27763
|
if (!(j < 0)) {
|
|
27766
27764
|
var X = ii(j), B = cm(D, (-F - X) / L);
|
|
27767
27765
|
if (Wx(B, T), B = lS(B), !p) return B;
|
|
27768
|
-
var N = u[0], U = d[0], H = u[1], z = d[1],
|
|
27769
|
-
U < N && (
|
|
27766
|
+
var N = u[0], U = d[0], H = u[1], z = d[1], K;
|
|
27767
|
+
U < N && (K = N, N = U, U = K);
|
|
27770
27768
|
var M = U - N, G = Gt(M - kt) < tt, W = G || M < tt;
|
|
27771
|
-
if (!G && z < H && (
|
|
27769
|
+
if (!G && z < H && (K = H, H = z, z = K), W ? G ? H + z > 0 ^ B[1] < (Gt(B[0] - N) < tt ? H : z) : H <= B[1] && B[1] <= z : M > kt ^ (N <= B[0] && B[0] <= U)) {
|
|
27772
27770
|
var A = cm(D, (-F + X) / L);
|
|
27773
27771
|
return Wx(A, T), [B, lS(A)];
|
|
27774
27772
|
}
|
|
@@ -27857,8 +27855,8 @@ function Toe(e, t, n, r) {
|
|
|
27857
27855
|
}
|
|
27858
27856
|
function D() {
|
|
27859
27857
|
for (var N = 0, U = 0, H = h.length; U < H; ++U)
|
|
27860
|
-
for (var z = h[U],
|
|
27861
|
-
W = J, A = q, G = z[
|
|
27858
|
+
for (var z = h[U], K = 1, M = z.length, G = z[0], W, A, J = G[0], q = G[1]; K < M; ++K)
|
|
27859
|
+
W = J, A = q, G = z[K], J = G[0], q = G[1], A <= r ? q > r && (J - W) * (r - A) > (q - A) * (e - W) && ++N : q <= r && (J - W) * (r - A) < (q - A) * (e - W) && --N;
|
|
27862
27860
|
return N;
|
|
27863
27861
|
}
|
|
27864
27862
|
function F() {
|
|
@@ -27880,8 +27878,8 @@ function Toe(e, t, n, r) {
|
|
|
27880
27878
|
b = N, y = U, x = H, C = !1, H && (u.lineStart(), u.point(N, U));
|
|
27881
27879
|
else if (H && E) u.point(N, U);
|
|
27882
27880
|
else {
|
|
27883
|
-
var z = [w = Math.max(fm, Math.min(dm, w)), _ = Math.max(fm, Math.min(dm, _))],
|
|
27884
|
-
Poe(z,
|
|
27881
|
+
var z = [w = Math.max(fm, Math.min(dm, w)), _ = Math.max(fm, Math.min(dm, _))], K = [N = Math.max(fm, Math.min(dm, N)), U = Math.max(fm, Math.min(dm, U))];
|
|
27882
|
+
Poe(z, K, e, t, n, r) ? (E || (u.lineStart(), u.point(z[0], z[1])), u.point(K[0], K[1]), H || u.lineEnd(), R = !1) : H && (u.lineStart(), u.point(N, U), R = !1);
|
|
27885
27883
|
}
|
|
27886
27884
|
w = N, _ = U, E = H;
|
|
27887
27885
|
}
|
|
@@ -30820,7 +30818,7 @@ function qF({
|
|
|
30820
30818
|
...(b = j == null ? void 0 : j.plugins) == null ? void 0 : b.datalabels,
|
|
30821
30819
|
// anchor: 'end', // Position the label inside the bar
|
|
30822
30820
|
// align: 'end', // Aligns the label inside the bar
|
|
30823
|
-
formatter: (z,
|
|
30821
|
+
formatter: (z, K) => z.map((G) => {
|
|
30824
30822
|
var W, A, J, q;
|
|
30825
30823
|
return Lo({
|
|
30826
30824
|
number: Number(G),
|
|
@@ -30915,7 +30913,7 @@ function qF({
|
|
|
30915
30913
|
...j.plugins,
|
|
30916
30914
|
datalabels: {
|
|
30917
30915
|
...(y = j.plugins) == null ? void 0 : y.datalabels,
|
|
30918
|
-
formatter: (z,
|
|
30916
|
+
formatter: (z, K) => {
|
|
30919
30917
|
var M, G, W, A;
|
|
30920
30918
|
return Lo({
|
|
30921
30919
|
number: Number(z),
|
|
@@ -30931,7 +30929,7 @@ function qF({
|
|
|
30931
30929
|
...(x = j.plugins) == null ? void 0 : x.tooltip,
|
|
30932
30930
|
callbacks: {
|
|
30933
30931
|
label: function(z) {
|
|
30934
|
-
var J, q, ie,
|
|
30932
|
+
var J, q, ie, Y;
|
|
30935
30933
|
z.dataset.label;
|
|
30936
30934
|
const M = z.dataset.data.reduce(
|
|
30937
30935
|
(Z, oe) => Z + oe,
|
|
@@ -30942,7 +30940,7 @@ function qF({
|
|
|
30942
30940
|
useSuffix: !!((q = s == null ? void 0 : s.numberAxisFormat) != null && q.suffix),
|
|
30943
30941
|
customSuffix: "",
|
|
30944
30942
|
locale: ((ie = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : ie.locale) || "",
|
|
30945
|
-
currency: ((
|
|
30943
|
+
currency: ((Y = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : Y.currency) || ""
|
|
30946
30944
|
}), A = (G / M * 100).toFixed(2);
|
|
30947
30945
|
return W + ` (${A}%)`;
|
|
30948
30946
|
}
|
|
@@ -30965,17 +30963,17 @@ function qF({
|
|
|
30965
30963
|
options: N,
|
|
30966
30964
|
plugins: [t === "doughnut" ? {
|
|
30967
30965
|
id: "doughnutLabel",
|
|
30968
|
-
beforeDatasetsDraw: function(z,
|
|
30966
|
+
beforeDatasetsDraw: function(z, K, M) {
|
|
30969
30967
|
var oe, ae, ge, ne;
|
|
30970
30968
|
const { ctx: G, data: W } = z;
|
|
30971
30969
|
G.save();
|
|
30972
30970
|
const A = z.getDatasetMeta(0).data[0].x, J = z.getDatasetMeta(0).data[0].y, q = kh(yb()), ie = window.getComputedStyle(G.canvas).fontFamily;
|
|
30973
30971
|
G.font = `1em ${ie}`, G.fontWeight = "bolder", G.fillStyle = q, G.textAlign = "center", G.textBaseline = "middle";
|
|
30974
|
-
const
|
|
30972
|
+
const Y = W.datasets[0].data.reduce(
|
|
30975
30973
|
(he, fe) => he + fe,
|
|
30976
30974
|
0
|
|
30977
30975
|
), Z = Lo({
|
|
30978
|
-
number: Number(
|
|
30976
|
+
number: Number(Y),
|
|
30979
30977
|
decimalPlaces: ((oe = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : oe.decimalPlaces) || 0,
|
|
30980
30978
|
useSuffix: !!((ae = s == null ? void 0 : s.numberAxisFormat) != null && ae.suffix),
|
|
30981
30979
|
customSuffix: "",
|
|
@@ -31339,9 +31337,9 @@ function YF(e) {
|
|
|
31339
31337
|
e.connectionId && !R && (c.current = l);
|
|
31340
31338
|
}, [l, a, e.connectionId, R]), Ve(() => {
|
|
31341
31339
|
var z;
|
|
31342
|
-
R && (L.current.filteringCards = [...o || []]), !R && ((z = L.current.filteringCards) == null ? void 0 : z.find((
|
|
31340
|
+
R && (L.current.filteringCards = [...o || []]), !R && ((z = L.current.filteringCards) == null ? void 0 : z.find((K) => K.id === e.id)) && D && r((K) => K + 1);
|
|
31343
31341
|
}, [R, D, e.id, o]);
|
|
31344
|
-
function j(H, z,
|
|
31342
|
+
function j(H, z, K, M) {
|
|
31345
31343
|
var A;
|
|
31346
31344
|
let G = !1;
|
|
31347
31345
|
if (!(y != null && y.records)) return;
|
|
@@ -31349,7 +31347,7 @@ function YF(e) {
|
|
|
31349
31347
|
card: e,
|
|
31350
31348
|
data: y == null ? void 0 : y.records,
|
|
31351
31349
|
datasetIndex: z,
|
|
31352
|
-
clickIndex:
|
|
31350
|
+
clickIndex: K,
|
|
31353
31351
|
value: M
|
|
31354
31352
|
});
|
|
31355
31353
|
if (console.log("fieldValues", W), t == null || t(e, W), !!(((A = e == null ? void 0 : e.preferences) == null ? void 0 : A.onClickFilter) ?? []).length) {
|
|
@@ -31360,8 +31358,8 @@ function YF(e) {
|
|
|
31360
31358
|
if (G = !0, !W) return;
|
|
31361
31359
|
const J = [];
|
|
31362
31360
|
W.forEach((q, ie) => {
|
|
31363
|
-
const
|
|
31364
|
-
if (!
|
|
31361
|
+
const Y = u == null ? void 0 : u.find((oe) => oe.columnIndex === ie);
|
|
31362
|
+
if (!Y) return;
|
|
31365
31363
|
const Z = {
|
|
31366
31364
|
// filterId: fieldValue.columnName,
|
|
31367
31365
|
filterId: e.id + "-" + q.columnName + "-" + s,
|
|
@@ -31369,19 +31367,19 @@ function YF(e) {
|
|
|
31369
31367
|
connectionId: e == null ? void 0 : e.connectionId,
|
|
31370
31368
|
tableName: e.lastSelectedTable,
|
|
31371
31369
|
name: q.columnName,
|
|
31372
|
-
expression:
|
|
31370
|
+
expression: Y.expression,
|
|
31373
31371
|
valueType: G_(
|
|
31374
|
-
W[
|
|
31372
|
+
W[Y.columnIndex].columnValue
|
|
31375
31373
|
),
|
|
31376
31374
|
operation: "=",
|
|
31377
|
-
values: [W[
|
|
31375
|
+
values: [W[Y.columnIndex].columnValue]
|
|
31378
31376
|
};
|
|
31379
31377
|
J.push(Z);
|
|
31380
31378
|
}), h(J), d(e);
|
|
31381
31379
|
}
|
|
31382
31380
|
yle({
|
|
31383
31381
|
chart: H,
|
|
31384
|
-
elementIndex:
|
|
31382
|
+
elementIndex: K,
|
|
31385
31383
|
datasetIndex: z,
|
|
31386
31384
|
cardType: e.type,
|
|
31387
31385
|
cfg: F,
|
|
@@ -31940,13 +31938,13 @@ const Dle = (e) => ({
|
|
|
31940
31938
|
var X;
|
|
31941
31939
|
const H = (X = F.filter((z) => {
|
|
31942
31940
|
if (R) {
|
|
31943
|
-
const
|
|
31944
|
-
return
|
|
31941
|
+
const K = ol(z.placement);
|
|
31942
|
+
return K === w || // Create a bias to the `y` side axis due to horizontal
|
|
31945
31943
|
// reading directions favoring greater width.
|
|
31946
|
-
|
|
31944
|
+
K === "y";
|
|
31947
31945
|
}
|
|
31948
31946
|
return !0;
|
|
31949
|
-
}).map((z) => [z.placement, z.overflows.filter((
|
|
31947
|
+
}).map((z) => [z.placement, z.overflows.filter((K) => K > 0).reduce((K, M) => K + M, 0)]).sort((z, K) => z[1] - K[1])[0]) == null ? void 0 : X[0];
|
|
31950
31948
|
H && (U = H);
|
|
31951
31949
|
break;
|
|
31952
31950
|
}
|
|
@@ -32773,9 +32771,9 @@ function l4(e) {
|
|
|
32773
32771
|
strategy: n,
|
|
32774
32772
|
middleware: p
|
|
32775
32773
|
};
|
|
32776
|
-
L.current && (z.platform = L.current), dce(R.current, T.current, z).then((
|
|
32774
|
+
L.current && (z.platform = L.current), dce(R.current, T.current, z).then((K) => {
|
|
32777
32775
|
const M = {
|
|
32778
|
-
...
|
|
32776
|
+
...K,
|
|
32779
32777
|
// The floating element's position may be recomputed while it's closed
|
|
32780
32778
|
// but still mounted (such as when transitioning out). To ensure
|
|
32781
32779
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
@@ -32819,16 +32817,16 @@ function l4(e) {
|
|
|
32819
32817
|
};
|
|
32820
32818
|
if (!U.floating)
|
|
32821
32819
|
return z;
|
|
32822
|
-
const
|
|
32820
|
+
const K = rM(U.floating, u.x), M = rM(U.floating, u.y);
|
|
32823
32821
|
return a ? {
|
|
32824
32822
|
...z,
|
|
32825
|
-
transform: "translate(" +
|
|
32823
|
+
transform: "translate(" + K + "px, " + M + "px)",
|
|
32826
32824
|
...a4(U.floating) >= 1.5 && {
|
|
32827
32825
|
willChange: "transform"
|
|
32828
32826
|
}
|
|
32829
32827
|
} : {
|
|
32830
32828
|
position: n,
|
|
32831
|
-
left:
|
|
32829
|
+
left: K,
|
|
32832
32830
|
top: M
|
|
32833
32831
|
};
|
|
32834
32832
|
}, [n, a, U.floating, u.x, u.y]);
|
|
@@ -32938,7 +32936,7 @@ var m4 = "PopperAnchor", b4 = P.forwardRef(
|
|
|
32938
32936
|
b4.displayName = m4;
|
|
32939
32937
|
var xE = "PopperContent", [vce, xce] = h4(xE), y4 = P.forwardRef(
|
|
32940
32938
|
(e, t) => {
|
|
32941
|
-
var
|
|
32939
|
+
var Y, Z, oe, ae, ge, ne;
|
|
32942
32940
|
const {
|
|
32943
32941
|
__scopePopper: n,
|
|
32944
32942
|
side: r = "bottom",
|
|
@@ -32980,20 +32978,20 @@ var xE = "PopperContent", [vce, xce] = h4(xE), y4 = P.forwardRef(
|
|
|
32980
32978
|
l && u4({ ...X }),
|
|
32981
32979
|
d4({
|
|
32982
32980
|
...X,
|
|
32983
|
-
apply: ({ elements: he, rects: fe, availableWidth:
|
|
32981
|
+
apply: ({ elements: he, rects: fe, availableWidth: Ee, availableHeight: Oe }) => {
|
|
32984
32982
|
const { width: $e, height: ke } = fe.reference, We = he.floating.style;
|
|
32985
|
-
We.setProperty("--radix-popper-available-width", `${
|
|
32983
|
+
We.setProperty("--radix-popper-available-width", `${Ee}px`), We.setProperty("--radix-popper-available-height", `${Oe}px`), We.setProperty("--radix-popper-anchor-width", `${$e}px`), We.setProperty("--radix-popper-anchor-height", `${ke}px`);
|
|
32986
32984
|
}
|
|
32987
32985
|
}),
|
|
32988
32986
|
E && gce({ element: E, padding: a }),
|
|
32989
32987
|
_ce({ arrowWidth: T, arrowHeight: O }),
|
|
32990
32988
|
p && pce({ strategy: "referenceHidden", ...X })
|
|
32991
32989
|
]
|
|
32992
|
-
}), [
|
|
32990
|
+
}), [K, M] = w4(U), G = cr(m);
|
|
32993
32991
|
Rr(() => {
|
|
32994
32992
|
H && (G == null || G());
|
|
32995
32993
|
}, [H, G]);
|
|
32996
|
-
const W = (
|
|
32994
|
+
const W = (Y = z.arrow) == null ? void 0 : Y.x, A = (Z = z.arrow) == null ? void 0 : Z.y, J = ((oe = z.arrow) == null ? void 0 : oe.centerOffset) !== 0, [q, ie] = P.useState();
|
|
32997
32995
|
return Rr(() => {
|
|
32998
32996
|
x && ie(window.getComputedStyle(x).zIndex);
|
|
32999
32997
|
}, [x]), /* @__PURE__ */ v.jsx(
|
|
@@ -33024,7 +33022,7 @@ var xE = "PopperContent", [vce, xce] = h4(xE), y4 = P.forwardRef(
|
|
|
33024
33022
|
vce,
|
|
33025
33023
|
{
|
|
33026
33024
|
scope: n,
|
|
33027
|
-
placedSide:
|
|
33025
|
+
placedSide: K,
|
|
33028
33026
|
onArrowChange: C,
|
|
33029
33027
|
arrowX: W,
|
|
33030
33028
|
arrowY: A,
|
|
@@ -33032,7 +33030,7 @@ var xE = "PopperContent", [vce, xce] = h4(xE), y4 = P.forwardRef(
|
|
|
33032
33030
|
children: /* @__PURE__ */ v.jsx(
|
|
33033
33031
|
je.div,
|
|
33034
33032
|
{
|
|
33035
|
-
"data-side":
|
|
33033
|
+
"data-side": K,
|
|
33036
33034
|
"data-align": M,
|
|
33037
33035
|
...b,
|
|
33038
33036
|
ref: _,
|
|
@@ -34048,7 +34046,7 @@ function W4() {
|
|
|
34048
34046
|
ARIA_ATTR: U,
|
|
34049
34047
|
IS_SCRIPT_OR_DATA: H,
|
|
34050
34048
|
ATTR_WHITESPACE: z,
|
|
34051
|
-
CUSTOM_ELEMENT:
|
|
34049
|
+
CUSTOM_ELEMENT: K
|
|
34052
34050
|
} = hM;
|
|
34053
34051
|
let {
|
|
34054
34052
|
IS_ALLOWED_URI: M
|
|
@@ -34075,7 +34073,7 @@ function W4() {
|
|
|
34075
34073
|
enumerable: !0,
|
|
34076
34074
|
value: !1
|
|
34077
34075
|
}
|
|
34078
|
-
})), ie = null,
|
|
34076
|
+
})), ie = null, Y = null, Z = !0, oe = !0, ae = !1, ge = !0, ne = !1, he = !0, fe = !1, Ee = !1, Oe = !1, $e = !1, ke = !1, We = !1, pt = !0, Tt = !1;
|
|
34079
34077
|
const fn = "user-content-";
|
|
34080
34078
|
let vt = !0, Yt = !1, Ht = {}, de = null;
|
|
34081
34079
|
const _e = Dt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
@@ -34096,7 +34094,7 @@ function W4() {
|
|
|
34096
34094
|
let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
34097
34095
|
if (!(Et && Et === te)) {
|
|
34098
34096
|
if ((!te || typeof te != "object") && (te = {}), te = zl(te), kr = // eslint-disable-next-line unicorn/prefer-includes
|
|
34099
|
-
Wr.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? yl : te.PARSER_MEDIA_TYPE, ze = kr === "application/xhtml+xml" ? Jx : sb, G = Ao(te, "ALLOWED_TAGS") ? Dt({}, te.ALLOWED_TAGS, ze) : W, A = Ao(te, "ALLOWED_ATTR") ? Dt({}, te.ALLOWED_ATTR, ze) : J, dr = Ao(te, "ALLOWED_NAMESPACES") ? Dt({}, te.ALLOWED_NAMESPACES, Jx) : ir, ut = Ao(te, "ADD_URI_SAFE_ATTR") ? Dt(zl($n), te.ADD_URI_SAFE_ATTR, ze) : $n, Ue = Ao(te, "ADD_DATA_URI_TAGS") ? Dt(zl(Ke), te.ADD_DATA_URI_TAGS, ze) : Ke, de = Ao(te, "FORBID_CONTENTS") ? Dt({}, te.FORBID_CONTENTS, ze) : _e, ie = Ao(te, "FORBID_TAGS") ? Dt({}, te.FORBID_TAGS, ze) : {},
|
|
34097
|
+
Wr.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? yl : te.PARSER_MEDIA_TYPE, ze = kr === "application/xhtml+xml" ? Jx : sb, G = Ao(te, "ALLOWED_TAGS") ? Dt({}, te.ALLOWED_TAGS, ze) : W, A = Ao(te, "ALLOWED_ATTR") ? Dt({}, te.ALLOWED_ATTR, ze) : J, dr = Ao(te, "ALLOWED_NAMESPACES") ? Dt({}, te.ALLOWED_NAMESPACES, Jx) : ir, ut = Ao(te, "ADD_URI_SAFE_ATTR") ? Dt(zl($n), te.ADD_URI_SAFE_ATTR, ze) : $n, Ue = Ao(te, "ADD_DATA_URI_TAGS") ? Dt(zl(Ke), te.ADD_DATA_URI_TAGS, ze) : Ke, de = Ao(te, "FORBID_CONTENTS") ? Dt({}, te.FORBID_CONTENTS, ze) : _e, ie = Ao(te, "FORBID_TAGS") ? Dt({}, te.FORBID_TAGS, ze) : {}, Y = Ao(te, "FORBID_ATTR") ? Dt({}, te.FORBID_ATTR, ze) : {}, Ht = Ao(te, "USE_PROFILES") ? te.USE_PROFILES : !1, Z = te.ALLOW_ARIA_ATTR !== !1, oe = te.ALLOW_DATA_ATTR !== !1, ae = te.ALLOW_UNKNOWN_PROTOCOLS || !1, ge = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ne = te.SAFE_FOR_TEMPLATES || !1, he = te.SAFE_FOR_XML !== !1, fe = te.WHOLE_DOCUMENT || !1, $e = te.RETURN_DOM || !1, ke = te.RETURN_DOM_FRAGMENT || !1, We = te.RETURN_TRUSTED_TYPE || !1, Oe = te.FORCE_BODY || !1, pt = te.SANITIZE_DOM !== !1, Tt = te.SANITIZE_NAMED_PROPS || !1, vt = te.KEEP_CONTENT !== !1, Yt = te.IN_PLACE || !1, M = te.ALLOWED_URI_REGEXP || H4, Gn = te.NAMESPACE || hn, Ji = te.MATHML_TEXT_INTEGRATION_POINTS || Ji, Tr = te.HTML_INTEGRATION_POINTS || Tr, q = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && or(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (q.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && or(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (q.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (q.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ne && (oe = !1), ke && ($e = !0), Ht && (G = Dt({}, uM), A = [], Ht.html === !0 && (Dt(G, cM), Dt(A, dM)), Ht.svg === !0 && (Dt(G, ew), Dt(A, rw), Dt(A, xm)), Ht.svgFilters === !0 && (Dt(G, tw), Dt(A, rw), Dt(A, xm)), Ht.mathMl === !0 && (Dt(G, nw), Dt(A, fM), Dt(A, xm))), te.ADD_TAGS && (G === W && (G = zl(G)), Dt(G, te.ADD_TAGS, ze)), te.ADD_ATTR && (A === J && (A = zl(A)), Dt(A, te.ADD_ATTR, ze)), te.ADD_URI_SAFE_ATTR && Dt(ut, te.ADD_URI_SAFE_ATTR, ze), te.FORBID_CONTENTS && (de === _e && (de = zl(de)), Dt(de, te.FORBID_CONTENTS, ze)), vt && (G["#text"] = !0), fe && Dt(G, ["html", "head", "body"]), G.table && (Dt(G, ["tbody"]), delete ie.tbody), te.TRUSTED_TYPES_POLICY) {
|
|
34100
34098
|
if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
34101
34099
|
throw kf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
34102
34100
|
if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -34180,7 +34178,7 @@ function W4() {
|
|
|
34180
34178
|
);
|
|
34181
34179
|
}, ee = function(te) {
|
|
34182
34180
|
return te instanceof d && (typeof te.nodeName != "string" || typeof te.textContent != "string" || typeof te.removeChild != "function" || !(te.attributes instanceof u) || typeof te.removeAttribute != "function" || typeof te.setAttribute != "function" || typeof te.namespaceURI != "string" || typeof te.insertBefore != "function" || typeof te.hasChildNodes != "function");
|
|
34183
|
-
},
|
|
34181
|
+
}, Re = function(te) {
|
|
34184
34182
|
return typeof a == "function" && te instanceof a;
|
|
34185
34183
|
};
|
|
34186
34184
|
function Me(Fe, te, Se) {
|
|
@@ -34196,7 +34194,7 @@ function W4() {
|
|
|
34196
34194
|
if (Me(L.uponSanitizeElement, te, {
|
|
34197
34195
|
tagName: De,
|
|
34198
34196
|
allowedTags: G
|
|
34199
|
-
}), te.hasChildNodes() && !
|
|
34197
|
+
}), te.hasChildNodes() && !Re(te.firstElementChild) && Kr(/<[/\w]/g, te.innerHTML) && Kr(/<[/\w]/g, te.textContent) || te.nodeType === Of.progressingInstruction || he && te.nodeType === Of.comment && Kr(/<[/\w]/g, te.data))
|
|
34200
34198
|
return En(te), !0;
|
|
34201
34199
|
if (!G[De] || ie[De]) {
|
|
34202
34200
|
if (!ie[De] && Ut(De) && (q.tagNameCheck instanceof RegExp && Kr(q.tagNameCheck, De) || q.tagNameCheck instanceof Function && q.tagNameCheck(De)))
|
|
@@ -34221,9 +34219,9 @@ function W4() {
|
|
|
34221
34219
|
}, jt = function(te, Se, De) {
|
|
34222
34220
|
if (pt && (Se === "id" || Se === "name") && (De in n || De in Kt))
|
|
34223
34221
|
return !1;
|
|
34224
|
-
if (!(oe && !
|
|
34222
|
+
if (!(oe && !Y[Se] && Kr(N, Se))) {
|
|
34225
34223
|
if (!(Z && Kr(U, Se))) {
|
|
34226
|
-
if (!A[Se] ||
|
|
34224
|
+
if (!A[Se] || Y[Se]) {
|
|
34227
34225
|
if (
|
|
34228
34226
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
34229
34227
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -34246,7 +34244,7 @@ function W4() {
|
|
|
34246
34244
|
}
|
|
34247
34245
|
return !0;
|
|
34248
34246
|
}, Ut = function(te) {
|
|
34249
|
-
return te !== "annotation-xml" && lM(te,
|
|
34247
|
+
return te !== "annotation-xml" && lM(te, K);
|
|
34250
34248
|
}, Rt = function(te) {
|
|
34251
34249
|
Me(L.beforeSanitizeAttributes, te, null);
|
|
34252
34250
|
const {
|
|
@@ -34311,7 +34309,7 @@ function W4() {
|
|
|
34311
34309
|
};
|
|
34312
34310
|
return t.sanitize = function(Fe) {
|
|
34313
34311
|
let te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Se = null, De = null, Lt = null, xn = null;
|
|
34314
|
-
if (ln = !Fe, ln && (Fe = "<!-->"), typeof Fe != "string" && !
|
|
34312
|
+
if (ln = !Fe, ln && (Fe = "<!-->"), typeof Fe != "string" && !Re(Fe))
|
|
34315
34313
|
if (typeof Fe.toString == "function") {
|
|
34316
34314
|
if (Fe = Fe.toString(), typeof Fe != "string")
|
|
34317
34315
|
throw kf("dirty is not a string, aborting");
|
|
@@ -34319,7 +34317,7 @@ function W4() {
|
|
|
34319
34317
|
throw kf("toString is not a function");
|
|
34320
34318
|
if (!t.isSupported)
|
|
34321
34319
|
return Fe;
|
|
34322
|
-
if (
|
|
34320
|
+
if (Ee || sr(te), t.removed = [], typeof Fe == "string" && (Yt = !1), Yt) {
|
|
34323
34321
|
if (Fe.nodeName) {
|
|
34324
34322
|
const ai = ze(Fe.nodeName);
|
|
34325
34323
|
if (!G[ai] || ie[ai])
|
|
@@ -34355,9 +34353,9 @@ function W4() {
|
|
|
34355
34353
|
}), E && We ? E.createHTML(Qn) : Qn;
|
|
34356
34354
|
}, t.setConfig = function() {
|
|
34357
34355
|
let Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
34358
|
-
sr(Fe),
|
|
34356
|
+
sr(Fe), Ee = !0;
|
|
34359
34357
|
}, t.clearConfig = function() {
|
|
34360
|
-
Et = null,
|
|
34358
|
+
Et = null, Ee = !1;
|
|
34361
34359
|
}, t.isValidAttribute = function(Fe, te, Se) {
|
|
34362
34360
|
Et || sr({});
|
|
34363
34361
|
const De = ze(Fe), Lt = ze(te);
|
|
@@ -37342,16 +37340,16 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37342
37340
|
avoidCollisions: y,
|
|
37343
37341
|
//
|
|
37344
37342
|
...x
|
|
37345
|
-
} = e, w = hl(Oc, n), [_, E] = P.useState(null), [C, R] = P.useState(null), T = at(t, (
|
|
37343
|
+
} = e, w = hl(Oc, n), [_, E] = P.useState(null), [C, R] = P.useState(null), T = at(t, (Y) => E(Y)), [O, D] = P.useState(null), [F, L] = P.useState(
|
|
37346
37344
|
null
|
|
37347
37345
|
), j = b0(n), [X, B] = P.useState(!1), N = P.useRef(!1);
|
|
37348
37346
|
P.useEffect(() => {
|
|
37349
37347
|
if (_) return p0(_);
|
|
37350
37348
|
}, [_]), f0();
|
|
37351
37349
|
const U = P.useCallback(
|
|
37352
|
-
(
|
|
37350
|
+
(Y) => {
|
|
37353
37351
|
const [Z, ...oe] = j().map((ne) => ne.ref.current), [ae] = oe.slice(-1), ge = document.activeElement;
|
|
37354
|
-
for (const ne of
|
|
37352
|
+
for (const ne of Y)
|
|
37355
37353
|
if (ne === ge || (ne == null || ne.scrollIntoView({ block: "nearest" }), ne === Z && C && (C.scrollTop = 0), ne === ae && C && (C.scrollTop = C.scrollHeight), ne == null || ne.focus(), document.activeElement !== ge)) return;
|
|
37356
37354
|
},
|
|
37357
37355
|
[j, C]
|
|
@@ -37362,42 +37360,42 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37362
37360
|
P.useEffect(() => {
|
|
37363
37361
|
X && H();
|
|
37364
37362
|
}, [X, H]);
|
|
37365
|
-
const { onOpenChange: z, triggerPointerDownPosRef:
|
|
37363
|
+
const { onOpenChange: z, triggerPointerDownPosRef: K } = w;
|
|
37366
37364
|
P.useEffect(() => {
|
|
37367
37365
|
if (_) {
|
|
37368
|
-
let
|
|
37366
|
+
let Y = { x: 0, y: 0 };
|
|
37369
37367
|
const Z = (ae) => {
|
|
37370
37368
|
var ge, ne;
|
|
37371
|
-
|
|
37372
|
-
x: Math.abs(Math.round(ae.pageX) - (((ge =
|
|
37373
|
-
y: Math.abs(Math.round(ae.pageY) - (((ne =
|
|
37369
|
+
Y = {
|
|
37370
|
+
x: Math.abs(Math.round(ae.pageX) - (((ge = K.current) == null ? void 0 : ge.x) ?? 0)),
|
|
37371
|
+
y: Math.abs(Math.round(ae.pageY) - (((ne = K.current) == null ? void 0 : ne.y) ?? 0))
|
|
37374
37372
|
};
|
|
37375
37373
|
}, oe = (ae) => {
|
|
37376
|
-
|
|
37374
|
+
Y.x <= 10 && Y.y <= 10 ? ae.preventDefault() : _.contains(ae.target) || z(!1), document.removeEventListener("pointermove", Z), K.current = null;
|
|
37377
37375
|
};
|
|
37378
|
-
return
|
|
37376
|
+
return K.current !== null && (document.addEventListener("pointermove", Z), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
|
|
37379
37377
|
document.removeEventListener("pointermove", Z), document.removeEventListener("pointerup", oe, { capture: !0 });
|
|
37380
37378
|
};
|
|
37381
37379
|
}
|
|
37382
|
-
}, [_, z,
|
|
37383
|
-
const
|
|
37384
|
-
return window.addEventListener("blur",
|
|
37385
|
-
window.removeEventListener("blur",
|
|
37380
|
+
}, [_, z, K]), P.useEffect(() => {
|
|
37381
|
+
const Y = () => z(!1);
|
|
37382
|
+
return window.addEventListener("blur", Y), window.addEventListener("resize", Y), () => {
|
|
37383
|
+
window.removeEventListener("blur", Y), window.removeEventListener("resize", Y);
|
|
37386
37384
|
};
|
|
37387
37385
|
}, [z]);
|
|
37388
|
-
const [M, G] = H3((
|
|
37389
|
-
const Z = j().filter((ge) => !ge.disabled), oe = Z.find((ge) => ge.ref.current === document.activeElement), ae = V3(Z,
|
|
37386
|
+
const [M, G] = H3((Y) => {
|
|
37387
|
+
const Z = j().filter((ge) => !ge.disabled), oe = Z.find((ge) => ge.ref.current === document.activeElement), ae = V3(Z, Y, oe);
|
|
37390
37388
|
ae && setTimeout(() => ae.ref.current.focus());
|
|
37391
37389
|
}), W = P.useCallback(
|
|
37392
|
-
(
|
|
37390
|
+
(Y, Z, oe) => {
|
|
37393
37391
|
const ae = !N.current && !oe;
|
|
37394
|
-
(w.value !== void 0 && w.value === Z || ae) && (D(
|
|
37392
|
+
(w.value !== void 0 && w.value === Z || ae) && (D(Y), ae && (N.current = !0));
|
|
37395
37393
|
},
|
|
37396
37394
|
[w.value]
|
|
37397
37395
|
), A = P.useCallback(() => _ == null ? void 0 : _.focus(), [_]), J = P.useCallback(
|
|
37398
|
-
(
|
|
37396
|
+
(Y, Z, oe) => {
|
|
37399
37397
|
const ae = !N.current && !oe;
|
|
37400
|
-
(w.value !== void 0 && w.value === Z || ae) && L(
|
|
37398
|
+
(w.value !== void 0 && w.value === Z || ae) && L(Y);
|
|
37401
37399
|
},
|
|
37402
37400
|
[w.value]
|
|
37403
37401
|
), q = r === "popper" ? WS : E3, ie = q === WS ? {
|
|
@@ -37433,12 +37431,12 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37433
37431
|
{
|
|
37434
37432
|
asChild: !0,
|
|
37435
37433
|
trapped: w.open,
|
|
37436
|
-
onMountAutoFocus: (
|
|
37437
|
-
|
|
37434
|
+
onMountAutoFocus: (Y) => {
|
|
37435
|
+
Y.preventDefault();
|
|
37438
37436
|
},
|
|
37439
|
-
onUnmountAutoFocus: Pe(i, (
|
|
37437
|
+
onUnmountAutoFocus: Pe(i, (Y) => {
|
|
37440
37438
|
var Z;
|
|
37441
|
-
(Z = w.trigger) == null || Z.focus({ preventScroll: !0 }),
|
|
37439
|
+
(Z = w.trigger) == null || Z.focus({ preventScroll: !0 }), Y.preventDefault();
|
|
37442
37440
|
}),
|
|
37443
37441
|
children: /* @__PURE__ */ v.jsx(
|
|
37444
37442
|
Uc,
|
|
@@ -37447,7 +37445,7 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37447
37445
|
disableOutsidePointerEvents: !0,
|
|
37448
37446
|
onEscapeKeyDown: o,
|
|
37449
37447
|
onPointerDownOutside: s,
|
|
37450
|
-
onFocusOutside: (
|
|
37448
|
+
onFocusOutside: (Y) => Y.preventDefault(),
|
|
37451
37449
|
onDismiss: () => w.onOpenChange(!1),
|
|
37452
37450
|
children: /* @__PURE__ */ v.jsx(
|
|
37453
37451
|
q,
|
|
@@ -37456,7 +37454,7 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37456
37454
|
id: w.contentId,
|
|
37457
37455
|
"data-state": w.open ? "open" : "closed",
|
|
37458
37456
|
dir: w.dir,
|
|
37459
|
-
onContextMenu: (
|
|
37457
|
+
onContextMenu: (Y) => Y.preventDefault(),
|
|
37460
37458
|
...x,
|
|
37461
37459
|
...ie,
|
|
37462
37460
|
onPlaced: () => B(!0),
|
|
@@ -37469,15 +37467,15 @@ var Oo = 10, [_3, pl] = Gd(Oc), Ofe = "SelectContentImpl", C3 = P.forwardRef(
|
|
|
37469
37467
|
outline: "none",
|
|
37470
37468
|
...x.style
|
|
37471
37469
|
},
|
|
37472
|
-
onKeyDown: Pe(x.onKeyDown, (
|
|
37473
|
-
const Z =
|
|
37474
|
-
if (
|
|
37470
|
+
onKeyDown: Pe(x.onKeyDown, (Y) => {
|
|
37471
|
+
const Z = Y.ctrlKey || Y.altKey || Y.metaKey;
|
|
37472
|
+
if (Y.key === "Tab" && Y.preventDefault(), !Z && Y.key.length === 1 && G(Y.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(Y.key)) {
|
|
37475
37473
|
let ae = j().filter((ge) => !ge.disabled).map((ge) => ge.ref.current);
|
|
37476
|
-
if (["ArrowUp", "End"].includes(
|
|
37477
|
-
const ge =
|
|
37474
|
+
if (["ArrowUp", "End"].includes(Y.key) && (ae = ae.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(Y.key)) {
|
|
37475
|
+
const ge = Y.target, ne = ae.indexOf(ge);
|
|
37478
37476
|
ae = ae.slice(ne + 1);
|
|
37479
37477
|
}
|
|
37480
|
-
setTimeout(() => U(ae)),
|
|
37478
|
+
setTimeout(() => U(ae)), Y.preventDefault();
|
|
37481
37479
|
}
|
|
37482
37480
|
})
|
|
37483
37481
|
}
|
|
@@ -37496,24 +37494,24 @@ var Mfe = "SelectItemAlignedPosition", E3 = P.forwardRef((e, t) => {
|
|
|
37496
37494
|
if (o.trigger && o.valueNode && a && c && b && y && x) {
|
|
37497
37495
|
const T = o.trigger.getBoundingClientRect(), O = c.getBoundingClientRect(), D = o.valueNode.getBoundingClientRect(), F = x.getBoundingClientRect();
|
|
37498
37496
|
if (o.dir !== "rtl") {
|
|
37499
|
-
const ge = F.left - O.left, ne = D.left - ge, he = T.left - ne, fe = T.width + he,
|
|
37497
|
+
const ge = F.left - O.left, ne = D.left - ge, he = T.left - ne, fe = T.width + he, Ee = Math.max(fe, O.width), Oe = window.innerWidth - Oo, $e = HS(ne, [
|
|
37500
37498
|
Oo,
|
|
37501
37499
|
// Prevents the content from going off the starting edge of the
|
|
37502
37500
|
// viewport. It may still go off the ending edge, but this can be
|
|
37503
37501
|
// controlled by the user since they may want to manage overflow in a
|
|
37504
37502
|
// specific way.
|
|
37505
37503
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
37506
|
-
Math.max(Oo, Oe -
|
|
37504
|
+
Math.max(Oo, Oe - Ee)
|
|
37507
37505
|
]);
|
|
37508
37506
|
a.style.minWidth = fe + "px", a.style.left = $e + "px";
|
|
37509
37507
|
} else {
|
|
37510
|
-
const ge = O.right - F.right, ne = window.innerWidth - D.right - ge, he = window.innerWidth - T.right - ne, fe = T.width + he,
|
|
37508
|
+
const ge = O.right - F.right, ne = window.innerWidth - D.right - ge, he = window.innerWidth - T.right - ne, fe = T.width + he, Ee = Math.max(fe, O.width), Oe = window.innerWidth - Oo, $e = HS(ne, [
|
|
37511
37509
|
Oo,
|
|
37512
|
-
Math.max(Oo, Oe -
|
|
37510
|
+
Math.max(Oo, Oe - Ee)
|
|
37513
37511
|
]);
|
|
37514
37512
|
a.style.minWidth = fe + "px", a.style.right = $e + "px";
|
|
37515
37513
|
}
|
|
37516
|
-
const L = p(), j = window.innerHeight - Oo * 2, X = b.scrollHeight, B = window.getComputedStyle(c), N = parseInt(B.borderTopWidth, 10), U = parseInt(B.paddingTop, 10), H = parseInt(B.borderBottomWidth, 10), z = parseInt(B.paddingBottom, 10),
|
|
37514
|
+
const L = p(), j = window.innerHeight - Oo * 2, X = b.scrollHeight, B = window.getComputedStyle(c), N = parseInt(B.borderTopWidth, 10), U = parseInt(B.paddingTop, 10), H = parseInt(B.borderBottomWidth, 10), z = parseInt(B.paddingBottom, 10), K = N + U + X + z + H, M = Math.min(y.offsetHeight * 5, K), G = window.getComputedStyle(b), W = parseInt(G.paddingTop, 10), A = parseInt(G.paddingBottom, 10), J = T.top + T.height / 2 - Oo, q = j - J, ie = y.offsetHeight / 2, Y = y.offsetTop + ie, Z = N + U + Y, oe = K - Z;
|
|
37517
37515
|
if (Z <= J) {
|
|
37518
37516
|
const ge = L.length > 0 && y === L[L.length - 1].ref.current;
|
|
37519
37517
|
a.style.bottom = "0px";
|
|
@@ -38752,7 +38750,7 @@ function She({
|
|
|
38752
38750
|
function X() {
|
|
38753
38751
|
var B, N, U, H;
|
|
38754
38752
|
if (o === "date") {
|
|
38755
|
-
const z = che(h, b),
|
|
38753
|
+
const z = che(h, b), K = {
|
|
38756
38754
|
columnIdx: e,
|
|
38757
38755
|
type: o,
|
|
38758
38756
|
options: z
|
|
@@ -38764,7 +38762,7 @@ function She({
|
|
|
38764
38762
|
...((B = i == null ? void 0 : i.columnSettings) == null ? void 0 : B.filter(
|
|
38765
38763
|
(M) => M.columnIdx !== e
|
|
38766
38764
|
)) || [],
|
|
38767
|
-
|
|
38765
|
+
K
|
|
38768
38766
|
]
|
|
38769
38767
|
});
|
|
38770
38768
|
} else if (o === "number") {
|
|
@@ -38787,7 +38785,7 @@ function She({
|
|
|
38787
38785
|
},
|
|
38788
38786
|
colorRanges: d.length > 0 ? d : void 0
|
|
38789
38787
|
};
|
|
38790
|
-
const
|
|
38788
|
+
const K = {
|
|
38791
38789
|
columnIdx: e,
|
|
38792
38790
|
type: o,
|
|
38793
38791
|
textAlign: a,
|
|
@@ -38801,7 +38799,7 @@ function She({
|
|
|
38801
38799
|
...((N = i == null ? void 0 : i.columnSettings) == null ? void 0 : N.filter(
|
|
38802
38800
|
(M) => M.columnIdx !== e
|
|
38803
38801
|
)) || [],
|
|
38804
|
-
|
|
38802
|
+
K
|
|
38805
38803
|
]
|
|
38806
38804
|
});
|
|
38807
38805
|
} else if (o === "html") {
|
|
@@ -38816,7 +38814,7 @@ function She({
|
|
|
38816
38814
|
...i,
|
|
38817
38815
|
columnSettings: [
|
|
38818
38816
|
...((U = i == null ? void 0 : i.columnSettings) == null ? void 0 : U.filter(
|
|
38819
|
-
(
|
|
38817
|
+
(K) => K.columnIdx !== e
|
|
38820
38818
|
)) || [],
|
|
38821
38819
|
z
|
|
38822
38820
|
]
|
|
@@ -38833,7 +38831,7 @@ function She({
|
|
|
38833
38831
|
...i,
|
|
38834
38832
|
columnSettings: [
|
|
38835
38833
|
...((H = i == null ? void 0 : i.columnSettings) == null ? void 0 : H.filter(
|
|
38836
|
-
(
|
|
38834
|
+
(K) => K.columnIdx !== e
|
|
38837
38835
|
)) || [],
|
|
38838
38836
|
z
|
|
38839
38837
|
]
|
|
@@ -39118,8 +39116,8 @@ function Che({ data: e, card: t }) {
|
|
|
39118
39116
|
{
|
|
39119
39117
|
style: B,
|
|
39120
39118
|
onClick: (H) => {
|
|
39121
|
-
var
|
|
39122
|
-
const z = ((
|
|
39119
|
+
var K;
|
|
39120
|
+
const z = ((K = window == null ? void 0 : window.getSelection()) == null ? void 0 : K.toString()) || "";
|
|
39123
39121
|
(z == null ? void 0 : z.length) > 0 && H.stopPropagation();
|
|
39124
39122
|
},
|
|
39125
39123
|
className: be("", {
|
|
@@ -42574,8 +42572,8 @@ function ej() {
|
|
|
42574
42572
|
}
|
|
42575
42573
|
function Dme(e, t) {
|
|
42576
42574
|
var n = Cn(), r = ej(), i = GE(), o = YE(), s = XE(), a = s.focusDayAfter, l = s.focusDayBefore, c = s.focusWeekAfter, u = s.focusWeekBefore, d = s.blur, p = s.focus, h = s.focusMonthBefore, m = s.focusMonthAfter, b = s.focusYearBefore, y = s.focusYearAfter, x = s.focusStartOfWeek, w = s.focusEndOfWeek, _ = function(H) {
|
|
42577
|
-
var z,
|
|
42578
|
-
_0(n) ? (z = r.onDayClick) === null || z === void 0 || z.call(r, e, t, H) : Np(n) ? (
|
|
42575
|
+
var z, K, M, G;
|
|
42576
|
+
_0(n) ? (z = r.onDayClick) === null || z === void 0 || z.call(r, e, t, H) : Np(n) ? (K = i.onDayClick) === null || K === void 0 || K.call(i, e, t, H) : Lp(n) ? (M = o.onDayClick) === null || M === void 0 || M.call(o, e, t, H) : (G = n.onDayClick) === null || G === void 0 || G.call(n, e, t, H);
|
|
42579
42577
|
}, E = function(H) {
|
|
42580
42578
|
var z;
|
|
42581
42579
|
p(e), (z = n.onDayFocus) === null || z === void 0 || z.call(n, e, t, H);
|
|
@@ -45147,17 +45145,17 @@ function c0e({ children: e, enabled: t = !0 }) {
|
|
|
45147
45145
|
let B = _.elements.floating;
|
|
45148
45146
|
if (!B) return;
|
|
45149
45147
|
let N = parseFloat(getComputedStyle(B).scrollPaddingBottom) || 0, U = Math.min(sI, B.childElementCount), H = 0, z = 0;
|
|
45150
|
-
for (let
|
|
45151
|
-
let M =
|
|
45148
|
+
for (let K of (X = (j = _.elements.floating) == null ? void 0 : j.childNodes) != null ? X : []) if (K instanceof HTMLElement) {
|
|
45149
|
+
let M = K.offsetTop, G = M + K.clientHeight + N, W = B.scrollTop, A = W + B.clientHeight;
|
|
45152
45150
|
if (M >= W && G <= A) U--;
|
|
45153
45151
|
else {
|
|
45154
|
-
z = Math.max(0, Math.min(G, A) - Math.max(M, W)), H =
|
|
45152
|
+
z = Math.max(0, Math.min(G, A) - Math.max(M, W)), H = K.clientHeight;
|
|
45155
45153
|
break;
|
|
45156
45154
|
}
|
|
45157
45155
|
}
|
|
45158
|
-
U >= 1 && o((
|
|
45156
|
+
U >= 1 && o((K) => {
|
|
45159
45157
|
let M = H * U - z + N;
|
|
45160
|
-
return
|
|
45158
|
+
return K >= M ? K : M;
|
|
45161
45159
|
});
|
|
45162
45160
|
} }) : null, d4({ padding: h, apply({ availableWidth: L, availableHeight: j, elements: X }) {
|
|
45163
45161
|
Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${L}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${j}px)` });
|
|
@@ -45487,16 +45485,16 @@ function D0e(e, t) {
|
|
|
45487
45485
|
let N0e = mo;
|
|
45488
45486
|
function L0e(e, t) {
|
|
45489
45487
|
var n, r;
|
|
45490
|
-
let i = JE(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: p, __demoMode: h = !1, multiple: m = !1, immediate: b = !1, virtual: y = null, nullable: x, ...w } = e, _ = kbe(s), [E = m ? [] : void 0, C] = Tbe(o, a, _), [R, T] = UD(D0e, { dataRef: Tq(), comboboxState: h ? 0 : 1, isTyping: !1, options: [], virtual: y ? { options: y.options, disabled: (n = y.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: h }), O = Le(!1), D = Le({ static: !1, hold: !1 }), F = cye(u), L = Ze((fe) => y ? u === null ? y.options.indexOf(fe) : y.options.findIndex((
|
|
45488
|
+
let i = JE(), { value: o, defaultValue: s, onChange: a, form: l, name: c, by: u, disabled: d = i || !1, onClose: p, __demoMode: h = !1, multiple: m = !1, immediate: b = !1, virtual: y = null, nullable: x, ...w } = e, _ = kbe(s), [E = m ? [] : void 0, C] = Tbe(o, a, _), [R, T] = UD(D0e, { dataRef: Tq(), comboboxState: h ? 0 : 1, isTyping: !1, options: [], virtual: y ? { options: y.options, disabled: (n = y.disabled) != null ? n : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: h }), O = Le(!1), D = Le({ static: !1, hold: !1 }), F = cye(u), L = Ze((fe) => y ? u === null ? y.options.indexOf(fe) : y.options.findIndex((Ee) => F(Ee, fe)) : R.options.findIndex((Ee) => F(Ee.dataRef.current.value, fe))), j = Ct((fe) => zo(B.mode, { 1: () => E.some((Ee) => F(Ee, fe)), 0: () => F(E, fe) }), [E]), X = Ze((fe) => R.activeOptionIndex === L(fe)), B = mn(() => ({ ...R, immediate: b, optionsPropsRef: D, value: E, defaultValue: _, disabled: d, mode: m ? 1 : 0, virtual: y ? R.virtual : null, get activeOptionIndex() {
|
|
45491
45489
|
if (O.current && R.activeOptionIndex === null && (y ? y.options.length > 0 : R.options.length > 0)) {
|
|
45492
45490
|
if (y) {
|
|
45493
|
-
let
|
|
45491
|
+
let Ee = y.options.findIndex((Oe) => {
|
|
45494
45492
|
var $e, ke;
|
|
45495
45493
|
return !((ke = ($e = y.disabled) == null ? void 0 : $e.call(y, Oe)) != null && ke);
|
|
45496
45494
|
});
|
|
45497
|
-
if (
|
|
45495
|
+
if (Ee !== -1) return Ee;
|
|
45498
45496
|
}
|
|
45499
|
-
let fe = R.options.findIndex((
|
|
45497
|
+
let fe = R.options.findIndex((Ee) => !Ee.dataRef.current.disabled);
|
|
45500
45498
|
if (fe !== -1) return fe;
|
|
45501
45499
|
}
|
|
45502
45500
|
return R.activeOptionIndex;
|
|
@@ -45510,8 +45508,8 @@ function L0e(e, t) {
|
|
|
45510
45508
|
let N = B.comboboxState === 0;
|
|
45511
45509
|
_ye(N, [B.buttonElement, B.inputElement, B.optionsElement], () => Z.closeCombobox());
|
|
45512
45510
|
let U = mn(() => {
|
|
45513
|
-
var fe,
|
|
45514
|
-
return { open: B.comboboxState === 0, disabled: d, activeIndex: B.activeOptionIndex, activeOption: B.activeOptionIndex === null ? null : B.virtual ? B.virtual.options[(fe = B.activeOptionIndex) != null ? fe : 0] : (Oe = (
|
|
45511
|
+
var fe, Ee, Oe;
|
|
45512
|
+
return { open: B.comboboxState === 0, disabled: d, activeIndex: B.activeOptionIndex, activeOption: B.activeOptionIndex === null ? null : B.virtual ? B.virtual.options[(fe = B.activeOptionIndex) != null ? fe : 0] : (Oe = (Ee = B.options[B.activeOptionIndex]) == null ? void 0 : Ee.dataRef.current.value) != null ? Oe : null, value: E };
|
|
45515
45513
|
}, [B, d, E]), H = Ze(() => {
|
|
45516
45514
|
if (B.activeOptionIndex !== null) {
|
|
45517
45515
|
if (Z.setIsTyping(!1), B.virtual) A(B.virtual.options[B.activeOptionIndex]);
|
|
@@ -45523,26 +45521,26 @@ function L0e(e, t) {
|
|
|
45523
45521
|
}
|
|
45524
45522
|
}), z = Ze(() => {
|
|
45525
45523
|
T({ type: 0 }), O.current = !0;
|
|
45526
|
-
}),
|
|
45524
|
+
}), K = Ze(() => {
|
|
45527
45525
|
T({ type: 1 }), O.current = !1, p == null || p();
|
|
45528
45526
|
}), M = Ze((fe) => {
|
|
45529
45527
|
T({ type: 3, isTyping: fe });
|
|
45530
|
-
}), G = Ze((fe,
|
|
45531
|
-
B.isActive(
|
|
45528
|
+
}), G = Ze((fe, Ee, Oe) => (O.current = !1, fe === Jn.Specific ? T({ type: 2, focus: Jn.Specific, idx: Ee, trigger: Oe }) : T({ type: 2, focus: fe, trigger: Oe }))), W = Ze((fe, Ee) => (T({ type: 4, payload: { id: fe, dataRef: Ee } }), () => {
|
|
45529
|
+
B.isActive(Ee.current.value) && (O.current = !0), T({ type: 5, id: fe });
|
|
45532
45530
|
})), A = Ze((fe) => zo(B.mode, { 0() {
|
|
45533
45531
|
return C == null ? void 0 : C(fe);
|
|
45534
45532
|
}, 1() {
|
|
45535
|
-
let
|
|
45536
|
-
return Oe === -1 ?
|
|
45533
|
+
let Ee = B.value.slice(), Oe = Ee.findIndex(($e) => F($e, fe));
|
|
45534
|
+
return Oe === -1 ? Ee.push(fe) : Ee.splice(Oe, 1), C == null ? void 0 : C(Ee);
|
|
45537
45535
|
} })), J = Ze((fe) => {
|
|
45538
45536
|
T({ type: 6, trigger: fe });
|
|
45539
45537
|
}), q = Ze((fe) => {
|
|
45540
45538
|
T({ type: 8, element: fe });
|
|
45541
45539
|
}), ie = Ze((fe) => {
|
|
45542
45540
|
T({ type: 9, element: fe });
|
|
45543
|
-
}),
|
|
45541
|
+
}), Y = Ze((fe) => {
|
|
45544
45542
|
T({ type: 10, element: fe });
|
|
45545
|
-
}), Z = mn(() => ({ onChange: A, registerOption: W, goToOption: G, setIsTyping: M, closeCombobox:
|
|
45543
|
+
}), Z = mn(() => ({ onChange: A, registerOption: W, goToOption: G, setIsTyping: M, closeCombobox: K, openCombobox: z, setActivationTrigger: J, selectActiveOption: H, setInputElement: q, setButtonElement: ie, setOptionsElement: Y }), []), [oe, ae] = Wbe(), ge = t === null ? {} : { ref: t }, ne = Ct(() => {
|
|
45546
45544
|
if (_ !== void 0) return C == null ? void 0 : C(_);
|
|
45547
45545
|
}, [C, _]), he = Zi();
|
|
45548
45546
|
return ue.createElement(ae, { value: oe, props: { htmlFor: (r = B.inputElement) == null ? void 0 : r.id }, slot: { open: B.comboboxState === 0, disabled: d } }, ue.createElement(c0e, null, ue.createElement(cR.Provider, { value: Z }, ue.createElement(Yh.Provider, { value: B }, ue.createElement(Lj, { value: zo(B.comboboxState, { 0: jo.Open, 1: jo.Closed }) }, c != null && ue.createElement(Dbe, { disabled: d, data: E != null ? { [c]: E } : {}, form: l, onReset: ne }), he({ ourProps: ge, theirProps: w, slot: U, defaultTag: N0e, name: "Combobox" }))))));
|
|
@@ -45558,19 +45556,19 @@ function j0e(e, t) {
|
|
|
45558
45556
|
}, [a.value, h]);
|
|
45559
45557
|
eI(([A, J], [q, ie]) => {
|
|
45560
45558
|
if (a.isTyping) return;
|
|
45561
|
-
let
|
|
45562
|
-
|
|
45563
|
-
if (a.isTyping || !
|
|
45564
|
-
let { selectionStart: Z, selectionEnd: oe } =
|
|
45565
|
-
Math.abs((oe ?? 0) - (Z ?? 0)) === 0 && Z === 0 &&
|
|
45559
|
+
let Y = w.current;
|
|
45560
|
+
Y && ((ie === 0 && J === 1 || A !== q) && (Y.value = A), requestAnimationFrame(() => {
|
|
45561
|
+
if (a.isTyping || !Y || (E == null ? void 0 : E.activeElement) !== Y) return;
|
|
45562
|
+
let { selectionStart: Z, selectionEnd: oe } = Y;
|
|
45563
|
+
Math.abs((oe ?? 0) - (Z ?? 0)) === 0 && Z === 0 && Y.setSelectionRange(Y.value.length, Y.value.length);
|
|
45566
45564
|
}));
|
|
45567
45565
|
}, [T, a.comboboxState, E, a.isTyping]), eI(([A], [J]) => {
|
|
45568
45566
|
if (A === 0 && J === 1) {
|
|
45569
45567
|
if (a.isTyping) return;
|
|
45570
45568
|
let q = w.current;
|
|
45571
45569
|
if (!q) return;
|
|
45572
|
-
let ie = q.value, { selectionStart:
|
|
45573
|
-
q.value = "", q.value = ie, oe !== null ? q.setSelectionRange(
|
|
45570
|
+
let ie = q.value, { selectionStart: Y, selectionEnd: Z, selectionDirection: oe } = q;
|
|
45571
|
+
q.value = "", q.value = ie, oe !== null ? q.setSelectionRange(Y, Z, oe) : q.setSelectionRange(Y, Z);
|
|
45574
45572
|
}
|
|
45575
45573
|
}, [a.comboboxState]);
|
|
45576
45574
|
let O = Le(!1), D = Ze(() => {
|
|
@@ -45616,15 +45614,15 @@ function j0e(e, t) {
|
|
|
45616
45614
|
p == null || p(A), a.mode === 0 && A.target.value === "" && R(), l.openCombobox();
|
|
45617
45615
|
}), X = Ze((A) => {
|
|
45618
45616
|
var J, q, ie;
|
|
45619
|
-
let
|
|
45620
|
-
if (!((q = a.optionsElement) != null && q.contains(
|
|
45617
|
+
let Y = (J = A.relatedTarget) != null ? J : Vl.find((Z) => Z !== A.currentTarget);
|
|
45618
|
+
if (!((q = a.optionsElement) != null && q.contains(Y)) && !((ie = a.buttonElement) != null && ie.contains(Y)) && a.comboboxState === 0) return A.preventDefault(), a.mode === 0 && a.value === null && R(), l.closeCombobox();
|
|
45621
45619
|
}), B = Ze((A) => {
|
|
45622
45620
|
var J, q, ie;
|
|
45623
|
-
let
|
|
45624
|
-
(q = a.buttonElement) != null && q.contains(
|
|
45621
|
+
let Y = (J = A.relatedTarget) != null ? J : Vl.find((Z) => Z !== A.currentTarget);
|
|
45622
|
+
(q = a.buttonElement) != null && q.contains(Y) || (ie = a.optionsElement) != null && ie.contains(Y) || a.disabled || a.immediate && a.comboboxState !== 0 && C.microTask(() => {
|
|
45625
45623
|
Gl(() => l.openCombobox()), l.setActivationTrigger(1);
|
|
45626
45624
|
});
|
|
45627
|
-
}), N = E0(), U = zbe(), { isFocused: H, focusProps: z } = hj({ autoFocus: b }), { isHovered:
|
|
45625
|
+
}), N = E0(), U = zbe(), { isFocused: H, focusProps: z } = hj({ autoFocus: b }), { isHovered: K, hoverProps: M } = fj({ isDisabled: m }), G = mn(() => ({ open: a.comboboxState === 0, disabled: m, hover: K, focus: H, autofocus: b }), [a, K, H, b, m]), W = eR({ ref: _, id: d, role: "combobox", type: y, "aria-controls": (n = a.optionsElement) == null ? void 0 : n.id, "aria-expanded": a.comboboxState === 0, "aria-activedescendant": a.activeOptionIndex === null ? void 0 : a.virtual ? (r = a.options.find((A) => !A.dataRef.current.disabled && a.compare(A.dataRef.current.value, a.virtual.options[a.activeOptionIndex]))) == null ? void 0 : r.id : (i = a.options[a.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": N, "aria-describedby": U, "aria-autocomplete": "list", defaultValue: (s = (o = e.defaultValue) != null ? o : a.defaultValue !== void 0 ? h == null ? void 0 : h(a.defaultValue) : null) != null ? s : a.defaultValue, disabled: m || void 0, autoFocus: b, onCompositionStart: D, onCompositionEnd: F, onKeyDown: L, onChange: j, onFocus: B, onBlur: X }, z, M);
|
|
45628
45626
|
return Zi()({ ourProps: W, theirProps: x, slot: G, defaultTag: F0e, name: "Combobox.Input" });
|
|
45629
45627
|
}
|
|
45630
45628
|
let $0e = "button";
|
|
@@ -45678,7 +45676,7 @@ function V0e(e, t) {
|
|
|
45678
45676
|
m.setActivationTrigger(0);
|
|
45679
45677
|
}), N = Ze((W) => {
|
|
45680
45678
|
W.preventDefault(), m.setActivationTrigger(0);
|
|
45681
|
-
}), U = eR(b ? E() : {}, { "aria-labelledby": j, role: "listbox", "aria-multiselectable": h.mode === 1 ? !0 : void 0, id: s, ref: C, style: { ...p.style, ...x, "--input-width": qM(h.inputElement, !0).width, "--button-width": qM(h.buttonElement, !0).width }, onWheel: h.activationTrigger === 0 ? void 0 : B, onMouseDown: N, ...Oj(D) }), H = O && h.comboboxState === 1, z = s_(H, (r = h.virtual) == null ? void 0 : r.options),
|
|
45679
|
+
}), U = eR(b ? E() : {}, { "aria-labelledby": j, role: "listbox", "aria-multiselectable": h.mode === 1 ? !0 : void 0, id: s, ref: C, style: { ...p.style, ...x, "--input-width": qM(h.inputElement, !0).width, "--button-width": qM(h.buttonElement, !0).width }, onWheel: h.activationTrigger === 0 ? void 0 : B, onMouseDown: N, ...Oj(D) }), H = O && h.comboboxState === 1, z = s_(H, (r = h.virtual) == null ? void 0 : r.options), K = s_(H, h.value), M = Ze((W) => h.compare(K, W));
|
|
45682
45680
|
if (h.virtual) {
|
|
45683
45681
|
if (z === void 0) throw new Error("Missing `options` in virtual mode");
|
|
45684
45682
|
Object.assign(p, { children: ue.createElement(Yh.Provider, { value: z !== h.virtual.options ? { ...h, virtual: { ...h.virtual, options: z } } : h }, ue.createElement(I0e, { slot: X }, p.children)) });
|
|
@@ -45793,19 +45791,19 @@ function J0e(e, t) {
|
|
|
45793
45791
|
dn(() => {
|
|
45794
45792
|
if (E && N && F === "visible" && _.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
45795
45793
|
}, [_, F, N, E]);
|
|
45796
|
-
let U = D && !O, H = O && T && D, z = Le(!1),
|
|
45794
|
+
let U = D && !O, H = O && T && D, z = Le(!1), K = Uj(() => {
|
|
45797
45795
|
z.current || (L("hidden"), B(_));
|
|
45798
|
-
}, j), M = Ze((
|
|
45796
|
+
}, j), M = Ze((Y) => {
|
|
45799
45797
|
z.current = !0;
|
|
45800
|
-
let Z =
|
|
45801
|
-
|
|
45798
|
+
let Z = Y ? "enter" : "leave";
|
|
45799
|
+
K.onStart(_, Z, (oe) => {
|
|
45802
45800
|
oe === "enter" ? o == null || o() : oe === "leave" && (a == null || a());
|
|
45803
45801
|
});
|
|
45804
|
-
}), G = Ze((
|
|
45805
|
-
let Z =
|
|
45806
|
-
z.current = !1,
|
|
45802
|
+
}), G = Ze((Y) => {
|
|
45803
|
+
let Z = Y ? "enter" : "leave";
|
|
45804
|
+
z.current = !1, K.onStop(_, Z, (oe) => {
|
|
45807
45805
|
oe === "enter" ? s == null || s() : oe === "leave" && (l == null || l());
|
|
45808
|
-
}), Z === "leave" && !k0(
|
|
45806
|
+
}), Z === "leave" && !k0(K) && (L("hidden"), B(_));
|
|
45809
45807
|
});
|
|
45810
45808
|
Ve(() => {
|
|
45811
45809
|
E && i || (M(T), G(T));
|
|
@@ -45813,7 +45811,7 @@ function J0e(e, t) {
|
|
|
45813
45811
|
let W = !(!i || !E || !N || U), [, A] = Mj(W, x, T, { start: M, end: G }), J = Da({ ref: C, className: ((r = n_(y.className, H && c, H && u, A.enter && c, A.enter && A.closed && u, A.enter && !A.closed && d, A.leave && h, A.leave && !A.closed && m, A.leave && A.closed && b, !A.transition && T && p)) == null ? void 0 : r.trim()) || void 0, ...Oj(A) }), q = 0;
|
|
45814
45812
|
F === "visible" && (q |= jo.Open), F === "hidden" && (q |= jo.Closed), A.enter && (q |= jo.Opening), A.leave && (q |= jo.Closing);
|
|
45815
45813
|
let ie = Zi();
|
|
45816
|
-
return ue.createElement(T0.Provider, { value:
|
|
45814
|
+
return ue.createElement(T0.Provider, { value: K }, ue.createElement(Lj, { value: q }, ie({ ourProps: J, theirProps: y, defaultTag: Gj, features: qj, visible: F === "visible", name: "Transition.Child" })));
|
|
45817
45815
|
}
|
|
45818
45816
|
function eve(e, t) {
|
|
45819
45817
|
let { show: n, appear: r = !1, unmount: i = !0, ...o } = e, s = Le(null), a = Wj(e), l = Uo(...a ? [s, t] : t === null ? [] : [t]);
|
|
@@ -46564,7 +46562,7 @@ function _ve({ card: e, frame: t }) {
|
|
|
46564
46562
|
handleDatapointClick: R
|
|
46565
46563
|
} = YF(e);
|
|
46566
46564
|
function T() {
|
|
46567
|
-
var H, z,
|
|
46565
|
+
var H, z, K;
|
|
46568
46566
|
if (n && n.length > 0) {
|
|
46569
46567
|
const M = n.find((G) => G.cardId === e.id);
|
|
46570
46568
|
if (M && M.replaceDefault) {
|
|
@@ -46578,7 +46576,7 @@ function _ve({ card: e, frame: t }) {
|
|
|
46578
46576
|
if (((z = t == null ? void 0 : t.cards) == null ? void 0 : z.length) > 1)
|
|
46579
46577
|
return /* @__PURE__ */ v.jsx(Sve, { frame: t });
|
|
46580
46578
|
}
|
|
46581
|
-
return e.type === "text" && ((
|
|
46579
|
+
return e.type === "text" && ((K = t == null ? void 0 : t.cards) == null ? void 0 : K.length) === 1 ? /* @__PURE__ */ v.jsx(Gu, { className: "mx-3 my-6 overflow-y-auto break-words px-3", children: /* @__PURE__ */ v.jsx(
|
|
46582
46580
|
LS,
|
|
46583
46581
|
{
|
|
46584
46582
|
isLoading: x || w,
|
|
@@ -46590,8 +46588,8 @@ function _ve({ card: e, frame: t }) {
|
|
|
46590
46588
|
function O() {
|
|
46591
46589
|
return ["{{ filters | where }}", "{{ filters | and }}"].some(
|
|
46592
46590
|
(z) => {
|
|
46593
|
-
var
|
|
46594
|
-
return (
|
|
46591
|
+
var K;
|
|
46592
|
+
return (K = e.sql) == null ? void 0 : K.includes(z);
|
|
46595
46593
|
}
|
|
46596
46594
|
) ? /* @__PURE__ */ v.jsx(Due, {}) : null;
|
|
46597
46595
|
}
|
|
@@ -46659,7 +46657,7 @@ function _ve({ card: e, frame: t }) {
|
|
|
46659
46657
|
return null;
|
|
46660
46658
|
}
|
|
46661
46659
|
function L() {
|
|
46662
|
-
var H, z,
|
|
46660
|
+
var H, z, K;
|
|
46663
46661
|
return /* @__PURE__ */ v.jsx(
|
|
46664
46662
|
QN,
|
|
46665
46663
|
{
|
|
@@ -46679,12 +46677,12 @@ function _ve({ card: e, frame: t }) {
|
|
|
46679
46677
|
borderRadius: (z = (H = i == null ? void 0 : i.chart) == null ? void 0 : H.options) == null ? void 0 : z.borderRadius
|
|
46680
46678
|
},
|
|
46681
46679
|
className: "flex-end flex-wrap items-center",
|
|
46682
|
-
children: (
|
|
46680
|
+
children: (K = t.cards.filter(
|
|
46683
46681
|
(M) => {
|
|
46684
46682
|
var G;
|
|
46685
46683
|
return !((G = M.tabTitle) != null && G.endsWith("__Header")) && (M.displayTab === !0 || M.displayTab === void 0);
|
|
46686
46684
|
}
|
|
46687
|
-
)) == null ? void 0 :
|
|
46685
|
+
)) == null ? void 0 : K.map((M) => {
|
|
46688
46686
|
var G, W;
|
|
46689
46687
|
return /* @__PURE__ */ v.jsx(
|
|
46690
46688
|
aC,
|
|
@@ -47237,7 +47235,7 @@ function Jve(e) {
|
|
|
47237
47235
|
}
|
|
47238
47236
|
var exe = (e) => {
|
|
47239
47237
|
var t, n, r, i, o, s, a, l, c, u, d;
|
|
47240
|
-
let { invert: p, toast: h, unstyled: m, interacting: b, setHeights: y, visibleToasts: x, heights: w, index: _, toasts: E, expanded: C, removeToast: R, defaultRichColors: T, closeButton: O, style: D, cancelButtonStyle: F, actionButtonStyle: L, className: j = "", descriptionClassName: X = "", duration: B, position: N, gap: U, loadingIcon: H, expandByDefault: z, classNames:
|
|
47238
|
+
let { invert: p, toast: h, unstyled: m, interacting: b, setHeights: y, visibleToasts: x, heights: w, index: _, toasts: E, expanded: C, removeToast: R, defaultRichColors: T, closeButton: O, style: D, cancelButtonStyle: F, actionButtonStyle: L, className: j = "", descriptionClassName: X = "", duration: B, position: N, gap: U, loadingIcon: H, expandByDefault: z, classNames: K, icons: M, closeButtonAriaLabel: G = "Close toast", pauseWhenPageIsHidden: W } = e, [A, J] = ue.useState(null), [q, ie] = ue.useState(null), [Y, Z] = ue.useState(!1), [oe, ae] = ue.useState(!1), [ge, ne] = ue.useState(!1), [he, fe] = ue.useState(!1), [Ee, Oe] = ue.useState(!1), [$e, ke] = ue.useState(0), [We, pt] = ue.useState(0), Tt = ue.useRef(h.duration || B || cI), fn = ue.useRef(null), vt = ue.useRef(null), Yt = _ === 0, Ht = _ + 1 <= x, de = h.type, _e = h.dismissible !== !1, Ue = h.className || "", Ke = h.descriptionClassName || "", ut = ue.useMemo(() => w.findIndex((ze) => ze.toastId === h.id) || 0, [w, h.id]), $n = ue.useMemo(() => {
|
|
47241
47239
|
var ze;
|
|
47242
47240
|
return (ze = h.closeButton) != null ? ze : O;
|
|
47243
47241
|
}, [h.closeButton, O]), Un = ue.useMemo(() => h.duration || B || cI, [h.duration, B]), In = ue.useRef(0), hn = ue.useRef(0), Gn = ue.useRef(0), ln = ue.useRef(null), [dr, ir] = N.split("-"), Ji = ue.useMemo(() => w.reduce((ze, Et, Kt) => Kt >= ut ? ze : ze + Et.height, 0), [w, ut]), Tr = jve(), qo = h.invert || p, kr = de === "loading";
|
|
@@ -47252,12 +47250,12 @@ var exe = (e) => {
|
|
|
47252
47250
|
return pt(Et), y((Kt) => [{ toastId: h.id, height: Et, position: h.position }, ...Kt]), () => y((Kt) => Kt.filter((or) => or.toastId !== h.id));
|
|
47253
47251
|
}
|
|
47254
47252
|
}, [y, h.id]), ue.useLayoutEffect(() => {
|
|
47255
|
-
if (!
|
|
47253
|
+
if (!Y) return;
|
|
47256
47254
|
let ze = vt.current, Et = ze.style.height;
|
|
47257
47255
|
ze.style.height = "auto";
|
|
47258
47256
|
let Kt = ze.getBoundingClientRect().height;
|
|
47259
47257
|
ze.style.height = Et, pt(Kt), y((or) => or.find((sr) => sr.toastId === h.id) ? or.map((sr) => sr.toastId === h.id ? { ...sr, height: Kt } : sr) : [{ toastId: h.id, height: Kt, position: h.position }, ...or]);
|
|
47260
|
-
}, [
|
|
47258
|
+
}, [Y, h.title, h.description, y, h.id]);
|
|
47261
47259
|
let Wr = ue.useCallback(() => {
|
|
47262
47260
|
ae(!0), ke(hn.current), y((ze) => ze.filter((Et) => Et.toastId !== h.id)), setTimeout(() => {
|
|
47263
47261
|
R(h);
|
|
@@ -47281,9 +47279,9 @@ var exe = (e) => {
|
|
|
47281
47279
|
}, [Wr, h.delete]);
|
|
47282
47280
|
function yl() {
|
|
47283
47281
|
var ze, Et, Kt;
|
|
47284
|
-
return M != null && M.loading ? ue.createElement("div", { className: To(
|
|
47282
|
+
return M != null && M.loading ? ue.createElement("div", { className: To(K == null ? void 0 : K.loader, (ze = h == null ? void 0 : h.classNames) == null ? void 0 : ze.loader, "sonner-loader"), "data-visible": de === "loading" }, M.loading) : H ? ue.createElement("div", { className: To(K == null ? void 0 : K.loader, (Et = h == null ? void 0 : h.classNames) == null ? void 0 : Et.loader, "sonner-loader"), "data-visible": de === "loading" }, H) : ue.createElement(Mve, { className: To(K == null ? void 0 : K.loader, (Kt = h == null ? void 0 : h.classNames) == null ? void 0 : Kt.loader), visible: de === "loading" });
|
|
47285
47283
|
}
|
|
47286
|
-
return ue.createElement("li", { tabIndex: 0, ref: vt, className: To(j, Ue,
|
|
47284
|
+
return ue.createElement("li", { tabIndex: 0, ref: vt, className: To(j, Ue, K == null ? void 0 : K.toast, (t = h == null ? void 0 : h.classNames) == null ? void 0 : t.toast, K == null ? void 0 : K.default, K == null ? void 0 : K[de], (n = h == null ? void 0 : h.classNames) == null ? void 0 : n[de]), "data-sonner-toast": "", "data-rich-colors": (r = h.richColors) != null ? r : T, "data-styled": !(h.jsx || h.unstyled || m), "data-mounted": Y, "data-promise": !!h.promise, "data-swiped": Ee, "data-removed": oe, "data-visible": Ht, "data-y-position": dr, "data-x-position": ir, "data-index": _, "data-front": Yt, "data-swiping": ge, "data-dismissible": _e, "data-type": de, "data-invert": qo, "data-swipe-out": he, "data-swipe-direction": q, "data-expanded": !!(C || z && Y), style: { "--index": _, "--toasts-before": _, "--z-index": E.length - _, "--offset": `${oe ? $e : hn.current}px`, "--initial-height": z ? "auto" : `${We}px`, ...D, ...h.style }, onPointerDown: (ze) => {
|
|
47287
47285
|
kr || !_e || (fn.current = /* @__PURE__ */ new Date(), ke(hn.current), ze.target.setPointerCapture(ze.pointerId), ze.target.tagName !== "BUTTON" && (ne(!0), ln.current = { x: ze.clientX, y: ze.clientY }));
|
|
47288
47286
|
}, onPointerUp: () => {
|
|
47289
47287
|
var ze, Et, Kt, or;
|
|
@@ -47306,13 +47304,13 @@ var exe = (e) => {
|
|
|
47306
47304
|
} : () => {
|
|
47307
47305
|
var ze;
|
|
47308
47306
|
Wr(), (ze = h.onDismiss) == null || ze.call(h, h);
|
|
47309
|
-
}, className: To(
|
|
47307
|
+
}, className: To(K == null ? void 0 : K.closeButton, (i = h == null ? void 0 : h.classNames) == null ? void 0 : i.closeButton) }, (o = M == null ? void 0 : M.close) != null ? o : Fve) : null, h.jsx || qm(h.title) ? h.jsx ? h.jsx : typeof h.title == "function" ? h.title() : h.title : ue.createElement(ue.Fragment, null, de || h.icon || h.promise ? ue.createElement("div", { "data-icon": "", className: To(K == null ? void 0 : K.icon, (s = h == null ? void 0 : h.classNames) == null ? void 0 : s.icon) }, h.promise || h.type === "loading" && !h.icon ? h.icon || yl() : null, h.type !== "loading" ? h.icon || (M == null ? void 0 : M[de]) || Ave(de) : null) : null, ue.createElement("div", { "data-content": "", className: To(K == null ? void 0 : K.content, (a = h == null ? void 0 : h.classNames) == null ? void 0 : a.content) }, ue.createElement("div", { "data-title": "", className: To(K == null ? void 0 : K.title, (l = h == null ? void 0 : h.classNames) == null ? void 0 : l.title) }, typeof h.title == "function" ? h.title() : h.title), h.description ? ue.createElement("div", { "data-description": "", className: To(X, Ke, K == null ? void 0 : K.description, (c = h == null ? void 0 : h.classNames) == null ? void 0 : c.description) }, typeof h.description == "function" ? h.description() : h.description) : null), qm(h.cancel) ? h.cancel : h.cancel && Im(h.cancel) ? ue.createElement("button", { "data-button": !0, "data-cancel": !0, style: h.cancelButtonStyle || F, onClick: (ze) => {
|
|
47310
47308
|
var Et, Kt;
|
|
47311
47309
|
Im(h.cancel) && _e && ((Kt = (Et = h.cancel).onClick) == null || Kt.call(Et, ze), Wr());
|
|
47312
|
-
}, className: To(
|
|
47310
|
+
}, className: To(K == null ? void 0 : K.cancelButton, (u = h == null ? void 0 : h.classNames) == null ? void 0 : u.cancelButton) }, h.cancel.label) : null, qm(h.action) ? h.action : h.action && Im(h.action) ? ue.createElement("button", { "data-button": !0, "data-action": !0, style: h.actionButtonStyle || L, onClick: (ze) => {
|
|
47313
47311
|
var Et, Kt;
|
|
47314
47312
|
Im(h.action) && ((Kt = (Et = h.action).onClick) == null || Kt.call(Et, ze), !ze.defaultPrevented && Wr());
|
|
47315
|
-
}, className: To(
|
|
47313
|
+
}, className: To(K == null ? void 0 : K.actionButton, (d = h == null ? void 0 : h.classNames) == null ? void 0 : d.actionButton) }, h.action.label) : null));
|
|
47316
47314
|
};
|
|
47317
47315
|
function uI() {
|
|
47318
47316
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
@@ -47334,7 +47332,7 @@ function txe(e, t) {
|
|
|
47334
47332
|
}), n;
|
|
47335
47333
|
}
|
|
47336
47334
|
var aOe = Hr(function(e, t) {
|
|
47337
|
-
let { invert: n, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: o, closeButton: s, className: a, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: p, style: h, visibleToasts: m = Gve, toastOptions: b, dir: y = uI(), gap: x = Xve, loadingIcon: w, icons: _, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: C } = e, [R, T] = ue.useState([]), O = ue.useMemo(() => Array.from(new Set([r].concat(R.filter((W) => W.position).map((W) => W.position)))), [R, r]), [D, F] = ue.useState([]), [L, j] = ue.useState(!1), [X, B] = ue.useState(!1), [N, U] = ue.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H = ue.useRef(null), z = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""),
|
|
47335
|
+
let { invert: n, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: o, closeButton: s, className: a, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: p, style: h, visibleToasts: m = Gve, toastOptions: b, dir: y = uI(), gap: x = Xve, loadingIcon: w, icons: _, containerAriaLabel: E = "Notifications", pauseWhenPageIsHidden: C } = e, [R, T] = ue.useState([]), O = ue.useMemo(() => Array.from(new Set([r].concat(R.filter((W) => W.position).map((W) => W.position)))), [R, r]), [D, F] = ue.useState([]), [L, j] = ue.useState(!1), [X, B] = ue.useState(!1), [N, U] = ue.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), H = ue.useRef(null), z = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), K = ue.useRef(null), M = ue.useRef(!1), G = ue.useCallback((W) => {
|
|
47338
47336
|
T((A) => {
|
|
47339
47337
|
var J;
|
|
47340
47338
|
return (J = A.find((q) => q.id === W.id)) != null && J.delete || $i.dismiss(W.id), A.filter(({ id: q }) => q !== W.id);
|
|
@@ -47383,22 +47381,22 @@ var aOe = Hr(function(e, t) {
|
|
|
47383
47381
|
return document.addEventListener("keydown", W), () => document.removeEventListener("keydown", W);
|
|
47384
47382
|
}, [i]), ue.useEffect(() => {
|
|
47385
47383
|
if (H.current) return () => {
|
|
47386
|
-
|
|
47384
|
+
K.current && (K.current.focus({ preventScroll: !0 }), K.current = null, M.current = !1);
|
|
47387
47385
|
};
|
|
47388
47386
|
}, [H.current]), ue.createElement("section", { ref: t, "aria-label": `${E} ${z}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, O.map((W, A) => {
|
|
47389
47387
|
var J;
|
|
47390
47388
|
let [q, ie] = W.split("-");
|
|
47391
|
-
return R.length ? ue.createElement("ol", { key: W, dir: y === "auto" ? uI() : y, tabIndex: -1, ref: H, className: a, "data-sonner-toaster": !0, "data-theme": N, "data-y-position": q, "data-lifted": L && R.length > 1 && !o, "data-x-position": ie, style: { "--front-toast-height": `${((J = D[0]) == null ? void 0 : J.height) || 0}px`, "--width": `${Kve}px`, "--gap": `${x}px`, ...h, ...txe(l, c) }, onBlur: (
|
|
47392
|
-
M.current && !
|
|
47393
|
-
}, onFocus: (
|
|
47394
|
-
|
|
47389
|
+
return R.length ? ue.createElement("ol", { key: W, dir: y === "auto" ? uI() : y, tabIndex: -1, ref: H, className: a, "data-sonner-toaster": !0, "data-theme": N, "data-y-position": q, "data-lifted": L && R.length > 1 && !o, "data-x-position": ie, style: { "--front-toast-height": `${((J = D[0]) == null ? void 0 : J.height) || 0}px`, "--width": `${Kve}px`, "--gap": `${x}px`, ...h, ...txe(l, c) }, onBlur: (Y) => {
|
|
47390
|
+
M.current && !Y.currentTarget.contains(Y.relatedTarget) && (M.current = !1, K.current && (K.current.focus({ preventScroll: !0 }), K.current = null));
|
|
47391
|
+
}, onFocus: (Y) => {
|
|
47392
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || M.current || (M.current = !0, K.current = Y.relatedTarget);
|
|
47395
47393
|
}, onMouseEnter: () => j(!0), onMouseMove: () => j(!0), onMouseLeave: () => {
|
|
47396
47394
|
X || j(!1);
|
|
47397
|
-
}, onPointerDown: (
|
|
47398
|
-
|
|
47399
|
-
}, onPointerUp: () => B(!1) }, R.filter((
|
|
47395
|
+
}, onPointerDown: (Y) => {
|
|
47396
|
+
Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || B(!0);
|
|
47397
|
+
}, onPointerUp: () => B(!1) }, R.filter((Y) => !Y.position && A === 0 || Y.position === W).map((Y, Z) => {
|
|
47400
47398
|
var oe, ae;
|
|
47401
|
-
return ue.createElement(exe, { key:
|
|
47399
|
+
return ue.createElement(exe, { key: Y.id, icons: _, index: Z, toast: Y, defaultRichColors: d, duration: (oe = b == null ? void 0 : b.duration) != null ? oe : p, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: n, visibleToasts: m, closeButton: (ae = b == null ? void 0 : b.closeButton) != null ? ae : s, interacting: X, position: W, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: R.filter((ge) => ge.position == Y.position), heights: D.filter((ge) => ge.position == Y.position), setHeights: F, expandByDefault: o, gap: x, loadingIcon: w, expanded: L, pauseWhenPageIsHidden: C, swipeDirections: e.swipeDirections });
|
|
47402
47400
|
})) : null;
|
|
47403
47401
|
}));
|
|
47404
47402
|
});
|
|
@@ -49212,11 +49210,11 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49212
49210
|
}, kwe = (e, t, n) => {
|
|
49213
49211
|
const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: d, keepPreviousData: p } = n, [h, m, b, y] = Js.get(r), [x, w] = vR(e), _ = Le(!1), E = Le(!1), C = Le(x), R = Le(t), T = Le(n), O = () => T.current, D = () => O().isVisible() && O().isOnline(), [F, L, j, X] = N8(r, x), B = Le({}).current, N = Xt(s) ? Xt(n.fallback) ? ri : n.fallback[x] : s, U = (ne, he) => {
|
|
49214
49212
|
for (const fe in B) {
|
|
49215
|
-
const
|
|
49216
|
-
if (
|
|
49217
|
-
if (!i(ne[
|
|
49213
|
+
const Ee = fe;
|
|
49214
|
+
if (Ee === "data") {
|
|
49215
|
+
if (!i(ne[Ee], he[Ee]) && (!Xt(ne[Ee]) || !i(q, he[Ee])))
|
|
49218
49216
|
return !1;
|
|
49219
|
-
} else if (he[
|
|
49217
|
+
} else if (he[Ee] !== ne[Ee])
|
|
49220
49218
|
return !1;
|
|
49221
49219
|
}
|
|
49222
49220
|
return !0;
|
|
@@ -49228,7 +49226,7 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49228
49226
|
isLoading: !0,
|
|
49229
49227
|
...pt
|
|
49230
49228
|
} : pt;
|
|
49231
|
-
}, fe = F(),
|
|
49229
|
+
}, fe = F(), Ee = X(), Oe = he(fe), $e = fe === Ee ? Oe : he(Ee);
|
|
49232
49230
|
let ke = Oe;
|
|
49233
49231
|
return [
|
|
49234
49232
|
() => {
|
|
@@ -49249,12 +49247,12 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49249
49247
|
r,
|
|
49250
49248
|
x
|
|
49251
49249
|
]
|
|
49252
|
-
), H[0], H[1]),
|
|
49250
|
+
), H[0], H[1]), K = !_.current, M = h[x] && h[x].length > 0, G = z.data, W = Xt(G) ? N && D8(N) ? jw(N) : N : G, A = z.error, J = Le(W), q = p ? Xt(G) ? J.current : G : W, ie = M && !Xt(A) ? !1 : K && !Xt(a) ? a : O().isPaused() ? !1 : o ? Xt(W) ? !1 : l : Xt(W) || l, Y = !!(x && t && K && ie), Z = Xt(z.isValidating) ? Y : z.isValidating, oe = Xt(z.isLoading) ? Y : z.isLoading, ae = Ct(
|
|
49253
49251
|
async (ne) => {
|
|
49254
49252
|
const he = R.current;
|
|
49255
49253
|
if (!x || !he || E.current || O().isPaused())
|
|
49256
49254
|
return !1;
|
|
49257
|
-
let fe,
|
|
49255
|
+
let fe, Ee, Oe = !0;
|
|
49258
49256
|
const $e = ne || {}, ke = !b[x] || !$e.dedupe, We = () => yI ? !E.current && x === C.current && _.current : x === C.current, pt = {
|
|
49259
49257
|
isValidating: !1,
|
|
49260
49258
|
isLoading: !1
|
|
@@ -49262,7 +49260,7 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49262
49260
|
L(pt);
|
|
49263
49261
|
}, fn = () => {
|
|
49264
49262
|
const Yt = b[x];
|
|
49265
|
-
Yt && Yt[1] ===
|
|
49263
|
+
Yt && Yt[1] === Ee && delete b[x];
|
|
49266
49264
|
}, vt = {
|
|
49267
49265
|
isValidating: !0
|
|
49268
49266
|
};
|
|
@@ -49273,13 +49271,13 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49273
49271
|
}, n.loadingTimeout), b[x] = [
|
|
49274
49272
|
he(w),
|
|
49275
49273
|
v_()
|
|
49276
|
-
]), [fe,
|
|
49274
|
+
]), [fe, Ee] = b[x], fe = await fe, ke && setTimeout(fn, n.dedupingInterval), !b[x] || b[x][1] !== Ee)
|
|
49277
49275
|
return ke && We() && O().onDiscarded(x), !1;
|
|
49278
49276
|
pt.error = ri;
|
|
49279
49277
|
const Yt = m[x];
|
|
49280
49278
|
if (!Xt(Yt) && // case 1
|
|
49281
|
-
(
|
|
49282
|
-
|
|
49279
|
+
(Ee <= Yt[0] || // case 2
|
|
49280
|
+
Ee <= Yt[1] || // case 3
|
|
49283
49281
|
Yt[1] === 0))
|
|
49284
49282
|
return Tt(), ke && We() && O().onDiscarded(x), !1;
|
|
49285
49283
|
const Ht = F().data;
|
|
@@ -49324,7 +49322,7 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49324
49322
|
if (!x) return;
|
|
49325
49323
|
const ne = ae.bind(ri, $w);
|
|
49326
49324
|
let he = 0;
|
|
49327
|
-
const
|
|
49325
|
+
const Ee = Twe(x, h, (Oe, $e = {}) => {
|
|
49328
49326
|
if (Oe == jf.FOCUS_EVENT) {
|
|
49329
49327
|
const ke = Date.now();
|
|
49330
49328
|
O().revalidateOnFocus && ke > he && D() && (he = ke + O().focusThrottleInterval, ne());
|
|
@@ -49340,15 +49338,15 @@ const jw = ue.use || // This extra generic is to avoid TypeScript mixing up the
|
|
|
49340
49338
|
return E.current = !1, C.current = x, _.current = !0, L({
|
|
49341
49339
|
_k: w
|
|
49342
49340
|
}), ie && (Xt(W) || ep ? ne() : cwe(ne)), () => {
|
|
49343
|
-
E.current = !0,
|
|
49341
|
+
E.current = !0, Ee();
|
|
49344
49342
|
};
|
|
49345
49343
|
}, [
|
|
49346
49344
|
x
|
|
49347
49345
|
]), Nw(() => {
|
|
49348
49346
|
let ne;
|
|
49349
49347
|
function he() {
|
|
49350
|
-
const
|
|
49351
|
-
|
|
49348
|
+
const Ee = as(c) ? c(F().data) : c;
|
|
49349
|
+
Ee && ne !== -1 && (ne = setTimeout(fe, Ee));
|
|
49352
49350
|
}
|
|
49353
49351
|
function fe() {
|
|
49354
49352
|
!F().error && (u || O().isVisible()) && (d || O().isOnline()) ? ae($w).then(he) : he();
|
|
@@ -49456,11 +49454,11 @@ function Iwe({
|
|
|
49456
49454
|
body: m
|
|
49457
49455
|
};
|
|
49458
49456
|
}, [p, h, m]);
|
|
49459
|
-
const
|
|
49457
|
+
const K = Ct(
|
|
49460
49458
|
async (ae) => {
|
|
49461
49459
|
var ge, ne;
|
|
49462
49460
|
B("submitted"), U(void 0);
|
|
49463
|
-
const he = Iw(ae.messages), fe = he.length,
|
|
49461
|
+
const he = Iw(ae.messages), fe = he.length, Ee = d_(
|
|
49464
49462
|
(ge = he[he.length - 1]) == null ? void 0 : ge.toolInvocations
|
|
49465
49463
|
);
|
|
49466
49464
|
try {
|
|
@@ -49542,11 +49540,11 @@ function Iwe({
|
|
|
49542
49540
|
}
|
|
49543
49541
|
const Oe = D.current;
|
|
49544
49542
|
Jxe({
|
|
49545
|
-
originalMaxToolInvocationStep:
|
|
49543
|
+
originalMaxToolInvocationStep: Ee,
|
|
49546
49544
|
originalMessageCount: fe,
|
|
49547
49545
|
maxSteps: a,
|
|
49548
49546
|
messages: Oe
|
|
49549
|
-
}) && await
|
|
49547
|
+
}) && await K({ messages: Oe });
|
|
49550
49548
|
},
|
|
49551
49549
|
[
|
|
49552
49550
|
O,
|
|
@@ -49579,33 +49577,33 @@ function Iwe({
|
|
|
49579
49577
|
body: he,
|
|
49580
49578
|
experimental_attachments: fe
|
|
49581
49579
|
} = {}) => {
|
|
49582
|
-
var
|
|
49580
|
+
var Ee, Oe;
|
|
49583
49581
|
const $e = await mI(
|
|
49584
49582
|
fe
|
|
49585
49583
|
), ke = D.current.concat({
|
|
49586
49584
|
...ae,
|
|
49587
|
-
id: (
|
|
49585
|
+
id: (Ee = ae.id) != null ? Ee : b(),
|
|
49588
49586
|
createdAt: (Oe = ae.createdAt) != null ? Oe : /* @__PURE__ */ new Date(),
|
|
49589
49587
|
experimental_attachments: $e.length > 0 ? $e : void 0,
|
|
49590
49588
|
parts: O8(ae)
|
|
49591
49589
|
});
|
|
49592
|
-
return
|
|
49590
|
+
return K({ messages: ke, headers: ne, body: he, data: ge });
|
|
49593
49591
|
},
|
|
49594
|
-
[
|
|
49592
|
+
[K, b]
|
|
49595
49593
|
), G = Ct(
|
|
49596
49594
|
async ({ data: ae, headers: ge, body: ne } = {}) => {
|
|
49597
49595
|
const he = D.current;
|
|
49598
49596
|
if (he.length === 0)
|
|
49599
49597
|
return null;
|
|
49600
49598
|
const fe = he[he.length - 1];
|
|
49601
|
-
return
|
|
49599
|
+
return K({
|
|
49602
49600
|
messages: fe.role === "assistant" ? he.slice(0, -1) : he,
|
|
49603
49601
|
headers: ge,
|
|
49604
49602
|
body: ne,
|
|
49605
49603
|
data: ae
|
|
49606
49604
|
});
|
|
49607
49605
|
},
|
|
49608
|
-
[
|
|
49606
|
+
[K]
|
|
49609
49607
|
), W = Ct(() => {
|
|
49610
49608
|
H.current && (H.current.abort(), H.current = null);
|
|
49611
49609
|
}, []), A = Ct(
|
|
@@ -49620,7 +49618,7 @@ function Iwe({
|
|
|
49620
49618
|
typeof ae == "function" && (ae = ae(j.current)), L(ae, !1), j.current = ae;
|
|
49621
49619
|
},
|
|
49622
49620
|
[L]
|
|
49623
|
-
), [q, ie] = Ie(r),
|
|
49621
|
+
), [q, ie] = Ie(r), Y = Ct(
|
|
49624
49622
|
async (ae, ge = {}, ne) => {
|
|
49625
49623
|
var he;
|
|
49626
49624
|
if ((he = ae == null ? void 0 : ae.preventDefault) == null || he.call(ae), !q && !ge.allowEmptySubmit)
|
|
@@ -49644,9 +49642,9 @@ function Iwe({
|
|
|
49644
49642
|
body: ge.body,
|
|
49645
49643
|
data: ge.data
|
|
49646
49644
|
};
|
|
49647
|
-
|
|
49645
|
+
K(Oe), ie("");
|
|
49648
49646
|
},
|
|
49649
|
-
[q, b,
|
|
49647
|
+
[q, b, K]
|
|
49650
49648
|
), Z = (ae) => {
|
|
49651
49649
|
ie(ae.target.value);
|
|
49652
49650
|
}, oe = Ct(
|
|
@@ -49658,9 +49656,9 @@ function Iwe({
|
|
|
49658
49656
|
toolResult: ge
|
|
49659
49657
|
}), O(ne, !1);
|
|
49660
49658
|
const he = ne[ne.length - 1];
|
|
49661
|
-
M8(he) &&
|
|
49659
|
+
M8(he) && K({ messages: ne });
|
|
49662
49660
|
},
|
|
49663
|
-
[O,
|
|
49661
|
+
[O, K]
|
|
49664
49662
|
);
|
|
49665
49663
|
return {
|
|
49666
49664
|
messages: T ?? [],
|
|
@@ -49675,7 +49673,7 @@ function Iwe({
|
|
|
49675
49673
|
input: q,
|
|
49676
49674
|
setInput: ie,
|
|
49677
49675
|
handleInputChange: Z,
|
|
49678
|
-
handleSubmit:
|
|
49676
|
+
handleSubmit: Y,
|
|
49679
49677
|
isLoading: X === "submitted" || X === "streaming",
|
|
49680
49678
|
status: X,
|
|
49681
49679
|
addToolResult: oe
|
|
@@ -52784,7 +52782,7 @@ function GSe(e, t, n) {
|
|
|
52784
52782
|
return A === null || it(A) ? j(A) : en(A) ? (e.consume(A), L) : n(A);
|
|
52785
52783
|
}
|
|
52786
52784
|
function j(A) {
|
|
52787
|
-
return A === 45 && i === 2 ? (e.consume(A), U) : A === 60 && i === 1 ? (e.consume(A), H) : A === 62 && i === 4 ? (e.consume(A), G) : A === 63 && i === 3 ? (e.consume(A), M) : A === 93 && i === 5 ? (e.consume(A),
|
|
52785
|
+
return A === 45 && i === 2 ? (e.consume(A), U) : A === 60 && i === 1 ? (e.consume(A), H) : A === 62 && i === 4 ? (e.consume(A), G) : A === 63 && i === 3 ? (e.consume(A), M) : A === 93 && i === 5 ? (e.consume(A), K) : it(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(VSe, W, X)(A)) : A === null || it(A) ? (e.exit("htmlFlowData"), X(A)) : (e.consume(A), j);
|
|
52788
52786
|
}
|
|
52789
52787
|
function X(A) {
|
|
52790
52788
|
return e.check(WSe, B, W)(A);
|
|
@@ -52808,7 +52806,7 @@ function GSe(e, t, n) {
|
|
|
52808
52806
|
}
|
|
52809
52807
|
return ls(A) && s.length < 8 ? (e.consume(A), s += String.fromCharCode(A), z) : j(A);
|
|
52810
52808
|
}
|
|
52811
|
-
function
|
|
52809
|
+
function K(A) {
|
|
52812
52810
|
return A === 93 ? (e.consume(A), M) : j(A);
|
|
52813
52811
|
}
|
|
52814
52812
|
function M(A) {
|
|
@@ -52928,9 +52926,9 @@ function XSe(e, t, n) {
|
|
|
52928
52926
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), z;
|
|
52929
52927
|
}
|
|
52930
52928
|
function z(M) {
|
|
52931
|
-
return en(M) ? _n(e,
|
|
52929
|
+
return en(M) ? _n(e, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : K(M);
|
|
52932
52930
|
}
|
|
52933
|
-
function
|
|
52931
|
+
function K(M) {
|
|
52934
52932
|
return e.enter("htmlTextData"), s(M);
|
|
52935
52933
|
}
|
|
52936
52934
|
}
|
|
@@ -53552,7 +53550,7 @@ function F_e(e, t, n) {
|
|
|
53552
53550
|
function T(L, j) {
|
|
53553
53551
|
return X;
|
|
53554
53552
|
function X(B, N, U) {
|
|
53555
|
-
let H, z,
|
|
53553
|
+
let H, z, K, M;
|
|
53556
53554
|
return Array.isArray(B) ? (
|
|
53557
53555
|
/* c8 ignore next 1 */
|
|
53558
53556
|
W(B)
|
|
@@ -53564,8 +53562,8 @@ function F_e(e, t, n) {
|
|
|
53564
53562
|
])
|
|
53565
53563
|
) : G(B);
|
|
53566
53564
|
function G(ie) {
|
|
53567
|
-
return
|
|
53568
|
-
function
|
|
53565
|
+
return Y;
|
|
53566
|
+
function Y(Z) {
|
|
53569
53567
|
const oe = Z !== null && ie[Z], ae = Z !== null && ie.null, ge = [
|
|
53570
53568
|
// To do: add more extension tests.
|
|
53571
53569
|
/* c8 ignore next 2 */
|
|
@@ -53579,9 +53577,9 @@ function F_e(e, t, n) {
|
|
|
53579
53577
|
return H = ie, z = 0, ie.length === 0 ? U : A(ie[z]);
|
|
53580
53578
|
}
|
|
53581
53579
|
function A(ie) {
|
|
53582
|
-
return
|
|
53583
|
-
function
|
|
53584
|
-
return M = D(),
|
|
53580
|
+
return Y;
|
|
53581
|
+
function Y(Z) {
|
|
53582
|
+
return M = D(), K = ie, ie.partial || (c.currentConstruct = ie), ie.name && c.parser.constructs.disable.null.includes(ie.name) ? q() : ie.tokenize.call(
|
|
53585
53583
|
// If we do have fields, create an object w/ `context` as its
|
|
53586
53584
|
// prototype.
|
|
53587
53585
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -53593,7 +53591,7 @@ function F_e(e, t, n) {
|
|
|
53593
53591
|
}
|
|
53594
53592
|
}
|
|
53595
53593
|
function J(ie) {
|
|
53596
|
-
return L(
|
|
53594
|
+
return L(K, M), N;
|
|
53597
53595
|
}
|
|
53598
53596
|
function q(ie) {
|
|
53599
53597
|
return M.restore(), ++z < H.length ? A(H[z]) : U;
|
|
@@ -53759,7 +53757,7 @@ function q_e(e) {
|
|
|
53759
53757
|
autolink: o(We),
|
|
53760
53758
|
autolinkProtocol: D,
|
|
53761
53759
|
autolinkEmail: D,
|
|
53762
|
-
atxHeading: o(
|
|
53760
|
+
atxHeading: o(Ee),
|
|
53763
53761
|
blockQuote: o(ae),
|
|
53764
53762
|
characterEscape: D,
|
|
53765
53763
|
characterReference: D,
|
|
@@ -53794,7 +53792,7 @@ function q_e(e) {
|
|
|
53794
53792
|
referenceString: s,
|
|
53795
53793
|
resourceDestinationString: s,
|
|
53796
53794
|
resourceTitleString: s,
|
|
53797
|
-
setextHeading: o(
|
|
53795
|
+
setextHeading: o(Ee),
|
|
53798
53796
|
strong: o(vt),
|
|
53799
53797
|
thematicBreak: o(Ht)
|
|
53800
53798
|
},
|
|
@@ -53809,7 +53807,7 @@ function q_e(e) {
|
|
|
53809
53807
|
characterReferenceMarkerHexadecimal: q,
|
|
53810
53808
|
characterReferenceMarkerNumeric: q,
|
|
53811
53809
|
characterReferenceValue: ie,
|
|
53812
|
-
characterReference:
|
|
53810
|
+
characterReference: Y,
|
|
53813
53811
|
codeFenced: l(y),
|
|
53814
53812
|
codeFencedFence: b,
|
|
53815
53813
|
codeFencedFenceInfo: h,
|
|
@@ -53831,7 +53829,7 @@ function q_e(e) {
|
|
|
53831
53829
|
htmlText: l(B),
|
|
53832
53830
|
htmlTextData: F,
|
|
53833
53831
|
image: l(H),
|
|
53834
|
-
label:
|
|
53832
|
+
label: K,
|
|
53835
53833
|
labelText: z,
|
|
53836
53834
|
lineEnding: L,
|
|
53837
53835
|
link: l(U),
|
|
@@ -54106,7 +54104,7 @@ function q_e(e) {
|
|
|
54106
54104
|
const _e = this.sliceSerialize(de), Ue = this.stack[this.stack.length - 2];
|
|
54107
54105
|
Ue.label = W_e(_e), Ue.identifier = Yu(_e).toLowerCase();
|
|
54108
54106
|
}
|
|
54109
|
-
function
|
|
54107
|
+
function K() {
|
|
54110
54108
|
const de = this.stack[this.stack.length - 1], _e = this.resume(), Ue = this.stack[this.stack.length - 1];
|
|
54111
54109
|
if (this.data.inReference = !0, Ue.type === "link") {
|
|
54112
54110
|
const Ke = de.children;
|
|
@@ -54142,7 +54140,7 @@ function q_e(e) {
|
|
|
54142
54140
|
const ut = this.stack[this.stack.length - 1];
|
|
54143
54141
|
ut.value += Ke;
|
|
54144
54142
|
}
|
|
54145
|
-
function
|
|
54143
|
+
function Y(de) {
|
|
54146
54144
|
const _e = this.stack.pop();
|
|
54147
54145
|
_e.position.end = ka(de.end);
|
|
54148
54146
|
}
|
|
@@ -54191,7 +54189,7 @@ function q_e(e) {
|
|
|
54191
54189
|
children: []
|
|
54192
54190
|
};
|
|
54193
54191
|
}
|
|
54194
|
-
function
|
|
54192
|
+
function Ee() {
|
|
54195
54193
|
return {
|
|
54196
54194
|
type: "heading",
|
|
54197
54195
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -56932,22 +56930,22 @@ var mEe = Object.create, D0 = Object.defineProperty, bEe = Object.defineProperti
|
|
|
56932
56930
|
if (F) {
|
|
56933
56931
|
if (z = l(X, N, m, D), !z || z.index >= m.length)
|
|
56934
56932
|
break;
|
|
56935
|
-
var W = z.index,
|
|
56933
|
+
var W = z.index, K = z.index + z[0].length, M = N;
|
|
56936
56934
|
for (M += B.value.length; W >= M; )
|
|
56937
56935
|
B = B.next, M += B.value.length;
|
|
56938
56936
|
if (M -= B.value.length, N = M, B.value instanceof a)
|
|
56939
56937
|
continue;
|
|
56940
|
-
for (var G = B; G !== b.tail && (M <
|
|
56938
|
+
for (var G = B; G !== b.tail && (M < K || typeof G.value == "string"); G = G.next)
|
|
56941
56939
|
H++, M += G.value.length;
|
|
56942
56940
|
H--, U = m.slice(N, M), z.index -= N;
|
|
56943
56941
|
} else if (z = l(X, 0, U, D), !z)
|
|
56944
56942
|
continue;
|
|
56945
56943
|
var W = z.index, A = z[0], J = U.slice(0, W), q = U.slice(W + A.length), ie = N + U.length;
|
|
56946
56944
|
_ && ie > _.reach && (_.reach = ie);
|
|
56947
|
-
var
|
|
56948
|
-
J && (
|
|
56945
|
+
var Y = B.prev;
|
|
56946
|
+
J && (Y = d(b, Y, J), N += J.length), p(b, Y, H);
|
|
56949
56947
|
var Z = new a(E, O ? s.tokenize(A, O) : A, L, A);
|
|
56950
|
-
if (B = d(b,
|
|
56948
|
+
if (B = d(b, Y, Z), q && d(b, B, q), H > 1) {
|
|
56951
56949
|
var oe = {
|
|
56952
56950
|
cause: E + "," + R,
|
|
56953
56951
|
reach: ie
|
|
@@ -60747,11 +60745,11 @@ function e$({
|
|
|
60747
60745
|
} = R.current, {
|
|
60748
60746
|
layout: q,
|
|
60749
60747
|
panelDataArray: ie
|
|
60750
|
-
} = T.current,
|
|
60748
|
+
} = T.current, Y = _D({
|
|
60751
60749
|
layout: A,
|
|
60752
60750
|
panelConstraints: ie.map((Z) => Z.constraints)
|
|
60753
60751
|
});
|
|
60754
|
-
wD(q,
|
|
60752
|
+
wD(q, Y) || (x(Y), T.current.layout = Y, J && J(Y), _u(ie, Y, _.current));
|
|
60755
60753
|
}
|
|
60756
60754
|
}), []), yc(() => {
|
|
60757
60755
|
R.current.autoSaveId = e, R.current.direction = r, R.current.dragState = m, R.current.id = p, R.current.onLayout = s, R.current.storage = l;
|
|
@@ -60785,7 +60783,7 @@ function e$({
|
|
|
60785
60783
|
panelDataArray: ie
|
|
60786
60784
|
} = T.current;
|
|
60787
60785
|
if (A.constraints.collapsible) {
|
|
60788
|
-
const
|
|
60786
|
+
const Y = ie.map((ge) => ge.constraints), {
|
|
60789
60787
|
collapsedSize: Z = 0,
|
|
60790
60788
|
panelSize: oe,
|
|
60791
60789
|
pivotIndices: ae
|
|
@@ -60795,7 +60793,7 @@ function e$({
|
|
|
60795
60793
|
const ne = Eu(ie, A) === ie.length - 1 ? oe - Z : Z - oe, he = ih({
|
|
60796
60794
|
delta: ne,
|
|
60797
60795
|
initialLayout: q,
|
|
60798
|
-
panelConstraints:
|
|
60796
|
+
panelConstraints: Y,
|
|
60799
60797
|
pivotIndices: ae,
|
|
60800
60798
|
prevLayout: q,
|
|
60801
60799
|
trigger: "imperative-api"
|
|
@@ -60808,17 +60806,17 @@ function e$({
|
|
|
60808
60806
|
onLayout: q
|
|
60809
60807
|
} = R.current, {
|
|
60810
60808
|
layout: ie,
|
|
60811
|
-
panelDataArray:
|
|
60809
|
+
panelDataArray: Y
|
|
60812
60810
|
} = T.current;
|
|
60813
60811
|
if (A.constraints.collapsible) {
|
|
60814
|
-
const Z =
|
|
60812
|
+
const Z = Y.map((fe) => fe.constraints), {
|
|
60815
60813
|
collapsedSize: oe = 0,
|
|
60816
60814
|
panelSize: ae = 0,
|
|
60817
60815
|
minSize: ge = 0,
|
|
60818
60816
|
pivotIndices: ne
|
|
60819
|
-
} = Nl(
|
|
60817
|
+
} = Nl(Y, A, ie), he = J ?? ge;
|
|
60820
60818
|
if (ea(ae, oe)) {
|
|
60821
|
-
const fe = E.current.get(A.id),
|
|
60819
|
+
const fe = E.current.get(A.id), Ee = fe != null && fe >= he ? fe : he, $e = Eu(Y, A) === Y.length - 1 ? ae - Ee : Ee - ae, ke = ih({
|
|
60822
60820
|
delta: $e,
|
|
60823
60821
|
initialLayout: ie,
|
|
60824
60822
|
panelConstraints: Z,
|
|
@@ -60826,7 +60824,7 @@ function e$({
|
|
|
60826
60824
|
prevLayout: ie,
|
|
60827
60825
|
trigger: "imperative-api"
|
|
60828
60826
|
});
|
|
60829
|
-
zm(ie, ke) || (x(ke), T.current.layout = ke, q && q(ke), _u(
|
|
60827
|
+
zm(ie, ke) || (x(ke), T.current.layout = ke, q && q(ke), _u(Y, ke, _.current));
|
|
60830
60828
|
}
|
|
60831
60829
|
}
|
|
60832
60830
|
}, []), F = mi((A) => {
|
|
@@ -60854,27 +60852,27 @@ function e$({
|
|
|
60854
60852
|
panelDataArray: q
|
|
60855
60853
|
} = T.current, {
|
|
60856
60854
|
collapsedSize: ie = 0,
|
|
60857
|
-
collapsible:
|
|
60855
|
+
collapsible: Y,
|
|
60858
60856
|
panelSize: Z
|
|
60859
60857
|
} = Nl(q, A, J);
|
|
60860
|
-
return _t(Z != null, `Panel size not found for panel "${A.id}"`),
|
|
60858
|
+
return _t(Z != null, `Panel size not found for panel "${A.id}"`), Y === !0 && ea(Z, ie);
|
|
60861
60859
|
}, []), X = mi((A) => {
|
|
60862
60860
|
const {
|
|
60863
60861
|
layout: J,
|
|
60864
60862
|
panelDataArray: q
|
|
60865
60863
|
} = T.current, {
|
|
60866
60864
|
collapsedSize: ie = 0,
|
|
60867
|
-
collapsible:
|
|
60865
|
+
collapsible: Y,
|
|
60868
60866
|
panelSize: Z
|
|
60869
60867
|
} = Nl(q, A, J);
|
|
60870
|
-
return _t(Z != null, `Panel size not found for panel "${A.id}"`), !
|
|
60868
|
+
return _t(Z != null, `Panel size not found for panel "${A.id}"`), !Y || Dc(Z, ie) > 0;
|
|
60871
60869
|
}, []), B = mi((A) => {
|
|
60872
60870
|
const {
|
|
60873
60871
|
panelDataArray: J
|
|
60874
60872
|
} = T.current;
|
|
60875
60873
|
J.push(A), J.sort((q, ie) => {
|
|
60876
|
-
const
|
|
60877
|
-
return
|
|
60874
|
+
const Y = q.order, Z = ie.order;
|
|
60875
|
+
return Y == null && Z == null ? 0 : Y == null ? -1 : Z == null ? 1 : Y - Z;
|
|
60878
60876
|
}), T.current.panelDataArrayChanged = !0, w();
|
|
60879
60877
|
}, [w]);
|
|
60880
60878
|
yc(() => {
|
|
@@ -60886,21 +60884,21 @@ function e$({
|
|
|
60886
60884
|
storage: q
|
|
60887
60885
|
} = R.current, {
|
|
60888
60886
|
layout: ie,
|
|
60889
|
-
panelDataArray:
|
|
60887
|
+
panelDataArray: Y
|
|
60890
60888
|
} = T.current;
|
|
60891
60889
|
let Z = null;
|
|
60892
60890
|
if (A) {
|
|
60893
|
-
const ae = r2e(A,
|
|
60891
|
+
const ae = r2e(A, Y, q);
|
|
60894
60892
|
ae && (E.current = new Map(Object.entries(ae.expandToSizes)), Z = ae.layout);
|
|
60895
60893
|
}
|
|
60896
60894
|
Z == null && (Z = e2e({
|
|
60897
|
-
panelDataArray:
|
|
60895
|
+
panelDataArray: Y
|
|
60898
60896
|
}));
|
|
60899
60897
|
const oe = _D({
|
|
60900
60898
|
layout: Z,
|
|
60901
|
-
panelConstraints:
|
|
60899
|
+
panelConstraints: Y.map((ae) => ae.constraints)
|
|
60902
60900
|
});
|
|
60903
|
-
wD(ie, oe) || (x(oe), T.current.layout = oe, J && J(oe), _u(
|
|
60901
|
+
wD(ie, oe) || (x(oe), T.current.layout = oe, J && J(oe), _u(Y, oe, _.current));
|
|
60904
60902
|
}
|
|
60905
60903
|
}), yc(() => {
|
|
60906
60904
|
const A = T.current;
|
|
@@ -60911,8 +60909,8 @@ function e$({
|
|
|
60911
60909
|
const N = mi((A) => {
|
|
60912
60910
|
let J = !1;
|
|
60913
60911
|
const q = h.current;
|
|
60914
|
-
return q && window.getComputedStyle(q, null).getPropertyValue("direction") === "rtl" && (J = !0), function(
|
|
60915
|
-
|
|
60912
|
+
return q && window.getComputedStyle(q, null).getPropertyValue("direction") === "rtl" && (J = !0), function(Y) {
|
|
60913
|
+
Y.preventDefault();
|
|
60916
60914
|
const Z = h.current;
|
|
60917
60915
|
if (!Z)
|
|
60918
60916
|
return () => null;
|
|
@@ -60924,35 +60922,35 @@ function e$({
|
|
|
60924
60922
|
onLayout: he
|
|
60925
60923
|
} = R.current, {
|
|
60926
60924
|
layout: fe,
|
|
60927
|
-
panelDataArray:
|
|
60925
|
+
panelDataArray: Ee
|
|
60928
60926
|
} = T.current, {
|
|
60929
60927
|
initialLayout: Oe
|
|
60930
60928
|
} = ae ?? {}, $e = Y9(ge, A, Z);
|
|
60931
|
-
let ke = JRe(
|
|
60929
|
+
let ke = JRe(Y, A, oe, ae, ne, Z);
|
|
60932
60930
|
const We = oe === "horizontal";
|
|
60933
60931
|
We && J && (ke = -ke);
|
|
60934
|
-
const pt =
|
|
60932
|
+
const pt = Ee.map((vt) => vt.constraints), Tt = ih({
|
|
60935
60933
|
delta: ke,
|
|
60936
60934
|
initialLayout: Oe ?? fe,
|
|
60937
60935
|
panelConstraints: pt,
|
|
60938
60936
|
pivotIndices: $e,
|
|
60939
60937
|
prevLayout: fe,
|
|
60940
|
-
trigger: $9(
|
|
60938
|
+
trigger: $9(Y) ? "keyboard" : "mouse-or-touch"
|
|
60941
60939
|
}), fn = !zm(fe, Tt);
|
|
60942
|
-
(z9(
|
|
60940
|
+
(z9(Y) || B9(Y)) && C.current != ke && (C.current = ke, !fn && ke !== 0 ? We ? Zw(A, ke < 0 ? V9 : W9) : Zw(A, ke < 0 ? U9 : G9) : Zw(A, 0)), fn && (x(Tt), T.current.layout = Tt, he && he(Tt), _u(Ee, Tt, _.current));
|
|
60943
60941
|
};
|
|
60944
60942
|
}, []), U = mi((A, J) => {
|
|
60945
60943
|
const {
|
|
60946
60944
|
onLayout: q
|
|
60947
60945
|
} = R.current, {
|
|
60948
60946
|
layout: ie,
|
|
60949
|
-
panelDataArray:
|
|
60950
|
-
} = T.current, Z =
|
|
60947
|
+
panelDataArray: Y
|
|
60948
|
+
} = T.current, Z = Y.map((fe) => fe.constraints), {
|
|
60951
60949
|
panelSize: oe,
|
|
60952
60950
|
pivotIndices: ae
|
|
60953
|
-
} = Nl(
|
|
60951
|
+
} = Nl(Y, A, ie);
|
|
60954
60952
|
_t(oe != null, `Panel size not found for panel "${A.id}"`);
|
|
60955
|
-
const ne = Eu(
|
|
60953
|
+
const ne = Eu(Y, A) === Y.length - 1 ? oe - J : J - oe, he = ih({
|
|
60956
60954
|
delta: ne,
|
|
60957
60955
|
initialLayout: ie,
|
|
60958
60956
|
panelConstraints: Z,
|
|
@@ -60960,13 +60958,13 @@ function e$({
|
|
|
60960
60958
|
prevLayout: ie,
|
|
60961
60959
|
trigger: "imperative-api"
|
|
60962
60960
|
});
|
|
60963
|
-
zm(ie, he) || (x(he), T.current.layout = he, q && q(he), _u(
|
|
60961
|
+
zm(ie, he) || (x(he), T.current.layout = he, q && q(he), _u(Y, he, _.current));
|
|
60964
60962
|
}, []), H = mi((A, J) => {
|
|
60965
60963
|
const {
|
|
60966
60964
|
layout: q,
|
|
60967
60965
|
panelDataArray: ie
|
|
60968
60966
|
} = T.current, {
|
|
60969
|
-
collapsedSize:
|
|
60967
|
+
collapsedSize: Y = 0,
|
|
60970
60968
|
collapsible: Z
|
|
60971
60969
|
} = J, {
|
|
60972
60970
|
collapsedSize: oe = 0,
|
|
@@ -60976,7 +60974,7 @@ function e$({
|
|
|
60976
60974
|
} = A.constraints, {
|
|
60977
60975
|
panelSize: he
|
|
60978
60976
|
} = Nl(ie, A, q);
|
|
60979
|
-
he != null && (Z && ae && ea(he,
|
|
60977
|
+
he != null && (Z && ae && ea(he, Y) ? ea(Y, oe) || U(A, oe) : he < ne ? U(A, ne) : he > ge && U(A, ge));
|
|
60980
60978
|
}, [U]), z = mi((A, J) => {
|
|
60981
60979
|
const {
|
|
60982
60980
|
direction: q
|
|
@@ -60985,16 +60983,16 @@ function e$({
|
|
|
60985
60983
|
} = T.current;
|
|
60986
60984
|
if (!h.current)
|
|
60987
60985
|
return;
|
|
60988
|
-
const
|
|
60989
|
-
_t(
|
|
60986
|
+
const Y = $0(A, h.current);
|
|
60987
|
+
_t(Y, `Drag handle element not found for id "${A}"`);
|
|
60990
60988
|
const Z = X9(q, J);
|
|
60991
60989
|
b({
|
|
60992
60990
|
dragHandleId: A,
|
|
60993
|
-
dragHandleRect:
|
|
60991
|
+
dragHandleRect: Y.getBoundingClientRect(),
|
|
60994
60992
|
initialCursorPosition: Z,
|
|
60995
60993
|
initialLayout: ie
|
|
60996
60994
|
});
|
|
60997
|
-
}, []),
|
|
60995
|
+
}, []), K = mi(() => {
|
|
60998
60996
|
b(null);
|
|
60999
60997
|
}, []), M = mi((A) => {
|
|
61000
60998
|
const {
|
|
@@ -61016,10 +61014,10 @@ function e$({
|
|
|
61016
61014
|
registerResizeHandle: N,
|
|
61017
61015
|
resizePanel: U,
|
|
61018
61016
|
startDragging: z,
|
|
61019
|
-
stopDragging:
|
|
61017
|
+
stopDragging: K,
|
|
61020
61018
|
unregisterPanel: M,
|
|
61021
61019
|
panelGroupElement: h.current
|
|
61022
|
-
}), [O, m, r, D, F, L, p, j, X, H, B, N, U, z,
|
|
61020
|
+
}), [O, m, r, D, F, L, p, j, X, H, B, N, U, z, K, M]), W = {
|
|
61023
61021
|
display: "flex",
|
|
61024
61022
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
61025
61023
|
height: "100%",
|
|
@@ -61989,17 +61987,17 @@ var yo = "MenuContent", [U2e, r2] = qc(yo), Z$ = P.forwardRef(
|
|
|
61989
61987
|
onDismiss: h,
|
|
61990
61988
|
disableOutsideScroll: m,
|
|
61991
61989
|
...b
|
|
61992
|
-
} = e, y = Yc(yo, n), x = Gp(yo, n), w = H0(n), _ = Y$(n), E = $2e(n), [C, R] = P.useState(null), T = P.useRef(null), O = at(t, T, y.onContentChange), D = P.useRef(0), F = P.useRef(""), L = P.useRef(0), j = P.useRef(null), X = P.useRef("right"), B = P.useRef(0), N = m ? Op : P.Fragment, U = m ? { as: aa, allowPinchZoom: !0 } : void 0, H = (
|
|
61993
|
-
var
|
|
61994
|
-
const M = F.current +
|
|
61990
|
+
} = e, y = Yc(yo, n), x = Gp(yo, n), w = H0(n), _ = Y$(n), E = $2e(n), [C, R] = P.useState(null), T = P.useRef(null), O = at(t, T, y.onContentChange), D = P.useRef(0), F = P.useRef(""), L = P.useRef(0), j = P.useRef(null), X = P.useRef("right"), B = P.useRef(0), N = m ? Op : P.Fragment, U = m ? { as: aa, allowPinchZoom: !0 } : void 0, H = (K) => {
|
|
61991
|
+
var Y, Z;
|
|
61992
|
+
const M = F.current + K, G = E().filter((oe) => !oe.disabled), W = document.activeElement, A = (Y = G.find((oe) => oe.ref.current === W)) == null ? void 0 : Y.textValue, J = G.map((oe) => oe.textValue), q = oPe(J, M, A), ie = (Z = G.find((oe) => oe.textValue === q)) == null ? void 0 : Z.ref.current;
|
|
61995
61993
|
(function oe(ae) {
|
|
61996
61994
|
F.current = ae, window.clearTimeout(D.current), ae !== "" && (D.current = window.setTimeout(() => oe(""), 1e3));
|
|
61997
61995
|
})(M), ie && setTimeout(() => ie.focus());
|
|
61998
61996
|
};
|
|
61999
61997
|
P.useEffect(() => () => window.clearTimeout(D.current), []), f0();
|
|
62000
|
-
const z = P.useCallback((
|
|
61998
|
+
const z = P.useCallback((K) => {
|
|
62001
61999
|
var G, W;
|
|
62002
|
-
return X.current === ((G = j.current) == null ? void 0 : G.side) && aPe(
|
|
62000
|
+
return X.current === ((G = j.current) == null ? void 0 : G.side) && aPe(K, (W = j.current) == null ? void 0 : W.area);
|
|
62003
62001
|
}, []);
|
|
62004
62002
|
return /* @__PURE__ */ v.jsx(
|
|
62005
62003
|
U2e,
|
|
@@ -62007,36 +62005,36 @@ var yo = "MenuContent", [U2e, r2] = qc(yo), Z$ = P.forwardRef(
|
|
|
62007
62005
|
scope: n,
|
|
62008
62006
|
searchRef: F,
|
|
62009
62007
|
onItemEnter: P.useCallback(
|
|
62010
|
-
(
|
|
62011
|
-
z(
|
|
62008
|
+
(K) => {
|
|
62009
|
+
z(K) && K.preventDefault();
|
|
62012
62010
|
},
|
|
62013
62011
|
[z]
|
|
62014
62012
|
),
|
|
62015
62013
|
onItemLeave: P.useCallback(
|
|
62016
|
-
(
|
|
62014
|
+
(K) => {
|
|
62017
62015
|
var M;
|
|
62018
|
-
z(
|
|
62016
|
+
z(K) || ((M = T.current) == null || M.focus(), R(null));
|
|
62019
62017
|
},
|
|
62020
62018
|
[z]
|
|
62021
62019
|
),
|
|
62022
62020
|
onTriggerLeave: P.useCallback(
|
|
62023
|
-
(
|
|
62024
|
-
z(
|
|
62021
|
+
(K) => {
|
|
62022
|
+
z(K) && K.preventDefault();
|
|
62025
62023
|
},
|
|
62026
62024
|
[z]
|
|
62027
62025
|
),
|
|
62028
62026
|
pointerGraceTimerRef: L,
|
|
62029
|
-
onPointerGraceIntentChange: P.useCallback((
|
|
62030
|
-
j.current =
|
|
62027
|
+
onPointerGraceIntentChange: P.useCallback((K) => {
|
|
62028
|
+
j.current = K;
|
|
62031
62029
|
}, []),
|
|
62032
62030
|
children: /* @__PURE__ */ v.jsx(N, { ...U, children: /* @__PURE__ */ v.jsx(
|
|
62033
62031
|
Ap,
|
|
62034
62032
|
{
|
|
62035
62033
|
asChild: !0,
|
|
62036
62034
|
trapped: i,
|
|
62037
|
-
onMountAutoFocus: Pe(o, (
|
|
62035
|
+
onMountAutoFocus: Pe(o, (K) => {
|
|
62038
62036
|
var M;
|
|
62039
|
-
|
|
62037
|
+
K.preventDefault(), (M = T.current) == null || M.focus({ preventScroll: !0 });
|
|
62040
62038
|
}),
|
|
62041
62039
|
onUnmountAutoFocus: s,
|
|
62042
62040
|
children: /* @__PURE__ */ v.jsx(
|
|
@@ -62059,8 +62057,8 @@ var yo = "MenuContent", [U2e, r2] = qc(yo), Z$ = P.forwardRef(
|
|
|
62059
62057
|
loop: r,
|
|
62060
62058
|
currentTabStopId: C,
|
|
62061
62059
|
onCurrentTabStopIdChange: R,
|
|
62062
|
-
onEntryFocus: Pe(l, (
|
|
62063
|
-
x.isUsingKeyboardRef.current ||
|
|
62060
|
+
onEntryFocus: Pe(l, (K) => {
|
|
62061
|
+
x.isUsingKeyboardRef.current || K.preventDefault();
|
|
62064
62062
|
}),
|
|
62065
62063
|
preventScrollOnEntryFocus: !0,
|
|
62066
62064
|
children: /* @__PURE__ */ v.jsx(
|
|
@@ -62075,25 +62073,25 @@ var yo = "MenuContent", [U2e, r2] = qc(yo), Z$ = P.forwardRef(
|
|
|
62075
62073
|
...b,
|
|
62076
62074
|
ref: O,
|
|
62077
62075
|
style: { outline: "none", ...b.style },
|
|
62078
|
-
onKeyDown: Pe(b.onKeyDown, (
|
|
62079
|
-
const G =
|
|
62080
|
-
G && (
|
|
62076
|
+
onKeyDown: Pe(b.onKeyDown, (K) => {
|
|
62077
|
+
const G = K.target.closest("[data-radix-menu-content]") === K.currentTarget, W = K.ctrlKey || K.altKey || K.metaKey, A = K.key.length === 1;
|
|
62078
|
+
G && (K.key === "Tab" && K.preventDefault(), !W && A && H(K.key));
|
|
62081
62079
|
const J = T.current;
|
|
62082
|
-
if (
|
|
62083
|
-
|
|
62084
|
-
const ie = E().filter((
|
|
62085
|
-
G$.includes(
|
|
62080
|
+
if (K.target !== J || !L2e.includes(K.key)) return;
|
|
62081
|
+
K.preventDefault();
|
|
62082
|
+
const ie = E().filter((Y) => !Y.disabled).map((Y) => Y.ref.current);
|
|
62083
|
+
G$.includes(K.key) && ie.reverse(), rPe(ie);
|
|
62086
62084
|
}),
|
|
62087
|
-
onBlur: Pe(e.onBlur, (
|
|
62088
|
-
|
|
62085
|
+
onBlur: Pe(e.onBlur, (K) => {
|
|
62086
|
+
K.currentTarget.contains(K.target) || (window.clearTimeout(D.current), F.current = "");
|
|
62089
62087
|
}),
|
|
62090
62088
|
onPointerMove: Pe(
|
|
62091
62089
|
e.onPointerMove,
|
|
62092
|
-
op((
|
|
62093
|
-
const M =
|
|
62094
|
-
if (
|
|
62095
|
-
const W =
|
|
62096
|
-
X.current = W, B.current =
|
|
62090
|
+
op((K) => {
|
|
62091
|
+
const M = K.target, G = B.current !== K.clientX;
|
|
62092
|
+
if (K.currentTarget.contains(M) && G) {
|
|
62093
|
+
const W = K.clientX > B.current ? "right" : "left";
|
|
62094
|
+
X.current = W, B.current = K.clientX;
|
|
62097
62095
|
}
|
|
62098
62096
|
})
|
|
62099
62097
|
)
|
|
@@ -63297,9 +63295,9 @@ function ike({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
63297
63295
|
!E && !w && X();
|
|
63298
63296
|
}, [E, w, X]);
|
|
63299
63297
|
function B() {
|
|
63300
|
-
var U, H, z,
|
|
63298
|
+
var U, H, z, K;
|
|
63301
63299
|
let N = (U = R.current) == null ? void 0 : U.getModel();
|
|
63302
|
-
a || ((H = N == null ? void 0 : N.original) == null || H.dispose()), l || ((z = N == null ? void 0 : N.modified) == null || z.dispose()), (
|
|
63300
|
+
a || ((H = N == null ? void 0 : N.original) == null || H.dispose()), l || ((z = N == null ? void 0 : N.modified) == null || z.dispose()), (K = R.current) == null || K.dispose();
|
|
63303
63301
|
}
|
|
63304
63302
|
return ue.createElement(U7, { width: h, height: p, isEditorReady: w, loading: u, _ref: O, className: m, wrapperProps: b });
|
|
63305
63303
|
}
|
|
@@ -63347,7 +63345,7 @@ function cke({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
63347
63345
|
var G;
|
|
63348
63346
|
(G = D.current) == null || G.editor.setTheme(s);
|
|
63349
63347
|
}, [s], C);
|
|
63350
|
-
let
|
|
63348
|
+
let K = Ct(() => {
|
|
63351
63349
|
var G;
|
|
63352
63350
|
if (!(!L.current || !D.current) && !H.current) {
|
|
63353
63351
|
X.current(D.current);
|
|
@@ -63358,8 +63356,8 @@ function cke({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
63358
63356
|
Ve(() => {
|
|
63359
63357
|
C && j.current(F.current, D.current);
|
|
63360
63358
|
}, [C]), Ve(() => {
|
|
63361
|
-
!T && !C &&
|
|
63362
|
-
}, [T, C,
|
|
63359
|
+
!T && !C && K();
|
|
63360
|
+
}, [T, C, K]), N.current = r, Ve(() => {
|
|
63363
63361
|
var G, W;
|
|
63364
63362
|
C && _ && ((G = B.current) == null || G.dispose(), B.current = (W = F.current) == null ? void 0 : W.onDidChangeModelContent((A) => {
|
|
63365
63363
|
z.current || _(F.current.getValue(), A);
|
|
@@ -63806,12 +63804,12 @@ var Hf = '[cmdk-group=""]', i1 = '[cmdk-group-items=""]', Hke = '[cmdk-group-hea
|
|
|
63806
63804
|
R(6, X);
|
|
63807
63805
|
}, []);
|
|
63808
63806
|
let T = P.useMemo(() => ({ subscribe: (W) => (s.current.add(W), () => s.current.delete(W)), snapshot: () => n.current, setState: (W, A, J) => {
|
|
63809
|
-
var q, ie,
|
|
63807
|
+
var q, ie, Y;
|
|
63810
63808
|
if (!Object.is(n.current[W], A)) {
|
|
63811
63809
|
if (n.current[W] = A, W === "search") j(), F(), R(1, L);
|
|
63812
63810
|
else if (W === "value" && (J || R(5, X), ((q = a.current) == null ? void 0 : q.value) !== void 0)) {
|
|
63813
63811
|
let Z = A ?? "";
|
|
63814
|
-
(
|
|
63812
|
+
(Y = (ie = a.current).onValueChange) == null || Y.call(ie, Z);
|
|
63815
63813
|
return;
|
|
63816
63814
|
}
|
|
63817
63815
|
T.emit();
|
|
@@ -63843,24 +63841,24 @@ var Hf = '[cmdk-group=""]', i1 = '[cmdk-group-items=""]', Hke = '[cmdk-group-hea
|
|
|
63843
63841
|
if (!n.current.search || a.current.shouldFilter === !1) return;
|
|
63844
63842
|
let W = n.current.filtered.items, A = [];
|
|
63845
63843
|
n.current.filtered.groups.forEach((q) => {
|
|
63846
|
-
let ie = i.current.get(q),
|
|
63844
|
+
let ie = i.current.get(q), Y = 0;
|
|
63847
63845
|
ie.forEach((Z) => {
|
|
63848
63846
|
let oe = W.get(Z);
|
|
63849
|
-
|
|
63850
|
-
}), A.push([q,
|
|
63847
|
+
Y = Math.max(oe, Y);
|
|
63848
|
+
}), A.push([q, Y]);
|
|
63851
63849
|
});
|
|
63852
63850
|
let J = C.current;
|
|
63853
63851
|
N().sort((q, ie) => {
|
|
63854
|
-
var
|
|
63852
|
+
var Y, Z;
|
|
63855
63853
|
let oe = q.getAttribute("id"), ae = ie.getAttribute("id");
|
|
63856
|
-
return ((
|
|
63854
|
+
return ((Y = W.get(ae)) != null ? Y : 0) - ((Z = W.get(oe)) != null ? Z : 0);
|
|
63857
63855
|
}).forEach((q) => {
|
|
63858
63856
|
let ie = q.closest(i1);
|
|
63859
63857
|
ie ? ie.appendChild(q.parentElement === ie ? q : q.closest(`${i1} > *`)) : J.appendChild(q.parentElement === J ? q : q.closest(`${i1} > *`));
|
|
63860
63858
|
}), A.sort((q, ie) => ie[1] - q[1]).forEach((q) => {
|
|
63861
63859
|
var ie;
|
|
63862
|
-
let
|
|
63863
|
-
|
|
63860
|
+
let Y = (ie = C.current) == null ? void 0 : ie.querySelector(`${Hf}[${Ul}="${encodeURIComponent(q[0])}"]`);
|
|
63861
|
+
Y == null || Y.parentElement.appendChild(Y);
|
|
63864
63862
|
});
|
|
63865
63863
|
}
|
|
63866
63864
|
function L() {
|
|
@@ -63875,12 +63873,12 @@ var Hf = '[cmdk-group=""]', i1 = '[cmdk-group-items=""]', Hke = '[cmdk-group-hea
|
|
|
63875
63873
|
}
|
|
63876
63874
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
63877
63875
|
let ie = 0;
|
|
63878
|
-
for (let
|
|
63879
|
-
let Z = (A = (W = o.current.get(
|
|
63880
|
-
n.current.filtered.items.set(
|
|
63876
|
+
for (let Y of r.current) {
|
|
63877
|
+
let Z = (A = (W = o.current.get(Y)) == null ? void 0 : W.value) != null ? A : "", oe = (q = (J = o.current.get(Y)) == null ? void 0 : J.keywords) != null ? q : [], ae = D(Z, oe);
|
|
63878
|
+
n.current.filtered.items.set(Y, ae), ae > 0 && ie++;
|
|
63881
63879
|
}
|
|
63882
|
-
for (let [
|
|
63883
|
-
n.current.filtered.groups.add(
|
|
63880
|
+
for (let [Y, Z] of i.current) for (let oe of Z) if (n.current.filtered.items.get(oe) > 0) {
|
|
63881
|
+
n.current.filtered.groups.add(Y);
|
|
63884
63882
|
break;
|
|
63885
63883
|
}
|
|
63886
63884
|
n.current.filtered.count = ie;
|
|
@@ -63904,16 +63902,16 @@ var Hf = '[cmdk-group=""]', i1 = '[cmdk-group-items=""]', Hke = '[cmdk-group-hea
|
|
|
63904
63902
|
}
|
|
63905
63903
|
function H(W) {
|
|
63906
63904
|
var A;
|
|
63907
|
-
let J = B(), q = N(), ie = q.findIndex((Z) => Z === J),
|
|
63908
|
-
(A = a.current) != null && A.loop && (
|
|
63905
|
+
let J = B(), q = N(), ie = q.findIndex((Z) => Z === J), Y = q[ie + W];
|
|
63906
|
+
(A = a.current) != null && A.loop && (Y = ie + W < 0 ? q[q.length - 1] : ie + W === q.length ? q[0] : q[ie + W]), Y && T.setState("value", Y.getAttribute(Ul));
|
|
63909
63907
|
}
|
|
63910
63908
|
function z(W) {
|
|
63911
63909
|
let A = B(), J = A == null ? void 0 : A.closest(Hf), q;
|
|
63912
63910
|
for (; J && !q; ) J = W > 0 ? Zke(J, Hf) : Jke(J, Hf), q = J == null ? void 0 : J.querySelector(ND);
|
|
63913
63911
|
q ? T.setState("value", q.getAttribute(Ul)) : H(W);
|
|
63914
63912
|
}
|
|
63915
|
-
let
|
|
63916
|
-
W.preventDefault(), W.metaKey ?
|
|
63913
|
+
let K = () => U(N().length - 1), M = (W) => {
|
|
63914
|
+
W.preventDefault(), W.metaKey ? K() : W.altKey ? z(1) : H(1);
|
|
63917
63915
|
}, G = (W) => {
|
|
63918
63916
|
W.preventDefault(), W.metaKey ? U(0) : W.altKey ? z(-1) : H(-1);
|
|
63919
63917
|
};
|
|
@@ -63943,7 +63941,7 @@ var Hf = '[cmdk-group=""]', i1 = '[cmdk-group-items=""]', Hke = '[cmdk-group-hea
|
|
|
63943
63941
|
break;
|
|
63944
63942
|
}
|
|
63945
63943
|
case "End": {
|
|
63946
|
-
W.preventDefault(),
|
|
63944
|
+
W.preventDefault(), K();
|
|
63947
63945
|
break;
|
|
63948
63946
|
}
|
|
63949
63947
|
case "Enter":
|