@modelform/react-native 0.11.0 → 0.13.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.
@@ -1567,6 +1567,246 @@ function queryErrors(results) {
1567
1567
  return Object.entries(results ?? {}).filter(([, r]) => r.error).map(([refId, r]) => `${refId}: ${r.error}`).join("\n");
1568
1568
  }
1569
1569
 
1570
+ // src/core/speech.ts
1571
+ var UNITS = {
1572
+ zero: 0,
1573
+ oh: 0,
1574
+ nought: 0,
1575
+ one: 1,
1576
+ two: 2,
1577
+ three: 3,
1578
+ four: 4,
1579
+ five: 5,
1580
+ six: 6,
1581
+ seven: 7,
1582
+ eight: 8,
1583
+ nine: 9,
1584
+ ten: 10,
1585
+ eleven: 11,
1586
+ twelve: 12,
1587
+ thirteen: 13,
1588
+ fourteen: 14,
1589
+ fifteen: 15,
1590
+ sixteen: 16,
1591
+ seventeen: 17,
1592
+ eighteen: 18,
1593
+ nineteen: 19
1594
+ };
1595
+ var TENS = { twenty: 20, thirty: 30, forty: 40, fifty: 50, sixty: 60, seventy: 70, eighty: 80, ninety: 90 };
1596
+ var SCALES = { hundred: 100, thousand: 1e3, million: 1e6 };
1597
+ var NEGATIVE = /* @__PURE__ */ new Set(["minus", "negative"]);
1598
+ var isNumberWord = (w) => w in UNITS || w in TENS || w in SCALES;
1599
+ function words(text) {
1600
+ return text.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/(\d),(\d{3})\b/g, "$1$2").replace(/(\d),(\d)/g, "$1.$2").replace(/[^a-z0-9.:\s-]/g, " ").replace(/(?<![\d])-(?=\d)/g, " minus ").replace(/-/g, " ").replace(/\.(?!\d)/g, " ").split(/\s+/).filter(Boolean);
1601
+ }
1602
+ function wordsToInteger(ws) {
1603
+ if (!ws.length) return null;
1604
+ if (ws.some((w) => w in SCALES)) {
1605
+ let total = 0;
1606
+ let current = 0;
1607
+ for (const w of ws) {
1608
+ if (w in UNITS) current += UNITS[w];
1609
+ else if (w in TENS) current += TENS[w];
1610
+ else if (w === "hundred") current = (current || 1) * 100;
1611
+ else if (w in SCALES) {
1612
+ total += (current || 1) * SCALES[w];
1613
+ current = 0;
1614
+ } else return null;
1615
+ }
1616
+ return total + current;
1617
+ }
1618
+ const groups = [];
1619
+ for (let i = 0; i < ws.length; i++) {
1620
+ const w = ws[i];
1621
+ const next = ws[i + 1];
1622
+ const nextUnit = next != null && next in UNITS && UNITS[next] > 0 && UNITS[next] < 10;
1623
+ if (w in TENS) {
1624
+ groups.push(String(TENS[w] + (nextUnit ? UNITS[next] : 0)));
1625
+ if (nextUnit) i++;
1626
+ } else if (w === "oh" && nextUnit) {
1627
+ groups.push(`0${UNITS[next]}`);
1628
+ i++;
1629
+ } else if (w in UNITS) groups.push(String(UNITS[w]));
1630
+ else return null;
1631
+ }
1632
+ return Number(groups.map((g, i) => i === 0 ? g : g.padStart(2, "0")).join(""));
1633
+ }
1634
+ function parseSpokenNumber(text) {
1635
+ const ws = words(text);
1636
+ let i = 0;
1637
+ let sign = 1;
1638
+ for (; i < ws.length; i++) {
1639
+ const w = ws[i];
1640
+ if (NEGATIVE.has(w)) sign = -1;
1641
+ else if (/^\d/.test(w) || isNumberWord(w) || w === "a" && ws[i + 1] in SCALES || w === "point" && ws[i + 1] && (/^\d/.test(ws[i + 1]) || ws[i + 1] in UNITS)) break;
1642
+ else if (w !== "and") sign = 1;
1643
+ }
1644
+ if (i >= ws.length) return null;
1645
+ const digits = /^(\d+(?:\.\d+)?)$/.exec(ws[i]);
1646
+ if (digits) {
1647
+ let n = Number(digits[1]);
1648
+ const rest = ws.slice(i + 1);
1649
+ if (!digits[1].includes(".") && rest[0] === "point") n = Number(`${digits[1]}.${fractionDigits(rest.slice(1)) ?? 0}`);
1650
+ else if (rest[0] === "and" && rest[1] === "a" && rest[2] === "half") n += 0.5;
1651
+ return sign * n;
1652
+ }
1653
+ const whole = [];
1654
+ for (; i < ws.length; i++) {
1655
+ const w = ws[i];
1656
+ if (isNumberWord(w)) whole.push(w);
1657
+ else if (w === "a" && ws[i + 1] in SCALES) whole.push("one");
1658
+ else if (w === "and" && ws[i + 1] && isNumberWord(ws[i + 1]) && whole.some((x) => x in SCALES)) continue;
1659
+ else break;
1660
+ }
1661
+ const intPart = whole.length ? wordsToInteger(whole) : 0;
1662
+ if (intPart == null) return null;
1663
+ if (ws[i] === "point") {
1664
+ const frac = fractionDigits(ws.slice(i + 1));
1665
+ return frac == null ? sign * intPart : sign * Number(`${intPart}.${frac}`);
1666
+ }
1667
+ if (ws[i] === "and" && ws[i + 1] === "a" && ws[i + 2] === "half") return sign * (intPart + 0.5);
1668
+ if (ws[i] === "and" && ws[i + 1] === "a" && ws[i + 2] === "quarter") return sign * (intPart + 0.25);
1669
+ if (!whole.length) return null;
1670
+ return sign * intPart;
1671
+ }
1672
+ function fractionDigits(ws) {
1673
+ if (ws[0] && /^\d+$/.test(ws[0])) return ws[0];
1674
+ let out = "";
1675
+ for (let i = 0; i < ws.length; i++) {
1676
+ const w = ws[i];
1677
+ if (w in UNITS && UNITS[w] < 10) out += UNITS[w];
1678
+ else if (w in TENS) {
1679
+ const next = ws[i + 1];
1680
+ if (next in UNITS && UNITS[next] > 0 && UNITS[next] < 10) {
1681
+ out += TENS[w] + UNITS[next];
1682
+ i++;
1683
+ } else out += TENS[w];
1684
+ } else if (w in UNITS) out += UNITS[w];
1685
+ else break;
1686
+ }
1687
+ return out || null;
1688
+ }
1689
+ function parseSpokenDuration(text) {
1690
+ const clock = /(?:(\d+):)?(\d+):(\d{1,2})(?:\.(\d+))?|(\d+):(\d{1,2})(?:\.(\d+))?/.exec(text);
1691
+ if (clock) {
1692
+ if (clock[3] != null) {
1693
+ const [h, m, s, f] = [Number(clock[1] ?? 0), Number(clock[2]), Number(clock[3]), clock[4] ?? "0"];
1694
+ return clock[1] != null ? h * 3600 + m * 60 + s + Number(`0.${f}`) : m * 60 + s + Number(`0.${f}`);
1695
+ }
1696
+ }
1697
+ const lower = text.toLowerCase().replace(/\ban hour\b/g, "one hour").replace(/\ba minute\b/g, "one minute").replace(/(\S+) (hours?|minutes?) and a half/g, "$1 and a half $2");
1698
+ const parts = lower.split(/\b(hours?|hrs?|minutes?|mins?|seconds?|secs?)\b/);
1699
+ const scale = (unit) => unit.startsWith("h") ? 3600 : unit.startsWith("m") ? 60 : 1;
1700
+ let total = 0;
1701
+ let found = false;
1702
+ let last = 0;
1703
+ for (let i = 0; i < parts.length; i += 2) {
1704
+ const n = parseSpokenNumber(parts[i]);
1705
+ const unit = parts[i + 1];
1706
+ const s = unit != null ? scale(unit) : last === 3600 ? 60 : last === 60 ? 1 : 0;
1707
+ if (unit != null) last = s;
1708
+ if (n == null || !s) continue;
1709
+ total += n * s;
1710
+ found = true;
1711
+ }
1712
+ if (found) return Math.round(total * 100) / 100;
1713
+ return null;
1714
+ }
1715
+ var normalize = (s) => words(s).join(" ");
1716
+ var singular = (w) => w.length > 3 && w.endsWith("s") && !w.endsWith("ss") ? w.slice(0, -1) : w;
1717
+ var loose = (s) => normalize(s).split(" ").map(singular).join(" ");
1718
+ function matchChoices(text, choices2) {
1719
+ const said = ` ${loose(text)} `;
1720
+ const hits = [];
1721
+ const byLength = [...choices2].sort((a, b) => b.label.length - a.label.length);
1722
+ for (const c of byLength) {
1723
+ const label = loose(c.label);
1724
+ if (!label) continue;
1725
+ let from = 0;
1726
+ for (; ; ) {
1727
+ const at = said.indexOf(` ${label} `, from);
1728
+ if (at < 0) break;
1729
+ const end = at + label.length + 1;
1730
+ if (!hits.some((h) => at < h.end && end > h.at)) hits.push({ at, end, value: c.value });
1731
+ from = at + 1;
1732
+ }
1733
+ }
1734
+ if (!hits.length) {
1735
+ const n = parseSpokenNumber(text);
1736
+ const c = n == null ? void 0 : choices2.find((x) => x.value === n || Number(x.label) === n || x.value === String(n));
1737
+ return c ? [c.value] : [];
1738
+ }
1739
+ const seen = /* @__PURE__ */ new Set();
1740
+ return hits.sort((a, b) => a.at - b.at).map((h) => h.value).filter((v) => !seen.has(v) && seen.add(v));
1741
+ }
1742
+ var YES = /* @__PURE__ */ new Set(["yes", "yeah", "yep", "yup", "true", "on", "done", "did", "checked", "correct", "affirmative"]);
1743
+ var NO = /* @__PURE__ */ new Set(["no", "nope", "nah", "false", "off", "not", "didnt", "didn", "unchecked", "negative"]);
1744
+ function parseSpokenYesNo(text) {
1745
+ const ws = words(text.replace(/['’]/g, ""));
1746
+ if (ws.some((w) => NO.has(w))) return false;
1747
+ if (ws.some((w) => YES.has(w))) return true;
1748
+ return null;
1749
+ }
1750
+ function spokenValue(panel, said, current = null, choices2) {
1751
+ const text = said.trim();
1752
+ if (!text) return { problem: "Didn\u2019t hear anything" };
1753
+ const o = panel.options;
1754
+ const quoted = `\u201C${text}\u201D`;
1755
+ switch (panel.type) {
1756
+ case "input-text": {
1757
+ if (o.suggest || typeof current !== "string" || !current.trim()) return { value: text };
1758
+ return { value: `${current.trimEnd()} ${text}` };
1759
+ }
1760
+ case "input-number":
1761
+ case "input-rating": {
1762
+ const n = parseSpokenNumber(text);
1763
+ if (n == null) return { problem: `Heard ${quoted}, not a number` };
1764
+ const step = panel.type === "input-rating" ? 1 : o.step ?? 1;
1765
+ return { value: Number.isInteger(step) ? Math.round(n) : n };
1766
+ }
1767
+ case "input-slider": {
1768
+ const min = o.min ?? 0;
1769
+ const max = o.max ?? 10;
1770
+ const step = o.step ?? 1;
1771
+ if (o.labels?.length) {
1772
+ const [hit] = matchChoices(text, o.labels.map((label, i) => ({ label, value: i })));
1773
+ if (typeof hit === "number") {
1774
+ const raw = o.labels.length === 1 ? min : min + hit / (o.labels.length - 1) * (max - min);
1775
+ return { value: Number((Math.round((raw - min) / step) * step + min).toFixed((String(step).split(".")[1] ?? "").length)) };
1776
+ }
1777
+ }
1778
+ const n = parseSpokenNumber(text);
1779
+ if (n == null) return { problem: `Heard ${quoted}, not a number` };
1780
+ return { value: Number.isInteger(step) ? Math.round(n) : n };
1781
+ }
1782
+ case "input-duration": {
1783
+ const s = parseSpokenDuration(text) ?? parseSpokenNumber(text);
1784
+ return s == null ? { problem: `Heard ${quoted}, not a time` } : { value: s };
1785
+ }
1786
+ case "input-select": {
1787
+ const options = choices2 ?? o.choices ?? [];
1788
+ const hits = matchChoices(text, options);
1789
+ if (!hits.length) return { problem: `Heard ${quoted}, not one of the choices` };
1790
+ if (!o.multi) return { value: hits[0] };
1791
+ const had = Array.isArray(current) ? current : current == null ? [] : [current];
1792
+ return { value: [...had, ...hits.filter((h) => !had.includes(h))] };
1793
+ }
1794
+ case "input-toggle": {
1795
+ const yes = parseSpokenYesNo(text);
1796
+ return yes == null ? { problem: `Heard ${quoted}, not yes or no` } : { value: yes };
1797
+ }
1798
+ default:
1799
+ return { problem: "This input doesn\u2019t take dictation" };
1800
+ }
1801
+ }
1802
+ var DICTATION_TYPES = ["input-number", "input-text", "input-select", "input-duration"];
1803
+ var takesDictation = (panel) => DICTATION_TYPES.includes(panel.type);
1804
+ function dictationHints(panel, choices2) {
1805
+ const out = (choices2 ?? panel.options.choices ?? []).map((c) => c.label);
1806
+ if (panel.options.unit) out.push(panel.options.unit);
1807
+ return out;
1808
+ }
1809
+
1570
1810
  // src/core/local.ts
1571
1811
  var LOCAL_DATASOURCE_TYPE = "modelform-local";
1572
1812
  var LEGACY_LOCAL_DATASOURCE_TYPE = "dashkit-local";
@@ -1981,8 +2221,9 @@ var app_schema_default = {
1981
2221
  type: "object",
1982
2222
  properties: {
1983
2223
  version: {
1984
- description: "Format version. Always 1 for now.",
1985
- const: 1
2224
+ type: "integer",
2225
+ description: "The oldest config format that can show this config: 1 unless it uses something newer (see MANIFEST_VERSION). An app that reads only older formats asks to be updated instead.",
2226
+ minimum: 1
1986
2227
  },
1987
2228
  title: {
1988
2229
  type: "string",
@@ -7452,8 +7693,9 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7452
7693
  }
7453
7694
  }
7454
7695
  if (data.version !== void 0) {
7455
- if (1 !== data.version) {
7456
- const err5 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" };
7696
+ let data0 = data.version;
7697
+ if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)))) {
7698
+ const err5 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
7457
7699
  if (vErrors === null) {
7458
7700
  vErrors = [err5];
7459
7701
  } else {
@@ -7461,25 +7703,36 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7461
7703
  }
7462
7704
  errors++;
7463
7705
  }
7706
+ if (typeof data0 == "number") {
7707
+ if (data0 < 1 || isNaN(data0)) {
7708
+ const err6 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
7709
+ if (vErrors === null) {
7710
+ vErrors = [err6];
7711
+ } else {
7712
+ vErrors.push(err6);
7713
+ }
7714
+ errors++;
7715
+ }
7716
+ }
7464
7717
  }
7465
7718
  if (data.title !== void 0) {
7466
7719
  let data1 = data.title;
7467
7720
  if (typeof data1 === "string") {
7468
7721
  if (func2(data1) < 1) {
7469
- const err6 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7722
+ const err7 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
7470
7723
  if (vErrors === null) {
7471
- vErrors = [err6];
7724
+ vErrors = [err7];
7472
7725
  } else {
7473
- vErrors.push(err6);
7726
+ vErrors.push(err7);
7474
7727
  }
7475
7728
  errors++;
7476
7729
  }
7477
7730
  } else {
7478
- const err7 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7731
+ const err8 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7479
7732
  if (vErrors === null) {
7480
- vErrors = [err7];
7733
+ vErrors = [err8];
7481
7734
  } else {
7482
- vErrors.push(err7);
7735
+ vErrors.push(err8);
7483
7736
  }
7484
7737
  errors++;
7485
7738
  }
@@ -7488,11 +7741,11 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7488
7741
  let data2 = data.tabs;
7489
7742
  if (Array.isArray(data2)) {
7490
7743
  if (data2.length < 1) {
7491
- const err8 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
7744
+ const err9 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
7492
7745
  if (vErrors === null) {
7493
- vErrors = [err8];
7746
+ vErrors = [err9];
7494
7747
  } else {
7495
- vErrors.push(err8);
7748
+ vErrors.push(err9);
7496
7749
  }
7497
7750
  errors++;
7498
7751
  }
@@ -7504,11 +7757,11 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7504
7757
  }
7505
7758
  }
7506
7759
  } else {
7507
- const err9 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7760
+ const err10 = { instancePath: instancePath + "/tabs", schemaPath: "#/properties/tabs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7508
7761
  if (vErrors === null) {
7509
- vErrors = [err9];
7762
+ vErrors = [err10];
7510
7763
  } else {
7511
- vErrors.push(err9);
7764
+ vErrors.push(err10);
7512
7765
  }
7513
7766
  errors++;
7514
7767
  }
@@ -7518,42 +7771,42 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7518
7771
  if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {
7519
7772
  for (const key1 in data4) {
7520
7773
  let data5 = data4[key1];
7521
- const _errs12 = errors;
7522
- let valid4 = false;
7523
7774
  const _errs13 = errors;
7775
+ let valid4 = false;
7776
+ const _errs14 = errors;
7524
7777
  if (typeof data5 !== "string") {
7525
- const err10 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7778
+ const err11 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7526
7779
  if (vErrors === null) {
7527
- vErrors = [err10];
7780
+ vErrors = [err11];
7528
7781
  } else {
7529
- vErrors.push(err10);
7782
+ vErrors.push(err11);
7530
7783
  }
7531
7784
  errors++;
7532
7785
  }
7533
- var _valid0 = _errs13 === errors;
7786
+ var _valid0 = _errs14 === errors;
7534
7787
  valid4 = valid4 || _valid0;
7535
7788
  if (!valid4) {
7536
- const _errs15 = errors;
7789
+ const _errs16 = errors;
7537
7790
  if (!validate36(data5, { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data4, parentDataProperty: key1, rootData })) {
7538
7791
  vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);
7539
7792
  errors = vErrors.length;
7540
7793
  }
7541
- var _valid0 = _errs15 === errors;
7794
+ var _valid0 = _errs16 === errors;
7542
7795
  valid4 = valid4 || _valid0;
7543
7796
  }
7544
7797
  if (!valid4) {
7545
- const err11 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7798
+ const err12 = { instancePath: instancePath + "/documents/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/documents/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7546
7799
  if (vErrors === null) {
7547
- vErrors = [err11];
7800
+ vErrors = [err12];
7548
7801
  } else {
7549
- vErrors.push(err11);
7802
+ vErrors.push(err12);
7550
7803
  }
7551
7804
  errors++;
7552
7805
  } else {
7553
- errors = _errs12;
7806
+ errors = _errs13;
7554
7807
  if (vErrors !== null) {
7555
- if (_errs12) {
7556
- vErrors.length = _errs12;
7808
+ if (_errs13) {
7809
+ vErrors.length = _errs13;
7557
7810
  } else {
7558
7811
  vErrors = null;
7559
7812
  }
@@ -7561,21 +7814,21 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
7561
7814
  }
7562
7815
  }
7563
7816
  } else {
7564
- const err12 = { instancePath: instancePath + "/documents", schemaPath: "#/properties/documents/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7817
+ const err13 = { instancePath: instancePath + "/documents", schemaPath: "#/properties/documents/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7565
7818
  if (vErrors === null) {
7566
- vErrors = [err12];
7819
+ vErrors = [err13];
7567
7820
  } else {
7568
- vErrors.push(err12);
7821
+ vErrors.push(err13);
7569
7822
  }
7570
7823
  errors++;
7571
7824
  }
7572
7825
  }
7573
7826
  } else {
7574
- const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7827
+ const err14 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7575
7828
  if (vErrors === null) {
7576
- vErrors = [err13];
7829
+ vErrors = [err14];
7577
7830
  } else {
7578
- vErrors.push(err13);
7831
+ vErrors.push(err14);
7579
7832
  }
7580
7833
  errors++;
7581
7834
  }
@@ -8559,10 +8812,16 @@ function setOverrides(panel, overrides) {
8559
8812
 
8560
8813
  // src/core/manifest.ts
8561
8814
  var MANIFEST_VERSION = 1;
8815
+ var FORMAT_CHANGES = [];
8816
+ function requiredManifestVersion(bundle) {
8817
+ return Math.max(1, ...FORMAT_CHANGES.filter((c) => c.uses(bundle)).map((c) => c.version));
8818
+ }
8562
8819
  var isObject3 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
8563
8820
  var nonEmptyString = (v) => typeof v === "string" && v.trim() !== "";
8564
8821
  function validateManifest(json, file = "manifest") {
8565
8822
  const error = (path, message) => ({ severity: "error", path: `${file}: ${path}`, message });
8823
+ if (isObject3(json) && typeof json.version === "number" && json.version > MANIFEST_VERSION)
8824
+ return [{ ...error("version", `needs config format ${json.version}, and this app shows up to ${MANIFEST_VERSION}. Update the app to open it.`), code: "newer-version" }];
8566
8825
  const shape = manifestSchemaIssues(json).filter((i) => !/^documents\.[^.[]+[.[]/.test(i.path));
8567
8826
  if (shape.length) return shape.map((i) => error(i.path, i.message));
8568
8827
  const issues = [];
@@ -8881,10 +9140,11 @@ var ConfigLoader = class {
8881
9140
  const { bundle, issues, revision, unreachable } = result;
8882
9141
  if (!bundle) {
8883
9142
  const errors = issues.filter((i) => i.severity === "error").length;
8884
- const error = unreachable ? issues[0]?.message : errors === 1 ? "1 error" : `${errors} errors`;
9143
+ const needsUpdate = issues.some((i) => i.code === "newer-version");
9144
+ const error = unreachable ? issues[0]?.message : needsUpdate ? "a newer format" : errors === 1 ? "1 error" : `${errors} errors`;
8885
9145
  return this.set(
8886
- { loading: false, error, unreachable: !!unreachable, issues },
8887
- this.snapshot.loading || error !== this.snapshot.error || !!unreachable !== !!this.snapshot.unreachable || !sameIssues(issues, this.snapshot.issues)
9146
+ { loading: false, error, unreachable: !!unreachable, needsUpdate, issues },
9147
+ this.snapshot.loading || error !== this.snapshot.error || !!unreachable !== !!this.snapshot.unreachable || needsUpdate !== !!this.snapshot.needsUpdate || !sameIssues(issues, this.snapshot.issues)
8888
9148
  );
8889
9149
  }
8890
9150
  const json = JSON.stringify(bundle);
@@ -8894,8 +9154,8 @@ var ConfigLoader = class {
8894
9154
  if (changed || revision !== this.snapshot.revision) cache2?.write({ url, fetchedAt, bundle, revision }).catch(() => {
8895
9155
  });
8896
9156
  this.set(
8897
- { ...changed && { bundle }, source: "remote", fetchedAt, revision, loading: false, error: void 0, unreachable: void 0, issues },
8898
- changed || revision !== this.snapshot.revision || this.snapshot.source !== "remote" || !!this.snapshot.error || this.snapshot.loading || !sameIssues(issues, this.snapshot.issues)
9157
+ { ...changed && { bundle }, source: "remote", fetchedAt, revision, loading: false, error: void 0, unreachable: void 0, needsUpdate: void 0, issues },
9158
+ changed || revision !== this.snapshot.revision || this.snapshot.source !== "remote" || !!this.snapshot.error || !!this.snapshot.needsUpdate || this.snapshot.loading || !sameIssues(issues, this.snapshot.issues)
8899
9159
  );
8900
9160
  } finally {
8901
9161
  clearTimeout(timer);
@@ -11976,6 +12236,14 @@ export {
11976
12236
  GrafanaClient,
11977
12237
  GrafanaDataSource,
11978
12238
  fromWire,
12239
+ parseSpokenNumber,
12240
+ parseSpokenDuration,
12241
+ matchChoices,
12242
+ parseSpokenYesNo,
12243
+ spokenValue,
12244
+ DICTATION_TYPES,
12245
+ takesDictation,
12246
+ dictationHints,
11979
12247
  LOCAL_DATASOURCE_TYPE,
11980
12248
  isLocalDatasource,
11981
12249
  LocalDataSource,
@@ -12013,6 +12281,7 @@ export {
12013
12281
  panelOverrides,
12014
12282
  setOverrides,
12015
12283
  MANIFEST_VERSION,
12284
+ requiredManifestVersion,
12016
12285
  validateManifest,
12017
12286
  prepareDashboard,
12018
12287
  validateDashboard2 as validateDashboard,
@@ -11,6 +11,7 @@ export * from './datasource';
11
11
  export * from './transform';
12
12
  export * from './grafana';
13
13
  export * from './inputs';
14
+ export * from './speech';
14
15
  export * from './local';
15
16
  export * from './gazetteer';
16
17
  export * from './links';
@@ -233,7 +233,6 @@
233
233
 
234
234
 
235
235
 
236
- var _chunkKJR3ZKG4js = require('../chunk-KJR3ZKG4.js');
237
236
 
238
237
 
239
238
 
@@ -243,6 +242,7 @@ var _chunkKJR3ZKG4js = require('../chunk-KJR3ZKG4.js');
243
242
 
244
243
 
245
244
 
245
+ var _chunkCU4TMSZEjs = require('../chunk-CU4TMSZE.js');
246
246
 
247
247
 
248
248
 
@@ -469,4 +469,22 @@ var _chunkKJR3ZKG4js = require('../chunk-KJR3ZKG4.js');
469
469
 
470
470
 
471
471
 
472
- 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.ConfigLoader = _chunkKJR3ZKG4js.ConfigLoader; exports.DASHBOARD_DS = _chunkKJR3ZKG4js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkKJR3ZKG4js.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkKJR3ZKG4js.DOCUMENT_GUIDE; 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.LOCAL_DATASOURCE_TYPE = _chunkKJR3ZKG4js.LOCAL_DATASOURCE_TYPE; 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.OPTION_CATEGORIES = _chunkKJR3ZKG4js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkKJR3ZKG4js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkKJR3ZKG4js.PANEL_TYPES; exports.REDUCER_LABELS = _chunkKJR3ZKG4js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkKJR3ZKG4js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkKJR3ZKG4js.RELATIVE_RANGES; 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.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.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.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.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.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;
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+ exports.ALL = _chunkCU4TMSZEjs.ALL; exports.AUTHORING_GUIDE = _chunkCU4TMSZEjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkCU4TMSZEjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkCU4TMSZEjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkCU4TMSZEjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkCU4TMSZEjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkCU4TMSZEjs.ConfigLoader; exports.DASHBOARD_DS = _chunkCU4TMSZEjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkCU4TMSZEjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkCU4TMSZEjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkCU4TMSZEjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkCU4TMSZEjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkCU4TMSZEjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkCU4TMSZEjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkCU4TMSZEjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkCU4TMSZEjs.GrafanaClient; exports.GrafanaDataSource = _chunkCU4TMSZEjs.GrafanaDataSource; exports.GrafanaError = _chunkCU4TMSZEjs.GrafanaError; exports.HttpConfigFiles = _chunkCU4TMSZEjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkCU4TMSZEjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkCU4TMSZEjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkCU4TMSZEjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkCU4TMSZEjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkCU4TMSZEjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkCU4TMSZEjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkCU4TMSZEjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkCU4TMSZEjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkCU4TMSZEjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkCU4TMSZEjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkCU4TMSZEjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkCU4TMSZEjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkCU4TMSZEjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkCU4TMSZEjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkCU4TMSZEjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkCU4TMSZEjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkCU4TMSZEjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkCU4TMSZEjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkCU4TMSZEjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkCU4TMSZEjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkCU4TMSZEjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkCU4TMSZEjs.UNIT_CHOICES; exports.addTime = _chunkCU4TMSZEjs.addTime; exports.appSchema = _chunkCU4TMSZEjs.appSchema; exports.applyDashboardLink = _chunkCU4TMSZEjs.applyDashboardLink; exports.applyJsonEdits = _chunkCU4TMSZEjs.applyJsonEdits; exports.applyTemplate = _chunkCU4TMSZEjs.applyTemplate; exports.applyTransformations = _chunkCU4TMSZEjs.applyTransformations; exports.assembleBundle = _chunkCU4TMSZEjs.assembleBundle; exports.assembleFromResponse = _chunkCU4TMSZEjs.assembleFromResponse; exports.buildFrames = _chunkCU4TMSZEjs.buildFrames; exports.bundleFromFiles = _chunkCU4TMSZEjs.bundleFromFiles; exports.bundleRoot = _chunkCU4TMSZEjs.bundleRoot; exports.calculateInterval = _chunkCU4TMSZEjs.calculateInterval; exports.checkFiles = _chunkCU4TMSZEjs.checkFiles; exports.cleanDashboard = _chunkCU4TMSZEjs.cleanDashboard; exports.cleanPanelOptions = _chunkCU4TMSZEjs.cleanPanelOptions; exports.collapseRow = _chunkCU4TMSZEjs.collapseRow; exports.compactGrid = _chunkCU4TMSZEjs.compactGrid; exports.copyPanels = _chunkCU4TMSZEjs.copyPanels; exports.dashboardSchema = _chunkCU4TMSZEjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkCU4TMSZEjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkCU4TMSZEjs.dashboardSourceIds; exports.defaultFetchJson = _chunkCU4TMSZEjs.defaultFetchJson; exports.describeRange = _chunkCU4TMSZEjs.describeRange; exports.dictationHints = _chunkCU4TMSZEjs.dictationHints; exports.diffJson = _chunkCU4TMSZEjs.diffJson; exports.documentChanges = _chunkCU4TMSZEjs.documentChanges; exports.documentIdFor = _chunkCU4TMSZEjs.documentIdFor; exports.documentKind = _chunkCU4TMSZEjs.documentKind; exports.documentPrompt = _chunkCU4TMSZEjs.documentPrompt; exports.documentUses = _chunkCU4TMSZEjs.documentUses; exports.dropTarget = _chunkCU4TMSZEjs.dropTarget; exports.duplicatePanel = _chunkCU4TMSZEjs.duplicatePanel; exports.entriesSavedWith = _chunkCU4TMSZEjs.entriesSavedWith; exports.entriesToItems = _chunkCU4TMSZEjs.entriesToItems; exports.entryToInputValue = _chunkCU4TMSZEjs.entryToInputValue; exports.expandRow = _chunkCU4TMSZEjs.expandRow; exports.fetchBundle = _chunkCU4TMSZEjs.fetchBundle; exports.fetchJsonWithToken = _chunkCU4TMSZEjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkCU4TMSZEjs.fieldDisplayName; exports.fieldMatches = _chunkCU4TMSZEjs.fieldMatches; exports.fixDocumentPrompt = _chunkCU4TMSZEjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkCU4TMSZEjs.fixTemplatePrompt; exports.formatClock = _chunkCU4TMSZEjs.formatClock; exports.formatDisplay = _chunkCU4TMSZEjs.formatDisplay; exports.formatDuration = _chunkCU4TMSZEjs.formatDuration; exports.formatJsonText = _chunkCU4TMSZEjs.formatJsonText; exports.formatLocalDateTime = _chunkCU4TMSZEjs.formatLocalDateTime; exports.formatValue = _chunkCU4TMSZEjs.formatValue; exports.frameLength = _chunkCU4TMSZEjs.frameLength; exports.framesToOptions = _chunkCU4TMSZEjs.framesToOptions; exports.fromWire = _chunkCU4TMSZEjs.fromWire; exports.getPath = _chunkCU4TMSZEjs.getPath; exports.gridOffsetPx = _chunkCU4TMSZEjs.gridOffsetPx; exports.gridUnitsToPx = _chunkCU4TMSZEjs.gridUnitsToPx; exports.groupField = _chunkCU4TMSZEjs.groupField; exports.groupFields = _chunkCU4TMSZEjs.groupFields; exports.groupProblems = _chunkCU4TMSZEjs.groupProblems; exports.groupToEntries = _chunkCU4TMSZEjs.groupToEntries; exports.httpFetchJson = _chunkCU4TMSZEjs.httpFetchJson; exports.initialVariableValues = _chunkCU4TMSZEjs.initialVariableValues; exports.inputGroups = _chunkCU4TMSZEjs.inputGroups; exports.inputPanels = _chunkCU4TMSZEjs.inputPanels; exports.inputProblem = _chunkCU4TMSZEjs.inputProblem; exports.insertPanel = _chunkCU4TMSZEjs.insertPanel; exports.interpolate = _chunkCU4TMSZEjs.interpolate; exports.interpolateDeep = _chunkCU4TMSZEjs.interpolateDeep; exports.isBundleResponse = _chunkCU4TMSZEjs.isBundleResponse; exports.isEditableVariableType = _chunkCU4TMSZEjs.isEditableVariableType; exports.isEmptyItem = _chunkCU4TMSZEjs.isEmptyItem; exports.isFormPanelType = _chunkCU4TMSZEjs.isFormPanelType; exports.isInputGroup = _chunkCU4TMSZEjs.isInputGroup; exports.isInputPanel = _chunkCU4TMSZEjs.isInputPanel; exports.isInputType = _chunkCU4TMSZEjs.isInputType; exports.isLocalDatasource = _chunkCU4TMSZEjs.isLocalDatasource; exports.isReducer = _chunkCU4TMSZEjs.isReducer; exports.isRow = _chunkCU4TMSZEjs.isRow; exports.isSqlDatasource = _chunkCU4TMSZEjs.isSqlDatasource; exports.jsonFromAnswer = _chunkCU4TMSZEjs.jsonFromAnswer; exports.layoutCanvas = _chunkCU4TMSZEjs.layoutCanvas; exports.layoutDashboard = _chunkCU4TMSZEjs.layoutDashboard; exports.lineColumn = _chunkCU4TMSZEjs.lineColumn; exports.loadGazetteer = _chunkCU4TMSZEjs.loadGazetteer; exports.locate = _chunkCU4TMSZEjs.locate; exports.makeTemplate = _chunkCU4TMSZEjs.makeTemplate; exports.manifestSchemaIssues = _chunkCU4TMSZEjs.manifestSchemaIssues; exports.mappedResult = _chunkCU4TMSZEjs.mappedResult; exports.mappingProblem = _chunkCU4TMSZEjs.mappingProblem; exports.mappingRow = _chunkCU4TMSZEjs.mappingRow; exports.mappingRows = _chunkCU4TMSZEjs.mappingRows; exports.matchChoices = _chunkCU4TMSZEjs.matchChoices; exports.metricChanges = _chunkCU4TMSZEjs.metricChanges; exports.movePanel = _chunkCU4TMSZEjs.movePanel; exports.newDocument = _chunkCU4TMSZEjs.newDocument; exports.newPanel = _chunkCU4TMSZEjs.newPanel; exports.newSaveId = _chunkCU4TMSZEjs.newSaveId; exports.newVariable = _chunkCU4TMSZEjs.newVariable; exports.nextPanelId = _chunkCU4TMSZEjs.nextPanelId; exports.normalizeRef = _chunkCU4TMSZEjs.normalizeRef; exports.numberFields = _chunkCU4TMSZEjs.numberFields; exports.optionValue = _chunkCU4TMSZEjs.optionValue; exports.overrideProperties = _chunkCU4TMSZEjs.overrideProperties; exports.panelEdits = _chunkCU4TMSZEjs.panelEdits; exports.panelHasQueries = _chunkCU4TMSZEjs.panelHasQueries; exports.panelKey = _chunkCU4TMSZEjs.panelKey; exports.panelMetrics = _chunkCU4TMSZEjs.panelMetrics; exports.panelOptions = _chunkCU4TMSZEjs.panelOptions; exports.panelOverrides = _chunkCU4TMSZEjs.panelOverrides; exports.panelSize = _chunkCU4TMSZEjs.panelSize; exports.panelSpan = _chunkCU4TMSZEjs.panelSpan; exports.parseClockDigits = _chunkCU4TMSZEjs.parseClockDigits; exports.parseDashboardLink = _chunkCU4TMSZEjs.parseDashboardLink; exports.parseDuration = _chunkCU4TMSZEjs.parseDuration; exports.parseGazetteer = _chunkCU4TMSZEjs.parseGazetteer; exports.parseJsonText = _chunkCU4TMSZEjs.parseJsonText; exports.parseLocalDateTime = _chunkCU4TMSZEjs.parseLocalDateTime; exports.parseRange = _chunkCU4TMSZEjs.parseRange; exports.parseSnippet = _chunkCU4TMSZEjs.parseSnippet; exports.parseSpokenDuration = _chunkCU4TMSZEjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkCU4TMSZEjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkCU4TMSZEjs.parseSpokenYesNo; exports.parseTemplate = _chunkCU4TMSZEjs.parseTemplate; exports.parseTime = _chunkCU4TMSZEjs.parseTime; exports.pasteSnippet = _chunkCU4TMSZEjs.pasteSnippet; exports.placePanel = _chunkCU4TMSZEjs.placePanel; exports.plainInputPanels = _chunkCU4TMSZEjs.plainInputPanels; exports.pointerToPath = _chunkCU4TMSZEjs.pointerToPath; exports.prepareDashboard = _chunkCU4TMSZEjs.prepareDashboard; exports.previewPaste = _chunkCU4TMSZEjs.previewPaste; exports.queryPanel = _chunkCU4TMSZEjs.queryPanel; exports.queryParam = _chunkCU4TMSZEjs.queryParam; exports.readConfigFiles = _chunkCU4TMSZEjs.readConfigFiles; exports.readDocumentAnswer = _chunkCU4TMSZEjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkCU4TMSZEjs.readTemplateAnswer; exports.readingOrder = _chunkCU4TMSZEjs.readingOrder; exports.reduce = _chunkCU4TMSZEjs.reduce; exports.refineOptions = _chunkCU4TMSZEjs.refineOptions; exports.refreshedVariables = _chunkCU4TMSZEjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkCU4TMSZEjs.removeDocumentFromManifest; exports.removePanel = _chunkCU4TMSZEjs.removePanel; exports.renameDocumentInManifest = _chunkCU4TMSZEjs.renameDocumentInManifest; exports.renameMetrics = _chunkCU4TMSZEjs.renameMetrics; exports.renameVariableInPanels = _chunkCU4TMSZEjs.renameVariableInPanels; exports.repack = _chunkCU4TMSZEjs.repack; exports.repeatOptions = _chunkCU4TMSZEjs.repeatOptions; exports.requiredManifestVersion = _chunkCU4TMSZEjs.requiredManifestVersion; exports.resizePanel = _chunkCU4TMSZEjs.resizePanel; exports.resolveColor = _chunkCU4TMSZEjs.resolveColor; exports.resolveFieldConfig = _chunkCU4TMSZEjs.resolveFieldConfig; exports.resolveLinks = _chunkCU4TMSZEjs.resolveLinks; exports.resolveTimezone = _chunkCU4TMSZEjs.resolveTimezone; exports.resolveUrl = _chunkCU4TMSZEjs.resolveUrl; exports.resolveVariables = _chunkCU4TMSZEjs.resolveVariables; exports.revalidateBundle = _chunkCU4TMSZEjs.revalidateBundle; exports.rowsToMappings = _chunkCU4TMSZEjs.rowsToMappings; exports.sameSave = _chunkCU4TMSZEjs.sameSave; exports.sampleEntries = _chunkCU4TMSZEjs.sampleEntries; exports.screenDocuments = _chunkCU4TMSZEjs.screenDocuments; exports.screenOfType = _chunkCU4TMSZEjs.screenOfType; exports.selectValue = _chunkCU4TMSZEjs.selectValue; exports.seriesColor = _chunkCU4TMSZEjs.seriesColor; exports.setHiddenOnPhones = _chunkCU4TMSZEjs.setHiddenOnPhones; exports.setJsonValue = _chunkCU4TMSZEjs.setJsonValue; exports.setOption = _chunkCU4TMSZEjs.setOption; exports.setOptionValue = _chunkCU4TMSZEjs.setOptionValue; exports.setOverrides = _chunkCU4TMSZEjs.setOverrides; exports.settleLayout = _chunkCU4TMSZEjs.settleLayout; exports.snapToGrid = _chunkCU4TMSZEjs.snapToGrid; exports.splitPath = _chunkCU4TMSZEjs.splitPath; exports.spokenValue = _chunkCU4TMSZEjs.spokenValue; exports.startOf = _chunkCU4TMSZEjs.startOf; exports.stringifyCompact = _chunkCU4TMSZEjs.stringifyCompact; exports.tabIdFor = _chunkCU4TMSZEjs.tabIdFor; exports.takesDictation = _chunkCU4TMSZEjs.takesDictation; exports.templateNeeds = _chunkCU4TMSZEjs.templateNeeds; exports.templatePrompt = _chunkCU4TMSZEjs.templatePrompt; exports.textSuggestions = _chunkCU4TMSZEjs.textSuggestions; exports.thresholdStep = _chunkCU4TMSZEjs.thresholdStep; exports.timeExprError = _chunkCU4TMSZEjs.timeExprError; exports.timeField = _chunkCU4TMSZEjs.timeField; exports.toEntries = _chunkCU4TMSZEjs.toEntries; exports.toMillis = _chunkCU4TMSZEjs.toMillis; exports.toSeries = _chunkCU4TMSZEjs.toSeries; exports.toXYSeries = _chunkCU4TMSZEjs.toXYSeries; exports.uniqueNames = _chunkCU4TMSZEjs.uniqueNames; exports.validateBundle = _chunkCU4TMSZEjs.validateBundle; exports.validateDashboard = _chunkCU4TMSZEjs.validateDashboard; exports.validateManifest = _chunkCU4TMSZEjs.validateManifest; exports.valueColor = _chunkCU4TMSZEjs.valueColor; exports.valueText = _chunkCU4TMSZEjs.valueText; exports.variableDependents = _chunkCU4TMSZEjs.variableDependents; exports.variableInfo = _chunkCU4TMSZEjs.variableInfo; exports.variableNameError = _chunkCU4TMSZEjs.variableNameError; exports.variableOptions = _chunkCU4TMSZEjs.variableOptions; exports.variableOrder = _chunkCU4TMSZEjs.variableOrder; exports.variableReferences = _chunkCU4TMSZEjs.variableReferences; exports.variableUses = _chunkCU4TMSZEjs.variableUses; exports.variableWithCurrent = _chunkCU4TMSZEjs.variableWithCurrent; exports.variableWithFlags = _chunkCU4TMSZEjs.variableWithFlags; exports.variableWithQuery = _chunkCU4TMSZEjs.variableWithQuery; exports.variableWithType = _chunkCU4TMSZEjs.variableWithType; exports.visibleVariables = _chunkCU4TMSZEjs.visibleVariables; exports.zoomRange = _chunkCU4TMSZEjs.zoomRange;