@modelform/react-native 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -233,7 +233,8 @@
233
233
 
234
234
 
235
235
 
236
- var _chunkKJR3ZKG4js = require('./chunk-KJR3ZKG4.js');
236
+
237
+ var _chunkG67L7TFKjs = require('./chunk-G67L7TFK.js');
237
238
 
238
239
  // src/ui/theme.tsx
239
240
  var _react = require('react');
@@ -423,7 +424,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
423
424
  if (!dashboard.refresh) return;
424
425
  let ms;
425
426
  try {
426
- ms = _chunkKJR3ZKG4js.parseDuration.call(void 0, dashboard.refresh);
427
+ ms = _chunkG67L7TFKjs.parseDuration.call(void 0, dashboard.refresh);
427
428
  } catch (e2) {
428
429
  return;
429
430
  }
@@ -431,7 +432,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
431
432
  return () => clearInterval(id);
432
433
  }, [dashboard.refresh, refresh]);
433
434
  const refreshKey = tick + externalKey;
434
- const range3 = _react.useMemo.call(void 0, () => _chunkKJR3ZKG4js.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
435
+ const range3 = _react.useMemo.call(void 0, () => _chunkG67L7TFKjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
435
436
  const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
436
437
  const value = _react.useMemo.call(void 0,
437
438
  () => ({
@@ -468,8 +469,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
468
469
  ] });
469
470
  }
470
471
  function useDashboardVariables(dashboard, resolve, rawRange) {
471
- const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkKJR3ZKG4js.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
472
- const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkKJR3ZKG4js.refreshedVariables.call(void 0, dashboard, "load").length > 0);
472
+ const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkG67L7TFKjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
473
+ const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkG67L7TFKjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
473
474
  const [runKey, setRunKey] = _react.useState.call(void 0, 0);
474
475
  const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
475
476
  const stateRef = _react.useRef.call(void 0, state);
@@ -502,7 +503,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
502
503
  setState(update);
503
504
  setResolving(false);
504
505
  };
