inferred-types 0.50.7 → 0.50.9

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.
Files changed (99) hide show
  1. package/dist/constants/Markers.d.ts +82 -0
  2. package/dist/constants/Markers.d.ts.map +1 -0
  3. package/dist/constants/Markers.js +22 -0
  4. package/dist/constants/Metrics.d.ts +374 -0
  5. package/dist/constants/Metrics.d.ts.map +1 -0
  6. package/dist/constants/Metrics.js +151 -0
  7. package/dist/constants/index.d.ts +2 -0
  8. package/dist/constants/index.d.ts.map +1 -1
  9. package/dist/constants/index.js +2 -0
  10. package/dist/constants/tsconfig.tsbuildinfo +1 -1
  11. package/dist/index.cjs +431 -18
  12. package/dist/index.js +376 -18
  13. package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
  14. package/dist/runtime/tsconfig.tsbuildinfo +1 -1
  15. package/dist/runtime/type-conversion/index.d.ts +1 -1
  16. package/dist/runtime/type-conversion/index.d.ts.map +1 -1
  17. package/dist/runtime/type-conversion/index.js +1 -1
  18. package/dist/runtime/type-conversion/lookupCountry.d.ts +32 -0
  19. package/dist/runtime/type-conversion/lookupCountry.d.ts.map +1 -0
  20. package/dist/runtime/type-conversion/lookupCountry.js +97 -0
  21. package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts +5 -1
  22. package/dist/runtime/type-guards/countries/isIso3166Alpha2.d.ts.map +1 -1
  23. package/dist/runtime/type-guards/countries/isIso3166Alpha2.js +7 -0
  24. package/dist/runtime/type-guards/index.d.ts +1 -0
  25. package/dist/runtime/type-guards/index.d.ts.map +1 -1
  26. package/dist/runtime/type-guards/index.js +1 -0
  27. package/dist/runtime/type-guards/metrics/index.d.ts +3 -0
  28. package/dist/runtime/type-guards/metrics/index.d.ts.map +1 -0
  29. package/dist/runtime/type-guards/metrics/index.js +2 -0
  30. package/dist/runtime/type-guards/metrics/isMetric.d.ts +23 -0
  31. package/dist/runtime/type-guards/metrics/isMetric.d.ts.map +1 -0
  32. package/dist/runtime/type-guards/metrics/isMetric.js +71 -0
  33. package/dist/runtime/type-guards/metrics/isUom.d.ts +23 -0
  34. package/dist/runtime/type-guards/metrics/isUom.d.ts.map +1 -0
  35. package/dist/runtime/type-guards/metrics/isUom.js +71 -0
  36. package/dist/types/string-literals/character-sets/Country.d.ts +40 -7
  37. package/dist/types/string-literals/character-sets/Country.d.ts.map +1 -1
  38. package/dist/types/string-literals/index.d.ts +1 -0
  39. package/dist/types/string-literals/index.d.ts.map +1 -1
  40. package/dist/types/string-literals/index.js +1 -0
  41. package/dist/types/string-literals/metrics/acceleration.d.ts +26 -0
  42. package/dist/types/string-literals/metrics/acceleration.d.ts.map +1 -0
  43. package/dist/types/string-literals/metrics/acceleration.js +1 -0
  44. package/dist/types/string-literals/metrics/area.d.ts +26 -0
  45. package/dist/types/string-literals/metrics/area.d.ts.map +1 -0
  46. package/dist/types/string-literals/metrics/area.js +1 -0
  47. package/dist/types/string-literals/metrics/current.d.ts +26 -0
  48. package/dist/types/string-literals/metrics/current.d.ts.map +1 -0
  49. package/dist/types/string-literals/metrics/current.js +1 -0
  50. package/dist/types/string-literals/metrics/distance.d.ts +26 -0
  51. package/dist/types/string-literals/metrics/distance.d.ts.map +1 -0
  52. package/dist/types/string-literals/metrics/distance.js +1 -0
  53. package/dist/types/string-literals/metrics/energy.d.ts +26 -0
  54. package/dist/types/string-literals/metrics/energy.d.ts.map +1 -0
  55. package/dist/types/string-literals/metrics/energy.js +1 -0
  56. package/dist/types/string-literals/metrics/frequency.d.ts +26 -0
  57. package/dist/types/string-literals/metrics/frequency.d.ts.map +1 -0
  58. package/dist/types/string-literals/metrics/frequency.js +1 -0
  59. package/dist/types/string-literals/metrics/global.d.ts +30 -0
  60. package/dist/types/string-literals/metrics/global.d.ts.map +1 -0
  61. package/dist/types/string-literals/metrics/global.js +1 -0
  62. package/dist/types/string-literals/metrics/index.d.ts +18 -0
  63. package/dist/types/string-literals/metrics/index.d.ts.map +1 -0
  64. package/dist/types/string-literals/metrics/index.js +17 -0
  65. package/dist/types/string-literals/metrics/luminosity.d.ts +26 -0
  66. package/dist/types/string-literals/metrics/luminosity.d.ts.map +1 -0
  67. package/dist/types/string-literals/metrics/luminosity.js +1 -0
  68. package/dist/types/string-literals/metrics/mass.d.ts +26 -0
  69. package/dist/types/string-literals/metrics/mass.d.ts.map +1 -0
  70. package/dist/types/string-literals/metrics/mass.js +1 -0
  71. package/dist/types/string-literals/metrics/power.d.ts +26 -0
  72. package/dist/types/string-literals/metrics/power.d.ts.map +1 -0
  73. package/dist/types/string-literals/metrics/power.js +1 -0
  74. package/dist/types/string-literals/metrics/pressure.d.ts +26 -0
  75. package/dist/types/string-literals/metrics/pressure.d.ts.map +1 -0
  76. package/dist/types/string-literals/metrics/pressure.js +1 -0
  77. package/dist/types/string-literals/metrics/resistance.d.ts +26 -0
  78. package/dist/types/string-literals/metrics/resistance.d.ts.map +1 -0
  79. package/dist/types/string-literals/metrics/resistance.js +1 -0
  80. package/dist/types/string-literals/metrics/speed.d.ts +24 -0
  81. package/dist/types/string-literals/metrics/speed.d.ts.map +1 -0
  82. package/dist/types/string-literals/metrics/speed.js +1 -0
  83. package/dist/types/string-literals/metrics/temperature.d.ts +26 -0
  84. package/dist/types/string-literals/metrics/temperature.d.ts.map +1 -0
  85. package/dist/types/string-literals/metrics/temperature.js +1 -0
  86. package/dist/types/string-literals/metrics/time.d.ts +26 -0
  87. package/dist/types/string-literals/metrics/time.d.ts.map +1 -0
  88. package/dist/types/string-literals/metrics/time.js +1 -0
  89. package/dist/types/string-literals/metrics/voltage.d.ts +26 -0
  90. package/dist/types/string-literals/metrics/voltage.d.ts.map +1 -0
  91. package/dist/types/string-literals/metrics/voltage.js +1 -0
  92. package/dist/types/string-literals/metrics/volume.d.ts +26 -0
  93. package/dist/types/string-literals/metrics/volume.d.ts.map +1 -0
  94. package/dist/types/string-literals/metrics/volume.js +1 -0
  95. package/dist/types/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +1 -1
  97. package/dist/runtime/type-conversion/lookupCountryName.d.ts +0 -15
  98. package/dist/runtime/type-conversion/lookupCountryName.d.ts.map +0 -1
  99. package/dist/runtime/type-conversion/lookupCountryName.js +0 -40
