@synnaxlabs/pluto 0.33.1 → 0.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/{Animated-CmYpn592.cjs → Animated-C7iWxEah.cjs} +1 -1
  2. package/dist/{Animated-BJ0Om9zo.js → Animated-VpxahF8t.js} +2 -2
  3. package/dist/{Item-CPt4Umh0.cjs → Item-C1_OE8IF.cjs} +1 -1
  4. package/dist/{Item-JN1-gBEw.js → Item-Dpra-3n6.js} +5 -5
  5. package/dist/{Keyboard-BwzZPKjx.cjs → Keyboard-BBOcinRN.cjs} +1 -1
  6. package/dist/{Keyboard-CBvQle7r.js → Keyboard-CpJQuX-J.js} +2 -2
  7. package/dist/LinePlot-Bwz2fEc0.cjs +34 -0
  8. package/dist/LinePlot-DHy70Cb7.js +6256 -0
  9. package/dist/{Link-my2OWRXu.js → Link-Ctlz9WUQ.js} +1 -1
  10. package/dist/{Link-mthAKDPf.cjs → Link-Cxj-3A6p.cjs} +1 -1
  11. package/dist/{List-C3bjnukf.cjs → List-CcTL6wlO.cjs} +1 -1
  12. package/dist/{List-B1BAwLaq.js → List-DF0kzXpr.js} +2 -2
  13. package/dist/{Pack-CxtceW7N.js → Pack-BAJwD-n2.js} +1 -1
  14. package/dist/{Pack-uflj5a28.cjs → Pack-DBtBeGnj.cjs} +1 -1
  15. package/dist/{Text-SLn1Qwzw.js → Text-D5o4o3OI.js} +5 -5
  16. package/dist/{Text-BvzGtwCB.cjs → Text-GGA7QNwA.cjs} +1 -1
  17. package/dist/{Toggle-CqrGlCW8.js → Toggle-CTjPdq8o.js} +953 -929
  18. package/dist/Toggle-Dim0E2D2.cjs +143 -0
  19. package/dist/{Video-DKosAU7v.cjs → Video-B3geSdOZ.cjs} +1 -1
  20. package/dist/{Video-o34bcpwh.js → Video-CXccd2Jl.js} +1 -1
  21. package/dist/{aggregator-CU9VgdUJ.cjs → aggregator-D6Mmsfj4.cjs} +21 -21
  22. package/dist/{aggregator-B36SA-20.js → aggregator-QFq5XDjf.js} +997 -961
  23. package/dist/align.cjs +1 -1
  24. package/dist/align.js +1 -1
  25. package/dist/button.cjs +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/color.cjs +1 -1
  28. package/dist/color.js +1 -1
  29. package/dist/{css-4MXuPP5v.cjs → css-CvXvQo39.cjs} +1 -1
  30. package/dist/{css-C8qHWSpT.js → css-DqBChhqm.js} +27 -5
  31. package/dist/css.cjs +1 -1
  32. package/dist/css.js +2 -2
  33. package/dist/dropdown.cjs +1 -1
  34. package/dist/dropdown.js +1 -1
  35. package/dist/ether.cjs +1 -1
  36. package/dist/ether.js +5 -5
  37. package/dist/{external-GxvuofB_.js → external-BNMsCMKL.js} +11 -11
  38. package/dist/{external-BLnPpmeS.cjs → external-BPnNv3RZ.cjs} +1 -1
  39. package/dist/{external-B5jyXhgU.cjs → external-BZpriFW_.cjs} +1 -1
  40. package/dist/{external-BvoBhRW8.cjs → external-Bksh4jhY.cjs} +1 -1
  41. package/dist/{external-euVgbl49.js → external-Bm3VKQxs.js} +4 -4
  42. package/dist/{external-D6YTf7Kx.cjs → external-C2YHV6Dz.cjs} +1 -1
  43. package/dist/{external-BT_oycNI.js → external-CI2s6wrc.js} +90 -88
  44. package/dist/external-CK8msIo3.js +96 -0
  45. package/dist/{external-DYwzKoQ6.js → external-CKp_fJJC.js} +2 -2
  46. package/dist/{external-Cb_NFNiX.cjs → external-CKuO-iHz.cjs} +1 -1
  47. package/dist/{external-Crturtt-.cjs → external-CUwDGrme.cjs} +1 -1
  48. package/dist/{external-B0o5Z8wI.js → external-CfOulkkd.js} +5 -5
  49. package/dist/{external-CPTY4-IY.cjs → external-ClRKAhnQ.cjs} +1 -1
  50. package/dist/{external-BKx-fjB8.js → external-Ct326ec4.js} +2 -2
  51. package/dist/{external-BTFW7AEo.js → external-DT1bMgJw.js} +2 -2
  52. package/dist/{external-C-xh9EwI.cjs → external-DYc6fMZC.cjs} +1 -1
  53. package/dist/external-Dhg4bEfF.cjs +1 -0
  54. package/dist/{external-Cewuz6Gm.js → external-DmLFwKtu.js} +4 -4
  55. package/dist/{external-DqwISR2q.js → external-DyAGPLil.js} +5 -5
  56. package/dist/{external-Cc1Bqjmm.js → external-EHlrAzYc.js} +1 -1
  57. package/dist/external-X9NMQ2Zh.cjs +1 -0
  58. package/dist/{external-CLKqHc4s.cjs → external-aTGyndBd.cjs} +1 -1
  59. package/dist/{external-BBGGwc9H.cjs → external-e143l3cy.cjs} +1 -1
  60. package/dist/{external-DVhxMa2A.js → external-mRJloDDi.js} +7 -7
  61. package/dist/header.cjs +1 -1
  62. package/dist/header.js +1 -1
  63. package/dist/index.cjs +33 -1
  64. package/dist/index.js +9765 -4790
  65. package/dist/input.cjs +1 -1
  66. package/dist/input.js +1 -1
  67. package/dist/list.cjs +1 -1
  68. package/dist/list.js +1 -1
  69. package/dist/menu.cjs +1 -1
  70. package/dist/menu.js +1 -1
  71. package/dist/src/color/Swatch/Swatch.d.ts +2 -1
  72. package/dist/src/color/Swatch/Swatch.d.ts.map +1 -1
  73. package/dist/src/text/core/types.d.ts +2 -0
  74. package/dist/src/text/core/types.d.ts.map +1 -1
  75. package/dist/src/theming/core/fontString.d.ts +7 -1
  76. package/dist/src/theming/core/fontString.d.ts.map +1 -1
  77. package/dist/src/vis/diagram/Diagram.d.ts +1 -0
  78. package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
  79. package/dist/src/vis/diagram/aether/Diagram.d.ts +0 -2
  80. package/dist/src/vis/diagram/aether/Diagram.d.ts.map +1 -1
  81. package/dist/src/vis/legend/Simple.d.ts.map +1 -1
  82. package/dist/src/vis/lineplot/aether/axis.d.ts.map +1 -1
  83. package/dist/src/vis/render/loop.d.ts +7 -4
  84. package/dist/src/vis/render/loop.d.ts.map +1 -1
  85. package/dist/src/vis/schematic/Forms.d.ts.map +1 -1
  86. package/dist/src/vis/schematic/Symbols.d.ts.map +1 -1
  87. package/dist/src/vis/schematic/primitives/Primitives.d.ts +2 -1
  88. package/dist/src/vis/schematic/primitives/Primitives.d.ts.map +1 -1
  89. package/dist/src/vis/value/aether/value.d.ts +11 -9
  90. package/dist/src/vis/value/aether/value.d.ts.map +1 -1
  91. package/dist/src/vis/value/use.d.ts +1 -0
  92. package/dist/src/vis/value/use.d.ts.map +1 -1
  93. package/dist/style.css +1 -1
  94. package/dist/tabs.cjs +1 -1
  95. package/dist/tabs.js +1 -1
  96. package/dist/text.cjs +1 -1
  97. package/dist/text.js +2 -2
  98. package/dist/theming.cjs +1 -1
  99. package/dist/theming.js +2 -2
  100. package/dist/tree.cjs +1 -1
  101. package/dist/tree.js +1 -1
  102. package/dist/triggers.cjs +1 -1
  103. package/dist/triggers.js +1 -1
  104. package/dist/{units-DbfWaeE2.cjs → units-6W_8ukD-.cjs} +1 -1
  105. package/dist/{units-CmWU_YzJ.js → units-BHSMvrYX.js} +1 -1
  106. package/dist/video.cjs +1 -1
  107. package/dist/video.js +1 -1
  108. package/package.json +3 -3
  109. package/dist/LinePlot-CgkhTRJT.js +0 -11256
  110. package/dist/LinePlot-oIHuM9Jz.cjs +0 -66
  111. package/dist/Toggle-GvJ5CkHq.cjs +0 -143
  112. package/dist/external-B7W7NBGN.cjs +0 -1
  113. package/dist/external-BQMz5fJB.cjs +0 -1
  114. package/dist/external-f7xyI5mJ.js +0 -94
@@ -2,31 +2,8 @@ var Vl = Object.defineProperty;
2
2
  var Wl = (t, e, n) => e in t ? Vl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var U = (t, e, n) => Wl(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { z as s } from "zod";
5
- import { k as Sa, v as Gl, M as tt, i as Jt, T as li, e as dn, h as Zl, U as Jl, a as P, f as ge, Z as Kl } from "./css-C8qHWSpT.js";
5
+ import { k as Sa, v as Gl, M as tt, i as Jt, T as li, e as dn, h as Zl, U as Jl, a as P, f as ge, Z as Kl } from "./css-DqBChhqm.js";
6
6
  import { useState as js } from "react";
7
- var Yb = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
- function qb(t) {
9
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
10
- }
11
- function zb(t) {
12
- if (t.__esModule) return t;
13
- var e = t.default;
14
- if (typeof e == "function") {
15
- var n = function r() {
16
- return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
17
- };
18
- n.prototype = e.prototype;
19
- } else n = {};
20
- return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
21
- var i = Object.getOwnPropertyDescriptor(t, r);
22
- Object.defineProperty(n, r, i.get ? i : {
23
- enumerable: !0,
24
- get: function() {
25
- return t[r];
26
- }
27
- });
28
- }), n;
29
- }
30
7
  const qt = (t) => t != null && typeof t == "object" && !Array.isArray(t);
31
8
  var Hl = Object.defineProperty, Xl = (t, e, n) => e in t ? Hl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, zt = (t, e, n) => Xl(t, typeof e != "symbol" ? e + "" : e, n);
32
9
  let Ql = class {
@@ -109,7 +86,7 @@ let Ql = class {
109
86
  const On = new Ql();
110
87
  new ec();
111
88
  new tc();
112
- const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object" && "toString" in t, Zb = (t) => {
89
+ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object" && "toString" in t, Gb = (t) => {
113
90
  if (Na(t)) return (t == null ? void 0 : t.toString().length) === 0;
114
91
  switch (typeof t) {
115
92
  case "string":
@@ -177,7 +154,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
177
154
  return isNaN(Number(o)) ? -1 : 1;
178
155
  }
179
156
  return r.length - i.length;
180
- }, Jb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
157
+ }, Zb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
181
158
  __proto__: null,
182
159
  EQUAL: dt,
183
160
  GREATER_THAN: Sn,
@@ -194,12 +171,12 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
194
171
  stringsWithNumbers: oc,
195
172
  uniqueUnorderedPrimitiveArrays: sc,
196
173
  unorderedPrimitiveArrays: Ia
197
- }, Symbol.toStringTag, { value: "Module" })), Kb = (t, e) => {
174
+ }, Symbol.toStringTag, { value: "Module" })), Jb = (t, e) => {
198
175
  let n = null;
199
176
  return e === 0 ? t : (...r) => {
200
177
  n !== null && (clearTimeout(n), n = null), n = setTimeout(() => t(...r), e);
201
178
  };
202
- }, Hb = (t, e) => {
179
+ }, Kb = (t, e) => {
203
180
  let n = null;
204
181
  return e === 0 ? t : (...r) => {
205
182
  n === null && (n = setTimeout(() => {
@@ -381,7 +358,7 @@ const ci = (t) => [...new Set(t)], Na = (t) => t != null && typeof t == "object"
381
358
  ), bc = (t, e) => (n) => {
382
359
  const r = e.find((i) => i.safeParse(n).success);
383
360
  return r == null ? null : t(r.parse(n));
384
- }, ja = s.bigint().or(s.string().transform(BigInt)), Xb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
361
+ }, ja = s.bigint().or(s.string().transform(BigInt)), Hb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
385
362
  __proto__: null,
386
363
  bigInt: ja,
387
364
  getFieldSchema: wc,
@@ -1369,7 +1346,7 @@ y(ie, "z", s.union([
1369
1346
  s.instanceof(ie)
1370
1347
  ]));
1371
1348
  let Qn = ie;
1372
- const ev = s.union([
1349
+ const Qb = s.union([
1373
1350
  s.instanceof(Uint8Array),
1374
1351
  s.instanceof(Uint16Array),
1375
1352
  s.instanceof(Uint32Array),
@@ -1923,7 +1900,7 @@ let jc = class {
1923
1900
  }
1924
1901
  };
1925
1902
  const It = (t, e) => typeof t == "bigint" && typeof e == "bigint" || typeof t == "number" && typeof e == "number" ? t + e : e === 0 ? t : t === 0 ? e : Number(t) + Number(e);
1926
- let iv = class {
1903
+ let sv = class {
1927
1904
  constructor(e) {
1928
1905
  if (y(this, "series"), e.length !== 0) {
1929
1906
  const n = e[0].dataType;
@@ -2100,9 +2077,9 @@ const Pc = () => {
2100
2077
  detect: Pa,
2101
2078
  getOS: Uc,
2102
2079
  osZ: Dc
2103
- }, Symbol.toStringTag, { value: "Module" })), lv = (t) => Array.isArray(t) ? t : [t], cv = (t) => Array.isArray(t) ? t : t === null ? [] : [t];
2104
- var _c = Object.defineProperty, Fc = (t, e, n) => e in t ? _c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Et = (t, e, n) => Fc(t, typeof e != "symbol" ? e + "" : e, n);
2105
- const Yc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), qc = (t) => t.endsWith("/") ? t.slice(0, -1) : t, bi = class as {
2080
+ }, Symbol.toStringTag, { value: "Module" })), ov = (t) => Array.isArray(t) ? t : [t], lv = (t) => Array.isArray(t) ? t : t === null ? [] : [t];
2081
+ var _c = Object.defineProperty, Yc = (t, e, n) => e in t ? _c(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Et = (t, e, n) => Yc(t, typeof e != "symbol" ? e + "" : e, n);
2082
+ const Fc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), qc = (t) => t.endsWith("/") ? t.slice(0, -1) : t, bi = class as {
2106
2083
  /**
2107
2084
  * @param host - The hostname or IP address of the server.
2108
2085
  * @param port - The port number of the server.
@@ -2133,7 +2110,7 @@ const Yc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "
2133
2110
  child(e) {
2134
2111
  return new as({
2135
2112
  ...this,
2136
- pathPrefix: Yc(this.path, e)
2113
+ pathPrefix: Fc(this.path, e)
2137
2114
  });
2138
2115
  }
2139
2116
  /** @returns a string representation of the url */
@@ -2145,7 +2122,7 @@ const Yc = (...t) => t.map(La).join(""), La = (t) => (t.endsWith("/") || (t += "
2145
2122
  };
2146
2123
  Et(bi, "UNKNOWN", new bi({ host: "unknown", port: 0 }));
2147
2124
  var zc = Object.defineProperty, Vc = (t, e, n) => e in t ? zc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, er = (t, e, n) => Vc(t, typeof e != "symbol" ? e + "" : e, n);
2148
- let uv = class {
2125
+ let cv = class {
2149
2126
  constructor(e) {
2150
2127
  er(this, "sender"), er(this, "handlers"), this.sender = e, this.handlers = /* @__PURE__ */ new Map();
2151
2128
  }
@@ -2180,23 +2157,23 @@ En(Ze, "Absolute", 255), En(Ze, "Default", 1), En(Ze, "z", s.union([
2180
2157
  s.instanceof(Number).transform((t) => new Ze(t))
2181
2158
  ]));
2182
2159
  let _a = Ze;
2183
- const Fa = s.object({
2160
+ const Ya = s.object({
2184
2161
  name: s.string(),
2185
2162
  key: s.string()
2186
2163
  }), Kc = (t) => s.object({
2187
- subject: Fa,
2164
+ subject: Ya,
2188
2165
  resource: t,
2189
2166
  authority: _a.z
2190
2167
  }), Hc = (...t) => (e) => e.filter((n) => {
2191
2168
  let r = !1;
2192
2169
  return n.to != null && (r = t.includes(n.to.resource)), n.from != null && !r && (r = t.includes(n.from.resource)), r;
2193
- }), yv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2170
+ }), fv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2194
2171
  __proto__: null,
2195
2172
  Authority: _a,
2196
2173
  filterTransfersByChannelKey: Hc,
2197
2174
  stateZ: Kc,
2198
- subjectZ: Fa
2199
- }, Symbol.toStringTag, { value: "Module" })), Ya = class kt extends Error {
2175
+ subjectZ: Ya
2176
+ }, Symbol.toStringTag, { value: "Module" })), Fa = class kt extends Error {
2200
2177
  constructor() {
2201
2178
  super(kt.MESSAGE);
2202
2179
  }
@@ -2205,10 +2182,10 @@ const Fa = s.object({
2205
2182
  return typeof e == "string" ? e.includes(kt.MESSAGE) : e instanceof kt || e.message.includes(kt.MESSAGE);
2206
2183
  }
2207
2184
  };
2208
- En(Ya, "MESSAGE", "canceled");
2209
- let Xc = Ya;
2185
+ En(Fa, "MESSAGE", "canceled");
2186
+ let Xc = Fa;
2210
2187
  new Xc();
2211
- const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t, e, n = {}) => {
2188
+ const yv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t, e, n = {}) => {
2212
2189
  n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
2213
2190
  const r = os.parse(t), i = os.parse(e), [a, o, c] = r.split(".").map(Number), [u, h, f] = i.split(".").map(Number);
2214
2191
  if (n.checkMajor) {
@@ -2286,7 +2263,7 @@ const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
2286
2263
  return console.log(`${t} failed to parse final result. Exiting with default`), console.error(f), i;
2287
2264
  }
2288
2265
  };
2289
- }, pv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2266
+ }, gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2290
2267
  __proto__: null,
2291
2268
  compareSemVer: rn,
2292
2269
  createMigration: tu,
@@ -2295,12 +2272,12 @@ const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
2295
2272
  semVerOlder: eu,
2296
2273
  semVerZ: os,
2297
2274
  versionsEqual: Qc
2298
- }, Symbol.toStringTag, { value: "Module" })), mv = (t) => {
2275
+ }, Symbol.toStringTag, { value: "Module" })), pv = (t) => {
2299
2276
  if (t === void 0 || typeof t == "string" || typeof t == "number")
2300
2277
  return t;
2301
2278
  if (t.toString === void 0) throw new Error("invalid renderer");
2302
2279
  return t.toString();
2303
- }, wv = (t) => Array.isArray(t) ? [...t] : typeof t == "object" && t !== null ? { ...t } : t, za = (t) => typeof t == "function", Va = (t, e) => za(t) ? t(e) : t, cr = (t) => Wa(t) ? t() : t, Wa = (t) => typeof t == "function", ru = ({
2280
+ }, mv = (t) => Array.isArray(t) ? [...t] : typeof t == "object" && t !== null ? { ...t } : t, za = (t) => typeof t == "function", Va = (t, e) => za(t) ? t(e) : t, cr = (t) => Wa(t) ? t() : t, Wa = (t) => typeof t == "function", ru = ({
2304
2281
  initial: t,
2305
2282
  value: e,
2306
2283
  onChange: n
@@ -2325,7 +2302,7 @@ const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
2325
2302
  r(i), localStorage.setItem(e, JSON.stringify(i));
2326
2303
  }
2327
2304
  ];
2328
- }, bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2305
+ }, wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2329
2306
  __proto__: null,
2330
2307
  executeInitialSetter: cr,
2331
2308
  executeSetter: Va,
@@ -2334,17 +2311,33 @@ const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
2334
2311
  usePassthrough: ru,
2335
2312
  usePersisted: iu,
2336
2313
  usePurePassthrough: su
2337
- }, Symbol.toStringTag, { value: "Module" })), au = ["h1", "h2", "h3", "h4", "h5", "p", "small"], vv = s.enum(au), Ge = s.object({
2314
+ }, Symbol.toStringTag, { value: "Module" })), au = ["h1", "h2", "h3", "h4", "h5", "p", "small"], bv = s.enum(au), ou = {
2315
+ h1: "h2",
2316
+ h2: "h3",
2317
+ h3: "h4",
2318
+ h4: "h5",
2319
+ h5: "p",
2320
+ p: "small",
2321
+ small: "small"
2322
+ }, vv = (t) => ou[t], lu = {
2323
+ h1: "h1",
2324
+ h2: "h1",
2325
+ h3: "h2",
2326
+ h4: "h3",
2327
+ h5: "h4",
2328
+ p: "h5",
2329
+ small: "p"
2330
+ }, Ov = (t) => lu[t], Ge = s.object({
2338
2331
  size: s.number(),
2339
2332
  weight: s.union([s.number(), s.string()]),
2340
2333
  lineHeight: s.number(),
2341
2334
  textTransform: s.string().optional()
2342
- }), ou = {
2335
+ }), cu = {
2343
2336
  small: "small",
2344
2337
  medium: "p",
2345
2338
  large: "h5",
2346
2339
  huge: "h2"
2347
- }, Ov = {
2340
+ }, Tv = {
2348
2341
  h1: "huge",
2349
2342
  h2: "huge",
2350
2343
  h3: "huge",
@@ -2354,9 +2347,9 @@ const gv = (t) => t ? -1 : 1, os = s.string().regex(/^\d+\.\d+\.\d+$/), rn = (t,
2354
2347
  small: "small"
2355
2348
  };
2356
2349
  let $r = null;
2357
- const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv = (t, e, n) => {
2350
+ const uu = () => ($r == null && ($r = document.createElement("canvas")), $r), Sv = (t, e, n) => {
2358
2351
  if (Lc.RUNTIME === "node") return { width: 0, height: 0 };
2359
- n == null && (n = lu().getContext("2d")), n.font = e;
2352
+ n == null && (n = uu().getContext("2d")), n.font = e;
2360
2353
  const r = n.measureText(t);
2361
2354
  return {
2362
2355
  width: Math.trunc(
@@ -2366,7 +2359,7 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2366
2359
  Math.abs(r.actualBoundingBoxAscent) + Math.abs(r.actualBoundingBoxDescent)
2367
2360
  )
2368
2361
  };
2369
- }, cu = s.object({
2362
+ }, hu = s.object({
2370
2363
  l0: P.z,
2371
2364
  l1: P.z,
2372
2365
  l2: P.z,
@@ -2383,13 +2376,13 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2383
2376
  t[1],
2384
2377
  e,
2385
2378
  t[3]
2386
- ], uu = s.object({
2379
+ ], du = s.object({
2387
2380
  m2: P.z,
2388
2381
  m1: P.z,
2389
2382
  z: P.z,
2390
2383
  p1: P.z,
2391
2384
  p2: P.z
2392
- }), fn = uu.or(
2385
+ }), fn = du.or(
2393
2386
  P.z.transform((t) => {
2394
2387
  const e = t.hsla;
2395
2388
  return {
@@ -2400,13 +2393,13 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2400
2393
  p2: new P(ge(be(e, 65)))
2401
2394
  };
2402
2395
  })
2403
- ), hu = s.object({
2396
+ ), fu = s.object({
2404
2397
  name: s.string(),
2405
2398
  key: s.string(),
2406
2399
  colors: s.object({
2407
2400
  border: P.z,
2408
2401
  primary: fn,
2409
- gray: cu,
2402
+ gray: hu,
2410
2403
  error: fn,
2411
2404
  secondary: fn,
2412
2405
  warning: fn,
@@ -2444,7 +2437,7 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2444
2437
  }).transform((t) => ((t.colors.textOnPrimary == null || t.colors.textOnPrimary.isZero) && (t.colors.textOnPrimary = t.colors.primary.z.pickByContrast(
2445
2438
  t.colors.text,
2446
2439
  t.colors.textInverted
2447
- )), t)), du = "'Inter Variable', sans-serif", fu = "'Geist Mono', monospace", yu = 6, mt = [357, 91, 55, 1], wt = [58, 100, 50, 1], gu = [
2440
+ )), t)), yu = "'Inter Variable', sans-serif", gu = "'Geist Mono', monospace", pu = 6, mt = [357, 91, 55, 1], wt = [58, 100, 50, 1], mu = [
2448
2441
  "#FDFDFD",
2449
2442
  "#FAFAFA",
2450
2443
  "#F3F3F3",
@@ -2457,7 +2450,7 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2457
2450
  "#1C1C1C",
2458
2451
  "#050505"
2459
2452
  ], bt = Object.fromEntries(
2460
- gu.map((t, e) => [`l${e}`, t])
2453
+ mu.map((t, e) => [`l${e}`, t])
2461
2454
  ), ls = {
2462
2455
  key: "synnaxBase",
2463
2456
  name: "Synnax Base",
@@ -2520,7 +2513,7 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2520
2513
  textOnPrimary: bt.l0
2521
2514
  },
2522
2515
  sizes: {
2523
- base: yu,
2516
+ base: pu,
2524
2517
  border: {
2525
2518
  radius: 3,
2526
2519
  width: 1
@@ -2530,8 +2523,8 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2530
2523
  }
2531
2524
  },
2532
2525
  typography: {
2533
- family: du,
2534
- codeFamily: fu,
2526
+ family: yu,
2527
+ codeFamily: gu,
2535
2528
  h1: {
2536
2529
  size: 7,
2537
2530
  weight: "500",
@@ -2568,11 +2561,11 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2568
2561
  lineHeight: 1.9166666 * 1.5
2569
2562
  }
2570
2563
  }
2571
- }, pu = Object.freeze({
2564
+ }, wu = Object.freeze({
2572
2565
  ...ls,
2573
2566
  key: "synnaxLight",
2574
2567
  name: "Synnax Light"
2575
- }), mu = [
2568
+ }), bu = [
2576
2569
  "#020202",
2577
2570
  "#0A0A0A",
2578
2571
  "#131313",
@@ -2585,8 +2578,8 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2585
2578
  "#D5D5D5",
2586
2579
  "#FDFDFD"
2587
2580
  ], vt = Object.fromEntries(
2588
- mu.map((t, e) => [`l${e}`, t])
2589
- ), wu = Object.freeze({
2581
+ bu.map((t, e) => [`l${e}`, t])
2582
+ ), vu = Object.freeze({
2590
2583
  ...ls,
2591
2584
  key: "synnaxDark",
2592
2585
  name: "Synnax Dark",
@@ -2599,17 +2592,17 @@ const lu = () => ($r == null && ($r = document.createElement("canvas")), $r), Tv
2599
2592
  textInverted: vt.l0,
2600
2593
  textOnPrimary: vt.l10
2601
2594
  }
2602
- }), Sv = { synnaxDark: wu, synnaxLight: pu }, bu = ["small", "medium", "large", "huge"], vu = s.enum(bu), Ou = (t) => vu.safeParse(t).success, Nv = (t, e, n, r) => {
2595
+ }), Nv = { synnaxDark: vu, synnaxLight: wu }, Ou = ["small", "medium", "large", "huge"], Tu = s.enum(Ou), Su = (t) => Tu.safeParse(t).success, Iv = (t, { level: e, weight: n, code: r }) => {
2603
2596
  const {
2604
2597
  typography: i,
2605
2598
  sizes: { base: a }
2606
- } = t, o = i[Ou(e) ? ou[e] : e].size, c = a * o, u = r ? i.codeFamily : i.family, [h, f] = u.split(", ");
2599
+ } = t, o = i[Su(e) ? cu[e] : e].size, c = a * o, u = r ? i.codeFamily : i.family, [h, f] = u.split(", ");
2607
2600
  return n != null ? ` ${n} ${c}px ${h}, ${f}` : ` ${c}px ${u}`;
2608
2601
  };
2609
- var Tu = Object.defineProperty, Su = (t, e, n) => e in t ? Tu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e, n) => Su(t, typeof e != "symbol" ? e + "" : e, n);
2602
+ var Nu = Object.defineProperty, Iu = (t, e, n) => e in t ? Nu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e, n) => Iu(t, typeof e != "symbol" ? e + "" : e, n);
2610
2603
  const O = (t) => Array.isArray(t) ? t : [t];