505
- _chunkKJR3ZKG4js.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkKJR3ZKG4js.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
506
+ _chunkG67L7TFKjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkG67L7TFKjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
506
507
  (res) => finish((s) => ({
507
508
  // Only the re-run variables change, so a pick made while this ran isn't overwritten.
508
509
  values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
@@ -516,11 +517,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
516
517
  const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
517
518
  if (dashboard !== loadedDashboard) {
518
519
  setLoadedDashboard(dashboard);
519
- setState((s) => ({ ...s, values: { ..._chunkKJR3ZKG4js.initialVariableValues.call(void 0, dashboard), ...s.values } }));
520
+ setState((s) => ({ ...s, values: { ..._chunkG67L7TFKjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
520
521
  }
521
522
  _react.useEffect.call(void 0, () => {
522
- const roots = _chunkKJR3ZKG4js.refreshedVariables.call(void 0, dashboard, "load");
523
- schedule([...roots, ..._chunkKJR3ZKG4js.variableDependents.call(void 0, dashboard, roots)]);
523
+ const roots = _chunkG67L7TFKjs.refreshedVariables.call(void 0, dashboard, "load");
524
+ schedule([...roots, ..._chunkG67L7TFKjs.variableDependents.call(void 0, dashboard, roots)]);
524
525
  }, [dashboard, schedule]);
525
526
  const mounted = _react.useRef.call(void 0, false);
526
527
  _react.useEffect.call(void 0, () => {
@@ -528,17 +529,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
528
529
  mounted.current = true;
529
530
  return;
530
531
  }
531
- const roots = _chunkKJR3ZKG4js.refreshedVariables.call(void 0, dashboard, "range");
532
- schedule([...roots, ..._chunkKJR3ZKG4js.variableDependents.call(void 0, dashboard, roots)]);
532
+ const roots = _chunkG67L7TFKjs.refreshedVariables.call(void 0, dashboard, "range");
533
+ schedule([...roots, ..._chunkG67L7TFKjs.variableDependents.call(void 0, dashboard, roots)]);
533
534
  }, [rawRange]);
534
535
  const setVariable = _react.useCallback.call(void 0,
535
536
  (name, value) => {
536
537
  setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
537
- schedule(_chunkKJR3ZKG4js.variableDependents.call(void 0, dashboard, [name]));
538
+ schedule(_chunkG67L7TFKjs.variableDependents.call(void 0, dashboard, [name]));
538
539
  },
539
540
  [dashboard, schedule]
540
541
  );
541
- const info = _react.useMemo.call(void 0, () => _chunkKJR3ZKG4js.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
542
+ const info = _react.useMemo.call(void 0, () => _chunkG67L7TFKjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
542
543
  return _react.useMemo.call(void 0,
543
544
  () => ({
544
545
  variables: state.values,
@@ -568,7 +569,7 @@ function usePanelData(panel, widthPx, enabled = true) {
568
569
  _react.useEffect.call(void 0, () => {
569
570
  if (!enabled || !request || !variablesReady) return;
570
571
  const controller = new AbortController();
571
- _chunkKJR3ZKG4js.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
572
+ _chunkG67L7TFKjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
572
573
  return () => controller.abort();
573
574
  }, [enabled, request, variablesReady]);
574
575
  if (!enabled) return IDLE;
@@ -578,7 +579,7 @@ function usePanelData(panel, widthPx, enabled = true) {
578
579
  function usePanelLinks(panel) {
579
580
  const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
580
581
  const resolve = _react.useCallback.call(void 0,
581
- (links, data) => _chunkKJR3ZKG4js.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
582
+ (links, data) => _chunkG67L7TFKjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
582
583
  [dashboard, variables, variableInfo2, panel.scopedVars, range3]
583
584
  );
584
585
  return { resolve, openLinks };
@@ -619,7 +620,7 @@ var RenderBoundary = (_class = class extends _react.Component {constructor(...ar
619
620
 
620
621
  // src/ui/inputs/formContext.ts
621
622
 
622
- var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkKJR3ZKG4js.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
623
+ var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkG67L7TFKjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
623
624
  var InputFormContext = _react.createContext.call(void 0, null);
624
625
  function useInputForm() {
625
626
  const v = _react.useContext.call(void 0, InputFormContext);
@@ -680,14 +681,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
680
681
  function displayExpr(expr) {
681
682
  if (expr.trim().startsWith("now")) return expr;
682
683
  try {
683
- return _chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, _chunkKJR3ZKG4js.parseTime.call(void 0, expr));
684
+ return _chunkG67L7TFKjs.formatLocalDateTime.call(void 0, _chunkG67L7TFKjs.parseTime.call(void 0, expr));
684
685
  } catch (e3) {
685
686
  return expr;
686
687
  }
687
688
  }
688
689
  function tryParse(expr, roundUp, now = Date.now()) {
689
690
  try {
690
- return _chunkKJR3ZKG4js.parseTime.call(void 0, expr, now, roundUp);
691
+ return _chunkG67L7TFKjs.parseTime.call(void 0, expr, now, roundUp);
691
692
  } catch (e4) {
692
693
  return null;
693
694
  }
@@ -701,7 +702,7 @@ function endOfDay(ms) {
701
702
  return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
702
703
  }
703
704
  function resolveTo(expr) {
704
- return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, endOfDay(_chunkKJR3ZKG4js.parseTime.call(void 0, expr))) : expr;
705
+ return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkG67L7TFKjs.formatLocalDateTime.call(void 0, endOfDay(_chunkG67L7TFKjs.parseTime.call(void 0, expr))) : expr;
705
706
  }
706
707
  function TimeRangeSheet({ visible, value, onApply, onClose }) {
707
708
  const theme = useDashTheme();
@@ -712,12 +713,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
712
713
  const [now] = _react.useState.call(void 0, () => Date.now());
713
714
  const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
714
715
  const fromMs = tryParse(from, false, now);
715
- const toMs = tryParse(_chunkKJR3ZKG4js.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
716
- const fromError = _chunkKJR3ZKG4js.timeExprError.call(void 0, from);
717
- const toError = _chunkKJR3ZKG4js.timeExprError.call(void 0, to);
716
+ const toMs = tryParse(_chunkG67L7TFKjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
717
+ const fromError = _chunkG67L7TFKjs.timeExprError.call(void 0, from);
718
+ const toError = _chunkG67L7TFKjs.timeExprError.call(void 0, to);
718
719
  const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
719
720
  const valid = !fromError && !toError && !orderError;
720
- const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, _chunkKJR3ZKG4js.parseTime.call(void 0, expr));
721
+ const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkG67L7TFKjs.formatLocalDateTime.call(void 0, _chunkG67L7TFKjs.parseTime.call(void 0, expr));
721
722
  const apply = () => {
722
723
  if (!valid) return;
723
724
  onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
@@ -726,14 +727,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
726
727
  const pickDay = (day) => {
727
728
  const end = endOfDay(day);
728
729
  if (active === "from") {
729
- setFrom(_chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, day));
730
- if (toMs == null || toMs <= day) setTo(_chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, end));
730
+ setFrom(_chunkG67L7TFKjs.formatLocalDateTime.call(void 0, day));
731
+ if (toMs == null || toMs <= day) setTo(_chunkG67L7TFKjs.formatLocalDateTime.call(void 0, end));
731
732
  setActive("to");
732
733
  } else if (fromMs != null && day < startOfDay(fromMs)) {
733
- setFrom(_chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, day));
734
- setTo(_chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, end));
734
+ setFrom(_chunkG67L7TFKjs.formatLocalDateTime.call(void 0, day));
735
+ setTo(_chunkG67L7TFKjs.formatLocalDateTime.call(void 0, end));
735
736
  } else {
736
- setTo(_chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, end));
737
+ setTo(_chunkG67L7TFKjs.formatLocalDateTime.call(void 0, end));
737
738
  }
738
739
  };
739
740
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -769,7 +770,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
769
770
  }
770
771
  ),
771
772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
772
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkKJR3ZKG4js.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
773
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkG67L7TFKjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
773
774
  Chip,
774
775
  {
775
776
  label: r.label,
@@ -913,17 +914,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
913
914
  var CalendarIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM4 10h16M8 3v4M16 3v4" }) });
914
915
  var ChevronIcon = ({ color, open }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: open ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" }) });
915
916
  var CheckIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.4, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 12.5l4.5 4.5L19 7" }) });
916
- function DashboardToolbar({ presets = _chunkKJR3ZKG4js.TIME_PRESETS }) {
917
+ function DashboardToolbar({ presets = _chunkG67L7TFKjs.TIME_PRESETS }) {
917
918
  const theme = useDashTheme();
918
919
  const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
919
920
  const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
920
921
  const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
921
922
  const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
922
923
  const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
923
- const vars = _chunkKJR3ZKG4js.visibleVariables.call(void 0, dashboard);
924
+ const vars = _chunkG67L7TFKjs.visibleVariables.call(void 0, dashboard);
924
925
  const active = vars.filter((v) => {
925
926
  const cur = variables[v.name];
926
- return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkKJR3ZKG4js.ALL) : cur === _chunkKJR3ZKG4js.ALL);
927
+ return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkG67L7TFKjs.ALL) : cur === _chunkG67L7TFKjs.ALL);
927
928
  }).length;
928
929
  const hasError = vars.some((v) => variableErrors[v.name]);
929
930
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
@@ -949,7 +950,7 @@ function DashboardToolbar({ presets = _chunkKJR3ZKG4js.TIME_PRESETS }) {
949
950
  setRangeOpen(true);
950
951
  },
951
952
  accessibilityRole: "button",
952
- accessibilityLabel: custom ? `Time range, ${_chunkKJR3ZKG4js.describeRange.call(void 0, rawRange)}` : "Custom time range",
953
+ accessibilityLabel: custom ? `Time range, ${_chunkG67L7TFKjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
953
954
  style: ({ pressed }) => [
954
955
  custom ? styles4.rangeButton : styles4.iconButton,
955
956
  { borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
@@ -957,7 +958,7 @@ function DashboardToolbar({ presets = _chunkKJR3ZKG4js.TIME_PRESETS }) {
957
958
  ],
958
959
  children: [
959
960
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
960
- custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkKJR3ZKG4js.describeRange.call(void 0, rawRange) })
961
+ custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkG67L7TFKjs.describeRange.call(void 0, rawRange) })
961
962
  ]
962
963
  }
963
964
  ),
@@ -1013,14 +1014,14 @@ function FilterSection({ variable: v, open, onToggle }) {
1013
1014
  const theme = useDashTheme();
1014
1015
  const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
1015
1016
  const current = variables[v.name];
1016
- const summary = _chunkKJR3ZKG4js.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1017
- const options = [...v.includeAll ? [{ text: "All", value: _chunkKJR3ZKG4js.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1017
+ const summary = _chunkG67L7TFKjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
1018
+ const options = [...v.includeAll ? [{ text: "All", value: _chunkG67L7TFKjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
1018
1019
  const error = variableErrors[v.name];
1019
1020
  const choose = (value, selected) => {
1020
- if (v.multi && value !== _chunkKJR3ZKG4js.ALL) {
1021
- const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkKJR3ZKG4js.ALL);
1021
+ if (v.multi && value !== _chunkG67L7TFKjs.ALL) {
1022
+ const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkG67L7TFKjs.ALL);
1022
1023
  const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
1023
- setVariable(v.name, next.length ? next : [_chunkKJR3ZKG4js.ALL]);
1024
+ setVariable(v.name, next.length ? next : [_chunkG67L7TFKjs.ALL]);
1024
1025
  } else {
1025
1026
  setVariable(v.name, v.multi ? [value] : value);
1026
1027
  if (!v.multi) onToggle();
@@ -1160,7 +1161,7 @@ function barCategory(panel, frame) {
1160
1161
  }
1161
1162
  function categoryLabels(field) {
1162
1163
  if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
1163
- const times = field.values.map((v) => v == null ? null : _chunkKJR3ZKG4js.toMillis.call(void 0, v));
1164
+ const times = field.values.map((v) => v == null ? null : _chunkG67L7TFKjs.toMillis.call(void 0, v));
1164
1165
  let step = Infinity;
1165
1166
  times.forEach((t, i) => {
1166
1167
  const prev = times[i - 1];
@@ -1206,19 +1207,19 @@ function formatTooltipTime(t) {
1206
1207
  return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
1207
1208
  }
1208
1209
  function styledSeries(panel, frames, scheme) {
1209
- return styleSeries(panel, _chunkKJR3ZKG4js.toSeries.call(void 0, frames), frames, scheme);
1210
+ return styleSeries(panel, _chunkG67L7TFKjs.toSeries.call(void 0, frames), frames, scheme);
1210
1211
  }
1211
1212
  function styledXYSeries(panel, frames, scheme) {
1212
- const { series, x } = _chunkKJR3ZKG4js.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1213
- const xConfig = x ? _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1213
+ const { series, x } = _chunkG67L7TFKjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
1214
+ const xConfig = x ? _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
1214
1215
  return { series: styleSeries(panel, series, frames, scheme), xConfig };
1215
1216
  }
1216
1217
  function styleSeries(panel, series, frames, scheme) {
1217
1218
  const frameOf = /* @__PURE__ */ new Map();
1218
1219
  frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
1219
1220
  return series.map((s, i) => {
1220
- const config = _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1221
- return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkKJR3ZKG4js.seriesColor.call(void 0, i, scheme, config) };
1221
+ const config = _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
1222
+ return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkG67L7TFKjs.seriesColor.call(void 0, i, scheme, config) };
1222
1223
  });
1223
1224
  }
1224
1225
  function reducedValues(panel, frames, scheme) {
@@ -1226,30 +1227,30 @@ function reducedValues(panel, frames, scheme) {
1226
1227
  const out = [];
1227
1228
  const multiple = frames.length > 1;
1228
1229
  frames.forEach(
1229
- (frame, fi) => _chunkKJR3ZKG4js.numberFields.call(void 0, frame).forEach((field) => {
1230
- const raw = _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, field, frame, multiple);
1231
- const config = _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1230
+ (frame, fi) => _chunkG67L7TFKjs.numberFields.call(void 0, frame).forEach((field) => {
1231
+ const raw = _chunkG67L7TFKjs.fieldDisplayName.call(void 0, field, frame, multiple);
1232
+ const config = _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
1232
1233
  const values = field.values.map((v) => v == null ? null : Number(v));
1233
- const value = _chunkKJR3ZKG4js.reduce.call(void 0, values, calc);
1234
- const color = _chunkKJR3ZKG4js.seriesColor.call(void 0, out.length, scheme, config);
1235
- const step = _chunkKJR3ZKG4js.thresholdStep.call(void 0, value, config);
1236
- const mapped = _chunkKJR3ZKG4js.mappedResult.call(void 0, value, config);
1234
+ const value = _chunkG67L7TFKjs.reduce.call(void 0, values, calc);
1235
+ const color = _chunkG67L7TFKjs.seriesColor.call(void 0, out.length, scheme, config);
1236
+ const step = _chunkG67L7TFKjs.thresholdStep.call(void 0, value, config);
1237
+ const mapped = _chunkG67L7TFKjs.mappedResult.call(void 0, value, config);
1237
1238
  out.push({
1238
1239
  key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
1239
1240
  name: _nullishCoalesce(config.displayName, () => ( raw)),
1240
1241
  value,
1241
- text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkKJR3ZKG4js.formatValue.call(void 0, value, config),
1242
+ text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkG67L7TFKjs.formatValue.call(void 0, value, config),
1242
1243
  mapped,
1243
1244
  config,
1244
1245
  color,
1245
- stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkKJR3ZKG4js.resolveColor.call(void 0, mapped.color, color) : step ? _chunkKJR3ZKG4js.resolveColor.call(void 0, step.color, color) : color,
1246
+ stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkG67L7TFKjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkG67L7TFKjs.resolveColor.call(void 0, step.color, color) : color,
1246
1247
  sparkline: values,
1247
1248
  field,
1248
1249
  frame
1249
1250
  });
1250
1251
  })
1251
1252
  );
1252
- return _chunkKJR3ZKG4js.uniqueNames.call(void 0, out, (v) => v.field, frames);
1253
+ return _chunkG67L7TFKjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
1253
1254
  }
1254
1255
  function yDomain(series, includeZero) {
1255
1256
  let min = Infinity;
@@ -1310,22 +1311,22 @@ function NoData({ message = "No data" }) {
1310
1311
  }
1311
1312
  function rowTooltipItems(panel, frame, row, multiple) {
1312
1313
  return frame.fields.flatMap((f) => {
1313
- const name = _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, f, frame, multiple);
1314
- const config = _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, f, frame, name);
1314
+ const name = _chunkG67L7TFKjs.fieldDisplayName.call(void 0, f, frame, multiple);
1315
+ const config = _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1315
1316
  if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
1316
1317
  const v = f.values[row];
1317
- const value = v == null ? "\u2014" : f.type === "number" ? _chunkKJR3ZKG4js.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkKJR3ZKG4js.toMillis.call(void 0, v)) : String(v);
1318
+ const value = v == null ? "\u2014" : f.type === "number" ? _chunkG67L7TFKjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkG67L7TFKjs.toMillis.call(void 0, v)) : String(v);
1318
1319
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
1319
1320
  });
1320
1321
  }
1321
1322
  function rowLinks(panel, frame, row, multiple, resolve) {
1322
1323
  return mergeLinks(
1323
1324
  frame.fields.flatMap((f) => {
1324
- const name = _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, f, frame, multiple);
1325
- const config = _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, f, frame, name);
1325
+ const name = _chunkG67L7TFKjs.fieldDisplayName.call(void 0, f, frame, multiple);
1326
+ const config = _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
1326
1327
  if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
1327
1328
  const v = f.values[row];
1328
- const text = v == null ? void 0 : f.type === "number" ? _chunkKJR3ZKG4js.formatDisplay.call(void 0, Number(v), config) : String(v);
1329
+ const text = v == null ? void 0 : f.type === "number" ? _chunkG67L7TFKjs.formatDisplay.call(void 0, Number(v), config) : String(v);
1329
1330
  return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
1330
1331
  })
1331
1332
  );
@@ -1338,7 +1339,7 @@ function valueLinks(panel, v, resolve) {
1338
1339
  fieldName: v.name,
1339
1340
  seriesName: v.name,
1340
1341
  value: v.value,
1341
- text: _chunkKJR3ZKG4js.formatValue.call(void 0, v.value, v.config),
1342
+ text: _chunkG67L7TFKjs.formatValue.call(void 0, v.value, v.config),
1342
1343
  calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
1343
1344
  });
1344
1345
  }
@@ -1483,15 +1484,15 @@ function NumberInput({ panel, value, onChange }) {
1483
1484
  }
1484
1485
  function DurationInput({ panel, value, onChange }) {
1485
1486
  const theme = useDashTheme();
1486
- const toDigits = (v) => typeof v === "number" ? _chunkKJR3ZKG4js.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1487
+ const toDigits = (v) => typeof v === "number" ? _chunkG67L7TFKjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
1487
1488
  const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
1488
1489
  const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
1489
1490
  if (value !== syncedValue) {
1490
1491
  setSyncedValue(value);
1491
- setDigits((d) => value == null ? _chunkKJR3ZKG4js.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkKJR3ZKG4js.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1492
+ setDigits((d) => value == null ? _chunkG67L7TFKjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkG67L7TFKjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
1492
1493
  }
1493
1494
  const masked = digits ? maskClock(digits) : "";
1494
- const invalid = !!digits && _chunkKJR3ZKG4js.parseClockDigits.call(void 0, digits) == null;
1495
+ const invalid = !!digits && _chunkG67L7TFKjs.parseClockDigits.call(void 0, digits) == null;
1495
1496
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles6.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1496
1497
  _reactnative.TextInput,
1497
1498
  {
@@ -1499,7 +1500,7 @@ function DurationInput({ panel, value, onChange }) {
1499
1500
  onChangeText: (t) => {
1500
1501
  const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
1501
1502
  setDigits(d);
1502
- onChange(_chunkKJR3ZKG4js.parseClockDigits.call(void 0, d));
1503
+ onChange(_chunkG67L7TFKjs.parseClockDigits.call(void 0, d));
1503
1504
  },
1504
1505
  keyboardType: "number-pad",
1505
1506
  placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
@@ -1685,10 +1686,10 @@ function SuggestTextInput({ panel, value, onChange }) {
1685
1686
  }, [store, metric, suggestWith]);
1686
1687
  const withText = suggestWith ? form.value(suggestWith) : null;
1687
1688
  const own = entries.filter((e) => e.metric === metric);
1688
- const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkKJR3ZKG4js.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1689
+ const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkG67L7TFKjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
1689
1690
  const query = typed ? text : "";
1690
- const fromScoped = _chunkKJR3ZKG4js.textSuggestions.call(void 0, scoped, query);
1691
- const suggestions = (fromScoped.length ? fromScoped : _chunkKJR3ZKG4js.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1691
+ const fromScoped = _chunkG67L7TFKjs.textSuggestions.call(void 0, scoped, query);
1692
+ const suggestions = (fromScoped.length ? fromScoped : _chunkG67L7TFKjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
1692
1693
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles6.suggest, children: [
1693
1694
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1694
1695
  _reactnative.TextInput,
@@ -1727,7 +1728,7 @@ function CounterInput({ panel }) {
1727
1728
  const { metric, increment = 1, unit } = panel.options;
1728
1729
  const [today, setToday] = _react.useState.call(void 0, 0);
1729
1730
  _react.useEffect.call(void 0, () => {
1730
- const load = () => store.list({ metrics: [metric], from: _chunkKJR3ZKG4js.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1731
+ const load = () => store.list({ metrics: [metric], from: _chunkG67L7TFKjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
1731
1732
  load();
1732
1733
  return store.subscribe(load);
1733
1734
  }, [store, metric]);
@@ -1803,7 +1804,7 @@ function titleText(v) {
1803
1804
  function summaryText(f, v) {
1804
1805
  if (v == null || v === "" || Array.isArray(v) && !v.length) return void 0;
1805
1806
  if (f.type === "input-toggle") return v ? f.title || "Yes" : void 0;
1806
- if (f.type === "input-duration" && typeof v === "number") return _chunkKJR3ZKG4js.formatClock.call(void 0, v);
1807
+ if (f.type === "input-duration" && typeof v === "number") return _chunkG67L7TFKjs.formatClock.call(void 0, v);
1807
1808
  if (f.type === "input-select" && f.options.choices) {
1808
1809
  const label = (x) => _nullishCoalesce(_optionalChain([f, 'access', _60 => _60.options, 'access', _61 => _61.choices, 'access', _62 => _62.find, 'call', _63 => _63((c) => c.value === x), 'optionalAccess', _64 => _64.label]), () => ( String(x)));
1809
1810
  return Array.isArray(v) ? v.map(label).join(", ") : label(v);
@@ -1834,7 +1835,7 @@ function InputGroupBody({ panel }) {
1834
1835
  }
1835
1836
  if (!group) return null;
1836
1837
  const label = panel.options.itemTitle || "Item";
1837
- const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkKJR3ZKG4js.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1838
+ const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkG67L7TFKjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
1838
1839
  const toggle = (key) => setCollapsed((c) => {
1839
1840
  const next = new Set(c);
1840
1841
  if (!next.delete(key)) next.add(key);
@@ -1872,7 +1873,7 @@ function InputGroupBody({ panel }) {
1872
1873
  group.items.map((item, i) => {
1873
1874
  const named = panel.options.titleFrom ? titleText(item.values[panel.options.titleFrom]) : void 0;
1874
1875
  const title = _nullishCoalesce(named, () => ( `${label} ${i + 1}`));
1875
- const troubled = _chunkKJR3ZKG4js.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1876
+ const troubled = _chunkG67L7TFKjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
1876
1877
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1877
1878
  ItemCard,
1878
1879
  {
@@ -1923,7 +1924,7 @@ function InputGroupBody({ panel }) {
1923
1924
  }
1924
1925
  function ItemCard({ panel, group, form, index, title, last, collapsed, onToggle, onDuplicate, dragOffset, lifted, onLayout, handle }) {
1925
1926
  const theme = useDashTheme();
1926
- const fields = _react.useMemo.call(void 0, () => _chunkKJR3ZKG4js.groupFields.call(void 0, panel), [panel]);
1927
+ const fields = _react.useMemo.call(void 0, () => _chunkG67L7TFKjs.groupFields.call(void 0, panel), [panel]);
1927
1928
  const item = group.items[index];
1928
1929
  const scoped = _react.useMemo.call(void 0,
1929
1930
  () => ({
@@ -2143,7 +2144,7 @@ function BarGaugePanel({ panel, frames }) {
2143
2144
  const min = _nullishCoalesce(v.config.min, () => ( 0));
2144
2145
  const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
2145
2146
  const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
2146
- const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkKJR3ZKG4js.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2147
+ const color = v.config.thresholds || _optionalChain([v, 'access', _83 => _83.mapped, 'optionalAccess', _84 => _84.color]) ? v.stateColor : _chunkG67L7TFKjs.resolveColor.call(void 0, _optionalChain([v, 'access', _85 => _85.config, 'access', _86 => _86.color, 'optionalAccess', _87 => _87.fixedColor]), v.color);
2147
2148
  const hasLinks = !!_optionalChain([v, 'access', _88 => _88.config, 'access', _89 => _89.links, 'optionalAccess', _90 => _90.length]);
2148
2149
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2149
2150
  _reactnative.Pressable,
@@ -2324,7 +2325,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2324
2325
  const color = _nullishCoalesce(style.color, () => ( {}));
2325
2326
  const size = _nullishCoalesce(style.size, () => ( {}));
2326
2327
  const text = style.text;
2327
- const fixedColor = _chunkKJR3ZKG4js.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2328
+ const fixedColor = _chunkG67L7TFKjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
2328
2329
  const heat = layer.type === "heatmap";
2329
2330
  const weight = _nullishCoalesce(config.weight, () => ( {}));
2330
2331
  const legend = [];
@@ -2336,14 +2337,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
2336
2337
  let { xs, ys } = located;
2337
2338
  if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
2338
2339
  const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
2339
- const configOf = (f) => _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, f, frame, _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, f, frame, multiple));
2340
+ const configOf = (f) => _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkG67L7TFKjs.fieldDisplayName.call(void 0, f, frame, multiple));
2340
2341
  let colors = rows.map(() => fixedColor);
2341
2342
  const colorField = !heat ? find(color.field) : void 0;
2342
2343
  if (colorField) {
2343
2344
  const cConfig = configOf(colorField);
2344
2345
  const values = rows.map((i) => num(colorField.values[i]));
2345
2346
  const extent = range(values);
2346
- colors = values.map((v) => _chunkKJR3ZKG4js.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2347
+ colors = values.map((v) => _chunkG67L7TFKjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
2347
2348
  if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
2348
2349
  }
2349
2350
  const dim = heat ? weight : size;
@@ -2401,8 +2402,8 @@ function thresholdLegend(key, config, fallback) {
2401
2402
  if (steps.length < 2) return [];
2402
2403
  return steps.map((s, i) => ({
2403
2404
  key: `${key}/${i}`,
2404
- name: s.value == null ? `< ${_chunkKJR3ZKG4js.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkKJR3ZKG4js.formatValue.call(void 0, s.value, config)}+`,
2405
- color: _chunkKJR3ZKG4js.resolveColor.call(void 0, s.color, fallback)
2405
+ name: s.value == null ? `< ${_chunkG67L7TFKjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkG67L7TFKjs.formatValue.call(void 0, s.value, config)}+`,
2406
+ color: _chunkG67L7TFKjs.resolveColor.call(void 0, s.color, fallback)
2406
2407
  }));
2407
2408
  }
2408
2409
  var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
@@ -2412,15 +2413,15 @@ function gazetteerPaths(panel, frames) {
2412
2413
  for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _108 => _108.options, 'optionalAccess', _109 => _109.layers]), () => ( DEFAULT_LAYERS))) {
2413
2414
  if (!isDataLayer(layer.type)) continue;
2414
2415
  const mode = _nullishCoalesce(_optionalChain([layer, 'access', _110 => _110.location, 'optionalAccess', _111 => _111.mode]), () => ( "auto"));
2415
- if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkKJR3ZKG4js.DEFAULT_GAZETTEER);
2416
- else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkKJR3ZKG4js.DEFAULT_GAZETTEER);
2416
+ if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _112 => _112.location, 'optionalAccess', _113 => _113.gazetteer]) || _chunkG67L7TFKjs.DEFAULT_GAZETTEER);
2417
+ else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkG67L7TFKjs.DEFAULT_GAZETTEER);
2417
2418
  }
2418
2419
  return [...paths];
2419
2420
  }
2420
2421
  var LAT_NAMES = ["lat", "latitude"];
2421
2422
  var LON_NAMES = ["lon", "lng", "long", "longitude"];
2422
2423
  function fieldByName(frame, name, multiple) {
2423
- return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2424
+ return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkG67L7TFKjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
2424
2425
  }
2425
2426
  function locate2(frame, location = {}, gazetteers = {}) {
2426
2427
  const mode = _nullishCoalesce(location.mode, () => ( "auto"));
@@ -2439,10 +2440,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
2439
2440
  lat = named(LAT_NAMES);
2440
2441
  lon = named(LON_NAMES);
2441
2442
  if (!lat || !lon) hash = named(["geohash"]);
2442
- if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkKJR3ZKG4js.DEFAULT_GAZETTEER]];
2443
+ if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkG67L7TFKjs.DEFAULT_GAZETTEER]];
2443
2444
  } else if (mode === "lookup") {
2444
2445
  lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
2445
- gazetteer = gazetteers[location.gazetteer || _chunkKJR3ZKG4js.DEFAULT_GAZETTEER];
2446
+ gazetteer = gazetteers[location.gazetteer || _chunkG67L7TFKjs.DEFAULT_GAZETTEER];
2446
2447
  }
2447
2448
  const rows = [];
2448
2449
  const xs = [];
@@ -2491,8 +2492,8 @@ function decodeGeohash(hash) {
2491
2492
  }
2492
2493
  function cellText(field, v, config) {
2493
2494
  if (v == null) return "";
2494
- if (field.type === "number") return _chunkKJR3ZKG4js.formatDisplay.call(void 0, Number(v), config);
2495
- if (field.type === "time") return new Date(_chunkKJR3ZKG4js.toMillis.call(void 0, v)).toLocaleString();
2495
+ if (field.type === "number") return _chunkG67L7TFKjs.formatDisplay.call(void 0, Number(v), config);
2496
+ if (field.type === "time") return new Date(_chunkG67L7TFKjs.toMillis.call(void 0, v)).toLocaleString();
2496
2497
  return String(v);
2497
2498
  }
2498
2499
  function num(v) {
@@ -2742,11 +2743,11 @@ function useGazetteers(panel, frames) {
2742
2743
  let live = true;
2743
2744
  let ds;
2744
2745
  try {
2745
- ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkKJR3ZKG4js.normalizeRef.call(void 0, panel.datasource))]);
2746
+ ds = _optionalChain([resolve, 'optionalCall', _123 => _123(_chunkG67L7TFKjs.normalizeRef.call(void 0, panel.datasource))]);
2746
2747
  } catch (e5) {
2747
2748
  }
2748
2749
  const paths = key.split("\n");
2749
- Promise.allSettled(paths.map((p) => _chunkKJR3ZKG4js.loadGazetteer.call(void 0, p, ds))).then((results) => {
2750
+ Promise.allSettled(paths.map((p) => _chunkG67L7TFKjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
2750
2751
  if (!live) return;
2751
2752
  const gazetteers = {};
2752
2753
  const errors = [];
@@ -2889,8 +2890,8 @@ function cellType(config) {
2889
2890
  }
2890
2891
  function tableColumns(panel, frame, multipleFrames = false) {
2891
2892
  return frame.fields.flatMap((field, i) => {
2892
- const raw = _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2893
- const config = _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2893
+ const raw = _chunkG67L7TFKjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
2894
+ const config = _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
2894
2895
  const custom = _nullishCoalesce(config.custom, () => ( {}));
2895
2896
  if (custom.hidden || _optionalChain([custom, 'access', _133 => _133.hideFrom, 'optionalAccess', _134 => _134.viz])) return [];
2896
2897
  const numeric = field.type === "number";
@@ -2933,16 +2934,16 @@ function tableFooter(columns) {
2933
2934
  counted = true;
2934
2935
  return [{ label: "Count", text: String(c.field.values.length) }];
2935
2936
  }
2936
- if (!_chunkKJR3ZKG4js.isReducer.call(void 0, r)) return [];
2937
- const label = _chunkKJR3ZKG4js.REDUCER_LABELS[r];
2937
+ if (!_chunkG67L7TFKjs.isReducer.call(void 0, r)) return [];
2938
+ const label = _chunkG67L7TFKjs.REDUCER_LABELS[r];
2938
2939
  if (r === "count") return [{ label, text: String(c.field.values.length) }];
2939
2940
  if (c.field.type !== "number") {
2940
2941
  if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
2941
2942
  return [];
2942
2943
  }
2943
- const value = _chunkKJR3ZKG4js.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2944
+ const value = _chunkG67L7TFKjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
2944
2945
  const counts = r === "distinctCount" || r === "changeCount";
2945
- return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkKJR3ZKG4js.formatValue.call(void 0, value, c.config) }];
2946
+ return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkG67L7TFKjs.formatValue.call(void 0, value, c.config) }];
2946
2947
  });
2947
2948
  return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
2948
2949
  });
@@ -2961,13 +2962,13 @@ function extentOf(values) {
2961
2962
  }
2962
2963
  function cellDisplay(col, raw, fallbackColor) {
2963
2964
  const { config, field } = col;
2964
- const mapped = _chunkKJR3ZKG4js.mappedResult.call(void 0, raw, config);
2965
+ const mapped = _chunkG67L7TFKjs.mappedResult.call(void 0, raw, config);
2965
2966
  const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
2966
- const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkKJR3ZKG4js.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkKJR3ZKG4js.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2967
+ const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _148 => _148.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkG67L7TFKjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkG67L7TFKjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
2967
2968
  if (col.cellType === "auto") return { text };
2968
2969
  const mode = _optionalChain([config, 'access', _149 => _149.color, 'optionalAccess', _150 => _150.mode]);
2969
- const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkKJR3ZKG4js.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2970
- const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkKJR3ZKG4js.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkKJR3ZKG4js.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2970
+ const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _151 => _151.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _152 => _152.color, 'optionalAccess', _153 => _153.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkG67L7TFKjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _154 => _154.color]) : void 0)));
2971
+ const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _155 => _155.color]) ? _chunkG67L7TFKjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkG67L7TFKjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
2971
2972
  if (col.cellType === "color-text") return { text, color };
2972
2973
  if (col.cellType === "color-background") return { text, background: color };
2973
2974
  const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _156 => _156.extent, 'optionalAccess', _157 => _157[0]]), () => ( 0)))));
@@ -2998,7 +2999,7 @@ function sortedRows(columns, length, sort) {
2998
2999
  if (!col) return rows;
2999
3000
  const { field } = col;
3000
3001
  const dir = sort.desc ? -1 : 1;
3001
- const key = (v) => field.type === "time" ? _chunkKJR3ZKG4js.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
3002
+ const key = (v) => field.type === "time" ? _chunkG67L7TFKjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
3002
3003
  const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
3003
3004
  return rows.sort((a, b) => {
3004
3005
  const va = field.values[a];
@@ -3064,8 +3065,8 @@ function TablePanel({ panel, frames }) {
3064
3065
  const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
3065
3066
  const [tapped, setSort] = _react.useState.call(void 0, );
3066
3067
  const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
3067
- const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkKJR3ZKG4js.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3068
- if (!frame || !_chunkKJR3ZKG4js.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3068
+ const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkG67L7TFKjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
3069
+ if (!frame || !_chunkG67L7TFKjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
3069
3070
  const shown = order.slice(0, 500);
3070
3071
  const rowColumn = columns.find((c) => c.applyToRow);
3071
3072
  const footer = tableFooter(columns);
@@ -3165,7 +3166,7 @@ function BarChartPanel({ panel, frames, width }) {
3165
3166
  {
3166
3167
  style: [styles11.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles11.tickLeft : styles11.tickRight],
3167
3168
  numberOfLines: 1,
3168
- children: _chunkKJR3ZKG4js.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3169
+ children: _chunkG67L7TFKjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
3169
3170
  },
3170
3171
  t
3171
3172
  )) });
@@ -3291,7 +3292,7 @@ function TimeSeriesPanel({ panel, frames }) {
3291
3292
  const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
3292
3293
  const span = xTo - xFrom;
3293
3294
  const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
3294
- const xLabel = (t) => numericX ? _chunkKJR3ZKG4js.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3295
+ const xLabel = (t) => numericX ? _chunkG67L7TFKjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
3295
3296
  const unitConfig = series[0].config;
3296
3297
  const barSeries = series.filter((s) => style(s) === "bars");
3297
3298
  const pointsCount = Math.max(...series.map((s) => s.times.length));
@@ -3309,11 +3310,11 @@ function TimeSeriesPanel({ panel, frames }) {
3309
3310
  if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
3310
3311
  const p = pinch.current;
3311
3312
  const limits = extent ? { minSpan: (extent[1] - extent[0]) / 1e3, maxSpan: extent[1] - extent[0], minFrom: extent[0], maxTo: extent[1] } : { maxTo: Math.max(Date.now(), p.start.to) };
3312
- setPreview(_chunkKJR3ZKG4js.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3313
+ setPreview(_chunkG67L7TFKjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
3313
3314
  };
3314
3315
  const onPinchEnd = (commit) => {
3315
3316
  if (commit && pinch.current && preview) {
3316
- if (!extent) setRawRange({ from: _chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, preview.from), to: _chunkKJR3ZKG4js.formatLocalDateTime.call(void 0, preview.to) });
3317
+ if (!extent) setRawRange({ from: _chunkG67L7TFKjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkG67L7TFKjs.formatLocalDateTime.call(void 0, preview.to) });
3317
3318
  else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
3318
3319
  }
3319
3320
  pinch.current = null;
@@ -3368,7 +3369,7 @@ function TimeSeriesPanel({ panel, frames }) {
3368
3369
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3369
3370
  ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3370
3371
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: PAD.left, x2: PAD.left + plotW, y1: y(t), y2: y(t), stroke: theme.grid, strokeWidth: 1 }),
3371
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkKJR3ZKG4js.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3372
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkG67L7TFKjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
3372
3373
  ] }, t)),
3373
3374
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3374
3375
  _reactnativesvg.Text,
@@ -3434,11 +3435,11 @@ function TimeSeriesPanel({ panel, frames }) {
3434
3435
  x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
3435
3436
  ],
3436
3437
  children: [
3437
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkKJR3ZKG4js.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3438
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkG67L7TFKjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
3438
3439
  hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles12.tooltipRow, children: [
3439
3440
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles12.swatch, { backgroundColor: r.color }] }),
3440
3441
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
3441
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkKJR3ZKG4js.formatValue.call(void 0, r.value, r.config) })
3442
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles12.tooltipValue, { color: theme.text }], children: _chunkG67L7TFKjs.formatValue.call(void 0, r.value, r.config) })
3442
3443
  ] }, r.key)),
3443
3444
  isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
3444
3445
  ]
@@ -3523,7 +3524,7 @@ function linkData(r, frames, xField) {
3523
3524
  if (frame && xField === void 0) {
3524
3525
  row = r.index;
3525
3526
  } else if (frame) {
3526
- const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkKJR3ZKG4js.numberFields.call(void 0, frame)[0]));
3527
+ const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkG67L7TFKjs.numberFields.call(void 0, frame)[0]));
3527
3528
  const at = _optionalChain([xf, 'optionalAccess', _217 => _217.values, 'access', _218 => _218.findIndex, 'call', _219 => _219((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
3528
3529
  row = at != null && at >= 0 ? at : void 0;
3529
3530
  }
@@ -3534,7 +3535,7 @@ function linkData(r, frames, xField) {
3534
3535
  fieldName: r.name,
3535
3536
  seriesName: r.name,
3536
3537
  value: r.value,
3537
- text: _chunkKJR3ZKG4js.formatValue.call(void 0, r.value, r.config),
3538
+ text: _chunkG67L7TFKjs.formatValue.call(void 0, r.value, r.config),
3538
3539
  time: xField === void 0 ? r.time : void 0
3539
3540
  };
3540
3541
  }
@@ -3595,8 +3596,8 @@ function xySeries(panel, frames, scheme) {
3595
3596
  const { manual, series: maps, exclude } = mappings(panel);
3596
3597
  const multiple = frames.length > 1;
3597
3598
  const out = [];
3598
- const config = (field, frame) => _chunkKJR3ZKG4js.resolveFieldConfig.call(void 0, panel, field, frame, _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, field, frame, multiple));
3599
- const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkKJR3ZKG4js.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3599
+ const config = (field, frame) => _chunkG67L7TFKjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkG67L7TFKjs.fieldDisplayName.call(void 0, field, frame, multiple));
3600
+ const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkG67L7TFKjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkG67L7TFKjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
3600
3601
  for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
3601
3602
  const matcher = _optionalChain([m, 'access', _230 => _230.frame, 'optionalAccess', _231 => _231.matcher]);
3602
3603
  const chosen = _optionalChain([matcher, 'optionalAccess', _232 => _232.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
@@ -3612,16 +3613,16 @@ function xySeries(panel, frames, scheme) {
3612
3613
  const yConfig = config(yField, frame);
3613
3614
  if (_optionalChain([yConfig, 'access', _233 => _233.custom, 'optionalAccess', _234 => _234.hideFrom, 'optionalAccess', _235 => _235.viz]) && !manual) continue;
3614
3615
  const xConfig = config(xField, frame);
3615
- const color = _chunkKJR3ZKG4js.seriesColor.call(void 0, out.length, scheme, yConfig);
3616
- const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkKJR3ZKG4js.valueColor.call(void 0, null, yConfig, color) : color;
3616
+ const color = _chunkG67L7TFKjs.seriesColor.call(void 0, out.length, scheme, yConfig);
3617
+ const base = _optionalChain([yConfig, 'access', _236 => _236.color, 'optionalAccess', _237 => _237.mode]) === "thresholds" ? _chunkG67L7TFKjs.valueColor.call(void 0, null, yConfig, color) : color;
3617
3618
  const rows = [];
3618
3619
  const xs = [];
3619
3620
  const ys = [];
3620
3621
  yField.values.forEach((yv, i) => {
3621
3622
  const xv = xField.values[i];
3622
3623
  if (xv == null || yv == null) return;
3623
- const xn = xField.type === "time" ? _chunkKJR3ZKG4js.toMillis.call(void 0, xv) : Number(xv);
3624
- const yn = yField.type === "time" ? _chunkKJR3ZKG4js.toMillis.call(void 0, yv) : Number(yv);
3624
+ const xn = xField.type === "time" ? _chunkG67L7TFKjs.toMillis.call(void 0, xv) : Number(xv);
3625
+ const yn = yField.type === "time" ? _chunkG67L7TFKjs.toMillis.call(void 0, yv) : Number(yv);
3625
3626
  if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
3626
3627
  rows.push(i);
3627
3628
  xs.push(xn);
@@ -3634,7 +3635,7 @@ function xySeries(panel, frames, scheme) {
3634
3635
  const cConfig = config(colorField, frame);
3635
3636
  const values = rows.map((i) => num3(colorField.values[i]));
3636
3637
  const extent = range2(values);
3637
- colors = values.map((v) => _chunkKJR3ZKG4js.valueColor.call(void 0, v, cConfig, base, extent));
3638
+ colors = values.map((v) => _chunkG67L7TFKjs.valueColor.call(void 0, v, cConfig, base, extent));
3638
3639
  }
3639
3640
  let sizes = rows.map(() => fixedSize);
3640
3641
  if (sizeField) {
@@ -3644,7 +3645,7 @@ function xySeries(panel, frames, scheme) {
3644
3645
  sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
3645
3646
  }
3646
3647
  const fixedName = _optionalChain([m, 'access', _249 => _249.name, 'optionalAccess', _250 => _250.fixed]);
3647
- const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkKJR3ZKG4js.fieldDisplayName.call(void 0, yField, frame, multiple)));
3648
+ const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkG67L7TFKjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
3648
3649
  out.push({
3649
3650
  key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
3650
3651
  name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
@@ -3767,7 +3768,7 @@ function XYChartPanel({ panel, frames }) {
3767
3768
  size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
3768
3769
  yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3769
3770
  gridY && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: pad.left, x2: pad.left + plotW, y1: layout.y(t), y2: layout.y(t), stroke: theme.grid, strokeWidth: 1 }),
3770
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkKJR3ZKG4js.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3771
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkG67L7TFKjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
3771
3772
  ] }, `y${t}`)),
3772
3773
  xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
3773
3774
  gridX && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: layout.x(t), x2: layout.x(t), y1: pad.top, y2: pad.top + plotH, stroke: theme.grid, strokeWidth: 1 }),
@@ -3779,7 +3780,7 @@ function XYChartPanel({ panel, frames }) {
3779
3780
  fontSize: 10,
3780
3781
  fill: theme.textMuted,
3781
3782
  textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
3782
- children: _chunkKJR3ZKG4js.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3783
+ children: _chunkG67L7TFKjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
3783
3784
  }
3784
3785
  )
3785
3786
  ] }, `x${t}`)),
@@ -3892,14 +3893,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3892
3893
  const width = (measured.width || window.width) - insets.left - insets.right;
3893
3894
  const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
3894
3895
  const sections = _react.useMemo.call(void 0,
3895
- () => _chunkKJR3ZKG4js.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3896
+ () => _chunkG67L7TFKjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
3896
3897
  [dashboard, layoutMode, variables, variableInfo2]
3897
3898
  );
3898
3899
  const [toggled, setToggled] = _react.useState.call(void 0, {});
3899
3900
  const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
3900
3901
  const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
3901
3902
  const contentW = width - SIDE * 2;
3902
- const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkKJR3ZKG4js.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkKJR3ZKG4js.panelHasQueries)]))));
3903
+ const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkG67L7TFKjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _273 => _273.panels, 'optionalAccess', _274 => _274.some, 'call', _275 => _275(_chunkG67L7TFKjs.panelHasQueries)]))));
3903
3904
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.fill, { backgroundColor: theme.background }], onLayout, children: [
3904
3905
  width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3905
3906
  _reactnative.ScrollView,
@@ -3925,14 +3926,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3925
3926
  accessibilityState: { expanded: !collapsed },
3926
3927
  children: [
3927
3928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
3928
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkKJR3ZKG4js.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3929
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkG67L7TFKjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
3929
3930
  ]
3930
3931
  }
3931
3932
  ),
3932
3933
  !collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
3933
3934
  !collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles14.row, children: row.cells.map((cell) => {
3934
- const w = (contentW + GAP2) * (cell.span / _chunkKJR3ZKG4js.GRID_COLUMNS) - GAP2;
3935
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkKJR3ZKG4js.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3935
+ const w = (contentW + GAP2) * (cell.span / _chunkG67L7TFKjs.GRID_COLUMNS) - GAP2;
3936
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkG67L7TFKjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
3936
3937
  }) }, ri))
3937
3938
  ] }, section.key);
3938
3939
  })
@@ -3943,10 +3944,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
3943
3944
  ] });
3944
3945
  }
3945
3946
  function GridSection({ grid, width, maxPanelH, deferred }) {
3946
- const colW = (width + GAP2) / _chunkKJR3ZKG4js.GRID_COLUMNS;
3947
- const tallest = Math.max(0, ...grid.cells.map((c) => _chunkKJR3ZKG4js.gridUnitsToPx.call(void 0, c.h)));
3947
+ const colW = (width + GAP2) / _chunkG67L7TFKjs.GRID_COLUMNS;
3948
+ const tallest = Math.max(0, ...grid.cells.map((c) => _chunkG67L7TFKjs.gridUnitsToPx.call(void 0, c.h)));
3948
3949
  const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
3949
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkKJR3ZKG4js.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkKJR3ZKG4js.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkKJR3ZKG4js.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3950
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkG67L7TFKjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles14.gridCell, { left: cell.x * colW, top: _chunkG67L7TFKjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkG67L7TFKjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
3950
3951
  }
3951
3952
  function useSeenSections(viewportHeight) {
3952
3953
  const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
@@ -4005,13 +4006,13 @@ function PanelCardContent({ panel, width, height, deferred }) {
4005
4006
  const theme = useDashTheme();
4006
4007
  const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
4007
4008
  const { resolve, openLinks } = usePanelLinks(panel);
4008
- const group = _chunkKJR3ZKG4js.isInputGroup.call(void 0, panel);
4009
- const input = _chunkKJR3ZKG4js.isInputPanel.call(void 0, panel) || group;
4009
+ const group = _chunkG67L7TFKjs.isInputGroup.call(void 0, panel);
4010
+ const input = _chunkG67L7TFKjs.isInputPanel.call(void 0, panel) || group;
4010
4011
  const form = _react.useContext.call(void 0, InputFormContext);
4011
- const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkKJR3ZKG4js.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
4012
+ const problem = group ? _optionalChain([form, 'optionalAccess', _276 => _276.group, 'optionalCall', _277 => _277(panel), 'optionalAccess', _278 => _278.problem]) : _chunkG67L7TFKjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _279 => _279.problem, 'optionalCall', _280 => _280(panel.options.metric)]) : void 0;
4012
4013
  const hasLinks = !!_optionalChain([panel, 'access', _281 => _281.links, 'optionalAccess', _282 => _282.length]);
4013
4014
  const hasTitle = !!panel.title || hasLinks || !!problem;
4014
- const title = panel.title ? _chunkKJR3ZKG4js.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4015
+ const title = panel.title ? _chunkG67L7TFKjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
4015
4016
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles14.card, { width, height, backgroundColor: theme.surface, borderColor: theme.border }], children: [
4016
4017
  hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles14.titleRow, children: [
4017
4018
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles14.title, { color: theme.text }], numberOfLines: 1, children: title }),
@@ -4033,7 +4034,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
4033
4034
  }
4034
4035
  function DataPanelBody({ panel, width, height }) {
4035
4036
  const theme = useDashTheme();
4036
- const needsData = _chunkKJR3ZKG4js.panelHasQueries.call(void 0, panel);
4037
+ const needsData = _chunkG67L7TFKjs.panelHasQueries.call(void 0, panel);
4037
4038
  const data = usePanelData(panel, width, needsData);
4038
4039
  const Component2 = panelComponent(panel.type);
4039
4040
  if (needsData && data.error) {
@@ -4075,19 +4076,19 @@ function savedValues(panels, entries) {
4075
4076
  const values = {};
4076
4077
  for (const p of panels) {
4077
4078
  const mine = entries.filter((e) => e.metric === p.options.metric);
4078
- values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkKJR3ZKG4js.entryToInputValue.call(void 0, p, mine[0]);
4079
+ values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkG67L7TFKjs.entryToInputValue.call(void 0, p, mine[0]);
4079
4080
  }
4080
4081
  return values;
4081
4082
  }
4082
4083
  async function lastItems(store, group) {
4083
- const metrics = _chunkKJR3ZKG4js.groupFields.call(void 0, group).map((f) => f.options.metric);
4084
+ const metrics = _chunkG67L7TFKjs.groupFields.call(void 0, group).map((f) => f.options.metric);
4084
4085
  const latest = (await Promise.all(metrics.map((m) => store.latest(m)))).filter((e) => !!e).sort((a, b) => b.ts - a.ts)[0];
4085
4086
  if (!latest) return [];
4086
- return _chunkKJR3ZKG4js.entriesToItems.call(void 0, group, _chunkKJR3ZKG4js.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4087
+ return _chunkG67L7TFKjs.entriesToItems.call(void 0, group, _chunkG67L7TFKjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
4087
4088
  }
4088
4089
  function freshItem(group, position, last) {
4089
4090
  const item = {};
4090
- for (const f of _chunkKJR3ZKG4js.groupFields.call(void 0, group)) {
4091
+ for (const f of _chunkG67L7TFKjs.groupFields.call(void 0, group)) {
4091
4092
  const d = f.options.default;
4092
4093
  const v = d === "last" ? _optionalChain([last, 'optionalAccess', _283 => _283[position], 'optionalAccess', _284 => _284[f.options.metric]]) : d;
4093
4094
  if (v !== void 0 && v !== null) item[f.options.metric] = v;
@@ -4096,14 +4097,14 @@ function freshItem(group, position, last) {
4096
4097
  }
4097
4098
  function baseItems(group, editing, last) {
4098
4099
  const start = group.options.start;
4099
- const values = editing ? _chunkKJR3ZKG4js.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4100
+ const values = editing ? _chunkG67L7TFKjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _285 => _285.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
4100
4101
  return values.map((v, i) => ({ key: `b${i}`, values: v, edited: [] }));
4101
4102
  }
4102
4103
  var nextItemKey = 1;
4103
4104
  function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing }) {
4104
4105
  const theme = useDashTheme();
4105
- const panels = _react.useMemo.call(void 0, () => _chunkKJR3ZKG4js.plainInputPanels.call(void 0, dashboard), [dashboard]);
4106
- const groups = _react.useMemo.call(void 0, () => _chunkKJR3ZKG4js.inputGroups.call(void 0, dashboard), [dashboard]);
4106
+ const panels = _react.useMemo.call(void 0, () => _chunkG67L7TFKjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
4107
+ const groups = _react.useMemo.call(void 0, () => _chunkG67L7TFKjs.inputGroups.call(void 0, dashboard), [dashboard]);
4107
4108
  const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
4108
4109
  const [defaults, setDefaults] = _react.useState.call(void 0, {});
4109
4110
  const [edits, setEdits] = _react.useState.call(void 0, {});
@@ -4119,12 +4120,12 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4119
4120
  const next = {};
4120
4121
  for (const p of panels) {
4121
4122
  const d = p.options.default;
4122
- if (d === "last") next[p.options.metric] = _chunkKJR3ZKG4js.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4123
+ if (d === "last") next[p.options.metric] = _chunkG67L7TFKjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
4123
4124
  else if (d !== void 0) next[p.options.metric] = d;
4124
4125
  }
4125
4126
  const lastNext = {};
4126
4127
  for (const g of groups) {
4127
- const wanted = g.options.start === "last" || _chunkKJR3ZKG4js.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4128
+ const wanted = g.options.start === "last" || _chunkG67L7TFKjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
4128
4129
  if (wanted) lastNext[groupKey(g)] = await lastItems(store, g);
4129
4130
  }
4130
4131
  if (mine === run) {
@@ -4154,7 +4155,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4154
4155
  choices,
4155
4156
  problem: (m) => {
4156
4157
  const p = panels.find((x) => x.options.metric === m);
4157
- return p && (checked || m in edits) ? _chunkKJR3ZKG4js.inputProblem.call(void 0, p, value(m)) : void 0;
4158
+ return p && (checked || m in edits) ? _chunkG67L7TFKjs.inputProblem.call(void 0, p, value(m)) : void 0;
4158
4159
  },
4159
4160
  group: (g) => groupState(g, itemsOf(g), last[groupKey(g)], groupKey(g) in groupEdits, checked, (update) => {
4160
4161
  setStatus(null);
@@ -4164,25 +4165,25 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
4164
4165
  }, [edits, saved, defaults, given, store, choices, panels, checked, itemsOf, last, groupEdits, base]);
4165
4166
  const dirty = Object.keys(edits).length + groups.reduce((n, g) => n + groupChanges(_nullishCoalesce(base[groupKey(g)], () => ( [])), groupEdits[groupKey(g)]), 0);
4166
4167
  const recordedGroups = _react.useCallback.call(void 0,
4167
- () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkKJR3ZKG4js.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4168
+ () => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkG67L7TFKjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
4168
4169
  [groups, editing, groupEdits]
4169
4170
  );
4170
4171
  const save = _react.useCallback.call(void 0, async () => {
4171
4172
  const problems = panels.flatMap((p) => {
4172
- const problem = _chunkKJR3ZKG4js.inputProblem.call(void 0, p, state.value(p.options.metric));
4173
+ const problem = _chunkG67L7TFKjs.inputProblem.call(void 0, p, state.value(p.options.metric));
4173
4174
  return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
4174
4175
  });
4175
- for (const g of recordedGroups()) problems.push(..._chunkKJR3ZKG4js.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4176
+ for (const g of recordedGroups()) problems.push(..._chunkG67L7TFKjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
4176
4177
  if (problems.length) {
4177
4178
  setChecked(true);
4178
4179
  setStatus(problems.length === 1 ? `Can\u2019t save. ${problems[0]}` : `Can\u2019t save: ${problems.length} fields need fixing`);
4179
4180
  return;
4180
4181
  }
4181
4182
  const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _286 => _286[0], 'optionalAccess', _287 => _287.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _288 => _288()]), () => ( Date.now())) : Date.now() + offsetMs)));
4182
- const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkKJR3ZKG4js.newSaveId.call(void 0, )));
4183
+ const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _289 => _289.find, 'call', _290 => _290((e) => e.save), 'optionalAccess', _291 => _291.save]), () => ( _chunkG67L7TFKjs.newSaveId.call(void 0, )));
4183
4184
  const entries = [
4184
- ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkKJR3ZKG4js.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4185
- ...recordedGroups().flatMap((g) => _chunkKJR3ZKG4js.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4185
+ ...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkG67L7TFKjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
4186
+ ...recordedGroups().flatMap((g) => _chunkG67L7TFKjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
4186
4187
  ];
4187
4188
  if (!entries.length) return;
4188
4189
  const extra = beforeSave ? await beforeSave(ts) : [];
@@ -4240,10 +4241,10 @@ function groupChanges(base, items) {
4240
4241
  return edited + added + removed + moved;
4241
4242
  }
4242
4243
  function groupState(group, items, last, edited, showProblems, update) {
4243
- const fields = _chunkKJR3ZKG4js.groupFields.call(void 0, group);
4244
+ const fields = _chunkG67L7TFKjs.groupFields.call(void 0, group);
4244
4245
  const { max } = group.options;
4245
4246
  const fresh = (position) => ({ key: `n${nextItemKey++}`, values: freshItem(group, position, last), edited: [] });
4246
- const filled = items.filter((i) => !_chunkKJR3ZKG4js.isEmptyItem.call(void 0, group, i.values)).length;
4247
+ const filled = items.filter((i) => !_chunkG67L7TFKjs.isEmptyItem.call(void 0, group, i.values)).length;
4247
4248
  const { min } = group.options;
4248
4249
  return {
4249
4250
  items: items.map((i) => ({ key: i.key, values: i.values, edited: i.edited })),
@@ -4268,8 +4269,8 @@ function groupState(group, items, last, edited, showProblems, update) {
4268
4269
  fieldProblem: (index, metric) => {
4269
4270
  const item = items[index];
4270
4271
  const field = fields.find((f) => f.options.metric === metric);
4271
- if (!item || !field || _chunkKJR3ZKG4js.isEmptyItem.call(void 0, group, item.values)) return void 0;
4272
- return showProblems || item.edited.includes(metric) ? _chunkKJR3ZKG4js.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4272
+ if (!item || !field || _chunkG67L7TFKjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
4273
+ return showProblems || item.edited.includes(metric) ? _chunkG67L7TFKjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
4273
4274
  }
4274
4275
  };
4275
4276
  }
@@ -4567,4 +4568,5 @@ var styles15 = _reactnative.StyleSheet.create({
4567
4568
 
4568
4569
 
4569
4570
 
4570
- exports.ALL = _chunkKJR3ZKG4js.ALL; exports.AUTHORING_GUIDE = _chunkKJR3ZKG4js.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkKJR3ZKG4js.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkKJR3ZKG4js.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkKJR3ZKG4js.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkKJR3ZKG4js.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkKJR3ZKG4js.ConfigLoader; exports.DASHBOARD_DS = _chunkKJR3ZKG4js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkKJR3ZKG4js.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkKJR3ZKG4js.DOCUMENT_GUIDE; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkKJR3ZKG4js.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkKJR3ZKG4js.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkKJR3ZKG4js.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkKJR3ZKG4js.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkKJR3ZKG4js.GrafanaClient; exports.GrafanaDataSource = _chunkKJR3ZKG4js.GrafanaDataSource; exports.GrafanaError = _chunkKJR3ZKG4js.GrafanaError; exports.HttpConfigFiles = _chunkKJR3ZKG4js.HttpConfigFiles; exports.INPUT_GROUP = _chunkKJR3ZKG4js.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkKJR3ZKG4js.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkKJR3ZKG4js.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkKJR3ZKG4js.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkKJR3ZKG4js.LocalDataSource; exports.MANIFEST_VERSION = _chunkKJR3ZKG4js.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkKJR3ZKG4js.MAPPING_TYPES; exports.MemoryEntryStore = _chunkKJR3ZKG4js.MemoryEntryStore; exports.NAMED_COLORS = _chunkKJR3ZKG4js.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkKJR3ZKG4js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkKJR3ZKG4js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkKJR3ZKG4js.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkKJR3ZKG4js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkKJR3ZKG4js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkKJR3ZKG4js.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkKJR3ZKG4js.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkKJR3ZKG4js.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkKJR3ZKG4js.SPECIAL_MATCHES; exports.SaveConflictError = _chunkKJR3ZKG4js.SaveConflictError; exports.TEMPLATE_VERSION = _chunkKJR3ZKG4js.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkKJR3ZKG4js.TIME_PRESETS; exports.UNIT_CHOICES = _chunkKJR3ZKG4js.UNIT_CHOICES; exports.addTime = _chunkKJR3ZKG4js.addTime; exports.appSchema = _chunkKJR3ZKG4js.appSchema; exports.applyDashboardLink = _chunkKJR3ZKG4js.applyDashboardLink; exports.applyJsonEdits = _chunkKJR3ZKG4js.applyJsonEdits; exports.applyTemplate = _chunkKJR3ZKG4js.applyTemplate; exports.applyTransformations = _chunkKJR3ZKG4js.applyTransformations; exports.assembleBundle = _chunkKJR3ZKG4js.assembleBundle; exports.assembleFromResponse = _chunkKJR3ZKG4js.assembleFromResponse; exports.buildFrames = _chunkKJR3ZKG4js.buildFrames; exports.bundleFromFiles = _chunkKJR3ZKG4js.bundleFromFiles; exports.bundleRoot = _chunkKJR3ZKG4js.bundleRoot; exports.calculateInterval = _chunkKJR3ZKG4js.calculateInterval; exports.checkFiles = _chunkKJR3ZKG4js.checkFiles; exports.cleanDashboard = _chunkKJR3ZKG4js.cleanDashboard; exports.cleanPanelOptions = _chunkKJR3ZKG4js.cleanPanelOptions; exports.collapseRow = _chunkKJR3ZKG4js.collapseRow; exports.compactGrid = _chunkKJR3ZKG4js.compactGrid; exports.copyPanels = _chunkKJR3ZKG4js.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkKJR3ZKG4js.dashboardSchema; exports.dashboardSchemaIssues = _chunkKJR3ZKG4js.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkKJR3ZKG4js.dashboardSourceIds; exports.defaultFetchJson = _chunkKJR3ZKG4js.defaultFetchJson; exports.describeRange = _chunkKJR3ZKG4js.describeRange; exports.diffJson = _chunkKJR3ZKG4js.diffJson; exports.documentChanges = _chunkKJR3ZKG4js.documentChanges; exports.documentIdFor = _chunkKJR3ZKG4js.documentIdFor; exports.documentKind = _chunkKJR3ZKG4js.documentKind; exports.documentPrompt = _chunkKJR3ZKG4js.documentPrompt; exports.documentUses = _chunkKJR3ZKG4js.documentUses; exports.dropTarget = _chunkKJR3ZKG4js.dropTarget; exports.duplicatePanel = _chunkKJR3ZKG4js.duplicatePanel; exports.entriesSavedWith = _chunkKJR3ZKG4js.entriesSavedWith; exports.entriesToItems = _chunkKJR3ZKG4js.entriesToItems; exports.entryToInputValue = _chunkKJR3ZKG4js.entryToInputValue; exports.expandRow = _chunkKJR3ZKG4js.expandRow; exports.fetchBundle = _chunkKJR3ZKG4js.fetchBundle; exports.fetchJsonWithToken = _chunkKJR3ZKG4js.fetchJsonWithToken; exports.fieldDisplayName = _chunkKJR3ZKG4js.fieldDisplayName; exports.fieldMatches = _chunkKJR3ZKG4js.fieldMatches; exports.fixDocumentPrompt = _chunkKJR3ZKG4js.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkKJR3ZKG4js.fixTemplatePrompt; exports.formatClock = _chunkKJR3ZKG4js.formatClock; exports.formatDisplay = _chunkKJR3ZKG4js.formatDisplay; exports.formatDuration = _chunkKJR3ZKG4js.formatDuration; exports.formatJsonText = _chunkKJR3ZKG4js.formatJsonText; exports.formatLocalDateTime = _chunkKJR3ZKG4js.formatLocalDateTime; exports.formatValue = _chunkKJR3ZKG4js.formatValue; exports.frameLength = _chunkKJR3ZKG4js.frameLength; exports.framesToOptions = _chunkKJR3ZKG4js.framesToOptions; exports.fromWire = _chunkKJR3ZKG4js.fromWire; exports.getPath = _chunkKJR3ZKG4js.getPath; exports.gridOffsetPx = _chunkKJR3ZKG4js.gridOffsetPx; exports.gridUnitsToPx = _chunkKJR3ZKG4js.gridUnitsToPx; exports.groupField = _chunkKJR3ZKG4js.groupField; exports.groupFields = _chunkKJR3ZKG4js.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkKJR3ZKG4js.groupProblems; exports.groupToEntries = _chunkKJR3ZKG4js.groupToEntries; exports.httpFetchJson = _chunkKJR3ZKG4js.httpFetchJson; exports.initialVariableValues = _chunkKJR3ZKG4js.initialVariableValues; exports.inputGroups = _chunkKJR3ZKG4js.inputGroups; exports.inputPanels = _chunkKJR3ZKG4js.inputPanels; exports.inputProblem = _chunkKJR3ZKG4js.inputProblem; exports.insertPanel = _chunkKJR3ZKG4js.insertPanel; exports.interpolate = _chunkKJR3ZKG4js.interpolate; exports.interpolateDeep = _chunkKJR3ZKG4js.interpolateDeep; exports.isBundleResponse = _chunkKJR3ZKG4js.isBundleResponse; exports.isEditableVariableType = _chunkKJR3ZKG4js.isEditableVariableType; exports.isEmptyItem = _chunkKJR3ZKG4js.isEmptyItem; exports.isFormPanelType = _chunkKJR3ZKG4js.isFormPanelType; exports.isInputGroup = _chunkKJR3ZKG4js.isInputGroup; exports.isInputPanel = _chunkKJR3ZKG4js.isInputPanel; exports.isInputType = _chunkKJR3ZKG4js.isInputType; exports.isLocalDatasource = _chunkKJR3ZKG4js.isLocalDatasource; exports.isReducer = _chunkKJR3ZKG4js.isReducer; exports.isRow = _chunkKJR3ZKG4js.isRow; exports.isSqlDatasource = _chunkKJR3ZKG4js.isSqlDatasource; exports.jsonFromAnswer = _chunkKJR3ZKG4js.jsonFromAnswer; exports.layoutCanvas = _chunkKJR3ZKG4js.layoutCanvas; exports.layoutDashboard = _chunkKJR3ZKG4js.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkKJR3ZKG4js.lineColumn; exports.loadGazetteer = _chunkKJR3ZKG4js.loadGazetteer; exports.locate = _chunkKJR3ZKG4js.locate; exports.makeTemplate = _chunkKJR3ZKG4js.makeTemplate; exports.manifestSchemaIssues = _chunkKJR3ZKG4js.manifestSchemaIssues; exports.mappedResult = _chunkKJR3ZKG4js.mappedResult; exports.mappingProblem = _chunkKJR3ZKG4js.mappingProblem; exports.mappingRow = _chunkKJR3ZKG4js.mappingRow; exports.mappingRows = _chunkKJR3ZKG4js.mappingRows; exports.metricChanges = _chunkKJR3ZKG4js.metricChanges; exports.movePanel = _chunkKJR3ZKG4js.movePanel; exports.newDocument = _chunkKJR3ZKG4js.newDocument; exports.newPanel = _chunkKJR3ZKG4js.newPanel; exports.newSaveId = _chunkKJR3ZKG4js.newSaveId; exports.newVariable = _chunkKJR3ZKG4js.newVariable; exports.nextPanelId = _chunkKJR3ZKG4js.nextPanelId; exports.normalizeRef = _chunkKJR3ZKG4js.normalizeRef; exports.numberFields = _chunkKJR3ZKG4js.numberFields; exports.optionValue = _chunkKJR3ZKG4js.optionValue; exports.overrideProperties = _chunkKJR3ZKG4js.overrideProperties; exports.panelEdits = _chunkKJR3ZKG4js.panelEdits; exports.panelHasQueries = _chunkKJR3ZKG4js.panelHasQueries; exports.panelKey = _chunkKJR3ZKG4js.panelKey; exports.panelMetrics = _chunkKJR3ZKG4js.panelMetrics; exports.panelOptions = _chunkKJR3ZKG4js.panelOptions; exports.panelOverrides = _chunkKJR3ZKG4js.panelOverrides; exports.panelSize = _chunkKJR3ZKG4js.panelSize; exports.panelSpan = _chunkKJR3ZKG4js.panelSpan; exports.parseClockDigits = _chunkKJR3ZKG4js.parseClockDigits; exports.parseDashboardLink = _chunkKJR3ZKG4js.parseDashboardLink; exports.parseDuration = _chunkKJR3ZKG4js.parseDuration; exports.parseGazetteer = _chunkKJR3ZKG4js.parseGazetteer; exports.parseJsonText = _chunkKJR3ZKG4js.parseJsonText; exports.parseLocalDateTime = _chunkKJR3ZKG4js.parseLocalDateTime; exports.parseRange = _chunkKJR3ZKG4js.parseRange; exports.parseSnippet = _chunkKJR3ZKG4js.parseSnippet; exports.parseTemplate = _chunkKJR3ZKG4js.parseTemplate; exports.parseTime = _chunkKJR3ZKG4js.parseTime; exports.pasteSnippet = _chunkKJR3ZKG4js.pasteSnippet; exports.placePanel = _chunkKJR3ZKG4js.placePanel; exports.plainInputPanels = _chunkKJR3ZKG4js.plainInputPanels; exports.pointerToPath = _chunkKJR3ZKG4js.pointerToPath; exports.prepareDashboard = _chunkKJR3ZKG4js.prepareDashboard; exports.previewPaste = _chunkKJR3ZKG4js.previewPaste; exports.queryPanel = _chunkKJR3ZKG4js.queryPanel; exports.queryParam = _chunkKJR3ZKG4js.queryParam; exports.readConfigFiles = _chunkKJR3ZKG4js.readConfigFiles; exports.readDocumentAnswer = _chunkKJR3ZKG4js.readDocumentAnswer; exports.readTemplateAnswer = _chunkKJR3ZKG4js.readTemplateAnswer; exports.readingOrder = _chunkKJR3ZKG4js.readingOrder; exports.reduce = _chunkKJR3ZKG4js.reduce; exports.refineOptions = _chunkKJR3ZKG4js.refineOptions; exports.refreshedVariables = _chunkKJR3ZKG4js.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkKJR3ZKG4js.removeDocumentFromManifest; exports.removePanel = _chunkKJR3ZKG4js.removePanel; exports.renameDocumentInManifest = _chunkKJR3ZKG4js.renameDocumentInManifest; exports.renameMetrics = _chunkKJR3ZKG4js.renameMetrics; exports.renameVariableInPanels = _chunkKJR3ZKG4js.renameVariableInPanels; exports.repack = _chunkKJR3ZKG4js.repack; exports.repeatOptions = _chunkKJR3ZKG4js.repeatOptions; exports.resizePanel = _chunkKJR3ZKG4js.resizePanel; exports.resolveColor = _chunkKJR3ZKG4js.resolveColor; exports.resolveFieldConfig = _chunkKJR3ZKG4js.resolveFieldConfig; exports.resolveLinks = _chunkKJR3ZKG4js.resolveLinks; exports.resolveTimezone = _chunkKJR3ZKG4js.resolveTimezone; exports.resolveUrl = _chunkKJR3ZKG4js.resolveUrl; exports.resolveVariables = _chunkKJR3ZKG4js.resolveVariables; exports.revalidateBundle = _chunkKJR3ZKG4js.revalidateBundle; exports.rowsToMappings = _chunkKJR3ZKG4js.rowsToMappings; exports.sameSave = _chunkKJR3ZKG4js.sameSave; exports.sampleEntries = _chunkKJR3ZKG4js.sampleEntries; exports.screenDocuments = _chunkKJR3ZKG4js.screenDocuments; exports.screenOfType = _chunkKJR3ZKG4js.screenOfType; exports.selectValue = _chunkKJR3ZKG4js.selectValue; exports.seriesColor = _chunkKJR3ZKG4js.seriesColor; exports.setHiddenOnPhones = _chunkKJR3ZKG4js.setHiddenOnPhones; exports.setJsonValue = _chunkKJR3ZKG4js.setJsonValue; exports.setOption = _chunkKJR3ZKG4js.setOption; exports.setOptionValue = _chunkKJR3ZKG4js.setOptionValue; exports.setOverrides = _chunkKJR3ZKG4js.setOverrides; exports.settleLayout = _chunkKJR3ZKG4js.settleLayout; exports.snapToGrid = _chunkKJR3ZKG4js.snapToGrid; exports.splitPath = _chunkKJR3ZKG4js.splitPath; exports.startOf = _chunkKJR3ZKG4js.startOf; exports.stringifyCompact = _chunkKJR3ZKG4js.stringifyCompact; exports.tabIdFor = _chunkKJR3ZKG4js.tabIdFor; exports.templateNeeds = _chunkKJR3ZKG4js.templateNeeds; exports.templatePrompt = _chunkKJR3ZKG4js.templatePrompt; exports.textSuggestions = _chunkKJR3ZKG4js.textSuggestions; exports.thresholdStep = _chunkKJR3ZKG4js.thresholdStep; exports.timeExprError = _chunkKJR3ZKG4js.timeExprError; exports.timeField = _chunkKJR3ZKG4js.timeField; exports.toEntries = _chunkKJR3ZKG4js.toEntries; exports.toMillis = _chunkKJR3ZKG4js.toMillis; exports.toSeries = _chunkKJR3ZKG4js.toSeries; exports.toXYSeries = _chunkKJR3ZKG4js.toXYSeries; exports.uniqueNames = _chunkKJR3ZKG4js.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkKJR3ZKG4js.validateBundle; exports.validateDashboard = _chunkKJR3ZKG4js.validateDashboard; exports.validateManifest = _chunkKJR3ZKG4js.validateManifest; exports.valueColor = _chunkKJR3ZKG4js.valueColor; exports.valueText = _chunkKJR3ZKG4js.valueText; exports.variableDependents = _chunkKJR3ZKG4js.variableDependents; exports.variableInfo = _chunkKJR3ZKG4js.variableInfo; exports.variableNameError = _chunkKJR3ZKG4js.variableNameError; exports.variableOptions = _chunkKJR3ZKG4js.variableOptions; exports.variableOrder = _chunkKJR3ZKG4js.variableOrder; exports.variableReferences = _chunkKJR3ZKG4js.variableReferences; exports.variableUses = _chunkKJR3ZKG4js.variableUses; exports.variableWithCurrent = _chunkKJR3ZKG4js.variableWithCurrent; exports.variableWithFlags = _chunkKJR3ZKG4js.variableWithFlags; exports.variableWithQuery = _chunkKJR3ZKG4js.variableWithQuery; exports.variableWithType = _chunkKJR3ZKG4js.variableWithType; exports.visibleVariables = _chunkKJR3ZKG4js.visibleVariables; exports.zoomRange = _chunkKJR3ZKG4js.zoomRange;
4571
+
4572
+ exports.ALL = _chunkG67L7TFKjs.ALL; exports.AUTHORING_GUIDE = _chunkG67L7TFKjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkG67L7TFKjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkG67L7TFKjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkG67L7TFKjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkG67L7TFKjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunkG67L7TFKjs.ConfigLoader; exports.DASHBOARD_DS = _chunkG67L7TFKjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkG67L7TFKjs.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkG67L7TFKjs.DOCUMENT_GUIDE; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunkG67L7TFKjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkG67L7TFKjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkG67L7TFKjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkG67L7TFKjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkG67L7TFKjs.GrafanaClient; exports.GrafanaDataSource = _chunkG67L7TFKjs.GrafanaDataSource; exports.GrafanaError = _chunkG67L7TFKjs.GrafanaError; exports.HttpConfigFiles = _chunkG67L7TFKjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkG67L7TFKjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkG67L7TFKjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkG67L7TFKjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkG67L7TFKjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunkG67L7TFKjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkG67L7TFKjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkG67L7TFKjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkG67L7TFKjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkG67L7TFKjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunkG67L7TFKjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkG67L7TFKjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkG67L7TFKjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkG67L7TFKjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkG67L7TFKjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkG67L7TFKjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunkG67L7TFKjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkG67L7TFKjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkG67L7TFKjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkG67L7TFKjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkG67L7TFKjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkG67L7TFKjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkG67L7TFKjs.UNIT_CHOICES; exports.addTime = _chunkG67L7TFKjs.addTime; exports.appSchema = _chunkG67L7TFKjs.appSchema; exports.applyDashboardLink = _chunkG67L7TFKjs.applyDashboardLink; exports.applyJsonEdits = _chunkG67L7TFKjs.applyJsonEdits; exports.applyTemplate = _chunkG67L7TFKjs.applyTemplate; exports.applyTransformations = _chunkG67L7TFKjs.applyTransformations; exports.assembleBundle = _chunkG67L7TFKjs.assembleBundle; exports.assembleFromResponse = _chunkG67L7TFKjs.assembleFromResponse; exports.buildFrames = _chunkG67L7TFKjs.buildFrames; exports.bundleFromFiles = _chunkG67L7TFKjs.bundleFromFiles; exports.bundleRoot = _chunkG67L7TFKjs.bundleRoot; exports.calculateInterval = _chunkG67L7TFKjs.calculateInterval; exports.checkFiles = _chunkG67L7TFKjs.checkFiles; exports.cleanDashboard = _chunkG67L7TFKjs.cleanDashboard; exports.cleanPanelOptions = _chunkG67L7TFKjs.cleanPanelOptions; exports.collapseRow = _chunkG67L7TFKjs.collapseRow; exports.compactGrid = _chunkG67L7TFKjs.compactGrid; exports.copyPanels = _chunkG67L7TFKjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunkG67L7TFKjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkG67L7TFKjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkG67L7TFKjs.dashboardSourceIds; exports.defaultFetchJson = _chunkG67L7TFKjs.defaultFetchJson; exports.describeRange = _chunkG67L7TFKjs.describeRange; exports.diffJson = _chunkG67L7TFKjs.diffJson; exports.documentChanges = _chunkG67L7TFKjs.documentChanges; exports.documentIdFor = _chunkG67L7TFKjs.documentIdFor; exports.documentKind = _chunkG67L7TFKjs.documentKind; exports.documentPrompt = _chunkG67L7TFKjs.documentPrompt; exports.documentUses = _chunkG67L7TFKjs.documentUses; exports.dropTarget = _chunkG67L7TFKjs.dropTarget; exports.duplicatePanel = _chunkG67L7TFKjs.duplicatePanel; exports.entriesSavedWith = _chunkG67L7TFKjs.entriesSavedWith; exports.entriesToItems = _chunkG67L7TFKjs.entriesToItems; exports.entryToInputValue = _chunkG67L7TFKjs.entryToInputValue; exports.expandRow = _chunkG67L7TFKjs.expandRow; exports.fetchBundle = _chunkG67L7TFKjs.fetchBundle; exports.fetchJsonWithToken = _chunkG67L7TFKjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkG67L7TFKjs.fieldDisplayName; exports.fieldMatches = _chunkG67L7TFKjs.fieldMatches; exports.fixDocumentPrompt = _chunkG67L7TFKjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkG67L7TFKjs.fixTemplatePrompt; exports.formatClock = _chunkG67L7TFKjs.formatClock; exports.formatDisplay = _chunkG67L7TFKjs.formatDisplay; exports.formatDuration = _chunkG67L7TFKjs.formatDuration; exports.formatJsonText = _chunkG67L7TFKjs.formatJsonText; exports.formatLocalDateTime = _chunkG67L7TFKjs.formatLocalDateTime; exports.formatValue = _chunkG67L7TFKjs.formatValue; exports.frameLength = _chunkG67L7TFKjs.frameLength; exports.framesToOptions = _chunkG67L7TFKjs.framesToOptions; exports.fromWire = _chunkG67L7TFKjs.fromWire; exports.getPath = _chunkG67L7TFKjs.getPath; exports.gridOffsetPx = _chunkG67L7TFKjs.gridOffsetPx; exports.gridUnitsToPx = _chunkG67L7TFKjs.gridUnitsToPx; exports.groupField = _chunkG67L7TFKjs.groupField; exports.groupFields = _chunkG67L7TFKjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunkG67L7TFKjs.groupProblems; exports.groupToEntries = _chunkG67L7TFKjs.groupToEntries; exports.httpFetchJson = _chunkG67L7TFKjs.httpFetchJson; exports.initialVariableValues = _chunkG67L7TFKjs.initialVariableValues; exports.inputGroups = _chunkG67L7TFKjs.inputGroups; exports.inputPanels = _chunkG67L7TFKjs.inputPanels; exports.inputProblem = _chunkG67L7TFKjs.inputProblem; exports.insertPanel = _chunkG67L7TFKjs.insertPanel; exports.interpolate = _chunkG67L7TFKjs.interpolate; exports.interpolateDeep = _chunkG67L7TFKjs.interpolateDeep; exports.isBundleResponse = _chunkG67L7TFKjs.isBundleResponse; exports.isEditableVariableType = _chunkG67L7TFKjs.isEditableVariableType; exports.isEmptyItem = _chunkG67L7TFKjs.isEmptyItem; exports.isFormPanelType = _chunkG67L7TFKjs.isFormPanelType; exports.isInputGroup = _chunkG67L7TFKjs.isInputGroup; exports.isInputPanel = _chunkG67L7TFKjs.isInputPanel; exports.isInputType = _chunkG67L7TFKjs.isInputType; exports.isLocalDatasource = _chunkG67L7TFKjs.isLocalDatasource; exports.isReducer = _chunkG67L7TFKjs.isReducer; exports.isRow = _chunkG67L7TFKjs.isRow; exports.isSqlDatasource = _chunkG67L7TFKjs.isSqlDatasource; exports.jsonFromAnswer = _chunkG67L7TFKjs.jsonFromAnswer; exports.layoutCanvas = _chunkG67L7TFKjs.layoutCanvas; exports.layoutDashboard = _chunkG67L7TFKjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunkG67L7TFKjs.lineColumn; exports.loadGazetteer = _chunkG67L7TFKjs.loadGazetteer; exports.locate = _chunkG67L7TFKjs.locate; exports.makeTemplate = _chunkG67L7TFKjs.makeTemplate; exports.manifestSchemaIssues = _chunkG67L7TFKjs.manifestSchemaIssues; exports.mappedResult = _chunkG67L7TFKjs.mappedResult; exports.mappingProblem = _chunkG67L7TFKjs.mappingProblem; exports.mappingRow = _chunkG67L7TFKjs.mappingRow; exports.mappingRows = _chunkG67L7TFKjs.mappingRows; exports.metricChanges = _chunkG67L7TFKjs.metricChanges; exports.movePanel = _chunkG67L7TFKjs.movePanel; exports.newDocument = _chunkG67L7TFKjs.newDocument; exports.newPanel = _chunkG67L7TFKjs.newPanel; exports.newSaveId = _chunkG67L7TFKjs.newSaveId; exports.newVariable = _chunkG67L7TFKjs.newVariable; exports.nextPanelId = _chunkG67L7TFKjs.nextPanelId; exports.normalizeRef = _chunkG67L7TFKjs.normalizeRef; exports.numberFields = _chunkG67L7TFKjs.numberFields; exports.optionValue = _chunkG67L7TFKjs.optionValue; exports.overrideProperties = _chunkG67L7TFKjs.overrideProperties; exports.panelEdits = _chunkG67L7TFKjs.panelEdits; exports.panelHasQueries = _chunkG67L7TFKjs.panelHasQueries; exports.panelKey = _chunkG67L7TFKjs.panelKey; exports.panelMetrics = _chunkG67L7TFKjs.panelMetrics; exports.panelOptions = _chunkG67L7TFKjs.panelOptions; exports.panelOverrides = _chunkG67L7TFKjs.panelOverrides; exports.panelSize = _chunkG67L7TFKjs.panelSize; exports.panelSpan = _chunkG67L7TFKjs.panelSpan; exports.parseClockDigits = _chunkG67L7TFKjs.parseClockDigits; exports.parseDashboardLink = _chunkG67L7TFKjs.parseDashboardLink; exports.parseDuration = _chunkG67L7TFKjs.parseDuration; exports.parseGazetteer = _chunkG67L7TFKjs.parseGazetteer; exports.parseJsonText = _chunkG67L7TFKjs.parseJsonText; exports.parseLocalDateTime = _chunkG67L7TFKjs.parseLocalDateTime; exports.parseRange = _chunkG67L7TFKjs.parseRange; exports.parseSnippet = _chunkG67L7TFKjs.parseSnippet; exports.parseTemplate = _chunkG67L7TFKjs.parseTemplate; exports.parseTime = _chunkG67L7TFKjs.parseTime; exports.pasteSnippet = _chunkG67L7TFKjs.pasteSnippet; exports.placePanel = _chunkG67L7TFKjs.placePanel; exports.plainInputPanels = _chunkG67L7TFKjs.plainInputPanels; exports.pointerToPath = _chunkG67L7TFKjs.pointerToPath; exports.prepareDashboard = _chunkG67L7TFKjs.prepareDashboard; exports.previewPaste = _chunkG67L7TFKjs.previewPaste; exports.queryPanel = _chunkG67L7TFKjs.queryPanel; exports.queryParam = _chunkG67L7TFKjs.queryParam; exports.readConfigFiles = _chunkG67L7TFKjs.readConfigFiles; exports.readDocumentAnswer = _chunkG67L7TFKjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkG67L7TFKjs.readTemplateAnswer; exports.readingOrder = _chunkG67L7TFKjs.readingOrder; exports.reduce = _chunkG67L7TFKjs.reduce; exports.refineOptions = _chunkG67L7TFKjs.refineOptions; exports.refreshedVariables = _chunkG67L7TFKjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunkG67L7TFKjs.removeDocumentFromManifest; exports.removePanel = _chunkG67L7TFKjs.removePanel; exports.renameDocumentInManifest = _chunkG67L7TFKjs.renameDocumentInManifest; exports.renameMetrics = _chunkG67L7TFKjs.renameMetrics; exports.renameVariableInPanels = _chunkG67L7TFKjs.renameVariableInPanels; exports.repack = _chunkG67L7TFKjs.repack; exports.repeatOptions = _chunkG67L7TFKjs.repeatOptions; exports.requiredManifestVersion = _chunkG67L7TFKjs.requiredManifestVersion; exports.resizePanel = _chunkG67L7TFKjs.resizePanel; exports.resolveColor = _chunkG67L7TFKjs.resolveColor; exports.resolveFieldConfig = _chunkG67L7TFKjs.resolveFieldConfig; exports.resolveLinks = _chunkG67L7TFKjs.resolveLinks; exports.resolveTimezone = _chunkG67L7TFKjs.resolveTimezone; exports.resolveUrl = _chunkG67L7TFKjs.resolveUrl; exports.resolveVariables = _chunkG67L7TFKjs.resolveVariables; exports.revalidateBundle = _chunkG67L7TFKjs.revalidateBundle; exports.rowsToMappings = _chunkG67L7TFKjs.rowsToMappings; exports.sameSave = _chunkG67L7TFKjs.sameSave; exports.sampleEntries = _chunkG67L7TFKjs.sampleEntries; exports.screenDocuments = _chunkG67L7TFKjs.screenDocuments; exports.screenOfType = _chunkG67L7TFKjs.screenOfType; exports.selectValue = _chunkG67L7TFKjs.selectValue; exports.seriesColor = _chunkG67L7TFKjs.seriesColor; exports.setHiddenOnPhones = _chunkG67L7TFKjs.setHiddenOnPhones; exports.setJsonValue = _chunkG67L7TFKjs.setJsonValue; exports.setOption = _chunkG67L7TFKjs.setOption; exports.setOptionValue = _chunkG67L7TFKjs.setOptionValue; exports.setOverrides = _chunkG67L7TFKjs.setOverrides; exports.settleLayout = _chunkG67L7TFKjs.settleLayout; exports.snapToGrid = _chunkG67L7TFKjs.snapToGrid; exports.splitPath = _chunkG67L7TFKjs.splitPath; exports.startOf = _chunkG67L7TFKjs.startOf; exports.stringifyCompact = _chunkG67L7TFKjs.stringifyCompact; exports.tabIdFor = _chunkG67L7TFKjs.tabIdFor; exports.templateNeeds = _chunkG67L7TFKjs.templateNeeds; exports.templatePrompt = _chunkG67L7TFKjs.templatePrompt; exports.textSuggestions = _chunkG67L7TFKjs.textSuggestions; exports.thresholdStep = _chunkG67L7TFKjs.thresholdStep; exports.timeExprError = _chunkG67L7TFKjs.timeExprError; exports.timeField = _chunkG67L7TFKjs.timeField; exports.toEntries = _chunkG67L7TFKjs.toEntries; exports.toMillis = _chunkG67L7TFKjs.toMillis; exports.toSeries = _chunkG67L7TFKjs.toSeries; exports.toXYSeries = _chunkG67L7TFKjs.toXYSeries; exports.uniqueNames = _chunkG67L7TFKjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunkG67L7TFKjs.validateBundle; exports.validateDashboard = _chunkG67L7TFKjs.validateDashboard; exports.validateManifest = _chunkG67L7TFKjs.validateManifest; exports.valueColor = _chunkG67L7TFKjs.valueColor; exports.valueText = _chunkG67L7TFKjs.valueText; exports.variableDependents = _chunkG67L7TFKjs.variableDependents; exports.variableInfo = _chunkG67L7TFKjs.variableInfo; exports.variableNameError = _chunkG67L7TFKjs.variableNameError; exports.variableOptions = _chunkG67L7TFKjs.variableOptions; exports.variableOrder = _chunkG67L7TFKjs.variableOrder; exports.variableReferences = _chunkG67L7TFKjs.variableReferences; exports.variableUses = _chunkG67L7TFKjs.variableUses; exports.variableWithCurrent = _chunkG67L7TFKjs.variableWithCurrent; exports.variableWithFlags = _chunkG67L7TFKjs.variableWithFlags; exports.variableWithQuery = _chunkG67L7TFKjs.variableWithQuery; exports.variableWithType = _chunkG67L7TFKjs.variableWithType; exports.visibleVariables = _chunkG67L7TFKjs.visibleVariables; exports.zoomRange = _chunkG67L7TFKjs.zoomRange;