package/dist/index.js CHANGED
@@ -1612,6 +1612,183 @@ var ISO3166_1 = [
1612
1612
  { name: "Zimbabwe", alpha2: "ZW", countryCode: "716", alpha3: "ZWE" }
1613
1613
  ];
1614
1614
 
1615
+ // src/constants/Metrics.ts
1616
+ var DISTANCE_METRICS_LOOKUP = [
1617
+ { abbrev: "km", name: "kilometer" },
1618
+ { abbrev: "mi", name: "mile" },
1619
+ { abbrev: "mm", name: "millimeter" },
1620
+ { abbrev: "cm", name: "centimeter" },
1621
+ { abbrev: "yd", name: "yard" },
1622
+ { abbrev: "ft", name: "foot" },
1623
+ { abbrev: "in", name: "inch" },
1624
+ { abbrev: "m", name: "meter" },
1625
+ { abbrev: "nm", name: "nautical mile" },
1626
+ { abbrev: "nmi", name: "nanometer" },
1627
+ { abbrev: "\xB5m", name: "micrometer" },
1628
+ { abbrev: "dm", name: "decimeter" },
1629
+ { abbrev: "AU", name: "astronomical unit" },
1630
+ { abbrev: "ly", name: "light year" },
1631
+ { abbrev: "pc", name: "parsec" }
1632
+ ];
1633
+ var MASS_METRICS_LOOKUP = [
1634
+ { abbrev: "g", name: "gram" },
1635
+ { abbrev: "kg", name: "kilogram" },
1636
+ { abbrev: "mg", name: "milligram" },
1637
+ { abbrev: "\xB5g", name: "microgram" },
1638
+ { abbrev: "t", name: "tonne" },
1639
+ { abbrev: "lb", name: "pound" },
1640
+ { abbrev: "oz", name: "ounce" },
1641
+ { abbrev: "st", name: "stone" },
1642
+ { abbrev: "ct", name: "carat" },
1643
+ { abbrev: "Mt", name: "megatonne" },
1644
+ { abbrev: "gt", name: "gigatonne" },
1645
+ { abbrev: "slug", name: "slug" },
1646
+ { abbrev: "dr", name: "dram" },
1647
+ { abbrev: "gr", name: "grain" },
1648
+ { abbrev: "q", name: "quintal" }
1649
+ ];
1650
+ var SPEED_METRICS_LOOKUP = [
1651
+ { abbrev: "m/s", name: "meters per second" },
1652
+ { abbrev: "km/h", name: "kilometers per hour" },
1653
+ { abbrev: "mph", name: "miles per hour" },
1654
+ { abbrev: "kn", name: "knot" },
1655
+ { abbrev: "ft/s", name: "feet per second" },
1656
+ { abbrev: "c", name: "speed of light" },
1657
+ { abbrev: "mach", name: "mach" },
1658
+ { abbrev: "cm/s", name: "centimeters per second" },
1659
+ { abbrev: "in/s", name: "inches per second" },
1660
+ { abbrev: "ly/y", name: "light years per year" }
1661
+ ];
1662
+ var ACCELERATION_METRICS_LOOKUP = [
1663
+ { abbrev: "m/s\xB2", name: "meters per second squared" },
1664
+ { abbrev: "ft/s\xB2", name: "feet per second squared" },
1665
+ { abbrev: "g", name: "g-force" },
1666
+ { abbrev: "Gal", name: "galileo" },
1667
+ { abbrev: "cm/s\xB2", name: "centimeters per second squared" },
1668
+ { abbrev: "km/h\xB2", name: "kilometers per hour squared" },
1669
+ { abbrev: "in/s\xB2", name: "inches per second squared" },
1670
+ { abbrev: "mi/h\xB2", name: "miles per hour squared" },
1671
+ { abbrev: "kn/s\xB2", name: "knots per second squared" }
1672
+ ];
1673
+ var VOLUME_METRICS_LOOKUP = [
1674
+ { abbrev: "L", name: "liter" },
1675
+ { abbrev: "dL", name: "deciliter" },
1676
+ { abbrev: "mL", name: "milliliter" },
1677
+ { abbrev: "\xB5L", name: "microliter" },
1678
+ { abbrev: "cm\xB3", name: "cubic centimeter" },
1679
+ { abbrev: "m\xB3", name: "cubic meter" },
1680
+ { abbrev: "ft\xB3", name: "cubic foot" },
1681
+ { abbrev: "in\xB3", name: "cubic inch" },
1682
+ { abbrev: "gallon", name: "gallon" },
1683
+ { abbrev: "qt", name: "quart" },
1684
+ { abbrev: "pt", name: "pint" },
1685
+ { abbrev: "fl oz", name: "fluid ounce" },
1686
+ { abbrev: "barrel", name: "barrel" },
1687
+ { abbrev: "tbsp", name: "tablespoon" },
1688
+ { abbrev: "tsp", name: "teaspoon" }
1689
+ ];
1690
+ var TEMPERATURE_METRICS_LOOKUP = [
1691
+ { abbrev: "\xB0C", name: "celsius" },
1692
+ { abbrev: "\xB0F", name: "fahrenheit" },
1693
+ { abbrev: "K", name: "kelvin" }
1694
+ ];
1695
+ var PRESSURE_METRICS_LOOKUP = [
1696
+ { abbrev: "Pa", name: "pascal" },
1697
+ { abbrev: "bar", name: "bar" },
1698
+ { abbrev: "atm", name: "atmosphere" },
1699
+ { abbrev: "mmHg", name: "millimeters of mercury" },
1700
+ { abbrev: "psi", name: "pounds per square inch" }
1701
+ ];
1702
+ var ENERGY_METRICS_LOOKUP = [
1703
+ { abbrev: "J", name: "joule" },
1704
+ { abbrev: "cal", name: "calorie" },
1705
+ { abbrev: "kcal", name: "kilocalorie" },
1706
+ { abbrev: "kWh", name: "kilowatt-hour" },
1707
+ { abbrev: "BTU", name: "british thermal unit" },
1708
+ { abbrev: "eV", name: "electronvolt" }
1709
+ ];
1710
+ var TIME_METRICS_LOOKUP = [
1711
+ { abbrev: "s", name: "second" },
1712
+ { abbrev: "m", name: "minute" },
1713
+ { abbrev: "h", name: "hour" },
1714
+ { abbrev: "day", name: "day" },
1715
+ { abbrev: "week", name: "week" },
1716
+ { abbrev: "mo", name: "month" },
1717
+ { abbrev: "ms", name: "millisecond" },
1718
+ { abbrev: "\xB5s", name: "microsecond" },
1719
+ { abbrev: "ns", name: "nanosecond" }
1720
+ ];
1721
+ var POWER_METRICS_LOOKUP = [
1722
+ { abbrev: "W", name: "Watt" },
1723
+ { abbrev: "kW", name: "kilowatt" },
1724
+ { abbrev: "MW", name: "megawatt" },
1725
+ { abbrev: "hp", name: "horsepower" },
1726
+ { abbrev: "GW", name: "gigawatt" }
1727
+ ];
1728
+ var FREQUENCY_METRICS_LOOKUP = [
1729
+ { abbrev: "Hz", name: "hertz" },
1730
+ { abbrev: "kHz", name: "kilohertz" },
1731
+ { abbrev: "MHz", name: "megahertz" },
1732
+ { abbrev: "GHz", name: "gigahertz" },
1733
+ { abbrev: "THz", name: "terahertz" }
1734
+ ];
1735
+ var VOLTAGE_METRICS_LOOKUP = [
1736
+ { abbrev: "V", name: "volt" },
1737
+ { abbrev: "kV", name: "kilovolt" },
1738
+ { abbrev: "mV", name: "millivolt" },
1739
+ { abbrev: "\xB5V", name: "microvolt" }
1740
+ ];
1741
+ var CURRENT_METRICS_LOOKUP = [
1742
+ { abbrev: "A", name: "ampere" },
1743
+ { abbrev: "mA", name: "milliampere" },
1744
+ { abbrev: "\xB5A", name: "microampere" },
1745
+ { abbrev: "kA", name: "kiloampere" }
1746
+ ];
1747
+ var RESISTANCE_METRICS_LOOKUP = [
1748
+ { abbrev: "\u03A9", name: "ohm" },
1749
+ { abbrev: "k\u03A9", name: "kiloohm" },
1750
+ { abbrev: "M\u03A9", name: "megaohm" }
1751
+ ];
1752
+ var LUMINOSITY_METRICS_LOOKUP = [
1753
+ { abbrev: "cd", name: "candela" },
1754
+ { abbrev: "lm", name: "lumen" },
1755
+ { abbrev: "lx", name: "lux" }
1756
+ ];
1757
+ var AREA_METRICS_LOOKUP = [
1758
+ { abbrev: "m\xB2", name: "square meter" },
1759
+ { abbrev: "cm\xB2", name: "square centimeter" },
1760
+ { abbrev: "mm\xB2", name: "square millimeter" },
1761
+ { abbrev: "km\xB2", name: "square kilometer" },
1762
+ { abbrev: "ft\xB2", name: "square foot" },
1763
+ { abbrev: "in\xB2", name: "square inch" },
1764
+ { abbrev: "acre", name: "acre" },
1765
+ { abbrev: "ha", name: "hectare" }
1766
+ ];
1767
+
1768
+ // src/constants/Markers.ts
1769
+ var BLOOD_MARKERS_LOOKUP = [
1770
+ { abbrev: "Hb", name: "hemoglobin", measurements: ["g/dL", "mmol/L"] },
1771
+ { abbrev: "WBC", name: "white blood cell count", measurements: ["cells/\xB5L"] },
1772
+ { abbrev: "RBC", name: "red blood cell count", measurements: ["million cells/\xB5L", "trillion cells/L"] },
1773
+ { abbrev: "PLT", name: "platelet count", measurements: ["thousand/\xB5L", "million/L"] },
1774
+ { abbrev: "Hct", name: "hematocrit", measurements: ["%"] },
1775
+ { abbrev: "MCV", name: "mean corpuscular volume", measurements: ["fL"] },
1776
+ { abbrev: "MCH", name: "mean corpuscular hemoglobin", measurements: ["pg/cell"] },
1777
+ { abbrev: "MCHC", name: "mean corpuscular hemoglobin concentration", measurements: ["g/dL"] },
1778
+ { abbrev: "RDW", name: "red cell distribution width", measurements: ["%"] },
1779
+ { abbrev: "Glucose", name: "blood glucose", measurements: ["mg/dL", "mmol/L"] },
1780
+ { abbrev: "ALT", name: "alanine aminotransferase", measurements: ["U/L"] },
1781
+ { abbrev: "AST", name: "aspartate aminotransferase", measurements: ["U/L"] },
1782
+ { abbrev: "LDL", name: "low-density lipoprotein", measurements: ["mg/dL", "mmol/L"] },
1783
+ { abbrev: "HDL", name: "high-density lipoprotein", measurements: ["mg/dL", "mmol/L"] },
1784
+ { abbrev: "Triglycerides", name: "triglycerides", measurements: ["mg/dL", "mmol/L"] },
1785
+ { abbrev: "CRP", name: "C-reactive protein", measurements: ["mg/L"] },
1786
+ { abbrev: "TSH", name: "thyroid-stimulating hormone", measurements: ["mIU/L"] },
1787
+ { abbrev: "BUN", name: "blood urea nitrogen", measurements: ["mg/dL", "mmol/L"] },
1788
+ { abbrev: "Creatinine", name: "creatinine", measurements: ["mg/dL", "\xB5mol/L"] },
1789
+ { abbrev: "Bilirubin", name: "bilirubin", measurements: ["mg/dL", "\xB5mol/L"] }
1790
+ ];
1791
+
1615
1792
  // src/types/dictionary/MapTo.ts