2611
- var Nu = Object.defineProperty, Iu = (t, e, n) => e in t ? Nu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e, n) => Iu(t, typeof e != "symbol" ? e + "" : e, n);
2612
- const Eu = (t) => {
2604
+ var Eu = Object.defineProperty, ku = (t, e, n) => e in t ? Eu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e, n) => ku(t, typeof e != "symbol" ? e + "" : e, n);
2605
+ const Au = (t) => {
2613
2606
  const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
2614
2607
  return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
2615
2608
  }, Ga = (t) => {
@@ -2617,7 +2610,7 @@ const Eu = (t) => {
2617
2610
  if (typeof n == "string") return t(n);
2618
2611
  if (Array.isArray(n)) return n.map((o) => e(o, r));
2619
2612
  if (!Rr(n)) return n;
2620
- r = xu(r);
2613
+ r = $u(r);
2621
2614
  const i = {}, a = n;
2622
2615
  return Object.keys(a).forEach((o) => {
2623
2616
  let c = a[o];
@@ -2629,13 +2622,13 @@ const Eu = (t) => {
2629
2622
  }), i;
2630
2623
  };
2631
2624
  return e;
2632
- }, Za = Ga(Eu), ku = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`), Au = Ga(ku), cs = {
2625
+ }, Za = Ga(Au), xu = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`), Cu = Ga(xu), cs = {
2633
2626
  recursive: !0,
2634
2627
  recursiveInArray: !0,
2635
2628
  keepTypesOnRecursion: [Number, String, Uint8Array]
2636
- }, xu = (t = cs) => (t.recursive == null ? t = cs : t.recursiveInArray == null && (t.recursiveInArray = !1), t), vi = (t) => t != null && Array.isArray(t), Rr = (t) => t != null && typeof t == "object" && !Array.isArray(t), Oi = (t, e) => (e || []).some((n) => t instanceof n), Ja = (t) => t != null && typeof t == "object" && !Array.isArray(t);
2637
- var Cu = Object.defineProperty, $u = (t, e, n) => e in t ? Cu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vt = (t, e, n) => $u(t, typeof e != "symbol" ? e + "" : e, n);
2638
- let Ru = class {
2629
+ }, $u = (t = cs) => (t.recursive == null ? t = cs : t.recursiveInArray == null && (t.recursiveInArray = !1), t), vi = (t) => t != null && Array.isArray(t), Rr = (t) => t != null && typeof t == "object" && !Array.isArray(t), Oi = (t, e) => (e || []).some((n) => t instanceof n), Ja = (t) => t != null && typeof t == "object" && !Array.isArray(t);
2630
+ var Ru = Object.defineProperty, ju = (t, e, n) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Vt = (t, e, n) => ju(t, typeof e != "symbol" ? e + "" : e, n);
2631
+ let Bu = class {
2639
2632
  constructor() {
2640
2633
  Vt(this, "contentType", "application/json"), Vt(this, "decoder"), Vt(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
2641
2634
  }
@@ -2650,12 +2643,12 @@ let Ru = class {
2650
2643
  return e != null ? e.parse(r) : r;
2651
2644
  }
2652
2645
  encodeString(t) {
2653
- const e = Au(t);
2646
+ const e = Cu(t);
2654
2647
  return JSON.stringify(e, (n, r) => ArrayBuffer.isView(r) ? Array.from(r) : Ja(r) && "encode_value" in r ? typeof r.value == "bigint" ? r.value.toString() : r.value : typeof r == "bigint" ? r.toString() : r);
2655
2648
  }
2656
2649
  static registerCustomType() {
2657
2650
  }
2658
- }, ju = class {
2651
+ }, Mu = class {
2659
2652
  constructor() {
2660
2653
  Vt(this, "contentType", "text/csv");
2661
2654
  }
@@ -2700,7 +2693,7 @@ let Ru = class {
2700
2693
  }
2701
2694
  static registerCustomType() {
2702
2695
  }
2703
- }, Bu = class {
2696
+ }, Du = class {
2704
2697
  constructor() {
2705
2698
  Vt(this, "contentType", "text/plain");
2706
2699
  }
@@ -2712,30 +2705,30 @@ let Ru = class {
2712
2705
  return e != null ? e.parse(n) : n;
2713
2706
  }
2714
2707
  };
2715
- const kn = new Ru();
2716
- new ju();
2717
- new Bu();
2708
+ const kn = new Bu();
2709
+ new Mu();
2710
+ new Du();
2718
2711
  const ur = s.tuple([s.number(), s.number()]);
2719
2712
  s.tuple([s.bigint(), s.bigint()]);
2720
- const Ka = s.object({ width: s.number(), height: s.number() }), Mu = s.object({
2713
+ const Ka = s.object({ width: s.number(), height: s.number() }), Pu = s.object({
2721
2714
  signedWidth: s.number(),
2722
2715
  signedHeight: s.number()
2723
- }), Du = ["width", "height"];
2724
- s.enum(Du);
2725
- const Pu = ["start", "center", "end"], Uu = ["signedWidth", "signedHeight"];
2716
+ }), Uu = ["width", "height"];
2726
2717
  s.enum(Uu);
2727
- const tr = s.object({ x: s.number(), y: s.number() }), Lu = s.object({ clientX: s.number(), clientY: s.number() }), _u = ["x", "y"], Ha = s.enum(_u), Xa = ["top", "right", "bottom", "left"];
2718
+ const Lu = ["start", "center", "end"], _u = ["signedWidth", "signedHeight"];
2719
+ s.enum(_u);
2720
+ const tr = s.object({ x: s.number(), y: s.number() }), Yu = s.object({ clientX: s.number(), clientY: s.number() }), Fu = ["x", "y"], Ha = s.enum(Fu), Xa = ["top", "right", "bottom", "left"];
2728
2721
  s.enum(Xa);
2729
- const Fu = ["left", "right"], Qa = s.enum(Fu), Yu = ["top", "bottom"], eo = s.enum(Yu), to = ["center"], Ti = s.enum(to), qu = [...Xa, ...to], no = s.enum(qu);
2730
- s.enum(Pu);
2731
- const zu = ["first", "last"];
2732
- s.enum(zu);
2733
- const Vu = s.object({ lower: s.number(), upper: s.number() }), Wu = s.object({ lower: s.bigint(), upper: s.bigint() });
2734
- s.union([Vu, ur]);
2735
- s.union([Wu, ur]);
2722
+ const qu = ["left", "right"], Qa = s.enum(qu), zu = ["top", "bottom"], eo = s.enum(zu), to = ["center"], Ti = s.enum(to), Vu = [...Xa, ...to], no = s.enum(Vu);
2723
+ s.enum(Lu);
2724
+ const Wu = ["first", "last"];
2725
+ s.enum(Wu);
2726
+ const Gu = s.object({ lower: s.number(), upper: s.number() }), Zu = s.object({ lower: s.bigint(), upper: s.bigint() });
2727
+ s.union([Gu, ur]);
2728
+ s.union([Zu, ur]);
2736
2729
  s.union([Ha, no]);
2737
2730
  s.union([Ha, no, s.instanceof(String)]);
2738
- const Gu = (t) => typeof t == "bigint" || t instanceof BigInt, nt = (t, e) => Gu(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), Xe = (t, e) => {
2731
+ const Ju = (t) => typeof t == "bigint" || t instanceof BigInt, nt = (t, e) => Ju(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), Xe = (t, e) => {
2739
2732
  const n = {};
2740
2733
  if (typeof t == "number" || typeof t == "bigint")
2741
2734
  e != null ? (n.lower = t, n.upper = e) : (n.lower = typeof t == "bigint" ? 0n : 0, n.upper = t);
@@ -2752,14 +2745,14 @@ s.object({
2752
2745
  x: Qa.or(Ti),
2753
2746
  y: eo.or(Ti)
2754
2747
  });
2755
- const Zu = s.object({ x: Qa, y: eo }), Ju = Object.freeze({ x: "left", y: "top" }), Ku = (t, e) => t.x === e.x && t.y === e.y, Ii = s.union([
2748
+ const Ku = s.object({ x: Qa, y: eo }), Hu = Object.freeze({ x: "left", y: "top" }), Xu = (t, e) => t.x === e.x && t.y === e.y, Ii = s.union([
2756
2749
  s.number(),
2757
2750
  tr,
2758
2751
  ur,
2759
2752
  Ka,
2760
- Mu,
2761
- Lu
2762
- ]), Hu = (t, e) => {
2753
+ Pu,
2754
+ Yu
2755
+ ]), Qu = (t, e) => {
2763
2756
  if (typeof t == "string") {
2764
2757
  if (e === void 0) throw new Error("The y coordinate must be given.");
2765
2758
  return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
@@ -2781,13 +2774,13 @@ s.object({
2781
2774
  s.object({
2782
2775
  one: tr,
2783
2776
  two: tr,
2784
- root: Zu
2777
+ root: Ku
2785
2778
  });
2786
2779
  const Ms = (t, e, n = 0, r = 0, i) => {
2787
2780
  const a = {
2788
2781
  one: { ...Ei },
2789
2782
  two: { ...Ei },
2790
- root: i ?? Ju
2783
+ root: i ?? Hu
2791
2784
  };
2792
2785
  if (typeof t == "number") {
2793
2786
  if (typeof e != "number")
@@ -2807,65 +2800,87 @@ const Ms = (t, e, n = 0, r = 0, i) => {
2807
2800
  }, Br = (t) => {
2808
2801
  const e = Ms(t);
2809
2802
  return { lower: e.one.y, upper: e.two.y };
2810
- }, Xu = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
2811
- var Qu = Object.defineProperty, eh = (t, e, n) => e in t ? Qu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, De = (t, e, n) => eh(t, typeof e != "symbol" ? e + "" : e, n);
2812
- const th = (t, e, n) => e !== void 0 && t < e ? e : n !== void 0 && t > n ? n : t;
2803
+ }, eh = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
2804
+ var th = Object.defineProperty, nh = (t, e, n) => e in t ? th(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, De = (t, e, n) => nh(t, typeof e != "symbol" ? e + "" : e, n);
2805
+ const rh = (t, e, n) => e !== void 0 && t < e ? e : n !== void 0 && t > n ? n : t;
2813
2806
  s.object({ offset: Ii, scale: Ii });
2814
- const nh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
2807
+ const sh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
2815
2808
  e,
2816
2809
  i ? r - t : r + t
2817
- ], rh = (t) => (e, n, r, i) => [
2810
+ ], ih = (t) => (e, n, r, i) => [
2818
2811
  e,
2819
2812
  i ? r / t : r * t
2820
- ], sh = (t) => (e, n, r) => {
2813
+ ], ah = (t) => (e, n, r) => {
2821
2814
  if (e === null) return [t, r];
2822
2815
  const { lower: i, upper: a } = e, { lower: o, upper: c } = t, u = a - i, h = c - o;
2823
2816
  if (n === "dimension") return [t, r * (h / u)];
2824
2817
  const f = (r - i) * (h / u) + o;
2825
2818
  return [t, f];
2826
- }, ih = (t) => (e, n, r) => [t, r], ah = () => (t, e, n) => {
2819
+ }, oh = (t) => (e, n, r) => [t, r], lh = () => (t, e, n) => {
2827
2820
  if (t === null) throw new Error("cannot invert without bounds");
2828
2821
  if (e === "dimension") return [t, n];
2829
2822
  const { lower: r, upper: i } = t;
2830
2823
  return [t, i - (n - r)];
2831
- }, oh = (t) => (e, n, r) => {
2824
+ }, ch = (t) => (e, n, r) => {
2832
2825
  const { lower: i, upper: a } = t;
2833
- return r = th(r, i, a), [e, r];
2826
+ return r = rh(r, i, a), [e, r];
2834
2827
  }, us = class At {
2835
2828
  constructor() {
2836
2829
  De(this, "ops", []), De(this, "currBounds", null), De(this, "currType", null), De(this, "reversed", !1), this.ops = [];
2837
2830
  }
2831
+ /**
2832
+ * @returns a new scale with a translation as its first operation. Any number provided
2833
+ * to the {@link pos} operation on the scale will be translated by the specified value.
2834
+ * @param value - The amount to translate by.
2835
+ */
2838
2836
  static translate(e) {
2839
2837
  return new At().translate(e);
2840
2838
  }
2839
+ /**
2840
+ * @returns a new scale with a magnification as its first operation. Any number provided
2841
+ * to the {@link pos} or {@link dim} operation will be multiplied by the specified value.
2842
+ * @param value - The amount to translate by.
2843
+ */
2841
2844
  static magnify(e) {
2842
2845
  return new At().magnify(e);
2843
2846
  }
2844
2847
  static scale(e, n) {
2845
2848
  return new At().scale(e, n);
2846
2849
  }
2850
+ /**
2851
+ * @returns a copy of the scale with a translation as its next operation. Any
2852
+ * number provided to the {@link pos} method on the scale will be translated by the
2853
+ * specified value.
2854
+ * @param value - The amount to translate by.
2855
+ */
2847
2856
  translate(e) {
2848
- const n = this.new(), r = nh(e);
2857
+ const n = this.new(), r = sh(e);
2849
2858
  return r.type = "translate", n.ops.push(r), n;
2850
2859
  }
2860
+ /**
2861
+ * @returns a copy of the scale with a translation as its next operation. Any number
2862
+ * provided to the {@link pos} or {@link dim} method on the scale will be multiplied
2863
+ * by the specified value.
2864
+ * @param value - The amount to magnify by.
2865
+ */
2851
2866
  magnify(e) {
2852
- const n = this.new(), r = rh(e);
2867
+ const n = this.new(), r = ih(e);
2853
2868
  return r.type = "magnify", n.ops.push(r), n;
2854
2869
  }
2855
2870
  scale(e, n) {
2856
- const r = Xe(e, n), i = this.new(), a = sh(r);
2871
+ const r = Xe(e, n), i = this.new(), a = ah(r);
2857
2872
  return a.type = "scale", i.ops.push(a), i;
2858
2873
  }
2859
2874
  clamp(e, n) {
2860
- const r = Xe(e, n), i = this.new(), a = oh(r);
2875
+ const r = Xe(e, n), i = this.new(), a = ch(r);
2861
2876
  return a.type = "clamp", i.ops.push(a), i;
2862
2877
  }
2863
2878
  reBound(e, n) {
2864
- const r = Xe(e, n), i = this.new(), a = ih(r);
2879
+ const r = Xe(e, n), i = this.new(), a = oh(r);
2865
2880
  return a.type = "re-bound", i.ops.push(a), i;
2866
2881
  }
2867
2882
  invert() {
2868
- const e = ah();
2883
+ const e = lh();
2869
2884
  e.type = "invert";
2870
2885
  const n = this.new();
2871
2886
  return n.ops.push(e), n;
@@ -2929,7 +2944,7 @@ const Ai = class Be {
2929
2944
  return new Be().reBound(e);
2930
2945
  }
2931
2946
  translate(e, n) {
2932
- const r = Hu(e, n), i = this.copy();
2947
+ const r = Qu(e, n), i = this.copy();
2933
2948
  return i.x = this.x.translate(r.x), i.y = this.y.translate(r.y), i;
2934
2949
  }
2935
2950
  translateX(e) {
@@ -2946,9 +2961,9 @@ const Ai = class Be {
2946
2961
  }
2947
2962
  scale(e) {
2948
2963
  const n = this.copy();
2949
- if (Xu(e)) {
2964
+ if (eh(e)) {
2950
2965
  const r = this.currRoot;
2951
- return n.currRoot = e.root, r != null && !Ku(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(jr(e)), n.y = n.y.scale(Br(e)), n;
2966
+ return n.currRoot = e.root, r != null && !Xu(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(jr(e)), n.y = n.y.scale(Br(e)), n;
2952
2967
  }
2953
2968
  return n.x = n.x.scale(e.width), n.y = n.y.scale(e.height), n;
2954
2969
  }
@@ -2982,8 +2997,8 @@ const Ai = class Be {
2982
2997
  }
2983
2998
  };
2984
2999
  De(Ai, "IDENTITY", new Ai());
2985
- const lh = (t) => t != null && typeof t == "object" && "toString" in t, ch = (t, e = !1) => {
2986
- const n = lh(t) ? "stringer" : typeof t;
3000
+ const uh = (t) => t != null && typeof t == "object" && "toString" in t, hh = (t, e = !1) => {
3001
+ const n = uh(t) ? "stringer" : typeof t;
2987
3002
  let r;
2988
3003
  switch (n) {
2989
3004
  case "string":
@@ -3007,18 +3022,18 @@ const lh = (t) => t != null && typeof t == "object" && "toString" in t, ch = (t,
3007
3022
  default:
3008
3023
  return console.warn(`sortFunc: unknown type ${n}`), () => -1;
3009
3024
  }
3010
- return e ? uh(r) : r;
3011
- }, uh = (t) => (e, n) => t(n, e), hh = s.object({ signedWidth: s.number(), signedHeight: s.number() });
3012
- s.union([Ka, hh, tr, ur]);
3013
- const dh = s.bigint().or(s.string().transform(BigInt));
3014
- var fh = Object.defineProperty, yh = (t, e, n) => e in t ? fh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, b = (t, e, n) => yh(t, typeof e != "symbol" ? e + "" : e, n);
3015
- let gh = (t, e = 21) => (n = e) => {
3025
+ return e ? dh(r) : r;
3026
+ }, dh = (t) => (e, n) => t(n, e), fh = s.object({ signedWidth: s.number(), signedHeight: s.number() });
3027
+ s.union([Ka, fh, tr, ur]);
3028
+ const yh = s.bigint().or(s.string().transform(BigInt));
3029
+ var gh = Object.defineProperty, ph = (t, e, n) => e in t ? gh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, b = (t, e, n) => ph(t, typeof e != "symbol" ? e + "" : e, n);
3030
+ let mh = (t, e = 21) => (n = e) => {
3016
3031
  let r = "", i = n;
3017
3032
  for (; i--; )
3018
3033
  r += t[Math.random() * t.length | 0];
3019
3034
  return r;
3020
3035
  };
3021
- const ph = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", mh = gh(ph, 11), wh = s.enum(["static", "dynamic"]), ro = (t, e) => {
3036
+ const wh = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", bh = mh(wh, 11), vh = s.enum(["static", "dynamic"]), ro = (t, e) => {
3022
3037
  const n = new G(e);
3023
3038
  if (![
3024
3039
  X.DAY,
@@ -3034,7 +3049,7 @@ const ph = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", mh
3034
3049
  );
3035
3050
  const r = t.valueOf() % n.valueOf();
3036
3051
  return t instanceof G ? new G(r) : new X(r);
3037
- }, F = class S {
3052
+ }, Y = class S {
3038
3053
  constructor(e, n = "UTC") {
3039
3054
  if (b(this, "value"), b(this, "encodeValue", !0), e == null) this.value = S.now().valueOf();
3040
3055
  else if (e instanceof Date)
@@ -3312,25 +3327,25 @@ const ph = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", mh
3312
3327
  return S.hours(e * 24);
3313
3328
  }
3314
3329
  };
3315
- b(F, "NANOSECOND", F.nanoseconds(1)), /** One microsecond after the unix epoch */
3316
- b(F, "MICROSECOND", F.microseconds(1)), /** One millisecond after the unix epoch */
3317
- b(F, "MILLISECOND", F.milliseconds(1)), /** One second after the unix epoch */
3318
- b(F, "SECOND", F.seconds(1)), /** One minute after the unix epoch */
3319
- b(F, "MINUTE", F.minutes(1)), /** One hour after the unix epoch */
3320
- b(F, "HOUR", F.hours(1)), /** One day after the unix epoch */
3321
- b(F, "DAY", F.days(1)), /** The maximum possible value for a timestamp */
3322
- b(F, "MAX", new F((1n << 63n) - 1n)), /** The minimum possible value for a timestamp */
3323
- b(F, "MIN", new F(0)), /** The unix epoch */
3324
- b(F, "ZERO", new F(0)), /** A zod schema for validating timestamps */
3325
- b(F, "z", s.union([
3326
- s.object({ value: s.bigint() }).transform((t) => new F(t.value)),
3327
- s.string().transform((t) => new F(BigInt(t))),
3328
- s.instanceof(Number).transform((t) => new F(t)),
3329
- s.number().transform((t) => new F(t)),
3330
- s.instanceof(F)
3330
+ b(Y, "NANOSECOND", Y.nanoseconds(1)), /** One microsecond after the unix epoch */
3331
+ b(Y, "MICROSECOND", Y.microseconds(1)), /** One millisecond after the unix epoch */
3332
+ b(Y, "MILLISECOND", Y.milliseconds(1)), /** One second after the unix epoch */
3333
+ b(Y, "SECOND", Y.seconds(1)), /** One minute after the unix epoch */
3334
+ b(Y, "MINUTE", Y.minutes(1)), /** One hour after the unix epoch */
3335
+ b(Y, "HOUR", Y.hours(1)), /** One day after the unix epoch */
3336
+ b(Y, "DAY", Y.days(1)), /** The maximum possible value for a timestamp */
3337
+ b(Y, "MAX", new Y((1n << 63n) - 1n)), /** The minimum possible value for a timestamp */
3338
+ b(Y, "MIN", new Y(0)), /** The unix epoch */
3339
+ b(Y, "ZERO", new Y(0)), /** A zod schema for validating timestamps */
3340
+ b(Y, "z", s.union([
3341
+ s.object({ value: s.bigint() }).transform((t) => new Y(t.value)),
3342
+ s.string().transform((t) => new Y(BigInt(t))),
3343
+ s.instanceof(Number).transform((t) => new Y(t)),
3344
+ s.number().transform((t) => new Y(t)),
3345
+ s.instanceof(Y)
3331
3346
  ]));
3332
- let G = F;
3333
- const Y = class E {
3347
+ let G = Y;
3348
+ const F = class E {
3334
3349
  constructor(e) {
3335
3350
  b(this, "value"), b(this, "encodeValue", !0), typeof e == "number" && (e = Math.trunc(e.valueOf())), this.value = BigInt(e.valueOf());
3336
3351
  }
@@ -3493,24 +3508,24 @@ const Y = class E {
3493
3508
  return E.hours(nt(e, 24));
3494
3509
  }
3495
3510
  };
3496
- b(Y, "NANOSECOND", Y.nanoseconds(1)), /** A microsecond. */
3497
- b(Y, "MICROSECOND", Y.microseconds(1)), /** A millisecond. */
3498
- b(Y, "MILLISECOND", Y.milliseconds(1)), /** A second. */
3499
- b(Y, "SECOND", Y.seconds(1)), /** A minute. */
3500
- b(Y, "MINUTE", Y.minutes(1)), /** Represents an hour. */
3501
- b(Y, "HOUR", Y.hours(1)), /** Represents a day. */
3502
- b(Y, "DAY", Y.days(1)), /** The maximum possible value for a TimeSpan. */
3503
- b(Y, "MAX", new Y((1n << 63n) - 1n)), /** The minimum possible value for a TimeSpan. */
3504
- b(Y, "MIN", new Y(0)), /** The zero value for a TimeSpan. */
3505
- b(Y, "ZERO", new Y(0)), /** A zod schema for validating and transforming timespans */
3506
- b(Y, "z", s.union([
3507
- s.object({ value: s.bigint() }).transform((t) => new Y(t.value)),
3508
- s.string().transform((t) => new Y(BigInt(t))),
3509
- s.instanceof(Number).transform((t) => new Y(t)),
3510
- s.number().transform((t) => new Y(t)),
3511
- s.instanceof(Y)
3511
+ b(F, "NANOSECOND", F.nanoseconds(1)), /** A microsecond. */
3512
+ b(F, "MICROSECOND", F.microseconds(1)), /** A millisecond. */
3513
+ b(F, "MILLISECOND", F.milliseconds(1)), /** A second. */
3514
+ b(F, "SECOND", F.seconds(1)), /** A minute. */
3515
+ b(F, "MINUTE", F.minutes(1)), /** Represents an hour. */
3516
+ b(F, "HOUR", F.hours(1)), /** Represents a day. */
3517
+ b(F, "DAY", F.days(1)), /** The maximum possible value for a TimeSpan. */
3518
+ b(F, "MAX", new F((1n << 63n) - 1n)), /** The minimum possible value for a TimeSpan. */
3519
+ b(F, "MIN", new F(0)), /** The zero value for a TimeSpan. */
3520
+ b(F, "ZERO", new F(0)), /** A zod schema for validating and transforming timespans */
3521
+ b(F, "z", s.union([
3522
+ s.object({ value: s.bigint() }).transform((t) => new F(t.value)),
3523
+ s.string().transform((t) => new F(BigInt(t))),
3524
+ s.instanceof(Number).transform((t) => new F(t)),
3525
+ s.number().transform((t) => new F(t)),
3526
+ s.instanceof(F)
3512
3527
  ]));
3513
- let X = Y;
3528
+ let X = F;
3514
3529
  const xt = class An extends Number {
3515
3530
  constructor(e) {
3516
3531
  e instanceof Number ? super(e.valueOf()) : super(e);
@@ -4004,20 +4019,20 @@ s.union([
4004
4019
  const so = (t) => {
4005
4020
  const e = typeof t;
4006
4021
  return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof G || t instanceof X || t instanceof Date;
4007
- }, bh = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : $t(n, -r).valueOf(), vh = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Sh ? !0 : so(t), _e = -1, Oh = s.string().transform(
4022
+ }, Oh = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : $t(n, -r).valueOf(), Th = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ih ? !0 : so(t), _e = -1, Sh = s.string().transform(
4008
4023
  (t) => new Uint8Array(
4009
4024
  atob(t).split("").map((e) => e.charCodeAt(0))
4010
4025
  ).buffer
4011
- ), Th = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), ds = 10, Ct = class Ae {
4026
+ ), Nh = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), ds = 10, Ct = class Ae {
4012
4027
  constructor(e) {
4013
- b(this, "key", ""), b(this, "isSynnaxSeries", !0), b(this, "dataType"), b(this, "sampleOffset"), b(this, "gl"), b(this, "_data"), b(this, "_timeRange"), b(this, "alignment", 0n), b(this, "_cachedMin"), b(this, "_cachedMax"), b(this, "writePos", _e), b(this, "_refCount", 0), b(this, "_cachedLength"), b(this, "_cachedIndexes"), vh(e) && (e = { data: e });
4028
+ b(this, "key", ""), b(this, "isSynnaxSeries", !0), b(this, "dataType"), b(this, "sampleOffset"), b(this, "gl"), b(this, "_data"), b(this, "_timeRange"), b(this, "alignment", 0n), b(this, "_cachedMin"), b(this, "_cachedMax"), b(this, "writePos", _e), b(this, "_refCount", 0), b(this, "_cachedLength"), b(this, "_cachedIndexes"), Th(e) && (e = { data: e });
4014
4029
  const {
4015
4030
  dataType: n,
4016
4031
  timeRange: r,
4017
4032
  sampleOffset: i = 0,
4018
4033
  glBufferUsage: a = "static",
4019
4034
  alignment: o = 0n,
4020
- key: c = mh()
4035
+ key: c = bh()
4021
4036
  } = e, u = e.data ?? [];
4022
4037
  if (u instanceof Ae || typeof u == "object" && "isSynnaxSeries" in u && u.isSynnaxSeries === !0) {
4023
4038
  const d = u;
@@ -4219,7 +4234,7 @@ const so = (t) => {
4219
4234
  if (this.dataType.equals(e)) return this;
4220
4235
  const r = new e.Array(this.length);
4221
4236
  for (let i = 0; i < this.length; i++)
4222
- r[i] = bh(this.dataType, e, this.data[i], n);
4237
+ r[i] = Oh(this.dataType, e, this.data[i], n);
4223
4238
  return new Ae({
4224
4239
  data: r.buffer,
4225
4240
  dataType: e,
@@ -4336,7 +4351,7 @@ const so = (t) => {
4336
4351
  */
4337
4352
  binarySearch(e) {
4338
4353
  let n = 0, r = this.length - 1;
4339
- const i = ch(e);
4354
+ const i = hh(e);
4340
4355
  for (; n <= r; ) {
4341
4356
  const a = Math.floor((n + r) / 2), o = i(this.at(a, !0), e);
4342
4357
  if (o === 0) return a;
@@ -4416,10 +4431,10 @@ const so = (t) => {
4416
4431
  }
4417
4432
  [Symbol.iterator]() {
4418
4433
  if (this.dataType.isVariable) {
4419
- const e = new Nh(this);
4420
- return this.dataType.equals(q.JSON) ? new Ih(e) : e;
4434
+ const e = new Eh(this);
4435
+ return this.dataType.equals(q.JSON) ? new kh(e) : e;
4421
4436
  }
4422
- return new Eh(this);
4437
+ return new Ah(this);
4423
4438
  }
4424
4439
  slice(e, n) {
4425
4440
  return this.sliceSub(!1, e, n);
@@ -4475,11 +4490,11 @@ const so = (t) => {
4475
4490
  b(Ct, "crudeZ", s.object({
4476
4491
  timeRange: Ds.z.optional(),
4477
4492
  dataType: q.z,
4478
- alignment: dh.optional(),
4479
- data: s.union([Oh, Th, s.instanceof(ArrayBuffer)]),
4480
- glBufferUsage: wh.optional().default("static").optional()
4493
+ alignment: yh.optional(),
4494
+ data: s.union([Sh, Nh, s.instanceof(ArrayBuffer)]),
4495
+ glBufferUsage: vh.optional().default("static").optional()
4481
4496
  })), b(Ct, "z", Ct.crudeZ.transform((t) => new Ct(t)));
4482
- let Sh = Ct;
4497
+ let Ih = Ct;
4483
4498
  class Ci {
4484
4499
  constructor(e, n, r) {
4485
4500
  b(this, "series"), b(this, "end"), b(this, "index"), this.series = e;
@@ -4493,7 +4508,7 @@ class Ci {
4493
4508
  return this;
4494
4509
  }
4495
4510
  }
4496
- class Nh {
4511
+ class Eh {
4497
4512
  constructor(e) {
4498
4513
  if (b(this, "series"), b(this, "index"), b(this, "decoder"), !e.dataType.isVariable)
4499
4514
  throw new Error(
@@ -4512,7 +4527,7 @@ class Nh {
4512
4527
  }
4513
4528
  }
4514
4529
  var $i, Ri;
4515
- class Ih {
4530
+ class kh {
4516
4531
  constructor(e) {
4517
4532
  b(this, "wrapped"), b(this, $i, "JSONSeriesIterator"), this.wrapped = e;
4518
4533
  }
@@ -4528,7 +4543,7 @@ class Ih {
4528
4543
  }
4529
4544
  }
4530
4545
  var ji, Bi;
4531
- class Eh {
4546
+ class Ah {
4532
4547
  constructor(e) {
4533
4548
  b(this, "series"), b(this, "index"), b(this, ji, "SeriesIterator"), this.series = e, this.index = 0;
4534
4549
  }
@@ -4551,27 +4566,27 @@ s.record(
4551
4566
  s.union([s.number(), s.string(), s.symbol()]),
4552
4567
  s.unknown()
4553
4568
  );
4554
- const io = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", kh = io(), ao = ["MacOS", "Windows", "Linux", "Docker"], Ah = s.enum(ao);
4569
+ const io = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", xh = io(), ao = ["MacOS", "Windows", "Linux", "Docker"], Ch = s.enum(ao);
4555
4570
  let Mr;
4556
- const xh = () => {
4571
+ const $h = () => {
4557
4572
  if (typeof window > "u") return;
4558
4573
  const t = window.navigator.userAgent.toLowerCase();
4559
4574
  if (t.includes("mac")) return "MacOS";
4560
4575
  if (t.includes("win")) return "Windows";
4561
4576
  if (t.includes("linux")) return "Linux";
4562
- }, Ch = (t = {}) => {
4577
+ }, Rh = (t = {}) => {
4563
4578
  const { force: e, default: n } = t;
4564
- return e ?? Mr ?? (Mr = xh(), Mr ?? n);
4579
+ return e ?? Mr ?? (Mr = $h(), Mr ?? n);
4565
4580
  }, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4566
4581
  __proto__: null,
4567
4582
  OPERATING_SYSTEMS: ao,
4568
- RUNTIME: kh,
4583
+ RUNTIME: xh,
4569
4584
  detect: io,
4570
- getOS: Ch,
4571
- osZ: Ah
4585
+ getOS: Rh,
4586
+ osZ: Ch
4572
4587
  }, Symbol.toStringTag, { value: "Module" }));
4573
- var $h = Object.defineProperty, Rh = (t, e, n) => e in t ? $h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Rt = (t, e, n) => Rh(t, typeof e != "symbol" ? e + "" : e, n);
4574
- const jh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Bh = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Mh = (t, e = "") => t === null ? "" : "?" + Object.entries(t).filter(([, n]) => n == null ? !1 : Array.isArray(n) ? n.length > 0 : !0).map(([n, r]) => `${e}${n}=${r}`).join("&"), fs = class ys {
4588
+ var jh = Object.defineProperty, Bh = (t, e, n) => e in t ? jh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Rt = (t, e, n) => Bh(t, typeof e != "symbol" ? e + "" : e, n);
4589
+ const Mh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Dh = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Ph = (t, e = "") => t === null ? "" : "?" + Object.entries(t).filter(([, n]) => n == null ? !1 : Array.isArray(n) ? n.length > 0 : !0).map(([n, r]) => `${e}${n}=${r}`).join("&"), fs = class ys {
4575
4590
  /**
4576
4591
  * @param host - The hostname or IP address of the server.
4577
4592
  * @param port - The port number of the server.
@@ -4602,19 +4617,19 @@ const jh = (...t) => t.map(lo).join(""), lo = (t) => (t.endsWith("/") || (t += "
4602
4617
  child(e) {
4603
4618
  return new ys({
4604
4619
  ...this,
4605
- pathPrefix: jh(this.path, e)
4620
+ pathPrefix: Mh(this.path, e)
4606
4621
  });
4607
4622
  }
4608
4623
  /** @returns a string representation of the url */
4609
4624
  toString() {
4610
- return Bh(
4625
+ return Dh(
4611
4626
  `${this.protocol}://${this.host}:${this.port}/${this.path}`
4612
4627
  );
4613
4628
  }
4614
4629
  };
4615
4630
  Rt(fs, "UNKNOWN", new fs({ host: "unknown", port: 0 }));
4616
- let Dh = fs;
4617
- var Ph = Object.defineProperty, Uh = (t, e, n) => e in t ? Ph(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Cn = (t, e, n) => Uh(t, typeof e != "symbol" ? e + "" : e, n);
4631
+ let Uh = fs;
4632
+ var Lh = Object.defineProperty, _h = (t, e, n) => e in t ? Lh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Cn = (t, e, n) => _h(t, typeof e != "symbol" ? e + "" : e, n);
4618
4633
  const rt = class extends Number {
4619
4634
  };
4620
4635
  Cn(rt, "Absolute", 255), Cn(rt, "Default", 1), Cn(rt, "z", s.union([
@@ -4636,8 +4651,8 @@ const co = class jt extends Error {
4636
4651
  }
4637
4652
  };
4638
4653
  Cn(co, "MESSAGE", "canceled");
4639
- let Lh = co;
4640
- new Lh();
4654
+ let Yh = co;
4655
+ new Yh();
4641
4656
  s.string().regex(/^\d+\.\d+\.\d+$/);
4642
4657
  const fe = (t) => (e) => e != null && typeof e == "object" && "type" in e && typeof e.type == "string" ? e.type.includes(t) : e instanceof Error ? e.message.includes(t) : typeof e != "string" ? !1 : e.includes(t);
4643
4658
  let Te = class extends Error {
@@ -4645,7 +4660,7 @@ let Te = class extends Error {
4645
4660
  super(e), M(this, "discriminator", "FreighterError"), M(this, "type", "");
4646
4661
  }
4647
4662
  };
4648
- const _h = (t) => {
4663
+ const Fh = (t) => {
4649
4664
  if (t == null || typeof t != "object") return !1;
4650
4665
  const e = t;
4651
4666
  if (e.discriminator !== "FreighterError") return !1;
@@ -4654,8 +4669,8 @@ const _h = (t) => {
4654
4669
  `Freighter error is missing its type property: ${JSON.stringify(e)}`
4655
4670
  );
4656
4671
  return !0;
4657
- }, Mi = "unknown", Di = "nil", Fh = "freighter", sn = s.object({ type: s.string(), data: s.string() });
4658
- class Yh {
4672
+ }, Mi = "unknown", Di = "nil", qh = "freighter", sn = s.object({ type: s.string(), data: s.string() });
4673
+ class zh {
4659
4674
  constructor() {
4660
4675
  M(this, "providers", []);
4661
4676
  }
@@ -4664,7 +4679,7 @@ class Yh {
4664
4679
  }
4665
4680
  encode(e) {
4666
4681
  if (e == null) return { type: Di, data: "" };
4667
- if (_h(e))
4682
+ if (Fh(e))
4668
4683
  for (const n of this.providers) {
4669
4684
  const r = n.encode(e);
4670
4685
  if (r != null) return r;
@@ -4681,7 +4696,7 @@ class Yh {
4681
4696
  return new Pi(e.data);
4682
4697
  }
4683
4698
  }
4684
- const uo = new Yh(), ho = ({
4699
+ const uo = new zh(), ho = ({
4685
4700
  encode: t,
4686
4701
  decode: e
4687
4702
  }) => uo.register({ encode: t, decode: e }), Ps = (t) => uo.decode(t);
@@ -4706,21 +4721,21 @@ M(Rn, "TYPE", hr + "stream_closed"), M(Rn, "matches", fe(Rn.TYPE));
4706
4721
  let ot = Rn;
4707
4722
  const jn = class go extends Te {
4708
4723
  constructor(e = {}) {
4709
- const { message: n = "Unreachable", url: r = Dh.UNKNOWN } = e;
4724
+ const { message: n = "Unreachable", url: r = Uh.UNKNOWN } = e;
4710
4725
  super(n), M(this, "type", go.TYPE), M(this, "url"), this.url = r;
4711
4726
  }
4712
4727
  };
4713
4728
  M(jn, "TYPE", hr + "unreachable"), M(jn, "matches", fe(jn.TYPE));
4714
4729
  let Qe = jn;
4715
- const qh = (t) => {
4716
- if (!t.type.startsWith(Fh)) return null;
4730
+ const Vh = (t) => {
4731
+ if (!t.type.startsWith(qh)) return null;
4717
4732
  if (qe.matches(t)) return { type: qe.TYPE, data: "EOF" };
4718
4733
  if (ot.matches(t))
4719
4734
  return { type: ot.TYPE, data: "StreamClosed" };
4720
4735
  if (Qe.matches(t))
4721
4736
  return { type: Qe.TYPE, data: "Unreachable" };
4722
4737
  throw new Error(`Unknown error type: ${t.type}: ${t.message}`);
4723
- }, zh = (t) => {
4738
+ }, Wh = (t) => {
4724
4739
  if (!t.type.startsWith(hr)) return null;
4725
4740
  switch (t.type) {
4726
4741
  case qe.TYPE:
@@ -4734,8 +4749,8 @@ const qh = (t) => {
4734
4749
  }
4735
4750
  };
4736
4751
  ho({
4737
- encode: qh,
4738
- decode: zh
4752
+ encode: Vh,
4753
+ decode: Wh
4739
4754
  });
4740
4755
  let po = class {
4741
4756
  constructor() {
@@ -4771,7 +4786,7 @@ const mo = "Content-Type", Ui = (t) => {
4771
4786
  const n = require("https"), r = new n.Agent({ rejectUnauthorized: !1 });
4772
4787
  return async (i, a) => await e(i, { ...a, agent: r });
4773
4788
  };
4774
- class Vh extends po {
4789
+ class Gh extends po {
4775
4790
  constructor(e, n, r = !1) {
4776
4791
  return super(), M(this, "endpoint"), M(this, "encoder"), M(this, "fetch"), this.endpoint = e.replace({ protocol: r ? "https" : "http" }), this.encoder = n, this.fetch = Ui(this.endpoint.protocol), new Proxy(this, {
4777
4792
  get: (i, a, o) => a === "endpoint" ? this.endpoint : Reflect.get(i, a, o)
@@ -4831,12 +4846,12 @@ const v = async (t, e, n, r, i) => {
4831
4846
  const [a, o] = await t.send(e, n, r, i);
4832
4847
  if (o != null) throw o;
4833
4848
  return a;
4834
- }, Wh = () => oo.RUNTIME !== "node" ? (t) => new WebSocket(t) : (t) => new (require("ws")).WebSocket(t, { rejectUnauthorized: !1 }), Gh = s.object({
4849
+ }, Zh = () => oo.RUNTIME !== "node" ? (t) => new WebSocket(t) : (t) => new (require("ws")).WebSocket(t, { rejectUnauthorized: !1 }), Jh = s.object({
4835
4850
  type: s.union([s.literal("data"), s.literal("close")]),
4836
4851
  payload: s.unknown().optional(),
4837
4852
  error: s.optional(sn)
4838
4853
  });
4839
- class Zh {
4854
+ class Kh {
4840
4855
  constructor(e, n, r, i) {
4841
4856
  M(this, "encoder"), M(this, "reqSchema"), M(this, "resSchema"), M(this, "ws"), M(this, "serverClosed"), M(this, "sendClosed"), M(this, "receiveDataQueue", []), M(this, "receiveCallbacksQueue", []), this.encoder = n, this.reqSchema = r, this.resSchema = i, this.ws = e, this.sendClosed = !1, this.serverClosed = null, this.listenForMessages();
4842
4857
  }
@@ -4880,13 +4895,13 @@ class Zh {
4880
4895
  n != null ? n.resolve(e) : this.receiveDataQueue.push(e);
4881
4896
  }
4882
4897
  listenForMessages() {
4883
- this.ws.onmessage = (e) => this.addMessage(this.encoder.decode(e.data, Gh)), this.ws.onclose = (e) => this.addMessage({
4898
+ this.ws.onmessage = (e) => this.addMessage(this.encoder.decode(e.data, Jh)), this.ws.onclose = (e) => this.addMessage({
4884
4899
  type: "close",
4885
- error: { type: Qh(e) ? qe.TYPE : ot.TYPE, data: "" }
4900
+ error: { type: td(e) ? qe.TYPE : ot.TYPE, data: "" }
4886
4901
  });
4887
4902
  }
4888
4903
  }
4889
- const Jh = "freighterctx", Kh = 1e3, Hh = 1001, Xh = [Kh, Hh], Qh = (t) => Xh.includes(t.code), wo = class bo extends po {
4904
+ const Hh = "freighterctx", Xh = 1e3, Qh = 1001, ed = [Xh, Qh], td = (t) => ed.includes(t.code), wo = class bo extends po {
4890
4905
  /**
4891
4906
  * @param encoder - The encoder to use for encoding messages and decoding
4892
4907
  * responses.
@@ -4897,7 +4912,7 @@ const Jh = "freighterctx", Kh = 1e3, Hh = 1001, Xh = [Kh, Hh], Qh = (t) => Xh.in
4897
4912
  }
4898
4913
  /** Implements the StreamClient interface. */
4899
4914
  async stream(e, n, r) {
4900
- const i = Wh();
4915
+ const i = Zh();
4901
4916
  let a;
4902
4917
  const [, o] = await this.executeMiddleware(
4903
4918
  { target: e, protocol: "websocket", params: {}, role: "client" },
@@ -4912,19 +4927,19 @@ const Jh = "freighterctx", Kh = 1e3, Hh = 1001, Xh = [Kh, Hh], Qh = (t) => Xh.in
4912
4927
  return a;
4913
4928
  }
4914
4929
  buildURL(e, n) {
4915
- const r = Mh(
4930
+ const r = Ph(
4916
4931
  {
4917
4932
  [mo]: this.encoder.contentType,
4918
4933
  ...n.params
4919
4934
  },
4920
- Jh
4935
+ Hh
4921
4936
  );
4922
4937
  return this.baseUrl.child(e).toString() + r;
4923
4938
  }
4924
4939
  async wrapSocket(e, n, r) {
4925
4940
  return await new Promise((i) => {
4926
4941
  e.onopen = () => {
4927
- i(new Zh(e, this.encoder, n, r));
4942
+ i(new Kh(e, this.encoder, n, r));
4928
4943
  }, e.onerror = (a) => {
4929
4944
  const o = a;
4930
4945
  i(new Error(o.message));
@@ -4933,14 +4948,14 @@ const Jh = "freighterctx", Kh = 1e3, Hh = 1001, Xh = [Kh, Hh], Qh = (t) => Xh.in
4933
4948
  }
4934
4949
  };
4935
4950
  M(wo, "MESSAGE_TYPE", "arraybuffer");
4936
- let ed = wo;
4951
+ let nd = wo;
4937
4952
  const gs = s.union([
4938
4953
  s.literal("all"),
4939
4954
  s.literal("create"),
4940
4955
  s.literal("delete"),
4941
4956
  s.literal("retrieve"),
4942
4957
  s.literal("update")
4943
- ]), td = (t) => {
4958
+ ]), rd = (t) => {
4944
4959
  const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
4945
4960
  return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() || e.length === 0 ? e : e[0].toLowerCase() + e.slice(1);
4946
4961
  }, vo = (t) => {
@@ -4948,7 +4963,7 @@ const gs = s.union([
4948
4963
  if (typeof n == "string") return t(n);
4949
4964
  if (Array.isArray(n)) return n.map((o) => e(o, r));
4950
4965
  if (!Dr(n)) return n;
4951
- r = sd(r);
4966
+ r = ad(r);
4952
4967
  const i = {}, a = n;
4953
4968
  return Object.keys(a).forEach((o) => {
4954
4969
  let c = a[o];
@@ -4960,12 +4975,12 @@ const gs = s.union([
4960
4975
  }), i;
4961
4976
  };
4962
4977
  return e;
4963
- }, Oo = vo(td), nd = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`), rd = vo(nd), ps = {
4978
+ }, Oo = vo(rd), sd = (t) => t.replace(/([a-z0-9])([A-Z])/g, (e, n, r) => `${n}_${r.toLowerCase()}`), id = vo(sd), ps = {
4964
4979
  recursive: !0,
4965
4980
  recursiveInArray: !0,
4966
4981
  keepTypesOnRecursion: [Number, String, Uint8Array]
4967
- }, sd = (t = ps) => (t.recursive == null ? t = ps : t.recursiveInArray == null && (t.recursiveInArray = !1), t), Li = (t) => t != null && Array.isArray(t), Dr = (t) => t != null && typeof t == "object" && !Array.isArray(t), _i = (t, e) => (e || []).some((n) => t instanceof n), Us = (t) => t != null && typeof t == "object" && !Array.isArray(t);
4968
- var id = Object.defineProperty, ad = (t, e, n) => e in t ? id(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Wt = (t, e, n) => ad(t, typeof e != "symbol" ? e + "" : e, n);
4982
+ }, ad = (t = ps) => (t.recursive == null ? t = ps : t.recursiveInArray == null && (t.recursiveInArray = !1), t), Li = (t) => t != null && Array.isArray(t), Dr = (t) => t != null && typeof t == "object" && !Array.isArray(t), _i = (t, e) => (e || []).some((n) => t instanceof n), Us = (t) => t != null && typeof t == "object" && !Array.isArray(t);
4983
+ var od = Object.defineProperty, ld = (t, e, n) => e in t ? od(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Wt = (t, e, n) => ld(t, typeof e != "symbol" ? e + "" : e, n);
4969
4984
  let To = class {
4970
4985
  constructor() {
4971
4986
  Wt(this, "contentType", "application/json"), Wt(this, "decoder"), Wt(this, "encoder"), this.decoder = new TextDecoder(), this.encoder = new TextEncoder();
@@ -4981,7 +4996,7 @@ let To = class {
4981
4996
  return e != null ? e.parse(r) : r;
4982
4997
  }
4983
4998
  encodeString(t) {
4984
- const e = rd(t);
4999
+ const e = id(t);
4985
5000
  return JSON.stringify(e, (n, r) => ArrayBuffer.isView(r) ? Array.from(r) : Us(r) && "encode_value" in r ? typeof r.value == "bigint" ? r.value.toString() : r.value : typeof r == "bigint" ? r.toString() : r);
4986
5001
  }
4987
5002
  static registerCustomType() {
@@ -5043,36 +5058,36 @@ let To = class {
5043
5058
  return e != null ? e.parse(n) : n;
5044
5059
  }
5045
5060
  };
5046
- const at = new To(), od = new So(), ld = new No(), cd = [at], ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5061
+ const at = new To(), cd = new So(), ud = new No(), hd = [at], ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5047
5062
  __proto__: null,
5048
5063
  CSVCodec: So,
5049
- CSV_CODEC: od,
5050
- ENCODERS: cd,
5064
+ CSV_CODEC: cd,
5065
+ ENCODERS: hd,
5051
5066
  JSONCodec: To,
5052
5067
  JSON_CODEC: at,
5053
- TEXT_CODEC: ld,
5068
+ TEXT_CODEC: ud,
5054
5069
  TextCodec: No
5055
5070
  }, Symbol.toStringTag, { value: "Module" })), dr = s.tuple([s.number(), s.number()]);
5056
5071
  s.tuple([s.bigint(), s.bigint()]);
5057
- const Io = s.object({ width: s.number(), height: s.number() }), ud = s.object({
5072
+ const Io = s.object({ width: s.number(), height: s.number() }), dd = s.object({
5058
5073
  signedWidth: s.number(),
5059
5074
  signedHeight: s.number()
5060
- }), hd = ["width", "height"];
5061
- s.enum(hd);
5062
- const dd = ["start", "center", "end"], fd = ["signedWidth", "signedHeight"];
5075
+ }), fd = ["width", "height"];
5063
5076
  s.enum(fd);
5064
- const nr = s.object({ x: s.number(), y: s.number() }), yd = s.object({ clientX: s.number(), clientY: s.number() }), gd = ["x", "y"], Eo = s.enum(gd), ko = ["top", "right", "bottom", "left"];
5077
+ const yd = ["start", "center", "end"], gd = ["signedWidth", "signedHeight"];
5078
+ s.enum(gd);
5079
+ const nr = s.object({ x: s.number(), y: s.number() }), pd = s.object({ clientX: s.number(), clientY: s.number() }), md = ["x", "y"], Eo = s.enum(md), ko = ["top", "right", "bottom", "left"];
5065
5080
  s.enum(ko);
5066
- const pd = ["left", "right"], Ao = s.enum(pd), md = ["top", "bottom"], xo = s.enum(md), Co = ["center"], Fi = s.enum(Co), wd = [...ko, ...Co], $o = s.enum(wd);
5067
- s.enum(dd);
5068
- const bd = ["first", "last"];
5069
- s.enum(bd);
5070
- const vd = s.object({ lower: s.number(), upper: s.number() }), Od = s.object({ lower: s.bigint(), upper: s.bigint() });
5071
- s.union([vd, dr]);
5072
- s.union([Od, dr]);
5081
+ const wd = ["left", "right"], Ao = s.enum(wd), bd = ["top", "bottom"], xo = s.enum(bd), Co = ["center"], Yi = s.enum(Co), vd = [...ko, ...Co], $o = s.enum(vd);
5082
+ s.enum(yd);
5083
+ const Od = ["first", "last"];
5084
+ s.enum(Od);
5085
+ const Td = s.object({ lower: s.number(), upper: s.number() }), Sd = s.object({ lower: s.bigint(), upper: s.bigint() });
5086
+ s.union([Td, dr]);
5087
+ s.union([Sd, dr]);
5073
5088
  s.union([Eo, $o]);
5074
5089
  s.union([Eo, $o, s.instanceof(String)]);
5075
- const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), Td = (t, e) => yt(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), Yi = (t, e) => yt(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), Sd = (t, e) => yt(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), Nd = (t) => yt(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, st = (t, e) => yt(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), de = (t, e) => {
5090
+ const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt(t) ? t.valueOf() - BigInt(e.valueOf().valueOf()) : t.valueOf() - Number(e.valueOf()), Nd = (t, e) => yt(t) ? t.valueOf() + BigInt(e.valueOf().valueOf()) : t + Number(e.valueOf()), Fi = (t, e) => yt(t) ? t === BigInt(e.valueOf().valueOf()) : t === Number(e.valueOf()), Id = (t, e) => yt(t) ? t.valueOf() < BigInt(e.valueOf()) ? t : BigInt(e.valueOf()) : t.valueOf() < Number(e.valueOf()) ? t : Number(e.valueOf()), Ed = (t) => yt(t) || t instanceof BigInt ? t.valueOf() < 0n ? -t : t : t.valueOf() < 0 ? -t : t, st = (t, e) => yt(t) ? t.valueOf() * BigInt(e.valueOf()) : t.valueOf() * Number(e.valueOf()), de = (t, e) => {
5076
5091
  const n = {};
5077
5092
  if (typeof t == "number" || typeof t == "bigint")
5078
5093
  e != null ? (n.lower = t, n.upper = e) : (n.lower = typeof t == "bigint" ? 0n : 0, n.upper = t);
@@ -5090,21 +5105,21 @@ const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt
5090
5105
  return e >= n.lower && e < n.upper;
5091
5106
  const r = de(e);
5092
5107
  return r.lower >= n.lower && r.upper <= n.upper;
5093
- }, Id = (t, e, n) => {
5108
+ }, kd = (t, e, n) => {
5094
5109
  const r = t.map((c) => de(c)), i = n > 0 ? 1 : n < 0 ? -1 : 0;
5095
5110
  if (i === 0) return e;
5096
5111
  let a = n, o = e;
5097
- for (; Yi(a, 0) === !1; ) {
5112
+ for (; Fi(a, 0) === !1; ) {
5098
5113
  const c = r.findIndex((u) => i > 0 ? o >= u.lower && o < u.upper : o > u.lower && o <= u.upper);
5099
5114
  if (c !== -1) {
5100
5115
  const u = r[c];
5101
5116
  let h;
5102
5117
  if (i > 0 ? h = Pr(u.upper, o) : h = Pr(o, u.lower), h > 0) {
5103
- const f = Sd(Nd(a), h);
5104
- if (o = Td(
5118
+ const f = Id(Ed(a), h);
5119
+ if (o = Nd(
5105
5120
  o,
5106
5121
  i > 0 ? f : -f
5107
- ), a = Pr(a, i > 0 ? f : -f), Yi(a, 0)) return o;
5122
+ ), a = Pr(a, i > 0 ? f : -f), Fi(a, 0)) return o;
5108
5123
  continue;
5109
5124
  }
5110
5125
  }
@@ -5120,7 +5135,7 @@ const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt
5120
5135
  }
5121
5136
  }
5122
5137
  return o;
5123
- }, Ed = (t, e, n) => {
5138
+ }, Ad = (t, e, n) => {
5124
5139
  const r = t.map((o) => de(o));
5125
5140
  if (e === n) return typeof e == "bigint" ? 0n : 0;
5126
5141
  const i = e < n ? de([e, n]) : de([n, e]);
@@ -5135,17 +5150,17 @@ const yt = (t) => typeof t == "bigint" || t instanceof BigInt, Pr = (t, e) => yt
5135
5150
  return a;
5136
5151
  };
5137
5152
  s.object({
5138
- x: Ao.or(Fi),
5139
- y: xo.or(Fi)
5153
+ x: Ao.or(Yi),
5154
+ y: xo.or(Yi)
5140
5155
  });
5141
- const kd = s.object({ x: Ao, y: xo }), Ad = Object.freeze({ x: "left", y: "top" }), xd = (t, e) => t.x === e.x && t.y === e.y, Vi = s.union([
5156
+ const xd = s.object({ x: Ao, y: xo }), Cd = Object.freeze({ x: "left", y: "top" }), $d = (t, e) => t.x === e.x && t.y === e.y, Vi = s.union([
5142
5157
  s.number(),
5143
5158
  nr,
5144
5159
  dr,
5145
5160
  Io,
5146
- ud,
5147
- yd
5148
- ]), Cd = (t, e) => {
5161
+ dd,
5162
+ pd
5163
+ ]), Rd = (t, e) => {
5149
5164
  if (typeof t == "string") {
5150
5165
  if (e === void 0) throw new Error("The y coordinate must be given.");
5151
5166
  return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
@@ -5167,13 +5182,13 @@ s.object({
5167
5182
  s.object({
5168
5183
  one: nr,
5169
5184
  two: nr,
5170
- root: kd
5185
+ root: xd
5171
5186
  });
5172
5187
  const Ls = (t, e, n = 0, r = 0, i) => {
5173
5188
  const a = {
5174
5189
  one: { ...Wi },
5175
5190
  two: { ...Wi },
5176
- root: i ?? Ad
5191
+ root: i ?? Cd
5177
5192
  };
5178
5193
  if (typeof t == "number") {
5179
5194
  if (typeof e != "number")
@@ -5193,65 +5208,87 @@ const Ls = (t, e, n = 0, r = 0, i) => {
5193
5208
  }, Lr = (t) => {
5194
5209
  const e = Ls(t);
5195
5210
  return { lower: e.one.y, upper: e.two.y };
5196
- }, $d = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
5197
- var Rd = Object.defineProperty, jd = (t, e, n) => e in t ? Rd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pe = (t, e, n) => jd(t, typeof e != "symbol" ? e + "" : e, n);
5198
- const Bd = (t, e, n) => e !== void 0 && t < e ? e : n !== void 0 && t > n ? n : t;
5211
+ }, jd = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t;
5212
+ var Bd = Object.defineProperty, Md = (t, e, n) => e in t ? Bd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pe = (t, e, n) => Md(t, typeof e != "symbol" ? e + "" : e, n);
5213
+ const Dd = (t, e, n) => e !== void 0 && t < e ? e : n !== void 0 && t > n ? n : t;
5199
5214
  s.object({ offset: Vi, scale: Vi });
5200
- const Md = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
5215
+ const Pd = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
5201
5216
  e,
5202
5217
  i ? r - t : r + t
5203
- ], Dd = (t) => (e, n, r, i) => [
5218
+ ], Ud = (t) => (e, n, r, i) => [
5204
5219
  e,
5205
5220
  i ? r / t : r * t
5206
- ], Pd = (t) => (e, n, r) => {
5221
+ ], Ld = (t) => (e, n, r) => {
5207
5222
  if (e === null) return [t, r];
5208
5223
  const { lower: i, upper: a } = e, { lower: o, upper: c } = t, u = a - i, h = c - o;
5209
5224
  if (n === "dimension") return [t, r * (h / u)];
5210
5225
  const f = (r - i) * (h / u) + o;
5211
5226
  return [t, f];
5212
- }, Ud = (t) => (e, n, r) => [t, r], Ld = () => (t, e, n) => {
5227
+ }, _d = (t) => (e, n, r) => [t, r], Yd = () => (t, e, n) => {
5213
5228
  if (t === null) throw new Error("cannot invert without bounds");
5214
5229
  if (e === "dimension") return [t, n];
5215
5230
  const { lower: r, upper: i } = t;
5216
5231
  return [t, i - (n - r)];
5217
- }, _d = (t) => (e, n, r) => {
5232
+ }, Fd = (t) => (e, n, r) => {
5218
5233
  const { lower: i, upper: a } = t;
5219
- return r = Bd(r, i, a), [e, r];
5234
+ return r = Dd(r, i, a), [e, r];
5220
5235
  }, ms = class Bt {
5221
5236
  constructor() {
5222
5237
  Pe(this, "ops", []), Pe(this, "currBounds", null), Pe(this, "currType", null), Pe(this, "reversed", !1), this.ops = [];
5223
5238
  }
5239
+ /**
5240
+ * @returns a new scale with a translation as its first operation. Any number provided
5241
+ * to the {@link pos} operation on the scale will be translated by the specified value.
5242
+ * @param value - The amount to translate by.
5243
+ */
5224
5244
  static translate(e) {
5225
5245
  return new Bt().translate(e);
5226
5246
  }
5247
+ /**
5248
+ * @returns a new scale with a magnification as its first operation. Any number provided
5249
+ * to the {@link pos} or {@link dim} operation will be multiplied by the specified value.
5250
+ * @param value - The amount to translate by.
5251
+ */
5227
5252
  static magnify(e) {
5228
5253
  return new Bt().magnify(e);
5229
5254
  }
5230
5255
  static scale(e, n) {
5231
5256
  return new Bt().scale(e, n);
5232
5257
  }
5258
+ /**
5259
+ * @returns a copy of the scale with a translation as its next operation. Any
5260
+ * number provided to the {@link pos} method on the scale will be translated by the
5261
+ * specified value.
5262
+ * @param value - The amount to translate by.
5263
+ */
5233
5264
  translate(e) {
5234
- const n = this.new(), r = Md(e);
5265
+ const n = this.new(), r = Pd(e);
5235
5266
  return r.type = "translate", n.ops.push(r), n;
5236
5267
  }
5268
+ /**
5269
+ * @returns a copy of the scale with a translation as its next operation. Any number
5270
+ * provided to the {@link pos} or {@link dim} method on the scale will be multiplied
5271
+ * by the specified value.
5272
+ * @param value - The amount to magnify by.
5273
+ */
5237
5274
  magnify(e) {
5238
- const n = this.new(), r = Dd(e);
5275
+ const n = this.new(), r = Ud(e);
5239
5276
  return r.type = "magnify", n.ops.push(r), n;
5240
5277
  }
5241
5278
  scale(e, n) {
5242
- const r = de(e, n), i = this.new(), a = Pd(r);
5279
+ const r = de(e, n), i = this.new(), a = Ld(r);
5243
5280
  return a.type = "scale", i.ops.push(a), i;
5244
5281
  }
5245
5282
  clamp(e, n) {
5246
- const r = de(e, n), i = this.new(), a = _d(r);
5283
+ const r = de(e, n), i = this.new(), a = Fd(r);
5247
5284
  return a.type = "clamp", i.ops.push(a), i;
5248
5285
  }
5249
5286
  reBound(e, n) {
5250
- const r = de(e, n), i = this.new(), a = Ud(r);
5287
+ const r = de(e, n), i = this.new(), a = _d(r);
5251
5288
  return a.type = "re-bound", i.ops.push(a), i;
5252
5289
  }
5253
5290
  invert() {
5254
- const e = Ld();
5291
+ const e = Yd();
5255
5292
  e.type = "invert";
5256
5293
  const n = this.new();
5257
5294
  return n.ops.push(e), n;
@@ -5315,7 +5352,7 @@ const Zi = class Me {
5315
5352
  return new Me().reBound(e);
5316
5353
  }
5317
5354
  translate(e, n) {
5318
- const r = Cd(e, n), i = this.copy();
5355
+ const r = Rd(e, n), i = this.copy();
5319
5356
  return i.x = this.x.translate(r.x), i.y = this.y.translate(r.y), i;
5320
5357
  }
5321
5358
  translateX(e) {
@@ -5332,9 +5369,9 @@ const Zi = class Me {
5332
5369
  }
5333
5370
  scale(e) {
5334
5371
  const n = this.copy();
5335
- if ($d(e)) {
5372
+ if (jd(e)) {
5336
5373
  const r = this.currRoot;
5337
- return n.currRoot = e.root, r != null && !xd(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(Ur(e)), n.y = n.y.scale(Lr(e)), n;
5374
+ return n.currRoot = e.root, r != null && !$d(r, e.root) && (r.x !== e.root.x && (n.x = n.x.invert()), r.y !== e.root.y && (n.y = n.y.invert())), n.x = n.x.scale(Ur(e)), n.y = n.y.scale(Lr(e)), n;
5338
5375
  }
5339
5376
  return n.x = n.x.scale(e.width), n.y = n.y.scale(e.height), n;
5340
5377
  }
@@ -5368,8 +5405,8 @@ const Zi = class Me {
5368
5405
  }
5369
5406
  };
5370
5407
  Pe(Zi, "IDENTITY", new Zi());
5371
- const Ji = (t) => [...new Set(t)], Fd = (t) => t != null && typeof t == "object" && "toString" in t, Yd = (t, e = !1) => {
5372
- const n = Fd(t) ? "stringer" : typeof t;
5408
+ const Ji = (t) => [...new Set(t)], qd = (t) => t != null && typeof t == "object" && "toString" in t, zd = (t, e = !1) => {
5409
+ const n = qd(t) ? "stringer" : typeof t;
5373
5410
  let r;
5374
5411
  switch (n) {
5375
5412
  case "string":
@@ -5393,26 +5430,26 @@ const Ji = (t) => [...new Set(t)], Fd = (t) => t != null && typeof t == "object"
5393
5430
  default:
5394
5431
  return console.warn(`sortFunc: unknown type ${n}`), () => -1;
5395
5432
  }
5396
- return e ? qd(r) : r;
5397
- }, qd = (t) => (e, n) => t(n, e), fr = 0, _r = -1, Fr = 1, zd = (t) => t < fr, Vd = (t) => t > fr, Wd = (t) => t === fr, Gd = (t, e) => {
5433
+ return e ? Vd(r) : r;
5434
+ }, Vd = (t) => (e, n) => t(n, e), fr = 0, _r = -1, Yr = 1, Wd = (t) => t < fr, Gd = (t) => t > fr, Zd = (t) => t === fr, Jd = (t, e) => {
5398
5435
  let n = null;
5399
5436
  return e === 0 ? t : (...r) => {
5400
5437
  n !== null && (clearTimeout(n), n = null), n = setTimeout(() => t(...r), e);
5401
5438
  };
5402
- }, Zd = s.object({ signedWidth: s.number(), signedHeight: s.number() });
5403
- s.union([Io, Zd, nr, dr]);
5404
- const Jd = s.bigint().or(s.string().transform(BigInt));
5405
- var Kd = Object.defineProperty, Hd = (t, e, n) => e in t ? Kd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, g = (t, e, n) => Hd(t, typeof e != "symbol" ? e + "" : e, n);
5406
- let Xd = (t, e = 21) => (n = e) => {
5439
+ }, Kd = s.object({ signedWidth: s.number(), signedHeight: s.number() });
5440
+ s.union([Io, Kd, nr, dr]);
5441
+ const Hd = s.bigint().or(s.string().transform(BigInt));
5442
+ var Xd = Object.defineProperty, Qd = (t, e, n) => e in t ? Xd(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, g = (t, e, n) => Qd(t, typeof e != "symbol" ? e + "" : e, n);
5443
+ let ef = (t, e = 21) => (n = e) => {
5407
5444
  let r = "", i = n;
5408
5445
  for (; i--; )
5409
5446
  r += t[Math.random() * t.length | 0];
5410
5447
  return r;
5411
5448
  };
5412
- const Qd = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ro = Xd(Qd, 11), ef = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5449
+ const tf = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ro = ef(tf, 11), nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5413
5450
  __proto__: null,
5414
5451
  id: Ro
5415
- }, Symbol.toStringTag, { value: "Module" })), tf = s.enum(["static", "dynamic"]), jo = (t, e) => {
5452
+ }, Symbol.toStringTag, { value: "Module" })), rf = s.enum(["static", "dynamic"]), jo = (t, e) => {
5416
5453
  const n = new C(e);
5417
5454
  if (![
5418
5455
  R.DAY,
@@ -6398,16 +6435,16 @@ s.union([
6398
6435
  const Bo = (t) => {
6399
6436
  const e = typeof t;
6400
6437
  return e === "string" || e === "number" || e === "boolean" || e === "bigint" || t instanceof C || t instanceof R || t instanceof Date;
6401
- }, nf = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : Pt(n, -r).valueOf(), rf = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ke ? !0 : Bo(t), Fe = -1, ws = {
6438
+ }, sf = (t, e, n, r = 0) => t.usesBigInt && !e.usesBigInt ? Number(n) - Number(r) : !t.usesBigInt && e.usesBigInt ? BigInt(n.valueOf()) - BigInt(r.valueOf()) : Pt(n, -r).valueOf(), af = (t) => t == null ? !1 : Array.isArray(t) || t instanceof ArrayBuffer || ArrayBuffer.isView(t) && !(t instanceof DataView) || t instanceof Ke ? !0 : Bo(t), Ye = -1, ws = {
6402
6439
  [Symbol.iterator]: () => ws,
6403
6440
  next: () => ({ done: !0, value: void 0 })
6404
- }, sf = s.string().transform(
6441
+ }, of = s.string().transform(
6405
6442
  (t) => new Uint8Array(
6406
6443
  atob(t).split("").map((e) => e.charCodeAt(0))
6407
6444
  ).buffer
6408
- ), af = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), bs = 10, Dt = class $e {
6445
+ ), lf = s.union([s.null(), s.undefined()]).transform(() => new Uint8Array().buffer), bs = 10, Dt = class $e {
6409
6446
  constructor(e) {
6410
- g(this, "key", ""), g(this, "isSynnaxSeries", !0), g(this, "dataType"), g(this, "sampleOffset"), g(this, "gl"), g(this, "_data"), g(this, "_timeRange"), g(this, "alignment", 0n), g(this, "_cachedMin"), g(this, "_cachedMax"), g(this, "writePos", Fe), g(this, "_refCount", 0), g(this, "_cachedLength"), g(this, "_cachedIndexes"), rf(e) && (e = { data: e });
6447
+ g(this, "key", ""), g(this, "isSynnaxSeries", !0), g(this, "dataType"), g(this, "sampleOffset"), g(this, "gl"), g(this, "_data"), g(this, "_timeRange"), g(this, "alignment", 0n), g(this, "_cachedMin"), g(this, "_cachedMax"), g(this, "writePos", Ye), g(this, "_refCount", 0), g(this, "_cachedLength"), g(this, "_cachedIndexes"), af(e) && (e = { data: e });
6411
6448
  const {
6412
6449
  dataType: n,
6413
6450
  timeRange: r,
@@ -6525,12 +6562,12 @@ const Bo = (t) => {
6525
6562
  return this.dataType.isVariable ? this.writeVariable(e) : this.writeFixed(e);
6526
6563
  }
6527
6564
  writeVariable(e) {
6528
- if (this.writePos === Fe) return 0;
6565
+ if (this.writePos === Ye) return 0;
6529
6566
  const n = this.byteCapacity.valueOf() - this.writePos, r = e.subBytes(0, n);
6530
6567
  return this.writeToUnderlyingData(r), this.writePos += r.byteLength.valueOf(), this._cachedLength != null && (this._cachedLength += r.length, this.calculateCachedLength()), r.length;
6531
6568
  }
6532
6569
  writeFixed(e) {
6533
- if (this.writePos === Fe) return 0;
6570
+ if (this.writePos === Ye) return 0;
6534
6571
  const n = this.capacity - this.writePos, r = e.sub(0, n);
6535
6572
  return this.writeToUnderlyingData(r), this._cachedLength = void 0, this.maybeRecomputeMinMax(r), this.writePos += r.length, r.length;
6536
6573
  }
@@ -6549,7 +6586,7 @@ const Bo = (t) => {
6549
6586
  }
6550
6587
  /** @returns a native typed array with the proper data type. */
6551
6588
  get data() {
6552
- return this.writePos === Fe ? this.underlyingData : new this.dataType.Array(this._data, 0, this.writePos);
6589
+ return this.writePos === Ye ? this.underlyingData : new this.dataType.Array(this._data, 0, this.writePos);
6553
6590
  }
6554
6591
  toStrings() {
6555
6592
  if (!this.dataType.matches(x.STRING, x.UUID))
@@ -6588,11 +6625,11 @@ const Bo = (t) => {
6588
6625
  }
6589
6626
  /** @returns the length of the series in bytes. */
6590
6627
  get byteLength() {
6591
- return this.writePos === Fe ? this.byteCapacity : this.dataType.isVariable ? new lt(this.writePos) : this.dataType.density.size(this.writePos);
6628
+ return this.writePos === Ye ? this.byteCapacity : this.dataType.isVariable ? new lt(this.writePos) : this.dataType.density.size(this.writePos);
6592
6629
  }
6593
6630
  /** @returns the number of samples in this array. */
6594
6631
  get length() {
6595
- return this._cachedLength != null ? this._cachedLength : this.dataType.isVariable ? this.calculateCachedLength() : this.writePos === Fe ? this.data.length : this.writePos;
6632
+ return this._cachedLength != null ? this._cachedLength : this.dataType.isVariable ? this.calculateCachedLength() : this.writePos === Ye ? this.data.length : this.writePos;
6596
6633
  }
6597
6634
  calculateCachedLength() {
6598
6635
  if (!this.dataType.isVariable)
@@ -6616,7 +6653,7 @@ const Bo = (t) => {
6616
6653
  if (this.dataType.equals(e)) return this;
6617
6654
  const r = new e.Array(this.length);
6618
6655
  for (let i = 0; i < this.length; i++)
6619
- r[i] = nf(this.dataType, e, this.data[i], n);
6656
+ r[i] = sf(this.dataType, e, this.data[i], n);
6620
6657
  return new $e({
6621
6658
  data: r.buffer,
6622
6659
  dataType: e,
@@ -6733,7 +6770,7 @@ const Bo = (t) => {
6733
6770
  */
6734
6771
  binarySearch(e) {
6735
6772
  let n = 0, r = this.length - 1;
6736
- const i = Yd(e);
6773
+ const i = zd(e);
6737
6774
  for (; n <= r; ) {
6738
6775
  const a = Math.floor((n + r) / 2), o = i(this.at(a, !0), e);
6739
6776
  if (o === 0) return a;
@@ -6746,7 +6783,7 @@ const Bo = (t) => {
6746
6783
  throw new Error("Only FLOAT32 arrays can be used in WebGL");
6747
6784
  const { buffer: n, bufferUsage: r, prevBuffer: i } = this.gl;
6748
6785
  if (n == null && (this.gl.buffer = e.createBuffer()), this.writePos !== i)
6749
- if (e.bindBuffer(e.ARRAY_BUFFER, this.gl.buffer), this.writePos !== Fe) {
6786
+ if (e.bindBuffer(e.ARRAY_BUFFER, this.gl.buffer), this.writePos !== Ye) {
6750
6787
  i === 0 && e.bufferData(e.ARRAY_BUFFER, this.byteCapacity.valueOf(), e.STATIC_DRAW);
6751
6788
  const a = this.dataType.density.size(i).valueOf(), o = this.underlyingData.slice(this.gl.prevBuffer, this.writePos);
6752
6789
  e.bufferSubData(e.ARRAY_BUFFER, a, o.buffer), this.gl.prevBuffer = this.writePos;
@@ -6755,7 +6792,7 @@ const Bo = (t) => {
6755
6792
  e.ARRAY_BUFFER,
6756
6793
  this.underlyingData,
6757
6794
  r === "static" ? e.STATIC_DRAW : e.DYNAMIC_DRAW
6758
- ), this.gl.prevBuffer = Fe;
6795
+ ), this.gl.prevBuffer = Ye;
6759
6796
  }
6760
6797
  as(e) {
6761
6798
  if (e === "string") {
@@ -6813,10 +6850,10 @@ const Bo = (t) => {
6813
6850
  }
6814
6851
  [Symbol.iterator]() {
6815
6852
  if (this.dataType.isVariable) {
6816
- const e = new of(this);
6817
- return this.dataType.equals(x.JSON) ? new lf(e) : e;
6853
+ const e = new cf(this);
6854
+ return this.dataType.equals(x.JSON) ? new uf(e) : e;
6818
6855
  }
6819
- return new cf(this);
6856
+ return new hf(this);
6820
6857
  }
6821
6858
  slice(e, n) {
6822
6859
  return this.sliceSub(!1, e, n);
@@ -6872,9 +6909,9 @@ const Bo = (t) => {
6872
6909
  g(Dt, "crudeZ", s.object({
6873
6910
  timeRange: le.z.optional(),
6874
6911
  dataType: x.z,
6875
- alignment: Jd.optional(),
6876
- data: s.union([sf, af, s.instanceof(ArrayBuffer)]),
6877
- glBufferUsage: tf.optional().default("static").optional()
6912
+ alignment: Hd.optional(),
6913
+ data: s.union([of, lf, s.instanceof(ArrayBuffer)]),
6914
+ glBufferUsage: rf.optional().default("static").optional()
6878
6915
  })), g(Dt, "z", Dt.crudeZ.transform((t) => new Dt(t)));
6879
6916
  let Ke = Dt, Ki = class {
6880
6917
  constructor(t, e, n) {
@@ -6889,7 +6926,7 @@ let Ke = Dt, Ki = class {
6889
6926
  return this;
6890
6927
  }
6891
6928
  };
6892
- class of {
6929
+ class cf {
6893
6930
  constructor(e) {
6894
6931
  if (g(this, "series"), g(this, "index"), g(this, "decoder"), !e.dataType.isVariable)
6895
6932
  throw new Error(
@@ -6908,7 +6945,7 @@ class of {
6908
6945
  }
6909
6946
  }
6910
6947
  var Hi, Xi;
6911
- class lf {
6948
+ class uf {
6912
6949
  constructor(e) {
6913
6950
  g(this, "wrapped"), g(this, Hi, "JSONSeriesIterator"), this.wrapped = e;
6914
6951
  }
@@ -6924,7 +6961,7 @@ class lf {
6924
6961
  }
6925
6962
  }
6926
6963
  var Qi, ea;
6927
- class cf {
6964
+ class hf {
6928
6965
  constructor(e) {
6929
6966
  g(this, "series"), g(this, "index"), g(this, Qi, "SeriesIterator"), this.series = e, this.index = 0;
6930
6967
  }
@@ -6939,7 +6976,7 @@ class cf {
6939
6976
  }
6940
6977
  }
6941
6978
  const Pt = (t, e) => typeof t == "bigint" && typeof e == "bigint" || typeof t == "number" && typeof e == "number" ? t + e : e === 0 ? t : t === 0 ? e : Number(t) + Number(e);
6942
- class uf {
6979
+ class df {
6943
6980
  constructor(e) {
6944
6981
  if (g(this, "series"), e.length !== 0) {
6945
6982
  const n = e[0].dataType;
@@ -6999,7 +7036,7 @@ class uf {
6999
7036
  if (n) throw new Error(`[series] - no value at index ${e}`);
7000
7037
  }
7001
7038
  subIterator(e, n) {
7002
- return new Yr(this, e, n ?? this.length);
7039
+ return new Fr(this, e, n ?? this.length);
7003
7040
  }
7004
7041
  subAlignmentIterator(e, n) {
7005
7042
  if (e >= this.alignmentBounds.upper || n <= this.alignmentBounds.lower)
@@ -7024,7 +7061,7 @@ class uf {
7024
7061
  break;
7025
7062
  }
7026
7063
  }
7027
- return new Yr(this, r, i);
7064
+ return new Fr(this, r, i);
7028
7065
  }
7029
7066
  subAlignmentSpanIterator(e, n) {
7030
7067
  if (e >= this.alignmentBounds.upper) return ws;
@@ -7038,7 +7075,7 @@ class uf {
7038
7075
  break;
7039
7076
  }
7040
7077
  }
7041
- return new Yr(this, r, r + n);
7078
+ return new Fr(this, r, r + n);
7042
7079
  }
7043
7080
  get byteLength() {
7044
7081
  return new lt(this.series.reduce((e, n) => e + n.byteLength.valueOf(), 0));
@@ -7052,22 +7089,22 @@ class uf {
7052
7089
  }
7053
7090
  traverseAlignment(e, n) {
7054
7091
  const r = this.series.map((i) => i.alignmentBounds);
7055
- return Id(r, e, n);
7092
+ return kd(r, e, n);
7056
7093
  }
7057
7094
  distance(e, n) {
7058
7095
  const r = this.series.map((i) => i.alignmentBounds);
7059
- return Ed(r, e, n);
7096
+ return Ad(r, e, n);
7060
7097
  }
7061
7098
  [Symbol.iterator]() {
7062
7099
  return this.series.length === 0 ? {
7063
7100
  next() {
7064
7101
  return { done: !0, value: void 0 };
7065
7102
  }
7066
- } : new hf(this.series);
7103
+ } : new ff(this.series);
7067
7104
  }
7068
7105
  }
7069
7106
  var ta, na;
7070
- class hf {
7107
+ class ff {
7071
7108
  constructor(e) {
7072
7109
  g(this, "series"), g(this, "seriesIndex"), g(this, "internal"), g(this, ta, "MultiSeriesIterator"), this.series = e, this.seriesIndex = 0, this.internal = e[0][Symbol.iterator]();
7073
7110
  }
@@ -7079,7 +7116,7 @@ class hf {
7079
7116
  return this;
7080
7117
  }
7081
7118
  }
7082
- class Yr {
7119
+ class Fr {
7083
7120
  constructor(e, n, r) {
7084
7121
  g(this, "series"), g(this, "index"), g(this, "end"), this.series = e, this.end = r, this.index = n;
7085
7122
  }
@@ -7094,8 +7131,8 @@ s.object({
7094
7131
  key: s.string(),
7095
7132
  value: s.string()
7096
7133
  });
7097
- var df = Object.defineProperty, ff = (t, e, n) => e in t ? df(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Dn = (t, e, n) => ff(t, typeof e != "symbol" ? e + "" : e, n);
7098
- let yf = class {
7134
+ var yf = Object.defineProperty, gf = (t, e, n) => e in t ? yf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Dn = (t, e, n) => gf(t, typeof e != "symbol" ? e + "" : e, n);
7135
+ let pf = class {
7099
7136
  constructor(t, e) {
7100
7137
  Dn(this, "handlers"), Dn(this, "transform"), Dn(this, "closer"), this.transform = t, this.handlers = e ?? /* @__PURE__ */ new Map();
7101
7138
  }
@@ -7120,7 +7157,7 @@ let yf = class {
7120
7157
  var t;
7121
7158
  return await ((t = this.closer) == null ? void 0 : t.call(this));
7122
7159
  }
7123
- }, gf = class {
7160
+ }, mf = class {
7124
7161
  constructor(t) {
7125
7162
  Dn(this, "handlers"), this.handlers = t ?? /* @__PURE__ */ new Map();
7126
7163
  }
@@ -7133,17 +7170,17 @@ let yf = class {
7133
7170
  };
7134
7171
  const et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7135
7172
  __proto__: null,
7136
- BaseObserver: gf,
7137
- Observer: yf
7173
+ BaseObserver: mf,
7174
+ Observer: pf
7138
7175
  }, Symbol.toStringTag, { value: "Module" })), yr = s.record(
7139
7176
  s.union([s.number(), s.string(), s.symbol()]),
7140
7177
  s.unknown()
7141
- ), pf = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser";
7142
- pf();
7143
- const mf = ["MacOS", "Windows", "Linux", "Docker"];
7144
- s.enum(mf);
7145
- var wf = Object.defineProperty, bf = (t, e, n) => e in t ? wf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ut = (t, e, n) => bf(t, typeof e != "symbol" ? e + "" : e, n);
7146
- const vf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Of = (t) => t.endsWith("/") ? t.slice(0, -1) : t, vs = class Os {
7178
+ ), wf = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser";
7179
+ wf();
7180
+ const bf = ["MacOS", "Windows", "Linux", "Docker"];
7181
+ s.enum(bf);
7182
+ var vf = Object.defineProperty, Of = (t, e, n) => e in t ? vf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ut = (t, e, n) => Of(t, typeof e != "symbol" ? e + "" : e, n);
7183
+ const Tf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "/"), t.startsWith("/") && (t = t.slice(1)), t), Sf = (t) => t.endsWith("/") ? t.slice(0, -1) : t, vs = class Os {
7147
7184
  /**
7148
7185
  * @param host - The hostname or IP address of the server.
7149
7186
  * @param port - The port number of the server.
@@ -7174,19 +7211,19 @@ const vf = (...t) => t.map(Mo).join(""), Mo = (t) => (t.endsWith("/") || (t += "
7174
7211
  child(e) {
7175
7212
  return new Os({
7176
7213
  ...this,
7177
- pathPrefix: vf(this.path, e)
7214
+ pathPrefix: Tf(this.path, e)
7178
7215
  });
7179
7216
  }
7180
7217
  /** @returns a string representation of the url */
7181
7218
  toString() {
7182
- return Of(
7219
+ return Sf(
7183
7220
  `${this.protocol}://${this.host}:${this.port}/${this.path}`
7184
7221
  );
7185
7222
  }
7186
7223
  };
7187
7224
  Ut(vs, "UNKNOWN", new vs({ host: "unknown", port: 0 }));
7188
- let Tf = vs;
7189
- var Sf = Object.defineProperty, Nf = (t, e, n) => e in t ? Sf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pn = (t, e, n) => Nf(t, typeof e != "symbol" ? e + "" : e, n);
7225
+ let Nf = vs;
7226
+ var If = Object.defineProperty, Ef = (t, e, n) => e in t ? If(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pn = (t, e, n) => Ef(t, typeof e != "symbol" ? e + "" : e, n);
7190
7227
  const Je = class extends Number {
7191
7228
  };
7192
7229
  Pn(Je, "Absolute", 255), Pn(Je, "Default", 1), Pn(Je, "z", s.union([
@@ -7198,18 +7235,18 @@ let Do = Je;
7198
7235
  const Po = s.object({
7199
7236
  name: s.string(),
7200
7237
  key: s.string()
7201
- }), If = (t) => s.object({
7238
+ }), kf = (t) => s.object({
7202
7239
  subject: Po,
7203
7240
  resource: t,
7204
7241
  authority: Do.z
7205
- }), Ef = (...t) => (e) => e.filter((n) => {
7242
+ }), Af = (...t) => (e) => e.filter((n) => {
7206
7243
  let r = !1;
7207
7244
  return n.to != null && (r = t.includes(n.to.resource)), n.from != null && !r && (r = t.includes(n.from.resource)), r;
7208
7245
  }), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7209
7246
  __proto__: null,
7210
7247
  Authority: Do,
7211
- filterTransfersByChannelKey: Ef,
7212
- stateZ: If,
7248
+ filterTransfersByChannelKey: Af,
7249
+ stateZ: kf,
7213
7250
  subjectZ: Po
7214
7251
  }, Symbol.toStringTag, { value: "Module" })), Uo = class Lt extends Error {
7215
7252
  constructor() {
@@ -7221,25 +7258,25 @@ const Po = s.object({
7221
7258
  }
7222
7259
  };
7223
7260
  Pn(Uo, "MESSAGE", "canceled");
7224
- let kf = Uo;
7225
- new kf();
7261
+ let xf = Uo;
7262
+ new xf();
7226
7263
  const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
7227
7264
  n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
7228
7265
  const r = Ts.parse(t), i = Ts.parse(e), [a, o, c] = r.split(".").map(Number), [u, h, f] = i.split(".").map(Number);
7229
7266
  if (n.checkMajor) {
7230
7267
  if (a < u) return _r;
7231
- if (a > u) return Fr;
7268
+ if (a > u) return Yr;
7232
7269
  }
7233
7270
  if (n.checkMinor) {
7234
7271
  if (o < h) return _r;
7235
- if (o > h) return Fr;
7272
+ if (o > h) return Yr;
7236
7273
  }
7237
7274
  if (n.checkPatch) {
7238
7275
  if (c < f) return _r;
7239
- if (c > f) return Fr;
7276
+ if (c > f) return Yr;
7240
7277
  }
7241
7278
  return fr;
7242
- }, Af = (t, e, n = {}) => Wd(an(t, e, n)), Lo = (t, e, n = {}) => Vd(an(t, e, n)), xf = (t, e, n = {}) => zd(an(t, e, n)), Cf = ({
7279
+ }, Cf = (t, e, n = {}) => Zd(an(t, e, n)), Lo = (t, e, n = {}) => Gd(an(t, e, n)), $f = (t, e, n = {}) => Wd(an(t, e, n)), Rf = ({
7243
7280
  name: t,
7244
7281
  migrate: e
7245
7282
  }) => (n) => {
@@ -7249,7 +7286,7 @@ const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
7249
7286
  } catch (r) {
7250
7287
  throw console.log(`${t} failed to migrate from ${n.version}`), console.error(r), r;
7251
7288
  }
7252
- }, $f = ({
7289
+ }, jf = ({
7253
7290
  name: t,
7254
7291
  migrations: e,
7255
7292
  targetSchema: n,
@@ -7304,12 +7341,12 @@ const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
7304
7341
  }, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7305
7342
  __proto__: null,
7306
7343
  compareSemVer: an,
7307
- createMigration: Cf,
7308
- migrator: $f,
7344
+ createMigration: Rf,
7345
+ migrator: jf,
7309
7346
  semVerNewer: Lo,
7310
- semVerOlder: xf,
7347
+ semVerOlder: $f,
7311
7348
  semVerZ: Ts,
7312
- versionsEqual: Af
7349
+ versionsEqual: Cf
7313
7350
  }, Symbol.toStringTag, { value: "Module" })), ze = "sy.", Un = class _o extends Te {
7314
7351
  constructor() {
7315
7352
  super(...arguments), l(this, "type", _o.TYPE);
@@ -7317,28 +7354,28 @@ const Ts = s.string().regex(/^\d+\.\d+\.\d+$/), an = (t, e, n = {}) => {
7317
7354
  };
7318
7355
  l(Un, "TYPE", ze + "validation"), l(Un, "matches", fe(Un.TYPE));
7319
7356
  let Q = Un;
7320
- const Ln = class Fo extends Q {
7357
+ const Ln = class Yo extends Q {
7321
7358
  constructor(e, n) {
7322
- super(e + ": " + n), l(this, "type", Fo.TYPE), l(this, "field"), l(this, "message"), this.field = e, this.message = n;
7359
+ super(e + ": " + n), l(this, "type", Yo.TYPE), l(this, "field"), l(this, "message"), this.field = e, this.message = n;
7323
7360
  }
7324
7361
  };
7325
7362
  l(Ln, "TYPE", Q.TYPE + ".field"), l(Ln, "matches", fe(Ln.TYPE));
7326
7363
  let sa = Ln;
7327
- const _n = class Yo extends Te {
7364
+ const _n = class Fo extends Te {
7328
7365
  constructor() {
7329
- super(...arguments), l(this, "type", Yo.TYPE);
7366
+ super(...arguments), l(this, "type", Fo.TYPE);
7330
7367
  }
7331
7368
  };
7332
7369
  l(_n, "TYPE", ze + "auth"), l(_n, "matches", fe(_n.TYPE));
7333
7370
  let rr = _n;
7334
- const Fn = class qo extends rr {
7371
+ const Yn = class qo extends rr {
7335
7372
  constructor() {
7336
7373
  super(...arguments), l(this, "type", qo.TYPE);
7337
7374
  }
7338
7375
  };
7339
- l(Fn, "TYPE", rr.TYPE + ".invalid-token"), l(Fn, "matches", fe(Fn.TYPE));
7340
- let Ss = Fn;
7341
- const Yn = class zo extends Te {
7376
+ l(Yn, "TYPE", rr.TYPE + ".invalid-token"), l(Yn, "matches", fe(Yn.TYPE));
7377
+ let Ss = Yn;
7378
+ const Fn = class zo extends Te {
7342
7379
  constructor(e) {
7343
7380
  super(`
7344
7381
  Unexpected error encountered:
@@ -7349,8 +7386,8 @@ const Yn = class zo extends Te {
7349
7386
  `), l(this, "type", zo.TYPE);
7350
7387
  }
7351
7388
  };
7352
- l(Yn, "TYPE", ze + "unexpected"), l(Yn, "matches", fe(Yn.TYPE));
7353
- let Oe = Yn;
7389
+ l(Fn, "TYPE", ze + "unexpected"), l(Fn, "matches", fe(Fn.TYPE));
7390
+ let Oe = Fn;
7354
7391
  const qn = class Vo extends Te {
7355
7392
  constructor() {
7356
7393
  super(...arguments), l(this, "type", Vo.TYPE);
@@ -7399,7 +7436,7 @@ const qr = class Ho extends Te {
7399
7436
  }
7400
7437
  };
7401
7438
  l(qr, "TYPE", ze + "contiguity"), l(qr, "matches", fe(qr.TYPE));
7402
- const Rf = (t) => {
7439
+ const Bf = (t) => {
7403
7440
  if (!t.type.startsWith(ze)) return null;
7404
7441
  if (t.type.startsWith(Q.TYPE)) {
7405
7442
  if (t.type === sa.TYPE) {
@@ -7409,11 +7446,11 @@ const Rf = (t) => {
7409
7446
  return new Q(t.data);
7410
7447
  }
7411
7448
  return t.type.startsWith(rr.TYPE) ? t.type.startsWith(Ss.TYPE) ? new Ss(t.data) : new rr(t.data) : t.type.startsWith(Oe.TYPE) ? new Oe(t.data) : t.type.startsWith(je.TYPE) ? t.type.startsWith(ut.TYPE) ? new ut(t.data) : t.type.startsWith(ht.TYPE) ? new ht(t.data) : new je(t.data) : t.type.startsWith(sr.TYPE) ? t.type.startsWith(aa.TYPE) ? new aa(t.data) : new sr(t.data) : t.type.startsWith(ia.TYPE) ? new ia(t.data, t.data) : new Oe(t.data);
7412
- }, jf = () => {
7449
+ }, Mf = () => {
7413
7450
  throw new Error("Not implemented");
7414
7451
  };
7415
- ho({ encode: jf, decode: Rf });
7416
- const Bf = async (t, e) => {
7452
+ ho({ encode: Mf, decode: Bf });
7453
+ const Df = async (t, e) => {
7417
7454
  const [n, r] = await e(t);
7418
7455
  return r == null ? [n, r] : r instanceof Qe ? [
7419
7456
  n,
@@ -7434,8 +7471,8 @@ class Xo {
7434
7471
  });
7435
7472
  }
7436
7473
  }
7437
- const Mf = s.string().uuid(), Qo = s.object({
7438
- key: Mf,
7474
+ const Pf = s.string().uuid(), Qo = s.object({
7475
+ key: Pf,
7439
7476
  name: s.string()
7440
7477
  }), gr = s.union([
7441
7478
  s.literal("label"),
@@ -7457,10 +7494,10 @@ const Mf = s.string().uuid(), Qo = s.object({
7457
7494
  s.literal("device"),
7458
7495
  s.literal("task"),
7459
7496
  s.literal("policy")
7460
- ]), pe = s.object({ type: gr, key: s.string() }), Df = s.string().transform((t) => {
7497
+ ]), pe = s.object({ type: gr, key: s.string() }), Uf = s.string().transform((t) => {
7461
7498
  const [e, n] = t.split(":");
7462
7499
  return { type: gr.parse(e), key: n ?? "" };
7463
- }), _t = s.union([Df, pe]), Jn = class el {
7500
+ }), _t = s.union([Uf, pe]), Jn = class el {
7464
7501
  constructor(e) {
7465
7502
  if (l(this, "type"), l(this, "key"), e instanceof el) {
7466
7503
  this.type = e.type, this.key = e.key;
@@ -7489,66 +7526,66 @@ const Mf = s.string().uuid(), Qo = s.object({
7489
7526
  l(Jn, "z", s.union([s.instanceof(Jn), _t.transform((t) => new Jn(t))]));
7490
7527
  let $ = Jn;
7491
7528
  new $({ type: "builtin", key: "root" });
7492
- const Pf = s.object({ type: s.number() }), Uf = s.object({
7529
+ const Lf = s.object({ type: s.number() }), _f = s.object({
7493
7530
  type: gr,
7494
- fields: s.record(Pf)
7495
- }), Lf = s.object({
7531
+ fields: s.record(Lf)
7532
+ }), Yf = s.object({
7496
7533
  id: $.z,
7497
7534
  name: s.string(),
7498
- schema: Uf.optional().nullable(),
7535
+ schema: _f.optional().nullable(),
7499
7536
  data: s.record(s.unknown()).optional().nullable()
7500
7537
  }).transform((t) => ({ key: t.id.toString(), ...t }));
7501
7538
  s.object({ from: $.z, type: s.string(), to: $.z });
7502
7539
  const oa = (t) => {
7503
7540
  const [e, n, r] = t.split("->");
7504
7541
  return { from: new $(e), type: n, to: new $(r) };
7505
- }, _f = s.object({
7542
+ }, Ff = s.object({
7506
7543
  group: Qo
7507
- }), Ff = s.object({
7544
+ }), qf = s.object({
7508
7545
  parent: pe,
7509
7546
  key: s.string().uuid().optional(),
7510
7547
  name: s.string()
7511
- }), Yf = s.object({
7548
+ }), zf = s.object({
7512
7549
  key: s.string(),
7513
7550
  name: s.string()
7514
- }), qf = s.object({
7551
+ }), Vf = s.object({
7515
7552
  keys: s.array(s.string())
7516
7553
  });
7517
- var Ye;
7518
- let zf = (Ye = class {
7554
+ var Fe;
7555
+ let Wf = (Fe = class {
7519
7556
  constructor(t) {
7520
7557
  l(this, "client"), this.client = t;
7521
7558
  }
7522
7559
  async create(t, e, n) {
7523
7560
  return (await v(
7524
7561
  this.client,
7525
- Ye.ENDPOINT,
7562
+ Fe.ENDPOINT,
7526
7563
  { parent: t, name: e, key: n },
7527
- Ff,
7528
- _f
7564
+ qf,
7565
+ Ff
7529
7566
  )).group;
7530
7567
  }
7531
7568
  async rename(t, e) {
7532
7569
  await v(
7533
7570
  this.client,
7534
- Ye.ENDPOINT_RENAME,
7571
+ Fe.ENDPOINT_RENAME,
7535
7572
  { key: t, name: e },
7536
- Yf,
7573
+ zf,
7537
7574
  s.object({})
7538
7575
  );
7539
7576
  }
7540
7577
  async delete(t) {
7541
7578
  await v(
7542
7579
  this.client,
7543
- Ye.ENDPOINT_DELETE,
7580
+ Fe.ENDPOINT_DELETE,
7544
7581
  { keys: t },
7545
- qf,
7582
+ Vf,
7546
7583
  s.object({})
7547
7584
  );
7548
7585
  }
7549
- }, l(Ye, "ENDPOINT", "/ontology/create-group"), l(Ye, "ENDPOINT_RENAME", "/ontology/rename-group"), l(Ye, "ENDPOINT_DELETE", "/ontology/delete-group"), Ye), Vf = class {
7586
+ }, l(Fe, "ENDPOINT", "/ontology/create-group"), l(Fe, "ENDPOINT_RENAME", "/ontology/rename-group"), l(Fe, "ENDPOINT_DELETE", "/ontology/delete-group"), Fe), Gf = class {
7550
7587
  constructor(t) {
7551
- l(this, "creator"), this.creator = new zf(t);
7588
+ l(this, "creator"), this.creator = new Wf(t);
7552
7589
  }
7553
7590
  async create(t, e, n) {
7554
7591
  return this.sugar(await this.creator.create(t, e, n));
@@ -7570,12 +7607,12 @@ const zr = {
7570
7607
  }, la = s.object({
7571
7608
  id: pe,
7572
7609
  children: pe.array()
7573
- }), Wf = s.object({
7610
+ }), Zf = s.object({
7574
7611
  from: pe,
7575
7612
  to: pe,
7576
7613
  children: pe.array()
7577
7614
  });
7578
- let Gf = class {
7615
+ let Jf = class {
7579
7616
  constructor(t) {
7580
7617
  l(this, "client"), this.client = t;
7581
7618
  }
@@ -7607,12 +7644,12 @@ let Gf = class {
7607
7644
  this.client,
7608
7645
  zr.MOVE_CHILDREN,
7609
7646
  r,
7610
- Wf,
7647
+ Zf,
7611
7648
  s.object({})
7612
7649
  );
7613
7650
  }
7614
7651
  };
7615
- const Zf = "/ontology/retrieve", Jf = s.object({
7652
+ const Kf = "/ontology/retrieve", Hf = s.object({
7616
7653
  ids: pe.array().optional(),
7617
7654
  children: s.boolean().optional(),
7618
7655
  parents: s.boolean().optional(),
@@ -7622,12 +7659,12 @@ const Zf = "/ontology/retrieve", Jf = s.object({
7622
7659
  limit: s.number().optional(),
7623
7660
  offset: s.number().optional(),
7624
7661
  types: gr.array().optional()
7625
- }), Kf = s.object({
7626
- resources: Lf.array()
7662
+ }), Xf = s.object({
7663
+ resources: Yf.array()
7627
7664
  }), Vr = (t) => O(t).map((e) => new $(e).payload);
7628
- let Hf = class {
7665
+ let Qf = class {
7629
7666
  constructor(t, e) {
7630
- l(this, "type", "ontology"), l(this, "groups"), l(this, "client"), l(this, "writer"), l(this, "framer"), this.client = t, this.writer = new Gf(t), this.groups = new Vf(t), this.framer = e;
7667
+ l(this, "type", "ontology"), l(this, "groups"), l(this, "client"), l(this, "writer"), l(this, "framer"), this.client = t, this.writer = new Jf(t), this.groups = new Gf(t), this.framer = e;
7631
7668
  }
7632
7669
  /**
7633
7670
  * Executes a fuzzy search on the ontology for resources with names/fields similar to the
@@ -7738,10 +7775,10 @@ let Hf = class {
7738
7775
  async execRetrieve(t) {
7739
7776
  const { resources: e } = await v(
7740
7777
  this.client,
7741
- Zf,
7778
+ Kf,
7742
7779
  t,
7743
- Jf,
7744
- Kf
7780
+ Hf,
7781
+ Xf
7745
7782
  );
7746
7783
  return e;
7747
7784
  }
@@ -7851,70 +7888,70 @@ class _s extends et.Observer {
7851
7888
  await this.internal.close();
7852
7889
  }
7853
7890
  }
7854
- const we = (t) => s.union([s.null().transform(() => []), t.array()]), mr = s.string().uuid(), Xf = s.object({
7891
+ const we = (t) => s.union([s.null().transform(() => []), t.array()]), mr = s.string().uuid(), ey = s.object({
7855
7892
  key: mr.optional(),
7856
7893
  subjects: _t.array().or(_t),
7857
7894
  objects: _t.array().or(_t),
7858
7895
  actions: gs.array().or(gs)
7859
- }), Fs = s.object({
7896
+ }), Ys = s.object({
7860
7897
  key: mr,
7861
7898
  subjects: we(pe),
7862
7899
  objects: we(pe),
7863
7900
  actions: we(gs)
7864
- }), Qf = "allow_all";
7901
+ }), ty = "allow_all";
7865
7902
  new $({
7866
- type: Qf,
7903
+ type: ty,
7867
7904
  key: ""
7868
7905
  });
7869
- const ey = s.object({
7906
+ const ny = s.object({
7870
7907
  keys: mr.array().optional(),
7871
7908
  subjects: pe.array().optional()
7872
- }), ty = s.object({ policies: we(Fs) }), ny = "/access/policy/retrieve";
7873
- let ry = class {
7909
+ }), ry = s.object({ policies: we(Ys) }), sy = "/access/policy/retrieve";
7910
+ let iy = class {
7874
7911
  constructor(t) {
7875
7912
  l(this, "client"), this.client = t;
7876
7913
  }
7877
7914
  async retrieve(t) {
7878
7915
  return (await v(
7879
7916
  this.client,
7880
- ny,
7917
+ sy,
7881
7918
  t,
7882
- ey,
7883
- ty
7919
+ ny,
7920
+ ry
7884
7921
  )).policies;
7885
7922
  }
7886
7923
  };
7887
- const sy = s.object({ policies: Fs.partial({ key: !0 }).array() }), iy = s.object({ policies: Fs.array() }), ay = s.object({ keys: mr.array() }), oy = s.object({}), ly = "/access/policy/create", cy = "/access/policy/delete";
7888
- let uy = class {
7924
+ const ay = s.object({ policies: Ys.partial({ key: !0 }).array() }), oy = s.object({ policies: Ys.array() }), ly = s.object({ keys: mr.array() }), cy = s.object({}), uy = "/access/policy/create", hy = "/access/policy/delete";
7925
+ let dy = class {
7889
7926
  constructor(t) {
7890
7927
  l(this, "client"), this.client = t;
7891
7928
  }
7892
7929
  async create(t) {
7893
- const e = Xf.array().parse(O(t)).map((n) => ({
7930
+ const e = ey.array().parse(O(t)).map((n) => ({
7894
7931
  objects: O(n.objects),
7895
7932
  actions: O(n.actions),
7896
7933
  subjects: O(n.subjects)
7897
7934
  }));
7898
7935
  return (await v(
7899
7936
  this.client,
7900
- ly,
7937
+ uy,
7901
7938
  { policies: e },
7902
- sy,
7903
- iy
7939
+ ay,
7940
+ oy
7904
7941
  )).policies;
7905
7942
  }
7906
7943
  async delete(t) {
7907
7944
  await v(
7908
7945
  this.client,
7909
- cy,
7946
+ hy,
7910
7947
  { keys: O(t) },
7911
- ay,
7912
- oy
7948
+ ly,
7949
+ cy
7913
7950
  );
7914
7951
  }
7915
- }, hy = class {
7952
+ }, fy = class {
7916
7953
  constructor(t) {
7917
- l(this, "retriever"), l(this, "writer"), this.retriever = new ry(t), this.writer = new uy(t);
7954
+ l(this, "retriever"), l(this, "writer"), this.retriever = new iy(t), this.writer = new dy(t);
7918
7955
  }
7919
7956
  async create(t) {
7920
7957
  const e = Array.isArray(t), n = await this.writer.create(t);
@@ -7931,9 +7968,9 @@ let uy = class {
7931
7968
  async delete(t) {
7932
7969
  await this.writer.delete(t);
7933
7970
  }
7934
- }, dy = class {
7971
+ }, yy = class {
7935
7972
  constructor(t) {
7936
- l(this, "policy"), this.policy = new hy(t);
7973
+ l(this, "policy"), this.policy = new fy(t);
7937
7974
  }
7938
7975
  };
7939
7976
  const Ve = s.number(), on = s.object({
@@ -7955,8 +7992,8 @@ const Ve = s.number(), on = s.object({
7955
7992
  isIndex: s.boolean().optional(),
7956
7993
  internal: s.boolean().optional().default(!1),
7957
7994
  virtual: s.boolean().optional().default(!1)
7958
- }), nl = "channel", fy = (t) => new $({ type: nl, key: t.toString() }), yy = new Error("request for lock canceled");
7959
- var gy = function(t, e, n, r) {
7995
+ }), nl = "channel", gy = (t) => new $({ type: nl, key: t.toString() }), py = new Error("request for lock canceled");
7996
+ var my = function(t, e, n, r) {
7960
7997
  function i(a) {
7961
7998
  return a instanceof n ? a : new n(function(o) {
7962
7999
  o(a);
@@ -7983,8 +8020,8 @@ var gy = function(t, e, n, r) {
7983
8020
  h((r = r.apply(t, e || [])).next());
7984
8021
  });
7985
8022
  };
7986
- class py {
7987
- constructor(e, n = yy) {
8023
+ class wy {
8024
+ constructor(e, n = py) {
7988
8025
  this._value = e, this._cancelError = n, this._queue = [], this._weightedWaiters = [];
7989
8026
  }
7990
8027
  acquire(e = 1, n = 0) {
@@ -7996,7 +8033,7 @@ class py {
7996
8033
  });
7997
8034
  }
7998
8035
  runExclusive(e) {
7999
- return gy(this, arguments, void 0, function* (n, r = 1, i = 0) {
8036
+ return my(this, arguments, void 0, function* (n, r = 1, i = 0) {
8000
8037
  const [a, o] = yield this.acquire(r, i);
8001
8038
  try {
8002
8039
  return yield n(a);
@@ -8009,7 +8046,7 @@ class py {
8009
8046
  if (e <= 0)
8010
8047
  throw new Error(`invalid weight ${e}: must be positive`);
8011
8048
  return this._couldLockImmediately(e, n) ? Promise.resolve() : new Promise((r) => {
8012
- this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), my(this._weightedWaiters[e - 1], { resolve: r, priority: n });
8049
+ this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), by(this._weightedWaiters[e - 1], { resolve: r, priority: n });
8013
8050
  });
8014
8051
  }
8015
8052
  isLocked() {
@@ -8064,7 +8101,7 @@ class py {
8064
8101
  return (this._queue.length === 0 || this._queue[0].priority < n) && e <= this._value;
8065
8102
  }
8066
8103
  }
8067
- function my(t, e) {
8104
+ function by(t, e) {
8068
8105
  const n = rl(t, (r) => e.priority <= r.priority);
8069
8106
  t.splice(n + 1, 0, e);
8070
8107
  }
@@ -8074,7 +8111,7 @@ function rl(t, e) {
8074
8111
  return n;
8075
8112
  return -1;
8076
8113
  }
8077
- var wy = function(t, e, n, r) {
8114
+ var vy = function(t, e, n, r) {
8078
8115
  function i(a) {
8079
8116
  return a instanceof n ? a : new n(function(o) {
8080
8117
  o(a);
@@ -8101,12 +8138,12 @@ var wy = function(t, e, n, r) {
8101
8138
  h((r = r.apply(t, e || [])).next());
8102
8139
  });
8103
8140
  };
8104
- class by {
8141
+ class Oy {
8105
8142
  constructor(e) {
8106
- this._semaphore = new py(1, e);
8143
+ this._semaphore = new wy(1, e);
8107
8144
  }
8108
8145
  acquire() {
8109
- return wy(this, arguments, void 0, function* (e = 0) {
8146
+ return vy(this, arguments, void 0, function* (e = 0) {
8110
8147
  const [, n] = yield this._semaphore.acquire(1, e);
8111
8148
  return n;
8112
8149
  });
@@ -8147,7 +8184,7 @@ const wr = (t, e, { convertNumericStrings: n = !0 } = {}) => {
8147
8184
  `Expected one ${t} matching ${JSON.stringify(e)}, but found ${n.length}`
8148
8185
  );
8149
8186
  }
8150
- }, vy = s.object({
8187
+ }, Ty = s.object({
8151
8188
  leaseholder: s.number().optional(),
8152
8189
  keys: s.number().array().optional(),
8153
8190
  names: s.string().array().optional(),
@@ -8160,7 +8197,7 @@ const wr = (t, e, { convertNumericStrings: n = !0 } = {}) => {
8160
8197
  virtual: s.boolean().optional(),
8161
8198
  isIndex: s.boolean().optional(),
8162
8199
  internal: s.boolean().optional()
8163
- }), Oy = s.object({
8200
+ }), Sy = s.object({
8164
8201
  channels: we(on)
8165
8202
  }), Ue = (t) => wr(t, {
8166
8203
  number: "keys",
@@ -8184,15 +8221,15 @@ const wr = (t, e, { convertNumericStrings: n = !0 } = {}) => {
8184
8221
  const [n, r] = await this.client.send(
8185
8222
  il.ENDPOINT,
8186
8223
  e,
8187
- vy,
8188
- Oy
8224
+ Ty,
8225
+ Sy
8189
8226
  );
8190
8227
  if (r != null) throw r;
8191
8228
  return n.channels;
8192
8229
  }
8193
8230
  };
8194
8231
  l(sl, "ENDPOINT", "/channel/retrieve");
8195
- let Ys = sl;
8232
+ let Fs = sl;
8196
8233
  class qs {
8197
8234
  constructor(e) {
8198
8235
  l(this, "cache"), l(this, "namesToKeys"), l(this, "wrapped"), this.cache = /* @__PURE__ */ new Map(), this.namesToKeys = /* @__PURE__ */ new Map(), this.wrapped = e;
@@ -8260,7 +8297,7 @@ class qs {
8260
8297
  }
8261
8298
  class al {
8262
8299
  constructor(e, n) {
8263
- l(this, "mu", new by()), l(this, "requests", /* @__PURE__ */ new Map()), l(this, "wrapped"), l(this, "debouncedRun"), this.wrapped = e, this.debouncedRun = Gd(() => {
8300
+ l(this, "mu", new Oy()), l(this, "requests", /* @__PURE__ */ new Map()), l(this, "wrapped"), l(this, "debouncedRun"), this.wrapped = e, this.debouncedRun = Jd(() => {
8264
8301
  this.run();
8265
8302
  }, n);
8266
8303
  }
@@ -8367,7 +8404,7 @@ class ll {
8367
8404
  return await this.framer.write(e, this.key, n);
8368
8405
  }
8369
8406
  }
8370
- const Ty = "/channel/retrieve-group", Sy = s.object({}), Ny = s.object({
8407
+ const Ny = "/channel/retrieve-group", Iy = s.object({}), Ey = s.object({
8371
8408
  group: Qo
8372
8409
  });
8373
8410
  let cl = class {
@@ -8421,7 +8458,7 @@ let cl = class {
8421
8458
  }
8422
8459
  createDebouncedBatchRetriever(t = 10) {
8423
8460
  return new qs(
8424
- new al(new Ys(this.client), t)
8461
+ new al(new Fs(this.client), t)
8425
8462
  );
8426
8463
  }
8427
8464
  sugar(t) {
@@ -8431,61 +8468,61 @@ let cl = class {
8431
8468
  async retrieveGroup() {
8432
8469
  const t = await v(
8433
8470
  this.client,
8434
- Ty,
8471
+ Ny,
8435
8472
  {},
8436
- Sy,
8437
- Ny
8473
+ Iy,
8474
+ Ey
8438
8475
  );
8439
8476
  return new Xo(t.group.name, t.group.key);
8440
8477
  }
8441
8478
  };
8442
- const Iy = s.object({ channels: tl.array() }), Ey = s.object({ channels: on.array() }), ky = s.object({
8479
+ const ky = s.object({ channels: tl.array() }), Ay = s.object({ channels: on.array() }), xy = s.object({
8443
8480
  keys: Ve.array().optional(),
8444
8481
  names: s.string().array().optional()
8445
- }), Ay = s.object({}), xy = s.object({
8482
+ }), Cy = s.object({}), $y = s.object({
8446
8483
  keys: Ve.array(),
8447
8484
  names: s.string().array()
8448
- }), Cy = s.object({}), $y = "/channel/create", Ry = "/channel/delete", jy = "/channel/rename";
8485
+ }), Ry = s.object({}), jy = "/channel/create", By = "/channel/delete", My = "/channel/rename";
8449
8486
  let ul = class {
8450
8487
  constructor(t, e) {
8451
8488
  l(this, "client"), l(this, "cache"), this.client = t, this.cache = e;
8452
8489
  }
8453
8490
  async create(t) {
8454
- const { channels: e } = await v(this.client, $y, { channels: t }, Iy, Ey);
8491
+ const { channels: e } = await v(this.client, jy, { channels: t }, ky, Ay);
8455
8492
  return this.cache.set(e), e;
8456
8493
  }
8457
8494
  async delete(t) {
8458
8495
  await v(
8459
8496
  this.client,
8460
- Ry,
8497
+ By,
8461
8498
  t,
8462
- ky,
8463
- Ay
8499
+ xy,
8500
+ Cy
8464
8501
  ), t.keys != null && this.cache.delete(t.keys), t.names != null && this.cache.delete(t.names);
8465
8502
  }
8466
8503
  async rename(t, e) {
8467
8504
  await v(
8468
8505
  this.client,
8469
- jy,
8506
+ My,
8470
8507
  { keys: t, names: e },
8471
- xy,
8472
- Cy
8508
+ $y,
8509
+ Ry
8473
8510
  ), this.cache.rename(t, e);
8474
8511
  }
8475
8512
  };
8476
- const Av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8513
+ const xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8477
8514
  __proto__: null,
8478
8515
  CacheRetriever: qs,
8479
8516
  Channel: ll,
8480
8517
  Client: cl,
8481
- ClusterRetriever: Ys,
8518
+ ClusterRetriever: Fs,
8482
8519
  DebouncedBatchRetriever: al,
8483
8520
  ONTOLOGY_TYPE: nl,
8484
8521
  Writer: ul,
8485
8522
  analyzeChannelParams: Ue,
8486
8523
  keyZ: Ve,
8487
8524
  newPayload: tl,
8488
- ontologyID: fy,
8525
+ ontologyID: gy,
8489
8526
  payload: on,
8490
8527
  retrieveRequired: ol
8491
8528
  }, Symbol.toStringTag, { value: "Module" })), ln = s.string().uuid(), vr = s.object({
@@ -8497,72 +8534,72 @@ const Av = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8497
8534
  firstName: s.string().default(""),
8498
8535
  lastName: s.string().default(""),
8499
8536
  rootUser: s.boolean().default(!0)
8500
- }), By = vr.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), My = s.object({
8537
+ }), Dy = vr.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), Py = s.object({
8501
8538
  keys: ln.array().optional(),
8502
8539
  usernames: s.string().array().optional()
8503
- }), Dy = s.object({ users: we(vr) }), Py = "/user/retrieve";
8504
- let Uy = class {
8540
+ }), Uy = s.object({ users: we(vr) }), Ly = "/user/retrieve";
8541
+ let _y = class {
8505
8542
  constructor(t) {
8506
8543
  l(this, "client"), this.client = t;
8507
8544
  }
8508
8545
  async retrieve(t) {
8509
8546
  return (await v(
8510
8547
  this.client,
8511
- Py,
8548
+ Ly,
8512
8549
  t,
8513
- My,
8514
- Dy
8550
+ Py,
8551
+ Uy
8515
8552
  )).users;
8516
8553
  }
8517
8554
  };
8518
- const Ly = s.object({ users: By.array() }), _y = s.object({ users: vr.array() }), Fy = s.object({ key: ln, username: s.string().min(1) }), Yy = s.object({}), qy = s.object({
8555
+ const Yy = s.object({ users: Dy.array() }), Fy = s.object({ users: vr.array() }), qy = s.object({ key: ln, username: s.string().min(1) }), zy = s.object({}), Vy = s.object({
8519
8556
  key: ln,
8520
8557
  firstName: s.string().optional(),
8521
8558
  lastName: s.string().optional()
8522
- }), zy = s.object({}), Vy = s.object({ keys: ln.array() }), Wy = s.object({}), Gy = "/user/create", Zy = "/user/change-username", Jy = "/user/rename", Ky = "/user/delete";
8523
- let Hy = class {
8559
+ }), Wy = s.object({}), Gy = s.object({ keys: ln.array() }), Zy = s.object({}), Jy = "/user/create", Ky = "/user/change-username", Hy = "/user/rename", Xy = "/user/delete";
8560
+ let Qy = class {
8524
8561
  constructor(t) {
8525
8562
  l(this, "client"), this.client = t;
8526
8563
  }
8527
8564
  async create(t) {
8528
8565
  return (await v(
8529
8566
  this.client,
8530
- Gy,
8567
+ Jy,
8531
8568
  { users: O(t) },
8532
- Ly,
8533
- _y
8569
+ Yy,
8570
+ Fy
8534
8571
  )).users;
8535
8572
  }
8536
8573
  async changeUsername(t, e) {
8537
8574
  await v(
8538
8575
  this.client,
8539
- Zy,
8576
+ Ky,
8540
8577
  { key: t, username: e },
8541
- Fy,
8542
- Yy
8578
+ qy,
8579
+ zy
8543
8580
  );
8544
8581
  }
8545
8582
  async rename(t, e, n) {
8546
8583
  await v(
8547
8584
  this.client,
8548
- Jy,
8585
+ Hy,
8549
8586
  { key: t, firstName: e, lastName: n },
8550
- qy,
8551
- zy
8587
+ Vy,
8588
+ Wy
8552
8589
  );
8553
8590
  }
8554
8591
  async delete(t) {
8555
8592
  await v(
8556
8593
  this.client,
8557
- Ky,
8594
+ Xy,
8558
8595
  { keys: O(t) },
8559
- Vy,
8560
- Wy
8596
+ Gy,
8597
+ Zy
8561
8598
  );
8562
8599
  }
8563
- }, Xy = class {
8600
+ }, eg = class {
8564
8601
  constructor(t) {
8565
- l(this, "reader"), l(this, "writer"), this.writer = new Hy(t), this.reader = new Uy(t);
8602
+ l(this, "reader"), l(this, "writer"), this.writer = new Qy(t), this.reader = new _y(t);
8566
8603
  }
8567
8604
  async create(t) {
8568
8605
  const e = Array.isArray(t), n = await this.writer.create(t);
@@ -8595,18 +8632,18 @@ let Hy = class {
8595
8632
  await this.writer.delete(t);
8596
8633
  }
8597
8634
  };
8598
- const Qy = s.object({
8635
+ const tg = s.object({
8599
8636
  username: s.string(),
8600
8637
  password: s.string()
8601
- }), eg = s.object({
8638
+ }), ng = s.object({
8602
8639
  token: s.string(),
8603
8640
  user: vr
8604
- }), ya = "/auth/login", tg = 3, ng = "/auth/change-password", rg = s.object({
8641
+ }), ya = "/auth/login", rg = 3, sg = "/auth/change-password", ig = s.object({
8605
8642
  username: s.string(),
8606
8643
  password: s.string(),
8607
8644
  newPassword: s.string().min(1)
8608
- }), sg = s.object({});
8609
- let ig = class {
8645
+ }), ag = s.object({});
8646
+ let og = class {
8610
8647
  constructor(t, e) {
8611
8648
  l(this, "token"), l(this, "client"), l(this, "credentials"), l(this, "authenticating"), l(this, "authenticated"), l(this, "user"), l(this, "retryCount"), this.client = t, this.authenticated = !1, this.credentials = e, this.retryCount = 0;
8612
8649
  }
@@ -8614,14 +8651,14 @@ let ig = class {
8614
8651
  if (!this.authenticated) throw new Error("Not authenticated");
8615
8652
  await v(
8616
8653
  this.client,
8617
- ng,
8654
+ sg,
8618
8655
  {
8619
8656
  username: this.credentials.username,
8620
8657
  password: this.credentials.password,
8621
8658
  newPassword: t
8622
8659
  },
8623
- rg,
8624
- sg
8660
+ ig,
8661
+ ag
8625
8662
  ), this.credentials.password = t;
8626
8663
  }
8627
8664
  middleware() {
@@ -8631,8 +8668,8 @@ let ig = class {
8631
8668
  this.client.send(
8632
8669
  ya,
8633
8670
  this.credentials,
8634
- Qy,
8635
- eg
8671
+ tg,
8672
+ ng
8636
8673
  ).then(([u, h]) => {
8637
8674
  if (h != null) return o(h);
8638
8675
  this.token = u == null ? void 0 : u.token, this.user = u == null ? void 0 : u.user, this.authenticated = !0, o(null);
@@ -8643,20 +8680,20 @@ let ig = class {
8643
8680
  }
8644
8681
  e.params.Authorization = `Bearer ${this.token}`;
8645
8682
  const [r, i] = await n(e);
8646
- return Ss.matches(i) && this.retryCount < tg ? (this.authenticated = !1, this.authenticating = void 0, this.retryCount += 1, t(e, n)) : (this.retryCount = 0, [r, i]);
8683
+ return Ss.matches(i) && this.retryCount < rg ? (this.authenticated = !1, this.authenticating = void 0, this.retryCount += 1, t(e, n)) : (this.retryCount = 0, [r, i]);
8647
8684
  };
8648
8685
  return t;
8649
8686
  }
8650
8687
  };
8651
- const ag = ["disconnected", "connecting", "connected", "failed"], og = s.enum(ag), lg = s.object({
8652
- status: og,
8688
+ const lg = ["disconnected", "connecting", "connected", "failed"], cg = s.enum(lg), ug = s.object({
8689
+ status: cg,
8653
8690
  error: s.instanceof(Error).optional(),
8654
8691
  message: s.string().optional(),
8655
8692
  clusterKey: s.string(),
8656
8693
  clientVersion: s.string(),
8657
8694
  clientServerCompatible: s.boolean(),
8658
8695
  nodeVersion: s.string().optional()
8659
- }), cg = s.object({
8696
+ }), hg = s.object({
8660
8697
  clusterKey: s.string(),
8661
8698
  nodeVersion: s.string().optional()
8662
8699
  }), hl = {
@@ -8696,7 +8733,7 @@ const ag = ["disconnected", "connecting", "connected", "failed"], og = s.enum(ag
8696
8733
  dl.ENDPOINT,
8697
8734
  {},
8698
8735
  s.object({}),
8699
- cg
8736
+ hg
8700
8737
  );
8701
8738
  if (i != null) throw i;
8702
8739
  const a = r.nodeVersion, o = this.clientVersion, c = this.versionWarned;
@@ -8730,24 +8767,24 @@ const ag = ["disconnected", "connecting", "connected", "failed"], og = s.enum(ag
8730
8767
  }, this.pollFrequency.milliseconds);
8731
8768
  }
8732
8769
  };
8733
- l(Kn, "ENDPOINT", "/connectivity/check"), l(Kn, "DEFAULT", hl), l(Kn, "connectionStateZ", lg);
8770
+ l(Kn, "ENDPOINT", "/connectivity/check"), l(Kn, "DEFAULT", hl), l(Kn, "connectionStateZ", ug);
8734
8771
  let fl = Kn;
8735
- const ug = s.object({
8772
+ const dg = s.object({
8736
8773
  keys: Ve.array().optional(),
8737
8774
  bounds: le.z,
8738
8775
  names: s.string().array().optional()
8739
- }), hg = s.object({}), dg = "/frame/delete";
8740
- class fg {
8776
+ }), fg = s.object({}), yg = "/frame/delete";
8777
+ class gg {
8741
8778
  constructor(e) {
8742
8779
  l(this, "client"), this.client = e;
8743
8780
  }
8744
8781
  async delete(e) {
8745
8782
  await v(
8746
8783
  this.client,
8747
- dg,
8784
+ yg,
8748
8785
  e,
8749
- ug,
8750
- hg
8786
+ dg,
8787
+ fg
8751
8788
  );
8752
8789
  }
8753
8790
  }
@@ -8779,7 +8816,7 @@ let ve = class it {
8779
8816
  if ("keys" in e && "series" in e) {
8780
8817
  const r = e;
8781
8818
  r.series ?? (r.series = []), r.keys ?? (r.keys = []);
8782
- const i = r.series.map((a) => yg(a));
8819
+ const i = r.series.map((a) => pg(a));
8783
8820
  ma(r.keys, i), r.keys.forEach((a, o) => this.push(a, i[o]));
8784
8821
  } else
8785
8822
  Object.entries(e).forEach(([r, i]) => {
@@ -8845,7 +8882,7 @@ let ve = class it {
8845
8882
  }
8846
8883
  toPayload() {
8847
8884
  return {
8848
- series: this.series.map((e) => gg(e)),
8885
+ series: this.series.map((e) => mg(e)),
8849
8886
  keys: this.keys
8850
8887
  };
8851
8888
  }
@@ -8900,7 +8937,7 @@ let ve = class it {
8900
8937
  return this.uniqueColumns.map((e) => this.timeRange(e));
8901
8938
  }
8902
8939
  get(e) {
8903
- return Array.isArray(e) ? this.filter((n) => e.includes(n)) : new uf(this.series.filter((n, r) => this.columns[r] === e));
8940
+ return Array.isArray(e) ? this.filter((n) => e.includes(n)) : new df(this.series.filter((n, r) => this.columns[r] === e));
8904
8941
  }
8905
8942
  push(e, ...n) {
8906
8943
  if (e instanceof it) {
@@ -8990,10 +9027,10 @@ const zs = s.object({
8990
9027
  s.null().transform(() => []),
8991
9028
  Ke.crudeZ.array().optional().default([])
8992
9029
  ])
8993
- }), yg = (t) => {
9030
+ }), pg = (t) => {
8994
9031
  const { dataType: e, data: n, timeRange: r, alignment: i } = t;
8995
9032
  return new Ke({ data: n, dataType: e, timeRange: r, glBufferUsage: "static", alignment: i });
8996
- }, gg = (t) => ({
9033
+ }, mg = (t) => ({
8997
9034
  timeRange: t._timeRange,
8998
9035
  dataType: t.dataType,
8999
9036
  data: new Uint8Array(t.data.buffer),
@@ -9154,14 +9191,14 @@ class Ws {
9154
9191
  }
9155
9192
  const wa = new R(-1);
9156
9193
  var Gs = /* @__PURE__ */ ((t) => (t[t.Open = 0] = "Open", t[t.Next = 1] = "Next", t[t.Prev = 2] = "Prev", t[t.SeekFirst = 3] = "SeekFirst", t[t.SeekLast = 4] = "SeekLast", t[t.SeekLE = 5] = "SeekLE", t[t.SeekGE = 6] = "SeekGE", t[t.Valid = 7] = "Valid", t[t.Error = 8] = "Error", t))(Gs || {}), yl = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Ack = 1] = "Ack", t[t.Data = 2] = "Data", t))(yl || {});
9157
- const pg = s.object({
9194
+ const wg = s.object({
9158
9195
  command: s.nativeEnum(Gs),
9159
9196
  span: R.z.optional(),
9160
9197
  bounds: le.z.optional(),
9161
9198
  stamp: C.z.optional(),
9162
9199
  keys: s.number().array().optional(),
9163
9200
  chunkSize: s.number().optional()
9164
- }), mg = s.object({
9201
+ }), bg = s.object({
9165
9202
  variant: s.nativeEnum(yl),
9166
9203
  ack: s.boolean(),
9167
9204
  command: s.nativeEnum(Gs),
@@ -9183,7 +9220,7 @@ const pg = s.object({
9183
9220
  * @param opts - See {@link IteratorConfig}.
9184
9221
  */
9185
9222
  static async _open(e, n, r, i, a = {}) {
9186
- const o = await Or.open(r, n), c = await i.stream(Ns.ENDPOINT, pg, mg), u = new Ns(c, o);
9223
+ const o = await Or.open(r, n), c = await i.stream(Ns.ENDPOINT, wg, bg), u = new Ns(c, o);
9187
9224
  return await u.execute({
9188
9225
  command: 0,
9189
9226
  keys: o.keys,
@@ -9288,7 +9325,7 @@ const pg = s.object({
9288
9325
  await this.stream.closeAndAck();
9289
9326
  }
9290
9327
  [Symbol.asyncIterator]() {
9291
- return new bg(this);
9328
+ return new Og(this);
9292
9329
  }
9293
9330
  async execute(e) {
9294
9331
  for (this.stream.send(e), this.value = new ve(); ; ) {
@@ -9299,8 +9336,8 @@ const pg = s.object({
9299
9336
  }
9300
9337
  };
9301
9338
  l(gl, "ENDPOINT", "/frame/iterate");
9302
- let wg = gl;
9303
- class bg {
9339
+ let vg = gl;
9340
+ class Og {
9304
9341
  constructor(e) {
9305
9342
  l(this, "iter"), l(this, "open", !1), this.iter = e;
9306
9343
  }
@@ -9313,10 +9350,10 @@ class bg {
9313
9350
  }
9314
9351
  }
9315
9352
  }
9316
- const vg = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), Og = s.object({
9353
+ const Tg = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), Sg = s.object({
9317
9354
  frame: zs,
9318
9355
  error: sn.optional().nullable()
9319
- }), Tg = "/frame/stream";
9356
+ }), Ng = "/frame/stream";
9320
9357
  class Zs {
9321
9358
  constructor(e, n) {
9322
9359
  l(this, "stream"), l(this, "adapter"), l(this, "downsampleFactor"), this.stream = new Ws("Streamer", e), this.adapter = n, this.downsampleFactor = 1;
@@ -9325,7 +9362,7 @@ class Zs {
9325
9362
  return this.adapter.keys;
9326
9363
  }
9327
9364
  static async _open(e, n, { channels: r, downsampleFactor: i }) {
9328
- const a = await Or.open(e, r), o = await n.stream(Tg, vg, Og), c = new Zs(o, a);
9365
+ const a = await Or.open(e, r), o = await n.stream(Ng, Tg, Sg), c = new Zs(o, a);
9329
9366
  o.send({ keys: a.keys, downsampleFactor: i ?? 1 });
9330
9367
  const [, u] = await o.receive();
9331
9368
  if (u != null) throw u;
@@ -9364,7 +9401,7 @@ class Tr extends et.Observer {
9364
9401
  }
9365
9402
  }
9366
9403
  var Js = /* @__PURE__ */ ((t) => (t[t.Open = 0] = "Open", t[t.Write = 1] = "Write", t[t.Commit = 2] = "Commit", t[t.Error = 3] = "Error", t[t.SetAuthority = 4] = "SetAuthority", t))(Js || {}), Xt = /* @__PURE__ */ ((t) => (t[t.PersistStream = 1] = "PersistStream", t[t.Persist = 2] = "Persist", t[t.Stream = 3] = "Stream", t))(Xt || {});
9367
- const Sg = (t) => {
9404
+ const Ig = (t) => {
9368
9405
  switch (t) {
9369
9406
  case "persist":
9370
9407
  return 2;
@@ -9378,7 +9415,7 @@ const Sg = (t) => {
9378
9415
  }
9379
9416
  };
9380
9417
  new R(-1);
9381
- const Ng = s.object({
9418
+ const Eg = s.object({
9382
9419
  start: C.z.optional(),
9383
9420
  controlSubject: ct.subjectZ.optional(),
9384
9421
  keys: s.number().array().optional(),
@@ -9387,17 +9424,17 @@ const Ng = s.object({
9387
9424
  errOnUnauthorized: s.boolean().optional(),
9388
9425
  enableAutoCommit: s.boolean().optional(),
9389
9426
  autoIndexPersistInterval: R.z.optional()
9390
- }), Ig = s.object({
9427
+ }), kg = s.object({
9391
9428
  command: s.nativeEnum(Js),
9392
- config: Ng.optional(),
9429
+ config: Eg.optional(),
9393
9430
  frame: zs.optional()
9394
- }), Eg = s.object({
9431
+ }), Ag = s.object({
9395
9432
  ack: s.boolean(),
9396
9433
  command: s.nativeEnum(Js),
9397
9434
  error: sn.optional().nullable()
9398
9435
  });
9399
9436
  var Ot;
9400
- let kg = (Ot = class {
9437
+ let xg = (Ot = class {
9401
9438
  constructor(t, e) {
9402
9439
  l(this, "stream"), l(this, "adapter"), this.stream = new Ws("Writer", t), this.adapter = e;
9403
9440
  }
@@ -9411,7 +9448,7 @@ let kg = (Ot = class {
9411
9448
  enableAutoCommit: u = !1,
9412
9449
  autoIndexPersistInterval: h = R.SECOND
9413
9450
  }) {
9414
- const f = await Vs.open(t, n), d = await e.stream(Ot.ENDPOINT, Ig, Eg), A = new Ot(d, f);
9451
+ const f = await Vs.open(t, n), d = await e.stream(Ot.ENDPOINT, kg, Ag), A = new Ot(d, f);
9415
9452
  return await A.execute({
9416
9453
  command: 0,
9417
9454
  config: {
@@ -9419,7 +9456,7 @@ let kg = (Ot = class {
9419
9456
  keys: f.keys,
9420
9457
  controlSubject: a,
9421
9458
  authorities: O(i),
9422
- mode: Sg(o),
9459
+ mode: Ig(o),
9423
9460
  errOnUnauthorized: c,
9424
9461
  enableAutoCommit: u,
9425
9462
  autoIndexPersistInterval: h
@@ -9504,9 +9541,9 @@ let kg = (Ot = class {
9504
9541
  get errorAccumulated() {
9505
9542
  return this.stream.received();
9506
9543
  }
9507
- }, l(Ot, "ENDPOINT", "/frame/write"), Ot), Ag = class {
9544
+ }, l(Ot, "ENDPOINT", "/frame/write"), Ot), Cg = class {
9508
9545
  constructor(t, e, n) {
9509
- l(this, "streamClient"), l(this, "retriever"), l(this, "deleter"), this.streamClient = t, this.retriever = n, this.deleter = new fg(e);
9546
+ l(this, "streamClient"), l(this, "retriever"), l(this, "deleter"), this.streamClient = t, this.retriever = n, this.deleter = new gg(e);
9510
9547
  }
9511
9548
  /**
9512
9549
  * Opens a new iterator over the given channels within the provided time range.
@@ -9517,7 +9554,7 @@ let kg = (Ot = class {
9517
9554
  * @returns a new {@link Iterator}.
9518
9555
  */
9519
9556
  async openIterator(t, e, n) {
9520
- return await wg._open(t, e, this.retriever, this.streamClient, n);
9557
+ return await vg._open(t, e, this.retriever, this.streamClient, n);
9521
9558
  }
9522
9559
  /**
9523
9560
  * Opens a new writer on the given channels.
@@ -9527,7 +9564,7 @@ let kg = (Ot = class {
9527
9564
  * @returns a new {@link Writer}.
9528
9565
  */
9529
9566
  async openWriter(t) {
9530
- return (Array.isArray(t) || typeof t != "object") && (t = { channels: t }), await kg._open(this.retriever, this.streamClient, t);
9567
+ return (Array.isArray(t) || typeof t != "object") && (t = { channels: t }), await xg._open(this.retriever, this.streamClient, t);
9531
9568
  }
9532
9569
  async openStreamer(t) {
9533
9570
  return (Array.isArray(t) || typeof t != "object") && (t = { channels: t, downsampleFactor: 1 }), await Zs._open(this.retriever, this.streamClient, t);
@@ -9593,7 +9630,7 @@ let kg = (Ot = class {
9593
9630
  });
9594
9631
  }
9595
9632
  };
9596
- const xg = ct.Authority, Cg = ct.stateZ(s.number()), $g = (t) => {
9633
+ const $g = ct.Authority, Rg = ct.stateZ(s.number()), jg = (t) => {
9597
9634
  var e, n;
9598
9635
  return t.to == null ? `${(e = t.from) == null ? void 0 : e.resource} - ${(n = t.from) == null ? void 0 : n.subject.name} -> released` : t.from == null ? `${t.to.resource} - released -> ${t.to.subject.name} (${t.to.authority.toString()})` : `${t.to.resource} - ${t.from.subject.name} -> ${t.to.subject.name} (${t.to.authority.toString()})`;
9599
9636
  };
@@ -9614,25 +9651,25 @@ class pl extends Tr {
9614
9651
  });
9615
9652
  }
9616
9653
  }
9617
- const Rg = "sy_node_1_control";
9654
+ const Bg = "sy_node_1_control";
9618
9655
  let ml = class {
9619
9656
  constructor(t) {
9620
9657
  l(this, "framer"), this.framer = t;
9621
9658
  }
9622
9659
  async openStateTracker() {
9623
- const t = await this.framer.openStreamer(Rg);
9660
+ const t = await this.framer.openStreamer(Bg);
9624
9661
  return new pl(t);
9625
9662
  }
9626
9663
  };
9627
- const xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9664
+ const Cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9628
9665
  __proto__: null,
9629
- Authority: xg,
9666
+ Authority: $g,
9630
9667
  Client: ml,
9631
9668
  StateTracker: pl,
9632
- stateZ: Cg,
9633
- transferString: $g
9669
+ stateZ: Rg,
9670
+ transferString: jg
9634
9671
  }, Symbol.toStringTag, { value: "Module" }));
9635
- let jg = class {
9672
+ let Mg = class {
9636
9673
  constructor(t, e, n) {
9637
9674
  l(this, "tasks"), l(this, "racks"), l(this, "devices"), this.tasks = t, this.racks = e, this.devices = n;
9638
9675
  }
@@ -9640,7 +9677,7 @@ let jg = class {
9640
9677
  const cn = s.number(), Ks = s.object({
9641
9678
  key: cn,
9642
9679
  name: s.string()
9643
- }), Bg = Ks.partial({ key: !0 }), Hs = s.string(), Sr = s.object({
9680
+ }), Dg = Ks.partial({ key: !0 }), Hs = s.string(), Sr = s.object({
9644
9681
  key: Hs,
9645
9682
  rack: cn,
9646
9683
  name: s.string(),
@@ -9651,7 +9688,7 @@ const cn = s.number(), Ks = s.object({
9651
9688
  properties: s.record(s.unknown()).or(
9652
9689
  s.string().transform((t) => t === "" ? {} : ft.JSON_CODEC.decodeString(t))
9653
9690
  )
9654
- }), Mg = Sr.extend({
9691
+ }), Pg = Sr.extend({
9655
9692
  properties: s.unknown().transform((t) => ft.JSON_CODEC.encodeString(t))
9656
9693
  }), gt = async (t, e, n, r) => {
9657
9694
  const i = await t.openStreamer([e, n]), a = (o) => {
@@ -9661,7 +9698,7 @@ const cn = s.number(), Ks = s.object({
9661
9698
  ), e != null && c.push(...o.get(e).series.flatMap((u) => r("set", u))), [c, c.length > 0];
9662
9699
  };
9663
9700
  return new Tr(i, a);
9664
- }, Dg = "sy_device_set", Pg = "sy_device_delete", Wr = "/hardware/device/retrieve", Ug = "/hardware/device/create", Lg = "/hardware/device/delete", _g = s.object({ devices: Mg.array() }), Fg = s.object({ devices: Sr.array() }), Yg = s.object({ keys: Hs.array() }), qg = s.object({}), Gr = s.object({
9701
+ }, Ug = "sy_device_set", Lg = "sy_device_delete", Wr = "/hardware/device/retrieve", _g = "/hardware/device/create", Yg = "/hardware/device/delete", Fg = s.object({ devices: Pg.array() }), qg = s.object({ devices: Sr.array() }), zg = s.object({ keys: Hs.array() }), Vg = s.object({}), Gr = s.object({
9665
9702
  search: s.string().optional(),
9666
9703
  limit: s.number().optional(),
9667
9704
  offset: s.number().optional(),
@@ -9669,7 +9706,7 @@ const cn = s.number(), Ks = s.object({
9669
9706
  names: s.string().array().optional(),
9670
9707
  makes: s.string().array().optional()
9671
9708
  }), Zr = s.object({ devices: we(Sr) });
9672
- let zg = class {
9709
+ let Wg = class {
9673
9710
  constructor(t, e) {
9674
9711
  l(this, "type", "device"), l(this, "client"), l(this, "frameClient"), this.client = t, this.frameClient = e;
9675
9712
  }
@@ -9704,28 +9741,28 @@ let zg = class {
9704
9741
  async create(t) {
9705
9742
  const e = !Array.isArray(t), n = await v(
9706
9743
  this.client,
9707
- Ug,
9708
- { devices: O(t) },
9709
9744
  _g,
9710
- Fg
9745
+ { devices: O(t) },
9746
+ Fg,
9747
+ qg
9711
9748
  );
9712
9749
  return e ? n.devices[0] : n.devices;
9713
9750
  }
9714
9751
  async delete(t) {
9715
9752
  await v(
9716
9753
  this.client,
9717
- Lg,
9718
- { keys: O(t) },
9719
9754
  Yg,
9720
- qg
9755
+ { keys: O(t) },
9756
+ zg,
9757
+ Vg
9721
9758
  );
9722
9759
  }
9723
9760
  async openDeviceTracker() {
9724
9761
  return await gt(
9725
9762
  this.frameClient,
9726
- Dg,
9727
- Pg,
9728
- Vg
9763
+ Ug,
9764
+ Lg,
9765
+ Gg
9729
9766
  );
9730
9767
  }
9731
9768
  newSearcherWithOptions(t) {
@@ -9737,7 +9774,7 @@ let zg = class {
9737
9774
  };
9738
9775
  }
9739
9776
  };
9740
- const Vg = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, key: n, value: void 0 })) : e.parseJSON(Sr).map((n) => ({ variant: t, key: n.key, value: n })), Jr = "/hardware/rack/retrieve", Wg = "/hardware/rack/create", Gg = "/hardware/rack/delete", Kr = s.object({
9777
+ const Gg = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, key: n, value: void 0 })) : e.parseJSON(Sr).map((n) => ({ variant: t, key: n.key, value: n })), Jr = "/hardware/rack/retrieve", Zg = "/hardware/rack/create", Jg = "/hardware/rack/delete", Kr = s.object({
9741
9778
  keys: cn.array().optional(),
9742
9779
  names: s.string().array().optional(),
9743
9780
  search: s.string().optional(),
@@ -9745,33 +9782,33 @@ const Vg = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, ke
9745
9782
  limit: s.number().optional()
9746
9783
  }), Hr = s.object({
9747
9784
  racks: we(Ks)
9748
- }), Zg = s.object({
9749
- racks: Bg.array()
9750
- }), Jg = s.object({
9751
- racks: Ks.array()
9752
9785
  }), Kg = s.object({
9786
+ racks: Dg.array()
9787
+ }), Hg = s.object({
9788
+ racks: Ks.array()
9789
+ }), Xg = s.object({
9753
9790
  keys: cn.array()
9754
- }), Hg = s.object({});
9755
- let Xg = class {
9791
+ }), Qg = s.object({});
9792
+ let ep = class {
9756
9793
  constructor(t, e, n) {
9757
9794
  l(this, "type", "rack"), l(this, "client"), l(this, "frameClient"), l(this, "tasks"), this.client = t, this.frameClient = e, this.tasks = n;
9758
9795
  }
9759
9796
  async delete(t) {
9760
9797
  await v(
9761
9798
  this.client,
9762
- Gg,
9799
+ Jg,
9763
9800
  { keys: O(t) },
9764
- Kg,
9765
- Hg
9801
+ Xg,
9802
+ Qg
9766
9803
  );
9767
9804
  }
9768
9805
  async create(t) {
9769
9806
  const e = !Array.isArray(t), n = await v(
9770
9807
  this.client,
9771
- Wg,
9772
- { racks: O(t) },
9773
9808
  Zg,
9774
- Jg
9809
+ { racks: O(t) },
9810
+ Kg,
9811
+ Hg
9775
9812
  ), r = this.sugar(n.racks);
9776
9813
  return e ? r[0] : r;
9777
9814
  }
@@ -9809,10 +9846,10 @@ let Xg = class {
9809
9846
  return br("Rack", t, a, r), r ? a[0] : a;
9810
9847
  }
9811
9848
  sugar(t) {
9812
- return t.map(({ key: e, name: n }) => new Qg(e, n, this.tasks));
9849
+ return t.map(({ key: e, name: n }) => new tp(e, n, this.tasks));
9813
9850
  }
9814
9851
  };
9815
- class Qg {
9852
+ class tp {
9816
9853
  constructor(e, n, r) {
9817
9854
  l(this, "key"), l(this, "name"), l(this, "tasks"), this.key = e, this.name = n, this.tasks = r;
9818
9855
  }
@@ -9850,7 +9887,7 @@ const pt = s.union([
9850
9887
  ),
9851
9888
  state: ir.optional().nullable(),
9852
9889
  snapshot: s.boolean().optional()
9853
- }), ep = Nr.omit({ key: !0 }).extend({
9890
+ }), np = Nr.omit({ key: !0 }).extend({
9854
9891
  key: pt.transform((t) => t.toString()).optional(),
9855
9892
  config: s.unknown().transform((t) => ft.JSON_CODEC.encodeString(t))
9856
9893
  });
@@ -9863,7 +9900,7 @@ s.object({
9863
9900
  )
9864
9901
  });
9865
9902
  const Gt = "sy_task_state", ba = "sy_task_cmd", mn = new Error("Task not created");
9866
- class tp {
9903
+ class rp {
9867
9904
  constructor(e, n, r, i, a = !1, o = !1, c, u = null, h = null, f = null) {
9868
9905
  l(this, "key"), l(this, "name"), l(this, "internal"), l(this, "type"), l(this, "config"), l(this, "snapshot"), l(this, "state"), l(this, "frameClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.key = e, this.name = n, this.type = r, this.config = i, this.internal = a, this.snapshot = o, c !== null && (this.state = c), this.frameClient = u, this.ontologyClient = h, this.rangeClient = f;
9869
9906
  }
@@ -9882,7 +9919,7 @@ class tp {
9882
9919
  }
9883
9920
  async executeCommand(e, n) {
9884
9921
  if (this.frameClient == null) throw mn;
9885
- const r = await this.frameClient.openWriter(ba), i = ef.id();
9922
+ const r = await this.frameClient.openWriter(ba), i = nf.id();
9886
9923
  return await r.write(ba, [{ task: this.key, type: e, key: i, args: n }]), await r.close(), i;
9887
9924
  }
9888
9925
  async executeCommandSync(e, n, r) {
@@ -9924,41 +9961,41 @@ class tp {
9924
9961
  return e.length == 0 ? null : e[0];
9925
9962
  }
9926
9963
  }
9927
- const np = s.object({
9964
+ const sp = s.object({
9928
9965
  rack: cn.optional(),
9929
9966
  keys: s.string().array().optional(),
9930
9967
  names: s.string().array().optional(),
9931
9968
  offset: s.number().optional(),
9932
9969
  limit: s.number().optional(),
9933
9970
  includeState: s.boolean().optional()
9934
- }), rp = s.object({
9971
+ }), ip = s.object({
9935
9972
  tasks: we(Nr)
9936
- }), sp = "/hardware/task/retrieve", ip = "/hardware/task/create", ap = "/hardware/task/delete", op = "/hardware/task/copy", lp = s.object({ tasks: ep.array() }), cp = s.object({ tasks: Nr.array() }), up = s.object({ keys: pt.array() }), hp = s.object({}), dp = s.object({
9973
+ }), ap = "/hardware/task/retrieve", op = "/hardware/task/create", lp = "/hardware/task/delete", cp = "/hardware/task/copy", up = s.object({ tasks: np.array() }), hp = s.object({ tasks: Nr.array() }), dp = s.object({ keys: pt.array() }), fp = s.object({}), yp = s.object({
9937
9974
  key: pt,
9938
9975
  name: s.string(),
9939
9976
  snapshot: s.boolean()
9940
- }), fp = s.object({ task: Nr });
9941
- let yp = class {
9977
+ }), gp = s.object({ task: Nr });
9978
+ let pp = class {
9942
9979
  constructor(t, e, n, r) {
9943
9980
  l(this, "type", "task"), l(this, "client"), l(this, "frameClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.client = t, this.frameClient = e, this.ontologyClient = n, this.rangeClient = r;
9944
9981
  }
9945
9982
  async create(t) {
9946
9983
  const e = !Array.isArray(t), n = await v(
9947
9984
  this.client,
9948
- ip,
9985
+ op,
9949
9986
  { tasks: O(t) },
9950
- lp,
9951
- cp
9987
+ up,
9988
+ hp
9952
9989
  ), r = this.sugar(n.tasks);
9953
9990
  return e ? r[0] : r;
9954
9991
  }
9955
9992
  async delete(t) {
9956
9993
  await v(
9957
9994
  this.client,
9958
- ap,
9995
+ lp,
9959
9996
  { keys: O(t) },
9960
- up,
9961
- hp
9997
+ dp,
9998
+ fp
9962
9999
  );
9963
10000
  }
9964
10001
  async search(t) {
@@ -9983,10 +10020,10 @@ let yp = class {
9983
10020
  async copy(t, e, n) {
9984
10021
  const r = await v(
9985
10022
  this.client,
9986
- op,
10023
+ cp,
9987
10024
  { key: t, name: e, snapshot: n },
9988
- dp,
9989
- fp
10025
+ yp,
10026
+ gp
9990
10027
  );
9991
10028
  return this.sugar([r.task])[0];
9992
10029
  }
@@ -9997,15 +10034,15 @@ let yp = class {
9997
10034
  async execRetrieve(t) {
9998
10035
  return (await v(
9999
10036
  this.client,
10000
- sp,
10037
+ ap,
10001
10038
  t,
10002
- np,
10003
- rp
10039
+ sp,
10040
+ ip
10004
10041
  )).tasks;
10005
10042
  }
10006
10043
  sugar(t) {
10007
10044
  return t.map(
10008
- ({ key: e, name: n, type: r, config: i, state: a, internal: o, snapshot: c }) => new tp(
10045
+ ({ key: e, name: n, type: r, config: i, state: a, internal: o, snapshot: c }) => new rp(
10009
10046
  e,
10010
10047
  n,
10011
10048
  r,
@@ -10047,17 +10084,17 @@ const un = s.string().uuid(), Ir = s.object({
10047
10084
  key: un,
10048
10085
  name: s.string().min(1),
10049
10086
  color: s.string()
10050
- }), gp = s.object({
10087
+ }), mp = s.object({
10051
10088
  keys: un.array().optional(),
10052
10089
  for: pe.optional(),
10053
10090
  search: s.string().optional(),
10054
10091
  offset: s.number().optional(),
10055
10092
  limit: s.number().optional()
10056
- }), pp = s.object({
10093
+ }), wp = s.object({
10057
10094
  labels: we(Ir)
10058
10095
  });
10059
10096
  var wn;
10060
- let mp = (wn = class {
10097
+ let bp = (wn = class {
10061
10098
  constructor(t) {
10062
10099
  l(this, "client"), this.client = t;
10063
10100
  }
@@ -10078,50 +10115,50 @@ let mp = (wn = class {
10078
10115
  const [e, n] = await this.client.send(
10079
10116
  wn.ENDPOINT,
10080
10117
  t,
10081
- gp,
10082
- pp
10118
+ mp,
10119
+ wp
10083
10120
  );
10084
10121
  if (n != null) throw n;
10085
10122
  return e.labels;
10086
10123
  }
10087
10124
  }, l(wn, "ENDPOINT", "/label/retrieve"), wn);
10088
- const wp = Ir.extend({ key: un.optional() }), bp = s.object({
10089
- labels: wp.array()
10090
- }), vp = s.object({
10125
+ const vp = Ir.extend({ key: un.optional() }), Op = s.object({
10126
+ labels: vp.array()
10127
+ }), Tp = s.object({
10091
10128
  labels: Ir.array()
10092
- }), Op = s.object({
10129
+ }), Sp = s.object({
10093
10130
  keys: un.array()
10094
10131
  }), wl = s.object({
10095
10132
  id: pe,
10096
10133
  labels: un.array(),
10097
10134
  replace: s.boolean().optional()
10098
- }), Tp = wl.omit({ replace: !0 }), Xr = s.object({}), Sp = "/label/create", Np = "/label/delete", Ip = "/label/set", Ep = "/label/remove";
10099
- let kp = class {
10135
+ }), Np = wl.omit({ replace: !0 }), Xr = s.object({}), Ip = "/label/create", Ep = "/label/delete", kp = "/label/set", Ap = "/label/remove";
10136
+ let xp = class {
10100
10137
  constructor(t) {
10101
10138
  l(this, "client"), this.client = t;
10102
10139
  }
10103
10140
  async create(t) {
10104
10141
  return (await v(
10105
10142
  this.client,
10106
- Sp,
10143
+ Ip,
10107
10144
  { labels: O(t) },
10108
- bp,
10109
- vp
10145
+ Op,
10146
+ Tp
10110
10147
  )).labels;
10111
10148
  }
10112
10149
  async delete(t) {
10113
10150
  await v(
10114
10151
  this.client,
10115
- Np,
10152
+ Ep,
10116
10153
  { keys: O(t) },
10117
- Op,
10154
+ Sp,
10118
10155
  Xr
10119
10156
  );
10120
10157
  }
10121
10158
  async set(t, e, { replace: n } = {}) {
10122
10159
  await v(
10123
10160
  this.client,
10124
- Ip,
10161
+ kp,
10125
10162
  { id: t, labels: e, replace: n },
10126
10163
  wl,
10127
10164
  Xr
@@ -10130,17 +10167,17 @@ let kp = class {
10130
10167
  async remove(t, e) {
10131
10168
  await v(
10132
10169
  this.client,
10133
- Ep,
10170
+ Ap,
10134
10171
  { id: t, labels: e },
10135
- Tp,
10172
+ Np,
10136
10173
  Xr
10137
10174
  );
10138
10175
  }
10139
10176
  };
10140
- const Ap = "sy_label_set", xp = "sy_label_delete";
10141
- let Cp = class {
10177
+ const Cp = "sy_label_set", $p = "sy_label_delete";
10178
+ let Rp = class {
10142
10179
  constructor(t, e, n) {
10143
- l(this, "type", "label"), l(this, "retriever"), l(this, "writer"), l(this, "frameClient"), l(this, "ontology"), this.writer = new kp(t), this.retriever = new mp(t), this.frameClient = e, this.ontology = n;
10180
+ l(this, "type", "label"), l(this, "retriever"), l(this, "writer"), l(this, "frameClient"), l(this, "ontology"), this.writer = new xp(t), this.retriever = new bp(t), this.frameClient = e, this.ontology = n;
10144
10181
  }
10145
10182
  async search(t) {
10146
10183
  return await this.retriever.search(t);
@@ -10171,9 +10208,9 @@ let Cp = class {
10171
10208
  async openChangeTracker() {
10172
10209
  return await gt(
10173
10210
  this.frameClient,
10174
- Ap,
10175
- xp,
10176
- $p
10211
+ Cp,
10212
+ $p,
10213
+ jp
10177
10214
  );
10178
10215
  }
10179
10216
  async trackLabelsOf(t) {
@@ -10201,7 +10238,7 @@ let Cp = class {
10201
10238
  ), e;
10202
10239
  }
10203
10240
  };
10204
- const $p = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key: n })) : e.parseJSON(Ir).map((n) => ({ variant: t, key: n.key, value: n })), ye = s.string().uuid(), hn = s.object({
10241
+ const jp = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key: n })) : e.parseJSON(Ir).map((n) => ({ variant: t, key: n.key, value: n })), ye = s.string().uuid(), hn = s.object({
10205
10242
  key: ye,
10206
10243
  name: s.string().min(1),
10207
10244
  timeRange: le.z,
@@ -10216,22 +10253,22 @@ const $p = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
10216
10253
  actual: t,
10217
10254
  empty: n
10218
10255
  };
10219
- }, Ol = "range", Tl = "range-alias", Rp = (t) => new $({ type: Ol, key: t }), jp = (t) => new $({ type: Tl, key: t }), Bp = "sy_range_alias_set", Mp = "sy_range_alias_delete", Dp = s.object({
10256
+ }, Ol = "range", Tl = "range-alias", Bp = (t) => new $({ type: Ol, key: t }), Mp = (t) => new $({ type: Tl, key: t }), Dp = "sy_range_alias_set", Pp = "sy_range_alias_delete", Up = s.object({
10220
10257
  range: ye,
10221
10258
  aliases: s.string().array()
10222
- }), Pp = s.object({
10259
+ }), Lp = s.object({
10223
10260
  aliases: s.record(s.string(), Ve)
10224
- }), Up = s.object({
10261
+ }), _p = s.object({
10225
10262
  range: ye,
10226
10263
  aliases: s.record(Ve.or(s.string()), s.string())
10227
- }), Lp = s.unknown(), _p = s.object({
10264
+ }), Yp = s.unknown(), Fp = s.object({
10228
10265
  range: ye,
10229
10266
  channels: Ve.array()
10230
- }), Fp = s.unknown(), Yp = s.object({
10267
+ }), qp = s.unknown(), zp = s.object({
10231
10268
  range: ye
10232
- }), qp = s.object({
10269
+ }), Vp = s.object({
10233
10270
  aliases: s.record(s.string(), s.string())
10234
- }), Ft = class Yt {
10271
+ }), Yt = class Ft {
10235
10272
  constructor(e, n, r) {
10236
10273
  l(this, "frameClient"), l(this, "cache", /* @__PURE__ */ new Map()), l(this, "client"), l(this, "rangeKey"), this.rangeKey = e, this.cache = /* @__PURE__ */ new Map(), this.client = r, this.frameClient = n;
10237
10274
  }
@@ -10249,76 +10286,76 @@ const $p = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
10249
10286
  if (n.length === 0) return i;
10250
10287
  const a = await v(
10251
10288
  this.client,
10252
- Yt.RESOLVE_ENDPOINT,
10289
+ Ft.RESOLVE_ENDPOINT,
10253
10290
  { range: this.rangeKey, aliases: n },
10254
- Dp,
10255
- Pp
10291
+ Up,
10292
+ Lp
10256
10293
  );
10257
10294
  return Object.entries(a.aliases).forEach(([o, c]) => this.cache.set(o, c)), r ? a.aliases[n[0]] : { ...i, ...a.aliases };
10258
10295
  }
10259
10296
  async set(e) {
10260
10297
  await v(
10261
10298
  this.client,
10262
- Yt.SET_ENDPOINT,
10299
+ Ft.SET_ENDPOINT,
10263
10300
  { range: this.rangeKey, aliases: e },
10264
- Up,
10265
- Lp
10301
+ _p,
10302
+ Yp
10266
10303
  );
10267
10304
  }
10268
10305
  async list() {
10269
10306
  return (await v(
10270
10307
  this.client,
10271
- Yt.LIST_ENDPOINT,
10308
+ Ft.LIST_ENDPOINT,
10272
10309
  { range: this.rangeKey },
10273
- Yp,
10274
- qp
10310
+ zp,
10311
+ Vp
10275
10312
  )).aliases;
10276
10313
  }
10277
10314
  async delete(e) {
10278
10315
  await v(
10279
10316
  this.client,
10280
- Yt.DELETE_ENDPOINT,
10317
+ Ft.DELETE_ENDPOINT,
10281
10318
  { range: this.rangeKey, channels: e },
10282
- _p,
10283
- Fp
10319
+ Fp,
10320
+ qp
10284
10321
  );
10285
10322
  }
10286
10323
  async openChangeTracker() {
10287
10324
  return await gt(
10288
10325
  this.frameClient,
10289
- Bp,
10290
- Mp,
10291
- Gp(this.rangeKey)
10326
+ Dp,
10327
+ Pp,
10328
+ Jp(this.rangeKey)
10292
10329
  );
10293
10330
  }
10294
10331
  };
10295
- l(Ft, "SET_ENDPOINT", "/range/alias/set"), l(Ft, "RESOLVE_ENDPOINT", "/range/alias/resolve"), l(Ft, "LIST_ENDPOINT", "/range/alias/list"), l(Ft, "DELETE_ENDPOINT", "/range/alias/delete");
10296
- let zp = Ft;
10297
- const Vp = s.object({
10332
+ l(Yt, "SET_ENDPOINT", "/range/alias/set"), l(Yt, "RESOLVE_ENDPOINT", "/range/alias/resolve"), l(Yt, "LIST_ENDPOINT", "/range/alias/list"), l(Yt, "DELETE_ENDPOINT", "/range/alias/delete");
10333
+ let Wp = Yt;
10334
+ const Gp = s.object({
10298
10335
  range: ye,
10299
10336
  channel: Ve,
10300
10337
  alias: s.string()
10301
- }), Wp = "---", Gp = (t) => (e, n) => e === "delete" ? n.toStrings().filter((r) => r.split(Wp)[0] === t).map((r) => ({
10338
+ }), Zp = "---", Jp = (t) => (e, n) => e === "delete" ? n.toStrings().filter((r) => r.split(Zp)[0] === t).map((r) => ({
10302
10339
  variant: e,
10303
10340
  key: r,
10304
10341
  value: void 0
10305
- })) : n.parseJSON(Vp).map((r) => ({
10342
+ })) : n.parseJSON(Gp).map((r) => ({
10306
10343
  variant: e,
10307
10344
  key: r.alias,
10308
10345
  value: r
10309
- })), Zp = s.object({
10346
+ })), Kp = s.object({
10310
10347
  range: ye,
10311
10348
  keys: s.string().array()
10312
10349
  }), Xs = s.object({
10313
10350
  range: ye,
10314
10351
  key: s.string(),
10315
10352
  value: s.string()
10316
- }), Jp = s.object({
10353
+ }), Hp = s.object({
10317
10354
  pairs: we(Xs)
10318
- }), Kp = s.object({
10355
+ }), Xp = s.object({
10319
10356
  range: ye,
10320
10357
  pairs: Xs.array()
10321
- }), Hp = s.object({
10358
+ }), Qp = s.object({
10322
10359
  range: ye,
10323
10360
  keys: s.string().array()
10324
10361
  }), Hn = class Xn {
@@ -10330,8 +10367,8 @@ const Vp = s.object({
10330
10367
  this.client,
10331
10368
  Xn.GET_ENDPOINT,
10332
10369
  { range: this.rangeKey, keys: O(e) },
10333
- Zp,
10334
- Jp
10370
+ Kp,
10371
+ Hp
10335
10372
  );
10336
10373
  return typeof e == "string" ? n.pairs[0].value : Object.fromEntries(n.pairs.map((r) => [r.key, r.value]));
10337
10374
  }
@@ -10348,7 +10385,7 @@ const Vp = s.object({
10348
10385
  this.client,
10349
10386
  Xn.SET_ENDPOINT,
10350
10387
  { range: this.rangeKey, pairs: r },
10351
- Kp,
10388
+ Xp,
10352
10389
  s.unknown()
10353
10390
  );
10354
10391
  }
@@ -10357,7 +10394,7 @@ const Vp = s.object({
10357
10394
  this.client,
10358
10395
  Xn.DELETE_ENDPOINT,
10359
10396
  { range: this.rangeKey, keys: O(e) },
10360
- Hp,
10397
+ Qp,
10361
10398
  s.unknown()
10362
10399
  );
10363
10400
  }
@@ -10464,14 +10501,14 @@ class Sl {
10464
10501
  }), e.setCloser(async () => await a.close()), e;
10465
10502
  }
10466
10503
  }
10467
- const Xp = s.object({
10504
+ const em = s.object({
10468
10505
  keys: ye.array().optional(),
10469
10506
  names: s.array(s.string()).optional(),
10470
10507
  term: s.string().optional(),
10471
10508
  overlapsWith: le.z.optional(),
10472
10509
  limit: s.number().int().optional(),
10473
10510
  offset: s.number().int().optional()
10474
- }), Qp = "/range/retrieve", em = s.object({
10511
+ }), tm = "/range/retrieve", nm = s.object({
10475
10512
  ranges: we(hn)
10476
10513
  });
10477
10514
  let Nl = class {
@@ -10513,10 +10550,10 @@ let Nl = class {
10513
10550
  async execRetrieve(t) {
10514
10551
  const { ranges: e } = await v(
10515
10552
  this.unaryClient,
10516
- Qp,
10553
+ tm,
10517
10554
  t,
10518
- Xp,
10519
- em
10555
+ em,
10556
+ nm
10520
10557
  );
10521
10558
  return this.sugarMany(e);
10522
10559
  }
@@ -10537,7 +10574,7 @@ let Nl = class {
10537
10574
  t.color,
10538
10575
  this.frameClient,
10539
10576
  new Is(t.key, this.unaryClient, this.frameClient),
10540
- new zp(t.key, this.frameClient, this.unaryClient),
10577
+ new Wp(t.key, this.frameClient, this.unaryClient),
10541
10578
  this.channels,
10542
10579
  this.labelClient,
10543
10580
  this.ontologyClient,
@@ -10568,17 +10605,17 @@ let Nl = class {
10568
10605
  });
10569
10606
  }
10570
10607
  };
10571
- const tm = s.object({
10608
+ const rm = s.object({
10572
10609
  ranges: hn.array()
10573
- }), nm = s.object({
10610
+ }), sm = s.object({
10574
10611
  parent: pe.optional(),
10575
10612
  ranges: bl.array()
10576
- }), rm = s.object({
10613
+ }), im = s.object({
10577
10614
  keys: ye.array()
10578
- }), sm = s.object({}), im = s.object({
10615
+ }), am = s.object({}), om = s.object({
10579
10616
  key: ye,
10580
10617
  name: s.string()
10581
- }), am = s.object({}), om = "/range/create", lm = "/range/delete", cm = "/range/rename";
10618
+ }), lm = s.object({}), cm = "/range/create", um = "/range/delete", hm = "/range/rename";
10582
10619
  let Il = class {
10583
10620
  constructor(t) {
10584
10621
  l(this, "client"), this.client = t;
@@ -10586,32 +10623,32 @@ let Il = class {
10586
10623
  async rename(t, e) {
10587
10624
  await v(
10588
10625
  this.client,
10589
- cm,
10626
+ hm,
10590
10627
  { key: t, name: e },
10591
- im,
10592
- am
10628
+ om,
10629
+ lm
10593
10630
  );
10594
10631
  }
10595
10632
  async create(t, e) {
10596
10633
  return (await v(
10597
10634
  this.client,
10598
- om,
10635
+ cm,
10599
10636
  { ranges: t, ...e },
10600
- nm,
10601
- tm
10637
+ sm,
10638
+ rm
10602
10639
  )).ranges;
10603
10640
  }
10604
10641
  async delete(t) {
10605
10642
  await v(
10606
10643
  this.client,
10607
- lm,
10644
+ um,
10608
10645
  { keys: t },
10609
- rm,
10610
- sm
10646
+ im,
10647
+ am
10611
10648
  );
10612
10649
  }
10613
10650
  };
10614
- const Cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10651
+ const $v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10615
10652
  __proto__: null,
10616
10653
  ALIAS_ONTOLOGY_TYPE: Tl,
10617
10654
  Client: Nl,
@@ -10623,14 +10660,14 @@ const Cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10623
10660
  keyZ: ye,
10624
10661
  newPayloadZ: bl,
10625
10662
  payloadZ: hn,
10626
- rangeAliasOntologyID: jp,
10627
- rangeOntologyID: Rp
10628
- }, Symbol.toStringTag, { value: "Module" })), um = "/api/v1/";
10629
- class hm {
10663
+ rangeAliasOntologyID: Mp,
10664
+ rangeOntologyID: Bp
10665
+ }, Symbol.toStringTag, { value: "Module" })), dm = "/api/v1/";
10666
+ class fm {
10630
10667
  constructor(e, n = !1) {
10631
- l(this, "url"), l(this, "unary"), l(this, "stream"), l(this, "secure"), this.secure = n, this.url = e.child(um);
10668
+ l(this, "url"), l(this, "unary"), l(this, "stream"), l(this, "secure"), this.secure = n, this.url = e.child(dm);
10632
10669
  const r = new ft.JSONCodec();
10633
- this.unary = new Vh(this.url, r, this.secure), this.stream = new ed(this.url, r, this.secure);
10670
+ this.unary = new Gh(this.url, r, this.secure), this.stream = new nd(this.url, r, this.secure);
10634
10671
  }
10635
10672
  use(...e) {
10636
10673
  this.unary.use(...e), this.stream.use(...e);
@@ -10640,14 +10677,14 @@ const Qs = s.string().uuid(), ei = s.object({
10640
10677
  key: s.string(),
10641
10678
  name: s.string(),
10642
10679
  data: yr.or(s.string().transform((t) => JSON.parse(t)))
10643
- }), dm = s.object({ keys: s.string().array() }), fm = s.object({ linePlots: ei.array() });
10644
- let ym = class {
10680
+ }), ym = s.object({ keys: s.string().array() }), gm = s.object({ linePlots: ei.array() });
10681
+ let pm = class {
10645
10682
  constructor(t) {
10646
10683
  l(this, "ENDPOINT", "/workspace/lineplot/retrieve"), l(this, "client"), this.client = t;
10647
10684
  }
10648
10685
  async retrieve(t) {
10649
10686
  const e = O(t);
10650
- return (await v(this.client, this.ENDPOINT, { keys: e }, dm, fm)).linePlots;
10687
+ return (await v(this.client, this.ENDPOINT, { keys: e }, ym, gm)).linePlots;
10651
10688
  }
10652
10689
  };
10653
10690
  const We = s.string().uuid(), El = (t) => JSON.parse(t), kl = s.object({
@@ -10656,24 +10693,24 @@ const We = s.string().uuid(), El = (t) => JSON.parse(t), kl = s.object({
10656
10693
  layout: yr.or(s.string().transform((t) => El(t)))
10657
10694
  }), Al = kl.omit({ layout: !0 }).extend({
10658
10695
  layout: s.string().transform((t) => El(t))
10659
- }), gm = ei.partial({ key: !0 }).transform((t) => ({
10696
+ }), mm = ei.partial({ key: !0 }).transform((t) => ({
10660
10697
  ...t,
10661
10698
  data: JSON.stringify(t.data)
10662
- })), pm = s.object({
10699
+ })), wm = s.object({
10663
10700
  workspace: We,
10664
- linePlots: gm.array()
10665
- }), mm = s.object({
10701
+ linePlots: mm.array()
10702
+ }), bm = s.object({
10666
10703
  linePlots: ei.array()
10667
- }), wm = s.object({
10704
+ }), vm = s.object({
10668
10705
  keys: Qs.array()
10669
- }), bm = s.object({}), vm = s.object({
10706
+ }), Om = s.object({}), Tm = s.object({
10670
10707
  key: Qs,
10671
10708
  name: s.string()
10672
- }), Om = s.object({}), Tm = s.object({
10709
+ }), Sm = s.object({}), Nm = s.object({
10673
10710
  key: Qs,
10674
10711
  data: s.string()
10675
- }), Sm = s.object({}), Nm = "/workspace/lineplot/create", Im = "/workspace/lineplot/delete", Em = "/workspace/lineplot/rename", km = "/workspace/lineplot/set-data";
10676
- let Am = class {
10712
+ }), Im = s.object({}), Em = "/workspace/lineplot/create", km = "/workspace/lineplot/delete", Am = "/workspace/lineplot/rename", xm = "/workspace/lineplot/set-data";
10713
+ let Cm = class {
10677
10714
  constructor(t) {
10678
10715
  l(this, "client"), this.client = t;
10679
10716
  }
@@ -10681,43 +10718,43 @@ let Am = class {
10681
10718
  const n = { ...e, data: JSON.stringify(e.data) };
10682
10719
  return (await v(
10683
10720
  this.client,
10684
- Nm,
10721
+ Em,
10685
10722
  { workspace: t, linePlots: [n] },
10686
- pm,
10687
- mm
10723
+ wm,
10724
+ bm
10688
10725
  )).linePlots[0];
10689
10726
  }
10690
10727
  async delete(t) {
10691
10728
  const e = O(t);
10692
10729
  await v(
10693
10730
  this.client,
10694
- Im,
10731
+ km,
10695
10732
  { keys: e },
10696
- wm,
10697
- bm
10733
+ vm,
10734
+ Om
10698
10735
  );
10699
10736
  }
10700
10737
  async rename(t, e) {
10701
10738
  await v(
10702
10739
  this.client,
10703
- Em,
10740
+ Am,
10704
10741
  { key: t, name: e },
10705
- vm,
10706
- Om
10742
+ Tm,
10743
+ Sm
10707
10744
  );
10708
10745
  }
10709
10746
  async setData(t, e) {
10710
10747
  await v(
10711
10748
  this.client,
10712
- km,
10749
+ xm,
10713
10750
  { key: t, data: JSON.stringify(e) },
10714
- Tm,
10715
- Sm
10751
+ Nm,
10752
+ Im
10716
10753
  );
10717
10754
  }
10718
- }, xm = class {
10755
+ }, $m = class {
10719
10756
  constructor(t) {
10720
- l(this, "writer"), l(this, "retriever"), this.writer = new Am(t), this.retriever = new ym(t);
10757
+ l(this, "writer"), l(this, "retriever"), this.writer = new Cm(t), this.retriever = new pm(t);
10721
10758
  }
10722
10759
  async create(t, e) {
10723
10760
  return await this.writer.create(t, e);
@@ -10736,7 +10773,7 @@ let Am = class {
10736
10773
  await this.writer.delete(t);
10737
10774
  }
10738
10775
  };
10739
- const ti = s.string().uuid(), Cm = s.object({
10776
+ const ti = s.string().uuid(), Rm = s.object({
10740
10777
  key: s.string(),
10741
10778
  name: s.string(),
10742
10779
  data: yr.or(s.string().transform((t) => JSON.parse(t)))
@@ -10744,8 +10781,8 @@ const ti = s.string().uuid(), Cm = s.object({
10744
10781
  key: s.string(),
10745
10782
  name: s.string(),
10746
10783
  data: s.string().transform((t) => JSON.parse(t))
10747
- }), $m = s.object({ keys: s.string().array() }), Rm = s.object({ logs: xl.array() });
10748
- let jm = class {
10784
+ }), jm = s.object({ keys: s.string().array() }), Bm = s.object({ logs: xl.array() });
10785
+ let Mm = class {
10749
10786
  constructor(t) {
10750
10787
  l(this, "ENDPOINT", "/workspace/log/retrieve"), l(this, "client"), this.client = t;
10751
10788
  }
@@ -10754,29 +10791,29 @@ let jm = class {
10754
10791
  this.client,
10755
10792
  this.ENDPOINT,
10756
10793
  { keys: O(t) },
10757
- $m,
10758
- Rm
10794
+ jm,
10795
+ Bm
10759
10796
  )).logs;
10760
10797
  }
10761
10798
  };
10762
- const Bm = Cm.partial({ key: !0 }).transform((t) => ({
10799
+ const Dm = Rm.partial({ key: !0 }).transform((t) => ({
10763
10800
  ...t,
10764
10801
  data: JSON.stringify(t.data)
10765
- })), Mm = s.object({
10802
+ })), Pm = s.object({
10766
10803
  workspace: We,
10767
- logs: Bm.array()
10768
- }), Dm = s.object({
10804
+ logs: Dm.array()
10805
+ }), Um = s.object({
10769
10806
  logs: xl.array()
10770
- }), Pm = s.object({
10807
+ }), Lm = s.object({
10771
10808
  keys: ti.array()
10772
- }), Um = s.object({}), Lm = s.object({
10809
+ }), _m = s.object({}), Ym = s.object({
10773
10810
  key: ti,
10774
10811
  name: s.string()
10775
- }), _m = s.object({}), Fm = s.object({
10812
+ }), Fm = s.object({}), qm = s.object({
10776
10813
  key: ti,
10777
10814
  data: s.string()
10778
- }), Ym = s.object({}), qm = "/workspace/log/create", zm = "/workspace/log/delete", Vm = "/workspace/log/rename", Wm = "/workspace/log/set-data";
10779
- let Gm = class {
10815
+ }), zm = s.object({}), Vm = "/workspace/log/create", Wm = "/workspace/log/delete", Gm = "/workspace/log/rename", Zm = "/workspace/log/set-data";
10816
+ let Jm = class {
10780
10817
  constructor(t) {
10781
10818
  l(this, "client"), this.client = t;
10782
10819
  }
@@ -10784,43 +10821,43 @@ let Gm = class {
10784
10821
  const n = { ...e, data: JSON.stringify(e.data) };
10785
10822
  return (await v(
10786
10823
  this.client,
10787
- qm,
10824
+ Vm,
10788
10825
  { workspace: t, logs: [n] },
10789
- Mm,
10790
- Dm
10826
+ Pm,
10827
+ Um
10791
10828
  )).logs[0];
10792
10829
  }
10793
10830
  async delete(t) {
10794
10831
  const e = O(t);
10795
10832
  await v(
10796
10833
  this.client,
10797
- zm,
10834
+ Wm,
10798
10835
  { keys: e },
10799
- Pm,
10800
- Um
10836
+ Lm,
10837
+ _m
10801
10838
  );
10802
10839
  }
10803
10840
  async rename(t, e) {
10804
10841
  await v(
10805
10842
  this.client,
10806
- Vm,
10843
+ Gm,
10807
10844
  { key: t, name: e },
10808
- Lm,
10809
- _m
10845
+ Ym,
10846
+ Fm
10810
10847
  );
10811
10848
  }
10812
10849
  async setData(t, e) {
10813
10850
  await v(
10814
10851
  this.client,
10815
- Wm,
10852
+ Zm,
10816
10853
  { key: t, data: JSON.stringify(e) },
10817
- Fm,
10818
- Ym
10854
+ qm,
10855
+ zm
10819
10856
  );
10820
10857
  }
10821
- }, Zm = class {
10858
+ }, Km = class {
10822
10859
  constructor(t) {
10823
- l(this, "writer"), l(this, "retriever"), this.writer = new Gm(t), this.retriever = new jm(t);
10860
+ l(this, "writer"), l(this, "retriever"), this.writer = new Jm(t), this.retriever = new Mm(t);
10824
10861
  }
10825
10862
  async create(t, e) {
10826
10863
  return await this.writer.create(t, e);
@@ -10839,15 +10876,15 @@ let Gm = class {
10839
10876
  await this.writer.delete(t);
10840
10877
  }
10841
10878
  };
10842
- const Jm = s.object({
10879
+ const Hm = s.object({
10843
10880
  keys: We.array().optional(),
10844
10881
  search: s.string().optional(),
10845
10882
  author: s.string().uuid().optional(),
10846
10883
  offset: s.number().optional(),
10847
10884
  limit: s.number().optional()
10848
- }), Km = s.object({ workspaces: we(Al) });
10885
+ }), Xm = s.object({ workspaces: we(Al) });
10849
10886
  var bn;
10850
- let Hm = (bn = class {
10887
+ let Qm = (bn = class {
10851
10888
  constructor(t) {
10852
10889
  l(this, "client"), this.client = t;
10853
10890
  }
@@ -10869,12 +10906,12 @@ let Hm = (bn = class {
10869
10906
  this.client,
10870
10907
  bn.ENDPOINT,
10871
10908
  t,
10872
- Jm,
10873
- Km
10909
+ Hm,
10910
+ Xm
10874
10911
  )).workspaces;
10875
10912
  }
10876
10913
  }, l(bn, "ENDPOINT", "/workspace/retrieve"), bn);
10877
- const Er = s.string().uuid(), Xm = s.object({
10914
+ const Er = s.string().uuid(), ew = s.object({
10878
10915
  key: s.string(),
10879
10916
  name: s.string(),
10880
10917
  data: yr.or(s.string().transform((t) => JSON.parse(t))),
@@ -10884,8 +10921,8 @@ const Er = s.string().uuid(), Xm = s.object({
10884
10921
  name: s.string(),
10885
10922
  snapshot: s.boolean(),
10886
10923
  data: s.string().transform((t) => JSON.parse(t))
10887
- }), Qm = s.object({ keys: s.string().array() }), ew = s.object({ schematics: ni.array() });
10888
- class tw {
10924
+ }), tw = s.object({ keys: s.string().array() }), nw = s.object({ schematics: ni.array() });
10925
+ class rw {
10889
10926
  constructor(e) {
10890
10927
  l(this, "ENDPOINT", "/workspace/schematic/retrieve"), l(this, "client"), this.client = e;
10891
10928
  }
@@ -10894,35 +10931,35 @@ class tw {
10894
10931
  this.client,
10895
10932
  this.ENDPOINT,
10896
10933
  { keys: O(e) },
10897
- Qm,
10898
- ew
10934
+ tw,
10935
+ nw
10899
10936
  )).schematics;
10900
10937
  }
10901
10938
  }
10902
- const nw = Xm.partial({ key: !0, snapshot: !0 }).transform((t) => ({
10939
+ const sw = ew.partial({ key: !0, snapshot: !0 }).transform((t) => ({
10903
10940
  ...t,
10904
10941
  data: JSON.stringify(t.data)
10905
- })), rw = s.object({
10942
+ })), iw = s.object({
10906
10943
  workspace: We,
10907
- schematics: nw.array()
10908
- }), sw = s.object({
10944
+ schematics: sw.array()
10945
+ }), aw = s.object({
10909
10946
  schematics: ni.array()
10910
- }), iw = s.object({
10947
+ }), ow = s.object({
10911
10948
  keys: Er.array()
10912
- }), aw = s.object({}), ow = s.object({
10949
+ }), lw = s.object({}), cw = s.object({
10913
10950
  key: Er,
10914
10951
  name: s.string()
10915
- }), lw = s.object({}), cw = s.object({
10952
+ }), uw = s.object({}), hw = s.object({
10916
10953
  key: Er,
10917
10954
  data: s.string()
10918
- }), uw = s.object({}), hw = s.object({
10955
+ }), dw = s.object({}), fw = s.object({
10919
10956
  key: Er,
10920
10957
  name: s.string(),
10921
10958
  snapshot: s.boolean()
10922
- }), dw = s.object({
10959
+ }), yw = s.object({
10923
10960
  schematic: ni
10924
- }), fw = "/workspace/schematic/create", yw = "/workspace/schematic/delete", gw = "/workspace/schematic/rename", pw = "/workspace/schematic/set-data", mw = "/workspace/schematic/copy";
10925
- let ww = class {
10961
+ }), gw = "/workspace/schematic/create", pw = "/workspace/schematic/delete", mw = "/workspace/schematic/rename", ww = "/workspace/schematic/set-data", bw = "/workspace/schematic/copy";
10962
+ let vw = class {
10926
10963
  constructor(t) {
10927
10964
  l(this, "client"), this.client = t;
10928
10965
  }
@@ -10930,52 +10967,52 @@ let ww = class {
10930
10967
  const n = { ...e, data: JSON.stringify(e.data) };
10931
10968
  return (await v(
10932
10969
  this.client,
10933
- fw,
10970
+ gw,
10934
10971
  { workspace: t, schematics: [n] },
10935
- rw,
10936
- sw
10972
+ iw,
10973
+ aw
10937
10974
  )).schematics[0];
10938
10975
  }
10939
10976
  async copy(t, e, n) {
10940
10977
  return (await v(
10941
10978
  this.client,
10942
- mw,
10979
+ bw,
10943
10980
  { key: t, name: e, snapshot: n },
10944
- hw,
10945
- dw
10981
+ fw,
10982
+ yw
10946
10983
  )).schematic;
10947
10984
  }
10948
10985
  async delete(t) {
10949
10986
  const e = O(t);
10950
10987
  await v(
10951
10988
  this.client,
10952
- yw,
10989
+ pw,
10953
10990
  { keys: e },
10954
- iw,
10955
- aw
10991
+ ow,
10992
+ lw
10956
10993
  );
10957
10994
  }
10958
10995
  async rename(t, e) {
10959
10996
  await v(
10960
10997
  this.client,
10961
- gw,
10998
+ mw,
10962
10999
  { key: t, name: e },
10963
- ow,
10964
- lw
11000
+ cw,
11001
+ uw
10965
11002
  );
10966
11003
  }
10967
11004
  async setData(t, e) {
10968
11005
  await v(
10969
11006
  this.client,
10970
- pw,
11007
+ ww,
10971
11008
  { key: t, data: JSON.stringify(e) },
10972
- cw,
10973
- uw
11009
+ hw,
11010
+ dw
10974
11011
  );
10975
11012
  }
10976
- }, bw = class {
11013
+ }, Ow = class {
10977
11014
  constructor(t) {
10978
- l(this, "writer"), l(this, "retriever"), this.writer = new ww(t), this.retriever = new tw(t);
11015
+ l(this, "writer"), l(this, "retriever"), this.writer = new vw(t), this.retriever = new rw(t);
10979
11016
  }
10980
11017
  async create(t, e) {
10981
11018
  return await this.writer.create(t, e);
@@ -10997,66 +11034,66 @@ let ww = class {
10997
11034
  return await this.writer.copy(t, e, n);
10998
11035
  }
10999
11036
  };
11000
- const vw = kl.partial({ key: !0 }).transform((t) => ({
11037
+ const Tw = kl.partial({ key: !0 }).transform((t) => ({
11001
11038
  ...t,
11002
11039
  layout: JSON.stringify(t.layout)
11003
- })), Ow = s.object({
11004
- workspaces: vw.array()
11005
- }), Tw = s.object({
11040
+ })), Sw = s.object({
11041
+ workspaces: Tw.array()
11042
+ }), Nw = s.object({
11006
11043
  workspaces: Al.array()
11007
- }), Sw = s.object({
11044
+ }), Iw = s.object({
11008
11045
  keys: We.array()
11009
- }), Nw = s.object({}), Iw = s.object({
11046
+ }), Ew = s.object({}), kw = s.object({
11010
11047
  key: We,
11011
11048
  name: s.string()
11012
- }), Ew = s.object({}), kw = s.object({
11049
+ }), Aw = s.object({}), xw = s.object({
11013
11050
  key: We,
11014
11051
  layout: s.string()
11015
- }), Aw = s.object({}), xw = "/workspace/create", Cw = "/workspace/delete", $w = "/workspace/rename", Rw = "/workspace/set-layout";
11016
- class jw {
11052
+ }), Cw = s.object({}), $w = "/workspace/create", Rw = "/workspace/delete", jw = "/workspace/rename", Bw = "/workspace/set-layout";
11053
+ class Mw {
11017
11054
  constructor(e) {
11018
11055
  l(this, "client"), this.client = e;
11019
11056
  }
11020
11057
  async create(e) {
11021
11058
  return (await v(
11022
11059
  this.client,
11023
- xw,
11060
+ $w,
11024
11061
  { workspaces: O(e) },
11025
- Ow,
11026
- Tw
11062
+ Sw,
11063
+ Nw
11027
11064
  )).workspaces;
11028
11065
  }
11029
11066
  async delete(e) {
11030
11067
  await v(
11031
11068
  this.client,
11032
- Cw,
11069
+ Rw,
11033
11070
  { keys: O(e) },
11034
- Sw,
11035
- Nw
11071
+ Iw,
11072
+ Ew
11036
11073
  );
11037
11074
  }
11038
11075
  async rename(e, n) {
11039
11076
  await v(
11040
11077
  this.client,
11041
- $w,
11078
+ jw,
11042
11079
  { key: e, name: n },
11043
- Iw,
11044
- Ew
11080
+ kw,
11081
+ Aw
11045
11082
  );
11046
11083
  }
11047
11084
  async setLayout(e, n) {
11048
11085
  await v(
11049
11086
  this.client,
11050
- Rw,
11087
+ Bw,
11051
11088
  { key: e, layout: JSON.stringify(n) },
11052
- kw,
11053
- Aw
11089
+ xw,
11090
+ Cw
11054
11091
  );
11055
11092
  }
11056
11093
  }
11057
- class Bw {
11094
+ class Dw {
11058
11095
  constructor(e) {
11059
- l(this, "type", "workspace"), l(this, "schematic"), l(this, "linePlot"), l(this, "log"), l(this, "retriever"), l(this, "writer"), this.schematic = new bw(e), this.linePlot = new xm(e), this.retriever = new Hm(e), this.log = new Zm(e), this.writer = new jw(e);
11096
+ l(this, "type", "workspace"), l(this, "schematic"), l(this, "linePlot"), l(this, "log"), l(this, "retriever"), l(this, "writer"), this.schematic = new Ow(e), this.linePlot = new $m(e), this.retriever = new Qm(e), this.log = new Km(e), this.writer = new Mw(e);
11060
11097
  }
11061
11098
  async search(e) {
11062
11099
  return await this.retriever.search(e);
@@ -11085,7 +11122,7 @@ class Bw {
11085
11122
  await this.writer.delete(e);
11086
11123
  }
11087
11124
  }
11088
- const Mw = s.object({
11125
+ const Pw = s.object({
11089
11126
  host: s.string({
11090
11127
  required_error: "Host is required"
11091
11128
  }).min(1, "Host is required"),
@@ -11102,7 +11139,7 @@ const Mw = s.object({
11102
11139
  secure: s.boolean().optional().default(!1),
11103
11140
  name: s.string().optional()
11104
11141
  });
11105
- class Dw extends Ag {
11142
+ class Uw extends Cg {
11106
11143
  /**
11107
11144
  * @param props.host - Hostname of a node in the cluster.
11108
11145
  * @param props.port - Port of the node in the cluster.
@@ -11119,35 +11156,35 @@ class Dw extends Ag {
11119
11156
  * the client from polling the cluster for connectivity information.
11120
11157
  */
11121
11158
  constructor(e) {
11122
- const n = Mw.parse(e), { host: r, port: i, username: a, password: o, connectivityPollFrequency: c, secure: u } = n, h = new hm(new Tf({ host: r, port: Number(i) }), u);
11123
- h.use(Bf);
11159
+ const n = Pw.parse(e), { host: r, port: i, username: a, password: o, connectivityPollFrequency: c, secure: u } = n, h = new fm(new Nf({ host: r, port: Number(i) }), u);
11160
+ h.use(Df);
11124
11161
  let f;
11125
- a != null && o != null && (f = new ig(h.unary, { username: a, password: o }), h.use(f.middleware()));
11162
+ a != null && o != null && (f = new og(h.unary, { username: a, password: o }), h.use(f.middleware()));
11126
11163
  const d = new qs(
11127
- new Ys(h.unary)
11164
+ new Fs(h.unary)
11128
11165
  ), A = new ul(h.unary, d);
11129
11166
  super(h.stream, h.unary, d), l(this, "createdAt"), l(this, "props"), l(this, "ranges"), l(this, "channels"), l(this, "auth"), l(this, "user"), l(this, "access"), l(this, "connectivity"), l(this, "ontology"), l(this, "workspaces"), l(this, "labels"), l(this, "hardware"), l(this, "control"), l(this, "transport"), l(this, "clientVersion", "0.33.0"), this.createdAt = C.now(), this.props = n, this.auth = f, this.transport = h, this.channels = new cl(this, d, h.unary, A), this.connectivity = new fl(
11130
11167
  h.unary,
11131
11168
  c,
11132
11169
  this.clientVersion,
11133
11170
  n.name
11134
- ), this.control = new ml(this), this.ontology = new Hf(h.unary, this);
11171
+ ), this.control = new ml(this), this.ontology = new Qf(h.unary, this);
11135
11172
  const D = new Il(this.transport.unary);
11136
- this.labels = new Cp(this.transport.unary, this, this.ontology), this.ranges = new Nl(
11173
+ this.labels = new Rp(this.transport.unary, this, this.ontology), this.ranges = new Nl(
11137
11174
  this,
11138
11175
  D,
11139
11176
  this.transport.unary,
11140
11177
  d,
11141
11178
  this.labels,
11142
11179
  this.ontology
11143
- ), this.access = new dy(this.transport.unary), this.user = new Xy(this.transport.unary), this.workspaces = new Bw(this.transport.unary);
11144
- const se = new zg(this.transport.unary, this), j = new yp(
11180
+ ), this.access = new yy(this.transport.unary), this.user = new eg(this.transport.unary), this.workspaces = new Dw(this.transport.unary);
11181
+ const se = new Wg(this.transport.unary, this), j = new pp(
11145
11182
  this.transport.unary,
11146
11183
  this,
11147
11184
  this.ontology,
11148
11185
  this.ranges
11149
- ), zl = new Xg(this.transport.unary, this, j);
11150
- this.hardware = new jg(j, zl, se);
11186
+ ), zl = new ep(this.transport.unary, this, j);
11187
+ this.hardware = new Mg(j, zl, se);
11151
11188
  }
11152
11189
  get key() {
11153
11190
  return this.createdAt.valueOf().toString();
@@ -11156,8 +11193,8 @@ class Dw extends Ag {
11156
11193
  this.connectivity.stopChecking();
11157
11194
  }
11158
11195
  }
11159
- l(Dw, "connectivity", fl);
11160
- const $v = ct.Authority, va = (t, e, n = "") => {
11196
+ l(Uw, "connectivity", fl);
11197
+ const Rv = ct.Authority, va = (t, e, n = "") => {
11161
11198
  try {
11162
11199
  return t.parse(e);
11163
11200
  } catch (r) {
@@ -11169,7 +11206,7 @@ const $v = ct.Authority, va = (t, e, n = "") => {
11169
11206
  throw r;
11170
11207
  }
11171
11208
  };
11172
- var Pw = Object.defineProperty, Uw = (t, e, n) => e in t ? Pw(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ee = (t, e, n) => Uw(t, typeof e != "symbol" ? e + "" : e, n);
11209
+ var Lw = Object.defineProperty, _w = (t, e, n) => e in t ? Lw(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ee = (t, e, n) => _w(t, typeof e != "symbol" ? e + "" : e, n);
11173
11210
  const Es = class Cl {
11174
11211
  constructor(e, n, r = "", i = !1) {
11175
11212
  ee(this, "_noop", !1), ee(this, "key"), ee(this, "path"), ee(this, "serviceName"), this.key = e, this.path = n, this.serviceName = r, this._noop = i;
@@ -11186,10 +11223,10 @@ const Es = class Cl {
11186
11223
  };
11187
11224
  ee(Es, "NOOP", new Es("", "", ""));
11188
11225
  let ri = Es;
11189
- const ks = ["debug", "info", "warn", "error"], Lw = (t) => {
11226
+ const ks = ["debug", "info", "warn", "error"], Yw = (t) => {
11190
11227
  const e = ks.indexOf(t);
11191
11228
  return ({ level: n }) => ks.indexOf(n) >= e;
11192
- }, _w = (t) => {
11229
+ }, Fw = (t) => {
11193
11230
  const { include: e, exclude: n } = t;
11194
11231
  return ({ path: r }) => !(e != null && !e.some((i) => r.startsWith(i)) || n != null && n.some((i) => r.startsWith(i)));
11195
11232
  }, As = class $l {
@@ -11227,8 +11264,8 @@ const ks = ["debug", "info", "warn", "error"], Lw = (t) => {
11227
11264
  ee(As, "NOOP", new As());
11228
11265
  let Rl = As;
11229
11266
  const vn = (t) => typeof t == "function" ? t() : t;
11230
- var Fw = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, He = "1.9.0", Oa = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
11231
- function Yw(t) {
11267
+ var qw = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, He = "1.9.0", Oa = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
11268
+ function zw(t) {
11232
11269
  var e = /* @__PURE__ */ new Set([t]), n = /* @__PURE__ */ new Set(), r = t.match(Oa);
11233
11270
  if (!r)
11234
11271
  return function() {
@@ -11267,7 +11304,7 @@ function Yw(t) {
11267
11304
  return h.prerelease != null || i.major !== h.major ? a(c) : i.major === 0 ? i.minor === h.minor && i.patch <= h.patch ? o(c) : a(c) : i.minor <= h.minor ? o(c) : a(c);
11268
11305
  };
11269
11306
  }
11270
- var qw = Yw(He), zw = He.split(".")[0], Qt = Symbol.for("opentelemetry.js.api." + zw), en = Fw;
11307
+ var Vw = zw(He), Ww = He.split(".")[0], Qt = Symbol.for("opentelemetry.js.api." + Ww), en = qw;
11271
11308
  function si(t, e, n, r) {
11272
11309
  var i;
11273
11310
  r === void 0 && (r = !1);
@@ -11286,7 +11323,7 @@ function si(t, e, n, r) {
11286
11323
  }
11287
11324
  function tn(t) {
11288
11325
  var e, n, r = (e = en[Qt]) === null || e === void 0 ? void 0 : e.version;
11289
- if (!(!r || !qw(r)))
11326
+ if (!(!r || !Vw(r)))
11290
11327
  return (n = en[Qt]) === null || n === void 0 ? void 0 : n[t];
11291
11328
  }
11292
11329
  function ii(t, e) {
@@ -11294,7 +11331,7 @@ function ii(t, e) {
11294
11331
  var n = en[Qt];
11295
11332
  n && delete n[t];
11296
11333
  }
11297
- var Vw = function(t, e) {
11334
+ var Gw = function(t, e) {
11298
11335
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11299
11336
  if (!n) return t;
11300
11337
  var r = n.call(t), i, a = [], o;
@@ -11310,11 +11347,11 @@ var Vw = function(t, e) {
11310
11347
  }
11311
11348
  }
11312
11349
  return a;
11313
- }, Ww = function(t, e, n) {
11350
+ }, Zw = function(t, e, n) {
11314
11351
  if (arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
11315
11352
  (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
11316
11353
  return t.concat(a || Array.prototype.slice.call(e));
11317
- }, Gw = (
11354
+ }, Jw = (
11318
11355
  /** @class */
11319
11356
  function() {
11320
11357
  function t(e) {
@@ -11346,13 +11383,13 @@ var Vw = function(t, e) {
11346
11383
  function Tt(t, e, n) {
11347
11384
  var r = tn("diag");
11348
11385
  if (r)
11349
- return n.unshift(e), r[t].apply(r, Ww([], Vw(n), !1));
11386
+ return n.unshift(e), r[t].apply(r, Zw([], Gw(n), !1));
11350
11387
  }
11351
11388
  var me;
11352
11389
  (function(t) {
11353
11390
  t[t.NONE = 0] = "NONE", t[t.ERROR = 30] = "ERROR", t[t.WARN = 50] = "WARN", t[t.INFO = 60] = "INFO", t[t.DEBUG = 70] = "DEBUG", t[t.VERBOSE = 80] = "VERBOSE", t[t.ALL = 9999] = "ALL";
11354
11391
  })(me || (me = {}));
11355
- function Zw(t, e) {
11392
+ function Kw(t, e) {
11356
11393
  t < me.NONE ? t = me.NONE : t > me.ALL && (t = me.ALL), e = e || {};
11357
11394
  function n(r, i) {
11358
11395
  var a = e[r];
@@ -11367,7 +11404,7 @@ function Zw(t, e) {
11367
11404
  verbose: n("verbose", me.VERBOSE)
11368
11405
  };
11369
11406
  }
11370
- var Jw = function(t, e) {
11407
+ var Hw = function(t, e) {
11371
11408
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11372
11409
  if (!n) return t;
11373
11410
  var r = n.call(t), i, a = [], o;
@@ -11383,11 +11420,11 @@ var Jw = function(t, e) {
11383
11420
  }
11384
11421
  }
11385
11422
  return a;
11386
- }, Kw = function(t, e, n) {
11423
+ }, Xw = function(t, e, n) {
11387
11424
  if (arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
11388
11425
  (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
11389
11426
  return t.concat(a || Array.prototype.slice.call(e));
11390
- }, Hw = "diag", nn = (
11427
+ }, Qw = "diag", nn = (
11391
11428
  /** @class */
11392
11429
  function() {
11393
11430
  function t() {
@@ -11397,7 +11434,7 @@ var Jw = function(t, e) {
11397
11434
  a[o] = arguments[o];
11398
11435
  var c = tn("diag");
11399
11436
  if (c)
11400
- return c[i].apply(c, Kw([], Jw(a), !1));
11437
+ return c[i].apply(c, Xw([], Hw(a), !1));
11401
11438
  };
11402
11439
  }
11403
11440
  var n = this, r = function(i, a) {
@@ -11409,7 +11446,7 @@ var Jw = function(t, e) {
11409
11446
  typeof a == "number" && (a = {
11410
11447
  logLevel: a
11411
11448
  });
11412
- var f = tn("diag"), d = Zw((c = a.logLevel) !== null && c !== void 0 ? c : me.INFO, i);
11449
+ var f = tn("diag"), d = Kw((c = a.logLevel) !== null && c !== void 0 ? c : me.INFO, i);
11413
11450
  if (f && !a.suppressOverrideMessage) {
11414
11451
  var A = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
11415
11452
  f.warn("Current logger will be overwritten from " + A), d.warn("Current logger will overwrite one already registered from " + A);
@@ -11417,16 +11454,16 @@ var Jw = function(t, e) {
11417
11454
  return si("diag", d, n, !0);
11418
11455
  };
11419
11456
  n.setLogger = r, n.disable = function() {
11420
- ii(Hw, n);
11457
+ ii(Qw, n);
11421
11458
  }, n.createComponentLogger = function(i) {
11422
- return new Gw(i);
11459
+ return new Jw(i);
11423
11460
  }, n.verbose = e("verbose"), n.debug = e("debug"), n.info = e("info"), n.warn = e("warn"), n.error = e("error");
11424
11461
  }
11425
11462
  return t.instance = function() {
11426
11463
  return this._instance || (this._instance = new t()), this._instance;
11427
11464
  }, t;
11428
11465
  }()
11429
- ), Xw = function(t, e) {
11466
+ ), eb = function(t, e) {
11430
11467
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11431
11468
  if (!n) return t;
11432
11469
  var r = n.call(t), i, a = [], o;
@@ -11442,7 +11479,7 @@ var Jw = function(t, e) {
11442
11479
  }
11443
11480
  }
11444
11481
  return a;
11445
- }, Qw = function(t) {
11482
+ }, tb = function(t) {
11446
11483
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
11447
11484
  if (n) return n.call(t);
11448
11485
  if (t && typeof t.length == "number") return {
@@ -11451,7 +11488,7 @@ var Jw = function(t, e) {
11451
11488
  }
11452
11489
  };
11453
11490
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
11454
- }, eb = (
11491
+ }, nb = (
11455
11492
  /** @class */
11456
11493
  function() {
11457
11494
  function t(e) {
@@ -11463,7 +11500,7 @@ var Jw = function(t, e) {
11463
11500
  return Object.assign({}, n);
11464
11501
  }, t.prototype.getAllEntries = function() {
11465
11502
  return Array.from(this._entries.entries()).map(function(e) {
11466
- var n = Xw(e, 2), r = n[0], i = n[1];
11503
+ var n = eb(e, 2), r = n[0], i = n[1];
11467
11504
  return [r, i];
11468
11505
  });
11469
11506
  }, t.prototype.setEntry = function(e, n) {
@@ -11477,7 +11514,7 @@ var Jw = function(t, e) {
11477
11514
  r[i] = arguments[i];
11478
11515
  var a = new t(this._entries);
11479
11516
  try {
11480
- for (var o = Qw(r), c = o.next(); !c.done; c = o.next()) {
11517
+ for (var o = tb(r), c = o.next(); !c.done; c = o.next()) {
11481
11518
  var u = c.value;
11482
11519
  a._entries.delete(u);
11483
11520
  }
@@ -11497,13 +11534,13 @@ var Jw = function(t, e) {
11497
11534
  }()
11498
11535
  );
11499
11536
  nn.instance();
11500
- function tb(t) {
11501
- return t === void 0 && (t = {}), new eb(new Map(Object.entries(t)));
11537
+ function rb(t) {
11538
+ return t === void 0 && (t = {}), new nb(new Map(Object.entries(t)));
11502
11539
  }
11503
- function nb(t) {
11540
+ function sb(t) {
11504
11541
  return Symbol.for(t);
11505
11542
  }
11506
- var rb = (
11543
+ var ib = (
11507
11544
  /** @class */
11508
11545
  /* @__PURE__ */ function() {
11509
11546
  function t(e) {
@@ -11520,7 +11557,7 @@ var rb = (
11520
11557
  }
11521
11558
  return t;
11522
11559
  }()
11523
- ), sb = new rb(), ib = {
11560
+ ), ab = new ib(), ob = {
11524
11561
  get: function(t, e) {
11525
11562
  if (t != null)
11526
11563
  return t[e];
@@ -11528,11 +11565,11 @@ var rb = (
11528
11565
  keys: function(t) {
11529
11566
  return t == null ? [] : Object.keys(t);
11530
11567
  }
11531
- }, ab = {
11568
+ }, lb = {
11532
11569
  set: function(t, e, n) {
11533
11570
  t != null && (t[e] = n);
11534
11571
  }
11535
- }, ob = function(t, e) {
11572
+ }, cb = function(t, e) {
11536
11573
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11537
11574
  if (!n) return t;
11538
11575
  var r = n.call(t), i, a = [], o;
@@ -11548,21 +11585,21 @@ var rb = (
11548
11585
  }
11549
11586
  }
11550
11587
  return a;
11551
- }, lb = function(t, e, n) {
11588
+ }, ub = function(t, e, n) {
11552
11589
  if (arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
11553
11590
  (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
11554
11591
  return t.concat(a || Array.prototype.slice.call(e));
11555
- }, cb = (
11592
+ }, hb = (
11556
11593
  /** @class */
11557
11594
  function() {
11558
11595
  function t() {
11559
11596
  }
11560
11597
  return t.prototype.active = function() {
11561
- return sb;
11598
+ return ab;
11562
11599
  }, t.prototype.with = function(e, n, r) {
11563
11600
  for (var i = [], a = 3; a < arguments.length; a++)
11564
11601
  i[a - 3] = arguments[a];
11565
- return n.call.apply(n, lb([r], ob(i), !1));
11602
+ return n.call.apply(n, ub([r], cb(i), !1));
11566
11603
  }, t.prototype.bind = function(e, n) {
11567
11604
  return n;
11568
11605
  }, t.prototype.enable = function() {
@@ -11571,7 +11608,7 @@ var rb = (
11571
11608
  return this;
11572
11609
  }, t;
11573
11610
  }()
11574
- ), ub = function(t, e) {
11611
+ ), db = function(t, e) {
11575
11612
  var n = typeof Symbol == "function" && t[Symbol.iterator];
11576
11613
  if (!n) return t;
11577
11614
  var r = n.call(t), i, a = [], o;
@@ -11587,11 +11624,11 @@ var rb = (
11587
11624
  }
11588
11625
  }
11589
11626
  return a;
11590
- }, hb = function(t, e, n) {
11627
+ }, fb = function(t, e, n) {
11591
11628
  if (arguments.length === 2) for (var r = 0, i = e.length, a; r < i; r++)
11592
11629
  (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
11593
11630
  return t.concat(a || Array.prototype.slice.call(e));
11594
- }, es = "context", db = new cb(), jl = (
11631
+ }, es = "context", yb = new hb(), jl = (
11595
11632
  /** @class */
11596
11633
  function() {
11597
11634
  function t() {
@@ -11605,11 +11642,11 @@ var rb = (
11605
11642
  }, t.prototype.with = function(e, n, r) {
11606
11643
  for (var i, a = [], o = 3; o < arguments.length; o++)
11607
11644
  a[o - 3] = arguments[o];
11608
- return (i = this._getContextManager()).with.apply(i, hb([e, n, r], ub(a), !1));
11645
+ return (i = this._getContextManager()).with.apply(i, fb([e, n, r], db(a), !1));
11609
11646
  }, t.prototype.bind = function(e, n) {
11610
11647
  return this._getContextManager().bind(e, n);
11611
11648
  }, t.prototype._getContextManager = function() {
11612
- return tn(es) || db;
11649
+ return tn(es) || yb;
11613
11650
  }, t.prototype.disable = function() {
11614
11651
  this._getContextManager().disable(), ii(es, nn.instance());
11615
11652
  }, t;
@@ -11618,7 +11655,7 @@ var rb = (
11618
11655
  (function(t) {
11619
11656
  t[t.UNSET = 0] = "UNSET", t[t.OK = 1] = "OK", t[t.ERROR = 2] = "ERROR";
11620
11657
  })(xs || (xs = {}));
11621
- var fb = jl.getInstance(), yb = (
11658
+ var gb = jl.getInstance(), pb = (
11622
11659
  /** @class */
11623
11660
  function() {
11624
11661
  function t() {
@@ -11630,44 +11667,44 @@ var fb = jl.getInstance(), yb = (
11630
11667
  return [];
11631
11668
  }, t;
11632
11669
  }()
11633
- ), ai = nb("OpenTelemetry Baggage Key");
11670
+ ), ai = sb("OpenTelemetry Baggage Key");
11634
11671
  function Bl(t) {
11635
11672
  return t.getValue(ai) || void 0;
11636
11673
  }
11637
- function gb() {
11674
+ function mb() {
11638
11675
  return Bl(jl.getInstance().active());
11639
11676
  }
11640
- function pb(t, e) {
11677
+ function wb(t, e) {
11641
11678
  return t.setValue(ai, e);
11642
11679
  }
11643
- function mb(t) {
11680
+ function bb(t) {
11644
11681
  return t.deleteValue(ai);
11645
11682
  }
11646
- var ts = "propagation", wb = new yb(), bb = (
11683
+ var ts = "propagation", vb = new pb(), Ob = (
11647
11684
  /** @class */
11648
11685
  function() {
11649
11686
  function t() {
11650
- this.createBaggage = tb, this.getBaggage = Bl, this.getActiveBaggage = gb, this.setBaggage = pb, this.deleteBaggage = mb;
11687
+ this.createBaggage = rb, this.getBaggage = Bl, this.getActiveBaggage = mb, this.setBaggage = wb, this.deleteBaggage = bb;
11651
11688
  }
11652
11689
  return t.getInstance = function() {
11653
11690
  return this._instance || (this._instance = new t()), this._instance;
11654
11691
  }, t.prototype.setGlobalPropagator = function(e) {
11655
11692
  return si(ts, e, nn.instance());
11656
11693
  }, t.prototype.inject = function(e, n, r) {
11657
- return r === void 0 && (r = ab), this._getGlobalPropagator().inject(e, n, r);
11694
+ return r === void 0 && (r = lb), this._getGlobalPropagator().inject(e, n, r);
11658
11695
  }, t.prototype.extract = function(e, n, r) {
11659
- return r === void 0 && (r = ib), this._getGlobalPropagator().extract(e, n, r);
11696
+ return r === void 0 && (r = ob), this._getGlobalPropagator().extract(e, n, r);
11660
11697
  }, t.prototype.fields = function() {
11661
11698
  return this._getGlobalPropagator().fields();
11662
11699
  }, t.prototype.disable = function() {
11663
11700
  ii(ts, nn.instance());
11664
11701
  }, t.prototype._getGlobalPropagator = function() {
11665
- return tn(ts) || wb;
11702
+ return tn(ts) || vb;
11666
11703
  }, t;
11667
11704
  }()
11668
- ), vb = bb.getInstance();
11669
- const Ta = ["bench", "debug", "prod"], Ob = (t) => (e) => Ta.indexOf(e) >= Ta.indexOf(t), Cs = class Ml {
11670
- constructor(e, n = Ob("debug")) {
11705
+ ), Tb = Ob.getInstance();
11706
+ const Ta = ["bench", "debug", "prod"], Sb = (t) => (e) => Ta.indexOf(e) >= Ta.indexOf(t), Cs = class Ml {
11707
+ constructor(e, n = Sb("debug")) {
11671
11708
  ee(this, "meta", ri.NOOP), ee(this, "tracer"), ee(this, "filter"), this.tracer = e, this.filter = n;
11672
11709
  }
11673
11710
  child(e) {
@@ -11735,8 +11772,8 @@ const Ta = ["bench", "debug", "prod"], Ob = (t) => (e) => Ta.indexOf(e) >= Ta.in
11735
11772
  */
11736
11773
  propagate(e) {
11737
11774
  if (this.meta.noop) return;
11738
- const n = fb.active();
11739
- vb.inject(n, e, {
11775
+ const n = gb.active();
11776
+ Tb.inject(n, e, {
11740
11777
  set: (r, i, a) => {
11741
11778
  r[i] = a;
11742
11779
  }
@@ -11783,19 +11820,19 @@ const $s = class Ll {
11783
11820
  };
11784
11821
  ee($s, "NOOP", new $s({ noop: !0 }));
11785
11822
  let _l = $s;
11786
- const Tb = _l.NOOP, Sb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11823
+ const Nb = _l.NOOP, Ib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11787
11824
  __proto__: null,
11788
11825
  Instrumentation: _l,
11789
11826
  LOG_LEVELS: ks,
11790
11827
  Logger: Rl,
11791
- NOOP: Tb,
11828
+ NOOP: Nb,
11792
11829
  NoopSpan: Ul,
11793
11830
  Tracer: Dl,
11794
11831
  _Span: Pl,
11795
- logLevelKeyFiler: _w,
11796
- logThresholdFilter: Lw
11797
- }, Symbol.toStringTag, { value: "Module" })), Nb = new Error("request for lock canceled");
11798
- var Ib = function(t, e, n, r) {
11832
+ logLevelKeyFiler: Fw,
11833
+ logThresholdFilter: Yw
11834
+ }, Symbol.toStringTag, { value: "Module" })), Eb = new Error("request for lock canceled");
11835
+ var kb = function(t, e, n, r) {
11799
11836
  function i(a) {
11800
11837
  return a instanceof n ? a : new n(function(o) {
11801
11838
  o(a);
@@ -11822,20 +11859,20 @@ var Ib = function(t, e, n, r) {
11822
11859
  h((r = r.apply(t, e || [])).next());
11823
11860
  });
11824
11861
  };
11825
- class Eb {
11826
- constructor(e, n = Nb) {
11862
+ class Ab {
11863
+ constructor(e, n = Eb) {
11827
11864
  this._value = e, this._cancelError = n, this._queue = [], this._weightedWaiters = [];
11828
11865
  }
11829
11866
  acquire(e = 1, n = 0) {
11830
11867
  if (e <= 0)
11831
11868
  throw new Error(`invalid weight ${e}: must be positive`);
11832
11869
  return new Promise((r, i) => {
11833
- const a = { resolve: r, reject: i, weight: e, priority: n }, o = Fl(this._queue, (c) => n <= c.priority);
11870
+ const a = { resolve: r, reject: i, weight: e, priority: n }, o = Yl(this._queue, (c) => n <= c.priority);
11834
11871
  o === -1 && e <= this._value ? this._dispatchItem(a) : this._queue.splice(o + 1, 0, a);
11835
11872
  });
11836
11873
  }
11837
11874
  runExclusive(e) {
11838
- return Ib(this, arguments, void 0, function* (n, r = 1, i = 0) {
11875
+ return kb(this, arguments, void 0, function* (n, r = 1, i = 0) {
11839
11876
  const [a, o] = yield this.acquire(r, i);
11840
11877
  try {
11841
11878
  return yield n(a);
@@ -11848,7 +11885,7 @@ class Eb {
11848
11885
  if (e <= 0)
11849
11886
  throw new Error(`invalid weight ${e}: must be positive`);
11850
11887
  return this._couldLockImmediately(e, n) ? Promise.resolve() : new Promise((r) => {
11851
- this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), kb(this._weightedWaiters[e - 1], { resolve: r, priority: n });
11888
+ this._weightedWaiters[e - 1] || (this._weightedWaiters[e - 1] = []), xb(this._weightedWaiters[e - 1], { resolve: r, priority: n });
11852
11889
  });
11853
11890
  }
11854
11891
  isLocked() {
@@ -11903,17 +11940,17 @@ class Eb {
11903
11940
  return (this._queue.length === 0 || this._queue[0].priority < n) && e <= this._value;
11904
11941
  }
11905
11942
  }
11906
- function kb(t, e) {
11907
- const n = Fl(t, (r) => e.priority <= r.priority);
11943
+ function xb(t, e) {
11944
+ const n = Yl(t, (r) => e.priority <= r.priority);
11908
11945
  t.splice(n + 1, 0, e);
11909
11946
  }
11910
- function Fl(t, e) {
11947
+ function Yl(t, e) {
11911
11948
  for (let n = t.length - 1; n >= 0; n--)
11912
11949
  if (e(t[n]))
11913
11950
  return n;
11914
11951
  return -1;
11915
11952
  }
11916
- var Ab = function(t, e, n, r) {
11953
+ var Cb = function(t, e, n, r) {
11917
11954
  function i(a) {
11918
11955
  return a instanceof n ? a : new n(function(o) {
11919
11956
  o(a);
@@ -11940,12 +11977,12 @@ var Ab = function(t, e, n, r) {
11940
11977
  h((r = r.apply(t, e || [])).next());
11941
11978
  });
11942
11979
  };
11943
- class xb {
11980
+ class $b {
11944
11981
  constructor(e) {
11945
- this._semaphore = new Eb(1, e);
11982
+ this._semaphore = new Ab(1, e);
11946
11983
  }
11947
11984
  acquire() {
11948
- return Ab(this, arguments, void 0, function* (e = 0) {
11985
+ return Cb(this, arguments, void 0, function* (e = 0) {
11949
11986
  const [, n] = yield this._semaphore.acquire(1, e);
11950
11987
  return n;
11951
11988
  });
@@ -12060,7 +12097,7 @@ class kr {
12060
12097
  return n;
12061
12098
  }
12062
12099
  }
12063
- class Yl {
12100
+ class Fl {
12064
12101
  constructor(e) {
12065
12102
  U(this, "type");
12066
12103
  U(this, "key");
@@ -12172,7 +12209,7 @@ class Yl {
12172
12209
  );
12173
12210
  }
12174
12211
  }
12175
- class Ar extends Yl {
12212
+ class Ar extends Fl {
12176
12213
  constructor(n) {
12177
12214
  super(n);
12178
12215
  U(this, "_children");
@@ -12265,11 +12302,11 @@ class Ar extends Yl {
12265
12302
  );
12266
12303
  }
12267
12304
  }
12268
- const Cb = s.object({}), Re = class Re extends Ar {
12305
+ const Rb = s.object({}), Re = class Re extends Ar {
12269
12306
  constructor({
12270
12307
  worker: n,
12271
12308
  registry: r,
12272
- instrumentation: i = Sb.Instrumentation.NOOP
12309
+ instrumentation: i = Ib.Instrumentation.NOOP
12273
12310
  }) {
12274
12311
  const o = {
12275
12312
  ctx: new kr(n, r, /* @__PURE__ */ new Map()),
@@ -12279,7 +12316,7 @@ const Cb = s.object({}), Re = class Re extends Ar {
12279
12316
  super(o);
12280
12317
  U(this, "wrap");
12281
12318
  U(this, "schema", Re.schema);
12282
- U(this, "mu", new xb());
12319
+ U(this, "mu", new $b());
12283
12320
  this.mu.runExclusive(async () => await this.internalUpdate(o)), this.wrap = n, this.wrap.handle((c) => {
12284
12321
  this.mu.runExclusive(async () => await this.handle(c));
12285
12322
  });
@@ -12302,21 +12339,21 @@ U(Re, "TYPE", "root"), U(Re, "KEY", "root"), U(Re, "ZERO_UPDATE", {
12302
12339
  type: Re.TYPE,
12303
12340
  variant: "state",
12304
12341
  state: {}
12305
- }), U(Re, "schema", Cb);
12342
+ }), U(Re, "schema", Rb);
12306
12343
  let ar = Re;
12307
- const $b = (t) => new ar(t), Rv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12344
+ const jb = (t) => new ar(t), jv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12308
12345
  __proto__: null,
12309
12346
  Composite: Ar,
12310
12347
  Context: kr,
12311
- Leaf: Yl,
12348
+ Leaf: Fl,
12312
12349
  Root: ar,
12313
- render: $b
12314
- }, Symbol.toStringTag, { value: "Module" })), ql = "pluto-theming-context", Rb = s.object({
12350
+ render: jb
12351
+ }, Symbol.toStringTag, { value: "Module" })), ql = "pluto-theming-context", Bb = s.object({
12315
12352
  name: s.string(),
12316
12353
  url: s.string()
12317
- }), jb = s.object({
12318
- theme: hu,
12319
- fontURLs: s.array(Rb)
12354
+ }), Mb = s.object({
12355
+ theme: fu,
12356
+ fontURLs: s.array(Bb)
12320
12357
  }), Zt = class Zt extends Ar {
12321
12358
  constructor() {
12322
12359
  super(...arguments);
@@ -12334,11 +12371,11 @@ const $b = (t) => new ar(t), Rv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
12334
12371
  );
12335
12372
  }
12336
12373
  };
12337
- U(Zt, "TYPE", "theming.Provider"), U(Zt, "z", jb);
12374
+ U(Zt, "TYPE", "theming.Provider"), U(Zt, "z", Mb);
12338
12375
  let or = Zt;
12339
- const jv = (t) => t.get(ql), Bv = {
12376
+ const Bv = (t) => t.get(ql), Mv = {
12340
12377
  [or.TYPE]: or
12341
- }, Bb = [
12378
+ }, Db = [
12342
12379
  "success",
12343
12380
  "error",
12344
12381
  "warning",
@@ -12346,20 +12383,20 @@ const jv = (t) => t.get(ql), Bv = {
12346
12383
  "loading",
12347
12384
  "disabled",
12348
12385
  "secondary"
12349
- ], Mb = s.enum(Bb), Db = s.object({
12386
+ ], Pb = s.enum(Db), Ub = s.object({
12350
12387
  key: s.string(),
12351
- variant: Mb,
12388
+ variant: Pb,
12352
12389
  message: s.string(),
12353
12390
  description: s.string().optional(),
12354
12391
  time: W.z,
12355
12392
  data: s.record(s.unknown()).optional()
12356
- }), Pb = s.object({
12357
- statuses: Db.array()
12393
+ }), Lb = s.object({
12394
+ statuses: Ub.array()
12358
12395
  }), oi = "status.aggregator";
12359
12396
  class Rs extends Ar {
12360
12397
  constructor() {
12361
12398
  super(...arguments);
12362
- U(this, "schema", Pb);
12399
+ U(this, "schema", Lb);
12363
12400
  }
12364
12401
  async afterUpdate() {
12365
12402
  this.ctx.set(oi, this);
@@ -12372,94 +12409,93 @@ class Rs extends Ar {
12372
12409
  }
12373
12410
  }
12374
12411
  U(Rs, "TYPE", "status.Aggregator");
12375
- const Mv = (t) => {
12412
+ const Dv = (t) => {
12376
12413
  const e = t.get(oi);
12377
12414
  return e.add.bind(e);
12378
- }, Dv = (t) => {
12415
+ }, Pv = (t) => {
12379
12416
  const e = t.getOptional(oi);
12380
12417
  return e != null ? e.add.bind(e) : () => {
12381
12418
  };
12382
- }, Pv = {
12419
+ }, Uv = {
12383
12420
  [Rs.TYPE]: Rs
12384
12421
  };
12385
12422
  export {
12386
- ev as $,
12387
- lv as A,
12388
- cv as B,
12389
- ou as C,
12390
- Va as D,
12391
- _l as E,
12392
- Jb as F,
12393
- Oe as G,
12394
- pv as H,
12395
- bv as I,
12396
- ce as J,
12397
- iv as K,
12423
+ Ub as $,
12424
+ ov as A,
12425
+ Q as B,
12426
+ cu as C,
12427
+ Qb as D,
12428
+ Kt as E,
12429
+ Zb as F,
12430
+ hi as G,
12431
+ Pb as H,
12432
+ Ib as I,
12433
+ Qn as J,
12434
+ R as K,
12398
12435
  au as L,
12399
- hi as M,
12400
- Xb as N,
12401
- xv as O,
12436
+ Oe as M,
12437
+ le as N,
12438
+ $b as O,
12402
12439
  or as P,
12403
- mv as Q,
12404
- Bv as R,
12405
- wu as S,
12406
- Cc as T,
12407
- wv as U,
12408
- Bb as V,
12409
- Kt as W,
12410
- Ar as X,
12411
- Q as Y,
12412
- Mw as Z,
12440
+ Jb as Q,
12441
+ Mv as R,
12442
+ vu as S,
12443
+ Nc as T,
12444
+ je as U,
12445
+ Cc as V,
12446
+ va as W,
12447
+ Kb as X,
12448
+ Fl as Y,
12449
+ Pw as Z,
12413
12450
  mc as _,
12414
- pu as a,
12415
- Sb as a0,
12416
- Qn as a1,
12417
- le as a2,
12418
- xb as a3,
12419
- Kb as a4,
12420
- Nc as a5,
12421
- je as a6,
12422
- va as a7,
12423
- Hb as a8,
12424
- Yl as a9,
12425
- $v as aa,
12426
- Av as ab,
12427
- Mv as ac,
12428
- C as ad,
12429
- yv as ae,
12430
- qb as af,
12431
- Dv as ag,
12432
- Cv as ah,
12433
- Yb as ai,
12451
+ wu as a,
12452
+ Rv as a0,
12453
+ Cv as a1,
12454
+ xv as a2,
12455
+ Dv as a3,
12456
+ C as a4,
12457
+ fv as a5,
12458
+ Pv as a6,
12459
+ sv as a7,
12460
+ $v as a8,
12461
+ Db as a9,
12462
+ gv as aa,
12463
+ pv as ab,
12464
+ lv as ac,
12465
+ mv as ad,
12466
+ Va as ae,
12467
+ Hb as af,
12468
+ _l as ag,
12469
+ wv as ah,
12470
+ ce as ai,
12434
12471
  cr as aj,
12435
12472
  za as ak,
12436
- zb as al,
12437
- Rs as am,
12438
- Pb as an,
12439
- gv as ao,
12440
- Sv as b,
12441
- Nv as c,
12442
- Pv as d,
12443
- Rv as e,
12444
- Rb as f,
12473
+ Rs as al,
12474
+ Lb as am,
12475
+ yv as an,
12476
+ Nv as b,
12477
+ Iv as c,
12478
+ Uv as d,
12479
+ jv as e,
12480
+ Bb as f,
12445
12481
  ru as g,
12446
- Ov as h,
12447
- Tv as i,
12482
+ Tv as h,
12483
+ Sv as i,
12448
12484
  vv as j,
12449
- su as k,
12450
- uv as l,
12451
- W as m,
12485
+ bv as k,
12486
+ cv as l,
12487
+ Ov as m,
12452
12488
  ci as n,
12453
- Db as o,
12454
- Dw as p,
12455
- R as q,
12456
- $b as r,
12489
+ W as o,
12490
+ su as p,
12491
+ Uw as q,
12492
+ jb as r,
12457
12493
  Ge as s,
12458
- hu as t,
12459
- jv as u,
12460
- Mb as v,
12494
+ fu as t,
12495
+ Bv as u,
12496
+ Ar as v,
12461
12497
  Lc as w,
12462
- B as x,
12498
+ Gb as x,
12463
12499
  H as y,
12464
- Zb as z
12500
+ B as z
12465
12501
  };