@devtable/dashboard 5.9.1 → 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,38 +1,38 @@
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 Xn, Select as T, TextInput as E, Group as y, Stack as R, JsonInput as Vo, ActionIcon as A, AppShell as en, LoadingOverlay as tn, Table as Kn, 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 oo, Switch as Ge, useMantineTheme as es, ColorInput as ts, ColorSwatch as io, Slider as ko, Accordion as j, SegmentedControl as ns, createStyles as Zn, Popover as Dn, Badge as rs } from "@mantine/core";
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
5
  import { useModals as os, ModalsProvider as Fo } from "@mantine/modals";
6
- import { useCreation as Be, usePrevious as is, useRequest as Qt, useBoolean as $t, useAsyncEffect as Et, useLatest as ao } from "ahooks";
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
- import * as so from "react";
9
- import w, { useEffect as Z, createContext as $o, useState as he, useMemo as L, forwardRef as er, 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 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";
8
+ import * as ao from "react";
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 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 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";
17
+ import { showNotification as rn } from "@mantine/notifications";
18
18
  import Uo from "axios";
19
19
  import $s from "crypto-js";
20
- import { cast as ht, types as x, addDisposer as tr, addMiddleware as Es, getType as As, getRoot as Jt, flow as Os, toGenerator as zs, detach as Ps, resolveIdentifier 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 Pn, useInputState as Qo } from "@mantine/hooks";
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
22
  import Jo, { RichTextEditor as Xo } from "@mantine/rte";
23
- import { makeAutoObservable as nr, runInAction as Dt, observable as Ko, toJS as an, reaction as rr } from "mobx";
23
+ import { makeAutoObservable as tr, runInAction as Dt, observable as Ko, toJS as on, reaction as nr } from "mobx";
24
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 Zo, 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
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
34
  import { transform as ri } from "echarts-stat";
35
- import { useForm as or } from "@mantine/form";
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";
@@ -78,14 +78,14 @@ class Xs {
78
78
  function Qe(e) {
79
79
  return new Xs(e);
80
80
  }
81
- class ir {
81
+ class or {
82
82
  constructor() {
83
83
  F(this, "parent");
84
84
  F(this, "factoryRegistry", /* @__PURE__ */ new Map());
85
85
  F(this, "instanceRegistry", /* @__PURE__ */ new Map());
86
86
  }
87
87
  createScoped() {
88
- const t = new ir();
88
+ const t = new or();
89
89
  return t.parent = this, t;
90
90
  }
91
91
  getRequired(t) {
@@ -115,7 +115,7 @@ class ir {
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
@@ -241,18 +241,18 @@ function Zs() {
241
241
  }
242
242
  return null;
243
243
  }
244
- var xe = Object.assign, Ye = 0, zr, Pr, Tr, Lr, Nr, qr, jr;
245
- function Gr() {
244
+ var xe = Object.assign, Ye = 0, Or, zr, Pr, Tr, Lr, Nr, qr;
245
+ function jr() {
246
246
  }
247
- Gr.__reactDisabledLog = !0;
247
+ jr.__reactDisabledLog = !0;
248
248
  function Ra() {
249
249
  {
250
250
  if (Ye === 0) {
251
- zr = console.log, Pr = console.info, Tr = console.warn, Lr = console.error, Nr = console.group, qr = console.groupCollapsed, jr = console.groupEnd;
251
+ Or = console.log, zr = console.info, Pr = console.warn, Tr = console.error, Lr = console.group, Nr = console.groupCollapsed, qr = console.groupEnd;
252
252
  var m = {
253
253
  configurable: !0,
254
254
  enumerable: !0,
255
- value: Gr,
255
+ value: jr,
256
256
  writable: !0
257
257
  };
258
258
  Object.defineProperties(console, {
@@ -278,52 +278,52 @@ function Zs() {
278
278
  };
279
279
  Object.defineProperties(console, {
280
280
  log: xe({}, m, {
281
- value: zr
281
+ value: Or
282
282
  }),
283
283
  info: xe({}, m, {
284
- value: Pr
284
+ value: zr
285
285
  }),
286
286
  warn: xe({}, m, {
287
- value: Tr
287
+ value: Pr
288
288
  }),
289
289
  error: xe({}, m, {
290
- value: Lr
290
+ value: Tr
291
291
  }),
292
292
  group: xe({}, m, {
293
- value: Nr
293
+ value: Lr
294
294
  }),
295
295
  groupCollapsed: xe({}, m, {
296
- value: qr
296
+ value: Nr
297
297
  }),
298
298
  groupEnd: xe({}, m, {
299
- value: jr
299
+ value: qr
300
300
  })
301
301
  });
302
302
  }
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
- function Br(m, _) {
326
- if (!m || xn)
325
+ function Gr(m, _) {
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() {
@@ -388,13 +388,13 @@ function Zs() {
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
- var ut = m ? m.displayName || m.name : "", ro = ut ? Pt(ut) : "";
394
- return typeof m == "function" && Tt.set(m, ro), ro;
393
+ var ut = m ? m.displayName || m.name : "", no = ut ? Pt(ut) : "";
394
+ return typeof m == "function" && Tt.set(m, no), no;
395
395
  }
396
396
  function Va(m, _, V) {
397
- return Br(m, !1);
397
+ return Gr(m, !1);
398
398
  }
399
399
  function Ma(m) {
400
400
  var _ = m.prototype;
@@ -404,7 +404,7 @@ function Zs() {
404
404
  if (m == null)
405
405
  return "";
406
406
  if (typeof m == "function")
407
- return Br(m, Ma(m));
407
+ return Gr(m, Ma(m));
408
408
  if (typeof m == "string")
409
409
  return Pt(m);
410
410
  switch (m) {
@@ -429,13 +429,13 @@ function Zs() {
429
429
  }
430
430
  return "";
431
431
  }
432
- var Nt = Object.prototype.hasOwnProperty, Hr = {}, Wr = M.ReactDebugCurrentFrame;
432
+ var Nt = Object.prototype.hasOwnProperty, Br = {}, Hr = M.ReactDebugCurrentFrame;
433
433
  function qt(m) {
434
434
  if (m) {
435
435
  var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
436
- Wr.setExtraStackFrame(V);
436
+ Hr.setExtraStackFrame(V);
437
437
  } else
438
- Wr.setExtraStackFrame(null);
438
+ Hr.setExtraStackFrame(null);
439
439
  }
440
440
  function ka(m, _, V, O, W) {
441
441
  {
@@ -452,12 +452,12 @@ function Zs() {
452
452
  } catch (oe) {
453
453
  q = oe;
454
454
  }
455
- q && !(q instanceof Error) && (qt(W), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", V, B, typeof q), qt(null)), q instanceof Error && !(q.message in Hr) && (Hr[q.message] = !0, qt(W), k("Failed %s type: %s", V, q.message), qt(null));
455
+ q && !(q instanceof Error) && (qt(W), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", V, B, typeof q), qt(null)), q instanceof Error && !(q.message in Br) && (Br[q.message] = !0, qt(W), k("Failed %s type: %s", V, q.message), qt(null));
456
456
  }
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) {
@@ -468,25 +468,25 @@ function Zs() {
468
468
  }
469
469
  function Ea(m) {
470
470
  try {
471
- return Ur(m), !1;
471
+ return Wr(m), !1;
472
472
  } catch {
473
473
  return !0;
474
474
  }
475
475
  }
476
- function Ur(m) {
476
+ function Wr(m) {
477
477
  return "" + m;
478
478
  }
479
- function Yr(m) {
479
+ function Ur(m) {
480
480
  if (Ea(m))
481
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $a(m)), Ur(m);
481
+ return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $a(m)), Wr(m);
482
482
  }
483
483
  var xt = M.ReactCurrentOwner, Aa = {
484
484
  key: !0,
485
485
  ref: !0,
486
486
  __self: !0,
487
487
  __source: !0
488
- }, Qr, Jr, 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;
@@ -506,13 +506,13 @@ function Zs() {
506
506
  function Pa(m, _) {
507
507
  if (typeof m.ref == "string" && xt.current && _ && xt.current.stateNode !== _) {
508
508
  var V = ye(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', ye(xt.current.type), m.ref), wn[V] = !0);
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, _) {
513
513
  {
514
514
  var V = function() {
515
- Qr || (Qr = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
515
+ Yr || (Yr = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
516
516
  };
517
517
  V.isReactWarning = !0, Object.defineProperty(m, "key", {
518
518
  get: V,
@@ -523,7 +523,7 @@ function Zs() {
523
523
  function La(m, _) {
524
524
  {
525
525
  var V = function() {
526
- Jr || (Jr = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
526
+ Qr || (Qr = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
527
527
  };
528
528
  V.isReactWarning = !0, Object.defineProperty(m, "ref", {
529
529
  get: V,
@@ -560,7 +560,7 @@ function Zs() {
560
560
  function qa(m, _, V, O, W) {
561
561
  {
562
562
  var J, B = {}, q = null, me = null;
563
- V !== void 0 && (Yr(V), q = "" + V), za(_) && (Yr(_.key), q = "" + _.key), Oa(_) && (me = _.ref, Pa(_, W));
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) {
@@ -575,23 +575,23 @@ function Zs() {
575
575
  return Na(m, q, me, W, O, xt.current, B);
576
576
  }
577
577
  }
578
- var Sn = M.ReactCurrentOwner, Xr = 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);
582
- Xr.setExtraStackFrame(V);
582
+ Jr.setExtraStackFrame(V);
583
583
  } else
584
- Xr.setExtraStackFrame(null);
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
- function Kr() {
591
+ function Xr() {
592
592
  {
593
- if (Sn.current) {
594
- var m = ye(Sn.current.type);
593
+ if (wn.current) {
594
+ var m = ye(wn.current.type);
595
595
  if (m)
596
596
  return `
597
597
 
@@ -611,10 +611,10 @@ Check your code at ` + _ + ":" + V + ".";
611
611
  return "";
612
612
  }
613
613
  }
614
- var Zr = {};
614
+ var Kr = {};
615
615
  function Ga(m) {
616
616
  {
617
- var _ = Kr();
617
+ var _ = Xr();
618
618
  if (!_) {
619
619
  var V = typeof m == "string" ? m : m.displayName || m.name;
620
620
  V && (_ = `
@@ -624,35 +624,35 @@ Check the top-level render call using <` + V + ">.");
624
624
  return _;
625
625
  }
626
626
  }
627
- function eo(m, _) {
627
+ function Zr(m, _) {
628
628
  {
629
629
  if (!m._store || m._store.validated || m.key != null)
630
630
  return;
631
631
  m._store.validated = !0;
632
632
  var V = Ga(_);
633
- if (Zr[V])
633
+ if (Kr[V])
634
634
  return;
635
- Zr[V] = !0;
635
+ Kr[V] = !0;
636
636
  var O = "";
637
- m && m._owner && m._owner !== Sn.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);
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
- function to(m, _) {
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) && eo(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) && eo(B.value, _);
655
+ _n(B.value) && Zr(B.value, _);
656
656
  }
657
657
  }
658
658
  }
@@ -671,8 +671,8 @@ Check the top-level render call using <` + V + ">.");
671
671
  if (V) {
672
672
  var O = ye(_);
673
673
  ka(V, m.props, "prop", O, m);
674
- } else if (_.PropTypes !== void 0 && !_n) {
675
- _n = !0;
674
+ } else if (_.PropTypes !== void 0 && !Sn) {
675
+ Sn = !0;
676
676
  var W = ye(_);
677
677
  k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
678
678
  }
@@ -691,16 +691,16 @@ Check the top-level render call using <` + V + ">.");
691
691
  m.ref !== null && (ct(m), k("Invalid attribute `ref` supplied to `React.Fragment`."), ct(null));
692
692
  }
693
693
  }
694
- function no(m, _, V, O, W, J) {
694
+ function to(m, _, V, O, W, J) {
695
695
  {
696
696
  var B = Me(m);
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
700
  var me = ja(W);
701
- me ? q += me : q += Kr();
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 = "<" + (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);
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)
@@ -709,23 +709,23 @@ Check the top-level render call using <` + V + ">.");
709
709
  var Re = _.children;
710
710
  if (Re !== void 0)
711
711
  if (O)
712
- if (Cn(Re)) {
712
+ if (xn(Re)) {
713
713
  for (var ut = 0; ut < Re.length; ut++)
714
- to(Re[ut], m);
714
+ eo(Re[ut], m);
715
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
- to(Re, m);
719
+ eo(Re, m);
720
720
  }
721
721
  return m === r ? Ha(ae) : Ba(ae), ae;
722
722
  }
723
723
  }
724
724
  function Wa(m, _, V) {
725
- return no(m, _, V, !0);
725
+ return to(m, _, V, !0);
726
726
  }
727
727
  function Ua(m, _, V) {
728
- return no(m, _, V, !1);
728
+ return to(m, _, V, !1);
729
729
  }
730
730
  var Ya = Ua, Qa = Wa;
731
731
  St.Fragment = r, St.jsx = Ya, St.jsxs = Qa;
@@ -733,22 +733,22 @@ 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 = $o(null);
738
- function cn(e) {
739
- const t = w.useContext(Tn), n = Be(() => e.configure(t || new ir()), [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
745
  function si() {
746
- return w.useContext(Tn);
746
+ return w.useContext(Pn);
747
747
  }
748
748
  const el = {
749
749
  viewPanelInFullScreen: K.noop,
750
750
  inFullScreen: !1
751
- }, ar = w.createContext(el), li = w.createContext(null), ci = li.Provider;
751
+ }, ir = w.createContext(el), li = w.createContext(null), ci = li.Provider;
752
752
  function X() {
753
753
  const e = w.useContext(li);
754
754
  if (!e)
@@ -878,7 +878,7 @@ const ol = I(({
878
878
  return;
879
879
  const d = [(u = s[0]) == null ? void 0 : u.value];
880
880
  JSON.stringify(n) !== JSON.stringify(d) && (console.log("Selecting the first option by default. Previous value: ", n, ", new value: ", d), r(d));
881
- }, [t.select_first_by_default, s, r, n]), /* @__PURE__ */ i(Xn, {
881
+ }, [t.select_first_by_default, s, r, n]), /* @__PURE__ */ i(Jn, {
882
882
  label: e,
883
883
  data: a ? s : t.static_options,
884
884
  disabled: a ? c : !1,
@@ -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,21 +1122,21 @@ 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
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
1142
  function fi(e) {
@@ -1161,7 +1161,7 @@ WHERE
1161
1161
  -- SQL snippets
1162
1162
  AND \${sql_snippets.author_email_condition}
1163
1163
  \${sql_snippets.order_by_clause}
1164
- `, sr = I(function({
1164
+ `, ar = I(function({
1165
1165
  showSQLSnippets: t = !0,
1166
1166
  sx: n = {}
1167
1167
  }) {
@@ -1231,7 +1231,7 @@ WHERE
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"
@@ -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)",
@@ -1329,7 +1329,7 @@ function pl() {
1329
1329
  grow: !0,
1330
1330
  align: "stretch",
1331
1331
  noWrap: !0,
1332
- children: [/* @__PURE__ */ i(gl, {}), /* @__PURE__ */ i(sr, {
1332
+ children: [/* @__PURE__ */ i(gl, {}), /* @__PURE__ */ i(ar, {
1333
1333
  showSQLSnippets: !1
1334
1334
  })]
1335
1335
  })
@@ -1342,7 +1342,7 @@ function fl({
1342
1342
  sx: {
1343
1343
  height: "5em"
1344
1344
  }
1345
- }) : /* @__PURE__ */ g(Kn, {
1345
+ }) : /* @__PURE__ */ g(Xn, {
1346
1346
  children: [/* @__PURE__ */ i("thead", {
1347
1347
  children: /* @__PURE__ */ i("tr", {
1348
1348
  children: Object.keys(e == null ? void 0 : e[0]).map((t) => /* @__PURE__ */ i("th", {
@@ -1417,7 +1417,7 @@ const mi = 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
@@ -1426,14 +1426,14 @@ const mi = I(function({
1426
1426
  });
1427
1427
  });
1428
1428
  function ml(e, t, n, r) {
1429
- const o = cr(t, n, [], r), a = Object.keys(o), s = Object.values(o);
1429
+ const o = lr(t, n, [], r), a = Object.keys(o), s = Object.values(o);
1430
1430
  try {
1431
1431
  return new Function(...a, `return \`${e}\`;`)(...s);
1432
1432
  } catch (l) {
1433
1433
  return console.info(l), l.message;
1434
1434
  }
1435
1435
  }
1436
- function lr(e, t = {}) {
1436
+ function sr(e, t = {}) {
1437
1437
  const n = Object.keys(t), r = Object.values(t);
1438
1438
  try {
1439
1439
  return new Function(...n, `return \`${e}\`;`)(...r);
@@ -1441,20 +1441,20 @@ function lr(e, t = {}) {
1441
1441
  throw n.length === 0 && e.includes("$") ? new Error("[formatSQL] insufficient params") : o;
1442
1442
  }
1443
1443
  }
1444
- function cr(e, t, n, r) {
1444
+ function lr(e, t, n, r) {
1445
1445
  const o = {
1446
1446
  ...t,
1447
1447
  ...e
1448
1448
  }, a = {
1449
1449
  context: o,
1450
1450
  filters: r
1451
- }, s = n.reduce((l, c) => (l[c.key] = lr(c.value, a), l), {});
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
1454
  function hi(e, t, n, r, o) {
1455
1455
  try {
1456
- const a = cr(t, n, r, o);
1457
- return lr(e, a);
1456
+ const a = lr(t, n, r, o);
1457
+ return sr(e, a);
1458
1458
  } catch (a) {
1459
1459
  return console.error(a), a.message;
1460
1460
  }
@@ -1527,7 +1527,7 @@ function vi(e) {
1527
1527
  async function bl({ context: e, mock_context: t, sqlSnippets: n, title: r, query: o, filterValues: a }) {
1528
1528
  if (!o.sql)
1529
1529
  return [];
1530
- const { type: s, key: l, sql: c } = o, d = c.includes("$"), u = cr(e, t, n, a), p = lr(c, u);
1530
+ const { type: s, key: l, sql: c } = o, d = c.includes("$"), u = lr(e, t, n, a), p = sr(c, u);
1531
1531
  return d && (console.groupCollapsed(`Final SQL for: ${r}`), console.log(p), console.groupEnd()), await gt.getRequest("POST")("/query", { type: s, key: l, query: p });
1532
1532
  }
1533
1533
  async function yl() {
@@ -1547,7 +1547,7 @@ async function yl() {
1547
1547
  return console.error(e), [];
1548
1548
  }
1549
1549
  }
1550
- const xl = er(({
1550
+ const xl = Zn(({
1551
1551
  label: e,
1552
1552
  type: t,
1553
1553
  ...n
@@ -1599,7 +1599,7 @@ function wl(e, t) {
1599
1599
  o = r[a], !(t.indexOf(o) >= 0) && (n[o] = e[o]);
1600
1600
  return n;
1601
1601
  }
1602
- function ur(e, t) {
1602
+ function cr(e, t) {
1603
1603
  if (e == null)
1604
1604
  return {};
1605
1605
  var n = wl(e, t), r, o;
@@ -1612,17 +1612,17 @@ function ur(e, t) {
1612
1612
  }
1613
1613
  var Sl = ["size", "color", "stroke"];
1614
1614
  function _l(e) {
1615
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Sl);
1615
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Sl);
1616
1616
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-down", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 13, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 6, y1: 13, x2: 12, y2: 19 })] });
1617
1617
  }
1618
1618
  var Rl = ["size", "color", "stroke"];
1619
1619
  function Dl(e) {
1620
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Rl);
1620
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Rl);
1621
1621
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-up", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 11, x2: 12, y2: 5 }), /* @__PURE__ */ i("line", { x1: 6, y1: 11, x2: 12, y2: 5 })] });
1622
1622
  }
1623
1623
  var Il = ["size", "color", "stroke"];
1624
1624
  function Vl(e) {
1625
- var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = ur(e, Il);
1625
+ var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = cr(e, Il);
1626
1626
  return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-trash", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 4, y1: 7, x2: 20, y2: 7 }), /* @__PURE__ */ i("line", { x1: 10, y1: 11, x2: 10, y2: 17 }), /* @__PURE__ */ i("line", { x1: 14, y1: 11, x2: 14, y2: 17 }), /* @__PURE__ */ i("path", { d: "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" }), /* @__PURE__ */ i("path", { d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" })] });
1627
1627
  }
1628
1628
  const Ml = (e) => {
@@ -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: {
@@ -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)",
@@ -1891,7 +1891,7 @@ const Al = I(function({
1891
1891
  id: t,
1892
1892
  setID: n
1893
1893
  })]
1894
- }), /* @__PURE__ */ i(sr, {})]
1894
+ }), /* @__PURE__ */ i(ar, {})]
1895
1895
  }), /* @__PURE__ */ i(mi, {
1896
1896
  id: t
1897
1897
  })]
@@ -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)",
@@ -2020,7 +2020,7 @@ function Tl() {
2020
2020
  grow: !0,
2021
2021
  align: "stretch",
2022
2022
  noWrap: !0,
2023
- children: [/* @__PURE__ */ i(Pl, {}), /* @__PURE__ */ i(sr, {
2023
+ children: [/* @__PURE__ */ i(Pl, {}), /* @__PURE__ */ i(ar, {
2024
2024
  showSQLSnippets: !1
2025
2025
  })]
2026
2026
  })
@@ -2080,7 +2080,7 @@ x.model({
2080
2080
  key: x.string,
2081
2081
  sql: x.string
2082
2082
  });
2083
- const Ln = x.model("FilterConfigModel_TextInput", {
2083
+ const Tn = x.model("FilterConfigModel_TextInput", {
2084
2084
  _name: "text-input",
2085
2085
  required: x.boolean,
2086
2086
  default_value: x.string
@@ -2091,7 +2091,7 @@ const Ln = x.model("FilterConfigModel_TextInput", {
2091
2091
  setDefaultValue(t) {
2092
2092
  e.default_value = t;
2093
2093
  }
2094
- })), bi = () => Ln.create({
2094
+ })), bi = () => Tn.create({
2095
2095
  _name: "text-input",
2096
2096
  required: !1,
2097
2097
  default_value: ""
@@ -2180,7 +2180,7 @@ const Ln = x.model("FilterConfigModel_TextInput", {
2180
2180
  children: [/* @__PURE__ */ i(te, {
2181
2181
  label: "Configure options",
2182
2182
  labelPosition: "center"
2183
- }), r.length > 0 && /* @__PURE__ */ i(Xn, {
2183
+ }), r.length > 0 && /* @__PURE__ */ i(Jn, {
2184
2184
  label: "Default Selection",
2185
2185
  data: o,
2186
2186
  value: t.default_value,
@@ -2424,7 +2424,7 @@ const Ln = x.model("FilterConfigModel_TextInput", {
2424
2424
  value: t.order,
2425
2425
  onChange: t.setOrder,
2426
2426
  hideControls: !0
2427
- }), /* @__PURE__ */ i(Xn, {
2427
+ }), /* @__PURE__ */ i(Jn, {
2428
2428
  label: "Visible in...",
2429
2429
  data: r.views.options,
2430
2430
  value: [...t.visibleInViewsIDs],
@@ -2715,7 +2715,7 @@ const ec = I(() => {
2715
2715
  },
2716
2716
  children: /* @__PURE__ */ i(oc, {})
2717
2717
  });
2718
- }), ac = er(({
2718
+ }), ac = Zn(({
2719
2719
  label: e,
2720
2720
  type: t,
2721
2721
  ...n
@@ -3017,7 +3017,7 @@ const Ci = I(() => {
3017
3017
  title: t = "Variables",
3018
3018
  variables: n
3019
3019
  } = e, r = Ns(), o = (a) => {
3020
- r.copy(a), on({
3020
+ r.copy(a), rn({
3021
3021
  color: "green",
3022
3022
  message: "Copied to clipboard"
3023
3023
  });
@@ -3036,10 +3036,10 @@ const Ci = I(() => {
3036
3036
  },
3037
3037
  children: n.map((a) => /* @__PURE__ */ g(C, {
3038
3038
  size: "sm",
3039
- children: [/* @__PURE__ */ g(oo, {
3039
+ children: [/* @__PURE__ */ g(ro, {
3040
3040
  color: "teal",
3041
3041
  children: ["// ", a.description]
3042
- }), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ g(oo, {
3042
+ }), /* @__PURE__ */ i("br", {}), /* @__PURE__ */ g(ro, {
3043
3043
  onClick: () => o(a.name),
3044
3044
  style: {
3045
3045
  cursor: "pointer"
@@ -3056,7 +3056,7 @@ class cc {
3056
3056
  F(this, "operation");
3057
3057
  F(this, "operationSchema");
3058
3058
  F(this, "variables", []);
3059
- this.operationManager = t, this.instance = n, nr(this);
3059
+ this.operationManager = t, this.instance = n, tr(this);
3060
3060
  }
3061
3061
  get schemaList() {
3062
3062
  return this.operationManager.getOperationSchemaList();
@@ -3093,7 +3093,7 @@ const dc = I(({
3093
3093
  instance: e.instance,
3094
3094
  variables: []
3095
3095
  };
3096
- return nn(e.operationSchema.configRender, t);
3096
+ return tn(e.operationSchema.configRender, t);
3097
3097
  });
3098
3098
  function pc({
3099
3099
  model: e
@@ -3152,7 +3152,7 @@ class mc {
3152
3152
  F(this, "trigger");
3153
3153
  F(this, "triggerSchema");
3154
3154
  F(this, "sampleData");
3155
- this.triggerManager = t, this.instance = n, nr(this);
3155
+ this.triggerManager = t, this.instance = n, tr(this);
3156
3156
  }
3157
3157
  get schemaList() {
3158
3158
  return this.triggerManager.getTriggerSchemaList();
@@ -3188,7 +3188,7 @@ const bc = I(({
3188
3188
  return /* @__PURE__ */ i(H, {
3189
3189
  variant: "outline",
3190
3190
  onClick: t,
3191
- children: nn(n, r)
3191
+ children: tn(n, r)
3192
3192
  });
3193
3193
  }), yc = I(({
3194
3194
  model: e
@@ -3214,7 +3214,7 @@ const bc = I(({
3214
3214
  instance: e.instance,
3215
3215
  sampleData: e.sampleData
3216
3216
  };
3217
- return nn(e.triggerSchema.configRender, t);
3217
+ return tn(e.triggerSchema.configRender, t);
3218
3218
  }), Cc = I((e) => {
3219
3219
  const [t, {
3220
3220
  setTrue: n,
@@ -3249,7 +3249,7 @@ class pt {
3249
3249
  async deleteItem(t) {
3250
3250
  t === null && await this.root.deleteItem(this.path);
3251
3251
  const n = await this.root.getItem(this.path) || {};
3252
- await this.root.setItem(this.path, rn(n, t));
3252
+ await this.root.setItem(this.path, nn(n, t));
3253
3253
  }
3254
3254
  async getItem(t) {
3255
3255
  const n = await this.root.getItem(this.path);
@@ -3281,7 +3281,7 @@ class pt {
3281
3281
  );
3282
3282
  }
3283
3283
  }
3284
- class dr {
3284
+ class ur {
3285
3285
  constructor(t, n, r) {
3286
3286
  F(this, "attachmentStorage");
3287
3287
  this.instance = t, this.attachmentKey = n, this.constructInstance = r, this.attachmentStorage = new pt(t.instanceData, n);
@@ -3320,7 +3320,7 @@ class Si {
3320
3320
  return Promise.resolve(n);
3321
3321
  }
3322
3322
  getValueFromRoot(t) {
3323
- 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]);
3324
3324
  }
3325
3325
  setItem(t, n) {
3326
3326
  if (t === null)
@@ -3337,7 +3337,7 @@ class Si {
3337
3337
  return Promise.resolve(this.getItem(t));
3338
3338
  }
3339
3339
  watchItem(t, n, r) {
3340
- return rr(
3340
+ return nr(
3341
3341
  () => this.getValueFromRoot(t),
3342
3342
  (o, a) => {
3343
3343
  n(o, a);
@@ -3417,7 +3417,7 @@ const _c = (e) => {
3417
3417
  return /* @__PURE__ */ i(l, {
3418
3418
  context: s,
3419
3419
  instance: a,
3420
- ...rn(e, ["panel", "vizManager", "data"])
3420
+ ...nn(e, ["panel", "vizManager", "data"])
3421
3421
  });
3422
3422
  }, Rc = (e) => {
3423
3423
  const {
@@ -3432,14 +3432,14 @@ const _c = (e) => {
3432
3432
  return /* @__PURE__ */ i(c, {
3433
3433
  context: l,
3434
3434
  instance: s,
3435
- ...rn(e, ["panel", "vizManager", "data", "panelInfoEditor"])
3435
+ ...nn(e, ["panel", "vizManager", "data", "panelInfoEditor"])
3436
3436
  });
3437
3437
  }, Ri = (e, t) => {
3438
3438
  const n = kt.bezier(e), r = kt.bezier(t);
3439
3439
  return function(o) {
3440
3440
  return o < 50 ? n(o * 2 / 100).hex() : r((o - 50) * 2 / 100).hex();
3441
3441
  };
3442
- }, dn = (e) => {
3442
+ }, un = (e) => {
3443
3443
  const t = kt.bezier(e);
3444
3444
  return function(n) {
3445
3445
  return t(n / 100).hex();
@@ -3459,28 +3459,28 @@ const _c = (e) => {
3459
3459
  }, Vc = {
3460
3460
  type: "interpolation",
3461
3461
  displayName: "Red",
3462
- getColor: dn(["#fff7f1", "darkred"]),
3462
+ getColor: un(["#fff7f1", "darkred"]),
3463
3463
  name: "red",
3464
3464
  category: "sequential"
3465
3465
  }, Mc = {
3466
3466
  type: "interpolation",
3467
3467
  displayName: "Green",
3468
- getColor: dn(["#f0ffed", "darkgreen"]),
3468
+ getColor: un(["#f0ffed", "darkgreen"]),
3469
3469
  name: "green",
3470
3470
  category: "sequential"
3471
3471
  }, kc = {
3472
3472
  type: "interpolation",
3473
3473
  displayName: "Blue",
3474
- getColor: dn(["#f9fcff", "#48b3e9", "darkblue"]),
3474
+ getColor: un(["#f9fcff", "#48b3e9", "darkblue"]),
3475
3475
  name: "blue",
3476
3476
  category: "sequential"
3477
3477
  }, Fc = {
3478
3478
  type: "interpolation",
3479
3479
  displayName: "Orange",
3480
- getColor: dn(["#fff7f1", "darkorange", "#b60000"]),
3480
+ getColor: un(["#fff7f1", "darkorange", "#b60000"]),
3481
3481
  name: "orange",
3482
3482
  category: "sequential"
3483
- }, $c = "5.9.1";
3483
+ }, $c = "5.9.2";
3484
3484
  class Ec {
3485
3485
  constructor(t) {
3486
3486
  F(this, "staticColors", /* @__PURE__ */ new Map());
@@ -3598,7 +3598,7 @@ const U = (e, t) => {
3598
3598
  value: o,
3599
3599
  set: s
3600
3600
  };
3601
- }, gr = {
3601
+ }, dr = {
3602
3602
  x_axis_data_key: "",
3603
3603
  y_axis_data_key: "",
3604
3604
  z_axis_data_key: "",
@@ -3631,7 +3631,7 @@ function zc({
3631
3631
  xAxis3D: c,
3632
3632
  yAxis3D: d,
3633
3633
  zAxis3D: u
3634
- } = le({}, t, gr), p = L(() => {
3634
+ } = le({}, t, dr), p = L(() => {
3635
3635
  const b = ds(n, (v) => v[l]);
3636
3636
  return Q(b, l);
3637
3637
  }, [n, l]), f = L(() => {
@@ -3720,7 +3720,7 @@ function Tc({
3720
3720
  const {
3721
3721
  value: t,
3722
3722
  set: n
3723
- } = U(e.instanceData, "config"), r = e.data, o = le({}, t, gr), {
3723
+ } = U(e.instanceData, "config"), r = e.data, o = le({}, t, dr), {
3724
3724
  control: a,
3725
3725
  handleSubmit: s,
3726
3726
  reset: l
@@ -3881,8 +3881,8 @@ const Nc = {
3881
3881
  name: "bar-3d",
3882
3882
  viewRender: zc,
3883
3883
  configRender: Tc,
3884
- createConfig: () => gr
3885
- }, Nn = er(function({
3884
+ createConfig: () => dr
3885
+ }, Ln = Zn(function({
3886
3886
  value: t,
3887
3887
  onChange: n,
3888
3888
  ...r
@@ -4008,19 +4008,19 @@ function qc({
4008
4008
  children: [/* @__PURE__ */ g(C, {
4009
4009
  size: 12,
4010
4010
  color: "gray",
4011
- children: ["123456789 ", /* @__PURE__ */ i(In, {
4011
+ children: ["123456789 ", /* @__PURE__ */ i(Dn, {
4012
4012
  size: 9
4013
4013
  }), " ", De(123456789).format(e)]
4014
4014
  }), /* @__PURE__ */ g(C, {
4015
4015
  size: 12,
4016
4016
  color: "gray",
4017
- children: ["1234 ", /* @__PURE__ */ i(In, {
4017
+ children: ["1234 ", /* @__PURE__ */ i(Dn, {
4018
4018
  size: 9
4019
4019
  }), " ", De(1234).format(e)]
4020
4020
  }), /* @__PURE__ */ g(C, {
4021
4021
  size: 12,
4022
4022
  color: "gray",
4023
- children: ["0.1234 ", /* @__PURE__ */ i(In, {
4023
+ children: ["0.1234 ", /* @__PURE__ */ i(Dn, {
4024
4024
  size: 9
4025
4025
  }), " ", De(0.1234).format(e)]
4026
4026
  })]
@@ -4029,8 +4029,8 @@ function qc({
4029
4029
  })]
4030
4030
  });
4031
4031
  }
4032
- const pr = w.forwardRef(qc);
4033
- function gn() {
4032
+ const gr = w.forwardRef(qc);
4033
+ function dn() {
4034
4034
  return {
4035
4035
  name: Ie(),
4036
4036
  size: "20px",
@@ -4193,7 +4193,7 @@ function Uc({
4193
4193
  placeholder: "Set any color",
4194
4194
  value: a ? "" : e,
4195
4195
  onChange: (s) => t(s.currentTarget.value),
4196
- rightSection: /* @__PURE__ */ i(io, {
4196
+ rightSection: /* @__PURE__ */ i(oo, {
4197
4197
  color: a ? "transparent" : e,
4198
4198
  radius: 4
4199
4199
  }),
@@ -4213,7 +4213,7 @@ function Uc({
4213
4213
  onChange: t,
4214
4214
  variant: a ? "default" : "filled",
4215
4215
  placeholder: "Pick a theme color",
4216
- icon: /* @__PURE__ */ i(io, {
4216
+ icon: /* @__PURE__ */ i(oo, {
4217
4217
  color: a ? e : "transparent",
4218
4218
  radius: 4
4219
4219
  }),
@@ -4394,7 +4394,7 @@ const Xc = w.forwardRef(Jc), Kc = w.forwardRef(function({
4394
4394
  })]
4395
4395
  })]
4396
4396
  });
4397
- }), pn = w.forwardRef(function({
4397
+ }), gn = w.forwardRef(function({
4398
4398
  value: t,
4399
4399
  onChange: n,
4400
4400
  data: r,
@@ -4439,7 +4439,7 @@ const Xc = w.forwardRef(Jc), Kc = w.forwardRef(function({
4439
4439
  my: "xs",
4440
4440
  label: "Format",
4441
4441
  labelPosition: "center"
4442
- }), /* @__PURE__ */ i(pr, {
4442
+ }), /* @__PURE__ */ i(gr, {
4443
4443
  value: t.formatter,
4444
4444
  onChange: (l) => s("formatter", l)
4445
4445
  }), o && /* @__PURE__ */ i(Kc, {
@@ -4452,7 +4452,7 @@ function Zc(e) {
4452
4452
  const t = Array.from(e).sort((r, o) => r - o), n = Math.floor(t.length / 2);
4453
4453
  return t.length % 2 === 0 ? (t[n - 1] + t[n]) / 2 : t[n];
4454
4454
  }
4455
- function fr(e, t, n) {
4455
+ function pr(e, t, n) {
4456
4456
  var o, a, s, l;
4457
4457
  const r = e.map((c) => c[t]);
4458
4458
  switch (n.type) {
@@ -4484,26 +4484,26 @@ process.env.NODE_ENV !== "production" && (Di = function(e, t) {
4484
4484
  const eu = (e, t, n) => Math.min(Math.max(n, e), t), Ii = (e, t, n) => {
4485
4485
  const r = t - e;
4486
4486
  return r === 0 ? 1 : (n - e) / r;
4487
- }, mr = (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, qn = /(#[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;
4488
4488
  function Ot(e) {
4489
4489
  return typeof e == "string";
4490
4490
  }
4491
- const fn = {
4491
+ const pn = {
4492
4492
  test: (e) => typeof e == "number",
4493
4493
  parse: parseFloat,
4494
4494
  transform: (e) => e
4495
- }, Mi = Object.assign(Object.assign({}, fn), { transform: Vi(0, 1) });
4496
- 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 });
4497
4497
  const nu = (e) => ({
4498
4498
  test: (t) => Ot(t) && t.endsWith(e) && t.split(" ").length === 1,
4499
4499
  parse: parseFloat,
4500
4500
  transform: (t) => `${t}${e}`
4501
4501
  }), Vt = nu("%");
4502
4502
  Object.assign(Object.assign({}, Vt), { parse: (e) => Vt.parse(e) / 100, transform: (e) => Vt.transform(e * 100) });
4503
- const hr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t && Object.prototype.hasOwnProperty.call(n, t)), ki = (e, t, n) => (r) => {
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) => {
4504
4504
  if (!Ot(r))
4505
4505
  return r;
4506
- const [o, a, s, l] = r.match(Xt);
4506
+ const [o, a, s, l] = r.match(Jt);
4507
4507
  return {
4508
4508
  [e]: parseFloat(o),
4509
4509
  [t]: parseFloat(a),
@@ -4511,13 +4511,13 @@ const hr = (e, t) => (n) => Boolean(Ot(n) && tu.test(n) && n.startsWith(e) || t
4511
4511
  alpha: l !== void 0 ? parseFloat(l) : 1
4512
4512
  };
4513
4513
  }, lt = {
4514
- test: hr("hsl", "hue"),
4514
+ test: mr("hsl", "hue"),
4515
4515
  parse: ki("hue", "saturation", "lightness"),
4516
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)) + ")"
4517
- }, ru = Vi(0, 255), Vn = Object.assign(Object.assign({}, fn), { transform: (e) => Math.round(ru(e)) }), Xe = {
4518
- test: hr("rgb", "red"),
4517
+ }, ru = Vi(0, 255), In = Object.assign(Object.assign({}, pn), { transform: (e) => Math.round(ru(e)) }), Xe = {
4518
+ test: mr("rgb", "red"),
4519
4519
  parse: ki("red", "green", "blue"),
4520
- 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)) + ")"
4521
4521
  };
4522
4522
  function ou(e) {
4523
4523
  let t = "", n = "", r = "", o = "";
@@ -4528,27 +4528,27 @@ function ou(e) {
4528
4528
  alpha: o ? parseInt(o, 16) / 255 : 1
4529
4529
  };
4530
4530
  }
4531
- const jn = {
4532
- test: hr("#"),
4531
+ const qn = {
4532
+ test: mr("#"),
4533
4533
  parse: ou,
4534
4534
  transform: Xe.transform
4535
- }, mn = {
4536
- test: (e) => Xe.test(e) || jn.test(e) || lt.test(e),
4537
- parse: (e) => Xe.test(e) ? Xe.parse(e) : lt.test(e) ? lt.parse(e) : jn.parse(e),
4535
+ }, fn = {
4536
+ test: (e) => Xe.test(e) || qn.test(e) || lt.test(e),
4537
+ parse: (e) => Xe.test(e) ? Xe.parse(e) : lt.test(e) ? lt.parse(e) : qn.parse(e),
4538
4538
  transform: (e) => Ot(e) ? e : e.hasOwnProperty("red") ? Xe.transform(e) : lt.transform(e)
4539
4539
  }, Fi = "${c}", $i = "${n}";
4540
4540
  function iu(e) {
4541
4541
  var t, n, r, o;
4542
- 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(qn)) === 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;
4543
4543
  }
4544
4544
  function Ei(e) {
4545
4545
  typeof e == "number" && (e = `${e}`);
4546
4546
  const t = [];
4547
4547
  let n = 0;
4548
- const r = e.match(qn);
4549
- r && (n = r.length, e = e.replace(qn, Fi), t.push(...r.map(mn.parse)));
4550
- const o = e.match(Xt);
4551
- return o && (e = e.replace(Xt, $i), t.push(...o.map(fn.parse))), { values: t, numColors: n, tokenised: e };
4548
+ const r = e.match(Nn);
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 };
4552
4552
  }
4553
4553
  function Ai(e) {
4554
4554
  return Ei(e).values;
@@ -4558,7 +4558,7 @@ function Oi(e) {
4558
4558
  return (a) => {
4559
4559
  let s = r;
4560
4560
  for (let l = 0; l < o; l++)
4561
- 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]));
4562
4562
  return s;
4563
4563
  };
4564
4564
  }
@@ -4568,7 +4568,7 @@ function su(e) {
4568
4568
  return Oi(e)(t.map(au));
4569
4569
  }
4570
4570
  const zi = { test: iu, parse: Ai, createTransformer: Oi, getAnimatableNone: su };
4571
- function Mn(e, t, n) {
4571
+ function Vn(e, t, n) {
4572
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;
4573
4573
  }
4574
4574
  function mo({ hue: e, saturation: t, lightness: n, alpha: r }) {
@@ -4578,7 +4578,7 @@ function mo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4578
4578
  o = a = s = n;
4579
4579
  else {
4580
4580
  const l = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - l;
4581
- 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);
4582
4582
  }
4583
4583
  return {
4584
4584
  red: Math.round(o * 255),
@@ -4590,7 +4590,7 @@ function mo({ hue: e, saturation: t, lightness: n, alpha: r }) {
4590
4590
  const lu = (e, t, n) => {
4591
4591
  const r = e * e, o = t * t;
4592
4592
  return Math.sqrt(Math.max(0, n * (o - r) + r));
4593
- }, cu = [jn, 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) => {
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
4594
  let n = ho(e), r = ho(t);
4595
4595
  Ft(!!n, vo(e)), Ft(!!r, vo(t));
4596
4596
  let o = n.parse(e), a = r.parse(t);
@@ -4599,11 +4599,11 @@ const lu = (e, t, n) => {
4599
4599
  return (l) => {
4600
4600
  for (const c in s)
4601
4601
  c !== "alpha" && (s[c] = lu(o[c], a[c], l));
4602
- return s.alpha = mr(o.alpha, a.alpha, l), n.transform(s);
4602
+ return s.alpha = fr(o.alpha, a.alpha, l), n.transform(s);
4603
4603
  };
4604
4604
  }, uu = (e) => typeof e == "number", du = (e, t) => (n) => t(e(n)), Ti = (...e) => e.reduce(du);
4605
4605
  function Li(e, t) {
4606
- return uu(e) ? (n) => mr(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);
4607
4607
  }
4608
4608
  const Ni = (e, t) => {
4609
4609
  const n = [...e], r = n.length, o = e.map((a, s) => Li(a, t[s]));
@@ -4632,12 +4632,12 @@ function bo(e) {
4632
4632
  const qi = (e, t) => {
4633
4633
  const n = zi.createTransformer(t), r = bo(e), o = bo(t);
4634
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}`);
4635
- }, pu = (e, t) => (n) => mr(e, t, n);
4635
+ }, pu = (e, t) => (n) => fr(e, t, n);
4636
4636
  function fu(e) {
4637
4637
  if (typeof e == "number")
4638
4638
  return pu;
4639
4639
  if (typeof e == "string")
4640
- return mn.test(e) ? Pi : qi;
4640
+ return fn.test(e) ? Pi : qi;
4641
4641
  if (Array.isArray(e))
4642
4642
  return Ni;
4643
4643
  if (typeof e == "object")
@@ -4690,8 +4690,8 @@ class yu {
4690
4690
  function xu(e) {
4691
4691
  return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
4692
4692
  }
4693
- function vr({ data_field: e, aggregation: t }, n) {
4694
- return fr(n, e, t);
4693
+ function hr({ data_field: e, aggregation: t }, n) {
4694
+ return pr(n, e, t);
4695
4695
  }
4696
4696
  function zt({ formatter: e }, t) {
4697
4697
  return ["string", "number"].includes(typeof t) ? De(t).format(e) : xu(t);
@@ -4709,7 +4709,7 @@ function wu(e, t) {
4709
4709
  aggregation: l,
4710
4710
  size: c,
4711
4711
  weight: d
4712
- } = r, u = fr(t, s, l), p = zt(r, u);
4712
+ } = r, u = pr(t, s, l), p = zt(r, u);
4713
4713
  n[o] = /* @__PURE__ */ i(C, {
4714
4714
  sx: {
4715
4715
  fontSize: c,
@@ -4734,29 +4734,29 @@ function _u(e) {
4734
4734
  return a !== n.length - 1 && s.push(/* @__PURE__ */ i("br", {})), s;
4735
4735
  }).flat().filter((o) => o !== void 0);
4736
4736
  }
4737
- function kn(e) {
4737
+ function Mn(e) {
4738
4738
  return _u(e);
4739
4739
  }
4740
- function Gn(e, t, n) {
4740
+ function jn(e, t, n) {
4741
4741
  const r = wu(t, n), o = /^\{(.+)\}(.*)$/;
4742
4742
  return e.split("$").map((a) => {
4743
4743
  var d;
4744
4744
  const s = o.exec(a);
4745
4745
  if (!s)
4746
- return kn(a);
4746
+ return Mn(a);
4747
4747
  const l = r[s[1]];
4748
4748
  if (!l)
4749
- return kn(a);
4749
+ return Mn(a);
4750
4750
  const c = (d = s[2]) != null ? d : "";
4751
4751
  return /* @__PURE__ */ g(re, {
4752
- children: [l, kn(c)]
4752
+ children: [l, Mn(c)]
4753
4753
  });
4754
4754
  });
4755
4755
  }
4756
4756
  function Ru(e, t) {
4757
4757
  const n = {};
4758
4758
  return e.forEach((r) => {
4759
- const { name: o, data_field: a, aggregation: s } = r, l = fr(t, a, s);
4759
+ const { name: o, data_field: a, aggregation: s } = r, l = pr(t, a, s);
4760
4760
  n[o] = zt(r, l);
4761
4761
  }), n;
4762
4762
  }
@@ -4774,7 +4774,7 @@ function ji(e, t, n) {
4774
4774
  return `${l}${c}`;
4775
4775
  }).join("");
4776
4776
  }
4777
- const br = {
4777
+ const vr = {
4778
4778
  x_axis: {
4779
4779
  name: "X Axis",
4780
4780
  data_key: ""
@@ -4787,10 +4787,10 @@ const br = {
4787
4787
  variables: [],
4788
4788
  reference_lines: []
4789
4789
  };
4790
- ge.use([sn, Gs, Zo, vt, bt, yt, it]);
4790
+ ge.use([an, Gs, Zo, vt, bt, yt, it]);
4791
4791
  function Du(e, t, n) {
4792
4792
  const r = t.reduce((o, a) => {
4793
- const s = vr(a, n);
4793
+ const s = hr(a, n);
4794
4794
  return o[a.name] = zt(a, s), o;
4795
4795
  }, {});
4796
4796
  return e.map((o) => ({
@@ -4827,7 +4827,7 @@ function Iu({
4827
4827
  color: l,
4828
4828
  variables: c,
4829
4829
  reference_lines: d
4830
- } = le({}, t, br), {
4830
+ } = le({}, t, vr), {
4831
4831
  xAxisData: u,
4832
4832
  boxplotData: p
4833
4833
  } = L(() => {
@@ -5020,7 +5020,7 @@ function ku({
5020
5020
  control: e,
5021
5021
  render: ({
5022
5022
  field: o
5023
- }) => /* @__PURE__ */ i(pn, {
5023
+ }) => /* @__PURE__ */ i(gn, {
5024
5024
  data: r,
5025
5025
  withStyle: !1,
5026
5026
  ...o
@@ -5055,7 +5055,7 @@ function Fu({
5055
5055
  }), s = t("variables"), l = r.map((d, u) => ({
5056
5056
  ...d,
5057
5057
  ...s[u]
5058
- })), c = () => o(gn());
5058
+ })), c = () => o(dn());
5059
5059
  return /* @__PURE__ */ g(R, {
5060
5060
  children: [l.map((d, u) => /* @__PURE__ */ i(ku, {
5061
5061
  control: e,
@@ -5078,7 +5078,7 @@ function $u({
5078
5078
  const {
5079
5079
  value: t,
5080
5080
  set: n
5081
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, br), [t]), {
5081
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, vr), [t]), {
5082
5082
  control: a,
5083
5083
  handleSubmit: s,
5084
5084
  watch: l,
@@ -5270,7 +5270,7 @@ const Au = {
5270
5270
  name: "boxplot",
5271
5271
  viewRender: Iu,
5272
5272
  configRender: $u,
5273
- createConfig: () => br
5273
+ createConfig: () => vr
5274
5274
  };
5275
5275
  function Ou(e) {
5276
5276
  const t = e.y_axes.some((n) => !!n.name);
@@ -5313,7 +5313,7 @@ function Pu(e, t, n, r) {
5313
5313
  }
5314
5314
  function Tu(e, t, n) {
5315
5315
  const r = t.reduce((o, a) => {
5316
- const s = vr(a, n);
5316
+ const s = hr(a, n);
5317
5317
  return o[a.name] = zt(a, s), o;
5318
5318
  }, {});
5319
5319
  return e.map((o) => ({
@@ -5340,7 +5340,7 @@ function Tu(e, t, n) {
5340
5340
  }
5341
5341
  function Lu(e, t, n) {
5342
5342
  const r = t.reduce((o, a) => {
5343
- const s = vr(a, n);
5343
+ const s = hr(a, n);
5344
5344
  return o[a.name] = zt(a, s), o;
5345
5345
  }, {});
5346
5346
  return e.map((o) => ({
@@ -5522,7 +5522,7 @@ function Wu(e, t) {
5522
5522
  };
5523
5523
  return We({}, c, Hu);
5524
5524
  }
5525
- const yr = {
5525
+ const br = {
5526
5526
  regressions: [],
5527
5527
  series: [],
5528
5528
  stats: { templates: { bottom: "", top: "" }, variables: [] },
@@ -5545,7 +5545,7 @@ const yr = {
5545
5545
  reference_lines: [],
5546
5546
  reference_areas: []
5547
5547
  };
5548
- ge.use([sn, ei, ti, ni, vt, bt, yt, it, Zo, js]);
5548
+ ge.use([an, ei, ti, ni, vt, bt, yt, it, Zo, js]);
5549
5549
  ge.registerTransform(ri.regression);
5550
5550
  function yo(e) {
5551
5551
  return e.trim().length > 0;
@@ -5571,16 +5571,16 @@ function Yu({
5571
5571
  }) {
5572
5572
  const {
5573
5573
  value: t
5574
- } = U(e.instanceData, "config"), n = L(() => le({}, t, yr), [t]), r = e.data, {
5574
+ } = U(e.instanceData, "config"), n = L(() => le({}, t, br), [t]), r = e.data, {
5575
5575
  width: o,
5576
5576
  height: a
5577
5577
  } = e.viewport, {
5578
5578
  ref: s,
5579
5579
  height: l
5580
- } = Pn(), {
5580
+ } = zn(), {
5581
5581
  ref: c,
5582
5582
  height: d
5583
- } = Pn(), u = w.useMemo(() => {
5583
+ } = zn(), u = w.useMemo(() => {
5584
5584
  const {
5585
5585
  stats: {
5586
5586
  templates: f,
@@ -5588,8 +5588,8 @@ function Yu({
5588
5588
  }
5589
5589
  } = n;
5590
5590
  return {
5591
- top: Gn(f.top, h, r),
5592
- bottom: Gn(f.bottom, h, r)
5591
+ top: jn(f.top, h, r),
5592
+ bottom: jn(f.bottom, h, r)
5593
5593
  };
5594
5594
  }, [n, r]), p = Math.max(0, a - l - d);
5595
5595
  return /* @__PURE__ */ g(G, {
@@ -6659,7 +6659,7 @@ function md({
6659
6659
  control: e,
6660
6660
  render: ({
6661
6661
  field: o
6662
- }) => /* @__PURE__ */ i(pn, {
6662
+ }) => /* @__PURE__ */ i(gn, {
6663
6663
  data: r,
6664
6664
  ...o
6665
6665
  })
@@ -6695,7 +6695,7 @@ function hd({
6695
6695
  const s = t("stats.variables"), l = r.map((d, u) => ({
6696
6696
  ...d,
6697
6697
  ...s[u]
6698
- })), c = () => o(gn());
6698
+ })), c = () => o(dn());
6699
6699
  return /* @__PURE__ */ g(R, {
6700
6700
  children: [/* @__PURE__ */ g(R, {
6701
6701
  spacing: 0,
@@ -6704,7 +6704,7 @@ function hd({
6704
6704
  control: e,
6705
6705
  render: ({
6706
6706
  field: d
6707
- }) => /* @__PURE__ */ i(Nn, {
6707
+ }) => /* @__PURE__ */ i(Ln, {
6708
6708
  label: "Template for stats above the chart",
6709
6709
  py: "md",
6710
6710
  sx: {
@@ -6717,7 +6717,7 @@ function hd({
6717
6717
  control: e,
6718
6718
  render: ({
6719
6719
  field: d
6720
- }) => /* @__PURE__ */ i(Nn, {
6720
+ }) => /* @__PURE__ */ i(Ln, {
6721
6721
  label: "Template for stats under the chart",
6722
6722
  py: "md",
6723
6723
  sx: {
@@ -6761,7 +6761,7 @@ function vd({
6761
6761
  control: e,
6762
6762
  render: ({
6763
6763
  field: o
6764
- }) => /* @__PURE__ */ i(pn, {
6764
+ }) => /* @__PURE__ */ i(gn, {
6765
6765
  data: r,
6766
6766
  withStyle: !1,
6767
6767
  ...o
@@ -6796,7 +6796,7 @@ function bd({
6796
6796
  }), s = t("variables"), l = r.map((d, u) => ({
6797
6797
  ...d,
6798
6798
  ...s[u]
6799
- })), c = () => o(gn());
6799
+ })), c = () => o(dn());
6800
6800
  return /* @__PURE__ */ g(R, {
6801
6801
  children: [l.map((d, u) => /* @__PURE__ */ i(vd, {
6802
6802
  control: e,
@@ -6983,7 +6983,7 @@ function wd({
6983
6983
  control: e,
6984
6984
  render: ({
6985
6985
  field: r
6986
- }) => /* @__PURE__ */ i(pr, {
6986
+ }) => /* @__PURE__ */ i(gr, {
6987
6987
  ...r
6988
6988
  })
6989
6989
  })]
@@ -7105,7 +7105,7 @@ function Id({
7105
7105
  const {
7106
7106
  value: t,
7107
7107
  set: n
7108
- } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, yr), [t]), a = L(() => Dd(o), [o]);
7108
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, br), [t]), a = L(() => Dd(o), [o]);
7109
7109
  Z(() => {
7110
7110
  !we(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
7111
7111
  }, [o, a]);
@@ -7278,8 +7278,8 @@ const Md = {
7278
7278
  name: "cartesian",
7279
7279
  viewRender: Yu,
7280
7280
  configRender: Id,
7281
- createConfig: () => yr
7282
- }, xr = {
7281
+ createConfig: () => br
7282
+ }, yr = {
7283
7283
  x_axis: {
7284
7284
  name: "X Axis",
7285
7285
  data_key: ""
@@ -7294,7 +7294,7 @@ const Md = {
7294
7294
  color: "red"
7295
7295
  }
7296
7296
  };
7297
- function Cr(e) {
7297
+ function xr(e) {
7298
7298
  return De(e).format({
7299
7299
  output: "percent",
7300
7300
  mantissa: 0
@@ -7303,7 +7303,7 @@ function Cr(e) {
7303
7303
  function kd(e) {
7304
7304
  const t = e.value[1];
7305
7305
  try {
7306
- return Cr(t);
7306
+ return xr(t);
7307
7307
  } catch (n) {
7308
7308
  return console.error(n), t;
7309
7309
  }
@@ -7314,11 +7314,11 @@ function Fd(e) {
7314
7314
  return "";
7315
7315
  const n = t.map((r, o) => {
7316
7316
  const a = r.seriesName, [s, l] = r.value;
7317
- return a ? `${a}: <strong>${(o === 0 ? (d) => d : Cr)(l)}</strong>` : l;
7317
+ return a ? `${a}: <strong>${(o === 0 ? (d) => d : xr)(l)}</strong>` : l;
7318
7318
  });
7319
7319
  return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
7320
7320
  }
7321
- ge.use([ei, ti, sn, vt, bt, yt, it]);
7321
+ ge.use([ei, ti, an, vt, bt, yt, it]);
7322
7322
  function $d({
7323
7323
  context: e
7324
7324
  }) {
@@ -7332,7 +7332,7 @@ function $d({
7332
7332
  data_key: s,
7333
7333
  bar: l,
7334
7334
  line: c
7335
- } = le({}, t, xr), {
7335
+ } = le({}, t, yr), {
7336
7336
  barData: d,
7337
7337
  lineData: u
7338
7338
  } = L(() => {
@@ -7382,7 +7382,7 @@ function $d({
7382
7382
  },
7383
7383
  axisLabel: {
7384
7384
  show: !0,
7385
- formatter: Cr
7385
+ formatter: xr
7386
7386
  }
7387
7387
  }],
7388
7388
  series: [{
@@ -7427,7 +7427,7 @@ function Ed({
7427
7427
  const {
7428
7428
  value: t,
7429
7429
  set: n
7430
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, xr), [t]), {
7430
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, yr), [t]), {
7431
7431
  control: a,
7432
7432
  handleSubmit: s,
7433
7433
  watch: l,
@@ -7599,8 +7599,8 @@ const Od = {
7599
7599
  name: "paretoChart",
7600
7600
  viewRender: $d,
7601
7601
  configRender: Ed,
7602
- createConfig: () => xr
7603
- }, wr = {
7602
+ createConfig: () => yr
7603
+ }, Cr = {
7604
7604
  label_field: "",
7605
7605
  value_field: ""
7606
7606
  };
@@ -7650,7 +7650,7 @@ function Pd({
7650
7650
  } = e.viewport, {
7651
7651
  label_field: a,
7652
7652
  value_field: s
7653
- } = le({}, t, wr), l = L(() => n.map((u) => ({
7653
+ } = le({}, t, Cr), l = L(() => n.map((u) => ({
7654
7654
  name: u[a],
7655
7655
  value: Number(u[s])
7656
7656
  })), [n, a, s]), c = L(() => ({
@@ -7685,7 +7685,7 @@ function Td({
7685
7685
  } = U(e.instanceData, "config"), {
7686
7686
  label_field: r,
7687
7687
  value_field: o
7688
- } = le({}, t, wr), a = e.data, s = or({
7688
+ } = le({}, t, Cr), a = e.data, s = rr({
7689
7689
  initialValues: {
7690
7690
  label_field: r,
7691
7691
  value_field: o
@@ -7760,7 +7760,7 @@ const Nd = {
7760
7760
  name: "pie",
7761
7761
  viewRender: Pd,
7762
7762
  configRender: Td,
7763
- createConfig: () => wr
7763
+ createConfig: () => Cr
7764
7764
  };
7765
7765
  function Gi(e) {
7766
7766
  return e ? (t) => {
@@ -7885,7 +7885,7 @@ function Bd(e, t) {
7885
7885
  };
7886
7886
  return K.merge({}, Gd, a);
7887
7887
  }
7888
- const Sr = {
7888
+ const wr = {
7889
7889
  series_name_key: "name",
7890
7890
  dimensions: []
7891
7891
  };
@@ -7898,7 +7898,7 @@ function Hd({
7898
7898
  } = U(e.instanceData, "config"), {
7899
7899
  width: n,
7900
7900
  height: r
7901
- } = e.viewport, o = e.data, a = L(() => Bd(We({}, t, Sr), o), [t, o]);
7901
+ } = e.viewport, o = e.data, a = L(() => Bd(We({}, t, wr), o), [t, o]);
7902
7902
  return !n || !r || !t || Lo(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ i(G, {
7903
7903
  children: /* @__PURE__ */ i(at, {
7904
7904
  echarts: ge,
@@ -7980,7 +7980,7 @@ function Wd({
7980
7980
  control: e,
7981
7981
  render: ({
7982
7982
  field: o
7983
- }) => /* @__PURE__ */ i(pr, {
7983
+ }) => /* @__PURE__ */ i(gr, {
7984
7984
  ...o
7985
7985
  })
7986
7986
  })]
@@ -8059,7 +8059,7 @@ function Qd({
8059
8059
  const t = e.data, {
8060
8060
  value: n,
8061
8061
  set: r
8062
- } = U(e.instanceData, "config"), o = L(() => We({}, n, Sr), [n]), {
8062
+ } = U(e.instanceData, "config"), o = L(() => We({}, n, wr), [n]), {
8063
8063
  dimensions: a,
8064
8064
  series_name_key: s
8065
8065
  } = o, l = L(() => ({
@@ -8150,7 +8150,7 @@ const Xd = {
8150
8150
  name: "radar",
8151
8151
  viewRender: Hd,
8152
8152
  configRender: Qd,
8153
- createConfig: () => Sr
8153
+ createConfig: () => wr
8154
8154
  };
8155
8155
  function Kd(e, t) {
8156
8156
  switch (e.config.method) {
@@ -8383,7 +8383,7 @@ function ng(e, t) {
8383
8383
  rSquared: 0
8384
8384
  };
8385
8385
  }
8386
- const _r = {
8386
+ const Sr = {
8387
8387
  x_axis: {
8388
8388
  name: "X Axis",
8389
8389
  data_key: ""
@@ -8413,7 +8413,7 @@ const _r = {
8413
8413
  y_axis_data_key: "value"
8414
8414
  }
8415
8415
  };
8416
- ge.use([sn, ni, vt, bt, yt, it]);
8416
+ ge.use([an, ni, vt, bt, yt, it]);
8417
8417
  ge.registerTransform(ri.regression);
8418
8418
  function rg({
8419
8419
  context: e
@@ -8430,7 +8430,7 @@ function rg({
8430
8430
  ...h,
8431
8431
  [p]: Number(h[p])
8432
8432
  }) : u;
8433
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = L(() => tg(We({}, t, _r), o), [t, o]), {
8433
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = L(() => tg(We({}, t, Sr), o), [t, o]), {
8434
8434
  expression: s,
8435
8435
  rSquared: l,
8436
8436
  adjustedRSquared: c
@@ -8460,7 +8460,7 @@ function rg({
8460
8460
  width: n - 190,
8461
8461
  height: d
8462
8462
  }
8463
- }), l && /* @__PURE__ */ i(Kn, {
8463
+ }), l && /* @__PURE__ */ i(Xn, {
8464
8464
  mt: 20,
8465
8465
  fontSize: 12,
8466
8466
  sx: {
@@ -8604,7 +8604,7 @@ function ag({
8604
8604
  const {
8605
8605
  value: t,
8606
8606
  set: n
8607
- } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, _r), [t]), {
8607
+ } = U(e.instanceData, "config"), r = e.data, o = L(() => le({}, t, Sr), [t]), {
8608
8608
  control: a,
8609
8609
  handleSubmit: s,
8610
8610
  watch: l,
@@ -8732,8 +8732,8 @@ const lg = {
8732
8732
  name: "regressionChart",
8733
8733
  viewRender: rg,
8734
8734
  configRender: ag,
8735
- createConfig: () => _r
8736
- }, Rr = {
8735
+ createConfig: () => Sr
8736
+ }, _r = {
8737
8737
  content: ""
8738
8738
  };
8739
8739
  function Bi(e) {
@@ -8776,7 +8776,7 @@ function ug({
8776
8776
  const {
8777
8777
  value: t,
8778
8778
  set: n
8779
- } = U(e.instanceData, "config"), r = L(() => le({}, t, Rr), [t]), {
8779
+ } = U(e.instanceData, "config"), r = L(() => le({}, t, _r), [t]), {
8780
8780
  control: o,
8781
8781
  handleSubmit: a,
8782
8782
  watch: s,
@@ -8821,7 +8821,7 @@ function ug({
8821
8821
  sx: {
8822
8822
  flex: 1
8823
8823
  },
8824
- ...rn(p, "ref")
8824
+ ...nn(p, "ref")
8825
8825
  })
8826
8826
  })]
8827
8827
  })
@@ -8833,7 +8833,7 @@ class dg extends Se {
8833
8833
  F(this, "VERSION", 1);
8834
8834
  }
8835
8835
  fixMalformedConfig(n) {
8836
- return le({}, n, Rr);
8836
+ return le({}, n, _r);
8837
8837
  }
8838
8838
  configVersions() {
8839
8839
  this.version(1, (n) => ({
@@ -8848,8 +8848,8 @@ const gg = {
8848
8848
  name: "richText",
8849
8849
  viewRender: cg,
8850
8850
  configRender: ug,
8851
- createConfig: () => Rr
8852
- }, Dr = {
8851
+ createConfig: () => _r
8852
+ }, Rr = {
8853
8853
  align: "center",
8854
8854
  template: "The variable ${value} is defined in Variables section",
8855
8855
  variables: [
@@ -8917,12 +8917,12 @@ function mg({
8917
8917
  context: e
8918
8918
  }) {
8919
8919
  const {
8920
- value: t = Dr
8920
+ value: t = Rr
8921
8921
  } = U(e.instanceData, "config"), {
8922
8922
  template: n,
8923
8923
  variables: r,
8924
8924
  align: o
8925
- } = t, a = L(() => Gn(n, r, e.data), [n, r, e.data]);
8925
+ } = t, a = L(() => jn(n, r, e.data), [n, r, e.data]);
8926
8926
  return /* @__PURE__ */ i(C, {
8927
8927
  align: o,
8928
8928
  children: Object.values(a).map((s, l) => /* @__PURE__ */ i(w.Fragment, {
@@ -8950,7 +8950,7 @@ function hg({
8950
8950
  control: e,
8951
8951
  render: ({
8952
8952
  field: o
8953
- }) => /* @__PURE__ */ i(pn, {
8953
+ }) => /* @__PURE__ */ i(gn, {
8954
8954
  data: r,
8955
8955
  ...o
8956
8956
  })
@@ -8984,7 +8984,7 @@ function vg({
8984
8984
  }), s = t("variables"), l = r.map((d, u) => ({
8985
8985
  ...d,
8986
8986
  ...s[u]
8987
- })), c = () => o(gn());
8987
+ })), c = () => o(dn());
8988
8988
  return /* @__PURE__ */ g(R, {
8989
8989
  children: [l.map((d, u) => /* @__PURE__ */ i(hg, {
8990
8990
  control: e,
@@ -9012,7 +9012,7 @@ function bg({
9012
9012
  align: f,
9013
9013
  template: h = "",
9014
9014
  variables: b = []
9015
- } = We({}, n, Dr);
9015
+ } = We({}, n, Rr);
9016
9016
  return {
9017
9017
  variables: b,
9018
9018
  template: h,
@@ -9062,7 +9062,7 @@ function bg({
9062
9062
  control: a,
9063
9063
  render: ({
9064
9064
  field: f
9065
- }) => /* @__PURE__ */ i(Nn, {
9065
+ }) => /* @__PURE__ */ i(Ln, {
9066
9066
  label: "Template",
9067
9067
  py: "md",
9068
9068
  sx: {
@@ -9087,7 +9087,7 @@ const yg = {
9087
9087
  createConfig() {
9088
9088
  return {
9089
9089
  version: 1,
9090
- config: Dr
9090
+ config: Rr
9091
9091
  };
9092
9092
  },
9093
9093
  displayName: "Stats",
@@ -9095,7 +9095,7 @@ const yg = {
9095
9095
  name: "stats",
9096
9096
  viewRender: mg,
9097
9097
  configRender: bg
9098
- }, Ir = {
9098
+ }, Dr = {
9099
9099
  label_field: "",
9100
9100
  value_field: ""
9101
9101
  };
@@ -9123,7 +9123,7 @@ function Cg({
9123
9123
  } = e.viewport, {
9124
9124
  label_field: a,
9125
9125
  value_field: s
9126
- } = le({}, t, Ir), l = L(() => n.map((p) => ({
9126
+ } = le({}, t, Dr), l = L(() => n.map((p) => ({
9127
9127
  name: p[a],
9128
9128
  value: Number(p[s])
9129
9129
  })), [n, a, s]), c = L(() => {
@@ -9161,7 +9161,7 @@ function wg({
9161
9161
  } = U(e.instanceData, "config"), {
9162
9162
  label_field: r,
9163
9163
  value_field: o
9164
- } = le({}, t, Ir), a = e.data, s = or({
9164
+ } = le({}, t, Dr), a = e.data, s = rr({
9165
9165
  initialValues: {
9166
9166
  label_field: r,
9167
9167
  value_field: o
@@ -9236,10 +9236,10 @@ const _g = {
9236
9236
  name: "sunburst",
9237
9237
  viewRender: Cg,
9238
9238
  configRender: wg,
9239
- createConfig: () => Ir
9239
+ createConfig: () => Dr
9240
9240
  };
9241
9241
  var Ke = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e))(Ke || {});
9242
- const Kt = {
9242
+ const Xt = {
9243
9243
  columns: [],
9244
9244
  fontSize: "1rem",
9245
9245
  highlightOnHover: !1,
@@ -9270,7 +9270,7 @@ function Ve(e, t) {
9270
9270
  }));
9271
9271
  };
9272
9272
  }
9273
- function Zt(e) {
9273
+ function Kt(e) {
9274
9274
  return e instanceof Function;
9275
9275
  }
9276
9276
  function Rg(e, t) {
@@ -9584,7 +9584,7 @@ const Wt = {
9584
9584
  size: 150,
9585
9585
  minSize: 20,
9586
9586
  maxSize: Number.MAX_SAFE_INTEGER
9587
- }, Fn = () => ({
9587
+ }, kn = () => ({
9588
9588
  startOffset: null,
9589
9589
  startSize: null,
9590
9590
  deltaOffset: null,
@@ -9595,7 +9595,7 @@ const Wt = {
9595
9595
  getDefaultColumnDef: () => Wt,
9596
9596
  getInitialState: (e) => ({
9597
9597
  columnSizing: {},
9598
- columnSizingInfo: Fn(),
9598
+ columnSizingInfo: kn(),
9599
9599
  ...e
9600
9600
  }),
9601
9601
  getDefaultOptions: (e) => ({
@@ -9655,9 +9655,9 @@ const Wt = {
9655
9655
  getResizeHandler: () => {
9656
9656
  const n = t.getColumn(e.column.id), r = n.getCanResize();
9657
9657
  return (o) => {
9658
- 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))
9659
9659
  return;
9660
- 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) => {
9661
9661
  if (typeof b != "number")
9662
9662
  return;
9663
9663
  let v = {};
@@ -9694,7 +9694,7 @@ const Wt = {
9694
9694
  }, f = Mg() ? {
9695
9695
  passive: !1
9696
9696
  } : !1;
9697
- $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) => ({
9698
9698
  ...h,
9699
9699
  startOffset: l,
9700
9700
  startSize: a,
@@ -9715,7 +9715,7 @@ const Wt = {
9715
9715
  },
9716
9716
  resetHeaderSizeInfo: (t) => {
9717
9717
  var n;
9718
- e.setColumnSizingInfo(t ? Fn() : (n = e.initialState.columnSizingInfo) != null ? n : Fn());
9718
+ e.setColumnSizingInfo(t ? kn() : (n = e.initialState.columnSizingInfo) != null ? n : kn());
9719
9719
  },
9720
9720
  getTotalSize: () => {
9721
9721
  var t, n;
@@ -9753,7 +9753,7 @@ function Mg() {
9753
9753
  }
9754
9754
  return Ut = e, Ut;
9755
9755
  }
9756
- function $n(e) {
9756
+ function Fn(e) {
9757
9757
  return e.type === "touchstart";
9758
9758
  }
9759
9759
  const kg = {
@@ -9889,12 +9889,12 @@ const Xi = (e, t, n) => e.getValue(t) === n;
9889
9889
  Xi.autoRemove = (e) => Fe(e);
9890
9890
  const Ki = (e, t, n) => e.getValue(t) == n;
9891
9891
  Ki.autoRemove = (e) => Fe(e);
9892
- const Vr = (e, t, n) => {
9892
+ const Ir = (e, t, n) => {
9893
9893
  let [r, o] = n;
9894
9894
  const a = e.getValue(t);
9895
9895
  return a >= r && a <= o;
9896
9896
  };
9897
- Vr.resolveFilterValue = (e) => {
9897
+ Ir.resolveFilterValue = (e) => {
9898
9898
  let [t, n] = e, r = typeof t != "number" ? parseFloat(t) : t, o = typeof n != "number" ? parseFloat(n) : n, a = t === null || Number.isNaN(r) ? -1 / 0 : r, s = n === null || Number.isNaN(o) ? 1 / 0 : o;
9899
9899
  if (a > s) {
9900
9900
  const l = a;
@@ -9902,7 +9902,7 @@ Vr.resolveFilterValue = (e) => {
9902
9902
  }
9903
9903
  return [a, s];
9904
9904
  };
9905
- Vr.autoRemove = (e) => Fe(e) || Fe(e[0]) && Fe(e[1]);
9905
+ Ir.autoRemove = (e) => Fe(e) || Fe(e[0]) && Fe(e[1]);
9906
9906
  const je = {
9907
9907
  includesString: Hi,
9908
9908
  includesStringSensitive: Wi,
@@ -9912,7 +9912,7 @@ const je = {
9912
9912
  arrIncludesSome: Ji,
9913
9913
  equals: Xi,
9914
9914
  weakEquals: Ki,
9915
- inNumberRange: Vr
9915
+ inNumberRange: Ir
9916
9916
  };
9917
9917
  function Fe(e) {
9918
9918
  return e == null || e === "";
@@ -9944,7 +9944,7 @@ const Fg = {
9944
9944
  },
9945
9945
  getFilterFn: () => {
9946
9946
  var n, r;
9947
- 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];
9948
9948
  },
9949
9949
  getCanFilter: () => {
9950
9950
  var n, r, o;
@@ -10002,7 +10002,7 @@ const Fg = {
10002
10002
  const {
10003
10003
  globalFilterFn: r
10004
10004
  } = e.options;
10005
- 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];
10006
10006
  },
10007
10007
  setColumnFilters: (t) => {
10008
10008
  const n = e.getAllLeafColumns(), r = (o) => {
@@ -10081,7 +10081,7 @@ const $g = (e, t, n) => n.reduce((r, o) => {
10081
10081
  let a = o.getValue(e);
10082
10082
  typeof a == "number" && (n = Math.min(n, a), r = Math.max(r, a));
10083
10083
  }), (n + r) / 2;
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, 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 = {
10085
10085
  sum: $g,
10086
10086
  min: Eg,
10087
10087
  max: Ag,
@@ -10132,15 +10132,15 @@ const $g = (e, t, n) => n.reduce((r, o) => {
10132
10132
  getAutoAggregationFn: () => {
10133
10133
  const n = t.getCoreRowModel().flatRows[0], r = n == null ? void 0 : n.getValue(e.id);
10134
10134
  if (typeof r == "number")
10135
- return En.sum;
10135
+ return $n.sum;
10136
10136
  if (Object.prototype.toString.call(r) === "[object Date]")
10137
- return En.extent;
10137
+ return $n.extent;
10138
10138
  },
10139
10139
  getAggregationFn: () => {
10140
10140
  var n, r;
10141
10141
  if (!e)
10142
10142
  throw new Error();
10143
- 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];
10144
10144
  }
10145
10145
  }),
10146
10146
  createTable: (e) => ({
@@ -10202,14 +10202,14 @@ const Gg = {
10202
10202
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
10203
10203
  })
10204
10204
  })
10205
- }, Bn = 0, Hn = 10, An = () => ({
10206
- pageIndex: Bn,
10207
- pageSize: Hn
10205
+ }, Gn = 0, Bn = 10, En = () => ({
10206
+ pageIndex: Gn,
10207
+ pageSize: Bn
10208
10208
  }), Bg = {
10209
10209
  getInitialState: (e) => ({
10210
10210
  ...e,
10211
10211
  pagination: {
10212
- ...An(),
10212
+ ...En(),
10213
10213
  ...e == null ? void 0 : e.pagination
10214
10214
  }
10215
10215
  }),
@@ -10241,7 +10241,7 @@ const Gg = {
10241
10241
  },
10242
10242
  resetPagination: (r) => {
10243
10243
  var o;
10244
- e.setPagination(r ? An() : (o = e.initialState.pagination) != null ? o : An());
10244
+ e.setPagination(r ? En() : (o = e.initialState.pagination) != null ? o : En());
10245
10245
  },
10246
10246
  setPageIndex: (r) => {
10247
10247
  e.setPagination((o) => {
@@ -10255,11 +10255,11 @@ const Gg = {
10255
10255
  },
10256
10256
  resetPageIndex: (r) => {
10257
10257
  var o, a, s;
10258
- e.setPageIndex(r ? Bn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageIndex) != null ? o : Bn);
10258
+ e.setPageIndex(r ? Gn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageIndex) != null ? o : Gn);
10259
10259
  },
10260
10260
  resetPageSize: (r) => {
10261
10261
  var o, a, s;
10262
- e.setPageSize(r ? Hn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageSize) != null ? o : Hn);
10262
+ e.setPageSize(r ? Bn : (o = (a = e.initialState) == null || (s = a.pagination) == null ? void 0 : s.pageSize) != null ? o : Bn);
10263
10263
  },
10264
10264
  setPageSize: (r) => {
10265
10265
  e.setPagination((o) => {
@@ -10306,12 +10306,12 @@ const Gg = {
10306
10306
  }
10307
10307
  };
10308
10308
  }
10309
- }, On = () => ({
10309
+ }, An = () => ({
10310
10310
  left: [],
10311
10311
  right: []
10312
10312
  }), Hg = {
10313
10313
  getInitialState: (e) => ({
10314
- columnPinning: On(),
10314
+ columnPinning: An(),
10315
10315
  ...e
10316
10316
  }),
10317
10317
  getDefaultOptions: (e) => ({
@@ -10395,7 +10395,7 @@ const Gg = {
10395
10395
  setColumnPinning: (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t),
10396
10396
  resetColumnPinning: (t) => {
10397
10397
  var n, r;
10398
- 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());
10399
10399
  },
10400
10400
  getIsSomeColumnsPinned: (t) => {
10401
10401
  var n;
@@ -10466,11 +10466,11 @@ const Gg = {
10466
10466
  ...n
10467
10467
  };
10468
10468
  return e.getRowModel().rows.forEach((a) => {
10469
- Wn(o, a.id, r, e);
10469
+ Hn(o, a.id, r, e);
10470
10470
  }), o;
10471
10471
  }),
10472
10472
  getPreSelectedRowModel: () => e.getCoreRowModel(),
10473
- 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) : {
10474
10474
  rows: [],
10475
10475
  flatRows: [],
10476
10476
  rowsById: {}
@@ -10481,7 +10481,7 @@ const Gg = {
10481
10481
  return (t = e.options.debugAll) != null ? t : e.options.debugTable;
10482
10482
  }
10483
10483
  }),
10484
- 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) : {
10485
10485
  rows: [],
10486
10486
  flatRows: [],
10487
10487
  rowsById: {}
@@ -10492,7 +10492,7 @@ const Gg = {
10492
10492
  return (t = e.options.debugAll) != null ? t : e.options.debugTable;
10493
10493
  }
10494
10494
  }),
10495
- 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) : {
10496
10496
  rows: [],
10497
10497
  flatRows: [],
10498
10498
  rowsById: {}
@@ -10542,14 +10542,14 @@ const Gg = {
10542
10542
  const a = {
10543
10543
  ...o
10544
10544
  };
10545
- return Wn(a, e.id, n, t), a;
10545
+ return Hn(a, e.id, n, t), a;
10546
10546
  });
10547
10547
  },
10548
10548
  getIsSelected: () => {
10549
10549
  const {
10550
10550
  rowSelection: n
10551
10551
  } = t.getState();
10552
- return Mr(e, n);
10552
+ return Vr(e, n);
10553
10553
  },
10554
10554
  getIsSomeSelected: () => {
10555
10555
  const {
@@ -10583,16 +10583,16 @@ const Gg = {
10583
10583
  };
10584
10584
  }
10585
10585
  })
10586
- }, Wn = (e, t, n, r) => {
10586
+ }, Hn = (e, t, n, r) => {
10587
10587
  var o;
10588
10588
  const a = r.getRow(t);
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) => Wn(e, s.id, n, r));
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));
10590
10590
  };
10591
- function zn(e, t) {
10591
+ function On(e, t) {
10592
10592
  const n = e.getState().rowSelection, r = [], o = {}, a = function(s, l) {
10593
10593
  return s.map((c) => {
10594
10594
  var d;
10595
- const u = Mr(c, n);
10595
+ const u = Vr(c, n);
10596
10596
  if (u && (r.push(c), o[c.id] = c), (d = c.subRows) != null && d.length && (c = {
10597
10597
  ...c,
10598
10598
  subRows: a(c.subRows)
@@ -10606,7 +10606,7 @@ function zn(e, t) {
10606
10606
  rowsById: o
10607
10607
  };
10608
10608
  }
10609
- function Mr(e, t) {
10609
+ function Vr(e, t) {
10610
10610
  var n;
10611
10611
  return (n = t[e.id]) != null ? n : !1;
10612
10612
  }
@@ -10614,23 +10614,23 @@ function wo(e, t, n) {
10614
10614
  if (e.subRows && e.subRows.length) {
10615
10615
  let r = !0, o = !1;
10616
10616
  return e.subRows.forEach((a) => {
10617
- o && !r || (Mr(a, t) ? o = !0 : r = !1);
10617
+ o && !r || (Vr(a, t) ? o = !0 : r = !1);
10618
10618
  }), r ? "all" : o ? "some" : !1;
10619
10619
  }
10620
10620
  return !1;
10621
10621
  }
10622
- const Un = /([0-9]+)/gm, Ug = (e, t, n) => Zi(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Yg = (e, t, n) => Zi(ot(e.getValue(n)), ot(t.getValue(n))), Qg = (e, t, n) => kr(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Jg = (e, t, n) => kr(ot(e.getValue(n)), ot(t.getValue(n))), Xg = (e, t, n) => {
10622
+ const Wn = /([0-9]+)/gm, Ug = (e, t, n) => Zi(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Yg = (e, t, n) => Zi(ot(e.getValue(n)), ot(t.getValue(n))), Qg = (e, t, n) => Mr(ot(e.getValue(n)).toLowerCase(), ot(t.getValue(n)).toLowerCase()), Jg = (e, t, n) => Mr(ot(e.getValue(n)), ot(t.getValue(n))), Xg = (e, t, n) => {
10623
10623
  const r = e.getValue(n), o = t.getValue(n);
10624
10624
  return r > o ? 1 : r < o ? -1 : 0;
10625
- }, Kg = (e, t, n) => kr(e.getValue(n), t.getValue(n));
10626
- function kr(e, t) {
10625
+ }, Kg = (e, t, n) => Mr(e.getValue(n), t.getValue(n));
10626
+ function Mr(e, t) {
10627
10627
  return e === t ? 0 : e > t ? 1 : -1;
10628
10628
  }
10629
10629
  function ot(e) {
10630
10630
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
10631
10631
  }
10632
10632
  function Zi(e, t) {
10633
- const n = e.split(Un).filter(Boolean), r = t.split(Un).filter(Boolean);
10633
+ const n = e.split(Wn).filter(Boolean), r = t.split(Wn).filter(Boolean);
10634
10634
  for (; n.length && r.length; ) {
10635
10635
  const o = n.shift(), a = r.shift(), s = parseInt(o, 10), l = parseInt(a, 10), c = [s, l].sort();
10636
10636
  if (isNaN(c[0])) {
@@ -10676,7 +10676,7 @@ const _t = {
10676
10676
  const a = o == null ? void 0 : o.getValue(e.id);
10677
10677
  if (Object.prototype.toString.call(a) === "[object Date]")
10678
10678
  return _t.datetime;
10679
- if (typeof a == "string" && (r = !0, a.split(Un).length > 1))
10679
+ if (typeof a == "string" && (r = !0, a.split(Wn).length > 1))
10680
10680
  return _t.alphanumeric;
10681
10681
  }
10682
10682
  return r ? _t.text : _t.basic;
@@ -10689,7 +10689,7 @@ const _t = {
10689
10689
  var n, r;
10690
10690
  if (!e)
10691
10691
  throw new Error();
10692
- 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];
10693
10693
  },
10694
10694
  toggleSorting: (n, r) => {
10695
10695
  const o = e.getNextSortingOrder(), a = typeof n < "u" && n !== null;
@@ -11148,9 +11148,9 @@ function up(e) {
11148
11148
  },
11149
11149
  renderFallbackValue: null,
11150
11150
  ...e
11151
- }, [n] = so.useState(() => ({
11151
+ }, [n] = ao.useState(() => ({
11152
11152
  current: tp(t)
11153
- })), [r, o] = so.useState(() => n.current.initialState);
11153
+ })), [r, o] = ao.useState(() => n.current.initialState);
11154
11154
  return n.current.setOptions((a) => ({
11155
11155
  ...a,
11156
11156
  ...e,
@@ -11167,7 +11167,7 @@ const dp = ({
11167
11167
  vizManager: e,
11168
11168
  instance: t
11169
11169
  }) => Be(
11170
- () => new Ar(t, e.resolveComponent(t.type), vn),
11170
+ () => new Er(t, e.resolveComponent(t.type), hn),
11171
11171
  [t, e]
11172
11172
  ), gp = (e, t) => {
11173
11173
  const [n, r] = he([]);
@@ -11226,7 +11226,7 @@ const fp = ({
11226
11226
  default:
11227
11227
  return null;
11228
11228
  }
11229
- }, Fr = {
11229
+ }, kr = {
11230
11230
  id: "builtin:table:click-cell-content",
11231
11231
  displayName: "Click Cell Content",
11232
11232
  nameRender: xp,
@@ -11294,7 +11294,7 @@ function xp(e) {
11294
11294
  children: yp(n, t)
11295
11295
  });
11296
11296
  }
11297
- const Cp = Zn((e) => ({
11297
+ const Cp = Kn((e) => ({
11298
11298
  root: {
11299
11299
  overflow: "auto",
11300
11300
  "& .table-head-cell": {
@@ -11319,7 +11319,7 @@ const Cp = Zn((e) => ({
11319
11319
  position: "sticky",
11320
11320
  top: 0
11321
11321
  }
11322
- })), wp = Zn((e, t) => ({
11322
+ })), wp = Kn((e, t) => ({
11323
11323
  content: {
11324
11324
  display: "flex",
11325
11325
  alignItems: "center",
@@ -11342,7 +11342,7 @@ function _p(e) {
11342
11342
  color: Sp(t)
11343
11343
  };
11344
11344
  }
11345
- function hn(e) {
11345
+ function mn(e) {
11346
11346
  const t = e.tableCellContext.isClickable(), n = wp({
11347
11347
  clickable: t
11348
11348
  });
@@ -11361,13 +11361,13 @@ function hn(e) {
11361
11361
  });
11362
11362
  }
11363
11363
  function Rp(e) {
11364
- return /* @__PURE__ */ i(hn, {
11364
+ return /* @__PURE__ */ i(mn, {
11365
11365
  ...e,
11366
11366
  children: e.value
11367
11367
  });
11368
11368
  }
11369
11369
  function Dp(e) {
11370
- return /* @__PURE__ */ i(hn, {
11370
+ return /* @__PURE__ */ i(mn, {
11371
11371
  ...e,
11372
11372
  children: e.value
11373
11373
  });
@@ -11376,7 +11376,7 @@ function Ip(e) {
11376
11376
  const t = De(e.value).format({
11377
11377
  thousandSeparated: !0
11378
11378
  });
11379
- return /* @__PURE__ */ i(hn, {
11379
+ return /* @__PURE__ */ i(mn, {
11380
11380
  ...e,
11381
11381
  children: t
11382
11382
  });
@@ -11386,7 +11386,7 @@ function Vp(e) {
11386
11386
  output: "percent",
11387
11387
  mantissa: 3
11388
11388
  });
11389
- return /* @__PURE__ */ i(hn, {
11389
+ return /* @__PURE__ */ i(mn, {
11390
11390
  ...e,
11391
11391
  children: t
11392
11392
  });
@@ -11412,7 +11412,7 @@ function Mp(e) {
11412
11412
  }
11413
11413
  }
11414
11414
  const kp = (e) => {
11415
- const t = dp(e), n = gp(t.triggerManager, Fr.id), {
11415
+ const t = dp(e), n = gp(t.triggerManager, kr.id), {
11416
11416
  colorManager: r
11417
11417
  } = He(Ne);
11418
11418
  return Mt((o) => new $p(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
@@ -11426,7 +11426,7 @@ function Fp({
11426
11426
  height: r,
11427
11427
  width: o
11428
11428
  } = e.viewport, {
11429
- value: a = Kt
11429
+ value: a = Xt
11430
11430
  } = U(e.instanceData, "config"), {
11431
11431
  use_raw_columns: s,
11432
11432
  columns: l,
@@ -11488,7 +11488,7 @@ function Fp({
11488
11488
  className: u(d.root, {
11489
11489
  "table-highlight-on-hover": a.highlightOnHover
11490
11490
  }),
11491
- children: /* @__PURE__ */ g(Kn, {
11491
+ children: /* @__PURE__ */ g(Xn, {
11492
11492
  sx: {
11493
11493
  maxHeight: r
11494
11494
  },
@@ -11550,7 +11550,7 @@ class $p {
11550
11550
  };
11551
11551
  }
11552
11552
  getRelatedTrigger() {
11553
- return this.triggers.filter((n) => n.schemaRef === Fr.id).filter((n) => {
11553
+ return this.triggers.filter((n) => n.schemaRef === kr.id).filter((n) => {
11554
11554
  const r = this.getColIndex(this.cell), o = Q(this.cell.column.columnDef.meta, "value_field"), a = Q(n.config, "column");
11555
11555
  return a == r || a == o;
11556
11556
  });
@@ -11574,7 +11574,7 @@ class $p {
11574
11574
  }
11575
11575
  }
11576
11576
  }
11577
- const na = Zn(() => ({
11577
+ const na = Kn(() => ({
11578
11578
  palette: {
11579
11579
  display: "flex",
11580
11580
  flexFlow: "row nowrap"
@@ -11609,11 +11609,11 @@ class Ap {
11609
11609
  F(this, "steps", /* @__PURE__ */ new Map());
11610
11610
  F(this, "interpolation");
11611
11611
  F(this, "onChange");
11612
- nr(this, {
11612
+ tr(this, {
11613
11613
  steps: Ko
11614
11614
  }, {
11615
11615
  deep: !1
11616
- }), rr(() => an(this.steps), () => {
11616
+ }), nr(() => on(this.steps), () => {
11617
11617
  this.notifyStepChange();
11618
11618
  });
11619
11619
  }
@@ -11668,12 +11668,12 @@ function Op(e) {
11668
11668
  size: "sm",
11669
11669
  className: "palette-value--up palette-value",
11670
11670
  children: M
11671
- }), /* @__PURE__ */ g(Dn, {
11671
+ }), /* @__PURE__ */ g(Rn, {
11672
11672
  width: 200,
11673
11673
  trapFocus: !0,
11674
11674
  opened: c,
11675
11675
  onClose: u,
11676
- children: [/* @__PURE__ */ i(Dn.Target, {
11676
+ children: [/* @__PURE__ */ i(Rn.Target, {
11677
11677
  children: /* @__PURE__ */ i("div", {
11678
11678
  "data-testid": "palette-item-target",
11679
11679
  className: "palette-item",
@@ -11683,7 +11683,7 @@ function Op(e) {
11683
11683
  backgroundColor: n
11684
11684
  }
11685
11685
  })
11686
- }), /* @__PURE__ */ i(Dn.Dropdown, {
11686
+ }), /* @__PURE__ */ i(Rn.Dropdown, {
11687
11687
  children: /* @__PURE__ */ g(R, {
11688
11688
  children: [/* @__PURE__ */ i(ze, {
11689
11689
  size: "xs",
@@ -11760,7 +11760,7 @@ const zp = I(({
11760
11760
  }));
11761
11761
  }
11762
11762
  const h = () => {
11763
- u(), n == null || n(an(a));
11763
+ u(), n == null || n(on(a));
11764
11764
  };
11765
11765
  function b(S) {
11766
11766
  s((M) => ({
@@ -11829,7 +11829,7 @@ function jp(e, t) {
11829
11829
  const Gp = (e) => {
11830
11830
  const {
11831
11831
  colorManager: t
11832
- } = He(Ne), [n, r] = he(ra(e.value)), [o, a] = he(qp(t, e.value)), s = ao(o), [l, c] = he(jp(t, e.value)), d = ao(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);
11833
11833
  return /* @__PURE__ */ g(y, {
11834
11834
  align: "end",
11835
11835
  children: [/* @__PURE__ */ i(T, {
@@ -11879,11 +11879,11 @@ function Wp({
11879
11879
  const {
11880
11880
  value: t,
11881
11881
  set: n
11882
- } = U(e.instanceData, "config"), r = or({
11883
- initialValues: Kt
11882
+ } = U(e.instanceData, "config"), r = rr({
11883
+ initialValues: Xt
11884
11884
  });
11885
11885
  Z(() => {
11886
- const s = le({}, t, r.values, Kt);
11886
+ const s = le({}, t, r.values, Xt);
11887
11887
  t && r.setValues(s);
11888
11888
  }, [t]);
11889
11889
  const o = e.data || [], a = () => r.insertListItem("columns", {
@@ -12092,11 +12092,11 @@ class Up extends Se {
12092
12092
  }));
12093
12093
  }
12094
12094
  }
12095
- const Yn = {
12095
+ const Un = {
12096
12096
  createConfig() {
12097
12097
  return {
12098
12098
  version: 1,
12099
- config: Po(Kt)
12099
+ config: Po(Xt)
12100
12100
  };
12101
12101
  },
12102
12102
  displayName: "Table",
@@ -12104,7 +12104,7 @@ const Yn = {
12104
12104
  name: "table",
12105
12105
  viewRender: Fp,
12106
12106
  configRender: Wp,
12107
- triggers: [Fr]
12107
+ triggers: [kr]
12108
12108
  };
12109
12109
  async function Yp(e, t, n, r = {}) {
12110
12110
  const o = {
@@ -12122,7 +12122,7 @@ async function Yp(e, t, n, r = {}) {
12122
12122
  }
12123
12123
  const Qp = ({ baseURL: e, payload: t }) => async () => e ? await Yp(e, "/expert/v2/scenario", t, {}) : {};
12124
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 || {});
12125
- const $r = {
12125
+ const Fr = {
12126
12126
  expertSystemURL: "",
12127
12127
  scenario: "performance",
12128
12128
  metric_set: "quality"
@@ -12425,7 +12425,7 @@ function vf({
12425
12425
  var d, u, p;
12426
12426
  const {
12427
12427
  value: t
12428
- } = U(e.instanceData, "config"), n = L(() => We({}, t, $r), [t]), {
12428
+ } = U(e.instanceData, "config"), n = L(() => We({}, t, Fr), [t]), {
12429
12429
  width: r,
12430
12430
  height: o
12431
12431
  } = e.viewport, a = (d = e.data) != null ? d : [], {
@@ -12456,7 +12456,7 @@ function vf({
12456
12456
  position: "relative",
12457
12457
  height: o
12458
12458
  },
12459
- children: /* @__PURE__ */ i(tn, {
12459
+ children: /* @__PURE__ */ i(en, {
12460
12460
  visible: !0
12461
12461
  })
12462
12462
  }) : Array.isArray(s.errors) && s.errors.length > 0 ? /* @__PURE__ */ i(Pe, {
@@ -12696,7 +12696,7 @@ function If({
12696
12696
  const {
12697
12697
  value: t,
12698
12698
  set: n
12699
- } = U(e.instanceData, "config"), r = L(() => We({}, t, $r), [t]), o = (a, s) => {
12699
+ } = U(e.instanceData, "config"), r = L(() => We({}, t, Fr), [t]), o = (a, s) => {
12700
12700
  n({
12701
12701
  ...r,
12702
12702
  [a]: s
@@ -12743,7 +12743,7 @@ const Mf = {
12743
12743
  name: "expertSystem",
12744
12744
  viewRender: vf,
12745
12745
  configRender: If,
12746
- createConfig: () => $r
12746
+ createConfig: () => Fr
12747
12747
  }, kf = [{
12748
12748
  value: "#25262B",
12749
12749
  name: "Dark"
@@ -12795,7 +12795,7 @@ const Mf = {
12795
12795
  id: "dashboard",
12796
12796
  version: $c,
12797
12797
  manifest: {
12798
- viz: [Yn, yg, gg, _g, Nd, Nc, Au, Od, Md, Xd, lg, Mf],
12798
+ viz: [Un, yg, gg, _g, Nd, Nc, Au, Od, Md, Xd, lg, Mf],
12799
12799
  color: [...kf, ...Ff]
12800
12800
  }
12801
12801
  }), Rt = new Ac(), de = {
@@ -12809,7 +12809,7 @@ const Mf = {
12809
12809
  operationManager: Qe("operationManager"),
12810
12810
  triggerManager: Qe("triggerManager")
12811
12811
  }
12812
- }, Er = () => {
12812
+ }, $r = () => {
12813
12813
  try {
12814
12814
  Rt.install(ia());
12815
12815
  } catch {
@@ -12820,7 +12820,7 @@ const Mf = {
12820
12820
  vizManager: e,
12821
12821
  colorManager: t
12822
12822
  };
12823
- }, Ne = $o(Er());
12823
+ }, Ne = $o($r());
12824
12824
  try {
12825
12825
  Rt.install(ia());
12826
12826
  } catch {
@@ -13029,9 +13029,9 @@ const Yf = {
13029
13029
  id: "builtin:op:set_filter_values",
13030
13030
  configRender: Wf,
13031
13031
  run: Uf
13032
- }, vn = [qf, Pf, Bf, Yf];
13032
+ }, hn = [qf, Pf, Bf, Yf];
13033
13033
  class Qf {
13034
- constructor(t, n = vn) {
13034
+ constructor(t, n = hn) {
13035
13035
  F(this, "attachments");
13036
13036
  this.operations = n;
13037
13037
  const r = async (o) => {
@@ -13042,7 +13042,7 @@ class Qf {
13042
13042
  operationData: new pt(o, "data")
13043
13043
  };
13044
13044
  };
13045
- this.attachments = new dr(t, "__OPERATIONS", r);
13045
+ this.attachments = new ur(t, "__OPERATIONS", r);
13046
13046
  }
13047
13047
  async runOperation(t, n) {
13048
13048
  const r = await this.attachments.getInstance(t);
@@ -13115,7 +13115,7 @@ class Jf {
13115
13115
  triggerData: new pt(o, "data")
13116
13116
  };
13117
13117
  };
13118
- this.attachments = new dr(t, Ro, r);
13118
+ this.attachments = new ur(t, Ro, r);
13119
13119
  }
13120
13120
  watchTriggerSnapshotList(t) {
13121
13121
  return this.instance.instanceData.watchItem(
@@ -13125,7 +13125,7 @@ class Jf {
13125
13125
  (o) => ({
13126
13126
  id: Q(o, "id"),
13127
13127
  schemaRef: Q(o, "schemaRef"),
13128
- config: an(Q(o, "data.config"))
13128
+ config: on(Q(o, "data.config"))
13129
13129
  })
13130
13130
  );
13131
13131
  t(r);
@@ -13173,7 +13173,7 @@ class Jf {
13173
13173
  await Promise.all(t.map((n) => n()));
13174
13174
  }
13175
13175
  }
13176
- class Ar {
13176
+ class Er {
13177
13177
  constructor(t, n, r) {
13178
13178
  F(this, "operationManager");
13179
13179
  F(this, "triggerManager");
@@ -13187,7 +13187,7 @@ class Ar {
13187
13187
  operationRef: c
13188
13188
  };
13189
13189
  };
13190
- this.attachments = new dr(t, "__INTERACTIONS", o);
13190
+ this.attachments = new ur(t, "__INTERACTIONS", o);
13191
13191
  }
13192
13192
  async addInteraction(t, n) {
13193
13193
  const r = t.id, o = n.id, a = `[${r}]:[${o}]`;
@@ -13302,7 +13302,7 @@ const Kf = I(({
13302
13302
  data: t
13303
13303
  } = ve(), n = e.viz, {
13304
13304
  vizManager: r
13305
- } = He(Ne), o = e.json, a = Be(() => r.getOrCreateInstance(o), [r, n.type]), s = Be(() => new Ar(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]);
13306
13306
  return Z(() => a.instanceData.watchItem(
13307
13307
  null,
13308
13308
  vs((l) => {
@@ -13583,7 +13583,7 @@ function sa(e) {
13583
13583
  const n = t.getRequired(de.vizManager), r = n.resolveComponent(e.viz.type);
13584
13584
  return t.createScoped().provideFactory(de.instanceScope.vizInstance, () => n.getOrCreateInstance(e)).provideFactory(de.instanceScope.interactionManager, (o) => {
13585
13585
  const a = o.getRequired(de.instanceScope.vizInstance);
13586
- return new Ar(a, r, vn);
13586
+ return new Er(a, r, hn);
13587
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));
13588
13588
  },
13589
13589
  [e.viz.type, e.viz.conf]
@@ -13613,7 +13613,7 @@ function cm({
13613
13613
  const {
13614
13614
  panel: n
13615
13615
  } = t, r = ca(e, n), o = la(() => {
13616
- on({
13616
+ rn({
13617
13617
  title: `${n.title} - Updated`,
13618
13618
  message: "Your plugin configuration has been migrated to the latest version"
13619
13619
  });
@@ -13632,7 +13632,7 @@ function um(e) {
13632
13632
  setVizConf: n
13633
13633
  } = e;
13634
13634
  return ca(n, t), la(() => {
13635
- on({
13635
+ rn({
13636
13636
  title: `${t.title} - Updated`,
13637
13637
  message: "Your plugin configuration has been migrated to the latest version"
13638
13638
  });
@@ -13664,7 +13664,7 @@ function dm(e, t) {
13664
13664
  style: c.json
13665
13665
  }, u = sa(d);
13666
13666
  try {
13667
- return n.resolveComponent(r.type), /* @__PURE__ */ i(cn, {
13667
+ return n.resolveComponent(r.type), /* @__PURE__ */ i(ln, {
13668
13668
  configure: u,
13669
13669
  children: /* @__PURE__ */ i(um, {
13670
13670
  setVizConf: r.setConf,
@@ -13688,7 +13688,7 @@ const gm = ["richText"], ua = I(function({
13688
13688
  ref: s,
13689
13689
  width: l,
13690
13690
  height: c
13691
- } = 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, {
13692
13692
  w: l,
13693
13693
  h: c
13694
13694
  });
@@ -13707,7 +13707,7 @@ const gm = ["richText"], ua = I(function({
13707
13707
  height: t
13708
13708
  },
13709
13709
  ref: s,
13710
- children: /* @__PURE__ */ i(tn, {
13710
+ children: /* @__PURE__ */ i(en, {
13711
13711
  visible: o,
13712
13712
  exitTransitionDuration: 0
13713
13713
  })
@@ -13747,7 +13747,7 @@ const gm = ["richText"], ua = I(function({
13747
13747
  loading: t,
13748
13748
  height: "100%"
13749
13749
  });
13750
- }), Qn = [];
13750
+ }), Yn = [];
13751
13751
  function fm() {
13752
13752
  const {
13753
13753
  vizManager: e
@@ -13755,7 +13755,7 @@ function fm() {
13755
13755
  return L(() => e.availableVizList.map((t) => ({
13756
13756
  value: t.name,
13757
13757
  label: t.displayName
13758
- })).concat(Qn), [e]);
13758
+ })).concat(Yn), [e]);
13759
13759
  }
13760
13760
  function mm(e, t) {
13761
13761
  try {
@@ -13793,7 +13793,7 @@ function hm() {
13793
13793
  setTitle: s
13794
13794
  }, h = sa(p);
13795
13795
  try {
13796
- return u.resolveComponent(p.viz.type), /* @__PURE__ */ i(cn, {
13796
+ return u.resolveComponent(p.viz.type), /* @__PURE__ */ i(ln, {
13797
13797
  configure: h,
13798
13798
  children: /* @__PURE__ */ i(cm, {
13799
13799
  setVizConf: t.setConf,
@@ -13828,8 +13828,8 @@ const vm = I(() => {
13828
13828
  }
13829
13829
  }, c = w.useMemo(() => {
13830
13830
  var h;
13831
- return (h = Qn.find((b) => b.value === n)) == null ? void 0 : h.Panel;
13832
- }, [n, Qn]), d = hm(), u = c ? nn(c, {
13831
+ return (h = Yn.find((b) => b.value === n)) == null ? void 0 : h.Panel;
13832
+ }, [n, Yn]), d = hm(), u = c ? tn(c, {
13833
13833
  data: e,
13834
13834
  conf: t.conf,
13835
13835
  setConf: t.setConf
@@ -13908,7 +13908,7 @@ const ym = I(function({
13908
13908
  onDragStart: (u) => {
13909
13909
  u.stopPropagation();
13910
13910
  },
13911
- children: /* @__PURE__ */ i(en, {
13911
+ children: /* @__PURE__ */ i(Zt, {
13912
13912
  sx: {
13913
13913
  height: "90vh",
13914
13914
  maxHeight: "calc(100vh - 185px)",
@@ -13945,7 +13945,7 @@ const ym = I(function({
13945
13945
  }), /* @__PURE__ */ g($.Panel, {
13946
13946
  value: "Data",
13947
13947
  pt: "sm",
13948
- children: [/* @__PURE__ */ i(tn, {
13948
+ children: [/* @__PURE__ */ i(en, {
13949
13949
  visible: l,
13950
13950
  exitTransitionDuration: 0
13951
13951
  }), /* @__PURE__ */ i(sm, {})]
@@ -13980,7 +13980,7 @@ const ym = I(function({
13980
13980
  } = w.useContext(Le), p = () => d == null ? void 0 : d.fetchData(), {
13981
13981
  viewPanelInFullScreen: f,
13982
13982
  inFullScreen: h
13983
- } = w.useContext(ar), b = () => {
13983
+ } = w.useContext(ir), b = () => {
13984
13984
  e.panels.duplicateByID(c);
13985
13985
  }, v = () => n.openConfirmModal({
13986
13986
  title: "Delete this panel?",
@@ -14103,7 +14103,7 @@ function _m(e, t, n) {
14103
14103
  border: "1px dashed transparent"
14104
14104
  };
14105
14105
  }
14106
- const Or = I(function({
14106
+ const Ar = I(function({
14107
14107
  panel: t,
14108
14108
  view: n
14109
14109
  }) {
@@ -14181,7 +14181,7 @@ const Or = I(function({
14181
14181
  flexGrow: 1,
14182
14182
  flexShrink: 0
14183
14183
  },
14184
- children: /* @__PURE__ */ i(Or, {
14184
+ children: /* @__PURE__ */ i(Ar, {
14185
14185
  view: t,
14186
14186
  panel: n
14187
14187
  })
@@ -14286,7 +14286,7 @@ const Rm = w.forwardRef(({
14286
14286
  style: {
14287
14287
  position: "relative"
14288
14288
  },
14289
- children: [o && /* @__PURE__ */ i(Rm, {}), /* @__PURE__ */ i(Or, {
14289
+ children: [o && /* @__PURE__ */ i(Rm, {}), /* @__PURE__ */ i(Ar, {
14290
14290
  view: t,
14291
14291
  panel: l
14292
14292
  })]
@@ -14305,7 +14305,7 @@ const Rm = w.forwardRef(({
14305
14305
  layout: t.panels.layouts,
14306
14306
  children: t.panels.list.map((o) => /* @__PURE__ */ i("div", {
14307
14307
  "data-grid": o.layout,
14308
- children: /* @__PURE__ */ i(Or, {
14308
+ children: /* @__PURE__ */ i(Ar, {
14309
14309
  view: t,
14310
14310
  panel: o
14311
14311
  })
@@ -14378,7 +14378,7 @@ const Rm = w.forwardRef(({
14378
14378
  inFullScreen: l,
14379
14379
  fullScreenPanel: c
14380
14380
  } = ga(t, r, o);
14381
- return pa(), /* @__PURE__ */ i(ar.Provider, {
14381
+ return pa(), /* @__PURE__ */ i(ir.Provider, {
14382
14382
  value: {
14383
14383
  viewPanelInFullScreen: a,
14384
14384
  inFullScreen: l
@@ -14474,7 +14474,7 @@ const Rm = w.forwardRef(({
14474
14474
  inFullScreen: s,
14475
14475
  fullScreenPanel: l
14476
14476
  } = ga(t, n, r);
14477
- return pa(), /* @__PURE__ */ i(ar.Provider, {
14477
+ return pa(), /* @__PURE__ */ i(ir.Provider, {
14478
14478
  value: {
14479
14479
  viewPanelInFullScreen: o,
14480
14480
  inFullScreen: s
@@ -14649,13 +14649,13 @@ const Rm = w.forwardRef(({
14649
14649
  case pe.MultiSelect:
14650
14650
  return va;
14651
14651
  case pe.TextInput:
14652
- return Ln;
14652
+ return Tn;
14653
14653
  case pe.Checkbox:
14654
14654
  return fa;
14655
14655
  case pe.DateRange:
14656
14656
  return ma;
14657
14657
  default:
14658
- return console.error(`[filter model] invalid filter.config._name: ${e._name}`), Ln;
14658
+ return console.error(`[filter model] invalid filter.config._name: ${e._name}`), Tn;
14659
14659
  }
14660
14660
  }
14661
14661
  })
@@ -14716,7 +14716,7 @@ function xa(e) {
14716
14716
  return e.reduce((t, n) => (t[n.key] = ya(n.config.default_value, n.config), t), {});
14717
14717
  }
14718
14718
  function Hm(e, t, n) {
14719
- tr(
14719
+ er(
14720
14720
  e,
14721
14721
  Es(e, (r, o) => {
14722
14722
  o(r, () => {
@@ -14803,7 +14803,7 @@ function Um(e) {
14803
14803
  };
14804
14804
  }
14805
14805
  const Ym = x.model("QueryModel", {
14806
- id: x.identifier,
14806
+ id: x.string,
14807
14807
  type: x.enumeration("DataSourceType", [et.Postgresql, et.MySQL, et.HTTP]),
14808
14808
  key: x.string,
14809
14809
  sql: x.string
@@ -14815,7 +14815,7 @@ const Ym = x.model("QueryModel", {
14815
14815
  const { id: t, type: n, key: r, sql: o } = e;
14816
14816
  return { id: t, type: n, key: r, sql: o };
14817
14817
  }
14818
- })), Jn = x.compose(
14818
+ })), Qm = x.compose(
14819
14819
  "QueryModel",
14820
14820
  Ym,
14821
14821
  x.model({
@@ -14825,7 +14825,7 @@ const Ym = x.model("QueryModel", {
14825
14825
  })
14826
14826
  ).views((e) => ({
14827
14827
  get formattedSQL() {
14828
- const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = Jt(e).payloadForSQL;
14828
+ const { context: t, mock_context: n, sqlSnippets: r, filterValues: o } = so(e).payloadForSQL;
14829
14829
  return hi(e.sql, t, n, r, o);
14830
14830
  }
14831
14831
  })).views((e) => ({
@@ -14855,7 +14855,7 @@ const Ym = x.model("QueryModel", {
14855
14855
  if (!!e.valid) {
14856
14856
  e.state = "loading";
14857
14857
  try {
14858
- 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;
14859
14859
  e.data = yield* zs(
14860
14860
  bl({
14861
14861
  context: n,
@@ -14877,16 +14877,16 @@ const Ym = x.model("QueryModel", {
14877
14877
  })
14878
14878
  })).actions((e) => ({
14879
14879
  afterCreate() {
14880
- tr(
14880
+ er(
14881
14881
  e,
14882
- rr(() => `${e.id}--${e.key}--${e.type}--${e.formattedSQL}`, e.fetchData, {
14882
+ nr(() => `${e.id}--${e.key}--${e.type}--${e.formattedSQL}`, e.fetchData, {
14883
14883
  fireImmediately: !0,
14884
14884
  delay: 500
14885
14885
  })
14886
14886
  );
14887
14887
  }
14888
- })), Qm = x.model("QueriesModel", {
14889
- current: x.optional(x.array(Jn), [])
14888
+ })), Jm = x.model("QueriesModel", {
14889
+ current: x.optional(x.array(Qm), [])
14890
14890
  }).views((e) => ({
14891
14891
  get firstID() {
14892
14892
  if (e.current.length !== 0)
@@ -14945,7 +14945,7 @@ const Ym = x.model("QueryModel", {
14945
14945
  const n = e.current.find((r) => r.id === t);
14946
14946
  n && (Ps(n), e.current.remove(n));
14947
14947
  }
14948
- })), Jm = x.model("SQLSnippetModel", {
14948
+ })), Xm = x.model("SQLSnippetModel", {
14949
14949
  key: x.string,
14950
14950
  value: x.string
14951
14951
  }).views((e) => ({
@@ -14963,8 +14963,8 @@ const Ym = x.model("QueryModel", {
14963
14963
  setValue(t) {
14964
14964
  e.value = t;
14965
14965
  }
14966
- })), Xm = x.model("SQLSnippetsModel", {
14967
- current: x.optional(x.array(Jm), [])
14966
+ })), Km = x.model("SQLSnippetsModel", {
14967
+ current: x.optional(x.array(Xm), [])
14968
14968
  }).views((e) => ({
14969
14969
  get json() {
14970
14970
  return e.current.map((t) => t.json);
@@ -14985,7 +14985,7 @@ const Ym = x.model("QueryModel", {
14985
14985
  replaceByIndex(t, n) {
14986
14986
  e.current.splice(t, 1, n);
14987
14987
  }
14988
- })), Km = x.model("ContextModel", {
14988
+ })), Zm = x.model("ContextModel", {
14989
14989
  current: x.optional(x.frozen(), {})
14990
14990
  }).views((e) => ({
14991
14991
  get keys() {
@@ -15004,7 +15004,7 @@ const Ym = x.model("QueryModel", {
15004
15004
  set(t, n) {
15005
15005
  e.current[t] = n;
15006
15006
  }
15007
- })), Zm = x.model("MockContextModel", {
15007
+ })), eh = x.model("MockContextModel", {
15008
15008
  current: x.optional(x.frozen(), {})
15009
15009
  }).views((e) => ({
15010
15010
  get keys() {
@@ -15023,7 +15023,7 @@ const Ym = x.model("QueryModel", {
15023
15023
  set(t, n) {
15024
15024
  e.current[t] = n;
15025
15025
  }
15026
- })), eh = x.model("PanelLayoutModel", {
15026
+ })), th = x.model("PanelLayoutModel", {
15027
15027
  x: x.number,
15028
15028
  y: x.number,
15029
15029
  w: x.number,
@@ -15047,7 +15047,7 @@ const Ym = x.model("QueryModel", {
15047
15047
  const { x: n, y: r, w: o, h: a, moved: s } = t;
15048
15048
  e.x = n, e.y = r, e.w = o, e.h = a, e.moved = !!s, e.static = !!t.static;
15049
15049
  }
15050
- })), th = x.model("PanelStyleBorderModel", {
15050
+ })), nh = x.model("PanelStyleBorderModel", {
15051
15051
  enabled: x.boolean
15052
15052
  }).views((e) => ({
15053
15053
  get json() {
@@ -15060,8 +15060,8 @@ const Ym = x.model("QueryModel", {
15060
15060
  setEnabled(t) {
15061
15061
  e.enabled = t;
15062
15062
  }
15063
- })), nh = x.model("PanelStyleModel", {
15064
- border: th
15063
+ })), rh = x.model("PanelStyleModel", {
15064
+ border: nh
15065
15065
  }).views((e) => ({
15066
15066
  get json() {
15067
15067
  const { border: t } = e;
@@ -15069,7 +15069,7 @@ const Ym = x.model("QueryModel", {
15069
15069
  border: t.json
15070
15070
  };
15071
15071
  }
15072
- })).actions((e) => ({})), rh = x.model("PanelVizModel", {
15072
+ })).actions((e) => ({})), oh = x.model("PanelVizModel", {
15073
15073
  type: x.string,
15074
15074
  conf: x.frozen()
15075
15075
  }).views((e) => ({
@@ -15086,17 +15086,17 @@ const Ym = x.model("QueryModel", {
15086
15086
  setConf(t) {
15087
15087
  e.conf = t;
15088
15088
  }
15089
- })), oh = x.model({
15089
+ })), ih = x.model({
15090
15090
  id: x.string,
15091
15091
  title: x.string,
15092
15092
  description: x.string,
15093
- layout: eh,
15093
+ layout: th,
15094
15094
  queryID: x.string,
15095
- viz: rh,
15096
- style: nh
15095
+ viz: oh,
15096
+ style: rh
15097
15097
  }).views((e) => ({
15098
15098
  get query() {
15099
- return lo(Jn, Jt(e), e.queryID);
15099
+ return lo(e, Qn).queries.findByID(e.queryID);
15100
15100
  },
15101
15101
  get json() {
15102
15102
  const { id: t, title: n, description: r, queryID: o } = e;
@@ -15121,13 +15121,13 @@ const Ym = x.model("QueryModel", {
15121
15121
  e.description = t;
15122
15122
  },
15123
15123
  setQueryID(t) {
15124
- if (lo(Jn, Jt(e), t))
15124
+ if (lo(e, Qn).queries.findByID(t))
15125
15125
  e.queryID = t;
15126
15126
  else
15127
15127
  throw new Error(`Query with id ${t} does not exist`);
15128
15128
  }
15129
- })), ih = x.model("PanelsModel", {
15130
- list: x.optional(x.array(oh), [])
15129
+ })), ah = x.model("PanelsModel", {
15130
+ list: x.optional(x.array(ih), [])
15131
15131
  }).views((e) => ({
15132
15132
  get json() {
15133
15133
  return e.list.map((t) => t.json);
@@ -15159,8 +15159,8 @@ const Ym = x.model("QueryModel", {
15159
15159
  description: "<p><br></p>",
15160
15160
  queryID: "",
15161
15161
  viz: {
15162
- type: Yn.name,
15163
- conf: Yn.createConfig()
15162
+ type: Un.name,
15163
+ conf: Un.createConfig()
15164
15164
  },
15165
15165
  style: {
15166
15166
  border: {
@@ -15199,12 +15199,12 @@ const Ym = x.model("QueryModel", {
15199
15199
  replaceByIndex(t, n) {
15200
15200
  e.list.splice(t, 1, n);
15201
15201
  }
15202
- })), ah = x.model({
15202
+ })), sh = x.model({
15203
15203
  id: x.identifier,
15204
15204
  name: x.string,
15205
15205
  type: x.string,
15206
15206
  config: x.frozen(),
15207
- panels: ih
15207
+ panels: ah
15208
15208
  }).views((e) => ({
15209
15209
  get json() {
15210
15210
  const { id: t, name: n, type: r, config: o } = e;
@@ -15235,8 +15235,8 @@ const Ym = x.model("QueryModel", {
15235
15235
  [t]: n
15236
15236
  };
15237
15237
  }
15238
- })).actions((e) => ({})), sh = x.model("ViewsModel", {
15239
- current: x.optional(x.array(ah), []),
15238
+ })).actions((e) => ({})), lh = x.model("ViewsModel", {
15239
+ current: x.optional(x.array(sh), []),
15240
15240
  visibleViewIDs: x.array(x.string),
15241
15241
  idOfVIE: x.string
15242
15242
  }).views((e) => ({
@@ -15318,7 +15318,7 @@ const Ym = x.model("QueryModel", {
15318
15318
  n !== -1 && e.visibleViewIDs.splice(n, 1);
15319
15319
  }
15320
15320
  }));
15321
- function lh(e) {
15321
+ function ch(e) {
15322
15322
  const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
15323
15323
  return {
15324
15324
  current: e.map((o) => ({
@@ -15331,16 +15331,16 @@ function lh(e) {
15331
15331
  idOfVIE: n
15332
15332
  };
15333
15333
  }
15334
- const ch = x.model({
15334
+ const uh = x.model({
15335
15335
  id: x.identifier,
15336
15336
  name: x.string,
15337
15337
  version: x.string,
15338
15338
  filters: Wm,
15339
- queries: Qm,
15340
- sqlSnippets: Xm,
15341
- views: sh,
15342
- context: Km,
15343
- mock_context: Zm,
15339
+ queries: Jm,
15340
+ sqlSnippets: Km,
15341
+ views: lh,
15342
+ context: Zm,
15343
+ mock_context: eh,
15344
15344
  origin: x.maybe(x.frozen())
15345
15345
  }).views((e) => ({
15346
15346
  get filtersChanged() {
@@ -15423,7 +15423,7 @@ const ch = x.model({
15423
15423
  const r = Ls(e.filters, (o) => {
15424
15424
  localStorage.setItem(n, JSON.stringify(o.values));
15425
15425
  });
15426
- tr(e, r);
15426
+ er(e, r);
15427
15427
  }
15428
15428
  return {
15429
15429
  afterCreate() {
@@ -15436,7 +15436,7 @@ const ch = x.model({
15436
15436
  Ct(e.filters.current, e.origin.filters.current);
15437
15437
  }
15438
15438
  };
15439
- }), uh = x.snapshotProcessor(ch, {
15439
+ }), Qn = x.snapshotProcessor(uh, {
15440
15440
  preProcessor(e) {
15441
15441
  return {
15442
15442
  ...e,
@@ -15450,7 +15450,7 @@ const ch = x.model({
15450
15450
  }
15451
15451
  });
15452
15452
  function Ca({ id: e, name: t, version: n, filters: r, views: o, definition: { queries: a, sqlSnippets: s, mock_context: l = {} } }, c) {
15453
- return uh.create({
15453
+ return Qn.create({
15454
15454
  id: e,
15455
15455
  name: t,
15456
15456
  version: n,
@@ -15467,7 +15467,7 @@ function Ca({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
15467
15467
  mock_context: {
15468
15468
  current: l
15469
15469
  },
15470
- views: lh(o)
15470
+ views: ch(o)
15471
15471
  });
15472
15472
  }
15473
15473
  function wa(e) {
@@ -15501,7 +15501,7 @@ const Yh = I(function({
15501
15501
  }
15502
15502
  };
15503
15503
  await r(k);
15504
- }, f = Be(Er, []), h = wa(f);
15504
+ }, f = Be($r, []), h = wa(f);
15505
15505
  return /* @__PURE__ */ i(Fo, {
15506
15506
  children: /* @__PURE__ */ i(ci, {
15507
15507
  value: u,
@@ -15519,7 +15519,7 @@ const Yh = I(function({
15519
15519
  },
15520
15520
  children: /* @__PURE__ */ i(Ne.Provider, {
15521
15521
  value: f,
15522
- children: /* @__PURE__ */ i(cn, {
15522
+ children: /* @__PURE__ */ i(ln, {
15523
15523
  configure: h,
15524
15524
  children: u.views.visibleViews.map((b) => /* @__PURE__ */ i(Am, {
15525
15525
  view: b,
@@ -15546,7 +15546,7 @@ const Yh = I(function({
15546
15546
  ai(s, !1), w.useEffect(() => {
15547
15547
  s.context.replace(e);
15548
15548
  }, [e]);
15549
- const l = Be(Er, []), c = wa(l);
15549
+ const l = Be($r, []), c = wa(l);
15550
15550
  return /* @__PURE__ */ i(Fo, {
15551
15551
  children: /* @__PURE__ */ i(ci, {
15552
15552
  value: s,
@@ -15561,7 +15561,7 @@ const Yh = I(function({
15561
15561
  className: `${n} dashboard-root dashboard-sticky-parent`,
15562
15562
  children: /* @__PURE__ */ i(Ne.Provider, {
15563
15563
  value: l,
15564
- children: /* @__PURE__ */ i(cn, {
15564
+ children: /* @__PURE__ */ i(ln, {
15565
15565
  configure: c,
15566
15566
  children: s.views.visibleViews.map((d) => /* @__PURE__ */ i(Tm, {
15567
15567
  view: d,
@@ -15725,29 +15725,29 @@ nt.extend(gh);
15725
15725
  nt.extend(dh);
15726
15726
  nt.tz.setDefault("UTC");
15727
15727
  export {
15728
- Km as ContextModel,
15728
+ Zm as ContextModel,
15729
15729
  Yh as Dashboard,
15730
15730
  Zl as DashboardFilterType,
15731
15731
  Kl as DashboardMode,
15732
- uh as DashboardModel,
15732
+ Qn as DashboardModel,
15733
15733
  $e as EViewComponentType,
15734
15734
  Io as FilterModel,
15735
15735
  Wm as FiltersModel,
15736
15736
  Le as LayoutStateContext,
15737
15737
  Am as MainDashboardView,
15738
15738
  ci as ModelContextProvider,
15739
- Or as Panel,
15739
+ Ar as Panel,
15740
15740
  rl as PanelContextProvider,
15741
- Qm as QueriesModel,
15742
- Jn as QueryModel,
15741
+ Jm as QueriesModel,
15742
+ Qm as QueryModel,
15743
15743
  Qh as ReadOnlyDashboard,
15744
15744
  Tm as ReadOnlyDashboardView,
15745
- Jm as SQLSnippetModel,
15746
- Xm as SQLSnippetsModel,
15747
- ah as ViewModel,
15748
- sh as ViewsModel,
15745
+ Xm as SQLSnippetModel,
15746
+ Km as SQLSnippetsModel,
15747
+ sh as ViewModel,
15748
+ lh as ViewsModel,
15749
15749
  Ca as createDashboardModel,
15750
- lh as createDashboardViewsModel,
15750
+ ch as createDashboardViewsModel,
15751
15751
  Um as getInitialFiltersPayload,
15752
15752
  X as useModelContext,
15753
15753
  ve as usePanelContext,