1616
1793
  var toFinalizedConfig = (config) => {
1617
1794
  return { ...config, finalized: true };
@@ -2549,36 +2726,52 @@ var csv = (csv2, format = `string-numeric-tuple`) => {
2549
2726
  return tuple3;
2550
2727
  };
2551
2728
 
2552
- // src/runtime/type-conversion/json.ts
2553
- var jsonValue = (val) => {
2554
- return isNumberLike(val) ? Number(val) : val === "true" ? true : val === "false" ? false : `"${val}"`;
2555
- };
2556
- var jsonValues = (...val) => {
2557
- return val.map((i) => jsonValue(i));
2729
+ // src/runtime/type-conversion/lookupCountry.ts
2730
+ var lookupAlpha2Code = (code, prop) => {
2731
+ const found = ISO3166_1.find((i) => i["alpha2"] === code);
2732
+ return found ? found[prop] : void 0;
2558
2733
  };
2559
-
2560
- // src/runtime/type-conversion/lookupCountryName.ts
2561
- var lookupAlpha2Code = (code) => {
2562
- var _a;
2563
- return (_a = ISO3166_1.find((i) => i["alpha2"] === code)) == null ? void 0 : _a.name;
2734
+ var lookupAlpha3Code = (code, prop) => {
2735
+ const found = ISO3166_1.find((i) => i["alpha3"] === code);
2736
+ return found ? found[prop] : void 0;
2564
2737
  };
2565
- var lookupAlpha3Code = (code) => {
2566
- var _a;
2567
- return (_a = ISO3166_1.find((i) => i["alpha3"] === code)) == null ? void 0 : _a.name;
2738
+ var lookupName = (name, prop) => {
2739
+ const found = ISO3166_1.find((i) => i["name"] === name);
2740
+ return found ? found[prop] : void 0;
2568
2741
  };
2569
- var lookupNumericCode = (code) => {
2570
- var _a;
2742
+ var lookupNumericCode = (code, prop) => {
2571
2743
  let num = isNumber(code) ? `${code}` : code;
2572
2744
  if (num.length === 1) {
2573
2745
  num = `00${num}`;
2574
2746
  } else if (num.length === 2) {
2575
2747
  num = `0${num}`;
2576
2748
  }
2577
- return (_a = ISO3166_1.find((i) => i["countryCode"] === num)) == null ? void 0 : _a.name;
2749
+ const found = ISO3166_1.find((i) => i["countryCode"] === num);
2750
+ return found ? found[prop] : void 0;
2578
2751
  };
2579
2752
  var lookupCountryName = (code) => {
2580
2753
  const uc = uppercase(code);
2581
- return isNumberLike(code) ? lookupNumericCode(code) : isIso3166Alpha2(uc) ? lookupAlpha2Code(uc) : isIso3166Alpha3(uc) ? lookupAlpha3Code(uc) : void 0;
2754
+ return isNumberLike(code) ? lookupNumericCode(code, "name") : isIso3166Alpha2(uc) ? lookupAlpha2Code(uc, "name") : isIso3166Alpha3(uc) ? lookupAlpha3Code(uc, "name") : void 0;
2755
+ };
2756
+ var lookupCountryAlpha2 = (code) => {
2757
+ const uc = uppercase(code);
2758
+ return isNumberLike(code) ? lookupNumericCode(code, "alpha2") : isIso3166Alpha2(uc) ? lookupAlpha2Code(uc, "alpha2") : isIso3166Alpha3(uc) ? lookupAlpha3Code(uc, "alpha2") : isIso3166CountryName(code) ? lookupName(code, "alpha2") : void 0;
2759
+ };
2760
+ var lookupCountryAlpha3 = (token) => {
2761
+ const uc = uppercase(token);
2762
+ return isNumberLike(token) ? lookupNumericCode(token, "alpha3") : isIso3166Alpha2(uc) ? lookupAlpha2Code(uc, "alpha3") : isIso3166Alpha3(uc) ? lookupAlpha3Code(uc, "alpha3") : isIso3166CountryName(token) ? lookupName(token, "alpha3") : void 0;
2763
+ };
2764
+ var lookupCountryCode = (token) => {
2765
+ const uc = uppercase(token);
2766
+ return isNumberLike(token) ? lookupNumericCode(token, "countryCode") : isIso3166Alpha2(uc) ? lookupAlpha2Code(uc, "countryCode") : isIso3166Alpha3(uc) ? lookupAlpha3Code(uc, "countryCode") : isIso3166CountryName(token) ? lookupName(token, "countryCode") : void 0;
2767
+ };
2768
+
2769
+ // src/runtime/type-conversion/json.ts
2770
+ var jsonValue = (val) => {
2771
+ return isNumberLike(val) ? Number(val) : val === "true" ? true : val === "false" ? false : `"${val}"`;
2772
+ };
2773
+ var jsonValues = (...val) => {
2774
+ return val.map((i) => jsonValue(i));
2582
2775
  };
2583
2776
 
2584
2777
  // src/runtime/type-guards/hasWhitespace.ts
@@ -2904,6 +3097,116 @@ var isIso3166CountryCode = (val) => {
2904
3097
  const codes = ISO3166_1.map((i) => i["countryCode"]);
2905
3098
  return isString(val) && codes.includes(val);
2906
3099
  };
3100
+ var isIso3166CountryName = (val) => {
3101
+ const codes = ISO3166_1.map((i) => i["name"]);
3102
+ return isString(val) && codes.includes(val);
3103
+ };
3104
+
3105
+ // src/runtime/type-guards/metrics/isUom.ts
3106
+ var isAreaUom = (val) => {
3107
+ return isString(val) && AREA_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3108
+ };
3109
+ var isLuminosityUom = (val) => {
3110
+ return isString(val) && LUMINOSITY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3111
+ };
3112
+ var isResistanceUom = (val) => {
3113
+ return isString(val) && RESISTANCE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3114
+ };
3115
+ var isCurrentUom = (val) => {
3116
+ return isString(val) && CURRENT_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3117
+ };
3118
+ var isVoltageUom = (val) => {
3119
+ return isString(val) && VOLTAGE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3120
+ };
3121
+ var isFrequencyUom = (val) => {
3122
+ return isString(val) && FREQUENCY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3123
+ };
3124
+ var isPowerUom = (val) => {
3125
+ return isString(val) && POWER_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3126
+ };
3127
+ var isTimeUom = (val) => {
3128
+ return isString(val) && TIME_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3129
+ };
3130
+ var isEnergyUom = (val) => {
3131
+ return isString(val) && ENERGY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3132
+ };
3133
+ var isPressureUom = (val) => {
3134
+ return isString(val) && PRESSURE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3135
+ };
3136
+ var isTemperatureUom = (val) => {
3137
+ return isString(val) && TEMPERATURE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3138
+ };
3139
+ var isVolumeUom = (val) => {
3140
+ return isString(val) && VOLUME_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3141
+ };
3142
+ var isAccelerationUom = (val) => {
3143
+ return isString(val) && ACCELERATION_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3144
+ };
3145
+ var isSpeedUom = (val) => {
3146
+ return isString(val) && SPEED_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3147
+ };
3148
+ var isMassUom = (val) => {
3149
+ return isString(val) && MASS_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3150
+ };
3151
+ var isDistanceUom = (val) => {
3152
+ return isString(val) && ENERGY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3153
+ };
3154
+ var isUom = (val) => {
3155
+ return isDistanceUom(val) || isMassUom(val) || isSpeedUom(val) || isAccelerationUom(val) || isVoltageUom(val) || isTemperatureUom(val) || isPressureUom(val) || isEnergyUom(val) || isTimeUom(val) || isPowerUom(val) || isFrequencyUom(val) || isVoltageUom(val) || isCurrentUom(val) || isLuminosityUom(val) || isAreaUom(val);
3156
+ };
3157
+
3158
+ // src/runtime/type-guards/metrics/isMetric.ts
3159
+ var isAreaMetric = (val) => {
3160
+ return isString(val) && AREA_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3161
+ };
3162
+ var isLuminosityMetric = (val) => {
3163
+ return isString(val) && LUMINOSITY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3164
+ };
3165
+ var isResistance = (val) => {
3166
+ return isString(val) && RESISTANCE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3167
+ };
3168
+ var isCurrentMetric = (val) => {
3169
+ return isString(val) && CURRENT_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3170
+ };
3171
+ var isVoltageMetric = (val) => {
3172
+ return isString(val) && VOLTAGE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3173
+ };
3174
+ var isFrequencyMetric = (val) => {
3175
+ return isString(val) && FREQUENCY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3176
+ };
3177
+ var isPowerMetric = (val) => {
3178
+ return isString(val) && POWER_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3179
+ };
3180
+ var isTimeMetric = (val) => {
3181
+ return isString(val) && TIME_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3182
+ };
3183
+ var isEnergyMetric = (val) => {
3184
+ return isString(val) && ENERGY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3185
+ };
3186
+ var isPressureMetric = (val) => {
3187
+ return isString(val) && PRESSURE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3188
+ };
3189
+ var isTemperatureMetric = (val) => {
3190
+ return isString(val) && TEMPERATURE_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3191
+ };
3192
+ var isVolumeMetric = (val) => {
3193
+ return isString(val) && VOLUME_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3194
+ };
3195
+ var isAccelerationMetric = (val) => {
3196
+ return isString(val) && ACCELERATION_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3197
+ };
3198
+ var isSpeedMetric = (val) => {
3199
+ return isString(val) && SPEED_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3200
+ };
3201
+ var isMassMetric = (val) => {
3202
+ return isString(val) && MASS_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3203
+ };
3204
+ var isDistanceMetric = (val) => {
3205
+ return isString(val) && ENERGY_METRICS_LOOKUP.map((i) => i.abbrev).includes(val);
3206
+ };
3207
+ var isMetric = (val) => {
3208
+ return isDistanceMetric(val) || isMassMetric(val) || isSpeedMetric(val) || isAccelerationMetric(val) || isVoltageMetric(val) || isTemperatureMetric(val) || isPressureMetric(val) || isEnergyMetric(val) || isTimeMetric(val) || isPowerMetric(val) || isFrequencyMetric(val) || isVoltageMetric(val) || isCurrentMetric(val) || isLuminosityMetric(val) || isAreaMetric(val);
3209
+ };
2907
3210
 
2908
3211
  // src/runtime/literals/stripTrailing.ts
2909
3212
  function stripTrailing(content, ...strip) {
@@ -3957,21 +4260,27 @@ var asVueRef = (value) => ({
3957
4260
  _value: null
3958
4261
  });
3959
4262
  export {
4263
+ ACCELERATION_METRICS_LOOKUP,
3960
4264
  ALPHA_CHARS,
3961
4265
  AMAZON_DNS,
3962
4266
  APPLE_DNS,
4267
+ AREA_METRICS_LOOKUP,
3963
4268
  BEST_BUY_DNS,
4269
+ BLOOD_MARKERS_LOOKUP,
3964
4270
  CHEWY_DNS,
3965
4271
  COMMA,
3966
4272
  COMMON_OBJ_PROPS,
3967
4273
  CONSONANTS,
3968
4274
  COSTCO_DNS,
4275
+ CURRENT_METRICS_LOOKUP,
3969
4276
  CVS_DNS,
3970
4277
  DEFAULT_MANY_TO_ONE_MAPPING,
3971
4278
  DEFAULT_ONE_TO_MANY_MAPPING,
3972
4279
  DEFAULT_ONE_TO_ONE_MAPPING,
3973
4280
  DELL_DNS,
4281
+ DISTANCE_METRICS_LOOKUP,
3974
4282
  EBAY_DNS,
4283
+ ENERGY_METRICS_LOOKUP,
3975
4284
  ETSY_DNS,
3976
4285
  ExifCompression,
3977
4286
  ExifContrast,
@@ -3986,6 +4295,7 @@ export {
3986
4295
  ExifSubjectDistance,
3987
4296
  FALSY_TYPE_KINDS,
3988
4297
  FALSY_VALUES,
4298
+ FREQUENCY_METRICS_LOOKUP,
3989
4299
  GITHUB_INSIGHT_CATEGORY_LOOKUP,
3990
4300
  HASH_TABLE_ALPHA_LOWER,
3991
4301
  HASH_TABLE_ALPHA_UPPER,
@@ -4005,8 +4315,10 @@ export {
4005
4315
  LITERAL_TYPE_KINDS,
4006
4316
  LOWER_ALPHA_CHARS,
4007
4317
  LOWES_DNS,
4318
+ LUMINOSITY_METRICS_LOOKUP,
4008
4319
  MACYS_DNS,
4009
4320
  MARKED,
4321
+ MASS_METRICS_LOOKUP,
4010
4322
  MONTH_ABBR,
4011
4323
  MONTH_NAME,
4012
4324
  MapCardinality,
@@ -4025,10 +4337,13 @@ export {
4025
4337
  PHONE_FORMAT,
4026
4338
  PLURAL_EXCEPTIONS,
4027
4339
  PLURAL_EXCEPTIONS_OLD,
4340
+ POWER_METRICS_LOOKUP,
4341
+ PRESSURE_METRICS_LOOKUP,
4028
4342
  PROXMOX_CT_STATE,
4029
4343
  REPO_PAGE_TYPES,
4030
4344
  REPO_SOURCES,
4031
4345
  REPO_SOURCE_LOOKUP,
4346
+ RESISTANCE_METRICS_LOOKUP,
4032
4347
  RESULT,
4033
4348
  SHAPE_DELIMITER,
4034
4349
  SHAPE_PREFIXES,
@@ -4046,8 +4361,11 @@ export {
4046
4361
  SIMPLE_TOKENS,
4047
4362
  SIMPLE_UNION_TOKENS,
4048
4363
  SINGULAR_NOUN_ENDINGS,
4364
+ SPEED_METRICS_LOOKUP,
4049
4365
  ShapeApiImplementation,
4050
4366
  TARGET_DNS,
4367
+ TEMPERATURE_METRICS_LOOKUP,
4368
+ TIME_METRICS_LOOKUP,
4051
4369
  TOP_LEVEL_DOMAINS,
4052
4370
  TT_Atomics,
4053
4371
  TT_Containers,
@@ -4097,6 +4415,8 @@ export {
4097
4415
  US_STATE_LOOKUP,
4098
4416
  US_STATE_LOOKUP_PROVINCES,
4099
4417
  US_STATE_LOOKUP_STRICT,
4418
+ VOLTAGE_METRICS_LOOKUP,
4419
+ VOLUME_METRICS_LOOKUP,
4100
4420
  WALGREENS_DNS,
4101
4421
  WALMART_DNS,
4102
4422
  WAYFAIR_DNS,
@@ -4193,11 +4513,15 @@ export {
4193
4513
  intersection,
4194
4514
  ip6GroupExpansion,
4195
4515
  ip6Prefix,
4516
+ isAccelerationMetric,
4517
+ isAccelerationUom,
4196
4518
  isAlpha,
4197
4519
  isAmazonUrl,
4198
4520
  isApi,
4199
4521
  isApiSurface,
4200
4522
  isAppleUrl,
4523
+ isAreaMetric,
4524
+ isAreaUom,
4201
4525
  isArray,
4202
4526
  isArrayToken,
4203
4527
  isAtomicToken,
@@ -4212,13 +4536,19 @@ export {
4212
4536
  isContainerToken,
4213
4537
  isCostCoUrl,
4214
4538
  isCssAspectRatio,
4539
+ isCurrentMetric,
4540
+ isCurrentUom,
4215
4541
  isCvsUrl,
4216
4542
  isDefined,
4217
4543
  isDellUrl,
4544
+ isDistanceMetric,
4545
+ isDistanceUom,
4218
4546
  isDomainName,
4219
4547
  isDoneFn,
4220
4548
  isEbayUrl,
4221
4549
  isEmail,
4550
+ isEnergyMetric,
4551
+ isEnergyUom,
4222
4552
  isEqual,
4223
4553
  isErrorCondition,
4224
4554
  isEscapeFunction,
@@ -4227,6 +4557,8 @@ export {
4227
4557
  isFalsy,
4228
4558
  isFnToken,
4229
4559
  isFnWithParams,
4560
+ isFrequencyMetric,
4561
+ isFrequencyUom,
4230
4562
  isFunction,
4231
4563
  isGeneratorToken,
4232
4564
  isGithubIssueUrl,
@@ -4253,12 +4585,18 @@ export {
4253
4585
  isIso3166Alpha2,
4254
4586
  isIso3166Alpha3,
4255
4587
  isIso3166CountryCode,
4588
+ isIso3166CountryName,
4256
4589
  isKrogersUrl,
4257
4590
  isLength,
4258
4591
  isLikeRegExp,
4259
4592
  isLowesUrl,
4593
+ isLuminosityMetric,
4594
+ isLuminosityUom,
4260
4595
  isMacysUrl,
4261
4596
  isMapToken,
4597
+ isMassMetric,
4598
+ isMassUom,
4599
+ isMetric,
4262
4600
  isNever,
4263
4601
  isNikeUrl,
4264
4602
  isNotNull,
@@ -4271,12 +4609,18 @@ export {
4271
4609
  isObjectToken,
4272
4610
  isOptionalParamFunction,
4273
4611
  isPhoneNumber,
4612
+ isPowerMetric,
4613
+ isPowerUom,
4614
+ isPressureMetric,
4615
+ isPressureUom,
4274
4616
  isReadonlyArray,
4275
4617
  isRecordToken,
4276
4618
  isRef,
4277
4619
  isRegExp,
4278
4620
  isRepoSource,
4279
4621
  isRepoUrl,
4622
+ isResistance,
4623
+ isResistanceUom,
4280
4624
  isSameTypeOf,
4281
4625
  isScalar,
4282
4626
  isSemanticVersion,
@@ -4291,10 +4635,16 @@ export {
4291
4635
  isSimpleTokenTuple,
4292
4636
  isSingletonToken,
4293
4637
  isSpecificConstant,
4638
+ isSpeedMetric,
4639
+ isSpeedUom,
4294
4640
  isString,
4295
4641
  isSymbol,
4296
4642
  isTargetUrl,
4643
+ isTemperatureMetric,
4644
+ isTemperatureUom,
4297
4645
  isThenable,
4646
+ isTimeMetric,
4647
+ isTimeUom,
4298
4648
  isTrimable,
4299
4649
  isTrue,
4300
4650
  isTruthy,
@@ -4307,10 +4657,15 @@ export {
4307
4657
  isUnionSetToken,
4308
4658
  isUnionToken,
4309
4659
  isUnset,
4660
+ isUom,
4310
4661
  isUri,
4311
4662
  isUrl,
4312
4663
  isUrlPath,
4313
4664
  isUrlSource,
4665
+ isVoltageMetric,
4666
+ isVoltageUom,
4667
+ isVolumeMetric,
4668
+ isVolumeUom,
4314
4669
  isWalgreensUrl,
4315
4670
  isWalmartUrl,
4316
4671
  isWayfairUrl,
@@ -4338,6 +4693,9 @@ export {
4338
4693
  list,
4339
4694
  literal,
4340
4695
  logicalReturns,
4696
+ lookupCountryAlpha2,
4697
+ lookupCountryAlpha3,
4698
+ lookupCountryCode,
4341
4699
  lookupCountryName,
4342
4700
  lowercase,
4343
4701
  mergeObjects,