@devtable/dashboard 5.9.0 → 5.9.2

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.
@@ -1,44 +1,44 @@
1
1
  var Ja = Object.defineProperty;
2
2
  var Xa = (e, t, n) => t in e ? Ja(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var F = (e, t, n) => (Xa(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { Box as G, Text as C, Button as H, Checkbox as tt, MultiSelect as Jn, Select as T, TextInput as E, Group as y, Stack as R, JsonInput as Io, ActionIcon as A, AppShell as en, LoadingOverlay as tn, Table as Xn, Tooltip as dt, Tabs as $, Textarea as Vo, Modal as Te, Divider as te, SimpleGrid as Ka, NumberInput as ze, Menu as xe, Paper as Za, Code as ro, Switch as Ge, useMantineTheme as es, ColorInput as ts, ColorSwatch as oo, Slider as Mo, Accordion as j, SegmentedControl as ns, createStyles as Kn, Popover as Dn, Badge as rs } from "@mantine/core";
5
- import { useModals as os, ModalsProvider as ko } from "@mantine/modals";
4
+ import { Box as G, Text as C, Button as H, Checkbox as tt, MultiSelect as Jn, Select as T, TextInput as E, Group as y, Stack as R, JsonInput as Vo, ActionIcon as A, AppShell as Zt, LoadingOverlay as en, Table as Xn, Tooltip as dt, Tabs as $, Textarea as Mo, Modal as Te, Divider as te, SimpleGrid as Ka, NumberInput as ze, Menu as Ce, Paper as Za, Code as ro, Switch as Ge, useMantineTheme as es, ColorInput as ts, ColorSwatch as oo, Slider as ko, Accordion as j, SegmentedControl as ns, createStyles as Kn, Popover as Rn, Badge as rs } from "@mantine/core";
5
+ import { useModals as os, ModalsProvider as Fo } from "@mantine/modals";
6
6
  import { useCreation as Be, usePrevious as is, useRequest as Qt, useBoolean as $t, useAsyncEffect as Et, useLatest as io } from "ahooks";
7
7
  import { observer as I } from "mobx-react-lite";
8
8
  import * as ao from "react";
9
- import w, { useEffect as Z, createContext as Fo, useState as me, useMemo as L, forwardRef as Zn, createElement as nn, useCallback as Mt, useContext as He, useRef as as } from "react";
10
- import K, { get as Q, isFunction as ss, omit as rn, values as $o, unset as ls, isObject as Eo, set as Ao, orderBy as cs, last as us, defaults as le, minBy as ds, maxBy as Oo, isEqual as Ce, groupBy as Ee, cloneDeep as zo, defaultsDeep as We, merge as Po, isEmpty as To, noop as gs, findLastIndex as ps, isNumber as fs, isString as Lo, range as ms, template as No, cloneDeepWith as hs, throttle as vs, pick as qo } from "lodash";
9
+ import w, { useEffect as Z, createContext as $o, useState as he, useMemo as L, forwardRef as Zn, createElement as tn, useCallback as Mt, useContext as He, useRef as as } from "react";
10
+ import K, { get as Q, isFunction as ss, omit as nn, values as Eo, unset as ls, isObject as Ao, set as Oo, orderBy as cs, last as us, defaults as le, minBy as ds, maxBy as zo, isEqual as we, groupBy as Ee, cloneDeep as Po, defaultsDeep as We, merge as To, isEmpty as Lo, noop as gs, findLastIndex as ps, isNumber as fs, isString as No, range as ms, template as qo, cloneDeepWith as hs, throttle as vs, pick as jo } from "lodash";
11
11
  import { useForm as Ue, useWatch as bs, Controller as D, useFieldArray as Ae } from "react-hook-form";
12
12
  import { DateRangePicker as ys } from "@mantine/dates";
13
13
  import nt from "dayjs";
14
- import { Calendar as xs, DeviceFloppy as se, Refresh as jo, Trash as ie, PlaylistAdd as mt, Recycle as Go, Settings as Bo, Filter as Cs, Database as ws, Share as Ss, Download as Ho, Code as _s, InfoCircle as Rs, ArrowRight as In, ArrowsMaximize as Ds, Copy as Is, ArrowLeft as Vs, ArrowsMove as Ms, ChevronDownRight as ks } from "tabler-icons-react";
14
+ import { Calendar as xs, DeviceFloppy as se, Refresh as Go, Trash as ie, PlaylistAdd as mt, Recycle as Bo, Settings as Ho, Filter as Cs, Database as ws, Share as Ss, Download as Wo, Code as _s, InfoCircle as Rs, ArrowRight as Dn, ArrowsMaximize as Ds, Copy as Is, ArrowLeft as Vs, ArrowsMove as Ms, ChevronDownRight as ks } from "tabler-icons-react";
15
15
  import Fs from "jszip";
16
16
  import { Prism as Pe } from "@mantine/prism";
17
- import { showNotification as on } from "@mantine/notifications";
18
- import Wo from "axios";
17
+ import { showNotification as rn } from "@mantine/notifications";
18
+ import Uo from "axios";
19
19
  import $s from "crypto-js";
20
- import { cast as ht, types as x, addDisposer as er, addMiddleware as Es, getType as As, getRoot as Jt, flow as Os, toGenerator as zs, detach as Ps, resolveIdentifier as so, castToSnapshot as Uo, getSnapshot as jt, applySnapshot as Ct, applyPatch as Ts, onSnapshot as Ls } from "mobx-state-tree";
21
- import { randomId as Ie, useClipboard as Ns, useElementSize as Pn, useInputState as Yo } from "@mantine/hooks";
22
- import Qo, { RichTextEditor as Jo } from "@mantine/rte";
23
- import { makeAutoObservable as tr, runInAction as Dt, observable as Xo, toJS as an, reaction as nr } from "mobx";
24
- import lo from "eventemitter2";
20
+ import { cast as ht, types as x, addDisposer as er, addMiddleware as Es, getType as As, getRoot as so, flow as Os, toGenerator as zs, detach as Ps, getParentOfType as lo, castToSnapshot as Yo, getSnapshot as jt, applySnapshot as Ct, applyPatch as Ts, onSnapshot as Ls } from "mobx-state-tree";
21
+ import { randomId as Ie, useClipboard as Ns, useElementSize as zn, useInputState as Qo } from "@mantine/hooks";
22
+ import Jo, { RichTextEditor as Xo } from "@mantine/rte";
23
+ import { makeAutoObservable as tr, runInAction as Dt, observable as Ko, toJS as on, reaction as nr } from "mobx";
24
+ import co from "eventemitter2";
25
25
  import kt from "chroma-js";
26
26
  import "echarts-gl";
27
27
  import * as ge from "echarts/core";
28
- import { GridComponent as vt, VisualMapComponent as qs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as sn, MarkLineComponent as Ko, MarkAreaComponent as js } from "echarts/components";
28
+ import { GridComponent as vt, VisualMapComponent as qs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as an, MarkLineComponent as Zo, MarkAreaComponent as js } from "echarts/components";
29
29
  import { CanvasRenderer as it } from "echarts/renderers";
30
30
  import at from "echarts-for-react/lib/core";
31
- import { BoxplotChart as Gs, BarChart as Zo, LineChart as ei, ScatterChart as ti, PieChart as Bs, RadarChart as Hs, SunburstChart as Ws } from "echarts/charts";
31
+ import { BoxplotChart as Gs, BarChart as ei, LineChart as ti, ScatterChart as ni, PieChart as Bs, RadarChart as Hs, SunburstChart as Ws } from "echarts/charts";
32
32
  import De from "numbro";
33
33
  import { quantile as Us } from "d3-array";
34
- import { transform as ni } from "echarts-stat";
34
+ import { transform as ri } from "echarts-stat";
35
35
  import { useForm as rr } from "@mantine/form";
36
36
  import * as Je from "d3-regression";
37
37
  import { useVirtual as Ys } from "react-virtual";
38
38
  import Qs from "ajv";
39
39
  import Js from "stickybits";
40
- import ri, { WidthProvider as oi } from "react-grid-layout";
41
- function ii(e, t) {
40
+ import oi, { WidthProvider as ii } from "react-grid-layout";
41
+ function ai(e, t) {
42
42
  Z(() => {
43
43
  const n = (r) => {
44
44
  console.log(r);
@@ -115,7 +115,7 @@ class or {
115
115
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
116
116
  }
117
117
  }
118
- var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ln = { exports: {} }, wt = {};
118
+ var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, sn = { exports: {} }, wt = {};
119
119
  /**
120
120
  * @license React
121
121
  * react-jsx-runtime.production.min.js
@@ -125,11 +125,11 @@ var st = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
125
125
  * This source code is licensed under the MIT license found in the
126
126
  * LICENSE file in the root directory of this source tree.
127
127
  */
128
- var co;
128
+ var uo;
129
129
  function Ks() {
130
- if (co)
130
+ if (uo)
131
131
  return wt;
132
- co = 1;
132
+ uo = 1;
133
133
  var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
134
134
  function s(l, c, d) {
135
135
  var u, p = {}, f = null, h = null;
@@ -153,9 +153,9 @@ var St = {};
153
153
  * This source code is licensed under the MIT license found in the
154
154
  * LICENSE file in the root directory of this source tree.
155
155
  */
156
- var uo;
156
+ var go;
157
157
  function Zs() {
158
- return uo || (uo = 1, process.env.NODE_ENV !== "production" && function() {
158
+ return go || (go = 1, process.env.NODE_ENV !== "production" && function() {
159
159
  var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), b = Symbol.iterator, v = "@@iterator";
160
160
  function S(m) {
161
161
  if (m === null || typeof m != "object")
@@ -181,10 +181,10 @@ function Zs() {
181
181
  J.unshift("Warning: " + _), Function.prototype.apply.call(console[m], console, J);
182
182
  }
183
183
  }
184
- var N = !1, Y = !1, pe = !1, ce = !1, Se = !1, ve;
185
- ve = Symbol.for("react.module.reference");
184
+ var N = !1, Y = !1, fe = !1, ce = !1, _e = !1, be;
185
+ be = Symbol.for("react.module.reference");
186
186
  function Me(m) {
187
- return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || Se || m === o || m === d || m === u || ce || m === h || N || Y || pe || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === s || m.$$typeof === l || m.$$typeof === c || m.$$typeof === ve || m.getModuleId !== void 0));
187
+ return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || _e || m === o || m === d || m === u || ce || m === h || N || Y || fe || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === s || m.$$typeof === l || m.$$typeof === c || m.$$typeof === be || m.getModuleId !== void 0));
188
188
  }
189
189
  function ue(m, _, V) {
190
190
  var O = m.displayName;
@@ -196,7 +196,7 @@ function Zs() {
196
196
  function ke(m) {
197
197
  return m.displayName || "Context";
198
198
  }
199
- function be(m) {
199
+ function ye(m) {
200
200
  if (m == null)
201
201
  return null;
202
202
  if (typeof m.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
@@ -229,11 +229,11 @@ function Zs() {
229
229
  return ue(m, m.render, "ForwardRef");
230
230
  case p:
231
231
  var O = m.displayName || null;
232
- return O !== null ? O : be(m.type) || "Memo";
232
+ return O !== null ? O : ye(m.type) || "Memo";
233
233
  case f: {
234
234
  var W = m, J = W._payload, B = W._init;
235
235
  try {
236
- return be(B(J));
236
+ return ye(B(J));
237
237
  } catch {
238
238
  return null;
239
239
  }
@@ -241,7 +241,7 @@ function Zs() {
241
241
  }
242
242
  return null;
243
243
  }
244
- var ye = Object.assign, Ye = 0, Or, zr, Pr, Tr, Lr, Nr, qr;
244
+ var xe = Object.assign, Ye = 0, Or, zr, Pr, Tr, Lr, Nr, qr;
245
245
  function jr() {
246
246
  }
247
247
  jr.__reactDisabledLog = !0;
@@ -277,25 +277,25 @@ function Zs() {
277
277
  writable: !0
278
278
  };
279
279
  Object.defineProperties(console, {
280
- log: ye({}, m, {
280
+ log: xe({}, m, {
281
281
  value: Or
282
282
  }),
283
- info: ye({}, m, {
283
+ info: xe({}, m, {
284
284
  value: zr
285
285
  }),
286
- warn: ye({}, m, {
286
+ warn: xe({}, m, {
287
287
  value: Pr
288
288
  }),
289
- error: ye({}, m, {
289
+ error: xe({}, m, {
290
290
  value: Tr
291
291
  }),
292
- group: ye({}, m, {
292
+ group: xe({}, m, {
293
293
  value: Lr
294
294
  }),
295
- groupCollapsed: ye({}, m, {
295
+ groupCollapsed: xe({}, m, {
296
296
  value: Nr
297
297
  }),
298
- groupEnd: ye({}, m, {
298
+ groupEnd: xe({}, m, {
299
299
  value: qr
300
300
  })
301
301
  });
@@ -303,27 +303,27 @@ function Zs() {
303
303
  Ye < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
304
304
  }
305
305
  }
306
- var bn = M.ReactCurrentDispatcher, yn;
306
+ var vn = M.ReactCurrentDispatcher, bn;
307
307
  function Pt(m, _, V) {
308
308
  {
309
- if (yn === void 0)
309
+ if (bn === void 0)
310
310
  try {
311
311
  throw Error();
312
312
  } catch (W) {
313
313
  var O = W.stack.trim().match(/\n( *(at )?)/);
314
- yn = O && O[1] || "";
314
+ bn = O && O[1] || "";
315
315
  }
316
316
  return `
317
- ` + yn + m;
317
+ ` + bn + m;
318
318
  }
319
319
  }
320
- var xn = !1, Tt;
320
+ var yn = !1, Tt;
321
321
  {
322
322
  var Ia = typeof WeakMap == "function" ? WeakMap : Map;
323
323
  Tt = new Ia();
324
324
  }
325
325
  function Gr(m, _) {
326
- if (!m || xn)
326
+ if (!m || yn)
327
327
  return "";
328
328
  {
329
329
  var V = Tt.get(m);
@@ -331,11 +331,11 @@ function Zs() {
331
331
  return V;
332
332
  }
333
333
  var O;
334
- xn = !0;
334
+ yn = !0;
335
335
  var W = Error.prepareStackTrace;
336
336
  Error.prepareStackTrace = void 0;
337
337
  var J;
338
- J = bn.current, bn.current = null, Ra();
338
+ J = vn.current, vn.current = null, Ra();
339
339
  try {
340
340
  if (_) {
341
341
  var B = function() {
@@ -371,24 +371,24 @@ function Zs() {
371
371
  } catch (qe) {
372
372
  if (qe && O && typeof qe.stack == "string") {
373
373
  for (var q = qe.stack.split(`
374
- `), fe = O.stack.split(`
375
- `), oe = q.length - 1, ae = fe.length - 1; oe >= 1 && ae >= 0 && q[oe] !== fe[ae]; )
374
+ `), me = O.stack.split(`
375
+ `), oe = q.length - 1, ae = me.length - 1; oe >= 1 && ae >= 0 && q[oe] !== me[ae]; )
376
376
  ae--;
377
377
  for (; oe >= 1 && ae >= 0; oe--, ae--)
378
- if (q[oe] !== fe[ae]) {
378
+ if (q[oe] !== me[ae]) {
379
379
  if (oe !== 1 || ae !== 1)
380
380
  do
381
- if (oe--, ae--, ae < 0 || q[oe] !== fe[ae]) {
382
- var _e = `
381
+ if (oe--, ae--, ae < 0 || q[oe] !== me[ae]) {
382
+ var Re = `
383
383
  ` + q[oe].replace(" at new ", " at ");
384
- return m.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", m.displayName)), typeof m == "function" && Tt.set(m, _e), _e;
384
+ return m.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", m.displayName)), typeof m == "function" && Tt.set(m, Re), Re;
385
385
  }
386
386
  while (oe >= 1 && ae >= 0);
387
387
  break;
388
388
  }
389
389
  }
390
390
  } finally {
391
- xn = !1, bn.current = J, Da(), Error.prepareStackTrace = W;
391
+ yn = !1, vn.current = J, Da(), Error.prepareStackTrace = W;
392
392
  }
393
393
  var ut = m ? m.displayName || m.name : "", no = ut ? Pt(ut) : "";
394
394
  return typeof m == "function" && Tt.set(m, no), no;
@@ -445,8 +445,8 @@ function Zs() {
445
445
  var q = void 0;
446
446
  try {
447
447
  if (typeof m[B] != "function") {
448
- var fe = Error((O || "React class") + ": " + V + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
449
- throw fe.name = "Invariant Violation", fe;
448
+ var me = Error((O || "React class") + ": " + V + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
449
+ throw me.name = "Invariant Violation", me;
450
450
  }
451
451
  q = m[B](_, B, O, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
452
452
  } catch (oe) {
@@ -457,7 +457,7 @@ function Zs() {
457
457
  }
458
458
  }
459
459
  var Fa = Array.isArray;
460
- function Cn(m) {
460
+ function xn(m) {
461
461
  return Fa(m);
462
462
  }
463
463
  function $a(m) {
@@ -485,8 +485,8 @@ function Zs() {
485
485
  ref: !0,
486
486
  __self: !0,
487
487
  __source: !0
488
- }, Yr, Qr, wn;
489
- wn = {};
488
+ }, Yr, Qr, Cn;
489
+ Cn = {};
490
490
  function Oa(m) {
491
491
  if (Nt.call(m, "ref")) {
492
492
  var _ = Object.getOwnPropertyDescriptor(m, "ref").get;
@@ -505,8 +505,8 @@ function Zs() {
505
505
  }
506
506
  function Pa(m, _) {
507
507
  if (typeof m.ref == "string" && xt.current && _ && xt.current.stateNode !== _) {
508
- var V = be(xt.current.type);
509
- wn[V] || (k('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', be(xt.current.type), m.ref), wn[V] = !0);
508
+ var V = ye(xt.current.type);
509
+ Cn[V] || (k('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', ye(xt.current.type), m.ref), Cn[V] = !0);
510
510
  }
511
511
  }
512
512
  function Ta(m, _) {
@@ -559,8 +559,8 @@ function Zs() {
559
559
  };
560
560
  function qa(m, _, V, O, W) {
561
561
  {
562
- var J, B = {}, q = null, fe = null;
563
- V !== void 0 && (Ur(V), q = "" + V), za(_) && (Ur(_.key), q = "" + _.key), Oa(_) && (fe = _.ref, Pa(_, W));
562
+ var J, B = {}, q = null, me = null;
563
+ V !== void 0 && (Ur(V), q = "" + V), za(_) && (Ur(_.key), q = "" + _.key), Oa(_) && (me = _.ref, Pa(_, W));
564
564
  for (J in _)
565
565
  Nt.call(_, J) && !Aa.hasOwnProperty(J) && (B[J] = _[J]);
566
566
  if (m && m.defaultProps) {
@@ -568,14 +568,14 @@ function Zs() {
568
568
  for (J in oe)
569
569
  B[J] === void 0 && (B[J] = oe[J]);
570
570
  }
571
- if (q || fe) {
571
+ if (q || me) {
572
572
  var ae = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
573
- q && Ta(B, ae), fe && La(B, ae);
573
+ q && Ta(B, ae), me && La(B, ae);
574
574
  }
575
- return Na(m, q, fe, W, O, xt.current, B);
575
+ return Na(m, q, me, W, O, xt.current, B);
576
576
  }
577
577
  }
578
- var Sn = M.ReactCurrentOwner, Jr = M.ReactDebugCurrentFrame;
578
+ var wn = M.ReactCurrentOwner, Jr = M.ReactDebugCurrentFrame;
579
579
  function ct(m) {
580
580
  if (m) {
581
581
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
@@ -583,15 +583,15 @@ function Zs() {
583
583
  } else
584
584
  Jr.setExtraStackFrame(null);
585
585
  }
586
- var _n;
587
- _n = !1;
588
- function Rn(m) {
586
+ var Sn;
587
+ Sn = !1;
588
+ function _n(m) {
589
589
  return typeof m == "object" && m !== null && m.$$typeof === t;
590
590
  }
591
591
  function Xr() {
592
592
  {
593
- if (Sn.current) {
594
- var m = be(Sn.current.type);
593
+ if (wn.current) {
594
+ var m = ye(wn.current.type);
595
595
  if (m)
596
596
  return `
597
597
 
@@ -634,25 +634,25 @@ Check the top-level render call using <` + V + ">.");
634
634
  return;
635
635
  Kr[V] = !0;
636
636
  var O = "";
637
- m && m._owner && m._owner !== Sn.current && (O = " It was passed a child from " + be(m._owner.type) + "."), ct(m), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ct(null);
637
+ m && m._owner && m._owner !== wn.current && (O = " It was passed a child from " + ye(m._owner.type) + "."), ct(m), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ct(null);
638
638
  }
639
639
  }
640
640
  function eo(m, _) {
641
641
  {
642
642
  if (typeof m != "object")
643
643
  return;
644
- if (Cn(m))
644
+ if (xn(m))
645
645
  for (var V = 0; V < m.length; V++) {
646
646
  var O = m[V];
647
- Rn(O) && Zr(O, _);
647
+ _n(O) && Zr(O, _);
648
648
  }
649
- else if (Rn(m))
649
+ else if (_n(m))
650
650
  m._store && (m._store.validated = !0);
651
651
  else if (m) {
652
652
  var W = S(m);
653
653
  if (typeof W == "function" && W !== m.entries)
654
654
  for (var J = W.call(m), B; !(B = J.next()).done; )
655
- Rn(B.value) && Zr(B.value, _);
655
+ _n(B.value) && Zr(B.value, _);
656
656
  }
657
657
  }
658
658
  }
@@ -669,11 +669,11 @@ Check the top-level render call using <` + V + ">.");
669
669
  else
670
670
  return;
671
671
  if (V) {
672
- var O = be(_);
672
+ var O = ye(_);
673
673
  ka(V, m.props, "prop", O, m);
674
- } else if (_.PropTypes !== void 0 && !_n) {
675
- _n = !0;
676
- var W = be(_);
674
+ } else if (_.PropTypes !== void 0 && !Sn) {
675
+ Sn = !0;
676
+ var W = ye(_);
677
677
  k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
678
678
  }
679
679
  typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -697,26 +697,26 @@ Check the top-level render call using <` + V + ">.");
697
697
  if (!B) {
698
698
  var q = "";
699
699
  (m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
700
- var fe = ja(W);
701
- fe ? q += fe : q += Xr();
700
+ var me = ja(W);
701
+ me ? q += me : q += Xr();
702
702
  var oe;
703
- m === null ? oe = "null" : Cn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (be(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, q);
703
+ m === null ? oe = "null" : xn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (ye(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, q);
704
704
  }
705
705
  var ae = qa(m, _, V, W, J);
706
706
  if (ae == null)
707
707
  return ae;
708
708
  if (B) {
709
- var _e = _.children;
710
- if (_e !== void 0)
709
+ var Re = _.children;
710
+ if (Re !== void 0)
711
711
  if (O)
712
- if (Cn(_e)) {
713
- for (var ut = 0; ut < _e.length; ut++)
714
- eo(_e[ut], m);
715
- Object.freeze && Object.freeze(_e);
712
+ if (xn(Re)) {
713
+ for (var ut = 0; ut < Re.length; ut++)
714
+ eo(Re[ut], m);
715
+ Object.freeze && Object.freeze(Re);
716
716
  } else
717
717
  k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
718
718
  else
719
- eo(_e, m);
719
+ eo(Re, m);
720
720
  }
721
721
  return m === r ? Ha(ae) : Ba(ae), ae;
722
722
  }
@@ -733,24 +733,24 @@ Check the top-level render call using <` + V + ">.");
733
733
  }
734
734
  (function(e) {
735
735
  process.env.NODE_ENV === "production" ? e.exports = Ks() : e.exports = Zs();
736
- })(ln);
737
- const re = ln.exports.Fragment, i = ln.exports.jsx, g = ln.exports.jsxs, Tn = Fo(null);
738
- function cn(e) {
739
- const t = w.useContext(Tn), n = Be(() => e.configure(t || new or()), [e.configure]), r = is(n);
740
- return r && r !== n && r.dispose(), /* @__PURE__ */ i(Tn.Provider, {
736
+ })(sn);
737
+ const re = sn.exports.Fragment, i = sn.exports.jsx, g = sn.exports.jsxs, Pn = $o(null);
738
+ function ln(e) {
739
+ const t = w.useContext(Pn), n = Be(() => e.configure(t || new or()), [e.configure]), r = is(n);
740
+ return r && r !== n && r.dispose(), /* @__PURE__ */ i(Pn.Provider, {
741
741
  value: n,
742
742
  children: e.children
743
743
  });
744
744
  }
745
- function ai() {
746
- return w.useContext(Tn);
745
+ function si() {
746
+ return w.useContext(Pn);
747
747
  }
748
748
  const el = {
749
749
  viewPanelInFullScreen: K.noop,
750
750
  inFullScreen: !1
751
- }, ir = w.createContext(el), si = w.createContext(null), li = si.Provider;
751
+ }, ir = w.createContext(el), li = w.createContext(null), ci = li.Provider;
752
752
  function X() {
753
- const e = w.useContext(si);
753
+ const e = w.useContext(li);
754
754
  if (!e)
755
755
  throw new Error("Please use ModelContextProvider");
756
756
  return e;
@@ -820,7 +820,7 @@ function tl({
820
820
  })]
821
821
  });
822
822
  }
823
- const ci = I(({
823
+ const ui = I(({
824
824
  label: e,
825
825
  config: t,
826
826
  value: n = [null, null],
@@ -851,13 +851,13 @@ const ci = I(({
851
851
  freezeLayout: K.noop,
852
852
  inEditMode: !1,
853
853
  inUseMode: !0
854
- }, Le = w.createContext(nl), ui = w.createContext({
854
+ }, Le = w.createContext(nl), di = w.createContext({
855
855
  panel: null,
856
856
  data: [],
857
857
  loading: !1
858
- }), rl = ui.Provider;
859
- function he() {
860
- const e = w.useContext(ui);
858
+ }), rl = di.Provider;
859
+ function ve() {
860
+ const e = w.useContext(di);
861
861
  if (!e.panel)
862
862
  throw new Error("Please use PanelContextProvider");
863
863
  return e;
@@ -969,7 +969,7 @@ const sl = I(({
969
969
  config: t
970
970
  });
971
971
  case "date-range":
972
- return /* @__PURE__ */ i(ci, {
972
+ return /* @__PURE__ */ i(ui, {
973
973
  ...r,
974
974
  ...o,
975
975
  config: t
@@ -983,7 +983,7 @@ const sl = I(({
983
983
  default:
984
984
  return null;
985
985
  }
986
- }), di = I(w.forwardRef(({
986
+ }), gi = I(w.forwardRef(({
987
987
  filter: e,
988
988
  ...t
989
989
  }, n) => /* @__PURE__ */ i("div", {
@@ -995,7 +995,7 @@ const sl = I(({
995
995
  formFieldProps: t
996
996
  })
997
997
  })
998
- }))), gi = I(function({
998
+ }))), pi = I(function({
999
999
  view: t
1000
1000
  }) {
1001
1001
  const n = X(), {
@@ -1032,7 +1032,7 @@ const sl = I(({
1032
1032
  control: r,
1033
1033
  render: ({
1034
1034
  field: d
1035
- }) => /* @__PURE__ */ i(di, {
1035
+ }) => /* @__PURE__ */ i(gi, {
1036
1036
  filter: c,
1037
1037
  ...d
1038
1038
  })
@@ -1051,7 +1051,7 @@ const sl = I(({
1051
1051
  })
1052
1052
  });
1053
1053
  });
1054
- var un = { exports: {} };
1054
+ var cn = { exports: {} };
1055
1055
  (function(e, t) {
1056
1056
  (function(n, r) {
1057
1057
  r();
@@ -1122,24 +1122,24 @@ var un = { exports: {} };
1122
1122
  });
1123
1123
  s.saveAs = c.saveAs = c, e.exports = c;
1124
1124
  });
1125
- })(un);
1125
+ })(cn);
1126
1126
  function ll(e, t) {
1127
1127
  const n = new Blob([t], { type: "text/csv" });
1128
- un.exports.saveAs(n, `${e}.csv`);
1128
+ cn.exports.saveAs(n, `${e}.csv`);
1129
1129
  }
1130
1130
  function cl(e, t) {
1131
1131
  const n = new Blob([t], { type: "application/json" });
1132
- un.exports.saveAs(n, `${e}.json`);
1132
+ cn.exports.saveAs(n, `${e}.json`);
1133
1133
  }
1134
1134
  function ul(e) {
1135
1135
  const t = new Fs();
1136
1136
  e.forEach(({ id: n, data: r }) => {
1137
- t.file(`${n}.csv`, pi(r));
1137
+ t.file(`${n}.csv`, fi(r));
1138
1138
  }), t.generateAsync({ type: "blob" }).then((n) => {
1139
- un.exports.saveAs(n, "dashboard_data.zip");
1139
+ cn.exports.saveAs(n, "dashboard_data.zip");
1140
1140
  });
1141
1141
  }
1142
- function pi(e) {
1142
+ function fi(e) {
1143
1143
  if (!Array.isArray(e) || e.length === 0)
1144
1144
  return "";
1145
1145
  const t = [], n = Object.keys(e[0]);
@@ -1227,11 +1227,11 @@ WHERE
1227
1227
  })]
1228
1228
  });
1229
1229
  }), gl = I(function() {
1230
- const t = X(), [n, r] = me(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1230
+ const t = X(), [n, r] = he(() => JSON.stringify(t.mock_context.current, null, 4)), o = () => {
1231
1231
  try {
1232
1232
  t.mock_context.replace(JSON.parse(n));
1233
1233
  } catch (s) {
1234
- on({
1234
+ rn({
1235
1235
  title: "Failed",
1236
1236
  message: s.message,
1237
1237
  color: "red"
@@ -1279,7 +1279,7 @@ WHERE
1279
1279
  },
1280
1280
  children: [/* @__PURE__ */ i(C, {
1281
1281
  children: "A valid json string is required"
1282
- }), /* @__PURE__ */ i(Io, {
1282
+ }), /* @__PURE__ */ i(Vo, {
1283
1283
  validationError: "Invalid json",
1284
1284
  formatOnBlur: !0,
1285
1285
  autosize: !0,
@@ -1309,7 +1309,7 @@ WHERE
1309
1309
  });
1310
1310
  });
1311
1311
  function pl() {
1312
- return /* @__PURE__ */ i(en, {
1312
+ return /* @__PURE__ */ i(Zt, {
1313
1313
  sx: {
1314
1314
  height: "90vh",
1315
1315
  maxHeight: "calc(100vh - 225px)",
@@ -1371,7 +1371,7 @@ function fl({
1371
1371
  })]
1372
1372
  });
1373
1373
  }
1374
- const fi = I(function({
1374
+ const mi = I(function({
1375
1375
  id: t
1376
1376
  }) {
1377
1377
  const n = X(), {
@@ -1409,7 +1409,7 @@ const fi = I(function({
1409
1409
  color: "blue",
1410
1410
  disabled: a,
1411
1411
  onClick: s,
1412
- children: /* @__PURE__ */ i(jo, {
1412
+ children: /* @__PURE__ */ i(Go, {
1413
1413
  size: 15
1414
1414
  })
1415
1415
  })]
@@ -1417,7 +1417,7 @@ const fi = I(function({
1417
1417
  sx: {
1418
1418
  position: "relative"
1419
1419
  },
1420
- children: [/* @__PURE__ */ i(tn, {
1420
+ children: [/* @__PURE__ */ i(en, {
1421
1421
  visible: a
1422
1422
  }), /* @__PURE__ */ i(fl, {
1423
1423
  data: r
@@ -1451,7 +1451,7 @@ function lr(e, t, n, r) {
1451
1451
  }, s = n.reduce((l, c) => (l[c.key] = sr(c.value, a), l), {});
1452
1452
  return K.merge({}, { context: o, filters: r, sql_snippets: s });
1453
1453
  }
1454
- function mi(e, t, n, r, o) {
1454
+ function hi(e, t, n, r, o) {
1455
1455
  try {
1456
1456
  const a = lr(t, n, r, o);
1457
1457
  return sr(e, a);
@@ -1517,11 +1517,11 @@ const gt = {
1517
1517
  params: e === "GET" ? n : r.params,
1518
1518
  headers: a
1519
1519
  };
1520
- return ["POST", "PUT"].includes(e) && (s.data = r.string ? JSON.stringify(n) : n, s.data.authentication = this.getAuthentication(s.data)), Wo(s).then((l) => l.data).catch((l) => Promise.reject(l));
1520
+ return ["POST", "PUT"].includes(e) && (s.data = r.string ? JSON.stringify(n) : n, s.data.authentication = this.getAuthentication(s.data)), Uo(s).then((l) => l.data).catch((l) => Promise.reject(l));
1521
1521
  };
1522
1522
  }
1523
1523
  };
1524
- function hi(e) {
1524
+ function vi(e) {
1525
1525
  gt.baseURL !== e.apiBaseURL && (gt.baseURL = e.apiBaseURL), e.app_id && (gt.app_id = e.app_id), e.app_secret && (gt.app_secret = e.app_secret);
1526
1526
  }
1527
1527
  async function bl({ context: e, mock_context: t, sqlSnippets: n, title: r, query: o, filterValues: a }) {
@@ -1650,7 +1650,7 @@ const Ml = (e) => {
1650
1650
  }, kl = I(Ml), Fl = I(({
1651
1651
  value: e
1652
1652
  }) => {
1653
- const t = X(), n = t.context.current, r = w.useMemo(() => mi(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1653
+ const t = X(), n = t.context.current, r = w.useMemo(() => hi(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
1654
1654
  return /* @__PURE__ */ i(Pe, {
1655
1655
  language: "sql",
1656
1656
  colorScheme: "light",
@@ -1671,7 +1671,7 @@ const Ml = (e) => {
1671
1671
  const c = s !== t.sql, d = () => {
1672
1672
  t.setSQL(s);
1673
1673
  }, u = () => {
1674
- n(o), t.setID(o);
1674
+ t.setID(o), n(o);
1675
1675
  };
1676
1676
  return /* @__PURE__ */ g(R, {
1677
1677
  sx: {
@@ -1748,7 +1748,7 @@ const Ml = (e) => {
1748
1748
  sx: {
1749
1749
  position: "relative"
1750
1750
  },
1751
- children: [/* @__PURE__ */ i(Vo, {
1751
+ children: [/* @__PURE__ */ i(Mo, {
1752
1752
  autosize: !0,
1753
1753
  minRows: 12,
1754
1754
  maxRows: 24,
@@ -1859,7 +1859,7 @@ const Al = I(function({
1859
1859
  });
1860
1860
  }), Ol = I(function() {
1861
1861
  const [t, n] = w.useState("");
1862
- return /* @__PURE__ */ g(en, {
1862
+ return /* @__PURE__ */ g(Zt, {
1863
1863
  sx: {
1864
1864
  height: "90vh",
1865
1865
  maxHeight: "calc(100vh - 225px)",
@@ -1892,7 +1892,7 @@ const Al = I(function({
1892
1892
  setID: n
1893
1893
  })]
1894
1894
  }), /* @__PURE__ */ i(ar, {})]
1895
- }), /* @__PURE__ */ i(fi, {
1895
+ }), /* @__PURE__ */ i(mi, {
1896
1896
  id: t
1897
1897
  })]
1898
1898
  });
@@ -1957,7 +1957,7 @@ const Al = I(function({
1957
1957
  onChange: (a) => {
1958
1958
  r.setKey(a.currentTarget.value);
1959
1959
  }
1960
- }), /* @__PURE__ */ i(Vo, {
1960
+ }), /* @__PURE__ */ i(Mo, {
1961
1961
  minRows: 3,
1962
1962
  label: "Value",
1963
1963
  required: !0,
@@ -2000,7 +2000,7 @@ const Al = I(function({
2000
2000
  });
2001
2001
  });
2002
2002
  function Tl() {
2003
- return /* @__PURE__ */ i(en, {
2003
+ return /* @__PURE__ */ i(Zt, {
2004
2004
  sx: {
2005
2005
  height: "90vh",
2006
2006
  maxHeight: "calc(100vh - 225px)",
@@ -2074,13 +2074,14 @@ const Ll = I(function({
2074
2074
  })
2075
2075
  });
2076
2076
  });
2077
- var Re = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Re || {});
2077
+ var pe = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(pe || {});
2078
2078
  x.model({
2079
2079
  type: x.enumeration("DataSourceType", [et.Postgresql, et.MySQL, et.HTTP]),
2080
2080
  key: x.string,
2081
2081
  sql: x.string
2082
2082
  });
2083
- const vi = x.model("FilterConfigModel_TextInput", {
2083
+ const Tn = x.model("FilterConfigModel_TextInput", {
2084
+ _name: "text-input",
2084
2085
  required: x.boolean,
2085
2086
  default_value: x.string
2086
2087
  }).actions((e) => ({
@@ -2090,7 +2091,8 @@ const vi = x.model("FilterConfigModel_TextInput", {
2090
2091
  setDefaultValue(t) {
2091
2092
  e.default_value = t;
2092
2093
  }
2093
- })), bi = () => vi.create({
2094
+ })), bi = () => Tn.create({
2095
+ _name: "text-input",
2094
2096
  required: !1,
2095
2097
  default_value: ""
2096
2098
  }), Nl = I(function({
@@ -2137,7 +2139,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2137
2139
  label: "Display Format",
2138
2140
  value: t.inputFormat,
2139
2141
  onChange: t.setInputFormat
2140
- }), /* @__PURE__ */ i(ci, {
2142
+ }), /* @__PURE__ */ i(ui, {
2141
2143
  label: "Default Value",
2142
2144
  config: t,
2143
2145
  value: t.default_value,
@@ -2362,7 +2364,7 @@ const vi = x.model("FilterConfigModel_TextInput", {
2362
2364
  pb: "md",
2363
2365
  color: "gray",
2364
2366
  children: "Preview"
2365
- }), /* @__PURE__ */ i(di, {
2367
+ }), /* @__PURE__ */ i(gi, {
2366
2368
  filter: t,
2367
2369
  value: r,
2368
2370
  onChange: o
@@ -2466,7 +2468,7 @@ const Jl = I(function() {
2466
2468
  key: o,
2467
2469
  label: o,
2468
2470
  order: n.length + 1,
2469
- type: Re.TextInput,
2471
+ type: pe.TextInput,
2470
2472
  config: bi(),
2471
2473
  visibleInViewsIDs: ["Main"]
2472
2474
  };
@@ -2487,7 +2489,7 @@ const Jl = I(function() {
2487
2489
  children: /* @__PURE__ */ i(H, {
2488
2490
  size: "xs",
2489
2491
  color: "red",
2490
- leftIcon: /* @__PURE__ */ i(Go, {
2492
+ leftIcon: /* @__PURE__ */ i(Bo, {
2491
2493
  size: 20
2492
2494
  }),
2493
2495
  disabled: !t.filtersChanged,
@@ -2745,7 +2747,7 @@ const ec = I(() => {
2745
2747
  children: e
2746
2748
  })
2747
2749
  })
2748
- })), go = "TRIGGER_TO_ADD", sc = I(({
2750
+ })), po = "TRIGGER_TO_ADD", sc = I(({
2749
2751
  value: e,
2750
2752
  onChange: t,
2751
2753
  triggerAdd: n,
@@ -2754,7 +2756,7 @@ const ec = I(() => {
2754
2756
  }) => {
2755
2757
  const a = L(() => [...o, {
2756
2758
  label: "Add a View",
2757
- value: go,
2759
+ value: po,
2758
2760
  type: "TRIGGER_TO_ADD"
2759
2761
  }], [o, n]);
2760
2762
  return /* @__PURE__ */ g(y, {
@@ -2766,7 +2768,7 @@ const ec = I(() => {
2766
2768
  children: [/* @__PURE__ */ i(T, {
2767
2769
  value: e,
2768
2770
  onChange: (l) => {
2769
- l !== go ? t(l) : n();
2771
+ l !== po ? t(l) : n();
2770
2772
  },
2771
2773
  placeholder: "Pick a View",
2772
2774
  itemComponent: ac,
@@ -2796,13 +2798,13 @@ const ec = I(() => {
2796
2798
  }
2797
2799
  }
2798
2800
  },
2799
- children: /* @__PURE__ */ i(Bo, {
2801
+ children: /* @__PURE__ */ i(Ho, {
2800
2802
  size: 20
2801
2803
  })
2802
2804
  })]
2803
2805
  });
2804
2806
  }), lc = I(() => {
2805
- const e = X(), [t, n] = me(!1), r = () => {
2807
+ const e = X(), [t, n] = he(!1), r = () => {
2806
2808
  n(!0);
2807
2809
  }, o = () => {
2808
2810
  n(!1);
@@ -2819,7 +2821,7 @@ const ec = I(() => {
2819
2821
  close: o
2820
2822
  })]
2821
2823
  });
2822
- }), po = {
2824
+ }), fo = {
2823
2825
  "> button": {
2824
2826
  "&:first-of-type": {
2825
2827
  borderTopRightRadius: 0,
@@ -2883,7 +2885,7 @@ const ec = I(() => {
2883
2885
  children: "Add a Panel"
2884
2886
  }), /* @__PURE__ */ g(y, {
2885
2887
  spacing: 0,
2886
- sx: po,
2888
+ sx: fo,
2887
2889
  children: [/* @__PURE__ */ i(dt, {
2888
2890
  label: "Filters",
2889
2891
  children: /* @__PURE__ */ i(A, {
@@ -2907,7 +2909,7 @@ const ec = I(() => {
2907
2909
  })]
2908
2910
  }), /* @__PURE__ */ g(y, {
2909
2911
  spacing: 0,
2910
- sx: po,
2912
+ sx: fo,
2911
2913
  children: [/* @__PURE__ */ i(dt, {
2912
2914
  label: "Save Changes",
2913
2915
  children: /* @__PURE__ */ i(A, {
@@ -2927,17 +2929,17 @@ const ec = I(() => {
2927
2929
  size: "md",
2928
2930
  disabled: !a,
2929
2931
  onClick: o,
2930
- children: /* @__PURE__ */ i(Go, {
2932
+ children: /* @__PURE__ */ i(Bo, {
2931
2933
  size: 20,
2932
2934
  color: "red"
2933
2935
  })
2934
2936
  })
2935
2937
  })]
2936
2938
  })]
2937
- }), !l && /* @__PURE__ */ g(xe, {
2939
+ }), !l && /* @__PURE__ */ g(Ce, {
2938
2940
  width: 180,
2939
2941
  trigger: "hover",
2940
- children: [/* @__PURE__ */ i(xe.Target, {
2942
+ children: [/* @__PURE__ */ i(Ce.Target, {
2941
2943
  children: /* @__PURE__ */ i(A, {
2942
2944
  variant: "default",
2943
2945
  size: "md",
@@ -2945,14 +2947,14 @@ const ec = I(() => {
2945
2947
  size: 20
2946
2948
  })
2947
2949
  })
2948
- }), /* @__PURE__ */ g(xe.Dropdown, {
2949
- children: [/* @__PURE__ */ i(xe.Item, {
2950
- icon: /* @__PURE__ */ i(Ho, {
2950
+ }), /* @__PURE__ */ g(Ce.Dropdown, {
2951
+ children: [/* @__PURE__ */ i(Ce.Item, {
2952
+ icon: /* @__PURE__ */ i(Wo, {
2951
2953
  size: 14
2952
2954
  }),
2953
2955
  onClick: n.queries.downloadAllData,
2954
2956
  children: "Download Data"
2955
- }), /* @__PURE__ */ i(xe.Item, {
2957
+ }), /* @__PURE__ */ i(Ce.Item, {
2956
2958
  icon: /* @__PURE__ */ i(_s, {
2957
2959
  size: 14
2958
2960
  }),
@@ -2975,7 +2977,7 @@ const Ci = I(() => {
2975
2977
  freezeLayout: e
2976
2978
  } = w.useContext(Le), [t, n] = w.useState(!1), {
2977
2979
  panel: r
2978
- } = he();
2980
+ } = ve();
2979
2981
  return w.useEffect(() => {
2980
2982
  e(t);
2981
2983
  }, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ g(re, {
@@ -2984,7 +2986,7 @@ const Ci = I(() => {
2984
2986
  onClose: () => n(!1),
2985
2987
  title: r.title,
2986
2988
  withCloseButton: !1,
2987
- children: /* @__PURE__ */ i(Qo, {
2989
+ children: /* @__PURE__ */ i(Jo, {
2988
2990
  readOnly: !0,
2989
2991
  value: r.description,
2990
2992
  onChange: K.noop,
@@ -3015,7 +3017,7 @@ const Ci = I(() => {
3015
3017
  title: t = "Variables",
3016
3018
  variables: n
3017
3019
  } = e, r = Ns(), o = (a) => {
3018
- r.copy(a), on({
3020
+ r.copy(a), rn({
3019
3021
  color: "green",
3020
3022
  message: "Copied to clipboard"
3021
3023
  });
@@ -3091,7 +3093,7 @@ const dc = I(({
3091
3093
  instance: e.instance,
3092
3094
  variables: []
3093
3095
  };
3094
- return nn(e.operationSchema.configRender, t);
3096
+ return tn(e.operationSchema.configRender, t);
3095
3097
  });
3096
3098
  function pc({
3097
3099
  model: e
@@ -3186,7 +3188,7 @@ const bc = I(({
3186
3188
  return /* @__PURE__ */ i(H, {
3187
3189
  variant: "outline",
3188
3190
  onClick: t,
3189
- children: nn(n, r)
3191
+ children: tn(n, r)
3190
3192
  });
3191
3193
  }), yc = I(({
3192
3194
  model: e
@@ -3212,7 +3214,7 @@ const bc = I(({
3212
3214
  instance: e.instance,
3213
3215
  sampleData: e.sampleData
3214
3216
  };
3215
- return nn(e.triggerSchema.configRender, t);
3217
+ return tn(e.triggerSchema.configRender, t);
3216
3218
  }), Cc = I((e) => {
3217
3219
  const [t, {
3218
3220
  setTrue: n,
@@ -3247,7 +3249,7 @@ class pt {
3247
3249
  async deleteItem(t) {
3248
3250
  t === null && await this.root.deleteItem(this.path);
3249
3251
  const n = await this.root.getItem(this.path) || {};
3250
- await this.root.setItem(this.path, rn(n, t));
3252
+ await this.root.setItem(this.path, nn(n, t));
3251
3253
  }
3252
3254
  async getItem(t) {
3253
3255
  const n = await this.root.getItem(this.path);
@@ -3297,7 +3299,7 @@ class ur {
3297
3299
  async list() {
3298
3300
  const t = await this.attachmentStorage.getItem(null);
3299
3301
  return Promise.all(
3300
- $o(t).map(
3302
+ Eo(t).map(
3301
3303
  (n) => this.constructInstance(new pt(this.attachmentStorage, n.id))
3302
3304
  )
3303
3305
  );
@@ -3306,7 +3308,7 @@ class ur {
3306
3308
  class Si {
3307
3309
  constructor(t) {
3308
3310
  F(this, "rootRef");
3309
- this.rootRef = Xo({ current: t });
3311
+ this.rootRef = Ko({ current: t });
3310
3312
  }
3311
3313
  async deleteItem(t) {
3312
3314
  Dt(() => {
@@ -3318,11 +3320,11 @@ class Si {
3318
3320
  return Promise.resolve(n);
3319
3321
  }
3320
3322
  getValueFromRoot(t) {
3321
- return t === null ? an(this.rootRef.current) : Q(this.rootRef.current, [t]);
3323
+ return t === null ? on(this.rootRef.current) : Q(this.rootRef.current, [t]);
3322
3324
  }
3323
3325
  setItem(t, n) {
3324
3326
  if (t === null)
3325
- if (Eo(n))
3327
+ if (Ao(n))
3326
3328
  Dt(() => {
3327
3329
  this.rootRef.current = n;
3328
3330
  });
@@ -3330,7 +3332,7 @@ class Si {
3330
3332
  throw new Error("Cannot set root value to non-object");
3331
3333
  else
3332
3334
  Dt(() => {
3333
- Ao(this.rootRef.current, [t], n);
3335
+ Oo(this.rootRef.current, [t], n);
3334
3336
  });
3335
3337
  return Promise.resolve(this.getItem(t));
3336
3338
  }
@@ -3350,13 +3352,13 @@ class Si {
3350
3352
  class wc {
3351
3353
  constructor() {
3352
3354
  F(this, "channels", /* @__PURE__ */ new Map());
3353
- F(this, "globalChannel", new lo());
3355
+ F(this, "globalChannel", new co());
3354
3356
  }
3355
3357
  getChannel(t) {
3356
3358
  const n = this.channels.get(t);
3357
3359
  if (n)
3358
3360
  return n;
3359
- const r = new lo();
3361
+ const r = new co();
3360
3362
  return this.channels.set(t, r), r;
3361
3363
  }
3362
3364
  }
@@ -3415,7 +3417,7 @@ const _c = (e) => {
3415
3417
  return /* @__PURE__ */ i(l, {
3416
3418
  context: s,
3417
3419
  instance: a,
3418
- ...rn(e, ["panel", "vizManager", "data"])
3420
+ ...nn(e, ["panel", "vizManager", "data"])
3419
3421
  });
3420
3422
  }, Rc = (e) => {
3421
3423
  const {
@@ -3430,14 +3432,14 @@ const _c = (e) => {
3430
3432
  return /* @__PURE__ */ i(c, {
3431
3433
  context: l,
3432
3434
  instance: s,
3433
- ...rn(e, ["panel", "vizManager", "data", "panelInfoEditor"])
3435
+ ...nn(e, ["panel", "vizManager", "data", "panelInfoEditor"])
3434
3436
  });
3435
3437
  }, Ri = (e, t) => {
3436
3438
  const n = kt.bezier(e), r = kt.bezier(t);
3437
3439
  return function(o) {
3438
3440
  return o < 50 ? n(o * 2 / 100).hex() : r((o - 50) * 2 / 100).hex();
3439
3441
  };
3440
- }, dn = (e) => {
3442
+ }, un = (e) => {
3441
3443
  const t = kt.bezier(e);
3442
3444
  return function(n) {
3443
3445
  return t(n / 100).hex();
@@ -3457,28 +3459,28 @@ const _c = (e) => {
3457
3459
  }, Vc = {
3458
3460
  type: "interpolation",
3459
3461
  displayName: "Red",
3460
- getColor: dn(["#fff7f1", "darkred"]),
3462
+ getColor: un(["#fff7f1", "darkred"]),
3461
3463
  name: "red",
3462
3464
  category: "sequential"
3463
3465
  }, Mc = {
3464
3466
  type: "interpolation",
3465
3467
  displayName: "Green",
3466
- getColor: dn(["#f0ffed", "darkgreen"]),
3468
+ getColor: un(["#f0ffed", "darkgreen"]),
3467
3469
  name: "green",
3468
3470
  category: "sequential"
3469
3471
  }, kc = {
3470
3472
  type: "interpolation",
3471
3473
  displayName: "Blue",
3472
- getColor: dn(["#f9fcff", "#48b3e9", "darkblue"]),
3474
+ getColor: un(["#f9fcff", "#48b3e9", "darkblue"]),
3473
3475
  name: "blue",
3474
3476
  category: "sequential"
3475
3477
  }, Fc = {
3476
3478
  type: "interpolation",
3477
3479
  displayName: "Orange",
3478
- getColor: dn(["#fff7f1", "darkorange", "#b60000"]),
3480
+ getColor: un(["#fff7f1", "darkorange", "#b60000"]),
3479
3481
  name: "orange",
3480
3482
  category: "sequential"
3481
- }, $c = "5.9.0";
3483
+ }, $c = "5.9.2";
3482
3484
  class Ec {
3483
3485
  constructor(t) {
3484
3486
  F(this, "staticColors", /* @__PURE__ */ new Map());
@@ -3562,7 +3564,7 @@ class Oc {
3562
3564
  return o.reduce((s, l) => l.handler(s), n);
3563
3565
  }
3564
3566
  }
3565
- class we extends Oc {
3567
+ class Se extends Oc {
3566
3568
  constructor() {
3567
3569
  super(), this.configVersions();
3568
3570
  }
@@ -3579,7 +3581,7 @@ class we extends Oc {
3579
3581
  }
3580
3582
  }
3581
3583
  const U = (e, t) => {
3582
- const [n, { setFalse: r }] = $t(!0), [o, a] = me();
3584
+ const [n, { setFalse: r }] = $t(!0), [o, a] = he();
3583
3585
  Z(() => (e.getItem(t).then((l) => {
3584
3586
  a(l), r();
3585
3587
  }), e.watchItem(t, (l) => {
@@ -3633,7 +3635,7 @@ function zc({
3633
3635
  const b = ds(n, (v) => v[l]);
3634
3636
  return Q(b, l);
3635
3637
  }, [n, l]), f = L(() => {
3636
- const b = Oo(n, (v) => v[l]);
3638
+ const b = zo(n, (v) => v[l]);
3637
3639
  return Q(b, l);
3638
3640
  }, [n, l]), h = {
3639
3641
  tooltip: {},
@@ -3861,7 +3863,7 @@ function Tc({
3861
3863
  })
3862
3864
  }) : null;
3863
3865
  }
3864
- class Lc extends we {
3866
+ class Lc extends Se {
3865
3867
  constructor() {
3866
3868
  super(...arguments);
3867
3869
  F(this, "VERSION", 1);
@@ -4006,19 +4008,19 @@ function qc({
4006
4008
  children: [/* @__PURE__ */ g(C, {
4007
4009
  size: 12,
4008
4010
  color: "gray",
4009
- children: ["123456789 ", /* @__PURE__ */ i(In, {
4011
+ children: ["123456789 ", /* @__PURE__ */ i(Dn, {
4010
4012
  size: 9
4011
4013
  }), " ", De(123456789).format(e)]
4012
4014
  }), /* @__PURE__ */ g(C, {
4013
4015
  size: 12,
4014
4016
  color: "gray",
4015
- children: ["1234 ", /* @__PURE__ */ i(In, {
4017
+ children: ["1234 ", /* @__PURE__ */ i(Dn, {
4016
4018
  size: 9
4017
4019
  }), " ", De(1234).format(e)]
4018
4020
  }), /* @__PURE__ */ g(C, {
4019
4021
  size: 12,
4020
4022
  color: "gray",
4021
- children: ["0.1234 ", /* @__PURE__ */ i(In, {
4023
+ children: ["0.1234 ", /* @__PURE__ */ i(Dn, {
4022
4024
  size: 9
4023
4025
  }), " ", De(0.1234).format(e)]
4024
4026
  })]
@@ -4028,7 +4030,7 @@ function qc({
4028
4030
  });
4029
4031
  }
4030
4032
  const gr = w.forwardRef(qc);
4031
- function gn() {
4033
+ function dn() {
4032
4034
  return {
4033
4035
  name: Ie(),
4034
4036
  size: "20px",
@@ -4255,7 +4257,7 @@ function Yc({
4255
4257
  children: [/* @__PURE__ */ i(C, {
4256
4258
  size: "sm",
4257
4259
  children: e
4258
- }), /* @__PURE__ */ i(Mo, {
4260
+ }), /* @__PURE__ */ i(ko, {
4259
4261
  label: null,
4260
4262
  marks: Gt,
4261
4263
  value: o,
@@ -4392,7 +4394,7 @@ const Xc = w.forwardRef(Jc), Kc = w.forwardRef(function({
4392
4394
  })]
4393
4395
  })]
4394
4396
  });
4395
- }), pn = w.forwardRef(function({
4397
+ }), gn = w.forwardRef(function({
4396
4398
  value: t,
4397
4399
  onChange: n,
4398
4400
  data: r,
@@ -4482,16 +4484,16 @@ process.env.NODE_ENV !== "production" && (Di = function(e, t) {
4482
4484
  const eu = (e, t, n) => Math.min(Math.max(n, e), t), Ii = (e, t, n) => {
4483
4485
  const r = t - e;
4484
4486
  return r === 0 ? 1 : (n - e) / r;
4485
- }, fr = (e, t, n) => -n * e + n * t + e, Vi = (e, t) => (n) => Math.max(Math.min(n, t), e), It = (e) => e % 1 ? Number(e.toFixed(5)) : e, Xt = /(-)?([\d]*\.?[\d])+/g, Nn = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, tu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
4487
+ }, fr = (e, t, n) => -n * e + n * t + e, Vi = (e, t) => (n) => Math.max(Math.min(n, t), e), It = (e) => e % 1 ? Number(e.toFixed(5)) : e, Jt = /(-)?([\d]*\.?[\d])+/g, Nn = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, tu = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
4486
4488
  function Ot(e) {
4487
4489
  return typeof e == "string";
4488
4490
  }
4489
- const fn = {
4491
+ const pn = {
4490
4492
  test: (e) => typeof e == "number",
4491
4493
  parse: parseFloat,
4492
4494
  transform: (e) => e
4493
- }, Mi = Object.assign(Object.assign({}, fn), { transform: Vi(0, 1) });
4494
- Object.assign(Object.assign({}, fn), { default: 1 });
4495
+ }, Mi = Object.assign(Object.assign({}, pn), { transform: Vi(0, 1) });
4496
+ Object.assign(Object.assign({}, pn), { default: 1 });
4495
4497
  const nu = (e) => ({
4496
4498
  test: (t) => Ot(t) && t.endsWith(e) && t.split(" ").length === 1,
4497
4499
  parse: parseFloat,
@@ -4501,7 +4503,7 @@ Object.assign(Object.assign({}, Vt), { parse: (e) => Vt.parse(e) / 100, transfor
4501
4503
  const mr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), ki = (e, t, n) => (r) => {
4502
4504
  if (!Ot(r))
4503
4505
  return r;
4504
- const [o, a, s, l] = r.match(Xt);
4506
+ const [o, a, s, l] = r.match(Jt);
4505
4507
  return {
4506
4508
  [e]: parseFloat(o),
4507
4509
  [t]: parseFloat(a),
@@ -4512,10 +4514,10 @@ const mr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t
4512
4514
  test: mr("hsl", "hue"),
4513
4515
  parse: ki("hue", "saturation", "lightness"),
4514
4516
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Vt.transform(It(t)) + ", " + Vt.transform(It(n)) + ", " + It(Mi.transform(r)) + ")"
4515
- }, ru = Vi(0, 255), Vn = Object.assign(Object.assign({}, fn), { transform: (e) => Math.round(ru(e)) }), Xe = {
4517
+ }, ru = Vi(0, 255), In = Object.assign(Object.assign({}, pn), { transform: (e) => Math.round(ru(e)) }), Xe = {
4516
4518
  test: mr("rgb", "red"),
4517
4519
  parse: ki("red", "green", "blue"),
4518
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Vn.transform(e) + ", " + Vn.transform(t) + ", " + Vn.transform(n) + ", " + It(Mi.transform(r)) + ")"
4520
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + In.transform(e) + ", " + In.transform(t) + ", " + In.transform(n) + ", " + It(Mi.transform(r)) + ")"
4519
4521
  };
4520
4522
  function ou(e) {
4521
4523
  let t = "", n = "", r = "", o = "";
@@ -4530,23 +4532,23 @@ const qn = {
4530
4532
  test: mr("#"),
4531
4533
  parse: ou,
4532
4534
  transform: Xe.transform
4533
- }, mn = {
4535
+ }, fn = {
4534
4536
  test: (e) => Xe.test(e) || qn.test(e) || lt.test(e),
4535
4537
  parse: (e) => Xe.test(e) ? Xe.parse(e) : lt.test(e) ? lt.parse(e) : qn.parse(e),
4536
4538
  transform: (e) => Ot(e) ? e : e.hasOwnProperty("red") ? Xe.transform(e) : lt.transform(e)
4537
4539
  }, Fi = "${c}", $i = "${n}";
4538
4540
  function iu(e) {
4539
4541
  var t, n, r, o;
4540
- return isNaN(e) && Ot(e) && ((n = (t = e.match(Xt)) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((o = (r = e.match(Nn)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
4542
+ return isNaN(e) && Ot(e) && ((n = (t = e.match(Jt)) === null || t === void 0 ? void 0 : t.length) !== null && n !== void 0 ? n : 0) + ((o = (r = e.match(Nn)) === null || r === void 0 ? void 0 : r.length) !== null && o !== void 0 ? o : 0) > 0;
4541
4543
  }
4542
4544
  function Ei(e) {
4543
4545
  typeof e == "number" && (e = `${e}`);
4544
4546
  const t = [];
4545
4547
  let n = 0;
4546
4548
  const r = e.match(Nn);
4547
- r && (n = r.length, e = e.replace(Nn, Fi), t.push(...r.map(mn.parse)));
4548
- const o = e.match(Xt);
4549
- return o && (e = e.replace(Xt, $i), t.push(...o.map(fn.parse))), { values: t, numColors: n, tokenised: e };
4549
+ r && (n = r.length, e = e.replace(Nn, Fi), t.push(...r.map(fn.parse)));
4550
+ const o = e.match(Jt);
4551
+ return o && (e = e.replace(Jt, $i), t.push(...o.map(pn.parse))), { values: t, numColors: n, tokenised: e };
4550
4552
  }
4551
4553
  function Ai(e) {
4552
4554
  return Ei(e).values;
@@ -4556,7 +4558,7 @@ function Oi(e) {
4556
4558
  return (a) => {
4557
4559
  let s = r;
4558
4560
  for (let l = 0; l < o; l++)
4559
- s = s.replace(l < n ? Fi : $i, l < n ? mn.transform(a[l]) : It(a[l]));
4561
+ s = s.replace(l < n ? Fi : $i, l < n ? fn.transform(a[l]) : It(a[l]));
4560
4562
  return s;
4561
4563
  };
4562
4564
  }
@@ -4566,17 +4568,17 @@ function su(e) {
4566
4568
  return Oi(e)(t.map(au));
4567
4569
  }
4568
4570
  const zi = { test: iu, parse: Ai, createTransformer: Oi, getAnimatableNone: su };
4569
- function Mn(e, t, n) {
4571
+ function Vn(e, t, n) {
4570
4572
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
4571
4573
  }
4572
- function fo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4574
+ function mo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4573
4575
  e /= 360, t /= 100, n /= 100;
4574
4576
  let o = 0, a = 0, s = 0;
4575
4577
  if (!t)
4576
4578
  o = a = s = n;
4577
4579
  else {
4578
4580
  const l = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - l;
4579
- o = Mn(c, l, e + 1 / 3), a = Mn(c, l, e), s = Mn(c, l, e - 1 / 3);
4581
+ o = Vn(c, l, e + 1 / 3), a = Vn(c, l, e), s = Vn(c, l, e - 1 / 3);
4580
4582
  }
4581
4583
  return {
4582
4584
  red: Math.round(o * 255),
@@ -4588,11 +4590,11 @@ function fo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4588
4590
  const lu = (e, t, n) => {
4589
4591
  const r = e * e, o = t * t;
4590
4592
  return Math.sqrt(Math.max(0, n * (o - r) + r));
4591
- }, cu = [qn, Xe, lt], mo = (e) => cu.find((t) => t.test(e)), ho = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, Pi = (e, t) => {
4592
- let n = mo(e), r = mo(t);
4593
- Ft(!!n, ho(e)), Ft(!!r, ho(t));
4593
+ }, cu = [qn, Xe, lt], ho = (e) => cu.find((t) => t.test(e)), vo = (e) => `'${e}' is not an animatable color. Use the equivalent color code instead.`, Pi = (e, t) => {
4594
+ let n = ho(e), r = ho(t);
4595
+ Ft(!!n, vo(e)), Ft(!!r, vo(t));
4594
4596
  let o = n.parse(e), a = r.parse(t);
4595
- n === lt && (o = fo(o), n = Xe), r === lt && (a = fo(a), r = Xe);
4597
+ n === lt && (o = mo(o), n = Xe), r === lt && (a = mo(a), r = Xe);
4596
4598
  const s = Object.assign({}, o);
4597
4599
  return (l) => {
4598
4600
  for (const c in s)
@@ -4601,7 +4603,7 @@ const lu = (e, t, n) => {
4601
4603
  };
4602
4604
  }, uu = (e) => typeof e == "number", du = (e, t) => (n) => t(e(n)), Ti = (...e) => e.reduce(du);
4603
4605
  function Li(e, t) {
4604
- return uu(e) ? (n) => fr(e, t, n) : mn.test(e) ? Pi(e, t) : qi(e, t);
4606
+ return uu(e) ? (n) => fr(e, t, n) : fn.test(e) ? Pi(e, t) : qi(e, t);
4605
4607
  }
4606
4608
  const Ni = (e, t) => {
4607
4609
  const n = [...e], r = n.length, o = e.map((a, s) => Li(a, t[s]));
@@ -4620,7 +4622,7 @@ const Ni = (e, t) => {
4620
4622
  return n;
4621
4623
  };
4622
4624
  };
4623
- function vo(e) {
4625
+ function bo(e) {
4624
4626
  const t = zi.parse(e), n = t.length;
4625
4627
  let r = 0, o = 0, a = 0;
4626
4628
  for (let s = 0; s < n; s++)
@@ -4628,14 +4630,14 @@ function vo(e) {
4628
4630
  return { parsed: t, numNumbers: r, numRGB: o, numHSL: a };
4629
4631
  }
4630
4632
  const qi = (e, t) => {
4631
- const n = zi.createTransformer(t), r = vo(e), o = vo(t);
4633
+ const n = zi.createTransformer(t), r = bo(e), o = bo(t);
4632
4634
  return r.numHSL === o.numHSL && r.numRGB === o.numRGB && r.numNumbers >= o.numNumbers ? Ti(Ni(r.parsed, o.parsed), n) : (Di(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), (s) => `${s > 0 ? t : e}`);
4633
4635
  }, pu = (e, t) => (n) => fr(e, t, n);
4634
4636
  function fu(e) {
4635
4637
  if (typeof e == "number")
4636
4638
  return pu;
4637
4639
  if (typeof e == "string")
4638
- return mn.test(e) ? Pi : qi;
4640
+ return fn.test(e) ? Pi : qi;
4639
4641
  if (Array.isArray(e))
4640
4642
  return Ni;
4641
4643
  if (typeof e == "object")
@@ -4732,7 +4734,7 @@ function _u(e) {
4732
4734
  return a !== n.length - 1 && s.push(/* @__PURE__ */ i("br", {})), s;
4733
4735
  }).flat().filter((o) => o !== void 0);
4734
4736
  }
4735
- function kn(e) {
4737
+ function Mn(e) {
4736
4738
  return _u(e);
4737
4739
  }
4738
4740
  function jn(e, t, n) {
@@ -4741,13 +4743,13 @@ function jn(e, t, n) {
4741
4743
  var d;
4742
4744
  const s = o.exec(a);
4743
4745
  if (!s)
4744
- return kn(a);
4746
+ return Mn(a);
4745
4747
  const l = r[s[1]];
4746
4748
  if (!l)
4747
- return kn(a);
4749
+ return Mn(a);
4748
4750
  const c = (d = s[2]) != null ? d : "";
4749
4751
  return /* @__PURE__ */ g(re, {
4750
- children: [l, kn(c)]
4752
+ children: [l, Mn(c)]
4751
4753
  });
4752
4754
  });
4753
4755
  }
@@ -4785,7 +4787,7 @@ const vr = {
4785
4787
  variables: [],
4786
4788
  reference_lines: []
4787
4789
  };
4788
- ge.use([sn, Gs, Ko, vt, bt, yt, it]);
4790
+ ge.use([an, Gs, Zo, vt, bt, yt, it]);
4789
4791
  function Du(e, t, n) {
4790
4792
  const r = t.reduce((o, a) => {
4791
4793
  const s = hr(a, n);
@@ -5018,7 +5020,7 @@ function ku({
5018
5020
  control: e,
5019
5021
  render: ({
5020
5022
  field: o
5021
- }) => /* @__PURE__ */ i(pn, {
5023
+ }) => /* @__PURE__ */ i(gn, {
5022
5024
  data: r,
5023
5025
  withStyle: !1,
5024
5026
  ...o
@@ -5053,7 +5055,7 @@ function Fu({
5053
5055
  }), s = t("variables"), l = r.map((d, u) => ({
5054
5056
  ...d,
5055
5057
  ...s[u]
5056
- })), c = () => o(gn());
5058
+ })), c = () => o(dn());
5057
5059
  return /* @__PURE__ */ g(R, {
5058
5060
  children: [l.map((d, u) => /* @__PURE__ */ i(ku, {
5059
5061
  control: e,
@@ -5088,7 +5090,7 @@ function $u({
5088
5090
  Z(() => {
5089
5091
  d(o);
5090
5092
  }, [o]), l(["x_axis", "y_axis", "reference_lines", "color"]);
5091
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
5093
+ const u = c(), p = L(() => !we(u, t), [u, t]);
5092
5094
  return /* @__PURE__ */ i(R, {
5093
5095
  mt: "md",
5094
5096
  spacing: "xs",
@@ -5250,7 +5252,7 @@ function $u({
5250
5252
  })
5251
5253
  });
5252
5254
  }
5253
- class Eu extends we {
5255
+ class Eu extends Se {
5254
5256
  constructor() {
5255
5257
  super(...arguments);
5256
5258
  F(this, "VERSION", 1);
@@ -5396,7 +5398,7 @@ function Nu({ x_axis_data_key: e }, {
5396
5398
  return h.data = p.map((v) => v[t]), h;
5397
5399
  const b = Ee(p, a);
5398
5400
  return Object.entries(b).map(([v, S]) => {
5399
- const M = zo(h);
5401
+ const M = Po(h);
5400
5402
  return M.data = Pu(u, S, e, t), M.name = v, M.color = void 0, M;
5401
5403
  });
5402
5404
  }
@@ -5543,9 +5545,9 @@ const br = {
5543
5545
  reference_lines: [],
5544
5546
  reference_areas: []
5545
5547
  };
5546
- ge.use([sn, Zo, ei, ti, vt, bt, yt, it, Ko, js]);
5547
- ge.registerTransform(ni.regression);
5548
- function bo(e) {
5548
+ ge.use([an, ei, ti, ni, vt, bt, yt, it, Zo, js]);
5549
+ ge.registerTransform(ri.regression);
5550
+ function yo(e) {
5549
5551
  return e.trim().length > 0;
5550
5552
  }
5551
5553
  function Uu({
@@ -5575,10 +5577,10 @@ function Yu({
5575
5577
  } = e.viewport, {
5576
5578
  ref: s,
5577
5579
  height: l
5578
- } = Pn(), {
5580
+ } = zn(), {
5579
5581
  ref: c,
5580
5582
  height: d
5581
- } = Pn(), u = w.useMemo(() => {
5583
+ } = zn(), u = w.useMemo(() => {
5582
5584
  const {
5583
5585
  stats: {
5584
5586
  templates: f,
@@ -5591,7 +5593,7 @@ function Yu({
5591
5593
  };
5592
5594
  }, [n, r]), p = Math.max(0, a - l - d);
5593
5595
  return /* @__PURE__ */ g(G, {
5594
- children: [bo(n.stats.templates.top) && /* @__PURE__ */ i(C, {
5596
+ children: [yo(n.stats.templates.top) && /* @__PURE__ */ i(C, {
5595
5597
  ref: s,
5596
5598
  align: "left",
5597
5599
  size: "xs",
@@ -5602,7 +5604,7 @@ function Yu({
5602
5604
  height: p,
5603
5605
  data: r,
5604
5606
  conf: n
5605
- }), bo(n.stats.templates.bottom) && /* @__PURE__ */ i(C, {
5607
+ }), yo(n.stats.templates.bottom) && /* @__PURE__ */ i(C, {
5606
5608
  ref: c,
5607
5609
  align: "left",
5608
5610
  size: "xs",
@@ -6356,7 +6358,7 @@ function dd({
6356
6358
  children: [/* @__PURE__ */ i(C, {
6357
6359
  size: "sm",
6358
6360
  children: "Size"
6359
- }), /* @__PURE__ */ i(Mo, {
6361
+ }), /* @__PURE__ */ i(ko, {
6360
6362
  min: 1,
6361
6363
  max: 10,
6362
6364
  marks: ud,
@@ -6657,7 +6659,7 @@ function md({
6657
6659
  control: e,
6658
6660
  render: ({
6659
6661
  field: o
6660
- }) => /* @__PURE__ */ i(pn, {
6662
+ }) => /* @__PURE__ */ i(gn, {
6661
6663
  data: r,
6662
6664
  ...o
6663
6665
  })
@@ -6693,7 +6695,7 @@ function hd({
6693
6695
  const s = t("stats.variables"), l = r.map((d, u) => ({
6694
6696
  ...d,
6695
6697
  ...s[u]
6696
- })), c = () => o(gn());
6698
+ })), c = () => o(dn());
6697
6699
  return /* @__PURE__ */ g(R, {
6698
6700
  children: [/* @__PURE__ */ g(R, {
6699
6701
  spacing: 0,
@@ -6759,7 +6761,7 @@ function vd({
6759
6761
  control: e,
6760
6762
  render: ({
6761
6763
  field: o
6762
- }) => /* @__PURE__ */ i(pn, {
6764
+ }) => /* @__PURE__ */ i(gn, {
6763
6765
  data: r,
6764
6766
  withStyle: !1,
6765
6767
  ...o
@@ -6794,7 +6796,7 @@ function bd({
6794
6796
  }), s = t("variables"), l = r.map((d, u) => ({
6795
6797
  ...d,
6796
6798
  ...s[u]
6797
- })), c = () => o(gn());
6799
+ })), c = () => o(dn());
6798
6800
  return /* @__PURE__ */ g(R, {
6799
6801
  children: [l.map((d, u) => /* @__PURE__ */ i(vd, {
6800
6802
  control: e,
@@ -7105,7 +7107,7 @@ function Id({
7105
7107
  set: n
7106
7108
  } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, br), [t]), a = L(() => Dd(o), [o]);
7107
7109
  Z(() => {
7108
- !Ce(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7110
+ !we(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7109
7111
  }, [o, a]);
7110
7112
  const {
7111
7113
  control: s,
@@ -7119,7 +7121,7 @@ function Id({
7119
7121
  Z(() => {
7120
7122
  u(a);
7121
7123
  }, [a]);
7122
- const p = d(), f = L(() => !Ce(p, o), [p, o]);
7124
+ const p = d(), f = L(() => !we(p, o), [p, o]);
7123
7125
  return /* @__PURE__ */ i(R, {
7124
7126
  mt: "md",
7125
7127
  spacing: "xs",
@@ -7258,7 +7260,7 @@ function Id({
7258
7260
  })
7259
7261
  });
7260
7262
  }
7261
- class Vd extends we {
7263
+ class Vd extends Se {
7262
7264
  constructor() {
7263
7265
  super(...arguments);
7264
7266
  F(this, "VERSION", 1);
@@ -7316,7 +7318,7 @@ function Fd(e) {
7316
7318
  });
7317
7319
  return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
7318
7320
  }
7319
- ge.use([Zo, ei, sn, vt, bt, yt, it]);
7321
+ ge.use([ei, ti, an, vt, bt, yt, it]);
7320
7322
  function $d({
7321
7323
  context: e
7322
7324
  }) {
@@ -7437,7 +7439,7 @@ function Ed({
7437
7439
  Z(() => {
7438
7440
  d(o);
7439
7441
  }, [o]), l(["x_axis", "data_key", "bar", "line"]);
7440
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
7442
+ const u = c(), p = L(() => !we(u, t), [u, t]);
7441
7443
  return /* @__PURE__ */ i(R, {
7442
7444
  mt: "md",
7443
7445
  spacing: "xs",
@@ -7579,7 +7581,7 @@ function Ed({
7579
7581
  })
7580
7582
  });
7581
7583
  }
7582
- class Ad extends we {
7584
+ class Ad extends Se {
7583
7585
  constructor() {
7584
7586
  super(...arguments);
7585
7587
  F(this, "VERSION", 1);
@@ -7655,12 +7657,12 @@ function Pd({
7655
7657
  series: {
7656
7658
  labelLayout: function(u) {
7657
7659
  const p = u.labelRect.x < r / 2, f = u.labelLinePoints;
7658
- return Ao(f, [2, 0], p ? u.labelRect.x : u.labelRect.x + u.labelRect.width), {
7660
+ return Oo(f, [2, 0], p ? u.labelRect.x : u.labelRect.x + u.labelRect.width), {
7659
7661
  labelLinePoints: f
7660
7662
  };
7661
7663
  }
7662
7664
  }
7663
- }), [r]), d = Po({}, zd, c, {
7665
+ }), [r]), d = To({}, zd, c, {
7664
7666
  series: {
7665
7667
  data: l
7666
7668
  }
@@ -7740,7 +7742,7 @@ function Td({
7740
7742
  })
7741
7743
  });
7742
7744
  }
7743
- class Ld extends we {
7745
+ class Ld extends Se {
7744
7746
  constructor() {
7745
7747
  super(...arguments);
7746
7748
  F(this, "VERSION", 1);
@@ -7897,7 +7899,7 @@ function Hd({
7897
7899
  width: n,
7898
7900
  height: r
7899
7901
  } = e.viewport, o = e.data, a = L(() => Bd(We({}, t, wr), o), [t, o]);
7900
- return !n || !r || !t || To(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(G, {
7902
+ return !n || !r || !t || Lo(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(G, {
7901
7903
  children: /* @__PURE__ */ i(at, {
7902
7904
  echarts: ge,
7903
7905
  option: a,
@@ -8065,7 +8067,7 @@ function Qd({
8065
8067
  series_name_key: s
8066
8068
  }), [a, s]);
8067
8069
  Z(() => {
8068
- !Ce(o, l) && r(l);
8070
+ !we(o, l) && r(l);
8069
8071
  }, [o, l]);
8070
8072
  const {
8071
8073
  control: c,
@@ -8077,9 +8079,9 @@ function Qd({
8077
8079
  defaultValues: l
8078
8080
  });
8079
8081
  Z(() => {
8080
- Ce(p(), l) || f(l);
8082
+ we(p(), l) || f(l);
8081
8083
  }, [o]), u(["series_name_key"]);
8082
- const h = p(), b = L(() => !Ce(h, o), [h, o]);
8084
+ const h = p(), b = L(() => !we(h, o), [h, o]);
8083
8085
  return /* @__PURE__ */ i(R, {
8084
8086
  mt: "md",
8085
8087
  spacing: "xs",
@@ -8130,7 +8132,7 @@ function Qd({
8130
8132
  })
8131
8133
  });
8132
8134
  }
8133
- class Jd extends we {
8135
+ class Jd extends Se {
8134
8136
  constructor() {
8135
8137
  super(...arguments);
8136
8138
  F(this, "VERSION", 1);
@@ -8411,8 +8413,8 @@ const Sr = {
8411
8413
  y_axis_data_key: "value"
8412
8414
  }
8413
8415
  };
8414
- ge.use([sn, ti, vt, bt, yt, it]);
8415
- ge.registerTransform(ni.regression);
8416
+ ge.use([an, ni, vt, bt, yt, it]);
8417
+ ge.registerTransform(ri.regression);
8416
8418
  function rg({
8417
8419
  context: e
8418
8420
  }) {
@@ -8614,7 +8616,7 @@ function ag({
8614
8616
  Z(() => {
8615
8617
  d(o);
8616
8618
  }, [o]), l(["x_axis", "y_axis", "regression"]);
8617
- const u = c(), p = L(() => !Ce(u, t), [u, t]);
8619
+ const u = c(), p = L(() => !we(u, t), [u, t]);
8618
8620
  return /* @__PURE__ */ i(R, {
8619
8621
  mt: "md",
8620
8622
  spacing: "xs",
@@ -8712,7 +8714,7 @@ function ag({
8712
8714
  })
8713
8715
  });
8714
8716
  }
8715
- class sg extends we {
8717
+ class sg extends Se {
8716
8718
  constructor() {
8717
8719
  super(...arguments);
8718
8720
  F(this, "VERSION", 1);
@@ -8746,10 +8748,10 @@ function cg({
8746
8748
  }) {
8747
8749
  const {
8748
8750
  panel: t
8749
- } = he(), {
8751
+ } = ve(), {
8750
8752
  value: n
8751
8753
  } = U(e.instanceData, "config"), r = n == null ? void 0 : n.content, o = Bi(r);
8752
- return n != null && n.content ? /* @__PURE__ */ i(Jo, {
8754
+ return n != null && n.content ? /* @__PURE__ */ i(Xo, {
8753
8755
  id: t.id,
8754
8756
  ref: o,
8755
8757
  readOnly: !0,
@@ -8783,7 +8785,7 @@ function ug({
8783
8785
  defaultValues: r
8784
8786
  });
8785
8787
  s("content");
8786
- const c = l(), d = L(() => !Ce(c, t), [c, t]), u = Bi(t == null ? void 0 : t.content);
8788
+ const c = l(), d = L(() => !we(c, t), [c, t]), u = Bi(t == null ? void 0 : t.content);
8787
8789
  return /* @__PURE__ */ i(R, {
8788
8790
  mt: "md",
8789
8791
  spacing: "xs",
@@ -8814,18 +8816,18 @@ function ug({
8814
8816
  control: o,
8815
8817
  render: ({
8816
8818
  field: p
8817
- }) => /* @__PURE__ */ i(Qo, {
8819
+ }) => /* @__PURE__ */ i(Jo, {
8818
8820
  ref: u,
8819
8821
  sx: {
8820
8822
  flex: 1
8821
8823
  },
8822
- ...rn(p, "ref")
8824
+ ...nn(p, "ref")
8823
8825
  })
8824
8826
  })]
8825
8827
  })
8826
8828
  });
8827
8829
  }
8828
- class dg extends we {
8830
+ class dg extends Se {
8829
8831
  constructor() {
8830
8832
  super(...arguments);
8831
8833
  F(this, "VERSION", 1);
@@ -8902,7 +8904,7 @@ function pg(e) {
8902
8904
  ]
8903
8905
  };
8904
8906
  }
8905
- class fg extends we {
8907
+ class fg extends Se {
8906
8908
  constructor() {
8907
8909
  super(...arguments);
8908
8910
  F(this, "VERSION", 1);
@@ -8948,7 +8950,7 @@ function hg({
8948
8950
  control: e,
8949
8951
  render: ({
8950
8952
  field: o
8951
- }) => /* @__PURE__ */ i(pn, {
8953
+ }) => /* @__PURE__ */ i(gn, {
8952
8954
  data: r,
8953
8955
  ...o
8954
8956
  })
@@ -8982,7 +8984,7 @@ function vg({
8982
8984
  }), s = t("variables"), l = r.map((d, u) => ({
8983
8985
  ...d,
8984
8986
  ...s[u]
8985
- })), c = () => o(gn());
8987
+ })), c = () => o(dn());
8986
8988
  return /* @__PURE__ */ g(R, {
8987
8989
  children: [l.map((d, u) => /* @__PURE__ */ i(hg, {
8988
8990
  control: e,
@@ -9126,7 +9128,7 @@ function Cg({
9126
9128
  value: Number(p[s])
9127
9129
  })), [n, a, s]), c = L(() => {
9128
9130
  var p, f;
9129
- return (f = (p = Oo(l, (h) => h.value)) == null ? void 0 : p.value) != null ? f : 1;
9131
+ return (f = (p = zo(l, (h) => h.value)) == null ? void 0 : p.value) != null ? f : 1;
9130
9132
  }, [l]), d = L(() => ({
9131
9133
  series: {
9132
9134
  label: {
@@ -9136,7 +9138,7 @@ function Cg({
9136
9138
  }) => f / c < 0.2 ? " " : p
9137
9139
  }
9138
9140
  }
9139
- }), [c]), u = Po({}, xg, d, {
9141
+ }), [c]), u = To({}, xg, d, {
9140
9142
  series: {
9141
9143
  data: l
9142
9144
  }
@@ -9216,7 +9218,7 @@ function wg({
9216
9218
  })
9217
9219
  });
9218
9220
  }
9219
- class Sg extends we {
9221
+ class Sg extends Se {
9220
9222
  constructor() {
9221
9223
  super(...arguments);
9222
9224
  F(this, "VERSION", 1);
@@ -9237,7 +9239,7 @@ const _g = {
9237
9239
  createConfig: () => Dr
9238
9240
  };
9239
9241
  var Ke = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e))(Ke || {});
9240
- const Kt = {
9242
+ const Xt = {
9241
9243
  columns: [],
9242
9244
  fontSize: "1rem",
9243
9245
  highlightOnHover: !1,
@@ -9268,7 +9270,7 @@ function Ve(e, t) {
9268
9270
  }));
9269
9271
  };
9270
9272
  }
9271
- function Zt(e) {
9273
+ function Kt(e) {
9272
9274
  return e instanceof Function;
9273
9275
  }
9274
9276
  function Rg(e, t) {
@@ -9353,7 +9355,7 @@ function Dg(e, t, n, r) {
9353
9355
  };
9354
9356
  return p = e._features.reduce((f, h) => Object.assign(f, h.createColumn == null ? void 0 : h.createColumn(p, e)), p), p;
9355
9357
  }
9356
- function yo(e, t, n) {
9358
+ function xo(e, t, n) {
9357
9359
  var r;
9358
9360
  let a = {
9359
9361
  id: (r = n.id) != null ? r : t.id,
@@ -9545,10 +9547,10 @@ function Ht(e, t, n, r) {
9545
9547
  if (k && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), M && (M == null ? void 0 : M.column) === z)
9546
9548
  M.subHeaders.push(S);
9547
9549
  else {
9548
- const Y = yo(n, z, {
9550
+ const Y = xo(n, z, {
9549
9551
  id: [r, h, z.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
9550
9552
  isPlaceholder: N,
9551
- placeholderId: N ? "" + v.filter((pe) => pe.column === z).length : void 0,
9553
+ placeholderId: N ? "" + v.filter((fe) => fe.column === z).length : void 0,
9552
9554
  depth: h,
9553
9555
  index: v.length
9554
9556
  });
@@ -9556,7 +9558,7 @@ function Ht(e, t, n, r) {
9556
9558
  }
9557
9559
  b.headers.push(S), S.headerGroup = b;
9558
9560
  }), c.push(b), h > 0 && d(v, h - 1);
9559
- }, u = t.map((f, h) => yo(n, f, {
9561
+ }, u = t.map((f, h) => xo(n, f, {
9560
9562
  depth: s,
9561
9563
  index: h
9562
9564
  }));
@@ -9582,7 +9584,7 @@ const Wt = {
9582
9584
  size: 150,
9583
9585
  minSize: 20,
9584
9586
  maxSize: Number.MAX_SAFE_INTEGER
9585
- }, Fn = () => ({
9587
+ }, kn = () => ({
9586
9588
  startOffset: null,
9587
9589
  startSize: null,
9588
9590
  deltaOffset: null,
@@ -9593,7 +9595,7 @@ const Wt = {
9593
9595
  getDefaultColumnDef: () => Wt,
9594
9596
  getInitialState: (e) => ({
9595
9597
  columnSizing: {},
9596
- columnSizingInfo: Fn(),
9598
+ columnSizingInfo: kn(),
9597
9599
  ...e
9598
9600
  }),
9599
9601
  getDefaultOptions: (e) => ({
@@ -9653,9 +9655,9 @@ const Wt = {
9653
9655
  getResizeHandler: () => {
9654
9656
  const n = t.getColumn(e.column.id), r = n.getCanResize();
9655
9657
  return (o) => {
9656
- if (!r || (o.persist == null || o.persist(), $n(o) && o.touches && o.touches.length > 1))
9658
+ if (!r || (o.persist == null || o.persist(), Fn(o) && o.touches && o.touches.length > 1))
9657
9659
  return;
9658
- const a = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l = $n(o) ? Math.round(o.touches[0].clientX) : o.clientX, c = (h, b) => {
9660
+ const a = e.getSize(), s = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], l = Fn(o) ? Math.round(o.touches[0].clientX) : o.clientX, c = (h, b) => {
9659
9661
  if (typeof b != "number")
9660
9662
  return;
9661
9663
  let v = {};
@@ -9663,8 +9665,8 @@ const Wt = {
9663
9665
  var M, k;
9664
9666
  const z = b - ((M = S == null ? void 0 : S.startOffset) != null ? M : 0), N = Math.max(z / ((k = S == null ? void 0 : S.startSize) != null ? k : 0), -0.999999);
9665
9667
  return S.columnSizingStart.forEach((Y) => {
9666
- let [pe, ce] = Y;
9667
- v[pe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
9668
+ let [fe, ce] = Y;
9669
+ v[fe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
9668
9670
  }), {
9669
9671
  ...S,
9670
9672
  deltaOffset: z,
@@ -9692,7 +9694,7 @@ const Wt = {
9692
9694
  }, f = Mg() ? {
9693
9695
  passive: !1
9694
9696
  } : !1;
9695
- $n(o) || (document.addEventListener("mousemove", p.moveHandler, f), document.addEventListener("mouseup", p.upHandler, f)), t.setColumnSizingInfo((h) => ({
9697
+ Fn(o) || (document.addEventListener("mousemove", p.moveHandler, f), document.addEventListener("mouseup", p.upHandler, f)), t.setColumnSizingInfo((h) => ({
9696
9698
  ...h,
9697
9699
  startOffset: l,
9698
9700
  startSize: a,
@@ -9713,7 +9715,7 @@ const Wt = {
9713
9715
  },
9714
9716
  resetHeaderSizeInfo: (t) => {
9715
9717
  var n;
9716
- e.setColumnSizingInfo(t ? Fn() : (n = e.initialState.columnSizingInfo) != null ? n : Fn());
9718
+ e.setColumnSizingInfo(t ? kn() : (n = e.initialState.columnSizingInfo) != null ? n : kn());
9717
9719
  },
9718
9720
  getTotalSize: () => {
9719
9721
  var t, n;
@@ -9751,7 +9753,7 @@ function Mg() {
9751
9753
  }
9752
9754
  return Ut = e, Ut;
9753
9755
  }
9754
- function $n(e) {
9756
+ function Fn(e) {
9755
9757
  return e.type === "touchstart";
9756
9758
  }
9757
9759
  const kg = {
@@ -9942,7 +9944,7 @@ const Fg = {
9942
9944
  },
9943
9945
  getFilterFn: () => {
9944
9946
  var n, r;
9945
- return Zt(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (n = (r = t.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? n : je[e.columnDef.filterFn];
9947
+ return Kt(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (n = (r = t.options.filterFns) == null ? void 0 : r[e.columnDef.filterFn]) != null ? n : je[e.columnDef.filterFn];
9946
9948
  },
9947
9949
  getCanFilter: () => {
9948
9950
  var n, r, o;
@@ -9964,7 +9966,7 @@ const Fg = {
9964
9966
  setFilterValue: (n) => {
9965
9967
  t.setColumnFilters((r) => {
9966
9968
  const o = e.getFilterFn(), a = r == null ? void 0 : r.find((u) => u.id === e.id), s = Ze(n, a ? a.value : void 0);
9967
- if (xo(o, s, e)) {
9969
+ if (Co(o, s, e)) {
9968
9970
  var l;
9969
9971
  return (l = r == null ? void 0 : r.filter((u) => u.id !== e.id)) != null ? l : [];
9970
9972
  }
@@ -10000,7 +10002,7 @@ const Fg = {
10000
10002
  const {
10001
10003
  globalFilterFn: r
10002
10004
  } = e.options;
10003
- return Zt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[r]) != null ? t : je[r];
10005
+ return Kt(r) ? r : r === "auto" ? e.getGlobalAutoFilterFn() : (t = (n = e.options.filterFns) == null ? void 0 : n[r]) != null ? t : je[r];
10004
10006
  },
10005
10007
  setColumnFilters: (t) => {
10006
10008
  const n = e.getAllLeafColumns(), r = (o) => {
@@ -10009,7 +10011,7 @@ const Fg = {
10009
10011
  const l = n.find((c) => c.id === s.id);
10010
10012
  if (l) {
10011
10013
  const c = l.getFilterFn();
10012
- if (xo(c, s.value, l))
10014
+ if (Co(c, s.value, l))
10013
10015
  return !1;
10014
10016
  }
10015
10017
  return !0;
@@ -10040,7 +10042,7 @@ const Fg = {
10040
10042
  }
10041
10043
  })
10042
10044
  };
10043
- function xo(e, t, n) {
10045
+ function Co(e, t, n) {
10044
10046
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
10045
10047
  }
10046
10048
  const $g = (e, t, n) => n.reduce((r, o) => {
@@ -10079,7 +10081,7 @@ const $g = (e, t, n) => n.reduce((r, o) => {
10079
10081
  let a = o.getValue(e);
10080
10082
  typeof a == "number" && (n = Math.min(n, a), r = Math.max(r, a));
10081
10083
  }), (n + r) / 2;
10082
- }, Tg = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), Lg = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Ng = (e, t) => t.length, En = {
10084
+ }, Tg = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), Lg = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Ng = (e, t) => t.length, $n = {
10083
10085
  sum: $g,
10084
10086
  min: Eg,
10085
10087
  max: Ag,
@@ -10130,15 +10132,15 @@ const $g = (e, t, n) => n.reduce((r, o) => {
10130
10132
  getAutoAggregationFn: () => {
10131
10133
  const n = t.getCoreRowModel().flatRows[0], r = n == null ? void 0 : n.getValue(e.id);
10132
10134
  if (typeof r == "number")
10133
- return En.sum;
10135
+ return $n.sum;
10134
10136
  if (Object.prototype.toString.call(r) === "[object Date]")
10135
- return En.extent;
10137
+ return $n.extent;
10136
10138
  },
10137
10139
  getAggregationFn: () => {
10138
10140
  var n, r;
10139
10141
  if (!e)
10140
10142
  throw new Error();
10141
- return Zt(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (n = (r = t.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? n : En[e.columnDef.aggregationFn];
10143
+ return Kt(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (n = (r = t.options.aggregationFns) == null ? void 0 : r[e.columnDef.aggregationFn]) != null ? n : $n[e.columnDef.aggregationFn];
10142
10144
  }
10143
10145
  }),
10144
10146
  createTable: (e) => ({
@@ -10200,14 +10202,14 @@ const Gg = {
10200
10202
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
10201
10203
  })
10202
10204
  })
10203
- }, Gn = 0, Bn = 10, An = () => ({
10205
+ }, Gn = 0, Bn = 10, En = () => ({
10204
10206
  pageIndex: Gn,
10205
10207
  pageSize: Bn
10206
10208
  }), Bg = {
10207
10209
  getInitialState: (e) => ({
10208
10210
  ...e,
10209
10211
  pagination: {
10210
- ...An(),
10212
+ ...En(),
10211
10213
  ...e == null ? void 0 : e.pagination
10212
10214
  }
10213
10215
  }),
@@ -10239,7 +10241,7 @@ const Gg = {
10239
10241
  },
10240
10242
  resetPagination: (r) => {
10241
10243
  var o;
10242
- e.setPagination(r ? An() : (o = e.initialState.pagination) != null ? o : An());
10244
+ e.setPagination(r ? En() : (o = e.initialState.pagination) != null ? o : En());
10243
10245
  },
10244
10246
  setPageIndex: (r) => {
10245
10247
  e.setPagination((o) => {
@@ -10304,12 +10306,12 @@ const Gg = {
10304
10306
  }
10305
10307
  };
10306
10308
  }
10307
- }, On = () => ({
10309
+ }, An = () => ({
10308
10310
  left: [],
10309
10311
  right: []
10310
10312
  }), Hg = {
10311
10313
  getInitialState: (e) => ({
10312
- columnPinning: On(),
10314
+ columnPinning: An(),
10313
10315
  ...e
10314
10316
  }),
10315
10317
  getDefaultOptions: (e) => ({
@@ -10393,7 +10395,7 @@ const Gg = {
10393
10395
  setColumnPinning: (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t),
10394
10396
  resetColumnPinning: (t) => {
10395
10397
  var n, r;
10396
- return e.setColumnPinning(t ? On() : (n = (r = e.initialState) == null ? void 0 : r.columnPinning) != null ? n : On());
10398
+ return e.setColumnPinning(t ? An() : (n = (r = e.initialState) == null ? void 0 : r.columnPinning) != null ? n : An());
10397
10399
  },
10398
10400
  getIsSomeColumnsPinned: (t) => {
10399
10401
  var n;
@@ -10468,7 +10470,7 @@ const Gg = {
10468
10470
  }), o;
10469
10471
  }),
10470
10472
  getPreSelectedRowModel: () => e.getCoreRowModel(),
10471
- getSelectedRowModel: P(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? zn(e, n) : {
10473
+ getSelectedRowModel: P(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? On(e, n) : {
10472
10474
  rows: [],
10473
10475
  flatRows: [],
10474
10476
  rowsById: {}
@@ -10479,7 +10481,7 @@ const Gg = {
10479
10481
  return (t = e.options.debugAll) != null ? t : e.options.debugTable;
10480
10482
  }
10481
10483
  }),
10482
- getFilteredSelectedRowModel: P(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? zn(e, n) : {
10484
+ getFilteredSelectedRowModel: P(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? On(e, n) : {
10483
10485
  rows: [],
10484
10486
  flatRows: [],
10485
10487
  rowsById: {}
@@ -10490,7 +10492,7 @@ const Gg = {
10490
10492
  return (t = e.options.debugAll) != null ? t : e.options.debugTable;
10491
10493
  }
10492
10494
  }),
10493
- getGroupedSelectedRowModel: P(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? zn(e, n) : {
10495
+ getGroupedSelectedRowModel: P(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? On(e, n) : {
10494
10496
  rows: [],
10495
10497
  flatRows: [],
10496
10498
  rowsById: {}
@@ -10553,13 +10555,13 @@ const Gg = {
10553
10555
  const {
10554
10556
  rowSelection: n
10555
10557
  } = t.getState();
10556
- return Co(e, n) === "some";
10558
+ return wo(e, n) === "some";
10557
10559
  },
10558
10560
  getIsAllSubRowsSelected: () => {
10559
10561
  const {
10560
10562
  rowSelection: n
10561
10563
  } = t.getState();
10562
- return Co(e, n) === "all";
10564
+ return wo(e, n) === "all";
10563
10565
  },
10564
10566
  getCanSelect: () => {
10565
10567
  var n;
@@ -10586,7 +10588,7 @@ const Gg = {
10586
10588
  const a = r.getRow(t);
10587
10589
  n ? (a.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), a.getCanSelect() && (e[t] = !0)) : delete e[t], (o = a.subRows) != null && o.length && a.getCanSelectSubRows() && a.subRows.forEach((s) => Hn(e, s.id, n, r));
10588
10590
  };
10589
- function zn(e, t) {
10591
+ function On(e, t) {
10590
10592
  const n = e.getState().rowSelection, r = [], o = {}, a = function(s, l) {
10591
10593
  return s.map((c) => {
10592
10594
  var d;
@@ -10608,7 +10610,7 @@ function Vr(e, t) {
10608
10610
  var n;
10609
10611
  return (n = t[e.id]) != null ? n : !1;
10610
10612
  }
10611
- function Co(e, t, n) {
10613
+ function wo(e, t, n) {
10612
10614
  if (e.subRows && e.subRows.length) {
10613
10615
  let r = !0, o = !1;
10614
10616
  return e.subRows.forEach((a) => {
@@ -10687,7 +10689,7 @@ const _t = {
10687
10689
  var n, r;
10688
10690
  if (!e)
10689
10691
  throw new Error();
10690
- return Zt(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n : _t[e.columnDef.sortingFn];
10692
+ return Kt(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (n = (r = t.options.sortingFns) == null ? void 0 : r[e.columnDef.sortingFn]) != null ? n : _t[e.columnDef.sortingFn];
10691
10693
  },
10692
10694
  toggleSorting: (n, r) => {
10693
10695
  const o = e.getNextSortingOrder(), a = typeof n < "u" && n !== null;
@@ -10833,12 +10835,12 @@ const _t = {
10833
10835
  }
10834
10836
  };
10835
10837
  }
10836
- }, wo = [Ig, ep, Gg, Hg, Fg, Zg, qg, kg, Bg, Wg, Vg];
10838
+ }, So = [Ig, ep, Gg, Hg, Fg, Zg, qg, kg, Bg, Wg, Vg];
10837
10839
  function tp(e) {
10838
10840
  var t;
10839
10841
  (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
10840
10842
  let n = {
10841
- _features: wo
10843
+ _features: So
10842
10844
  };
10843
10845
  const r = n._features.reduce((u, p) => Object.assign(u, p.getDefaultOptions == null ? void 0 : p.getDefaultOptions(n)), {}), o = (u) => n.options.mergeOptions ? n.options.mergeOptions(r, u) : {
10844
10846
  ...r,
@@ -10855,7 +10857,7 @@ function tp(e) {
10855
10857
  const l = [];
10856
10858
  let c = !1;
10857
10859
  const d = {
10858
- _features: wo,
10860
+ _features: So,
10859
10861
  options: {
10860
10862
  ...r,
10861
10863
  ...e
@@ -11165,15 +11167,15 @@ const dp = ({
11165
11167
  vizManager: e,
11166
11168
  instance: t
11167
11169
  }) => Be(
11168
- () => new Er(t, e.resolveComponent(t.type), vn),
11170
+ () => new Er(t, e.resolveComponent(t.type), hn),
11169
11171
  [t, e]
11170
11172
  ), gp = (e, t) => {
11171
- const [n, r] = me([]);
11173
+ const [n, r] = he([]);
11172
11174
  return Z(() => e.watchTriggerSnapshotList(
11173
11175
  (o) => r(o.filter((a) => a.schemaRef === t))
11174
11176
  ), []), n;
11175
11177
  };
11176
- function So(e, t, n) {
11178
+ function _o(e, t, n) {
11177
11179
  return Math.min(Math.max(e, t), n);
11178
11180
  }
11179
11181
  class pp {
@@ -11192,10 +11194,10 @@ class pp {
11192
11194
  }
11193
11195
  getStepFunctionForValue(t) {
11194
11196
  let n = ps(this.steps, (r) => r.from <= t);
11195
- return n = So(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
11197
+ return n = _o(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
11196
11198
  }
11197
11199
  mapValue(t) {
11198
- return So(this.getStepFunctionForValue(t)(t), 0, 100);
11200
+ return _o(this.getStepFunctionForValue(t)(t), 0, 100);
11199
11201
  }
11200
11202
  }
11201
11203
  const fp = ({
@@ -11255,7 +11257,7 @@ function ta(e) {
11255
11257
  })) : [];
11256
11258
  }
11257
11259
  function vp(e) {
11258
- return To(e) ? [] : Object.keys(e[0]).map((t) => ({
11260
+ return Lo(e) ? [] : Object.keys(e[0]).map((t) => ({
11259
11261
  label: t,
11260
11262
  value: t
11261
11263
  }));
@@ -11340,7 +11342,7 @@ function _p(e) {
11340
11342
  color: Sp(t)
11341
11343
  };
11342
11344
  }
11343
- function hn(e) {
11345
+ function mn(e) {
11344
11346
  const t = e.tableCellContext.isClickable(), n = wp({
11345
11347
  clickable: t
11346
11348
  });
@@ -11359,13 +11361,13 @@ function hn(e) {
11359
11361
  });
11360
11362
  }
11361
11363
  function Rp(e) {
11362
- return /* @__PURE__ */ i(hn, {
11364
+ return /* @__PURE__ */ i(mn, {
11363
11365
  ...e,
11364
11366
  children: e.value
11365
11367
  });
11366
11368
  }
11367
11369
  function Dp(e) {
11368
- return /* @__PURE__ */ i(hn, {
11370
+ return /* @__PURE__ */ i(mn, {
11369
11371
  ...e,
11370
11372
  children: e.value
11371
11373
  });
@@ -11374,7 +11376,7 @@ function Ip(e) {
11374
11376
  const t = De(e.value).format({
11375
11377
  thousandSeparated: !0
11376
11378
  });
11377
- return /* @__PURE__ */ i(hn, {
11379
+ return /* @__PURE__ */ i(mn, {
11378
11380
  ...e,
11379
11381
  children: t
11380
11382
  });
@@ -11384,7 +11386,7 @@ function Vp(e) {
11384
11386
  output: "percent",
11385
11387
  mantissa: 3
11386
11388
  });
11387
- return /* @__PURE__ */ i(hn, {
11389
+ return /* @__PURE__ */ i(mn, {
11388
11390
  ...e,
11389
11391
  children: t
11390
11392
  });
@@ -11419,12 +11421,12 @@ function Fp({
11419
11421
  context: e,
11420
11422
  instance: t
11421
11423
  }) {
11422
- var Se, ve, Me;
11423
- const n = (Se = e.data) != null ? Se : [], {
11424
+ var _e, be, Me;
11425
+ const n = (_e = e.data) != null ? _e : [], {
11424
11426
  height: r,
11425
11427
  width: o
11426
11428
  } = e.viewport, {
11427
- value: a = Kt
11429
+ value: a = Xt
11428
11430
  } = U(e.instanceData, "config"), {
11429
11431
  use_raw_columns: s,
11430
11432
  columns: l,
@@ -11441,23 +11443,23 @@ function Fp({
11441
11443
  vizManager: e.vizManager,
11442
11444
  instance: t
11443
11445
  }), h = L(() => {
11444
- const ue = op(), ke = p.map((ye) => ue.accessor(ye.value_field, {
11446
+ const ue = op(), ke = p.map((xe) => ue.accessor(xe.value_field, {
11445
11447
  cell: (Ye) => /* @__PURE__ */ i(Mp, {
11446
11448
  tableCellContext: f(Ye.cell),
11447
11449
  value: Ye.getValue(),
11448
- type: ye.value_type
11450
+ type: xe.value_type
11449
11451
  }),
11450
- header: ye.label,
11452
+ header: xe.label,
11451
11453
  enableSorting: !0,
11452
- meta: ye
11454
+ meta: xe
11453
11455
  }));
11454
11456
  return [ue.display({
11455
11457
  id: "#index",
11456
- cell: (ye) => ye.row.index + 1,
11458
+ cell: (xe) => xe.row.index + 1,
11457
11459
  header: "#",
11458
11460
  size: 10 * (n.length.toString().length + 1)
11459
11461
  }), ...ke];
11460
- }, [p, f]), [b, v] = me([]), S = up({
11462
+ }, [p, f]), [b, v] = he([]), S = up({
11461
11463
  data: n,
11462
11464
  state: {
11463
11465
  sorting: b
@@ -11476,7 +11478,7 @@ function Fp({
11476
11478
  }), {
11477
11479
  virtualItems: N,
11478
11480
  totalSize: Y
11479
- } = z, pe = N.length > 0 && ((ve = N == null ? void 0 : N[0]) == null ? void 0 : ve.start) || 0, ce = N.length > 0 ? Y - (((Me = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : Me.end) || 0) : 0;
11481
+ } = z, fe = N.length > 0 && ((be = N == null ? void 0 : N[0]) == null ? void 0 : be.start) || 0, ce = N.length > 0 ? Y - (((Me = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : Me.end) || 0) : 0;
11480
11482
  return /* @__PURE__ */ i("div", {
11481
11483
  ref: k,
11482
11484
  style: {
@@ -11506,18 +11508,18 @@ function Fp({
11506
11508
  }, ke.id))
11507
11509
  }, ue.id))
11508
11510
  }), /* @__PURE__ */ g("tbody", {
11509
- children: [pe > 0 && /* @__PURE__ */ i("tr", {
11511
+ children: [fe > 0 && /* @__PURE__ */ i("tr", {
11510
11512
  children: /* @__PURE__ */ i("td", {
11511
11513
  style: {
11512
- height: `${pe}px`
11514
+ height: `${fe}px`
11513
11515
  }
11514
11516
  })
11515
11517
  }), N.map((ue) => {
11516
11518
  const ke = M[ue.index];
11517
11519
  return /* @__PURE__ */ i("tr", {
11518
- children: ke.getVisibleCells().map((be) => /* @__PURE__ */ i("td", {
11519
- children: ea(be.column.columnDef.cell, be.getContext())
11520
- }, be.id))
11520
+ children: ke.getVisibleCells().map((ye) => /* @__PURE__ */ i("td", {
11521
+ children: ea(ye.column.columnDef.cell, ye.getContext())
11522
+ }, ye.id))
11521
11523
  }, ke.id);
11522
11524
  }), ce > 0 && /* @__PURE__ */ i("tr", {
11523
11525
  children: /* @__PURE__ */ i("td", {
@@ -11563,7 +11565,7 @@ class $p {
11563
11565
  const t = this.columnConf.cellBackgroundColor;
11564
11566
  if (!t || t === "none")
11565
11567
  return;
11566
- if (Lo(t))
11568
+ if (No(t))
11567
11569
  return t;
11568
11570
  const n = +this.cell.getValue();
11569
11571
  if (isFinite(n)) {
@@ -11608,10 +11610,10 @@ class Ap {
11608
11610
  F(this, "interpolation");
11609
11611
  F(this, "onChange");
11610
11612
  tr(this, {
11611
- steps: Xo
11613
+ steps: Ko
11612
11614
  }, {
11613
11615
  deep: !1
11614
- }), nr(() => an(this.steps), () => {
11616
+ }), nr(() => on(this.steps), () => {
11615
11617
  this.notifyStepChange();
11616
11618
  });
11617
11619
  }
@@ -11644,7 +11646,7 @@ function Op(e) {
11644
11646
  value: o
11645
11647
  } = e, {
11646
11648
  classes: a
11647
- } = na(), [s, l] = me(o), [c, {
11649
+ } = na(), [s, l] = he(o), [c, {
11648
11650
  setTrue: d,
11649
11651
  setFalse: u
11650
11652
  }] = $t(!1), p = r % 2 === 1, f = p && o != null, h = !p && o != null, b = `map ${o} to color ${r}`, v = () => {
@@ -11666,12 +11668,12 @@ function Op(e) {
11666
11668
  size: "sm",
11667
11669
  className: "palette-value--up palette-value",
11668
11670
  children: M
11669
- }), /* @__PURE__ */ g(Dn, {
11671
+ }), /* @__PURE__ */ g(Rn, {
11670
11672
  width: 200,
11671
11673
  trapFocus: !0,
11672
11674
  opened: c,
11673
11675
  onClose: u,
11674
- children: [/* @__PURE__ */ i(Dn.Target, {
11676
+ children: [/* @__PURE__ */ i(Rn.Target, {
11675
11677
  children: /* @__PURE__ */ i("div", {
11676
11678
  "data-testid": "palette-item-target",
11677
11679
  className: "palette-item",
@@ -11681,7 +11683,7 @@ function Op(e) {
11681
11683
  backgroundColor: n
11682
11684
  }
11683
11685
  })
11684
- }), /* @__PURE__ */ i(Dn.Dropdown, {
11686
+ }), /* @__PURE__ */ i(Rn.Dropdown, {
11685
11687
  children: /* @__PURE__ */ g(R, {
11686
11688
  children: [/* @__PURE__ */ i(ze, {
11687
11689
  size: "xs",
@@ -11743,7 +11745,7 @@ const zp = I(({
11743
11745
  value: t,
11744
11746
  onChange: n,
11745
11747
  colorManager: r
11746
- } = e, o = r.getColorInterpolations(), [a, s] = me(t), l = r.decodeInterpolation(a.interpolation) || o[0], [c, {
11748
+ } = e, o = r.getColorInterpolations(), [a, s] = he(t), l = r.decodeInterpolation(a.interpolation) || o[0], [c, {
11747
11749
  setTrue: d,
11748
11750
  setFalse: u
11749
11751
  }] = $t(), p = o.map((S) => ({
@@ -11758,7 +11760,7 @@ const zp = I(({
11758
11760
  }));
11759
11761
  }
11760
11762
  const h = () => {
11761
- u(), n == null || n(an(a));
11763
+ u(), n == null || n(on(a));
11762
11764
  };
11763
11765
  function b(S) {
11764
11766
  s((M) => ({
@@ -11812,14 +11814,14 @@ const zp = I(({
11812
11814
  to: 100
11813
11815
  }];
11814
11816
  function ra(e) {
11815
- return e ? Lo(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
11817
+ return e ? No(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
11816
11818
  }
11817
11819
  function qp(e, t) {
11818
11820
  var n;
11819
11821
  return ra(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
11820
11822
  }
11821
11823
  function jp(e, t) {
11822
- return Eo(t) ? t : {
11824
+ return Ao(t) ? t : {
11823
11825
  steps: Np,
11824
11826
  interpolation: e.encodeColor(e.getColorInterpolations()[0])
11825
11827
  };
@@ -11827,7 +11829,7 @@ function jp(e, t) {
11827
11829
  const Gp = (e) => {
11828
11830
  const {
11829
11831
  colorManager: t
11830
- } = He(Ne), [n, r] = me(ra(e.value)), [o, a] = me(qp(t, e.value)), s = io(o), [l, c] = me(jp(t, e.value)), d = io(l);
11832
+ } = He(Ne), [n, r] = he(ra(e.value)), [o, a] = he(qp(t, e.value)), s = io(o), [l, c] = he(jp(t, e.value)), d = io(l);
11831
11833
  return /* @__PURE__ */ g(y, {
11832
11834
  align: "end",
11833
11835
  children: [/* @__PURE__ */ i(T, {
@@ -11878,10 +11880,10 @@ function Wp({
11878
11880
  value: t,
11879
11881
  set: n
11880
11882
  } = U(e.instanceData, "config"), r = rr({
11881
- initialValues: Kt
11883
+ initialValues: Xt
11882
11884
  });
11883
11885
  Z(() => {
11884
- const s = le({}, t, r.values, Kt);
11886
+ const s = le({}, t, r.values, Xt);
11885
11887
  t && r.setValues(s);
11886
11888
  }, [t]);
11887
11889
  const o = e.data || [], a = () => r.insertListItem("columns", {
@@ -12078,7 +12080,7 @@ function Wp({
12078
12080
  })
12079
12081
  });
12080
12082
  }
12081
- class Up extends we {
12083
+ class Up extends Se {
12082
12084
  constructor() {
12083
12085
  super(...arguments);
12084
12086
  F(this, "VERSION", 1);
@@ -12094,7 +12096,7 @@ const Un = {
12094
12096
  createConfig() {
12095
12097
  return {
12096
12098
  version: 1,
12097
- config: zo(Kt)
12099
+ config: Po(Xt)
12098
12100
  };
12099
12101
  },
12100
12102
  displayName: "Table",
@@ -12116,7 +12118,7 @@ async function Yp(e, t, n, r = {}) {
12116
12118
  params: r.params,
12117
12119
  headers: o
12118
12120
  };
12119
- return a.data = r.string ? JSON.stringify(n) : n, Wo(a).then((s) => s.data).catch((s) => Promise.reject(s));
12121
+ return a.data = r.string ? JSON.stringify(n) : n, Uo(a).then((s) => s.data).catch((s) => Promise.reject(s));
12120
12122
  }
12121
12123
  const Qp = ({ baseURL: e, payload: t }) => async () => e ? await Yp(e, "/expert/v2/scenario", t, {}) : {};
12122
12124
  var Oe = /* @__PURE__ */ ((e) => (e.dev_load = "dev_load", e.personal_report = "personal_report", e.performance = "performance", e.comparison = "comparison", e))(Oe || {}), ee = /* @__PURE__ */ ((e) => (e.productivity = "productivity", e.pareto = "pareto", e.heatmap = "heatmap", e.skills = "skills", e.commits = "commits", e.quality = "quality", e.quality_history = "quality_history", e.efficiency = "efficiency", e))(ee || {});
@@ -12454,7 +12456,7 @@ function vf({
12454
12456
  position: "relative",
12455
12457
  height: o
12456
12458
  },
12457
- children: /* @__PURE__ */ i(tn, {
12459
+ children: /* @__PURE__ */ i(en, {
12458
12460
  visible: !0
12459
12461
  })
12460
12462
  }) : Array.isArray(s.errors) && s.errors.length > 0 ? /* @__PURE__ */ i(Pe, {
@@ -12723,7 +12725,7 @@ function If({
12723
12725
  })]
12724
12726
  });
12725
12727
  }
12726
- class Vf extends we {
12728
+ class Vf extends Se {
12727
12729
  constructor() {
12728
12730
  super(...arguments);
12729
12731
  F(this, "VERSION", 1);
@@ -12818,7 +12820,7 @@ const Mf = {
12818
12820
  vizManager: e,
12819
12821
  colorManager: t
12820
12822
  };
12821
- }, Ne = Fo($r());
12823
+ }, Ne = $o($r());
12822
12824
  try {
12823
12825
  Rt.install(ia());
12824
12826
  } catch {
@@ -12827,7 +12829,7 @@ function $f(e, t) {
12827
12829
  const {
12828
12830
  value: n,
12829
12831
  set: r
12830
- } = U(e.operation.operationData, "config"), [o, a] = me(le({}, n, t)), s = async () => {
12832
+ } = U(e.operation.operationData, "config"), [o, a] = he(le({}, n, t)), s = async () => {
12831
12833
  await r(o);
12832
12834
  };
12833
12835
  return Z(() => {
@@ -12883,10 +12885,10 @@ async function Of(e, t) {
12883
12885
  const {
12884
12886
  urlTemplate: n,
12885
12887
  openInNewTab: r
12886
- } = await t.operationData.getItem("config"), a = No(n || "")(Af(e));
12888
+ } = await t.operationData.getItem("config"), a = qo(n || "")(Af(e));
12887
12889
  window.open(a, r ? "_blank" : "_self", "noopener");
12888
12890
  }
12889
- class zf extends we {
12891
+ class zf extends Se {
12890
12892
  constructor() {
12891
12893
  super(...arguments);
12892
12894
  F(this, "VERSION", 1);
@@ -12927,7 +12929,7 @@ function Lf(e) {
12927
12929
  });
12928
12930
  }
12929
12931
  async function Nf(e, t) {
12930
- const n = await t.operationData.getItem("config"), r = No(n.template || "");
12932
+ const n = await t.operationData.getItem("config"), r = qo(n.template || "");
12931
12933
  console.log("run with payload", e), console.log(r(e));
12932
12934
  }
12933
12935
  const qf = {
@@ -13027,9 +13029,9 @@ const Yf = {
13027
13029
  id: "builtin:op:set_filter_values",
13028
13030
  configRender: Wf,
13029
13031
  run: Uf
13030
- }, vn = [qf, Pf, Bf, Yf];
13032
+ }, hn = [qf, Pf, Bf, Yf];
13031
13033
  class Qf {
13032
- constructor(t, n = vn) {
13034
+ constructor(t, n = hn) {
13033
13035
  F(this, "attachments");
13034
13036
  this.operations = n;
13035
13037
  const r = async (o) => {
@@ -13100,7 +13102,7 @@ class Qf {
13100
13102
  return await this.attachments.getInstance(t);
13101
13103
  }
13102
13104
  }
13103
- const _o = "__TRIGGERS";
13105
+ const Ro = "__TRIGGERS";
13104
13106
  class Jf {
13105
13107
  constructor(t, n) {
13106
13108
  F(this, "attachments");
@@ -13113,17 +13115,17 @@ class Jf {
13113
13115
  triggerData: new pt(o, "data")
13114
13116
  };
13115
13117
  };
13116
- this.attachments = new ur(t, _o, r);
13118
+ this.attachments = new ur(t, Ro, r);
13117
13119
  }
13118
13120
  watchTriggerSnapshotList(t) {
13119
13121
  return this.instance.instanceData.watchItem(
13120
- _o,
13122
+ Ro,
13121
13123
  (n) => {
13122
- const r = $o(n).map(
13124
+ const r = Eo(n).map(
13123
13125
  (o) => ({
13124
13126
  id: Q(o, "id"),
13125
13127
  schemaRef: Q(o, "schemaRef"),
13126
- config: an(Q(o, "data.config"))
13128
+ config: on(Q(o, "data.config"))
13127
13129
  })
13128
13130
  );
13129
13131
  t(r);
@@ -13225,7 +13227,7 @@ class Er {
13225
13227
  }
13226
13228
  }
13227
13229
  function Xf(e, t) {
13228
- const [n, r] = me([]);
13230
+ const [n, r] = he([]);
13229
13231
  return Et(async () => {
13230
13232
  const o = await e.getInteractionList();
13231
13233
  r(o);
@@ -13266,7 +13268,7 @@ const Kf = I(({
13266
13268
  }
13267
13269
  return null;
13268
13270
  }), Zf = (e) => {
13269
- const [t, n] = me(0), {
13271
+ const [t, n] = he(0), {
13270
13272
  interactionManager: r,
13271
13273
  instance: o,
13272
13274
  sampleData: a,
@@ -13298,9 +13300,9 @@ const Kf = I(({
13298
13300
  const {
13299
13301
  panel: e,
13300
13302
  data: t
13301
- } = he(), n = e.viz, {
13303
+ } = ve(), n = e.viz, {
13302
13304
  vizManager: r
13303
- } = He(Ne), o = e.json, a = Be(() => r.getOrCreateInstance(o), [r, n.type]), s = Be(() => new Er(a, r.resolveComponent(n.type), vn), [a, n.type]);
13305
+ } = He(Ne), o = e.json, a = Be(() => r.getOrCreateInstance(o), [r, n.type]), s = Be(() => new Er(a, r.resolveComponent(n.type), hn), [a, n.type]);
13304
13306
  return Z(() => a.instanceData.watchItem(
13305
13307
  null,
13306
13308
  vs((l) => {
@@ -13324,7 +13326,7 @@ const Kf = I(({
13324
13326
  }, nm = I(() => {
13325
13327
  const {
13326
13328
  panel: e
13327
- } = he(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
13329
+ } = ve(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
13328
13330
  !r || e.setDescription(t);
13329
13331
  }, [r, t]);
13330
13332
  return /* @__PURE__ */ g(R, {
@@ -13348,7 +13350,7 @@ const Kf = I(({
13348
13350
  size: 20
13349
13351
  })
13350
13352
  })]
13351
- }), /* @__PURE__ */ i(Jo, {
13353
+ }), /* @__PURE__ */ i(Xo, {
13352
13354
  value: t,
13353
13355
  onChange: n,
13354
13356
  sx: {
@@ -13361,7 +13363,7 @@ const Kf = I(({
13361
13363
  }), rm = I(() => {
13362
13364
  const {
13363
13365
  panel: e
13364
- } = he(), {
13366
+ } = ve(), {
13365
13367
  style: t
13366
13368
  } = e;
13367
13369
  return /* @__PURE__ */ i(re, {
@@ -13379,7 +13381,7 @@ const Kf = I(({
13379
13381
  border: t
13380
13382
  }
13381
13383
  }
13382
- } = he();
13384
+ } = ve();
13383
13385
  return /* @__PURE__ */ i(ft, {
13384
13386
  children: /* @__PURE__ */ g(R, {
13385
13387
  mx: "auto",
@@ -13429,10 +13431,10 @@ const Kf = I(({
13429
13431
  }), im = I(() => {
13430
13432
  const {
13431
13433
  panel: e
13432
- } = he(), {
13434
+ } = ve(), {
13433
13435
  title: t,
13434
13436
  setTitle: n
13435
- } = e, [r, o] = Yo(t), a = t !== r, s = w.useCallback(() => {
13437
+ } = e, [r, o] = Qo(t), a = t !== r, s = w.useCallback(() => {
13436
13438
  !a || n(r);
13437
13439
  }, [a, r]);
13438
13440
  return /* @__PURE__ */ i(E, {
@@ -13503,7 +13505,7 @@ const sm = I(function() {
13503
13505
  queryID: n,
13504
13506
  setQueryID: r
13505
13507
  }
13506
- } = he(), o = w.useMemo(() => t.queries.current.map((a) => ({
13508
+ } = ve(), o = w.useMemo(() => t.queries.current.map((a) => ({
13507
13509
  value: a.id,
13508
13510
  label: a.id
13509
13511
  })), [t.queries.current]);
@@ -13526,7 +13528,7 @@ const sm = I(function() {
13526
13528
  flexGrow: 1
13527
13529
  }
13528
13530
  })]
13529
- }), /* @__PURE__ */ i(fi, {
13531
+ }), /* @__PURE__ */ i(mi, {
13530
13532
  id: n
13531
13533
  })]
13532
13534
  });
@@ -13581,14 +13583,14 @@ function sa(e) {
13581
13583
  const n = t.getRequired(de.vizManager), r = n.resolveComponent(e.viz.type);
13582
13584
  return t.createScoped().provideFactory(de.instanceScope.vizInstance, () => n.getOrCreateInstance(e)).provideFactory(de.instanceScope.interactionManager, (o) => {
13583
13585
  const a = o.getRequired(de.instanceScope.vizInstance);
13584
- return new Er(a, r, vn);
13586
+ return new Er(a, r, hn);
13585
13587
  }).provideFactory(de.instanceScope.operationManager, (o) => o.getRequired(de.instanceScope.interactionManager).operationManager).provideFactory(de.instanceScope.triggerManager, (o) => o.getRequired(de.instanceScope.interactionManager).triggerManager).provideFactory(de.instanceScope.migrator, (o) => new lm(o));
13586
13588
  },
13587
13589
  [e.viz.type, e.viz.conf]
13588
13590
  );
13589
13591
  }
13590
13592
  function la(e) {
13591
- const [t, n] = me(!1), r = ai().getRequired(de.instanceScope.migrator);
13593
+ const [t, n] = he(!1), r = si().getRequired(de.instanceScope.migrator);
13592
13594
  return Et(async () => {
13593
13595
  const o = r.status === Yt.notStarted;
13594
13596
  n(r.status === Yt.done), r.status === Yt.notStarted && r.runMigration().then((a) => {
@@ -13599,7 +13601,7 @@ function la(e) {
13599
13601
  }, [r]), t;
13600
13602
  }
13601
13603
  function ca(e, t) {
13602
- const n = ai().getRequired(de.instanceScope.vizInstance);
13604
+ const n = si().getRequired(de.instanceScope.vizInstance);
13603
13605
  return Z(() => n.instanceData.watchItem(null, (r) => {
13604
13606
  e(r);
13605
13607
  }), [e, t.viz.type]), n;
@@ -13611,7 +13613,7 @@ function cm({
13611
13613
  const {
13612
13614
  panel: n
13613
13615
  } = t, r = ca(e, n), o = la(() => {
13614
- on({
13616
+ rn({
13615
13617
  title: `${n.title} - Updated`,
13616
13618
  message: "Your plugin configuration has been migrated to the latest version"
13617
13619
  });
@@ -13630,7 +13632,7 @@ function um(e) {
13630
13632
  setVizConf: n
13631
13633
  } = e;
13632
13634
  return ca(n, t), la(() => {
13633
- on({
13635
+ rn({
13634
13636
  title: `${t.title} - Updated`,
13635
13637
  message: "Your plugin configuration has been migrated to the latest version"
13636
13638
  });
@@ -13652,7 +13654,7 @@ function dm(e, t) {
13652
13654
  queryID: l,
13653
13655
  style: c
13654
13656
  }
13655
- } = he(), d = {
13657
+ } = ve(), d = {
13656
13658
  title: o,
13657
13659
  id: a,
13658
13660
  description: s,
@@ -13662,7 +13664,7 @@ function dm(e, t) {
13662
13664
  style: c.json
13663
13665
  }, u = sa(d);
13664
13666
  try {
13665
- return n.resolveComponent(r.type), /* @__PURE__ */ i(cn, {
13667
+ return n.resolveComponent(r.type), /* @__PURE__ */ i(ln, {
13666
13668
  configure: u,
13667
13669
  children: /* @__PURE__ */ i(um, {
13668
13670
  setVizConf: r.setConf,
@@ -13686,7 +13688,7 @@ const gm = ["richText"], ua = I(function({
13686
13688
  ref: s,
13687
13689
  width: l,
13688
13690
  height: c
13689
- } = Pn(), d = w.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), u = dm(r, {
13691
+ } = zn(), d = w.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), u = dm(r, {
13690
13692
  w: l,
13691
13693
  h: c
13692
13694
  });
@@ -13705,7 +13707,7 @@ const gm = ["richText"], ua = I(function({
13705
13707
  height: t
13706
13708
  },
13707
13709
  ref: s,
13708
- children: /* @__PURE__ */ i(tn, {
13710
+ children: /* @__PURE__ */ i(en, {
13709
13711
  visible: o,
13710
13712
  exitTransitionDuration: 0
13711
13713
  })
@@ -13738,7 +13740,7 @@ const gm = ["richText"], ua = I(function({
13738
13740
  panel: {
13739
13741
  viz: n
13740
13742
  }
13741
- } = he();
13743
+ } = ve();
13742
13744
  return /* @__PURE__ */ i(ua, {
13743
13745
  viz: n,
13744
13746
  data: e,
@@ -13776,7 +13778,7 @@ function hm() {
13776
13778
  id: c,
13777
13779
  style: d
13778
13780
  }
13779
- } = he(), {
13781
+ } = ve(), {
13780
13782
  vizManager: u
13781
13783
  } = He(Ne), p = {
13782
13784
  title: n,
@@ -13791,7 +13793,7 @@ function hm() {
13791
13793
  setTitle: s
13792
13794
  }, h = sa(p);
13793
13795
  try {
13794
- return u.resolveComponent(p.viz.type), /* @__PURE__ */ i(cn, {
13796
+ return u.resolveComponent(p.viz.type), /* @__PURE__ */ i(ln, {
13795
13797
  configure: h,
13796
13798
  children: /* @__PURE__ */ i(cm, {
13797
13799
  setVizConf: t.setConf,
@@ -13811,7 +13813,7 @@ const vm = I(() => {
13811
13813
  panel: {
13812
13814
  viz: t
13813
13815
  }
13814
- } = he(), [n, r] = Yo(t.type), o = t.type !== n, {
13816
+ } = ve(), [n, r] = Qo(t.type), o = t.type !== n, {
13815
13817
  vizManager: a
13816
13818
  } = He(Ne), s = w.useCallback(() => {
13817
13819
  if (!o)
@@ -13827,7 +13829,7 @@ const vm = I(() => {
13827
13829
  }, c = w.useMemo(() => {
13828
13830
  var h;
13829
13831
  return (h = Yn.find((b) => b.value === n)) == null ? void 0 : h.Panel;
13830
- }, [n, Yn]), d = hm(), u = c ? nn(c, {
13832
+ }, [n, Yn]), d = hm(), u = c ? tn(c, {
13831
13833
  data: e,
13832
13834
  conf: t.conf,
13833
13835
  setConf: t.setConf
@@ -13845,7 +13847,7 @@ const vm = I(() => {
13845
13847
  size: 20
13846
13848
  })
13847
13849
  })
13848
- }), p, !p && /* @__PURE__ */ i(Io, {
13850
+ }), p, !p && /* @__PURE__ */ i(Vo, {
13849
13851
  minRows: 20,
13850
13852
  label: "Config",
13851
13853
  value: JSON.stringify(t.conf, null, 2),
@@ -13887,10 +13889,10 @@ const ym = I(function({
13887
13889
  }) {
13888
13890
  const {
13889
13891
  freezeLayout: r
13890
- } = w.useContext(Le), [o, a] = me("Visualization"), {
13892
+ } = w.useContext(Le), [o, a] = he("Visualization"), {
13891
13893
  panel: s,
13892
13894
  loading: l
13893
- } = he(), {
13895
+ } = ve(), {
13894
13896
  id: c,
13895
13897
  title: d
13896
13898
  } = s;
@@ -13906,7 +13908,7 @@ const ym = I(function({
13906
13908
  onDragStart: (u) => {
13907
13909
  u.stopPropagation();
13908
13910
  },
13909
- children: /* @__PURE__ */ i(en, {
13911
+ children: /* @__PURE__ */ i(Zt, {
13910
13912
  sx: {
13911
13913
  height: "90vh",
13912
13914
  maxHeight: "calc(100vh - 185px)",
@@ -13943,7 +13945,7 @@ const ym = I(function({
13943
13945
  }), /* @__PURE__ */ g($.Panel, {
13944
13946
  value: "Data",
13945
13947
  pt: "sm",
13946
- children: [/* @__PURE__ */ i(tn, {
13948
+ children: [/* @__PURE__ */ i(en, {
13947
13949
  visible: l,
13948
13950
  exitTransitionDuration: 0
13949
13951
  }), /* @__PURE__ */ i(sm, {})]
@@ -13970,7 +13972,7 @@ const ym = I(function({
13970
13972
  }) => {
13971
13973
  const t = X(), n = os(), [r, o] = w.useState(!1), a = () => o(!0), s = () => o(!1), {
13972
13974
  panel: l
13973
- } = he(), {
13975
+ } = ve(), {
13974
13976
  id: c,
13975
13977
  query: d
13976
13978
  } = l, {
@@ -14000,9 +14002,9 @@ const ym = I(function({
14000
14002
  right: 0,
14001
14003
  zIndex: 300
14002
14004
  },
14003
- children: /* @__PURE__ */ g(xe, {
14005
+ children: /* @__PURE__ */ g(Ce, {
14004
14006
  withinPortal: !0,
14005
- children: [/* @__PURE__ */ i(xe.Target, {
14007
+ children: [/* @__PURE__ */ i(Ce.Target, {
14006
14008
  children: /* @__PURE__ */ i(G, {
14007
14009
  className: "panel-dropdown-target",
14008
14010
  sx: {
@@ -14010,20 +14012,20 @@ const ym = I(function({
14010
14012
  height: "25px"
14011
14013
  }
14012
14014
  })
14013
- }), /* @__PURE__ */ g(xe.Dropdown, {
14014
- children: [/* @__PURE__ */ i(xe.Item, {
14015
+ }), /* @__PURE__ */ g(Ce.Dropdown, {
14016
+ children: [/* @__PURE__ */ i(Ce.Item, {
14015
14017
  onClick: p,
14016
- icon: /* @__PURE__ */ i(jo, {
14018
+ icon: /* @__PURE__ */ i(Go, {
14017
14019
  size: 14
14018
14020
  }),
14019
14021
  children: "Refresh"
14020
- }), /* @__PURE__ */ i(xe.Item, {
14022
+ }), /* @__PURE__ */ i(Ce.Item, {
14021
14023
  onClick: () => t.queries.downloadDataByQueryID(d),
14022
- icon: /* @__PURE__ */ i(Ho, {
14024
+ icon: /* @__PURE__ */ i(Wo, {
14023
14025
  size: 14
14024
14026
  }),
14025
14027
  children: "Download Data"
14026
- }), !h && /* @__PURE__ */ i(xe.Item, {
14028
+ }), !h && /* @__PURE__ */ i(Ce.Item, {
14027
14029
  onClick: S,
14028
14030
  icon: /* @__PURE__ */ i(Ds, {
14029
14031
  size: 14
@@ -14033,19 +14035,19 @@ const ym = I(function({
14033
14035
  children: [/* @__PURE__ */ i(te, {
14034
14036
  label: "Edit",
14035
14037
  labelPosition: "center"
14036
- }), /* @__PURE__ */ i(xe.Item, {
14038
+ }), /* @__PURE__ */ i(Ce.Item, {
14037
14039
  onClick: a,
14038
- icon: /* @__PURE__ */ i(Bo, {
14040
+ icon: /* @__PURE__ */ i(Ho, {
14039
14041
  size: 14
14040
14042
  }),
14041
14043
  children: "Settings"
14042
- }), /* @__PURE__ */ i(xe.Item, {
14044
+ }), /* @__PURE__ */ i(Ce.Item, {
14043
14045
  onClick: b,
14044
14046
  icon: /* @__PURE__ */ i(Is, {
14045
14047
  size: 14
14046
14048
  }),
14047
14049
  children: "Duplicate"
14048
- }), /* @__PURE__ */ i(xe.Item, {
14050
+ }), /* @__PURE__ */ i(Ce.Item, {
14049
14051
  color: "red",
14050
14052
  onClick: v,
14051
14053
  icon: /* @__PURE__ */ i(ie, {
@@ -14065,7 +14067,7 @@ const ym = I(function({
14065
14067
  const Cm = I(function() {
14066
14068
  const {
14067
14069
  panel: t
14068
- } = he(), {
14070
+ } = ve(), {
14069
14071
  title: n
14070
14072
  } = t;
14071
14073
  return n ? /* @__PURE__ */ i(y, {
@@ -14089,7 +14091,7 @@ function wm(e) {
14089
14091
  }
14090
14092
  const Sm = {
14091
14093
  border: "1px solid #e9ecef"
14092
- }, Ro = {
14094
+ }, Do = {
14093
14095
  border: "1px dashed transparent",
14094
14096
  transition: "border-color 300ms ease",
14095
14097
  "&:hover": {
@@ -14097,7 +14099,7 @@ const Sm = {
14097
14099
  }
14098
14100
  };
14099
14101
  function _m(e, t, n) {
14100
- return e.style.border.enabled ? Sm : n || t ? Ro : {
14102
+ return e.style.border.enabled ? Sm : n || t ? Do : {
14101
14103
  border: "1px dashed transparent"
14102
14104
  };
14103
14105
  }
@@ -14252,7 +14254,7 @@ const Rm = w.forwardRef(({
14252
14254
  children: /* @__PURE__ */ i(ks, {
14253
14255
  size: 16
14254
14256
  })
14255
- })), Im = oi(ri), Vm = I(function({
14257
+ })), Im = ii(oi), Vm = I(function({
14256
14258
  view: t,
14257
14259
  className: n = "layout",
14258
14260
  rowHeight: r = 10,
@@ -14290,7 +14292,7 @@ const Rm = w.forwardRef(({
14290
14292
  })]
14291
14293
  }, l.id))
14292
14294
  });
14293
- }), Mm = oi(ri), km = I(function({
14295
+ }), Mm = ii(oi), km = I(function({
14294
14296
  view: t,
14295
14297
  className: n = "layout",
14296
14298
  rowHeight: r = 10
@@ -14400,7 +14402,7 @@ const Rm = w.forwardRef(({
14400
14402
  className: "dashboard-sticky-parent",
14401
14403
  children: [!l && /* @__PURE__ */ i(G, {
14402
14404
  className: "dashboard-sticky-area",
14403
- children: /* @__PURE__ */ i(gi, {
14405
+ children: /* @__PURE__ */ i(pi, {
14404
14406
  view: t
14405
14407
  })
14406
14408
  }), !l && /* @__PURE__ */ i(Vm, {
@@ -14496,7 +14498,7 @@ const Rm = w.forwardRef(({
14496
14498
  className: "dashboard-sticky-parent",
14497
14499
  children: [!s && /* @__PURE__ */ i(G, {
14498
14500
  className: "dashboard-sticky-area",
14499
- children: /* @__PURE__ */ i(gi, {
14501
+ children: /* @__PURE__ */ i(pi, {
14500
14502
  view: t
14501
14503
  })
14502
14504
  }), !s && /* @__PURE__ */ i(km, {
@@ -14507,14 +14509,17 @@ const Rm = w.forwardRef(({
14507
14509
  })
14508
14510
  });
14509
14511
  }), fa = x.model("FilterConfigModel_Checkbox", {
14512
+ _name: "checkbox",
14510
14513
  default_value: x.boolean
14511
14514
  }).actions((e) => ({
14512
14515
  setDefaultValue(t) {
14513
14516
  e.default_value = t;
14514
14517
  }
14515
14518
  })), Lm = () => fa.create({
14519
+ _name: "checkbox",
14516
14520
  default_value: !1
14517
14521
  }), Nm = x.model("FilterConfigModel_DateRange", {
14522
+ _name: "date-range",
14518
14523
  required: x.boolean,
14519
14524
  inputFormat: x.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
14520
14525
  default_value: x.optional(x.array(x.union(x.string, x.null)), [null, null]),
@@ -14552,6 +14557,7 @@ const Rm = w.forwardRef(({
14552
14557
  };
14553
14558
  }
14554
14559
  }), qm = () => ma.create({
14560
+ _name: "date-range",
14555
14561
  required: !1,
14556
14562
  inputFormat: "YYYY-MM-DD",
14557
14563
  clearable: !1,
@@ -14586,6 +14592,7 @@ const Rm = w.forwardRef(({
14586
14592
  })), va = x.compose(
14587
14593
  "FilterConfigModel_MultiSelect",
14588
14594
  x.model({
14595
+ _name: "multi-select",
14589
14596
  default_value: x.optional(x.array(x.string), [])
14590
14597
  }),
14591
14598
  ha
@@ -14594,6 +14601,7 @@ const Rm = w.forwardRef(({
14594
14601
  e.default_value = ht(t);
14595
14602
  }
14596
14603
  })), Gm = () => va.create({
14604
+ _name: "multi-select",
14597
14605
  default_value: [],
14598
14606
  static_options: [],
14599
14607
  options_query_id: "",
@@ -14601,6 +14609,7 @@ const Rm = w.forwardRef(({
14601
14609
  }), ba = x.compose(
14602
14610
  "FilterConfigModel_Select",
14603
14611
  x.model({
14612
+ _name: "select",
14604
14613
  default_value: x.string,
14605
14614
  required: x.boolean
14606
14615
  }),
@@ -14613,31 +14622,43 @@ const Rm = w.forwardRef(({
14613
14622
  e.default_value = t;
14614
14623
  }
14615
14624
  })), Bm = () => ba.create({
14625
+ _name: "select",
14616
14626
  required: !1,
14617
14627
  default_value: "",
14618
14628
  static_options: [],
14619
14629
  options_query_id: "",
14620
14630
  select_first_by_default: !1
14621
- }), Do = x.model("FilterModel", {
14631
+ }), Io = x.model("FilterModel", {
14622
14632
  id: x.identifier,
14623
14633
  key: x.string,
14624
14634
  label: x.string,
14625
14635
  order: x.number,
14626
14636
  visibleInViewsIDs: x.array(x.string),
14627
14637
  type: x.enumeration("DashboardFilterType", [
14628
- Re.Select,
14629
- Re.MultiSelect,
14630
- Re.TextInput,
14631
- Re.Checkbox,
14632
- Re.DateRange
14638
+ pe.Select,
14639
+ pe.MultiSelect,
14640
+ pe.TextInput,
14641
+ pe.Checkbox,
14642
+ pe.DateRange
14633
14643
  ]),
14634
- config: x.union(
14635
- ba,
14636
- va,
14637
- vi,
14638
- fa,
14639
- ma
14640
- )
14644
+ config: x.union({
14645
+ dispatcher: (e) => {
14646
+ switch (e._name) {
14647
+ case pe.Select:
14648
+ return ba;
14649
+ case pe.MultiSelect:
14650
+ return va;
14651
+ case pe.TextInput:
14652
+ return Tn;
14653
+ case pe.Checkbox:
14654
+ return fa;
14655
+ case pe.DateRange:
14656
+ return ma;
14657
+ default:
14658
+ return console.error(`[filter model] invalid filter.config._name: ${e._name}`), Tn;
14659
+ }
14660
+ }
14661
+ })
14641
14662
  }).views((e) => ({
14642
14663
  get plainDefaultValue() {
14643
14664
  const t = e.config.default_value;
@@ -14655,19 +14676,19 @@ const Rm = w.forwardRef(({
14655
14676
  },
14656
14677
  setType(t) {
14657
14678
  switch (t) {
14658
- case Re.Select:
14679
+ case pe.Select:
14659
14680
  e.config = Bm();
14660
14681
  break;
14661
- case Re.MultiSelect:
14682
+ case pe.MultiSelect:
14662
14683
  e.config = Gm();
14663
14684
  break;
14664
- case Re.TextInput:
14685
+ case pe.TextInput:
14665
14686
  e.config = bi();
14666
14687
  break;
14667
- case Re.Checkbox:
14688
+ case pe.Checkbox:
14668
14689
  e.config = Lm();
14669
14690
  break;
14670
- case Re.DateRange:
14691
+ case pe.DateRange:
14671
14692
  e.config = qm();
14672
14693
  break;
14673
14694
  }
@@ -14705,7 +14726,7 @@ function Hm(e, t, n) {
14705
14726
  );
14706
14727
  }
14707
14728
  const Wm = x.model("FiltersModel", {
14708
- current: x.optional(x.array(Do), []),
14729
+ current: x.optional(x.array(Io), []),
14709
14730
  values: x.optional(x.frozen(), {}),
14710
14731
  previewValues: x.optional(x.frozen(), {})
14711
14732
  }).views((e) => ({
@@ -14759,7 +14780,7 @@ const Wm = x.model("FiltersModel", {
14759
14780
  }
14760
14781
  })).actions((e) => {
14761
14782
  function t() {
14762
- Hm(e.current, Do, (n, r) => {
14783
+ Hm(e.current, Io, (n, r) => {
14763
14784
  if (n === "setType") {
14764
14785
  const o = ya(r.config.default_value, r.config);
14765
14786
  e.setValueByKey(r.key, o), e.updatePreviewValues({
@@ -14782,7 +14803,7 @@ function Um(e) {
14782
14803
  };
14783
14804
  }
14784
14805
  const Ym = x.model("QueryModel", {
14785
- id: x.identifier,
14806
+ id: x.string,
14786
14807
  type: x.enumeration("DataSourceType", [et.Postgresql, et.MySQL, et.HTTP]),
14787
14808
  key: x.string,
14788
14809
  sql: x.string
@@ -14794,7 +14815,7 @@ const Ym = x.model("QueryModel", {
14794
14815
  const { id: t, type: n, key: r, sql: o } = e;
14795
14816
  return { id: t, type: n, key: r, sql: o };
14796
14817
  }
14797
- })), Qn = x.compose(
14818
+ })), Qm = x.compose(
14798
14819
  "QueryModel",
14799
14820
  Ym,
14800
14821
  x.model({
@@ -14804,8 +14825,8 @@ const Ym = x.model("QueryModel", {
14804
14825
  })
14805
14826
  ).views((e) => ({
14806
14827
  get formattedSQL() {
14807
- const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = Jt(e).payloadForSQL;
14808
- return mi(e.sql, t, n, r, o);
14828
+ const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = so(e).payloadForSQL;
14829
+ return hi(e.sql, t, n, r, o);
14809
14830
  }
14810
14831
  })).views((e) => ({
14811
14832
  get json() {
@@ -14834,7 +14855,7 @@ const Ym = x.model("QueryModel", {
14834
14855
  if (!!e.valid) {
14835
14856
  e.state = "loading";
14836
14857
  try {
14837
- const t = e.id, { context: n, mock_context: r, sqlSnippets: o, filterValues: a } = Jt(e).payloadForSQL;
14858
+ const t = e.id, { context: n, mock_context: r, sqlSnippets: o, filterValues: a } = so(e).payloadForSQL;
14838
14859
  e.data = yield* zs(
14839
14860
  bl({
14840
14861
  context: n,
@@ -14864,8 +14885,8 @@ const Ym = x.model("QueryModel", {
14864
14885
  })
14865
14886
  );
14866
14887
  }
14867
- })), Qm = x.model("QueriesModel", {
14868
- current: x.optional(x.array(Qn), [])
14888
+ })), Jm = x.model("QueriesModel", {
14889
+ current: x.optional(x.array(Qm), [])
14869
14890
  }).views((e) => ({
14870
14891
  get firstID() {
14871
14892
  if (e.current.length !== 0)
@@ -14909,7 +14930,7 @@ const Ym = x.model("QueryModel", {
14909
14930
  console.log("[downloadDataByQueryID] query not found");
14910
14931
  return;
14911
14932
  }
14912
- const { id: n, data: r } = t, o = pi(r);
14933
+ const { id: n, data: r } = t, o = fi(r);
14913
14934
  ll(n, o);
14914
14935
  },
14915
14936
  refetchDataByQueryID(t) {
@@ -14924,7 +14945,7 @@ const Ym = x.model("QueryModel", {
14924
14945
  const n = e.current.find((r) => r.id === t);
14925
14946
  n && (Ps(n), e.current.remove(n));
14926
14947
  }
14927
- })), Jm = x.model("SQLSnippetModel", {
14948
+ })), Xm = x.model("SQLSnippetModel", {
14928
14949
  key: x.string,
14929
14950
  value: x.string
14930
14951
  }).views((e) => ({
@@ -14942,8 +14963,8 @@ const Ym = x.model("QueryModel", {
14942
14963
  setValue(t) {
14943
14964
  e.value = t;
14944
14965
  }
14945
- })), Xm = x.model("SQLSnippetsModel", {
14946
- current: x.optional(x.array(Jm), [])
14966
+ })), Km = x.model("SQLSnippetsModel", {
14967
+ current: x.optional(x.array(Xm), [])
14947
14968
  }).views((e) => ({
14948
14969
  get json() {
14949
14970
  return e.current.map((t) => t.json);
@@ -14964,7 +14985,7 @@ const Ym = x.model("QueryModel", {
14964
14985
  replaceByIndex(t, n) {
14965
14986
  e.current.splice(t, 1, n);
14966
14987
  }
14967
- })), Km = x.model("ContextModel", {
14988
+ })), Zm = x.model("ContextModel", {
14968
14989
  current: x.optional(x.frozen(), {})
14969
14990
  }).views((e) => ({
14970
14991
  get keys() {
@@ -14983,7 +15004,7 @@ const Ym = x.model("QueryModel", {
14983
15004
  set(t, n) {
14984
15005
  e.current[t] = n;
14985
15006
  }
14986
- })), Zm = x.model("MockContextModel", {
15007
+ })), eh = x.model("MockContextModel", {
14987
15008
  current: x.optional(x.frozen(), {})
14988
15009
  }).views((e) => ({
14989
15010
  get keys() {
@@ -15002,7 +15023,7 @@ const Ym = x.model("QueryModel", {
15002
15023
  set(t, n) {
15003
15024
  e.current[t] = n;
15004
15025
  }
15005
- })), eh = x.model("PanelLayoutModel", {
15026
+ })), th = x.model("PanelLayoutModel", {
15006
15027
  x: x.number,
15007
15028
  y: x.number,
15008
15029
  w: x.number,
@@ -15026,7 +15047,7 @@ const Ym = x.model("QueryModel", {
15026
15047
  const { x: n, y: r, w: o, h: a, moved: s } = t;
15027
15048
  e.x = n, e.y = r, e.w = o, e.h = a, e.moved = !!s, e.static = !!t.static;
15028
15049
  }
15029
- })), th = x.model("PanelStyleBorderModel", {
15050
+ })), nh = x.model("PanelStyleBorderModel", {
15030
15051
  enabled: x.boolean
15031
15052
  }).views((e) => ({
15032
15053
  get json() {
@@ -15039,8 +15060,8 @@ const Ym = x.model("QueryModel", {
15039
15060
  setEnabled(t) {
15040
15061
  e.enabled = t;
15041
15062
  }
15042
- })), nh = x.model("PanelStyleModel", {
15043
- border: th
15063
+ })), rh = x.model("PanelStyleModel", {
15064
+ border: nh
15044
15065
  }).views((e) => ({
15045
15066
  get json() {
15046
15067
  const { border: t } = e;
@@ -15048,7 +15069,7 @@ const Ym = x.model("QueryModel", {
15048
15069
  border: t.json
15049
15070
  };
15050
15071
  }
15051
- })).actions((e) => ({})), rh = x.model("PanelVizModel", {
15072
+ })).actions((e) => ({})), oh = x.model("PanelVizModel", {
15052
15073
  type: x.string,
15053
15074
  conf: x.frozen()
15054
15075
  }).views((e) => ({
@@ -15065,17 +15086,17 @@ const Ym = x.model("QueryModel", {
15065
15086
  setConf(t) {
15066
15087
  e.conf = t;
15067
15088
  }
15068
- })), oh = x.model({
15089
+ })), ih = x.model({
15069
15090
  id: x.string,
15070
15091
  title: x.string,
15071
15092
  description: x.string,
15072
- layout: eh,
15093
+ layout: th,
15073
15094
  queryID: x.string,
15074
- viz: rh,
15075
- style: nh
15095
+ viz: oh,
15096
+ style: rh
15076
15097
  }).views((e) => ({
15077
15098
  get query() {
15078
- return so(Qn, Jt(e), e.queryID);
15099
+ return lo(e, Qn).queries.findByID(e.queryID);
15079
15100
  },
15080
15101
  get json() {
15081
15102
  const { id: t, title: n, description: r, queryID: o } = e;
@@ -15100,13 +15121,13 @@ const Ym = x.model("QueryModel", {
15100
15121
  e.description = t;
15101
15122
  },
15102
15123
  setQueryID(t) {
15103
- if (so(Qn, Jt(e), t))
15124
+ if (lo(e, Qn).queries.findByID(t))
15104
15125
  e.queryID = t;
15105
15126
  else
15106
15127
  throw new Error(`Query with id ${t} does not exist`);
15107
15128
  }
15108
- })), ih = x.model("PanelsModel", {
15109
- list: x.optional(x.array(oh), [])
15129
+ })), ah = x.model("PanelsModel", {
15130
+ list: x.optional(x.array(ih), [])
15110
15131
  }).views((e) => ({
15111
15132
  get json() {
15112
15133
  return e.list.map((t) => t.json);
@@ -15122,7 +15143,7 @@ const Ym = x.model("QueryModel", {
15122
15143
  }
15123
15144
  })).actions((e) => ({
15124
15145
  replace(t) {
15125
- e.list = Uo(t);
15146
+ e.list = Yo(t);
15126
15147
  },
15127
15148
  addANewPanel() {
15128
15149
  const t = Ie();
@@ -15178,12 +15199,12 @@ const Ym = x.model("QueryModel", {
15178
15199
  replaceByIndex(t, n) {
15179
15200
  e.list.splice(t, 1, n);
15180
15201
  }
15181
- })), ah = x.model({
15202
+ })), sh = x.model({
15182
15203
  id: x.identifier,
15183
15204
  name: x.string,
15184
15205
  type: x.string,
15185
15206
  config: x.frozen(),
15186
- panels: ih
15207
+ panels: ah
15187
15208
  }).views((e) => ({
15188
15209
  get json() {
15189
15210
  const { id: t, name: n, type: r, config: o } = e;
@@ -15214,8 +15235,8 @@ const Ym = x.model("QueryModel", {
15214
15235
  [t]: n
15215
15236
  };
15216
15237
  }
15217
- })).actions((e) => ({})), sh = x.model("ViewsModel", {
15218
- current: x.optional(x.array(ah), []),
15238
+ })).actions((e) => ({})), lh = x.model("ViewsModel", {
15239
+ current: x.optional(x.array(sh), []),
15219
15240
  visibleViewIDs: x.array(x.string),
15220
15241
  idOfVIE: x.string
15221
15242
  }).views((e) => ({
@@ -15297,7 +15318,7 @@ const Ym = x.model("QueryModel", {
15297
15318
  n !== -1 && e.visibleViewIDs.splice(n, 1);
15298
15319
  }
15299
15320
  }));
15300
- function lh(e) {
15321
+ function ch(e) {
15301
15322
  const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
15302
15323
  return {
15303
15324
  current: e.map((o) => ({
@@ -15310,39 +15331,39 @@ function lh(e) {
15310
15331
  idOfVIE: n
15311
15332
  };
15312
15333
  }
15313
- const ch = x.model({
15334
+ const uh = x.model({
15314
15335
  id: x.identifier,
15315
15336
  name: x.string,
15316
15337
  version: x.string,
15317
15338
  filters: Wm,
15318
- queries: Qm,
15319
- sqlSnippets: Xm,
15320
- views: sh,
15321
- context: Km,
15322
- mock_context: Zm,
15339
+ queries: Jm,
15340
+ sqlSnippets: Km,
15341
+ views: lh,
15342
+ context: Zm,
15343
+ mock_context: eh,
15323
15344
  origin: x.maybe(x.frozen())
15324
15345
  }).views((e) => ({
15325
15346
  get filtersChanged() {
15326
15347
  const t = "filters.current";
15327
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15348
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15328
15349
  },
15329
15350
  get queriesChanged() {
15330
15351
  const t = "queries.current", n = jt(Q(e, t)).map(
15331
- (r) => qo(r, ["id", "key", "type", "sql"])
15352
+ (r) => jo(r, ["id", "key", "type", "sql"])
15332
15353
  );
15333
- return !Ce(n, Q(e.origin, t));
15354
+ return !we(n, Q(e.origin, t));
15334
15355
  },
15335
15356
  get sqlSnippetsChanged() {
15336
15357
  const t = "sqlSnippets.current";
15337
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15358
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15338
15359
  },
15339
15360
  get viewsChanged() {
15340
15361
  const t = "views.current";
15341
- return !Ce(jt(Q(e, t)), Q(e.origin, t));
15362
+ return !we(jt(Q(e, t)), Q(e.origin, t));
15342
15363
  },
15343
15364
  get mockContextChanged() {
15344
15365
  const t = "mock_context.current";
15345
- return !Ce(Q(e, t), Q(e.origin, t));
15366
+ return !we(Q(e, t), Q(e.origin, t));
15346
15367
  }
15347
15368
  })).views((e) => ({
15348
15369
  get payloadForSQL() {
@@ -15415,7 +15436,7 @@ const ch = x.model({
15415
15436
  Ct(e.filters.current, e.origin.filters.current);
15416
15437
  }
15417
15438
  };
15418
- }), uh = x.snapshotProcessor(ch, {
15439
+ }), Qn = x.snapshotProcessor(uh, {
15419
15440
  preProcessor(e) {
15420
15441
  return {
15421
15442
  ...e,
@@ -15424,12 +15445,12 @@ const ch = x.model({
15424
15445
  },
15425
15446
  postProcessor(e) {
15426
15447
  delete e.origin;
15427
- const t = Uo(e.queries.current.map((n) => qo(n, ["id", "key", "type", "sql"])));
15448
+ const t = Yo(e.queries.current.map((n) => jo(n, ["id", "key", "type", "sql"])));
15428
15449
  return le({}, { queries: { current: t } }, e);
15429
15450
  }
15430
15451
  });
15431
15452
  function Ca({ id: e, name: t, version: n, filters: r, views: o, definition: { queries: a, sqlSnippets: s, mock_context: l = {} } }, c) {
15432
- return uh.create({
15453
+ return Qn.create({
15433
15454
  id: e,
15434
15455
  name: t,
15435
15456
  version: n,
@@ -15446,7 +15467,7 @@ function Ca({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
15446
15467
  mock_context: {
15447
15468
  current: l
15448
15469
  },
15449
- views: lh(o)
15470
+ views: ch(o)
15450
15471
  });
15451
15472
  }
15452
15473
  function wa(e) {
@@ -15461,9 +15482,9 @@ const Yh = I(function({
15461
15482
  fullScreenPanelID: s,
15462
15483
  setFullScreenPanelID: l
15463
15484
  }) {
15464
- hi(a);
15485
+ vi(a);
15465
15486
  const [c, d] = w.useState(!1), u = w.useMemo(() => Ca(n, t), [n]);
15466
- ii(u, !0), w.useEffect(() => {
15487
+ ai(u, !0), w.useEffect(() => {
15467
15488
  u.context.replace(t);
15468
15489
  }, [t]);
15469
15490
  const p = async () => {
@@ -15481,8 +15502,8 @@ const Yh = I(function({
15481
15502
  };
15482
15503
  await r(k);
15483
15504
  }, f = Be($r, []), h = wa(f);
15484
- return /* @__PURE__ */ i(ko, {
15485
- children: /* @__PURE__ */ i(li, {
15505
+ return /* @__PURE__ */ i(Fo, {
15506
+ children: /* @__PURE__ */ i(ci, {
15486
15507
  value: u,
15487
15508
  children: /* @__PURE__ */ i(Le.Provider, {
15488
15509
  value: {
@@ -15498,7 +15519,7 @@ const Yh = I(function({
15498
15519
  },
15499
15520
  children: /* @__PURE__ */ i(Ne.Provider, {
15500
15521
  value: f,
15501
- children: /* @__PURE__ */ i(cn, {
15522
+ children: /* @__PURE__ */ i(ln, {
15502
15523
  configure: h,
15503
15524
  children: u.views.visibleViews.map((b) => /* @__PURE__ */ i(Am, {
15504
15525
  view: b,
@@ -15520,14 +15541,14 @@ const Yh = I(function({
15520
15541
  fullScreenPanelID: o,
15521
15542
  setFullScreenPanelID: a
15522
15543
  }) => {
15523
- hi(r);
15544
+ vi(r);
15524
15545
  const s = w.useMemo(() => Ca(t, e), [t]);
15525
- ii(s, !1), w.useEffect(() => {
15546
+ ai(s, !1), w.useEffect(() => {
15526
15547
  s.context.replace(e);
15527
15548
  }, [e]);
15528
15549
  const l = Be($r, []), c = wa(l);
15529
- return /* @__PURE__ */ i(ko, {
15530
- children: /* @__PURE__ */ i(li, {
15550
+ return /* @__PURE__ */ i(Fo, {
15551
+ children: /* @__PURE__ */ i(ci, {
15531
15552
  value: s,
15532
15553
  children: /* @__PURE__ */ i(Le.Provider, {
15533
15554
  value: {
@@ -15540,7 +15561,7 @@ const Yh = I(function({
15540
15561
  className: `${n} dashboard-root dashboard-sticky-parent`,
15541
15562
  children: /* @__PURE__ */ i(Ne.Provider, {
15542
15563
  value: l,
15543
- children: /* @__PURE__ */ i(cn, {
15564
+ children: /* @__PURE__ */ i(ln, {
15544
15565
  configure: c,
15545
15566
  children: s.views.visibleViews.map((d) => /* @__PURE__ */ i(Tm, {
15546
15567
  view: d,
@@ -15574,8 +15595,8 @@ var Sa = { exports: {} };
15574
15595
  var M = b[S], k = M.type, z = M.value, N = n[k];
15575
15596
  N >= 0 && (v[N] = parseInt(z, 10));
15576
15597
  }
15577
- var Y = v[3], pe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + pe + ":" + v[4] + ":" + v[5] + ":000", Se = +f;
15578
- return (s.utc(ce).valueOf() - (Se -= Se % 1e3)) / 6e4;
15598
+ var Y = v[3], fe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + fe + ":" + v[4] + ":" + v[5] + ":000", _e = +f;
15599
+ return (s.utc(ce).valueOf() - (_e -= _e % 1e3)) / 6e4;
15579
15600
  }, u = a.prototype;
15580
15601
  u.tz = function(f, h) {
15581
15602
  f === void 0 && (f = l);
@@ -15601,12 +15622,12 @@ var Sa = { exports: {} };
15601
15622
  var v = b && h, S = b || h || l, M = d(+s(), S);
15602
15623
  if (typeof f != "string")
15603
15624
  return s(f).tz(S);
15604
- var k = function(pe, ce, Se) {
15605
- var ve = pe - 60 * ce * 1e3, Me = d(ve, Se);
15625
+ var k = function(fe, ce, _e) {
15626
+ var be = fe - 60 * ce * 1e3, Me = d(be, _e);
15606
15627
  if (ce === Me)
15607
- return [ve, ce];
15608
- var ue = d(ve -= 60 * (Me - ce) * 1e3, Se);
15609
- return Me === ue ? [ve, Me] : [pe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
15628
+ return [be, ce];
15629
+ var ue = d(be -= 60 * (Me - ce) * 1e3, _e);
15630
+ return Me === ue ? [be, Me] : [fe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
15610
15631
  }(s.utc(f, v).valueOf(), M, S), z = k[0], N = k[1], Y = s(z).utcOffset(N);
15611
15632
  return Y.$x.$timezone = S, Y;
15612
15633
  }, s.tz.guess = function() {
@@ -15654,11 +15675,11 @@ var _a = { exports: {} };
15654
15675
  return this.$u ? 0 : M(this.$offset) ? p.call(this) : this.$offset;
15655
15676
  if (typeof v == "string" && (v = function(Y) {
15656
15677
  Y === void 0 && (Y = "");
15657
- var pe = Y.match(r);
15658
- if (!pe)
15678
+ var fe = Y.match(r);
15679
+ if (!fe)
15659
15680
  return null;
15660
- var ce = ("" + pe[0]).match(o) || ["-", 0, 0], Se = ce[0], ve = 60 * +ce[1] + +ce[2];
15661
- return ve === 0 ? 0 : Se === "+" ? ve : -ve;
15681
+ var ce = ("" + fe[0]).match(o) || ["-", 0, 0], _e = ce[0], be = 60 * +ce[1] + +ce[2];
15682
+ return be === 0 ? 0 : _e === "+" ? be : -be;
15662
15683
  }(v), v === null))
15663
15684
  return this;
15664
15685
  var k = Math.abs(v) <= 16 ? 60 * v : v, z = this;
@@ -15704,31 +15725,31 @@ nt.extend(gh);
15704
15725
  nt.extend(dh);
15705
15726
  nt.tz.setDefault("UTC");
15706
15727
  export {
15707
- Km as ContextModel,
15728
+ Zm as ContextModel,
15708
15729
  Yh as Dashboard,
15709
15730
  Zl as DashboardFilterType,
15710
15731
  Kl as DashboardMode,
15711
- uh as DashboardModel,
15732
+ Qn as DashboardModel,
15712
15733
  $e as EViewComponentType,
15713
- Do as FilterModel,
15734
+ Io as FilterModel,
15714
15735
  Wm as FiltersModel,
15715
15736
  Le as LayoutStateContext,
15716
15737
  Am as MainDashboardView,
15717
- li as ModelContextProvider,
15738
+ ci as ModelContextProvider,
15718
15739
  Ar as Panel,
15719
15740
  rl as PanelContextProvider,
15720
- Qm as QueriesModel,
15721
- Qn as QueryModel,
15741
+ Jm as QueriesModel,
15742
+ Qm as QueryModel,
15722
15743
  Qh as ReadOnlyDashboard,
15723
15744
  Tm as ReadOnlyDashboardView,
15724
- Jm as SQLSnippetModel,
15725
- Xm as SQLSnippetsModel,
15726
- ah as ViewModel,
15727
- sh as ViewsModel,
15745
+ Xm as SQLSnippetModel,
15746
+ Km as SQLSnippetsModel,
15747
+ sh as ViewModel,
15748
+ lh as ViewsModel,
15728
15749
  Ca as createDashboardModel,
15729
- lh as createDashboardViewsModel,
15750
+ ch as createDashboardViewsModel,
15730
15751
  Um as getInitialFiltersPayload,
15731
15752
  X as useModelContext,
15732
- he as usePanelContext,
15753
+ ve as usePanelContext,
15733
15754
  wa as useTopLevelServices
15734
15755
  };