react-semaphor 0.0.179 → 0.0.180
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/{dashboard-plus-1PKT3o6a.js → dashboard-plus-O0x1uFqm.js} +1 -1
- package/dist/chunks/{dashboard-plus-b5HPnuSv.js → dashboard-plus-VPipFlfC.js} +1 -1
- package/dist/chunks/{index-23glWvhg.js → index-gOVFSJhq.js} +308 -303
- package/dist/chunks/{index-uZiQ3QfU.js → index-kwpsiaJa.js} +27 -27
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ function J6() {
|
|
|
103
103
|
function j(R) {
|
|
104
104
|
return R.displayName || "Context";
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function W(R) {
|
|
107
107
|
if (R == null)
|
|
108
108
|
return null;
|
|
109
109
|
if (typeof R.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function")
|
|
@@ -136,11 +136,11 @@ function J6() {
|
|
|
136
136
|
return F(R, R.render, "ForwardRef");
|
|
137
137
|
case f:
|
|
138
138
|
var $e = R.displayName || null;
|
|
139
|
-
return $e !== null ? $e :
|
|
139
|
+
return $e !== null ? $e : W(R.type) || "Memo";
|
|
140
140
|
case p: {
|
|
141
141
|
var qe = R, Ke = qe._payload, Be = qe._init;
|
|
142
142
|
try {
|
|
143
|
-
return
|
|
143
|
+
return W(Be(Ke));
|
|
144
144
|
} catch {
|
|
145
145
|
return null;
|
|
146
146
|
}
|
|
@@ -148,7 +148,7 @@ function J6() {
|
|
|
148
148
|
}
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
|
-
var
|
|
151
|
+
var U = Object.assign, z = 0, Q, q, X, Z, D, V, K;
|
|
152
152
|
function I() {
|
|
153
153
|
}
|
|
154
154
|
I.__reactDisabledLog = !0;
|
|
@@ -184,25 +184,25 @@ function J6() {
|
|
|
184
184
|
writable: !0
|
|
185
185
|
};
|
|
186
186
|
Object.defineProperties(console, {
|
|
187
|
-
log:
|
|
187
|
+
log: U({}, R, {
|
|
188
188
|
value: Q
|
|
189
189
|
}),
|
|
190
|
-
info:
|
|
190
|
+
info: U({}, R, {
|
|
191
191
|
value: q
|
|
192
192
|
}),
|
|
193
|
-
warn:
|
|
193
|
+
warn: U({}, R, {
|
|
194
194
|
value: X
|
|
195
195
|
}),
|
|
196
|
-
error:
|
|
196
|
+
error: U({}, R, {
|
|
197
197
|
value: Z
|
|
198
198
|
}),
|
|
199
|
-
group:
|
|
199
|
+
group: U({}, R, {
|
|
200
200
|
value: D
|
|
201
201
|
}),
|
|
202
|
-
groupCollapsed:
|
|
202
|
+
groupCollapsed: U({}, R, {
|
|
203
203
|
value: V
|
|
204
204
|
}),
|
|
205
|
-
groupEnd:
|
|
205
|
+
groupEnd: U({}, R, {
|
|
206
206
|
value: K
|
|
207
207
|
})
|
|
208
208
|
});
|
|
@@ -412,8 +412,8 @@ function J6() {
|
|
|
412
412
|
}
|
|
413
413
|
function hr(R, J) {
|
|
414
414
|
if (typeof R.ref == "string" && je.current && J && je.current.stateNode !== J) {
|
|
415
|
-
var de =
|
|
416
|
-
on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
415
|
+
var de = W(je.current.type);
|
|
416
|
+
on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(je.current.type), R.ref), on[de] = !0);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
function sn(R, J) {
|
|
@@ -501,7 +501,7 @@ function J6() {
|
|
|
501
501
|
function _i() {
|
|
502
502
|
{
|
|
503
503
|
if (Tt.current) {
|
|
504
|
-
var R =
|
|
504
|
+
var R = W(Tt.current.type);
|
|
505
505
|
if (R)
|
|
506
506
|
return `
|
|
507
507
|
|
|
@@ -544,7 +544,7 @@ Check the top-level render call using <` + de + ">.");
|
|
|
544
544
|
return;
|
|
545
545
|
Xs[de] = !0;
|
|
546
546
|
var $e = "";
|
|
547
|
-
R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " +
|
|
547
|
+
R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + W(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
function Js(R, J) {
|
|
@@ -581,11 +581,11 @@ Check the top-level render call using <` + de + ">.");
|
|
|
581
581
|
else
|
|
582
582
|
return;
|
|
583
583
|
if (de) {
|
|
584
|
-
var $e =
|
|
584
|
+
var $e = W(J);
|
|
585
585
|
Ze(de, R.props, "prop", $e, R);
|
|
586
586
|
} else if (J.PropTypes !== void 0 && !En) {
|
|
587
587
|
En = !0;
|
|
588
|
-
var qe =
|
|
588
|
+
var qe = W(J);
|
|
589
589
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", qe || "Unknown");
|
|
590
590
|
}
|
|
591
591
|
typeof J.getDefaultProps == "function" && !J.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + de + ">.");
|
|
|
612
612
|
var At = qc(qe);
|
|
613
613
|
At ? Fe += At : Fe += _i();
|
|
614
614
|
var lt;
|
|
615
|
-
R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (
|
|
615
|
+
R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (W(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
|
|
616
616
|
}
|
|
617
617
|
var dt = it(R, J, de, qe, Ke);
|
|
618
618
|
if (dt == null)
|
|
@@ -1000,7 +1000,7 @@ function $4(e) {
|
|
|
1000
1000
|
return y4.test(e);
|
|
1001
1001
|
}
|
|
1002
1002
|
function D4() {
|
|
1003
|
-
const e = ln("colors"), t = ln("spacing"), n = ln("blur"), r = ln("brightness"), o = ln("borderColor"), i = ln("borderRadius"), s = ln("borderSpacing"), a = ln("borderWidth"), l = ln("contrast"), c = ln("grayscale"), u = ln("hueRotate"), f = ln("invert"), p = ln("gap"), g = ln("gradientColorStops"), m = ln("gradientColorStopPositions"), v = ln("inset"), y = ln("margin"), x = ln("opacity"), w = ln("padding"), _ = ln("saturate"), E = ln("scale"), S = ln("sepia"), P = ln("skew"), k = ln("space"), M = ln("translate"), $ = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", wt, t], j = () => [wt, t],
|
|
1003
|
+
const e = ln("colors"), t = ln("spacing"), n = ln("blur"), r = ln("brightness"), o = ln("borderColor"), i = ln("borderRadius"), s = ln("borderSpacing"), a = ln("borderWidth"), l = ln("contrast"), c = ln("grayscale"), u = ln("hueRotate"), f = ln("invert"), p = ln("gap"), g = ln("gradientColorStops"), m = ln("gradientColorStopPositions"), v = ln("inset"), y = ln("margin"), x = ln("opacity"), w = ln("padding"), _ = ln("saturate"), E = ln("scale"), S = ln("sepia"), P = ln("skew"), k = ln("space"), M = ln("translate"), $ = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", wt, t], j = () => [wt, t], W = () => ["", zo, cs], U = () => ["auto", Ra, wt], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Q = () => ["solid", "dashed", "dotted", "double", "none"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", wt], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [Ra, ph], K = () => [Ra, wt];
|
|
1004
1004
|
return {
|
|
1005
1005
|
cacheSize: 500,
|
|
1006
1006
|
separator: ":",
|
|
@@ -1012,7 +1012,7 @@ function D4() {
|
|
|
1012
1012
|
borderColor: [e],
|
|
1013
1013
|
borderRadius: ["none", "", "full", us, wt],
|
|
1014
1014
|
borderSpacing: j(),
|
|
1015
|
-
borderWidth:
|
|
1015
|
+
borderWidth: W(),
|
|
1016
1016
|
contrast: V(),
|
|
1017
1017
|
grayscale: Z(),
|
|
1018
1018
|
hueRotate: K(),
|
|
@@ -1318,14 +1318,14 @@ function D4() {
|
|
|
1318
1318
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1319
1319
|
*/
|
|
1320
1320
|
"col-start": [{
|
|
1321
|
-
"col-start":
|
|
1321
|
+
"col-start": U()
|
|
1322
1322
|
}],
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Grid Column End
|
|
1325
1325
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1326
1326
|
*/
|
|
1327
1327
|
"col-end": [{
|
|
1328
|
-
"col-end":
|
|
1328
|
+
"col-end": U()
|
|
1329
1329
|
}],
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Grid Template Rows
|
|
@@ -1348,14 +1348,14 @@ function D4() {
|
|
|
1348
1348
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1349
1349
|
*/
|
|
1350
1350
|
"row-start": [{
|
|
1351
|
-
"row-start":
|
|
1351
|
+
"row-start": U()
|
|
1352
1352
|
}],
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Grid Row End
|
|
1355
1355
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1356
1356
|
*/
|
|
1357
1357
|
"row-end": [{
|
|
1358
|
-
"row-end":
|
|
1358
|
+
"row-end": U()
|
|
1359
1359
|
}],
|
|
1360
1360
|
/**
|
|
1361
1361
|
* Grid Auto Flow
|
|
@@ -2304,7 +2304,7 @@ function D4() {
|
|
|
2304
2304
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2305
2305
|
*/
|
|
2306
2306
|
"ring-w": [{
|
|
2307
|
-
ring:
|
|
2307
|
+
ring: W()
|
|
2308
2308
|
}],
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Ring Width Inset
|
|
@@ -3240,13 +3240,13 @@ function z4() {
|
|
|
3240
3240
|
var S = !1, P, k, M = function(j) {
|
|
3241
3241
|
if (!S) {
|
|
3242
3242
|
S = !0, P = j;
|
|
3243
|
-
var
|
|
3243
|
+
var W = g(j);
|
|
3244
3244
|
if (m !== void 0 && y.hasValue) {
|
|
3245
|
-
var
|
|
3246
|
-
if (m(
|
|
3247
|
-
return k =
|
|
3245
|
+
var U = y.value;
|
|
3246
|
+
if (m(U, W))
|
|
3247
|
+
return k = U, U;
|
|
3248
3248
|
}
|
|
3249
|
-
return k =
|
|
3249
|
+
return k = W, W;
|
|
3250
3250
|
}
|
|
3251
3251
|
var z = P, Q = k;
|
|
3252
3252
|
if (r(z, j))
|
|
@@ -4796,7 +4796,7 @@ var Lp = { exports: {} };
|
|
|
4796
4796
|
Lp.exports;
|
|
4797
4797
|
(function(e, t) {
|
|
4798
4798
|
(function() {
|
|
4799
|
-
var n, r = "4.17.21", o = 200, i = "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__", f = 1, p = 2, g = 4, m = 1, v = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, S = 32, P = 64, k = 128, M = 256, $ = 512, A = 30, F = "...", j = 800,
|
|
4799
|
+
var n, r = "4.17.21", o = 200, i = "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__", f = 1, p = 2, g = 4, m = 1, v = 2, y = 1, x = 2, w = 4, _ = 8, E = 16, S = 32, P = 64, k = 128, M = 256, $ = 512, A = 30, F = "...", j = 800, W = 16, U = 1, z = 2, Q = 3, q = 1 / 0, X = 9007199254740991, Z = 17976931348623157e292, D = NaN, V = 4294967295, K = V - 1, I = V >>> 1, ae = [
|
|
4800
4800
|
["ary", k],
|
|
4801
4801
|
["bind", y],
|
|
4802
4802
|
["bindKey", x],
|
|
@@ -5452,7 +5452,7 @@ Lp.exports;
|
|
|
5452
5452
|
if (Ur == z)
|
|
5453
5453
|
nt = mr;
|
|
5454
5454
|
else if (!mr) {
|
|
5455
|
-
if (Ur ==
|
|
5455
|
+
if (Ur == U)
|
|
5456
5456
|
continue e;
|
|
5457
5457
|
break e;
|
|
5458
5458
|
}
|
|
@@ -6978,7 +6978,7 @@ Lp.exports;
|
|
|
6978
6978
|
function SS(d) {
|
|
6979
6979
|
var h = 0, b = 0;
|
|
6980
6980
|
return function() {
|
|
6981
|
-
var C = Q5(), T =
|
|
6981
|
+
var C = Q5(), T = W - (C - b);
|
|
6982
6982
|
if (b = C, T > 0) {
|
|
6983
6983
|
if (++h >= j)
|
|
6984
6984
|
return arguments[0];
|
|
@@ -8379,7 +8379,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8379
8379
|
return this.reverse()[d](b).reverse();
|
|
8380
8380
|
};
|
|
8381
8381
|
}), mo(["filter", "map", "takeWhile"], function(d, h) {
|
|
8382
|
-
var b = h + 1, C = b ==
|
|
8382
|
+
var b = h + 1, C = b == U || b == Q;
|
|
8383
8383
|
Dt.prototype[d] = function(T) {
|
|
8384
8384
|
var L = this.clone();
|
|
8385
8385
|
return L.__iteratees__.push({
|
|
@@ -11226,14 +11226,14 @@ const qv = "rovingFocusGroup.onEntryFocus", s8 = {
|
|
|
11226
11226
|
(z) => z.active
|
|
11227
11227
|
), j = A.find(
|
|
11228
11228
|
(z) => z.id === m
|
|
11229
|
-
),
|
|
11229
|
+
), U = [
|
|
11230
11230
|
F,
|
|
11231
11231
|
j,
|
|
11232
11232
|
...A
|
|
11233
11233
|
].filter(Boolean).map(
|
|
11234
11234
|
(z) => z.ref.current
|
|
11235
11235
|
);
|
|
11236
|
-
LR(
|
|
11236
|
+
LR(U);
|
|
11237
11237
|
}
|
|
11238
11238
|
}
|
|
11239
11239
|
E.current = !1;
|
|
@@ -11649,10 +11649,10 @@ var qR = { exports: {} }, sf = {}, B0 = { exports: {} };
|
|
|
11649
11649
|
return !0;
|
|
11650
11650
|
}
|
|
11651
11651
|
var j = o(F);
|
|
11652
|
-
function
|
|
11652
|
+
function W(ie, ee) {
|
|
11653
11653
|
return ie.source === ee.source && ie.flags === ee.flags;
|
|
11654
11654
|
}
|
|
11655
|
-
function
|
|
11655
|
+
function U(ie, ee, se, we) {
|
|
11656
11656
|
var G = ie.size === ee.size;
|
|
11657
11657
|
if (!G)
|
|
11658
11658
|
return !1;
|
|
@@ -11668,20 +11668,20 @@ var qR = { exports: {} }, sf = {}, B0 = { exports: {} };
|
|
|
11668
11668
|
}
|
|
11669
11669
|
}), G;
|
|
11670
11670
|
}
|
|
11671
|
-
var z = o(
|
|
11671
|
+
var z = o(U), Q = Object.freeze({
|
|
11672
11672
|
areArraysEqual: E,
|
|
11673
11673
|
areDatesEqual: P,
|
|
11674
11674
|
areMapsEqual: k,
|
|
11675
11675
|
areObjectsEqual: F,
|
|
11676
|
-
areRegExpsEqual:
|
|
11677
|
-
areSetsEqual:
|
|
11676
|
+
areRegExpsEqual: W,
|
|
11677
|
+
areSetsEqual: U,
|
|
11678
11678
|
createIsNestedEqual: r
|
|
11679
11679
|
}), q = Object.freeze({
|
|
11680
11680
|
areArraysEqual: S,
|
|
11681
11681
|
areDatesEqual: P,
|
|
11682
11682
|
areMapsEqual: M,
|
|
11683
11683
|
areObjectsEqual: j,
|
|
11684
|
-
areRegExpsEqual:
|
|
11684
|
+
areRegExpsEqual: W,
|
|
11685
11685
|
areSetsEqual: z,
|
|
11686
11686
|
createIsNestedEqual: r
|
|
11687
11687
|
}), X = _(Q);
|
|
@@ -12262,7 +12262,7 @@ function oz() {
|
|
|
12262
12262
|
}
|
|
12263
12263
|
}
|
|
12264
12264
|
}
|
|
12265
|
-
var S = l, P = c, k = a, M = s, $ = t, A = u, F = r, j = m,
|
|
12265
|
+
var S = l, P = c, k = a, M = s, $ = t, A = u, F = r, j = m, W = g, U = n, z = i, Q = o, q = f, X = !1;
|
|
12266
12266
|
function Z(G) {
|
|
12267
12267
|
return X || (X = !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.")), D(G) || E(G) === l;
|
|
12268
12268
|
}
|
|
@@ -12302,7 +12302,7 @@ function oz() {
|
|
|
12302
12302
|
function we(G) {
|
|
12303
12303
|
return E(G) === f;
|
|
12304
12304
|
}
|
|
12305
|
-
Ht.AsyncMode = S, Ht.ConcurrentMode = P, Ht.ContextConsumer = k, Ht.ContextProvider = M, Ht.Element = $, Ht.ForwardRef = A, Ht.Fragment = F, Ht.Lazy = j, Ht.Memo =
|
|
12305
|
+
Ht.AsyncMode = S, Ht.ConcurrentMode = P, Ht.ContextConsumer = k, Ht.ContextProvider = M, Ht.Element = $, Ht.ForwardRef = A, Ht.Fragment = F, Ht.Lazy = j, Ht.Memo = W, Ht.Portal = U, Ht.Profiler = z, Ht.StrictMode = Q, Ht.Suspense = q, Ht.isAsyncMode = Z, Ht.isConcurrentMode = D, Ht.isContextConsumer = V, Ht.isContextProvider = K, Ht.isElement = I, Ht.isForwardRef = ae, Ht.isFragment = le, Ht.isLazy = fe, Ht.isMemo = pe, Ht.isPortal = ie, Ht.isProfiler = ee, Ht.isStrictMode = se, Ht.isSuspense = we, Ht.isValidElementType = _, Ht.typeOf = E;
|
|
12306
12306
|
}()), Ht;
|
|
12307
12307
|
}
|
|
12308
12308
|
var Wt = {};
|
|
@@ -12535,7 +12535,7 @@ function lz() {
|
|
|
12535
12535
|
oneOf: k,
|
|
12536
12536
|
oneOfType: $,
|
|
12537
12537
|
shape: j,
|
|
12538
|
-
exact:
|
|
12538
|
+
exact: W
|
|
12539
12539
|
};
|
|
12540
12540
|
function m(D, V) {
|
|
12541
12541
|
return D === V ? D !== 0 || 1 / D === 1 / V : D !== D && V !== V;
|
|
@@ -12692,7 +12692,7 @@ function lz() {
|
|
|
12692
12692
|
}
|
|
12693
12693
|
function A() {
|
|
12694
12694
|
function D(V, K, I, ae, le) {
|
|
12695
|
-
return
|
|
12695
|
+
return U(V[K]) ? null : new v("Invalid " + ae + " `" + le + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
|
|
12696
12696
|
}
|
|
12697
12697
|
return y(D);
|
|
12698
12698
|
}
|
|
@@ -12718,7 +12718,7 @@ function lz() {
|
|
|
12718
12718
|
}
|
|
12719
12719
|
return y(V);
|
|
12720
12720
|
}
|
|
12721
|
-
function
|
|
12721
|
+
function W(D) {
|
|
12722
12722
|
function V(K, I, ae, le, fe) {
|
|
12723
12723
|
var pe = K[I], ie = Q(pe);
|
|
12724
12724
|
if (ie !== "object")
|
|
@@ -12741,7 +12741,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
12741
12741
|
}
|
|
12742
12742
|
return y(V);
|
|
12743
12743
|
}
|
|
12744
|
-
function
|
|
12744
|
+
function U(D) {
|
|
12745
12745
|
switch (typeof D) {
|
|
12746
12746
|
case "number":
|
|
12747
12747
|
case "string":
|
|
@@ -12751,7 +12751,7 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
12751
12751
|
return !D;
|
|
12752
12752
|
case "object":
|
|
12753
12753
|
if (Array.isArray(D))
|
|
12754
|
-
return D.every(
|
|
12754
|
+
return D.every(U);
|
|
12755
12755
|
if (D === null || a(D))
|
|
12756
12756
|
return !0;
|
|
12757
12757
|
var V = f(D);
|
|
@@ -12759,12 +12759,12 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
12759
12759
|
var K = V.call(D), I;
|
|
12760
12760
|
if (V !== D.entries) {
|
|
12761
12761
|
for (; !(I = K.next()).done; )
|
|
12762
|
-
if (!
|
|
12762
|
+
if (!U(I.value))
|
|
12763
12763
|
return !1;
|
|
12764
12764
|
} else
|
|
12765
12765
|
for (; !(I = K.next()).done; ) {
|
|
12766
12766
|
var ae = I.value;
|
|
12767
|
-
if (ae && !
|
|
12767
|
+
if (ae && !U(ae[1]))
|
|
12768
12768
|
return !1;
|
|
12769
12769
|
}
|
|
12770
12770
|
} else
|
|
@@ -13667,21 +13667,21 @@ vr(Ng, "defaultProps", {
|
|
|
13667
13667
|
position: A,
|
|
13668
13668
|
positionOffset: F,
|
|
13669
13669
|
scale: j,
|
|
13670
|
-
...
|
|
13670
|
+
...W
|
|
13671
13671
|
} = this.props;
|
|
13672
|
-
let
|
|
13672
|
+
let U = {}, z = null;
|
|
13673
13673
|
const q = !!!A || this.state.dragging, X = A || P, Z = {
|
|
13674
13674
|
// Set left if horizontal drag is enabled
|
|
13675
13675
|
x: (0, s.canDragX)(this) && q ? this.state.x : X.x,
|
|
13676
13676
|
// Set top if vertical drag is enabled
|
|
13677
13677
|
y: (0, s.canDragY)(this) && q ? this.state.y : X.y
|
|
13678
13678
|
};
|
|
13679
|
-
this.state.isElementSVG ? z = (0, i.createSVGTransform)(Z, F) :
|
|
13679
|
+
this.state.isElementSVG ? z = (0, i.createSVGTransform)(Z, F) : U = (0, i.createCSSTransform)(Z, F);
|
|
13680
13680
|
const D = (0, o.default)(S.props.className || "", k, {
|
|
13681
13681
|
[M]: this.state.dragging,
|
|
13682
13682
|
[$]: this.state.dragged
|
|
13683
13683
|
});
|
|
13684
|
-
return /* @__PURE__ */ t.createElement(l.default, g({},
|
|
13684
|
+
return /* @__PURE__ */ t.createElement(l.default, g({}, W, {
|
|
13685
13685
|
onStart: this.onDragStart,
|
|
13686
13686
|
onDrag: this.onDrag,
|
|
13687
13687
|
onStop: this.onDragStop
|
|
@@ -13689,7 +13689,7 @@ vr(Ng, "defaultProps", {
|
|
|
13689
13689
|
className: D,
|
|
13690
13690
|
style: {
|
|
13691
13691
|
...S.props.style,
|
|
13692
|
-
...
|
|
13692
|
+
...U
|
|
13693
13693
|
},
|
|
13694
13694
|
transform: z
|
|
13695
13695
|
}));
|
|
@@ -20924,11 +20924,11 @@ class sl extends Xi {
|
|
|
20924
20924
|
const n = this.axis, r = this.chart, o = this.options, { grid: i, position: s, border: a } = o, l = i.offset, c = this.isHorizontal(), f = this.ticks.length + (l ? 1 : 0), p = wu(i), g = [], m = a.setContext(this.getContext()), v = m.display ? m.width : 0, y = v / 2, x = function(Q) {
|
|
20925
20925
|
return ga(r, Q, v);
|
|
20926
20926
|
};
|
|
20927
|
-
let w, _, E, S, P, k, M, $, A, F, j,
|
|
20927
|
+
let w, _, E, S, P, k, M, $, A, F, j, W;
|
|
20928
20928
|
if (s === "top")
|
|
20929
|
-
w = x(this.bottom), k = this.bottom - p, $ = w - y, F = x(t.top) + y,
|
|
20929
|
+
w = x(this.bottom), k = this.bottom - p, $ = w - y, F = x(t.top) + y, W = t.bottom;
|
|
20930
20930
|
else if (s === "bottom")
|
|
20931
|
-
w = x(this.top), F = t.top,
|
|
20931
|
+
w = x(this.top), F = t.top, W = x(t.bottom) - y, k = w + y, $ = this.top + p;
|
|
20932
20932
|
else if (s === "left")
|
|
20933
20933
|
w = x(this.right), P = this.right - p, M = w - y, A = x(t.left) + y, j = t.right;
|
|
20934
20934
|
else if (s === "right")
|
|
@@ -20940,7 +20940,7 @@ class sl extends Xi {
|
|
|
20940
20940
|
const Q = Object.keys(s)[0], q = s[Q];
|
|
20941
20941
|
w = x(this.chart.scales[Q].getPixelForValue(q));
|
|
20942
20942
|
}
|
|
20943
|
-
F = t.top,
|
|
20943
|
+
F = t.top, W = t.bottom, k = w + y, $ = k + p;
|
|
20944
20944
|
} else if (n === "y") {
|
|
20945
20945
|
if (s === "center")
|
|
20946
20946
|
w = x((t.left + t.right) / 2);
|
|
@@ -20950,10 +20950,10 @@ class sl extends Xi {
|
|
|
20950
20950
|
}
|
|
20951
20951
|
P = w - y, M = P - p, A = t.left, j = t.right;
|
|
20952
20952
|
}
|
|
20953
|
-
const
|
|
20953
|
+
const U = ht(o.ticks.maxTicksLimit, f), z = Math.max(1, Math.ceil(f / U));
|
|
20954
20954
|
for (_ = 0; _ < f; _ += z) {
|
|
20955
20955
|
const Q = this.getContext(_), q = i.setContext(Q), X = a.setContext(Q), Z = q.lineWidth, D = q.color, V = X.dash || [], K = X.dashOffset, I = q.tickWidth, ae = q.tickColor, le = q.tickBorderDash || [], fe = q.tickBorderDashOffset;
|
|
20956
|
-
E = cW(this, _, l), E !== void 0 && (S = ga(r, E, Z), c ? P = M = A = j = S : k = $ = F =
|
|
20956
|
+
E = cW(this, _, l), E !== void 0 && (S = ga(r, E, Z), c ? P = M = A = j = S : k = $ = F = W = S, g.push({
|
|
20957
20957
|
tx1: P,
|
|
20958
20958
|
ty1: k,
|
|
20959
20959
|
tx2: M,
|
|
@@ -20961,7 +20961,7 @@ class sl extends Xi {
|
|
|
20961
20961
|
x1: A,
|
|
20962
20962
|
y1: F,
|
|
20963
20963
|
x2: j,
|
|
20964
|
-
y2:
|
|
20964
|
+
y2: W,
|
|
20965
20965
|
width: Z,
|
|
20966
20966
|
color: D,
|
|
20967
20967
|
borderDash: V,
|
|
@@ -20976,7 +20976,7 @@ class sl extends Xi {
|
|
|
20976
20976
|
}
|
|
20977
20977
|
_computeLabelItems(t) {
|
|
20978
20978
|
const n = this.axis, r = this.options, { position: o, ticks: i } = r, s = this.isHorizontal(), a = this.ticks, { align: l, crossAlign: c, padding: u, mirror: f } = i, p = wu(r.grid), g = p + u, m = f ? -u : g, v = -Vo(this.labelRotation), y = [];
|
|
20979
|
-
let x, w, _, E, S, P, k, M, $, A, F, j,
|
|
20979
|
+
let x, w, _, E, S, P, k, M, $, A, F, j, W = "middle";
|
|
20980
20980
|
if (o === "top")
|
|
20981
20981
|
P = this.bottom - m, k = this._getXAxisLabelAlignment();
|
|
20982
20982
|
else if (o === "bottom")
|
|
@@ -21004,20 +21004,20 @@ class sl extends Xi {
|
|
|
21004
21004
|
}
|
|
21005
21005
|
k = this._getYAxisLabelAlignment(p).textAlign;
|
|
21006
21006
|
}
|
|
21007
|
-
n === "y" && (l === "start" ?
|
|
21008
|
-
const
|
|
21007
|
+
n === "y" && (l === "start" ? W = "top" : l === "end" && (W = "bottom"));
|
|
21008
|
+
const U = this._getLabelSizes();
|
|
21009
21009
|
for (x = 0, w = a.length; x < w; ++x) {
|
|
21010
21010
|
_ = a[x], E = _.label;
|
|
21011
21011
|
const z = i.setContext(this.getContext(x));
|
|
21012
21012
|
M = this.getPixelForTick(x) + i.labelOffset, $ = this._resolveTickFontOptions(x), A = $.lineHeight, F = fn(E) ? E.length : 1;
|
|
21013
21013
|
const Q = F / 2, q = z.color, X = z.textStrokeColor, Z = z.textStrokeWidth;
|
|
21014
21014
|
let D = k;
|
|
21015
|
-
s ? (S = M, k === "inner" && (x === w - 1 ? D = this.options.reverse ? "left" : "right" : x === 0 ? D = this.options.reverse ? "right" : "left" : D = "center"), o === "top" ? c === "near" || v !== 0 ? j = -F * A + A / 2 : c === "center" ? j = -
|
|
21015
|
+
s ? (S = M, k === "inner" && (x === w - 1 ? D = this.options.reverse ? "left" : "right" : x === 0 ? D = this.options.reverse ? "right" : "left" : D = "center"), o === "top" ? c === "near" || v !== 0 ? j = -F * A + A / 2 : c === "center" ? j = -U.highest.height / 2 - Q * A + A : j = -U.highest.height + A / 2 : c === "near" || v !== 0 ? j = A / 2 : c === "center" ? j = U.highest.height / 2 - Q * A : j = U.highest.height - F * A, f && (j *= -1), v !== 0 && !z.showLabelBackdrop && (S += A / 2 * Math.sin(v))) : (P = M, j = (1 - F) * A / 2);
|
|
21016
21016
|
let V;
|
|
21017
21017
|
if (z.showLabelBackdrop) {
|
|
21018
|
-
const K = rr(z.backdropPadding), I =
|
|
21018
|
+
const K = rr(z.backdropPadding), I = U.heights[x], ae = U.widths[x];
|
|
21019
21019
|
let le = j - K.top, fe = 0 - K.left;
|
|
21020
|
-
switch (
|
|
21020
|
+
switch (W) {
|
|
21021
21021
|
case "middle":
|
|
21022
21022
|
le -= I / 2;
|
|
21023
21023
|
break;
|
|
@@ -21054,7 +21054,7 @@ class sl extends Xi {
|
|
|
21054
21054
|
strokeColor: X,
|
|
21055
21055
|
strokeWidth: Z,
|
|
21056
21056
|
textAlign: D,
|
|
21057
|
-
textBaseline:
|
|
21057
|
+
textBaseline: W,
|
|
21058
21058
|
translation: [
|
|
21059
21059
|
S,
|
|
21060
21060
|
P
|
|
@@ -22267,7 +22267,7 @@ function Xp(e, t, n, r, o, i) {
|
|
|
22267
22267
|
const z = u > 0 ? u - r : 0, Q = f > 0 ? f - r : 0, q = (z + Q) / 2, X = q !== 0 ? m * q / (q + r) : m;
|
|
22268
22268
|
g = (m - X) / 2;
|
|
22269
22269
|
}
|
|
22270
|
-
const v = Math.max(1e-3, m * f - n / pn) / f, y = (m - v) / 2, x = l + y + g, w = o - y - g, { outerStart: _, outerEnd: E, innerStart: S, innerEnd: P } = BW(t, p, f, w - x), k = f - _, M = f - E, $ = x + _ / k, A = w - E / M, F = p + S, j = p + P,
|
|
22270
|
+
const v = Math.max(1e-3, m * f - n / pn) / f, y = (m - v) / 2, x = l + y + g, w = o - y - g, { outerStart: _, outerEnd: E, innerStart: S, innerEnd: P } = BW(t, p, f, w - x), k = f - _, M = f - E, $ = x + _ / k, A = w - E / M, F = p + S, j = p + P, W = x + S / F, U = w - P / j;
|
|
22271
22271
|
if (e.beginPath(), i) {
|
|
22272
22272
|
const z = ($ + A) / 2;
|
|
22273
22273
|
if (e.arc(s, a, f, $, z), e.arc(s, a, f, z, A), E > 0) {
|
|
@@ -22276,13 +22276,13 @@ function Xp(e, t, n, r, o, i) {
|
|
|
22276
22276
|
}
|
|
22277
22277
|
const Q = Ml(j, w, s, a);
|
|
22278
22278
|
if (e.lineTo(Q.x, Q.y), P > 0) {
|
|
22279
|
-
const Z = Ml(j,
|
|
22280
|
-
e.arc(Z.x, Z.y, P, w + Rn,
|
|
22279
|
+
const Z = Ml(j, U, s, a);
|
|
22280
|
+
e.arc(Z.x, Z.y, P, w + Rn, U + Math.PI);
|
|
22281
22281
|
}
|
|
22282
22282
|
const q = (w - P / p + (x + S / p)) / 2;
|
|
22283
22283
|
if (e.arc(s, a, p, w - P / p, q, !0), e.arc(s, a, p, q, x + S / p, !0), S > 0) {
|
|
22284
|
-
const Z = Ml(F,
|
|
22285
|
-
e.arc(Z.x, Z.y, S,
|
|
22284
|
+
const Z = Ml(F, W, s, a);
|
|
22285
|
+
e.arc(Z.x, Z.y, S, W + Math.PI, x - Rn);
|
|
22286
22286
|
}
|
|
22287
22287
|
const X = Ml(k, x, s, a);
|
|
22288
22288
|
if (e.lineTo(X.x, X.y), _ > 0) {
|
|
@@ -23416,7 +23416,7 @@ class f2 extends Xi {
|
|
|
23416
23416
|
K$(o, A, F, j, s.pointStyleWidth && m);
|
|
23417
23417
|
} else {
|
|
23418
23418
|
const A = k + Math.max((f - v) / 2, 0), F = l.leftForLtr(P, m), j = Ha(M.borderRadius);
|
|
23419
|
-
o.beginPath(), Object.values(j).some((
|
|
23419
|
+
o.beginPath(), Object.values(j).some((W) => W !== 0) ? dd(o, {
|
|
23420
23420
|
x: F,
|
|
23421
23421
|
y: A,
|
|
23422
23422
|
w: m,
|
|
@@ -23446,12 +23446,12 @@ class f2 extends Xi {
|
|
|
23446
23446
|
const M = o.measureText(P.text).width, $ = l.textAlign(P.textAlign || (P.textAlign = s.textAlign)), A = m + p + M;
|
|
23447
23447
|
let F = g.x, j = g.y;
|
|
23448
23448
|
l.setWidth(this.width), _ ? k > 0 && F + A + u > this.right && (j = g.y += S, g.line++, F = g.x = lr(i, this.left + u, this.right - r[g.line])) : k > 0 && j + S > this.bottom && (F = g.x = F + n[g.line].width + u, g.line++, j = g.y = lr(i, this.top + E + u, this.bottom - n[g.line].height));
|
|
23449
|
-
const
|
|
23450
|
-
if (x(
|
|
23449
|
+
const W = l.x(F);
|
|
23450
|
+
if (x(W, j, P), F = rV($, F + m + p, _ ? F + A : this.right, t.rtl), w(l.x(F), j, P), _)
|
|
23451
23451
|
g.x += A + u;
|
|
23452
23452
|
else if (typeof P.text != "string") {
|
|
23453
|
-
const
|
|
23454
|
-
g.y += RD(P,
|
|
23453
|
+
const U = c.lineHeight;
|
|
23454
|
+
g.y += RD(P, U) + u;
|
|
23455
23455
|
} else
|
|
23456
23456
|
g.y += S;
|
|
23457
23457
|
}), oD(this.ctx, t.textDirection);
|
|
@@ -27009,12 +27009,12 @@ const I2 = (e) => ({
|
|
|
27009
27009
|
}, g = g1(o), m = p1(g), v = await s.getDimensions(c), y = g === "y", x = y ? "top" : "left", w = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", E = i.reference[m] + i.reference[g] - p[g] - i.floating[m], S = p[g] - i.reference[g], P = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
27010
27010
|
let k = P ? P[_] : 0;
|
|
27011
27011
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(P))) && (k = a.floating[_] || i.floating[m]);
|
|
27012
|
-
const M = E / 2 - S / 2, $ = k / 2 - v[m] / 2 - 1, A = js(f[x], $), F = js(f[w], $), j = A,
|
|
27012
|
+
const M = E / 2 - S / 2, $ = k / 2 - v[m] / 2 - 1, A = js(f[x], $), F = js(f[w], $), j = A, W = k - v[m] - F, U = k / 2 - v[m] / 2 + M, z = yy(j, U, W), Q = !l.arrow && Fc(o) != null && U != z && i.reference[m] / 2 - (U < j ? A : F) - v[m] / 2 < 0, q = Q ? U < j ? U - j : U - W : 0;
|
|
27013
27013
|
return {
|
|
27014
27014
|
[g]: p[g] + q,
|
|
27015
27015
|
data: {
|
|
27016
27016
|
[g]: z,
|
|
27017
|
-
centerOffset:
|
|
27017
|
+
centerOffset: U - z - q,
|
|
27018
27018
|
...Q && {
|
|
27019
27019
|
alignmentOffset: q
|
|
27020
27020
|
}
|
|
@@ -27059,34 +27059,34 @@ const I2 = (e) => ({
|
|
|
27059
27059
|
overflows: k
|
|
27060
27060
|
}], !k.every((j) => j <= 0)) {
|
|
27061
27061
|
var $, A;
|
|
27062
|
-
const j = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1,
|
|
27063
|
-
if (
|
|
27062
|
+
const j = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, W = S[j];
|
|
27063
|
+
if (W)
|
|
27064
27064
|
return {
|
|
27065
27065
|
data: {
|
|
27066
27066
|
index: j,
|
|
27067
27067
|
overflows: M
|
|
27068
27068
|
},
|
|
27069
27069
|
reset: {
|
|
27070
|
-
placement:
|
|
27070
|
+
placement: W
|
|
27071
27071
|
}
|
|
27072
27072
|
};
|
|
27073
|
-
let
|
|
27074
|
-
if (!
|
|
27073
|
+
let U = (A = M.filter((z) => z.overflows[0] <= 0).sort((z, Q) => z.overflows[1] - Q.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
27074
|
+
if (!U)
|
|
27075
27075
|
switch (g) {
|
|
27076
27076
|
case "bestFit": {
|
|
27077
27077
|
var F;
|
|
27078
27078
|
const z = (F = M.map((Q) => [Q.placement, Q.overflows.filter((q) => q > 0).reduce((q, X) => q + X, 0)]).sort((Q, q) => Q[1] - q[1])[0]) == null ? void 0 : F[0];
|
|
27079
|
-
z && (
|
|
27079
|
+
z && (U = z);
|
|
27080
27080
|
break;
|
|
27081
27081
|
}
|
|
27082
27082
|
case "initialPlacement":
|
|
27083
|
-
|
|
27083
|
+
U = a;
|
|
27084
27084
|
break;
|
|
27085
27085
|
}
|
|
27086
|
-
if (o !==
|
|
27086
|
+
if (o !== U)
|
|
27087
27087
|
return {
|
|
27088
27088
|
reset: {
|
|
27089
|
-
placement:
|
|
27089
|
+
placement: U
|
|
27090
27090
|
}
|
|
27091
27091
|
};
|
|
27092
27092
|
}
|
|
@@ -27891,12 +27891,12 @@ function dY(e) {
|
|
|
27891
27891
|
F();
|
|
27892
27892
|
}
|
|
27893
27893
|
}, [E, S, F, $]);
|
|
27894
|
-
const
|
|
27894
|
+
const W = me.useMemo(() => ({
|
|
27895
27895
|
reference: P,
|
|
27896
27896
|
floating: k,
|
|
27897
27897
|
setReference: w,
|
|
27898
27898
|
setFloating: _
|
|
27899
|
-
}), [w, _]),
|
|
27899
|
+
}), [w, _]), U = me.useMemo(() => ({
|
|
27900
27900
|
reference: E,
|
|
27901
27901
|
floating: S
|
|
27902
27902
|
}), [E, S]), z = me.useMemo(() => {
|
|
@@ -27905,13 +27905,13 @@ function dY(e) {
|
|
|
27905
27905
|
left: 0,
|
|
27906
27906
|
top: 0
|
|
27907
27907
|
};
|
|
27908
|
-
if (!
|
|
27908
|
+
if (!U.floating)
|
|
27909
27909
|
return Q;
|
|
27910
|
-
const q = B2(
|
|
27910
|
+
const q = B2(U.floating, u.x), X = B2(U.floating, u.y);
|
|
27911
27911
|
return a ? {
|
|
27912
27912
|
...Q,
|
|
27913
27913
|
transform: "translate(" + q + "px, " + X + "px)",
|
|
27914
|
-
...ZD(
|
|
27914
|
+
...ZD(U.floating) >= 1.5 && {
|
|
27915
27915
|
willChange: "transform"
|
|
27916
27916
|
}
|
|
27917
27917
|
} : {
|
|
@@ -27919,14 +27919,14 @@ function dY(e) {
|
|
|
27919
27919
|
left: q,
|
|
27920
27920
|
top: X
|
|
27921
27921
|
};
|
|
27922
|
-
}, [n, a,
|
|
27922
|
+
}, [n, a, U.floating, u.x, u.y]);
|
|
27923
27923
|
return me.useMemo(() => ({
|
|
27924
27924
|
...u,
|
|
27925
27925
|
update: F,
|
|
27926
|
-
refs:
|
|
27927
|
-
elements:
|
|
27926
|
+
refs: W,
|
|
27927
|
+
elements: U,
|
|
27928
27928
|
floatingStyles: z
|
|
27929
|
-
}), [u, F,
|
|
27929
|
+
}), [u, F, W, U, z]);
|
|
27930
27930
|
}
|
|
27931
27931
|
function Kg(e) {
|
|
27932
27932
|
const [t, n] = Ee(void 0);
|
|
@@ -27979,7 +27979,7 @@ const eT = "Popper", [tT, xi] = Yn(eT), [fY, nT] = tT(eT), hY = (e) => {
|
|
|
27979
27979
|
const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: g = "center", alignOffset: m = 0, arrowPadding: v = 0, avoidCollisions: y = !0, collisionBoundary: x = [], collisionPadding: w = 0, sticky: _ = "partial", hideWhenDetached: E = !1, updatePositionStrategy: S = "optimized", onPlaced: P, ...k } = e, M = nT(rT, u), [$, A] = Ee(null), F = pt(
|
|
27980
27980
|
t,
|
|
27981
27981
|
(ke) => A(ke)
|
|
27982
|
-
), [j,
|
|
27982
|
+
), [j, W] = Ee(null), U = Kg(j), z = (n = U == null ? void 0 : U.width) !== null && n !== void 0 ? n : 0, Q = (r = U == null ? void 0 : U.height) !== null && r !== void 0 ? r : 0, q = f + (g !== "center" ? "-" + g : ""), X = typeof w == "number" ? w : {
|
|
27983
27983
|
top: 0,
|
|
27984
27984
|
right: 0,
|
|
27985
27985
|
bottom: 0,
|
|
@@ -28066,7 +28066,7 @@ const eT = "Popper", [tT, xi] = Yn(eT), [fY, nT] = tT(eT), hY = (e) => {
|
|
|
28066
28066
|
}, /* @__PURE__ */ B(mY, {
|
|
28067
28067
|
scope: u,
|
|
28068
28068
|
placedSide: pe,
|
|
28069
|
-
onArrowChange:
|
|
28069
|
+
onArrowChange: W,
|
|
28070
28070
|
arrowX: se,
|
|
28071
28071
|
arrowY: we,
|
|
28072
28072
|
shouldHideArrow: G
|
|
@@ -28811,7 +28811,7 @@ function gT(e, t) {
|
|
|
28811
28811
|
return (n == null ? void 0 : n.color) || "";
|
|
28812
28812
|
}
|
|
28813
28813
|
function oK({ card: e, isLoading: t }) {
|
|
28814
|
-
var x, w, _, E, S, P, k, M, $, A, F, j,
|
|
28814
|
+
var x, w, _, E, S, P, k, M, $, A, F, j, W, U, z, Q, q, X, Z, D, V, K, I, ae;
|
|
28815
28815
|
const n = Le((le) => le.actions.setCardTitle), r = Le(
|
|
28816
28816
|
(le) => le.actions.setCardDescription
|
|
28817
28817
|
), o = Le((le) => le.isVisualEditing), i = no((le) => le.card), s = no((le) => le.actions.setCard);
|
|
@@ -28861,7 +28861,7 @@ function oK({ card: e, isLoading: t }) {
|
|
|
28861
28861
|
useSuffix: !!((M = (k = e.preferences) == null ? void 0 : k.formatNumber) != null && M.suffix),
|
|
28862
28862
|
customSuffix: ((A = ($ = e.preferences) == null ? void 0 : $.formatNumber) == null ? void 0 : A.suffix) || "",
|
|
28863
28863
|
locale: ((j = (F = e.preferences) == null ? void 0 : F.formatNumber) == null ? void 0 : j.locale) || "",
|
|
28864
|
-
currency: ((
|
|
28864
|
+
currency: ((U = (W = e.preferences) == null ? void 0 : W.formatNumber) == null ? void 0 : U.currency) || ""
|
|
28865
28865
|
})
|
|
28866
28866
|
}
|
|
28867
28867
|
),
|
|
@@ -29064,11 +29064,11 @@ function ba({
|
|
|
29064
29064
|
...(_ = (w = t == null ? void 0 : t.options) == null ? void 0 : w.scales) == null ? void 0 : _[u],
|
|
29065
29065
|
ticks: {
|
|
29066
29066
|
...(P = (S = (E = t == null ? void 0 : t.options) == null ? void 0 : E.scales) == null ? void 0 : S[u]) == null ? void 0 : P.ticks,
|
|
29067
|
-
callback: (
|
|
29068
|
-
var
|
|
29067
|
+
callback: (W) => {
|
|
29068
|
+
var U, z, Q, q;
|
|
29069
29069
|
return Pc({
|
|
29070
|
-
number: Number(
|
|
29071
|
-
decimalPlaces: ((
|
|
29070
|
+
number: Number(W),
|
|
29071
|
+
decimalPlaces: ((U = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
|
|
29072
29072
|
useSuffix: !!((z = r == null ? void 0 : r.numberAxisFormat) != null && z.suffix),
|
|
29073
29073
|
customSuffix: "",
|
|
29074
29074
|
locale: ((Q = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : Q.locale) || "",
|
|
@@ -29086,11 +29086,11 @@ function ba({
|
|
|
29086
29086
|
...(A = t == null ? void 0 : t.options) == null ? void 0 : A.plugins,
|
|
29087
29087
|
datalabels: {
|
|
29088
29088
|
...(j = (F = t == null ? void 0 : t.options) == null ? void 0 : F.plugins) == null ? void 0 : j.datalabels,
|
|
29089
|
-
formatter: function(
|
|
29090
|
-
var
|
|
29089
|
+
formatter: function(W) {
|
|
29090
|
+
var U, z, Q, q;
|
|
29091
29091
|
return Pc({
|
|
29092
|
-
number: Number(
|
|
29093
|
-
decimalPlaces: ((
|
|
29092
|
+
number: Number(W),
|
|
29093
|
+
decimalPlaces: ((U = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
|
|
29094
29094
|
useSuffix: !!((z = r == null ? void 0 : r.numberAxisFormat) != null && z.suffix),
|
|
29095
29095
|
customSuffix: "",
|
|
29096
29096
|
locale: ((Q = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : Q.locale) || "",
|
|
@@ -29404,7 +29404,7 @@ function vT({
|
|
|
29404
29404
|
plugins: [t === "doughnut" ? {
|
|
29405
29405
|
id: "doughnutLabel",
|
|
29406
29406
|
beforeDatasetsDraw: function(E, S, P) {
|
|
29407
|
-
var
|
|
29407
|
+
var U, z, Q, q;
|
|
29408
29408
|
const { ctx: k, data: M } = E;
|
|
29409
29409
|
k.save();
|
|
29410
29410
|
const $ = E.getDatasetMeta(0).data[0].x, A = E.getDatasetMeta(0).data[0].y, F = Ip(Ap());
|
|
@@ -29412,15 +29412,15 @@ function vT({
|
|
|
29412
29412
|
const j = M.datasets[0].data.reduce(
|
|
29413
29413
|
(X, Z) => X + Z,
|
|
29414
29414
|
0
|
|
29415
|
-
),
|
|
29415
|
+
), W = Pc({
|
|
29416
29416
|
number: Number(j),
|
|
29417
|
-
decimalPlaces: ((
|
|
29417
|
+
decimalPlaces: ((U = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : U.decimalPlaces) || 0,
|
|
29418
29418
|
useSuffix: !!((z = s == null ? void 0 : s.numberAxisFormat) != null && z.suffix),
|
|
29419
29419
|
customSuffix: "",
|
|
29420
29420
|
locale: ((Q = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : Q.locale) || "",
|
|
29421
29421
|
currency: ((q = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : q.currency) || ""
|
|
29422
29422
|
});
|
|
29423
|
-
k.fillText(
|
|
29423
|
+
k.fillText(W, $, A);
|
|
29424
29424
|
}
|
|
29425
29425
|
} : ""]
|
|
29426
29426
|
};
|
|
@@ -29686,14 +29686,14 @@ function Jpe(e) {
|
|
|
29686
29686
|
return { ...o, data: ((a = o == null ? void 0 : o.data) == null ? void 0 : a.records) || [], card: i };
|
|
29687
29687
|
}
|
|
29688
29688
|
function bT(e) {
|
|
29689
|
-
var F, j,
|
|
29690
|
-
const { onChartElementClicked: t } = jc(), [n, r] = Ee(0), o = ((F = e == null ? void 0 : e.preferences) == null ? void 0 : F.filterOnClickColumnIndex) === void 0 ? 0 : (j = e.preferences) == null ? void 0 : j.filterOnClickColumnIndex, i = Le((
|
|
29691
|
-
Le((
|
|
29692
|
-
const s = Le((
|
|
29693
|
-
Le((
|
|
29694
|
-
(
|
|
29689
|
+
var F, j, W;
|
|
29690
|
+
const { onChartElementClicked: t } = jc(), [n, r] = Ee(0), o = ((F = e == null ? void 0 : e.preferences) == null ? void 0 : F.filterOnClickColumnIndex) === void 0 ? 0 : (j = e.preferences) == null ? void 0 : j.filterOnClickColumnIndex, i = Le((U) => U.bookmarkKey);
|
|
29691
|
+
Le((U) => U.isVisualEditing);
|
|
29692
|
+
const s = Le((U) => U.filteringCards), a = Le((U) => U.selectedSheetId);
|
|
29693
|
+
Le((U) => U.selectedCardId), Le(
|
|
29694
|
+
(U) => U.isDashboardEditing
|
|
29695
29695
|
);
|
|
29696
|
-
const l = Le((
|
|
29696
|
+
const l = Le((U) => U.themeStyle), c = Le((U) => U.filterValues), u = (W = e == null ? void 0 : e.preferences) == null ? void 0 : W.onClickFilter, {
|
|
29697
29697
|
addFrame: f,
|
|
29698
29698
|
addFilteringCard: p,
|
|
29699
29699
|
setFrameCardData: g,
|
|
@@ -29703,7 +29703,7 @@ function bT(e) {
|
|
|
29703
29703
|
removeFilterValue: x,
|
|
29704
29704
|
removeFilteringCard: w
|
|
29705
29705
|
} = Us(), { data: _, isLoading: E, isFetching: S, isError: P, refetch: k } = mK(e), M = s == null ? void 0 : s.find(
|
|
29706
|
-
(
|
|
29706
|
+
(U) => U.id === e.id
|
|
29707
29707
|
);
|
|
29708
29708
|
let $;
|
|
29709
29709
|
e.data && e.data.length > 0 && ($ = vT({
|
|
@@ -29733,7 +29733,7 @@ function bT(e) {
|
|
|
29733
29733
|
]), Se(() => {
|
|
29734
29734
|
e.connectionId && !M && k();
|
|
29735
29735
|
}, [c, i]);
|
|
29736
|
-
function A(
|
|
29736
|
+
function A(U, z, Q, q) {
|
|
29737
29737
|
var D, V;
|
|
29738
29738
|
let X = !1;
|
|
29739
29739
|
if (!e.data)
|
|
@@ -29776,7 +29776,7 @@ function bT(e) {
|
|
|
29776
29776
|
), Z[o].columnValue, y(K), p(e);
|
|
29777
29777
|
}
|
|
29778
29778
|
PK({
|
|
29779
|
-
chart:
|
|
29779
|
+
chart: U,
|
|
29780
29780
|
elementIndex: Q,
|
|
29781
29781
|
datasetIndex: z,
|
|
29782
29782
|
cardType: e.type,
|
|
@@ -32800,7 +32800,7 @@ const im = qT, SQ = [
|
|
|
32800
32800
|
prop: s,
|
|
32801
32801
|
defaultProp: a,
|
|
32802
32802
|
onChange: l
|
|
32803
|
-
}), A = ce(null), F = v ? !!v.closest("form") : !0, [j,
|
|
32803
|
+
}), A = ce(null), F = v ? !!v.closest("form") : !0, [j, W] = Ee(/* @__PURE__ */ new Set()), U = Array.from(j).map(
|
|
32804
32804
|
(z) => z.props.value
|
|
32805
32805
|
).join(";");
|
|
32806
32806
|
return /* @__PURE__ */ B(hf, m, /* @__PURE__ */ B(PQ, {
|
|
@@ -32825,18 +32825,18 @@ const im = qT, SQ = [
|
|
|
32825
32825
|
}, /* @__PURE__ */ B(OQ, {
|
|
32826
32826
|
scope: e.__scopeSelect,
|
|
32827
32827
|
onNativeOptionAdd: We((z) => {
|
|
32828
|
-
|
|
32828
|
+
W(
|
|
32829
32829
|
(Q) => new Set(Q).add(z)
|
|
32830
32830
|
);
|
|
32831
32831
|
}, []),
|
|
32832
32832
|
onNativeOptionRemove: We((z) => {
|
|
32833
|
-
|
|
32833
|
+
W((Q) => {
|
|
32834
32834
|
const q = new Set(Q);
|
|
32835
32835
|
return q.delete(z), q;
|
|
32836
32836
|
});
|
|
32837
32837
|
}, [])
|
|
32838
32838
|
}, n)), F ? /* @__PURE__ */ B(QT, {
|
|
32839
|
-
key:
|
|
32839
|
+
key: U,
|
|
32840
32840
|
"aria-hidden": !0,
|
|
32841
32841
|
required: g,
|
|
32842
32842
|
tabIndex: -1,
|
|
@@ -32949,7 +32949,7 @@ const im = qT, SQ = [
|
|
|
32949
32949
|
} = e, w = al(Dc, n), [_, E] = Ee(null), [S, P] = Ee(null), k = pt(
|
|
32950
32950
|
t,
|
|
32951
32951
|
(pe) => E(pe)
|
|
32952
|
-
), [M, $] = Ee(null), [A, F] = Ee(null), j = lm(n), [
|
|
32952
|
+
), [M, $] = Ee(null), [A, F] = Ee(null), j = lm(n), [W, U] = Ee(!1), z = ce(!1);
|
|
32953
32953
|
Se(() => {
|
|
32954
32954
|
if (_)
|
|
32955
32955
|
return rm(_);
|
|
@@ -32980,9 +32980,9 @@ const im = qT, SQ = [
|
|
|
32980
32980
|
]
|
|
32981
32981
|
);
|
|
32982
32982
|
Se(() => {
|
|
32983
|
-
|
|
32983
|
+
W && q();
|
|
32984
32984
|
}, [
|
|
32985
|
-
|
|
32985
|
+
W,
|
|
32986
32986
|
q
|
|
32987
32987
|
]);
|
|
32988
32988
|
const { onOpenChange: X, triggerPointerDownPosRef: Z } = w;
|
|
@@ -33070,7 +33070,7 @@ const im = qT, SQ = [
|
|
|
33070
33070
|
focusSelectedItem: q,
|
|
33071
33071
|
selectedItemText: A,
|
|
33072
33072
|
position: r,
|
|
33073
|
-
isPositioned:
|
|
33073
|
+
isPositioned: W,
|
|
33074
33074
|
searchRef: D
|
|
33075
33075
|
}, /* @__PURE__ */ B(im, {
|
|
33076
33076
|
as: qi,
|
|
@@ -33101,7 +33101,7 @@ const im = qT, SQ = [
|
|
|
33101
33101
|
dir: w.dir,
|
|
33102
33102
|
onContextMenu: (pe) => pe.preventDefault()
|
|
33103
33103
|
}, x, fe, {
|
|
33104
|
-
onPlaced: () =>
|
|
33104
|
+
onPlaced: () => U(!0),
|
|
33105
33105
|
ref: k,
|
|
33106
33106
|
style: {
|
|
33107
33107
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -33160,7 +33160,7 @@ const im = qT, SQ = [
|
|
|
33160
33160
|
]);
|
|
33161
33161
|
a.style.minWidth = Oe + "px", a.style.right = Ye + "px";
|
|
33162
33162
|
}
|
|
33163
|
-
const F = p(), j = window.innerHeight - Fi * 2,
|
|
33163
|
+
const F = p(), j = window.innerHeight - Fi * 2, W = v.scrollHeight, U = window.getComputedStyle(c), z = parseInt(U.borderTopWidth, 10), Q = parseInt(U.paddingTop, 10), q = parseInt(U.borderBottomWidth, 10), X = parseInt(U.paddingBottom, 10), Z = z + Q + W + X + q, D = Math.min(y.offsetHeight * 5, Z), V = window.getComputedStyle(v), K = parseInt(V.paddingTop, 10), I = parseInt(V.paddingBottom, 10), ae = k.top + k.height / 2 - Fi, le = j - ae, fe = y.offsetHeight / 2, pe = y.offsetTop + fe, ie = z + Q + pe, ee = Z - ie;
|
|
33164
33164
|
if (ie <= ae) {
|
|
33165
33165
|
const we = y === F[F.length - 1].ref.current;
|
|
33166
33166
|
a.style.bottom = "0px";
|
|
@@ -34313,7 +34313,7 @@ function NJ({
|
|
|
34313
34313
|
function M() {
|
|
34314
34314
|
var $, A, F;
|
|
34315
34315
|
if (i === "date") {
|
|
34316
|
-
const j = EJ(c, f),
|
|
34316
|
+
const j = EJ(c, f), W = {
|
|
34317
34317
|
columnIdx: e,
|
|
34318
34318
|
type: i,
|
|
34319
34319
|
options: j
|
|
@@ -34323,9 +34323,9 @@ function NJ({
|
|
|
34323
34323
|
columnSettings: [
|
|
34324
34324
|
// Remove the existing column setting
|
|
34325
34325
|
...(($ = o == null ? void 0 : o.columnSettings) == null ? void 0 : $.filter(
|
|
34326
|
-
(
|
|
34326
|
+
(U) => U.columnIdx !== e
|
|
34327
34327
|
)) || [],
|
|
34328
|
-
|
|
34328
|
+
W
|
|
34329
34329
|
]
|
|
34330
34330
|
});
|
|
34331
34331
|
} else if (i === "number") {
|
|
@@ -34348,7 +34348,7 @@ function NJ({
|
|
|
34348
34348
|
},
|
|
34349
34349
|
colorRanges: a.length > 0 ? a : void 0
|
|
34350
34350
|
};
|
|
34351
|
-
const
|
|
34351
|
+
const W = {
|
|
34352
34352
|
columnIdx: e,
|
|
34353
34353
|
type: i,
|
|
34354
34354
|
options: j
|
|
@@ -34358,9 +34358,9 @@ function NJ({
|
|
|
34358
34358
|
columnSettings: [
|
|
34359
34359
|
// Remove the existing column setting
|
|
34360
34360
|
...((A = o == null ? void 0 : o.columnSettings) == null ? void 0 : A.filter(
|
|
34361
|
-
(
|
|
34361
|
+
(U) => U.columnIdx !== e
|
|
34362
34362
|
)) || [],
|
|
34363
|
-
|
|
34363
|
+
W
|
|
34364
34364
|
]
|
|
34365
34365
|
});
|
|
34366
34366
|
} else
|
|
@@ -34496,12 +34496,12 @@ function FJ({ data: e, card: t }) {
|
|
|
34496
34496
|
] });
|
|
34497
34497
|
},
|
|
34498
34498
|
cell: ({ cell: M }) => {
|
|
34499
|
-
var
|
|
34500
|
-
const $ = M.getValue(), A = (
|
|
34499
|
+
var W, U;
|
|
34500
|
+
const $ = M.getValue(), A = (W = m == null ? void 0 : m.columnSettings) == null ? void 0 : W.find(
|
|
34501
34501
|
(z) => z.columnIdx === k
|
|
34502
34502
|
), F = v($, A), j = gT(
|
|
34503
34503
|
$,
|
|
34504
|
-
(
|
|
34504
|
+
(U = A == null ? void 0 : A.options) == null ? void 0 : U.colorRanges
|
|
34505
34505
|
);
|
|
34506
34506
|
return /* @__PURE__ */ O.jsx("div", { className: "px-2 py-1", style: { backgroundColor: j }, children: F });
|
|
34507
34507
|
}
|
|
@@ -34602,6 +34602,11 @@ function FJ({ data: e, card: t }) {
|
|
|
34602
34602
|
return /* @__PURE__ */ O.jsx(
|
|
34603
34603
|
Sy,
|
|
34604
34604
|
{
|
|
34605
|
+
onClick: (F) => {
|
|
34606
|
+
var W;
|
|
34607
|
+
const j = ((W = window == null ? void 0 : window.getSelection()) == null ? void 0 : W.toString()) || "";
|
|
34608
|
+
(j == null ? void 0 : j.length) > 0 && F.stopPropagation();
|
|
34609
|
+
},
|
|
34605
34610
|
className: De("p-0", {
|
|
34606
34611
|
"border-x": $ > 0 && $ < y.length - 1 || $ === 1 && y.length == 2,
|
|
34607
34612
|
// if the table has only 2 columns
|
|
@@ -34631,9 +34636,9 @@ function zJ({
|
|
|
34631
34636
|
className: n,
|
|
34632
34637
|
...r
|
|
34633
34638
|
}) {
|
|
34634
|
-
const { customCards: o } = jc(), i = oe.useRef(null), s = Le((
|
|
34635
|
-
(
|
|
34636
|
-
), u = e.cards.find((
|
|
34639
|
+
const { customCards: o } = jc(), i = oe.useRef(null), s = Le((W) => W.themeStyle), a = Le((W) => W.selectedSheetId), l = Le((W) => W.selectedFrameId), c = Le(
|
|
34640
|
+
(W) => W.isDashboardEditing
|
|
34641
|
+
), u = e.cards.find((W) => W.id === e.activeCardId);
|
|
34637
34642
|
TK(e, i);
|
|
34638
34643
|
const {
|
|
34639
34644
|
isError: f,
|
|
@@ -34648,16 +34653,16 @@ function zJ({
|
|
|
34648
34653
|
setSelectedSchemaName: P,
|
|
34649
34654
|
setSelectedTableName: k
|
|
34650
34655
|
} = VD();
|
|
34651
|
-
function M(
|
|
34652
|
-
|
|
34656
|
+
function M(W) {
|
|
34657
|
+
W.stopPropagation(), _(e.id), u != null && u.connectionId && E(u == null ? void 0 : u.connectionId), u != null && u.lastSelectedDatabase && S(u == null ? void 0 : u.lastSelectedDatabase), u != null && u.lastSelectedSchema && P(u == null ? void 0 : u.lastSelectedSchema), u != null && u.lastSelectedTable && k(u == null ? void 0 : u.lastSelectedTable);
|
|
34653
34658
|
}
|
|
34654
34659
|
function $() {
|
|
34655
34660
|
if (o && o.length > 0) {
|
|
34656
|
-
const
|
|
34657
|
-
if (
|
|
34658
|
-
const
|
|
34659
|
-
if (
|
|
34660
|
-
return /* @__PURE__ */ O.jsx(
|
|
34661
|
+
const W = o.find((U) => U.cardId === u.id);
|
|
34662
|
+
if (W && W.replaceDefault) {
|
|
34663
|
+
const U = W.content;
|
|
34664
|
+
if (U)
|
|
34665
|
+
return /* @__PURE__ */ O.jsx(U, { card: u });
|
|
34661
34666
|
}
|
|
34662
34667
|
}
|
|
34663
34668
|
return u.type === "kpi" ? /* @__PURE__ */ O.jsx(oK, { isLoading: p || g, card: u }) : j;
|
|
@@ -34671,10 +34676,10 @@ function zJ({
|
|
|
34671
34676
|
/* @__PURE__ */ O.jsx("div", { className: "relative flex min-h-0 flex-1 grow basis-0", children: /* @__PURE__ */ O.jsx(FJ, { card: u, data: u.data }) })
|
|
34672
34677
|
);
|
|
34673
34678
|
if (o && o.length > 0) {
|
|
34674
|
-
const
|
|
34675
|
-
if (
|
|
34676
|
-
const
|
|
34677
|
-
return /* @__PURE__ */ O.jsx(
|
|
34679
|
+
const W = o.find((U) => U.cardId === u.id);
|
|
34680
|
+
if (W && W.content) {
|
|
34681
|
+
const U = W.content;
|
|
34682
|
+
return /* @__PURE__ */ O.jsx(U, { card: u });
|
|
34678
34683
|
}
|
|
34679
34684
|
}
|
|
34680
34685
|
if (m)
|
|
@@ -34689,11 +34694,11 @@ function zJ({
|
|
|
34689
34694
|
}
|
|
34690
34695
|
function F() {
|
|
34691
34696
|
if (o && o.length > 0) {
|
|
34692
|
-
const
|
|
34693
|
-
if (
|
|
34694
|
-
const
|
|
34695
|
-
if (
|
|
34696
|
-
return /* @__PURE__ */ O.jsx(
|
|
34697
|
+
const W = o.find((U) => U.cardId === u.id);
|
|
34698
|
+
if (W && W.footer) {
|
|
34699
|
+
const U = W.footer;
|
|
34700
|
+
if (U)
|
|
34701
|
+
return /* @__PURE__ */ O.jsx(U, { card: u });
|
|
34697
34702
|
}
|
|
34698
34703
|
}
|
|
34699
34704
|
return t || null;
|
|
@@ -34707,7 +34712,7 @@ function zJ({
|
|
|
34707
34712
|
xc,
|
|
34708
34713
|
{
|
|
34709
34714
|
text: u.title,
|
|
34710
|
-
onSave: (
|
|
34715
|
+
onSave: (W) => x(a, u.id, W),
|
|
34711
34716
|
children: /* @__PURE__ */ O.jsx(Og, { className: "text-base", children: u.title })
|
|
34712
34717
|
}
|
|
34713
34718
|
),
|
|
@@ -34732,7 +34737,7 @@ function zJ({
|
|
|
34732
34737
|
xc,
|
|
34733
34738
|
{
|
|
34734
34739
|
text: (u == null ? void 0 : u.description) || "",
|
|
34735
|
-
onSave: (
|
|
34740
|
+
onSave: (W) => w(a, u.id, W),
|
|
34736
34741
|
children: /* @__PURE__ */ O.jsxs(kR, { children: [
|
|
34737
34742
|
" ",
|
|
34738
34743
|
u.description
|
|
@@ -36314,7 +36319,7 @@ function ZZ() {
|
|
|
36314
36319
|
function j(R) {
|
|
36315
36320
|
return R.displayName || "Context";
|
|
36316
36321
|
}
|
|
36317
|
-
function
|
|
36322
|
+
function W(R) {
|
|
36318
36323
|
if (R == null)
|
|
36319
36324
|
return null;
|
|
36320
36325
|
if (typeof R.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof R == "function")
|
|
@@ -36347,11 +36352,11 @@ function ZZ() {
|
|
|
36347
36352
|
return F(R, R.render, "ForwardRef");
|
|
36348
36353
|
case f:
|
|
36349
36354
|
var $e = R.displayName || null;
|
|
36350
|
-
return $e !== null ? $e :
|
|
36355
|
+
return $e !== null ? $e : W(R.type) || "Memo";
|
|
36351
36356
|
case p: {
|
|
36352
36357
|
var qe = R, Ke = qe._payload, Be = qe._init;
|
|
36353
36358
|
try {
|
|
36354
|
-
return
|
|
36359
|
+
return W(Be(Ke));
|
|
36355
36360
|
} catch {
|
|
36356
36361
|
return null;
|
|
36357
36362
|
}
|
|
@@ -36359,7 +36364,7 @@ function ZZ() {
|
|
|
36359
36364
|
}
|
|
36360
36365
|
return null;
|
|
36361
36366
|
}
|
|
36362
|
-
var
|
|
36367
|
+
var U = Object.assign, z = 0, Q, q, X, Z, D, V, K;
|
|
36363
36368
|
function I() {
|
|
36364
36369
|
}
|
|
36365
36370
|
I.__reactDisabledLog = !0;
|
|
@@ -36395,25 +36400,25 @@ function ZZ() {
|
|
|
36395
36400
|
writable: !0
|
|
36396
36401
|
};
|
|
36397
36402
|
Object.defineProperties(console, {
|
|
36398
|
-
log:
|
|
36403
|
+
log: U({}, R, {
|
|
36399
36404
|
value: Q
|
|
36400
36405
|
}),
|
|
36401
|
-
info:
|
|
36406
|
+
info: U({}, R, {
|
|
36402
36407
|
value: q
|
|
36403
36408
|
}),
|
|
36404
|
-
warn:
|
|
36409
|
+
warn: U({}, R, {
|
|
36405
36410
|
value: X
|
|
36406
36411
|
}),
|
|
36407
|
-
error:
|
|
36412
|
+
error: U({}, R, {
|
|
36408
36413
|
value: Z
|
|
36409
36414
|
}),
|
|
36410
|
-
group:
|
|
36415
|
+
group: U({}, R, {
|
|
36411
36416
|
value: D
|
|
36412
36417
|
}),
|
|
36413
|
-
groupCollapsed:
|
|
36418
|
+
groupCollapsed: U({}, R, {
|
|
36414
36419
|
value: V
|
|
36415
36420
|
}),
|
|
36416
|
-
groupEnd:
|
|
36421
|
+
groupEnd: U({}, R, {
|
|
36417
36422
|
value: K
|
|
36418
36423
|
})
|
|
36419
36424
|
});
|
|
@@ -36623,8 +36628,8 @@ function ZZ() {
|
|
|
36623
36628
|
}
|
|
36624
36629
|
function hr(R, J) {
|
|
36625
36630
|
if (typeof R.ref == "string" && je.current && J && je.current.stateNode !== J) {
|
|
36626
|
-
var de =
|
|
36627
|
-
on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
36631
|
+
var de = W(je.current.type);
|
|
36632
|
+
on[de] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', W(je.current.type), R.ref), on[de] = !0);
|
|
36628
36633
|
}
|
|
36629
36634
|
}
|
|
36630
36635
|
function sn(R, J) {
|
|
@@ -36712,7 +36717,7 @@ function ZZ() {
|
|
|
36712
36717
|
function _i() {
|
|
36713
36718
|
{
|
|
36714
36719
|
if (Tt.current) {
|
|
36715
|
-
var R =
|
|
36720
|
+
var R = W(Tt.current.type);
|
|
36716
36721
|
if (R)
|
|
36717
36722
|
return `
|
|
36718
36723
|
|
|
@@ -36755,7 +36760,7 @@ Check the top-level render call using <` + de + ">.");
|
|
|
36755
36760
|
return;
|
|
36756
36761
|
Xs[de] = !0;
|
|
36757
36762
|
var $e = "";
|
|
36758
|
-
R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " +
|
|
36763
|
+
R && R._owner && R._owner !== Tt.current && ($e = " It was passed a child from " + W(R._owner.type) + "."), Xt(R), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', de, $e), Xt(null);
|
|
36759
36764
|
}
|
|
36760
36765
|
}
|
|
36761
36766
|
function Js(R, J) {
|
|
@@ -36792,11 +36797,11 @@ Check the top-level render call using <` + de + ">.");
|
|
|
36792
36797
|
else
|
|
36793
36798
|
return;
|
|
36794
36799
|
if (de) {
|
|
36795
|
-
var $e =
|
|
36800
|
+
var $e = W(J);
|
|
36796
36801
|
Ze(de, R.props, "prop", $e, R);
|
|
36797
36802
|
} else if (J.PropTypes !== void 0 && !En) {
|
|
36798
36803
|
En = !0;
|
|
36799
|
-
var qe =
|
|
36804
|
+
var qe = W(J);
|
|
36800
36805
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", qe || "Unknown");
|
|
36801
36806
|
}
|
|
36802
36807
|
typeof J.getDefaultProps == "function" && !J.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -36823,7 +36828,7 @@ Check the top-level render call using <` + de + ">.");
|
|
|
36823
36828
|
var At = qc(qe);
|
|
36824
36829
|
At ? Fe += At : Fe += _i();
|
|
36825
36830
|
var lt;
|
|
36826
|
-
R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (
|
|
36831
|
+
R === null ? lt = "null" : Ft(R) ? lt = "array" : R !== void 0 && R.$$typeof === t ? (lt = "<" + (W(R.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : lt = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", lt, Fe);
|
|
36827
36832
|
}
|
|
36828
36833
|
var dt = it(R, J, de, qe, Ke);
|
|
36829
36834
|
if (dt == null)
|
|
@@ -37598,10 +37603,10 @@ function fte(e, t) {
|
|
|
37598
37603
|
}, j = function(q) {
|
|
37599
37604
|
var X;
|
|
37600
37605
|
(X = n.onDayTouchMove) === null || X === void 0 || X.call(n, e, t, q);
|
|
37601
|
-
},
|
|
37606
|
+
}, W = function(q) {
|
|
37602
37607
|
var X;
|
|
37603
37608
|
(X = n.onDayTouchStart) === null || X === void 0 || X.call(n, e, t, q);
|
|
37604
|
-
},
|
|
37609
|
+
}, U = function(q) {
|
|
37605
37610
|
var X;
|
|
37606
37611
|
(X = n.onDayKeyUp) === null || X === void 0 || X.call(n, e, t, q);
|
|
37607
37612
|
}, z = function(q) {
|
|
@@ -37638,7 +37643,7 @@ function fte(e, t) {
|
|
|
37638
37643
|
onFocus: E,
|
|
37639
37644
|
onBlur: S,
|
|
37640
37645
|
onKeyDown: z,
|
|
37641
|
-
onKeyUp:
|
|
37646
|
+
onKeyUp: U,
|
|
37642
37647
|
onMouseEnter: P,
|
|
37643
37648
|
onMouseLeave: k,
|
|
37644
37649
|
onPointerEnter: M,
|
|
@@ -37646,7 +37651,7 @@ function fte(e, t) {
|
|
|
37646
37651
|
onTouchCancel: A,
|
|
37647
37652
|
onTouchEnd: F,
|
|
37648
37653
|
onTouchMove: j,
|
|
37649
|
-
onTouchStart:
|
|
37654
|
+
onTouchStart: W
|
|
37650
37655
|
};
|
|
37651
37656
|
return Q;
|
|
37652
37657
|
}
|
|
@@ -39075,14 +39080,14 @@ function Rne(e, t) {
|
|
|
39075
39080
|
let { value: n, defaultValue: r, onChange: o, form: i, name: s, by: a = null, disabled: l = !1, __demoMode: c = !1, nullable: u = !1, multiple: f = !1, immediate: p = !1, virtual: g = null, ...m } = e, v = !1, y = null, [x = f ? [] : void 0, w] = Yte(n, o, r), [_, E] = ax(Pne, { dataRef: Y6(), comboboxState: c ? 0 : 1, options: [], virtual: null, activeOptionIndex: null, activationTrigger: 2, labelId: null }), S = ce(!1), P = ce({ static: !1, hold: !1 }), k = ce(null), M = ce(null), $ = ce(null), A = ce(null), F = Et(typeof a == "string" ? (ee, se) => {
|
|
39076
39081
|
let we = a;
|
|
39077
39082
|
return (ee == null ? void 0 : ee[we]) === (se == null ? void 0 : se[we]);
|
|
39078
|
-
} : a ?? ((ee, se) => ee === se)), j = Et((ee) => _.options.findIndex((se) => F(se.dataRef.current.value, ee))),
|
|
39083
|
+
} : a ?? ((ee, se) => ee === se)), j = Et((ee) => _.options.findIndex((se) => F(se.dataRef.current.value, ee))), W = We((ee) => nr(z.mode, { 1: () => x.some((se) => F(se, ee)), 0: () => F(x, ee) }), [x]), U = Et((ee) => _.activeOptionIndex === j(ee)), z = $n(() => ({ ..._, immediate: v, optionsPropsRef: P, labelRef: k, inputRef: M, buttonRef: $, optionsRef: A, value: x, defaultValue: r, disabled: l, mode: f ? 1 : 0, virtual: _.virtual, get activeOptionIndex() {
|
|
39079
39084
|
if (S.current && _.activeOptionIndex === null && _.options.length > 0) {
|
|
39080
39085
|
let ee = _.options.findIndex((se) => !se.dataRef.current.disabled);
|
|
39081
39086
|
if (ee !== -1)
|
|
39082
39087
|
return ee;
|
|
39083
39088
|
}
|
|
39084
39089
|
return _.activeOptionIndex;
|
|
39085
|
-
}, calculateIndex: j, compare: F, isSelected:
|
|
39090
|
+
}, calculateIndex: j, compare: F, isSelected: W, isActive: U, nullable: u, __demoMode: c }), [x, r, l, f, u, c, _, y]);
|
|
39086
39091
|
Vn(() => {
|
|
39087
39092
|
}, [y, void 0]), Vn(() => {
|
|
39088
39093
|
_.dataRef.current = z;
|
|
@@ -39214,11 +39219,11 @@ function Dne(e, t) {
|
|
|
39214
39219
|
}), j = K1(() => {
|
|
39215
39220
|
if (g.labelId)
|
|
39216
39221
|
return [g.labelId].join(" ");
|
|
39217
|
-
}, [g.labelId]),
|
|
39222
|
+
}, [g.labelId]), W = $n(() => ({ open: g.comboboxState === 0, disabled: g.disabled }), [g]), U = { ref: v, id: l, role: "combobox", type: f, "aria-controls": (n = g.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": g.comboboxState === 0, "aria-activedescendant": g.activeOptionIndex === null ? void 0 : g.virtual ? (r = g.options.find((z) => {
|
|
39218
39223
|
var Q;
|
|
39219
39224
|
return !((Q = g.virtual) != null && Q.disabled(z.dataRef.current.value)) && g.compare(z.dataRef.current.value, g.virtual.options[g.activeOptionIndex]);
|
|
39220
39225
|
})) == null ? void 0 : r.id : (o = g.options[g.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": j, "aria-autocomplete": "list", defaultValue: (s = (i = e.defaultValue) != null ? i : g.defaultValue !== void 0 ? u == null ? void 0 : u(g.defaultValue) : null) != null ? s : g.defaultValue, disabled: g.disabled, onCompositionStart: P, onCompositionEnd: k, onKeyDown: M, onChange: $, onFocus: F, onBlur: A };
|
|
39221
|
-
return Ji({ ourProps:
|
|
39226
|
+
return Ji({ ourProps: U, theirProps: p, slot: W, defaultTag: $ne, name: "Combobox.Input" });
|
|
39222
39227
|
}
|
|
39223
39228
|
let Tne = "button";
|
|
39224
39229
|
function kne(e, t) {
|
|
@@ -39491,12 +39496,12 @@ function ore(e, t) {
|
|
|
39491
39496
|
return nr(P, { hidden: () => A(y), visible: () => $(y) });
|
|
39492
39497
|
}
|
|
39493
39498
|
}, [P, y, $, A, _, w]);
|
|
39494
|
-
let F = fi({ base: ps(v.className), enter: ps(l), enterFrom: ps(c), enterTo: ps(u), entered: ps(f), leave: ps(p), leaveFrom: ps(g), leaveTo: ps(m) }), j = nre({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }),
|
|
39499
|
+
let F = fi({ base: ps(v.className), enter: ps(l), enterFrom: ps(c), enterTo: ps(u), entered: ps(f), leave: ps(p), leaveFrom: ps(g), leaveTo: ps(m) }), j = nre({ beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: a }), W = X1();
|
|
39495
39500
|
Se(() => {
|
|
39496
|
-
if (
|
|
39501
|
+
if (W && P === "visible" && y.current === null)
|
|
39497
39502
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
39498
|
-
}, [y, P,
|
|
39499
|
-
let
|
|
39503
|
+
}, [y, P, W]);
|
|
39504
|
+
let U = S && !E, z = E && _ && S, Q = !W || U ? "idle" : _ ? "enter" : "leave", q = qne(0), X = Et((ae) => nr(ae, { enter: () => {
|
|
39500
39505
|
q.addFlag(io.Opening), j.current.beforeEnter();
|
|
39501
39506
|
}, leave: () => {
|
|
39502
39507
|
q.addFlag(io.Closing), j.current.beforeLeave();
|
|
@@ -39821,7 +39826,7 @@ function fre() {
|
|
|
39821
39826
|
)) == null ? void 0 : k[0].layouts, o = Le(($) => $.dashboard.filters), i = Le(
|
|
39822
39827
|
($) => {
|
|
39823
39828
|
var A, F, j;
|
|
39824
|
-
return (j = (F = (A = $.dashboard) == null ? void 0 : A.sheets) == null ? void 0 : F.find((
|
|
39829
|
+
return (j = (F = (A = $.dashboard) == null ? void 0 : A.sheets) == null ? void 0 : F.find((W) => W.id === n)) == null ? void 0 : j.frames;
|
|
39825
39830
|
}
|
|
39826
39831
|
), {
|
|
39827
39832
|
getSelectedSheet: s,
|
|
@@ -41001,8 +41006,8 @@ async function uM(...e) {
|
|
|
41001
41006
|
if (!g)
|
|
41002
41007
|
return;
|
|
41003
41008
|
const [m, v] = sM(t, g), [y, x, w, _] = ji.get(t), E = () => {
|
|
41004
|
-
const
|
|
41005
|
-
return (ai(i.revalidate) ? i.revalidate(m().data, p) : i.revalidate !== !1) && (delete w[g], delete _[g],
|
|
41009
|
+
const W = y[g];
|
|
41010
|
+
return (ai(i.revalidate) ? i.revalidate(m().data, p) : i.revalidate !== !1) && (delete w[g], delete _[g], W && W[0]) ? W[0](cM).then(() => m().data) : m().data;
|
|
41006
41011
|
};
|
|
41007
41012
|
if (e.length < 3)
|
|
41008
41013
|
return E();
|
|
@@ -41019,12 +41024,12 @@ async function uM(...e) {
|
|
|
41019
41024
|
})), ai(S))
|
|
41020
41025
|
try {
|
|
41021
41026
|
S = S(j);
|
|
41022
|
-
} catch (
|
|
41023
|
-
P =
|
|
41027
|
+
} catch (W) {
|
|
41028
|
+
P = W;
|
|
41024
41029
|
}
|
|
41025
41030
|
if (S && Tre(S))
|
|
41026
|
-
if (S = await S.catch((
|
|
41027
|
-
P =
|
|
41031
|
+
if (S = await S.catch((W) => {
|
|
41032
|
+
P = W;
|
|
41028
41033
|
}), k !== x[g][0]) {
|
|
41029
41034
|
if (P)
|
|
41030
41035
|
throw P;
|
|
@@ -41036,9 +41041,9 @@ async function uM(...e) {
|
|
|
41036
41041
|
}));
|
|
41037
41042
|
if (s && !P)
|
|
41038
41043
|
if (ai(s)) {
|
|
41039
|
-
const
|
|
41044
|
+
const W = s(S, j);
|
|
41040
41045
|
v({
|
|
41041
|
-
data:
|
|
41046
|
+
data: W,
|
|
41042
41047
|
error: kr,
|
|
41043
41048
|
_c: kr
|
|
41044
41049
|
});
|
|
@@ -41184,8 +41189,8 @@ const AP = oe.use || ((e) => {
|
|
|
41184
41189
|
}), Xb = {
|
|
41185
41190
|
dedupe: !0
|
|
41186
41191
|
}, ioe = (e, t, n) => {
|
|
41187
|
-
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: p } = n, [g, m, v, y] = ji.get(r), [x, w] = iw(e), _ = ce(!1), E = ce(!1), S = ce(x), P = ce(t), k = ce(n), M = () => k.current, $ = () => M().isVisible() && M().isOnline(), [A, F, j,
|
|
41188
|
-
for (const Oe in
|
|
41192
|
+
const { cache: r, compare: o, suspense: i, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: c, refreshWhenHidden: u, refreshWhenOffline: f, keepPreviousData: p } = n, [g, m, v, y] = ji.get(r), [x, w] = iw(e), _ = ce(!1), E = ce(!1), S = ce(x), P = ce(t), k = ce(n), M = () => k.current, $ = () => M().isVisible() && M().isOnline(), [A, F, j, W] = sM(r, x), U = ce({}).current, z = Lt(s) ? n.fallback[x] : s, Q = (G, ye) => {
|
|
41193
|
+
for (const Oe in U) {
|
|
41189
41194
|
const ke = Oe;
|
|
41190
41195
|
if (ke === "data") {
|
|
41191
41196
|
if (!o(G[ke], ye[ke]) && (!Lt(G[ke]) || !o(le, ye[ke])))
|
|
@@ -41202,7 +41207,7 @@ const AP = oe.use || ((e) => {
|
|
|
41202
41207
|
isLoading: !0,
|
|
41203
41208
|
...Ze
|
|
41204
41209
|
} : Ze;
|
|
41205
|
-
}, Oe = A(), ke =
|
|
41210
|
+
}, Oe = A(), ke = W(), Ae = ye(Oe), Ye = Oe === ke ? Ae : ye(ke);
|
|
41206
41211
|
let He = Ae;
|
|
41207
41212
|
return [
|
|
41208
41213
|
() => {
|
|
@@ -41354,16 +41359,16 @@ const AP = oe.use || ((e) => {
|
|
|
41354
41359
|
return {
|
|
41355
41360
|
mutate: we,
|
|
41356
41361
|
get data() {
|
|
41357
|
-
return
|
|
41362
|
+
return U.data = !0, le;
|
|
41358
41363
|
},
|
|
41359
41364
|
get error() {
|
|
41360
|
-
return
|
|
41365
|
+
return U.error = !0, I;
|
|
41361
41366
|
},
|
|
41362
41367
|
get isValidating() {
|
|
41363
|
-
return
|
|
41368
|
+
return U.isValidating = !0, ie;
|
|
41364
41369
|
},
|
|
41365
41370
|
get isLoading() {
|
|
41366
|
-
return
|
|
41371
|
+
return U.isLoading = !0, ee;
|
|
41367
41372
|
}
|
|
41368
41373
|
};
|
|
41369
41374
|
}, rp = roe(ioe);
|
|
@@ -41382,7 +41387,7 @@ var soe = async (e, t, n, r, o, i, s, a, l, c, u, f, p, g, m, v, y) => {
|
|
|
41382
41387
|
toolInvocations: A,
|
|
41383
41388
|
function_call: F,
|
|
41384
41389
|
tool_calls: j,
|
|
41385
|
-
tool_call_id:
|
|
41390
|
+
tool_call_id: W
|
|
41386
41391
|
}) => ({
|
|
41387
41392
|
role: E,
|
|
41388
41393
|
content: S,
|
|
@@ -41394,7 +41399,7 @@ var soe = async (e, t, n, r, o, i, s, a, l, c, u, f, p, g, m, v, y) => {
|
|
|
41394
41399
|
...$ !== void 0 && { annotations: $ },
|
|
41395
41400
|
...A !== void 0 && { toolInvocations: A },
|
|
41396
41401
|
// outdated function/tool call handling (TODO deprecate):
|
|
41397
|
-
tool_call_id:
|
|
41402
|
+
tool_call_id: W,
|
|
41398
41403
|
...F !== void 0 && { function_call: F },
|
|
41399
41404
|
...j !== void 0 && { tool_calls: j }
|
|
41400
41405
|
})
|
|
@@ -41473,7 +41478,7 @@ function aoe({
|
|
|
41473
41478
|
[$, "messages"],
|
|
41474
41479
|
null,
|
|
41475
41480
|
{ fallbackData: n ?? A }
|
|
41476
|
-
), { data:
|
|
41481
|
+
), { data: W = !1, mutate: U } = rp(
|
|
41477
41482
|
[$, "loading"],
|
|
41478
41483
|
null
|
|
41479
41484
|
), { data: z, mutate: Q } = rp([$, "streamData"], null), { data: q = void 0, mutate: X } = rp([$, "error"], null), Z = ce(F || []);
|
|
@@ -41496,7 +41501,7 @@ function aoe({
|
|
|
41496
41501
|
async (G) => {
|
|
41497
41502
|
const ye = Z.current.length;
|
|
41498
41503
|
try {
|
|
41499
|
-
|
|
41504
|
+
U(!0), X(void 0);
|
|
41500
41505
|
const Ae = new AbortController();
|
|
41501
41506
|
D.current = Ae, await $re({
|
|
41502
41507
|
getStreamedResponse: () => soe(
|
|
@@ -41530,7 +41535,7 @@ function aoe({
|
|
|
41530
41535
|
return D.current = null, null;
|
|
41531
41536
|
y && Ae instanceof Error && y(Ae), X(Ae);
|
|
41532
41537
|
} finally {
|
|
41533
|
-
|
|
41538
|
+
U(!1);
|
|
41534
41539
|
}
|
|
41535
41540
|
const Oe = Z.current, ke = Oe[Oe.length - 1];
|
|
41536
41541
|
// ensure we actually have new messages (to prevent infinite loops in case of errors):
|
|
@@ -41542,7 +41547,7 @@ function aoe({
|
|
|
41542
41547
|
},
|
|
41543
41548
|
[
|
|
41544
41549
|
j,
|
|
41545
|
-
|
|
41550
|
+
U,
|
|
41546
41551
|
e,
|
|
41547
41552
|
V,
|
|
41548
41553
|
m,
|
|
@@ -41733,7 +41738,7 @@ function aoe({
|
|
|
41733
41738
|
setInput: ie,
|
|
41734
41739
|
handleInputChange: se,
|
|
41735
41740
|
handleSubmit: ee,
|
|
41736
|
-
isLoading:
|
|
41741
|
+
isLoading: W,
|
|
41737
41742
|
data: z,
|
|
41738
41743
|
addToolResult: we,
|
|
41739
41744
|
experimental_addToolResult: we
|
|
@@ -44797,12 +44802,12 @@ function use(e, t, n) {
|
|
|
44797
44802
|
)(z) : j(z);
|
|
44798
44803
|
}
|
|
44799
44804
|
function j(z) {
|
|
44800
|
-
return z === a ? (P.enter("codeFencedFenceSequence"),
|
|
44801
|
-
}
|
|
44802
|
-
function U(z) {
|
|
44803
|
-
return z === a ? ($++, P.consume(z), U) : $ >= s ? (P.exit("codeFencedFenceSequence"), Bt(z) ? nn(P, W, "whitespace")(z) : W(z)) : M(z);
|
|
44805
|
+
return z === a ? (P.enter("codeFencedFenceSequence"), W(z)) : M(z);
|
|
44804
44806
|
}
|
|
44805
44807
|
function W(z) {
|
|
44808
|
+
return z === a ? ($++, P.consume(z), W) : $ >= s ? (P.exit("codeFencedFenceSequence"), Bt(z) ? nn(P, U, "whitespace")(z) : U(z)) : M(z);
|
|
44809
|
+
}
|
|
44810
|
+
function U(z) {
|
|
44806
44811
|
return z === null || st(z) ? (P.exit("codeFencedFence"), k(z)) : M(z);
|
|
44807
44812
|
}
|
|
44808
44813
|
}
|
|
@@ -45356,21 +45361,21 @@ function zse(e, t, n) {
|
|
|
45356
45361
|
return I === 45 && o === 2 ? (e.consume(I), Q) : I === 60 && o === 1 ? (e.consume(I), q) : I === 62 && o === 4 ? (e.consume(I), V) : I === 63 && o === 3 ? (e.consume(I), D) : I === 93 && o === 5 ? (e.consume(I), Z) : st(I) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
45357
45362
|
Nse,
|
|
45358
45363
|
K,
|
|
45359
|
-
|
|
45360
|
-
)(I)) : I === null || st(I) ? (e.exit("htmlFlowData"),
|
|
45364
|
+
W
|
|
45365
|
+
)(I)) : I === null || st(I) ? (e.exit("htmlFlowData"), W(I)) : (e.consume(I), j);
|
|
45361
45366
|
}
|
|
45362
|
-
function
|
|
45367
|
+
function W(I) {
|
|
45363
45368
|
return e.check(
|
|
45364
45369
|
Lse,
|
|
45365
|
-
|
|
45370
|
+
U,
|
|
45366
45371
|
K
|
|
45367
45372
|
)(I);
|
|
45368
45373
|
}
|
|
45369
|
-
function
|
|
45374
|
+
function U(I) {
|
|
45370
45375
|
return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), z;
|
|
45371
45376
|
}
|
|
45372
45377
|
function z(I) {
|
|
45373
|
-
return I === null || st(I) ?
|
|
45378
|
+
return I === null || st(I) ? W(I) : (e.enter("htmlFlowData"), j(I));
|
|
45374
45379
|
}
|
|
45375
45380
|
function Q(I) {
|
|
45376
45381
|
return I === 45 ? (e.consume(I), D) : j(I);
|
|
@@ -45487,13 +45492,13 @@ function Hse(e, t, n) {
|
|
|
45487
45492
|
return D === 61 ? (e.consume(D), j) : st(D) ? (s = F, q(D)) : Bt(D) ? (e.consume(D), F) : $(D);
|
|
45488
45493
|
}
|
|
45489
45494
|
function j(D) {
|
|
45490
|
-
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), o = D,
|
|
45491
|
-
}
|
|
45492
|
-
function U(D) {
|
|
45493
|
-
return D === o ? (e.consume(D), o = void 0, z) : D === null ? n(D) : st(D) ? (s = U, q(D)) : (e.consume(D), U);
|
|
45495
|
+
return D === null || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 34 || D === 39 ? (e.consume(D), o = D, W) : st(D) ? (s = j, q(D)) : Bt(D) ? (e.consume(D), j) : (e.consume(D), U);
|
|
45494
45496
|
}
|
|
45495
45497
|
function W(D) {
|
|
45496
|
-
return D ===
|
|
45498
|
+
return D === o ? (e.consume(D), o = void 0, z) : D === null ? n(D) : st(D) ? (s = W, q(D)) : (e.consume(D), W);
|
|
45499
|
+
}
|
|
45500
|
+
function U(D) {
|
|
45501
|
+
return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 96 ? n(D) : D === 47 || D === 62 || zr(D) ? $(D) : (e.consume(D), U);
|
|
45497
45502
|
}
|
|
45498
45503
|
function z(D) {
|
|
45499
45504
|
return D === 47 || D === 62 || zr(D) ? $(D) : n(D);
|
|
@@ -46098,12 +46103,12 @@ function xae(e, t, n) {
|
|
|
46098
46103
|
return wae(s, F);
|
|
46099
46104
|
}
|
|
46100
46105
|
function m() {
|
|
46101
|
-
const { line: F, column: j, offset:
|
|
46106
|
+
const { line: F, column: j, offset: W, _index: U, _bufferIndex: z } = r;
|
|
46102
46107
|
return {
|
|
46103
46108
|
line: F,
|
|
46104
46109
|
column: j,
|
|
46105
|
-
offset:
|
|
46106
|
-
_index:
|
|
46110
|
+
offset: W,
|
|
46111
|
+
_index: U,
|
|
46107
46112
|
_bufferIndex: z
|
|
46108
46113
|
};
|
|
46109
46114
|
}
|
|
@@ -46128,8 +46133,8 @@ function xae(e, t, n) {
|
|
|
46128
46133
|
st(F) ? (r.line++, r.column = 1, r.offset += F === -3 ? 2 : 1, A()) : F !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = F;
|
|
46129
46134
|
}
|
|
46130
46135
|
function _(F, j) {
|
|
46131
|
-
const
|
|
46132
|
-
return
|
|
46136
|
+
const W = j || {};
|
|
46137
|
+
return W.type = F, W.start = m(), c.events.push(["enter", W, c]), a.push(W), W;
|
|
46133
46138
|
}
|
|
46134
46139
|
function E(F) {
|
|
46135
46140
|
const j = a.pop();
|
|
@@ -46142,13 +46147,13 @@ function xae(e, t, n) {
|
|
|
46142
46147
|
j.restore();
|
|
46143
46148
|
}
|
|
46144
46149
|
function k(F, j) {
|
|
46145
|
-
return
|
|
46146
|
-
function U
|
|
46150
|
+
return W;
|
|
46151
|
+
function W(U, z, Q) {
|
|
46147
46152
|
let q, X, Z, D;
|
|
46148
|
-
return Array.isArray(
|
|
46153
|
+
return Array.isArray(U) ? K(U) : "tokenize" in U ? (
|
|
46149
46154
|
// @ts-expect-error Looks like a construct.
|
|
46150
|
-
K([
|
|
46151
|
-
) : V(
|
|
46155
|
+
K([U])
|
|
46156
|
+
) : V(U);
|
|
46152
46157
|
function V(fe) {
|
|
46153
46158
|
return pe;
|
|
46154
46159
|
function pe(ie) {
|
|
@@ -46195,13 +46200,13 @@ function xae(e, t, n) {
|
|
|
46195
46200
|
), F.resolveTo && (c.events = F.resolveTo(c.events, c));
|
|
46196
46201
|
}
|
|
46197
46202
|
function $() {
|
|
46198
|
-
const F = m(), j = c.previous,
|
|
46203
|
+
const F = m(), j = c.previous, W = c.currentConstruct, U = c.events.length, z = Array.from(a);
|
|
46199
46204
|
return {
|
|
46200
46205
|
restore: Q,
|
|
46201
|
-
from:
|
|
46206
|
+
from: U
|
|
46202
46207
|
};
|
|
46203
46208
|
function Q() {
|
|
46204
|
-
r = F, c.previous = j, c.currentConstruct =
|
|
46209
|
+
r = F, c.previous = j, c.currentConstruct = W, c.events.length = U, a = z, A();
|
|
46205
46210
|
}
|
|
46206
46211
|
}
|
|
46207
46212
|
function A() {
|
|
@@ -46487,9 +46492,9 @@ function jae(e) {
|
|
|
46487
46492
|
emphasis: l(),
|
|
46488
46493
|
hardBreakEscape: l(j),
|
|
46489
46494
|
hardBreakTrailing: l(j),
|
|
46490
|
-
htmlFlow: l(
|
|
46495
|
+
htmlFlow: l(W),
|
|
46491
46496
|
htmlFlowData: A,
|
|
46492
|
-
htmlText: l(
|
|
46497
|
+
htmlText: l(U),
|
|
46493
46498
|
htmlTextData: A,
|
|
46494
46499
|
image: l(q),
|
|
46495
46500
|
label: Z,
|
|
@@ -46753,11 +46758,11 @@ function jae(e) {
|
|
|
46753
46758
|
function j() {
|
|
46754
46759
|
this.data.atHardBreak = !0;
|
|
46755
46760
|
}
|
|
46756
|
-
function
|
|
46761
|
+
function W() {
|
|
46757
46762
|
const he = this.resume(), Re = this.stack[this.stack.length - 1];
|
|
46758
46763
|
Re.value = he;
|
|
46759
46764
|
}
|
|
46760
|
-
function
|
|
46765
|
+
function U() {
|
|
46761
46766
|
const he = this.resume(), Re = this.stack[this.stack.length - 1];
|
|
46762
46767
|
Re.value = he;
|
|
46763
46768
|
}
|
|
@@ -49235,13 +49240,13 @@ function cce() {
|
|
|
49235
49240
|
/* @__PURE__ */ O.jsx("div", { className: "text-muted-foreground", children: F ? /* @__PURE__ */ O.jsx(rK, { className: "size-5 shrink-0" }) : /* @__PURE__ */ O.jsx(W2, { className: "size-5 shrink-0" }) }),
|
|
49236
49241
|
/* @__PURE__ */ O.jsx("div", { children: /* @__PURE__ */ O.jsx(ace, { components: uce, children: A.content }) })
|
|
49237
49242
|
] }) }),
|
|
49238
|
-
(j = A.toolInvocations) == null ? void 0 : j.map((
|
|
49239
|
-
const
|
|
49240
|
-
return "result" in
|
|
49243
|
+
(j = A.toolInvocations) == null ? void 0 : j.map((W) => {
|
|
49244
|
+
const U = W.toolCallId;
|
|
49245
|
+
return "result" in W ? /* @__PURE__ */ O.jsx("div", { children: k(W) }, U) : /* @__PURE__ */ O.jsxs("div", { children: [
|
|
49241
49246
|
"Calling ",
|
|
49242
|
-
|
|
49247
|
+
W.toolName,
|
|
49243
49248
|
"..."
|
|
49244
|
-
] },
|
|
49249
|
+
] }, U);
|
|
49245
49250
|
})
|
|
49246
49251
|
]
|
|
49247
49252
|
},
|
|
@@ -49272,14 +49277,14 @@ function cce() {
|
|
|
49272
49277
|
Lr,
|
|
49273
49278
|
{
|
|
49274
49279
|
onClick: () => {
|
|
49275
|
-
const
|
|
49280
|
+
const W = $.args.chartTitle, U = $.args.connectionId;
|
|
49276
49281
|
M({
|
|
49277
49282
|
sql: $.args.sql,
|
|
49278
49283
|
data: F.records,
|
|
49279
49284
|
cardType: $.args.chartType,
|
|
49280
49285
|
cardCfg: j,
|
|
49281
|
-
cardTitle:
|
|
49282
|
-
connectionId:
|
|
49286
|
+
cardTitle: W,
|
|
49287
|
+
connectionId: U
|
|
49283
49288
|
});
|
|
49284
49289
|
},
|
|
49285
49290
|
variant: "secondary",
|
|
@@ -49309,8 +49314,8 @@ function cce() {
|
|
|
49309
49314
|
data: A,
|
|
49310
49315
|
cardCfg: F,
|
|
49311
49316
|
cardTitle: j,
|
|
49312
|
-
connectionId:
|
|
49313
|
-
cardType:
|
|
49317
|
+
connectionId: W,
|
|
49318
|
+
cardType: U
|
|
49314
49319
|
}) {
|
|
49315
49320
|
if (!s)
|
|
49316
49321
|
return;
|
|
@@ -49326,14 +49331,14 @@ function cce() {
|
|
|
49326
49331
|
}
|
|
49327
49332
|
],
|
|
49328
49333
|
chartOptions: {
|
|
49329
|
-
indexAxis:
|
|
49334
|
+
indexAxis: U === "horizontalBar" ? "y" : "x"
|
|
49330
49335
|
}
|
|
49331
49336
|
},
|
|
49332
49337
|
type: F.type,
|
|
49333
49338
|
cfg: F,
|
|
49334
49339
|
sql: $,
|
|
49335
49340
|
data: A,
|
|
49336
|
-
connectionId:
|
|
49341
|
+
connectionId: W
|
|
49337
49342
|
}, Q = {
|
|
49338
49343
|
id: Cc(),
|
|
49339
49344
|
cards: [z],
|
|
@@ -49489,14 +49494,14 @@ function mA({
|
|
|
49489
49494
|
didLogMissingDefaultSizeWarning: !1
|
|
49490
49495
|
}), Ld(() => {
|
|
49491
49496
|
const {
|
|
49492
|
-
callbacks:
|
|
49493
|
-
constraints:
|
|
49497
|
+
callbacks: W,
|
|
49498
|
+
constraints: U
|
|
49494
49499
|
} = F.current;
|
|
49495
|
-
F.current.id = A, F.current.idIsFromProps = s !== void 0, F.current.order = p,
|
|
49500
|
+
F.current.id = A, F.current.idIsFromProps = s !== void 0, F.current.order = p, W.onCollapse = c, W.onExpand = u, W.onResize = f, U.collapsedSize = n, U.collapsible = r, U.defaultSize = o, U.maxSize = a, U.minSize = l;
|
|
49496
49501
|
}), Ld(() => {
|
|
49497
|
-
const
|
|
49498
|
-
return k(
|
|
49499
|
-
$(
|
|
49502
|
+
const W = F.current;
|
|
49503
|
+
return k(W), () => {
|
|
49504
|
+
$(W);
|
|
49500
49505
|
};
|
|
49501
49506
|
}, [p, A, k, $]), gA(i, () => ({
|
|
49502
49507
|
collapse: () => {
|
|
@@ -49517,8 +49522,8 @@ function mA({
|
|
|
49517
49522
|
isExpanded() {
|
|
49518
49523
|
return !P(F.current);
|
|
49519
49524
|
},
|
|
49520
|
-
resize: (
|
|
49521
|
-
M(F.current,
|
|
49525
|
+
resize: (W) => {
|
|
49526
|
+
M(F.current, W);
|
|
49522
49527
|
}
|
|
49523
49528
|
}), [x, w, _, P, A, M]);
|
|
49524
49529
|
const j = E(F.current, o);
|
|
@@ -50310,7 +50315,7 @@ function DA({
|
|
|
50310
50315
|
RO(I, fe) || (y(fe), S.current.layout = fe, V && V(fe), Bl(ae, fe, x.current));
|
|
50311
50316
|
}
|
|
50312
50317
|
});
|
|
50313
|
-
const
|
|
50318
|
+
const W = Kr((D) => function(K) {
|
|
50314
50319
|
K.preventDefault();
|
|
50315
50320
|
const {
|
|
50316
50321
|
direction: I,
|
|
@@ -50337,7 +50342,7 @@ function DA({
|
|
|
50337
50342
|
trigger: _A(K) ? "keyboard" : "mouse-or-touch"
|
|
50338
50343
|
}), Ae = !ap(ie, ke);
|
|
50339
50344
|
(SA(K) || CA(K)) && _.current != G && (_.current = G, l0(Ae ? ye ? "horizontal" : "vertical" : ye ? G < 0 ? "horizontal-min" : "horizontal-max" : G < 0 ? "vertical-min" : "vertical-max")), Ae && (y(ke), S.current.layout = ke, pe && pe(ke), Bl(ee, ke, x.current));
|
|
50340
|
-
}, []),
|
|
50345
|
+
}, []), U = Kr((D, V) => {
|
|
50341
50346
|
const {
|
|
50342
50347
|
onLayout: K
|
|
50343
50348
|
} = E.current, {
|
|
@@ -50388,12 +50393,12 @@ function DA({
|
|
|
50388
50393
|
isPanelCollapsed: A,
|
|
50389
50394
|
isPanelExpanded: F,
|
|
50390
50395
|
registerPanel: j,
|
|
50391
|
-
registerResizeHandle:
|
|
50392
|
-
resizePanel:
|
|
50396
|
+
registerResizeHandle: W,
|
|
50397
|
+
resizePanel: U,
|
|
50393
50398
|
startDragging: z,
|
|
50394
50399
|
stopDragging: Q,
|
|
50395
50400
|
unregisterPanel: q
|
|
50396
|
-
}), [P, g, r, k, M, $, p, A, F, j,
|
|
50401
|
+
}), [P, g, r, k, M, $, p, A, F, j, W, U, z, Q, q]), Z = {
|
|
50397
50402
|
display: "flex",
|
|
50398
50403
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
50399
50404
|
height: "100%",
|
|
@@ -50518,15 +50523,15 @@ function Sw({
|
|
|
50518
50523
|
}, [n, w, v]), qa(() => {
|
|
50519
50524
|
if (n || P == null || !_)
|
|
50520
50525
|
return;
|
|
50521
|
-
const A = (
|
|
50522
|
-
P(
|
|
50523
|
-
}, F = (
|
|
50524
|
-
P(
|
|
50526
|
+
const A = (U) => {
|
|
50527
|
+
P(U);
|
|
50528
|
+
}, F = (U) => {
|
|
50529
|
+
P(U);
|
|
50525
50530
|
}, j = c.current;
|
|
50526
50531
|
yt(j);
|
|
50527
|
-
const
|
|
50528
|
-
return
|
|
50529
|
-
|
|
50532
|
+
const W = j.ownerDocument;
|
|
50533
|
+
return W.body.addEventListener("contextmenu", M), W.body.addEventListener("mousemove", A), W.body.addEventListener("touchmove", A), W.body.addEventListener("mouseleave", F), window.addEventListener("mouseup", M), window.addEventListener("touchend", M), () => {
|
|
50534
|
+
W.body.removeEventListener("contextmenu", M), W.body.removeEventListener("mousemove", A), W.body.removeEventListener("touchmove", A), W.body.removeEventListener("mouseleave", F), window.removeEventListener("mouseup", M), window.removeEventListener("touchend", M);
|
|
50530
50535
|
};
|
|
50531
50536
|
}, [p, n, _, P, M]), Rce({
|
|
50532
50537
|
disabled: n,
|
|
@@ -50846,7 +50851,7 @@ const nx = [
|
|
|
50846
50851
|
onDismiss: () => n.onOpenChange(!1)
|
|
50847
50852
|
}));
|
|
50848
50853
|
}), Pw = /* @__PURE__ */ ve((e, t) => {
|
|
50849
|
-
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: g, disableOutsideScroll: m, ...v } = e, y = hl(Uo, n), x = Ef(Uo, n), w = Cw(n), _ = AA(n), E = Fce(n), [S, P] = Ee(null), k = ce(null), M = pt(t, k, y.onContentChange), $ = ce(0), A = ce(""), F = ce(0), j = ce(null),
|
|
50854
|
+
const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: i, onCloseAutoFocus: s, disableOutsidePointerEvents: a, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: g, disableOutsideScroll: m, ...v } = e, y = hl(Uo, n), x = Ef(Uo, n), w = Cw(n), _ = AA(n), E = Fce(n), [S, P] = Ee(null), k = ce(null), M = pt(t, k, y.onContentChange), $ = ce(0), A = ce(""), F = ce(0), j = ce(null), W = ce("right"), U = ce(0), z = m ? im : xr, Q = m ? {
|
|
50850
50855
|
as: qi,
|
|
50851
50856
|
allowPinchZoom: !0
|
|
50852
50857
|
} : void 0, q = (Z) => {
|
|
@@ -50872,7 +50877,7 @@ const nx = [
|
|
|
50872
50877
|
Se(() => () => window.clearTimeout($.current), []), em();
|
|
50873
50878
|
const X = We((Z) => {
|
|
50874
50879
|
var D, V;
|
|
50875
|
-
return
|
|
50880
|
+
return W.current === ((D = j.current) === null || D === void 0 ? void 0 : D.side) && gue(Z, (V = j.current) === null || V === void 0 ? void 0 : V.area);
|
|
50876
50881
|
}, []);
|
|
50877
50882
|
return /* @__PURE__ */ B(Uce, {
|
|
50878
50883
|
scope: n,
|
|
@@ -50954,10 +50959,10 @@ const nx = [
|
|
|
50954
50959
|
Z.currentTarget.contains(Z.target) || (window.clearTimeout($.current), A.current = "");
|
|
50955
50960
|
}),
|
|
50956
50961
|
onPointerMove: Te(e.onPointerMove, Bd((Z) => {
|
|
50957
|
-
const D = Z.target, V =
|
|
50962
|
+
const D = Z.target, V = U.current !== Z.clientX;
|
|
50958
50963
|
if (Z.currentTarget.contains(D) && V) {
|
|
50959
|
-
const K = Z.clientX >
|
|
50960
|
-
|
|
50964
|
+
const K = Z.clientX > U.current ? "right" : "left";
|
|
50965
|
+
W.current = K, U.current = Z.clientX;
|
|
50961
50966
|
}
|
|
50962
50967
|
}))
|
|
50963
50968
|
})))))));
|
|
@@ -52096,10 +52101,10 @@ function hfe(...e) {
|
|
|
52096
52101
|
}
|
|
52097
52102
|
var pfe = (e) => {
|
|
52098
52103
|
var t, n, r, o, i, s, a, l, c, u;
|
|
52099
|
-
let { invert: f, toast: p, unstyled: g, interacting: m, setHeights: v, visibleToasts: y, heights: x, index: w, toasts: _, expanded: E, removeToast: S, defaultRichColors: P, closeButton: k, style: M, cancelButtonStyle: $, actionButtonStyle: A, className: F = "", descriptionClassName: j = "", duration:
|
|
52104
|
+
let { invert: f, toast: p, unstyled: g, interacting: m, setHeights: v, visibleToasts: y, heights: x, index: w, toasts: _, expanded: E, removeToast: S, defaultRichColors: P, closeButton: k, style: M, cancelButtonStyle: $, actionButtonStyle: A, className: F = "", descriptionClassName: j = "", duration: W, position: U, gap: z, loadingIcon: Q, expandByDefault: q, classNames: X, icons: Z, closeButtonAriaLabel: D = "Close toast", pauseWhenPageIsHidden: V, cn: K } = e, [I, ae] = oe.useState(!1), [le, fe] = oe.useState(!1), [pe, ie] = oe.useState(!1), [ee, se] = oe.useState(!1), [we, G] = oe.useState(0), [ye, Oe] = oe.useState(0), ke = oe.useRef(null), Ae = oe.useRef(null), Ye = w === 0, He = w + 1 <= y, Ne = p.type, Ze = p.dismissible !== !1, gt = p.className || "", Ft = p.descriptionClassName || "", Nt = oe.useMemo(() => x.findIndex((it) => it.toastId === p.id) || 0, [x, p.id]), gn = oe.useMemo(() => {
|
|
52100
52105
|
var it;
|
|
52101
52106
|
return (it = p.closeButton) != null ? it : k;
|
|
52102
|
-
}, [p.closeButton, k]), he = oe.useMemo(() => p.duration ||
|
|
52107
|
+
}, [p.closeButton, k]), he = oe.useMemo(() => p.duration || W || lfe, [p.duration, W]), Re = oe.useRef(0), je = oe.useRef(0), Je = oe.useRef(0), ot = oe.useRef(null), [Zt, on] = U.split("-"), mn = oe.useMemo(() => x.reduce((it, Tt, Mt) => Mt >= Nt ? it : it + Tt.height, 0), [x, Nt]), In = Zde(), hr = p.invert || f, sn = Ne === "loading";
|
|
52103
52108
|
je.current = oe.useMemo(() => Nt * z + mn, [Nt, mn]), oe.useEffect(() => {
|
|
52104
52109
|
ae(!0);
|
|
52105
52110
|
}, []), oe.useLayoutEffect(() => {
|
|
@@ -52179,7 +52184,7 @@ function AO() {
|
|
|
52179
52184
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
52180
52185
|
}
|
|
52181
52186
|
var xge = (e) => {
|
|
52182
|
-
let { invert: t, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: o, closeButton: i, className: s, offset: a, theme: l = "light", richColors: c, duration: u, style: f, visibleToasts: p = sfe, toastOptions: g, dir: m = AO(), gap: v = ufe, loadingIcon: y, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: _, cn: E = hfe } = e, [S, P] = oe.useState([]), k = oe.useMemo(() => Array.from(new Set([n].concat(S.filter((V) => V.position).map((V) => V.position)))), [S, n]), [M, $] = oe.useState([]), [A, F] = oe.useState(!1), [j,
|
|
52187
|
+
let { invert: t, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: o, closeButton: i, className: s, offset: a, theme: l = "light", richColors: c, duration: u, style: f, visibleToasts: p = sfe, toastOptions: g, dir: m = AO(), gap: v = ufe, loadingIcon: y, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: _, cn: E = hfe } = e, [S, P] = oe.useState([]), k = oe.useMemo(() => Array.from(new Set([n].concat(S.filter((V) => V.position).map((V) => V.position)))), [S, n]), [M, $] = oe.useState([]), [A, F] = oe.useState(!1), [j, W] = oe.useState(!1), [U, z] = oe.useState(l !== "system" ? l : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Q = oe.useRef(null), q = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), X = oe.useRef(null), Z = oe.useRef(!1), D = oe.useCallback((V) => {
|
|
52183
52188
|
var K;
|
|
52184
52189
|
(K = S.find((I) => I.id === V.id)) != null && K.delete || eo.dismiss(V.id), P((I) => I.filter(({ id: ae }) => ae !== V.id));
|
|
52185
52190
|
}, [S]);
|
|
@@ -52220,15 +52225,15 @@ var xge = (e) => {
|
|
|
52220
52225
|
}, [Q.current]), S.length ? oe.createElement("section", { "aria-label": `${w} ${q}`, tabIndex: -1 }, k.map((V, K) => {
|
|
52221
52226
|
var I;
|
|
52222
52227
|
let [ae, le] = V.split("-");
|
|
52223
|
-
return oe.createElement("ol", { key: V, dir: m === "auto" ? AO() : m, tabIndex: -1, ref: Q, className: s, "data-sonner-toaster": !0, "data-theme":
|
|
52228
|
+
return oe.createElement("ol", { key: V, dir: m === "auto" ? AO() : m, tabIndex: -1, ref: Q, className: s, "data-sonner-toaster": !0, "data-theme": U, "data-y-position": ae, "data-x-position": le, style: { "--front-toast-height": `${((I = M[0]) == null ? void 0 : I.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || afe, "--width": `${cfe}px`, "--gap": `${v}px`, ...f }, onBlur: (fe) => {
|
|
52224
52229
|
Z.current && !fe.currentTarget.contains(fe.relatedTarget) && (Z.current = !1, X.current && (X.current.focus({ preventScroll: !0 }), X.current = null));
|
|
52225
52230
|
}, onFocus: (fe) => {
|
|
52226
52231
|
fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" || Z.current || (Z.current = !0, X.current = fe.relatedTarget);
|
|
52227
52232
|
}, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
|
|
52228
52233
|
j || F(!1);
|
|
52229
52234
|
}, onPointerDown: (fe) => {
|
|
52230
|
-
fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" ||
|
|
52231
|
-
}, onPointerUp: () =>
|
|
52235
|
+
fe.target instanceof HTMLElement && fe.target.dataset.dismissible === "false" || W(!0);
|
|
52236
|
+
}, onPointerUp: () => W(!1) }, S.filter((fe) => !fe.position && K === 0 || fe.position === V).map((fe, pe) => {
|
|
52232
52237
|
var ie, ee;
|
|
52233
52238
|
return oe.createElement(pfe, { key: fe.id, icons: x, index: pe, toast: fe, defaultRichColors: c, duration: (ie = g == null ? void 0 : g.duration) != null ? ie : u, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: t, visibleToasts: p, closeButton: (ee = g == null ? void 0 : g.closeButton) != null ? ee : i, interacting: j, position: V, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: D, toasts: S.filter((se) => se.position == fe.position), heights: M.filter((se) => se.position == fe.position), setHeights: $, expandByDefault: o, gap: v, loadingIcon: y, expanded: A, pauseWhenPageIsHidden: _, cn: E });
|
|
52234
52239
|
}));
|
|
@@ -52660,7 +52665,7 @@ function hhe({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
52660
52665
|
let [w, _] = Ee(!1), [E, S] = Ee(!0), P = ce(null), k = ce(null), M = ce(null), $ = ce(x), A = ce(y), F = ce(!1);
|
|
52661
52666
|
yI(() => {
|
|
52662
52667
|
let z = vI.init();
|
|
52663
|
-
return z.then((Q) => (k.current = Q) && S(!1)).catch((Q) => (Q == null ? void 0 : Q.type) !== "cancelation" && console.error("Monaco initialization: error:", Q)), () => P.current ?
|
|
52668
|
+
return z.then((Q) => (k.current = Q) && S(!1)).catch((Q) => (Q == null ? void 0 : Q.type) !== "cancelation" && console.error("Monaco initialization: error:", Q)), () => P.current ? U() : z.cancel();
|
|
52664
52669
|
}), ro(() => {
|
|
52665
52670
|
if (P.current && k.current) {
|
|
52666
52671
|
let z = P.current.getOriginalEditor(), Q = Kl(k.current, e || "", r || n || "text", i || "");
|
|
@@ -52694,16 +52699,16 @@ function hhe({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
52694
52699
|
A.current(k.current);
|
|
52695
52700
|
let z = Kl(k.current, e || "", r || n || "text", i || ""), Q = Kl(k.current, t || "", o || n || "text", s || "");
|
|
52696
52701
|
(q = P.current) == null || q.setModel({ original: z, modified: Q });
|
|
52697
|
-
}, [n, t, o, e, r, i, s]),
|
|
52702
|
+
}, [n, t, o, e, r, i, s]), W = We(() => {
|
|
52698
52703
|
var z;
|
|
52699
52704
|
!F.current && M.current && (P.current = k.current.editor.createDiffEditor(M.current, { automaticLayout: !0, ...f }), j(), (z = k.current) == null || z.editor.setTheme(c), _(!0), F.current = !0);
|
|
52700
52705
|
}, [f, c, j]);
|
|
52701
52706
|
Se(() => {
|
|
52702
52707
|
w && $.current(P.current, k.current);
|
|
52703
52708
|
}, [w]), Se(() => {
|
|
52704
|
-
!E && !w &&
|
|
52705
|
-
}, [E, w,
|
|
52706
|
-
function
|
|
52709
|
+
!E && !w && W();
|
|
52710
|
+
}, [E, w, W]);
|
|
52711
|
+
function U() {
|
|
52707
52712
|
var Q, q, X, Z;
|
|
52708
52713
|
let z = (Q = P.current) == null ? void 0 : Q.getModel();
|
|
52709
52714
|
a || ((q = z == null ? void 0 : z.original) == null || q.dispose()), l || ((X = z == null ? void 0 : z.modified) == null || X.dispose()), (Z = P.current) == null || Z.dispose();
|
|
@@ -52720,7 +52725,7 @@ function ghe(e) {
|
|
|
52720
52725
|
}
|
|
52721
52726
|
var mhe = ghe, dp = /* @__PURE__ */ new Map();
|
|
52722
52727
|
function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: s = "light", line: a, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: f = !0, keepCurrentModel: p = !1, width: g = "100%", height: m = "100%", className: v, wrapperProps: y = {}, beforeMount: x = ed, onMount: w = ed, onChange: _, onValidate: E = ed }) {
|
|
52723
|
-
let [S, P] = Ee(!1), [k, M] = Ee(!0), $ = ce(null), A = ce(null), F = ce(null), j = ce(w),
|
|
52728
|
+
let [S, P] = Ee(!1), [k, M] = Ee(!0), $ = ce(null), A = ce(null), F = ce(null), j = ce(w), W = ce(x), U = ce(), z = ce(r), Q = mhe(i), q = ce(!1), X = ce(!1);
|
|
52724
52729
|
yI(() => {
|
|
52725
52730
|
let V = vI.init();
|
|
52726
52731
|
return V.then((K) => ($.current = K) && M(!1)).catch((K) => (K == null ? void 0 : K.type) !== "cancelation" && console.error("Monaco initialization: error:", K)), () => A.current ? D() : V.cancel();
|
|
@@ -52747,7 +52752,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
52747
52752
|
let Z = We(() => {
|
|
52748
52753
|
var V;
|
|
52749
52754
|
if (!(!F.current || !$.current) && !q.current) {
|
|
52750
|
-
|
|
52755
|
+
W.current($.current);
|
|
52751
52756
|
let K = i || n, I = Kl($.current, r || e || "", t || o || "", K || "");
|
|
52752
52757
|
A.current = (V = $.current) == null ? void 0 : V.editor.create(F.current, { model: I, automaticLayout: !0, ...c }, u), f && A.current.restoreViewState(dp.get(K)), $.current.editor.setTheme(s), a !== void 0 && A.current.revealLine(a), P(!0), q.current = !0;
|
|
52753
52758
|
}
|
|
@@ -52758,7 +52763,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
52758
52763
|
!k && !S && Z();
|
|
52759
52764
|
}, [k, S, Z]), z.current = r, Se(() => {
|
|
52760
52765
|
var V, K;
|
|
52761
|
-
S && _ && ((V =
|
|
52766
|
+
S && _ && ((V = U.current) == null || V.dispose(), U.current = (K = A.current) == null ? void 0 : K.onDidChangeModelContent((I) => {
|
|
52762
52767
|
X.current || _(A.current.getValue(), I);
|
|
52763
52768
|
}));
|
|
52764
52769
|
}, [S, _]), Se(() => {
|
|
@@ -52780,7 +52785,7 @@ function vhe({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
52780
52785
|
}, [S, E]);
|
|
52781
52786
|
function D() {
|
|
52782
52787
|
var V, K;
|
|
52783
|
-
(V =
|
|
52788
|
+
(V = U.current) == null || V.dispose(), p ? f && dp.set(i, A.current.saveViewState()) : (K = A.current.getModel()) == null || K.dispose(), A.current.dispose();
|
|
52784
52789
|
}
|
|
52785
52790
|
return oe.createElement(bI, { width: g, height: m, isEditorReady: S, loading: l, _ref: F, className: v, wrapperProps: y });
|
|
52786
52791
|
}
|