@epam/statgpt-sdmx-toolkit 0.4.0-rc.45 → 0.4.0-rc.47

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 (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.mjs +144 -147
  3. package/package.json +3 -3
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const K = (t) => {
1
+ const z = (t) => {
2
2
  if (t != null) {
3
3
  const e = t.split("=");
4
4
  return e.length === 1 ? t : e[1];
@@ -6,7 +6,7 @@ const K = (t) => {
6
6
  }, C = (t) => {
7
7
  if (t == null)
8
8
  return {};
9
- const e = K(t), n = {
9
+ const e = z(t), n = {
10
10
  agency: "",
11
11
  id: "",
12
12
  version: ""
@@ -15,11 +15,11 @@ const K = (t) => {
15
15
  }, tt = (t) => {
16
16
  const [e, n] = t.split(")."), { agency: r, id: s, version: a } = C(e + ")");
17
17
  return { childId: n, agency: r, id: s, version: a };
18
- }, de = (t, e, n) => {
18
+ }, ue = (t, e, n) => {
19
19
  const r = e === "" ? "" : `(${e})`;
20
20
  return `${n}:${t}${r}`;
21
21
  };
22
- var le = /* @__PURE__ */ ((t) => (t.DESCENDANTS = "descendants", t.NONE = "none", t.ALL = "all", t))(le || {}), nt = /* @__PURE__ */ ((t) => (t.EXACT = "exact", t.AVAILABLE = "available", t))(nt || {});
22
+ var de = /* @__PURE__ */ ((t) => (t.DESCENDANTS = "descendants", t.NONE = "none", t.ALL = "all", t))(de || {}), nt = /* @__PURE__ */ ((t) => (t.EXACT = "exact", t.AVAILABLE = "available", t))(nt || {});
23
23
  function At(t) {
24
24
  return {
25
25
  data: {
@@ -65,7 +65,7 @@ class qa {
65
65
  const { agency: s, id: a, version: o } = C(e), i = {
66
66
  filters: n || [],
67
67
  mode: nt.AVAILABLE,
68
- references: le.NONE
68
+ references: de.NONE
69
69
  }, c = _t(s, a, o);
70
70
  if (this.client.config.sdmxProxyUrl) {
71
71
  const u = await this.client.postRequest(
@@ -84,33 +84,30 @@ class qa {
84
84
  );
85
85
  }
86
86
  }
87
- var X = /* @__PURE__ */ ((t) => (t.CSV = "csv", t.JSON = "json", t.XML = "xml", t))(X || {}), Yt = /* @__PURE__ */ ((t) => (t.ID = "id", t.NAME = "name", t.ID_NAME = "both", t))(Yt || {}), Ct = /* @__PURE__ */ ((t) => (t.FULL_DATASET = "full", t.DATA_IN_TABLE = "query", t))(Ct || {});
87
+ var G = /* @__PURE__ */ ((t) => (t.CSV = "csv", t.JSON = "json", t.XML = "xml", t))(G || {}), Yt = /* @__PURE__ */ ((t) => (t.ID = "id", t.NAME = "name", t.ID_NAME = "both", t))(Yt || {}), Ct = /* @__PURE__ */ ((t) => (t.FULL_DATASET = "full", t.DATA_IN_TABLE = "query", t))(Ct || {});
88
88
  const Lt = (t, e) => {
89
89
  switch (t) {
90
- case X.CSV:
91
- return B(
90
+ case G.CSV:
91
+ return Ie(
92
92
  "application/vnd.sdmx.data+csv;version=2.0.0",
93
93
  e
94
94
  );
95
- case X.XML:
96
- return B(
97
- "application/vnd.sdmx.data+xml;version=3.0.0",
98
- e
99
- );
100
- case X.JSON:
101
- return B(`application/${t}`, e);
95
+ case G.XML:
96
+ return "application/vnd.sdmx.data+xml;version=3.0.0";
97
+ case G.JSON:
98
+ return `application/${t}`;
102
99
  default:
103
- return B(
100
+ return Ie(
104
101
  "application/vnd.sdmx.data+csv;version=2.0.0",
105
102
  e
106
103
  );
107
104
  }
108
- }, B = (t, e) => `${t}; labels=${e}`;
105
+ }, Ie = (t, e) => `${t}; labels=${e}`;
109
106
  var rt = /* @__PURE__ */ ((t) => (t.REFERENCE_PARTIAL = "referencepartial", t.FULL = "full", t))(rt || {});
110
107
  const St = "all", $t = "sdmx/3.0/data/dataflow", st = "&", _e = ":", Wt = "=", qt = "+", Ua = ",", Ut = "*", Ye = (t, e, n) => {
111
108
  const { filterKey: r, timeFilter: s } = n, { agency: a, id: o, version: i } = C(t), c = [s || "", e].filter((d) => !!d).join(st);
112
109
  return `${`${$t}/${a}/${o}/${i}`}/${r || Ut}?${c}`;
113
- }, Ht = (t = "", e = "", n = "", r = le.DESCENDANTS) => `sdmx/3.0/structure/dataflow/${t}/${e}/${n}?references=${r}&detail=${rt.REFERENCE_PARTIAL}`;
110
+ }, Ht = (t = "", e = "", n = "", r = de.DESCENDANTS) => `sdmx/3.0/structure/dataflow/${t}/${e}/${n}?references=${r}&detail=${rt.REFERENCE_PARTIAL}`;
114
111
  class Ha {
115
112
  constructor(e) {
116
113
  this.client = e;
@@ -158,13 +155,13 @@ class Ha {
158
155
  );
159
156
  }
160
157
  }
161
- const Qt = (t, e) => t.error || t.message || `${e.status} ${e.statusText}`, Ft = "application/json", Bt = "Content-Type", j = "Api-Key", Vt = "X-CONVERSATION-ID", z = "Ocp-Apim-Subscription-Key";
158
+ const Qt = (t, e) => t.error || t.message || `${e.status} ${e.statusText}`, Ft = "application/json", Bt = "Content-Type", X = "Api-Key", Vt = "X-CONVERSATION-ID", j = "Ocp-Apim-Subscription-Key";
162
159
  class Ce extends Error {
163
160
  constructor(e) {
164
161
  super(e.message), this.isHttpError = !0, this.name = "HttpError", this.code = e.code, this.status = e.status, this.details = e.details, this.displayMessage = e.displayMessage;
165
162
  }
166
163
  }
167
- const at = 6048e5, Gt = 864e5, fe = 6e4, me = 36e5, Xt = 1e3, Le = /* @__PURE__ */ Symbol.for("constructDateFrom");
164
+ const at = 6048e5, Gt = 864e5, le = 6e4, fe = 36e5, Xt = 1e3, Le = /* @__PURE__ */ Symbol.for("constructDateFrom");
168
165
  function E(t, e) {
169
166
  return typeof t == "function" ? t(e) : t && typeof t == "object" && Le in t ? t[Le](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
170
167
  }
@@ -194,7 +191,7 @@ function it(t, e) {
194
191
  const i = S(o);
195
192
  return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
196
193
  }
197
- function J(t) {
194
+ function K(t) {
198
195
  const e = p(t), n = new Date(
199
196
  Date.UTC(
200
197
  e.getFullYear(),
@@ -224,7 +221,7 @@ function Kt(t, e, n) {
224
221
  n?.in,
225
222
  t,
226
223
  e
227
- ), a = Se(r), o = Se(s), i = +a - J(a), c = +o - J(o);
224
+ ), a = Se(r), o = Se(s), i = +a - K(a), c = +o - K(o);
228
225
  return Math.round((i - c) / Gt);
229
226
  }
230
227
  function Jt(t, e) {
@@ -234,7 +231,7 @@ function Jt(t, e) {
234
231
  function Zt(t) {
235
232
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
236
233
  }
237
- function re(t) {
234
+ function ne(t) {
238
235
  return !(!Zt(t) && typeof t != "number" || isNaN(+p(t)));
239
236
  }
240
237
  function en(t, e) {
@@ -308,7 +305,7 @@ const tn = {
308
305
  const s = tn[t];
309
306
  return typeof s == "string" ? r = s : e === 1 ? r = s.one : r = s.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
310
307
  };
311
- function te(t) {
308
+ function ee(t) {
312
309
  return (e = {}) => {
313
310
  const n = e.width ? String(e.width) : t.defaultWidth;
314
311
  return t.formats[n] || t.formats[t.defaultWidth];
@@ -330,15 +327,15 @@ const rn = {
330
327
  medium: "{{date}}, {{time}}",
331
328
  short: "{{date}}, {{time}}"
332
329
  }, on = {
333
- date: te({
330
+ date: ee({
334
331
  formats: rn,
335
332
  defaultWidth: "full"
336
333
  }),
337
- time: te({
334
+ time: ee({
338
335
  formats: sn,
339
336
  defaultWidth: "full"
340
337
  }),
341
- dateTime: te({
338
+ dateTime: ee({
342
339
  formats: an,
343
340
  defaultWidth: "full"
344
341
  })
@@ -680,7 +677,7 @@ function ut(t, e) {
680
677
  const n = p(t, e?.in), r = +S(n) - +Jt(n);
681
678
  return Math.round(r / at) + 1;
682
679
  }
683
- function he(t, e) {
680
+ function me(t, e) {
684
681
  const n = p(t, e?.in), r = n.getFullYear(), s = $(), a = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? s.firstWeekContainsDate ?? s.locale?.options?.firstWeekContainsDate ?? 1, o = E(e?.in || t, 0);
685
682
  o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
686
683
  const i = _(o, e), c = E(e?.in || t, 0);
@@ -689,7 +686,7 @@ function he(t, e) {
689
686
  return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
690
687
  }
691
688
  function Cn(t, e) {
692
- const n = $(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s = he(t, e), a = E(e?.in || t, 0);
689
+ const n = $(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, s = me(t, e), a = E(e?.in || t, 0);
693
690
  return a.setFullYear(s, 0, r), a.setHours(0, 0, 0, 0), _(a, e);
694
691
  }
695
692
  function dt(t, e) {
@@ -787,7 +784,7 @@ const k = {
787
784
  },
788
785
  // Local week-numbering year
789
786
  Y: function(t, e, n, r) {
790
- const s = he(t, r), a = s > 0 ? s : 1 - s;
787
+ const s = me(t, r), a = s > 0 ? s : 1 - s;
791
788
  if (e === "YY") {
792
789
  const o = a % 100;
793
790
  return g(o, 2);
@@ -1333,7 +1330,7 @@ const Ue = (t, e) => {
1333
1330
  break;
1334
1331
  }
1335
1332
  return a.replace("{{date}}", Ue(r, e)).replace("{{time}}", lt(s, e));
1336
- }, se = {
1333
+ }, re = {
1337
1334
  p: lt,
1338
1335
  P: Ln
1339
1336
  }, Sn = /^D+$/, $n = /^Y+$/, Wn = ["D", "DD", "YY", "YYYY"];
@@ -1343,7 +1340,7 @@ function ft(t) {
1343
1340
  function mt(t) {
1344
1341
  return $n.test(t);
1345
1342
  }
1346
- function ae(t, e, n) {
1343
+ function se(t, e, n) {
1347
1344
  const r = qn(t, e, n);
1348
1345
  if (console.warn(r), Wn.includes(t)) throw new RangeError(r);
1349
1346
  }
@@ -1354,12 +1351,12 @@ function qn(t, e, n) {
1354
1351
  const Un = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Hn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Qn = /^'([^]*?)'?$/, Fn = /''/g, Bn = /[a-zA-Z]/;
1355
1352
  function Vn(t, e, n) {
1356
1353
  const r = $(), s = r.locale ?? ct, a = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, i = p(t, n?.in);
1357
- if (!re(i))
1354
+ if (!ne(i))
1358
1355
  throw new RangeError("Invalid time value");
1359
1356
  let c = e.match(Hn).map((d) => {
1360
1357
  const l = d[0];
1361
1358
  if (l === "p" || l === "P") {
1362
- const m = se[l];
1359
+ const m = re[l];
1363
1360
  return m(d, s.formatLong);
1364
1361
  }
1365
1362
  return d;
@@ -1386,7 +1383,7 @@ function Vn(t, e, n) {
1386
1383
  return c.map((d) => {
1387
1384
  if (!d.isToken) return d.value;
1388
1385
  const l = d.value;
1389
- (mt(l) || ft(l)) && ae(l, e, String(t));
1386
+ (mt(l) || ft(l)) && se(l, e, String(t));
1390
1387
  const m = $e[l[0]];
1391
1388
  return m(i, l, s.localize, u);
1392
1389
  }).join("");
@@ -1550,7 +1547,7 @@ function A(t, e) {
1550
1547
  };
1551
1548
  const r = n[1] === "+" ? 1 : -1, s = n[2] ? parseInt(n[2], 10) : 0, a = n[3] ? parseInt(n[3], 10) : 0, o = n[5] ? parseInt(n[5], 10) : 0;
1552
1549
  return {
1553
- value: r * (s * me + a * fe + o * Xt),
1550
+ value: r * (s * fe + a * le + o * Xt),
1554
1551
  rest: e.slice(n[0].length)
1555
1552
  };
1556
1553
  }
@@ -1571,7 +1568,7 @@ function b(t, e) {
1571
1568
  return y(new RegExp("^\\d{1," + t + "}"), e);
1572
1569
  }
1573
1570
  }
1574
- function Z(t, e) {
1571
+ function J(t, e) {
1575
1572
  switch (t) {
1576
1573
  case 1:
1577
1574
  return y(D.singleDigitSigned, e);
@@ -1585,7 +1582,7 @@ function Z(t, e) {
1585
1582
  return y(new RegExp("^-?\\d{1," + t + "}"), e);
1586
1583
  }
1587
1584
  }
1588
- function ge(t) {
1585
+ function he(t) {
1589
1586
  switch (t) {
1590
1587
  case "morning":
1591
1588
  return 4;
@@ -1676,7 +1673,7 @@ class rr extends h {
1676
1673
  return n.isTwoDigitYear || n.year > 0;
1677
1674
  }
1678
1675
  set(e, n, r, s) {
1679
- const a = he(e, s);
1676
+ const a = me(e, s);
1680
1677
  if (r.isTwoDigitYear) {
1681
1678
  const i = wt(
1682
1679
  r.year,
@@ -1710,7 +1707,7 @@ class rr extends h {
1710
1707
  class sr extends h {
1711
1708
  priority = 130;
1712
1709
  parse(e, n) {
1713
- return Z(n === "R" ? 4 : n.length, e);
1710
+ return J(n === "R" ? 4 : n.length, e);
1714
1711
  }
1715
1712
  set(e, n, r) {
1716
1713
  const s = E(e, 0);
@@ -1737,7 +1734,7 @@ class sr extends h {
1737
1734
  class ar extends h {
1738
1735
  priority = 130;
1739
1736
  parse(e, n) {
1740
- return Z(n === "u" ? 4 : n.length, e);
1737
+ return J(n === "u" ? 4 : n.length, e);
1741
1738
  }
1742
1739
  set(e, n, r) {
1743
1740
  return e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
@@ -2159,7 +2156,7 @@ class yr extends h {
2159
2156
  "T"
2160
2157
  ];
2161
2158
  }
2162
- function we(t, e, n) {
2159
+ function ge(t, e, n) {
2163
2160
  const r = $(), s = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, a = p(t, n?.in), o = a.getDay(), c = (e % 7 + 7) % 7, u = 7 - s, d = e < 0 || e > 6 ? e - (o + u) % 7 : (c + u) % 7 - (o + u) % 7;
2164
2161
  return ot(a, d, n);
2165
2162
  }
@@ -2195,7 +2192,7 @@ class pr extends h {
2195
2192
  return n >= 0 && n <= 6;
2196
2193
  }
2197
2194
  set(e, n, r, s) {
2198
- return e = we(e, r, s), e.setHours(0, 0, 0, 0), e;
2195
+ return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
2199
2196
  }
2200
2197
  incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
2201
2198
  }
@@ -2245,7 +2242,7 @@ class br extends h {
2245
2242
  return n >= 0 && n <= 6;
2246
2243
  }
2247
2244
  set(e, n, r, s) {
2248
- return e = we(e, r, s), e.setHours(0, 0, 0, 0), e;
2245
+ return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
2249
2246
  }
2250
2247
  incompatibleTokens = [
2251
2248
  "y",
@@ -2311,7 +2308,7 @@ class Dr extends h {
2311
2308
  return n >= 0 && n <= 6;
2312
2309
  }
2313
2310
  set(e, n, r, s) {
2314
- return e = we(e, r, s), e.setHours(0, 0, 0, 0), e;
2311
+ return e = ge(e, r, s), e.setHours(0, 0, 0, 0), e;
2315
2312
  }
2316
2313
  incompatibleTokens = [
2317
2314
  "y",
@@ -2459,7 +2456,7 @@ class xr extends h {
2459
2456
  }
2460
2457
  }
2461
2458
  set(e, n, r) {
2462
- return e.setHours(ge(r), 0, 0, 0), e;
2459
+ return e.setHours(he(r), 0, 0, 0), e;
2463
2460
  }
2464
2461
  incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
2465
2462
  }
@@ -2496,7 +2493,7 @@ class Pr extends h {
2496
2493
  }
2497
2494
  }
2498
2495
  set(e, n, r) {
2499
- return e.setHours(ge(r), 0, 0, 0), e;
2496
+ return e.setHours(he(r), 0, 0, 0), e;
2500
2497
  }
2501
2498
  incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
2502
2499
  }
@@ -2533,7 +2530,7 @@ class vr extends h {
2533
2530
  }
2534
2531
  }
2535
2532
  set(e, n, r) {
2536
- return e.setHours(ge(r), 0, 0, 0), e;
2533
+ return e.setHours(he(r), 0, 0, 0), e;
2537
2534
  }
2538
2535
  incompatibleTokens = ["a", "b", "t", "T"];
2539
2536
  }
@@ -2698,7 +2695,7 @@ class _r extends h {
2698
2695
  set(e, n, r) {
2699
2696
  return n.timestampIsSet ? e : E(
2700
2697
  e,
2701
- e.getTime() - J(e) - r
2698
+ e.getTime() - K(e) - r
2702
2699
  );
2703
2700
  }
2704
2701
  incompatibleTokens = ["t", "T", "x"];
@@ -2731,7 +2728,7 @@ class Yr extends h {
2731
2728
  set(e, n, r) {
2732
2729
  return n.timestampIsSet ? e : E(
2733
2730
  e,
2734
- e.getTime() - J(e) - r
2731
+ e.getTime() - K(e) - r
2735
2732
  );
2736
2733
  }
2737
2734
  incompatibleTokens = ["t", "T", "X"];
@@ -2799,14 +2796,14 @@ function Fr(t, e, n, r) {
2799
2796
  locale: o
2800
2797
  }, d = [new er(r?.in, n)], l = e.match(Wr).map((f) => {
2801
2798
  const w = f[0];
2802
- if (w in se) {
2803
- const v = se[w];
2799
+ if (w in re) {
2800
+ const v = re[w];
2804
2801
  return v(f, o.formatLong);
2805
2802
  }
2806
2803
  return f;
2807
2804
  }).join("").match($r), m = [];
2808
2805
  for (let f of l) {
2809
- mt(f) && ae(f, e, t), ft(f) && ae(f, e, t);
2806
+ mt(f) && se(f, e, t), ft(f) && se(f, e, t);
2810
2807
  const w = f[0], v = Sr[w];
2811
2808
  if (v) {
2812
2809
  const { incompatibleTokens: M } = v;
@@ -2891,21 +2888,21 @@ function Vr(t, e) {
2891
2888
  }
2892
2889
  return p(o + i + c, e?.in);
2893
2890
  }
2894
- const V = {
2891
+ const B = {
2895
2892
  dateTimeDelimiter: /[T ]/,
2896
2893
  timeZoneDelimiter: /[Z ]/i,
2897
2894
  timezone: /([Z+-].*)$/
2898
2895
  }, Gr = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Xr = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, jr = /^([+-])(\d{2})(?::?(\d{2}))?$/;
2899
2896
  function zr(t) {
2900
- const e = {}, n = t.split(V.dateTimeDelimiter);
2897
+ const e = {}, n = t.split(B.dateTimeDelimiter);
2901
2898
  let r;
2902
2899
  if (n.length > 2)
2903
2900
  return e;
2904
- if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], V.timeZoneDelimiter.test(e.date) && (e.date = t.split(V.timeZoneDelimiter)[0], r = t.substr(
2901
+ if (/:/.test(n[0]) ? r = n[0] : (e.date = n[0], r = n[1], B.timeZoneDelimiter.test(e.date) && (e.date = t.split(B.timeZoneDelimiter)[0], r = t.substr(
2905
2902
  e.date.length,
2906
2903
  t.length
2907
2904
  ))), r) {
2908
- const s = V.timezone.exec(r);
2905
+ const s = B.timezone.exec(r);
2909
2906
  s ? (e.time = r.replace(s[1], ""), e.timezone = s[1]) : e.time = r;
2910
2907
  }
2911
2908
  return e;
@@ -2939,10 +2936,10 @@ function Q(t) {
2939
2936
  function Zr(t) {
2940
2937
  const e = t.match(Xr);
2941
2938
  if (!e) return NaN;
2942
- const n = ne(e[1]), r = ne(e[2]), s = ne(e[3]);
2943
- return os(n, r, s) ? n * me + r * fe + s * 1e3 : NaN;
2939
+ const n = te(e[1]), r = te(e[2]), s = te(e[3]);
2940
+ return os(n, r, s) ? n * fe + r * le + s * 1e3 : NaN;
2944
2941
  }
2945
- function ne(t) {
2942
+ function te(t) {
2946
2943
  return t && parseFloat(t.replace(",", ".")) || 0;
2947
2944
  }
2948
2945
  function es(t) {
@@ -2950,7 +2947,7 @@ function es(t) {
2950
2947
  const e = t.match(jr);
2951
2948
  if (!e) return 0;
2952
2949
  const n = e[1] === "+" ? -1 : 1, r = parseInt(e[2]), s = e[3] && parseInt(e[3]) || 0;
2953
- return is(r, s) ? n * (r * me + s * fe) : NaN;
2950
+ return is(r, s) ? n * (r * fe + s * le) : NaN;
2954
2951
  }
2955
2952
  function ts(t, e, n) {
2956
2953
  const r = /* @__PURE__ */ new Date(0);
@@ -2977,23 +2974,23 @@ function os(t, e, n) {
2977
2974
  function is(t, e) {
2978
2975
  return e >= 0 && e <= 59;
2979
2976
  }
2980
- const G = (t) => {
2977
+ const V = (t) => {
2981
2978
  if (!t.includes("T")) {
2982
2979
  for (const n of cs) {
2983
2980
  const r = Fr(t, n, /* @__PURE__ */ new Date());
2984
- if (re(r))
2981
+ if (ne(r))
2985
2982
  return r;
2986
2983
  }
2987
2984
  return null;
2988
2985
  }
2989
2986
  const e = Vr(t);
2990
- return re(e) ? e : null;
2991
- }, cs = ["yyyy-MM-dd", "MM-dd-yyyy"], oe = (t, e, n) => {
2987
+ return ne(e) ? e : null;
2988
+ }, cs = ["yyyy-MM-dd", "MM-dd-yyyy"], ae = (t, e, n) => {
2992
2989
  const r = {};
2993
- return e?.contentType !== null && (r[Bt] = e?.contentType || Ft), e?.jwt ? r.Authorization = `Bearer ${e.jwt}` : t && (r[j] = t), e?.chatReference && (r[Vt] = e.chatReference), { ...r, ...n };
2990
+ return e?.contentType !== null && (r[Bt] = e?.contentType || Ft), e?.jwt ? r.Authorization = `Bearer ${e.jwt}` : t && (r[X] = t), e?.chatReference && (r[Vt] = e.chatReference), { ...r, ...n };
2994
2991
  }, us = (t) => {
2995
2992
  const e = { ...t };
2996
- return e[j] && (e[j] = e[j].substring(0, 8) + "...[REDACTED]"), e.Authorization && (e.Authorization = "Bearer [REDACTED]"), e[z] && (e[z] = e[z].substring(0, 8) + "...[REDACTED]"), e;
2993
+ return e[X] && (e[X] = e[X].substring(0, 8) + "...[REDACTED]"), e.Authorization && (e.Authorization = "Bearer [REDACTED]"), e[j] && (e[j] = e[j].substring(0, 8) + "...[REDACTED]"), e;
2997
2994
  }, He = async (t, e, n) => await fetch(t, {
2998
2995
  method: n.method || "GET",
2999
2996
  headers: e,
@@ -3026,7 +3023,7 @@ class ls {
3026
3023
  }
3027
3024
  }
3028
3025
  async initializeStreamRequest(e, n, r, s) {
3029
- const a = oe(void 0, {
3026
+ const a = ae(void 0, {
3030
3027
  jwt: s
3031
3028
  }), o = await ds(
3032
3029
  e,
@@ -3196,14 +3193,14 @@ class Qa {
3196
3193
  buildHeaders(e, n) {
3197
3194
  if (this.config.useDialAuth)
3198
3195
  return {
3199
- ...oe(this.config.dialApiKey, { jwt: e }),
3196
+ ...ae(this.config.dialApiKey, { jwt: e }),
3200
3197
  ...n
3201
3198
  };
3202
3199
  const r = {
3203
- ...oe(void 0, { jwt: this.config.jwt }),
3200
+ ...ae(void 0, { jwt: this.config.jwt }),
3204
3201
  ...n
3205
3202
  };
3206
- return this.config.apiKey != null && (r[z] = this.config.apiKey), r;
3203
+ return this.config.apiKey != null && (r[j] = this.config.apiKey), r;
3207
3204
  }
3208
3205
  addInfoRequestLog(e, n, r, s) {
3209
3206
  const a = {
@@ -3235,14 +3232,14 @@ class Qa {
3235
3232
  });
3236
3233
  }
3237
3234
  }
3238
- var ye = /* @__PURE__ */ ((t) => (t.LAST_UPDATE_AT = "lastUpdatedAt", t.SERIES_COUNT = "series_count", t))(ye || {});
3235
+ var we = /* @__PURE__ */ ((t) => (t.LAST_UPDATE_AT = "lastUpdatedAt", t.SERIES_COUNT = "series_count", t))(we || {});
3239
3236
  function Fa(t) {
3240
3237
  return t?.annotations?.find((e) => {
3241
- if (e.id === ye.LAST_UPDATE_AT)
3238
+ if (e.id === we.LAST_UPDATE_AT)
3242
3239
  return e;
3243
3240
  })?.value;
3244
3241
  }
3245
- const pe = (t, e) => t?.names && t?.names[e] || t?.name, bt = (t, e, n) => {
3242
+ const ye = (t, e) => t?.names && t?.names[e] || t?.name, bt = (t, e, n) => {
3246
3243
  if (!(!t || e?.has(t?.id)) && (e?.set(t?.id, t), t?.parent)) {
3247
3244
  const r = n?.get(t?.parent);
3248
3245
  bt(r, e, n);
@@ -3297,7 +3294,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3297
3294
  } else s.length !== 0 && (a = a.filter(({ id: o }) => s.includes(o)));
3298
3295
  return Es(t) && (a = fs(t, a)), a?.map((o) => ({
3299
3296
  ...o,
3300
- name: r ? pe(o, r) : o?.name
3297
+ name: r ? ye(o, r) : o?.name
3301
3298
  }));
3302
3299
  }, xs = (t, e) => t != null && t.length > 0 && e != null, Ps = (t) => {
3303
3300
  const e = [];
@@ -3352,13 +3349,13 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3352
3349
  }, Ge = Object.keys(Dt), ks = (t) => {
3353
3350
  if (Ge.indexOf(t) === -1)
3354
3351
  throw new Error(`Invalid operator, expected one of ${Ge.join("|")}`);
3355
- }, ie = "+", be = (t, e) => {
3352
+ }, oe = "+", pe = (t, e) => {
3356
3353
  const { agency: n, id: r, version: s } = C(t), a = e.filter(
3357
- (c) => c.agencyID === n && c.id === r && !c?.version?.includes(ie)
3354
+ (c) => c.agencyID === n && c.id === r && !c?.version?.includes(oe)
3358
3355
  );
3359
3356
  if (a.length === 1)
3360
3357
  return a[0];
3361
- if (!s?.includes(ie))
3358
+ if (!s?.includes(oe))
3362
3359
  return a.find((c) => c.version === s);
3363
3360
  const o = a.map(
3364
3361
  (c) => c.version
@@ -3384,7 +3381,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3384
3381
  }, Ys = (t, e) => {
3385
3382
  const n = t.trim().replace(/\+/, ""), r = _s(t);
3386
3383
  return e.startsWith(r) && Ns(e, n, ">=");
3387
- }, De = (t, e) => {
3384
+ }, be = (t, e) => {
3388
3385
  const { concept: n } = Cs(t, e);
3389
3386
  return n;
3390
3387
  }, Cs = (t, e) => {
@@ -3394,8 +3391,8 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3394
3391
  scheme: void 0
3395
3392
  };
3396
3393
  const { childId: n, agency: r, id: s, version: a } = tt(t);
3397
- if (a?.includes(ie)) {
3398
- const o = be(
3394
+ if (a?.includes(oe)) {
3395
+ const o = pe(
3399
3396
  t,
3400
3397
  e
3401
3398
  );
@@ -3415,13 +3412,13 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3415
3412
  scheme: void 0
3416
3413
  };
3417
3414
  }, Xe = (t, e) => t?.find((n) => n.id === e), Ls = (t, e, n, r) => t.id === e && t.agencyID === n && t.version === r, ja = (t = [], e = [], n) => {
3418
- const r = n?.conceptIdentity || "", s = De(r, e), a = K(
3415
+ const r = n?.conceptIdentity || "", s = be(r, e), a = z(
3419
3416
  n?.localRepresentation?.enumeration
3420
- ), o = K(
3417
+ ), o = z(
3421
3418
  s?.coreRepresentation?.enumeration
3422
3419
  ), i = a || o;
3423
3420
  if (i != null)
3424
- return be(i, t);
3421
+ return pe(i, t);
3425
3422
  }, Ss = (t, e) => {
3426
3423
  const n = t?.data?.dataSets?.[0], s = t?.data?.structures?.[0]?.attributes?.dimensionGroup || [], a = n?.dimensionGroupAttributes, o = {};
3427
3424
  for (const i of s) {
@@ -3484,7 +3481,7 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3484
3481
  )?.values;
3485
3482
  return n?.filter((a) => s?.some((o) => o.id === a.id))?.map((a) => ({
3486
3483
  ...a,
3487
- name: r ? pe(a, r) : a?.name
3484
+ name: r ? ye(a, r) : a?.name
3488
3485
  })) || [];
3489
3486
  }, Ws = (t, e) => {
3490
3487
  const n = e?.dataStructureComponents?.attributeList, r = t?.metadataStructureComponents?.metadataAttributeList;
@@ -3499,10 +3496,10 @@ const Ba = ["FREQ", "FREQUENCY"], ws = "TIME_PERIOD", ys = "time_period_start",
3499
3496
  };
3500
3497
  });
3501
3498
  }, Ja = (t = [], e, n) => {
3502
- const r = K(e?.conceptIdentity) || "", s = De(r, t);
3503
- return n ? pe(s, n) : s?.name ?? s?.id ?? e?.id;
3499
+ const r = z(e?.conceptIdentity) || "", s = be(r, t);
3500
+ return n ? ye(s, n) : s?.name ?? s?.id ?? e?.id;
3504
3501
  };
3505
- var qs = /* @__PURE__ */ ((t) => (t.CONDITIONAL = "Conditional", t.MANDATORY = "Mandatory", t))(qs || {}), Te = /* @__PURE__ */ ((t) => (t.DIMENSION = "Dimension", t.MEASURE_DIMENSION = "MeasureDimension", t.TIME_DIMENSION = "TimeDimension", t))(Te || {}), Us = /* @__PURE__ */ ((t) => (t.UNBOUNDED = "unbounded", t))(Us || {});
3502
+ var qs = /* @__PURE__ */ ((t) => (t.CONDITIONAL = "Conditional", t.MANDATORY = "Mandatory", t))(qs || {}), De = /* @__PURE__ */ ((t) => (t.DIMENSION = "Dimension", t.MEASURE_DIMENSION = "MeasureDimension", t.TIME_DIMENSION = "TimeDimension", t))(De || {}), Us = /* @__PURE__ */ ((t) => (t.UNBOUNDED = "unbounded", t))(Us || {});
3506
3503
  function je(t) {
3507
3504
  return t?.dataStructures?.[0]?.dataStructureComponents?.dimensionList;
3508
3505
  }
@@ -3514,7 +3511,7 @@ function eo(t) {
3514
3511
  }
3515
3512
  function to(t) {
3516
3513
  return t.find(
3517
- (e) => e.type === Te.TIME_DIMENSION
3514
+ (e) => e.type === De.TIME_DIMENSION
3518
3515
  );
3519
3516
  }
3520
3517
  const no = (t) => {
@@ -3526,10 +3523,10 @@ const no = (t) => {
3526
3523
  ...n?.dataStructureComponents?.attributeList?.attributes || []
3527
3524
  ].forEach(
3528
3525
  (i) => {
3529
- const c = De(
3526
+ const c = be(
3530
3527
  i?.conceptIdentity,
3531
3528
  s
3532
- ), u = i?.localRepresentation?.enumeration || c?.coreRepresentation?.enumeration, d = be(
3529
+ ), u = i?.localRepresentation?.enumeration || c?.coreRepresentation?.enumeration, d = pe(
3533
3530
  u,
3534
3531
  a
3535
3532
  );
@@ -3545,9 +3542,9 @@ const no = (t) => {
3545
3542
  }
3546
3543
  ), e;
3547
3544
  }, ro = (t) => t?.find(
3548
- (e) => e.id === ye.SERIES_COUNT
3549
- )?.title || "", Ee = 1440 * 60 * 1e3, xe = 7 * Ee;
3550
- function Pe(t) {
3545
+ (e) => e.id === we.SERIES_COUNT
3546
+ )?.title || "", Te = 1440 * 60 * 1e3, Ee = 7 * Te;
3547
+ function xe(t) {
3551
3548
  const e = `${t}-01-01`, n = new Date(e);
3552
3549
  if (n.getDay() !== 4) {
3553
3550
  const s = 1 + (4 - n.getDay() + 7) % 7;
@@ -3560,18 +3557,18 @@ function Hs(t) {
3560
3557
  return e.setDate(e.getDate() + r), new Date(e.valueOf());
3561
3558
  }
3562
3559
  function ze(t, e = "W") {
3563
- const n = `${t}-12-31`, r = ee(new Date(n), e);
3560
+ const n = `${t}-12-31`, r = Z(new Date(n), e);
3564
3561
  if (r.weekYear === t)
3565
3562
  return r.weekNumber;
3566
3563
  const s = `${t}-12-24`;
3567
- return ee(new Date(s), e).weekNumber;
3564
+ return Z(new Date(s), e).weekNumber;
3568
3565
  }
3569
3566
  function Et(t, e, n = "W") {
3570
3567
  return `${t}-${n}${e < 10 ? "0" + e : e}`;
3571
3568
  }
3572
- function ee(t, e = "W") {
3573
- const n = Hs(t), r = n.getFullYear(), s = Pe(r), a = 1 + Math.ceil(
3574
- (n.getTime() - s.getTime()) / xe
3569
+ function Z(t, e = "W") {
3570
+ const n = Hs(t), r = n.getFullYear(), s = xe(r), a = 1 + Math.ceil(
3571
+ (n.getTime() - s.getTime()) / Ee
3575
3572
  );
3576
3573
  return {
3577
3574
  code: Et(r, a, e),
@@ -3580,11 +3577,11 @@ function ee(t, e = "W") {
3580
3577
  };
3581
3578
  }
3582
3579
  function Qs(t) {
3583
- const [e, n] = t.split("-W"), s = Pe(+e).getTime() + (+n - 1) * xe - 3 * Ee;
3580
+ const [e, n] = t.split("-W"), s = xe(+e).getTime() + (+n - 1) * Ee - 3 * Te;
3584
3581
  return new Date(s);
3585
3582
  }
3586
3583
  function Fs(t) {
3587
- const [e, n] = t.split("-W"), s = Pe(+e).getTime() + (+n - 1) * xe + 3 * Ee;
3584
+ const [e, n] = t.split("-W"), s = xe(+e).getTime() + (+n - 1) * Ee + 3 * Te;
3588
3585
  return new Date(s);
3589
3586
  }
3590
3587
  const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
@@ -3615,7 +3612,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3615
3612
  }, ao = (t, e) => {
3616
3613
  const n = [];
3617
3614
  for (const r of t) {
3618
- if (r.type !== Te.DIMENSION)
3615
+ if (r.type !== De.DIMENSION)
3619
3616
  continue;
3620
3617
  const s = e.find((a) => a.componentCode === r.id);
3621
3618
  s != null && s.values?.length > 0 ? n.push(s.values?.join(qt)) : n.push("*");
@@ -3649,10 +3646,10 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3649
3646
  return null;
3650
3647
  const a = r.operator;
3651
3648
  if (a === R.LESS_OR_EQUAL || a === R.LESS)
3652
- return { startPeriod: null, endPeriod: G(s[0]) };
3649
+ return { startPeriod: null, endPeriod: V(s[0]) };
3653
3650
  if (a === R.GREATER_OR_EQUAL || a === R.GREATER)
3654
- return { startPeriod: G(s[0]), endPeriod: null };
3655
- const o = G(s[0]), i = G(s[1]);
3651
+ return { startPeriod: V(s[0]), endPeriod: null };
3652
+ const o = V(s[0]), i = V(s[1]);
3656
3653
  return { startPeriod: o, endPeriod: i };
3657
3654
  }, js = "Observation", io = (t) => {
3658
3655
  const e = t?.data?.dataSets, n = t?.data?.structures?.[0];
@@ -3677,7 +3674,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3677
3674
  d.push(
3678
3675
  ...ea(x, n)
3679
3676
  );
3680
- const N = ce(
3677
+ const N = ie(
3681
3678
  r?.series || [],
3682
3679
  (M) => P[M]
3683
3680
  ), f = ta(
@@ -3724,7 +3721,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3724
3721
  name: Js(r),
3725
3722
  parsedTimeSeriesValue: r
3726
3723
  };
3727
- }, ce = (t, e) => {
3724
+ }, ie = (t, e) => {
3728
3725
  const n = [];
3729
3726
  for (let r = 0; r < t.length; r++) {
3730
3727
  const s = t[r], a = e(r), o = a != null && s.values != null ? Ks(a, s) : void 0;
@@ -3743,7 +3740,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3743
3740
  return [
3744
3741
  {
3745
3742
  values: Je(t, e.measures),
3746
- obsAttributes: ce(
3743
+ obsAttributes: ie(
3747
3744
  e.attributes?.observation || [],
3748
3745
  (o) => t[o + n]
3749
3746
  ),
@@ -3759,7 +3756,7 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3759
3756
  r[o],
3760
3757
  e.measures
3761
3758
  ),
3762
- obsAttributes: ce(
3759
+ obsAttributes: ie(
3763
3760
  e.attributes?.observation || [],
3764
3761
  (c) => r[o][c + n]
3765
3762
  )
@@ -3778,20 +3775,20 @@ const Bs = "/api/download", Vs = 6e4, so = async (t, e, n, r, s, a, o) => {
3778
3775
  name: e.id,
3779
3776
  value: s || ""
3780
3777
  });
3781
- }, ra = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, sa = /^[0-9][0-9][0-9][0-9]-W(0[1-9]|[1-4][0-9]|5[0-3])$/, aa = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, oa = /^[0-9][0-9][0-9][0-9]$/, ia = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, ca = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, ve = (t) => oa.exec(t), Me = (t) => !!ve(t), ua = (t) => aa.exec(t), Oe = (t) => !!ua(t), Ae = (t) => ca.exec(t), Ne = (t) => !!Ae(t), ke = (t) => ra.exec(t), Re = (t) => !!ke(t), da = (t) => ia.exec(t), la = (t) => !!da(t), fa = (t) => sa.exec(t), Ie = (t) => !!fa(t);
3778
+ }, ra = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, sa = /^[0-9][0-9][0-9][0-9]-W(0[1-9]|[1-4][0-9]|5[0-3])$/, aa = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, oa = /^[0-9][0-9][0-9][0-9]$/, ia = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, ca = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, Pe = (t) => oa.exec(t), ve = (t) => !!Pe(t), ua = (t) => aa.exec(t), Me = (t) => !!ua(t), Oe = (t) => ca.exec(t), Ae = (t) => !!Oe(t), Ne = (t) => ra.exec(t), ke = (t) => !!Ne(t), da = (t) => ia.exec(t), la = (t) => !!da(t), fa = (t) => sa.exec(t), Re = (t) => !!fa(t);
3782
3779
  function xt(t) {
3783
- return Me(t) ? ma(t) : Oe(t) ? ga(t) : Re(t) ? ya(t) : Ne(t) ? ba(t) : Ie(t) ? Qs(t) : Ta(t);
3780
+ return ve(t) ? ma(t) : Me(t) ? ga(t) : ke(t) ? ya(t) : Ae(t) ? ba(t) : Re(t) ? Qs(t) : Ta(t);
3784
3781
  }
3785
3782
  function Pt(t) {
3786
- return Me(t) ? ha(t) : Oe(t) ? wa(t) : Re(t) ? pa(t) : Ne(t) ? Da(t) : Ie(t) ? Fs(t) : Ea(t);
3783
+ return ve(t) ? ha(t) : Me(t) ? wa(t) : ke(t) ? pa(t) : Ae(t) ? Da(t) : Re(t) ? Fs(t) : Ea(t);
3787
3784
  }
3788
3785
  function ma(t) {
3789
- const e = ve(t);
3786
+ const e = Pe(t);
3790
3787
  if (e)
3791
3788
  return new Date(Number(e[0]), 0, 1);
3792
3789
  }
3793
3790
  function ha(t) {
3794
- const e = ve(t);
3791
+ const e = Pe(t);
3795
3792
  if (e)
3796
3793
  return new Date(Number(e[0]) + 1, 0, 1);
3797
3794
  }
@@ -3814,7 +3811,7 @@ function wa(t) {
3814
3811
  }
3815
3812
  }
3816
3813
  function ya(t) {
3817
- const e = ke(t);
3814
+ const e = Ne(t);
3818
3815
  if (!e)
3819
3816
  return;
3820
3817
  const [n, r] = e[0].split("-Q");
@@ -3830,7 +3827,7 @@ function ya(t) {
3830
3827
  }
3831
3828
  }
3832
3829
  function pa(t) {
3833
- const e = ke(t);
3830
+ const e = Ne(t);
3834
3831
  if (!e)
3835
3832
  return;
3836
3833
  const [n, r] = e[0].split("-Q");
@@ -3846,14 +3843,14 @@ function pa(t) {
3846
3843
  }
3847
3844
  }
3848
3845
  function ba(t) {
3849
- const e = Ae(t);
3846
+ const e = Oe(t);
3850
3847
  if (!e)
3851
3848
  return;
3852
3849
  const [n, r] = e[0].split("-M");
3853
3850
  return new Date(+n, +r - 1, 1);
3854
3851
  }
3855
3852
  function Da(t) {
3856
- const e = Ae(t);
3853
+ const e = Oe(t);
3857
3854
  if (!e)
3858
3855
  return;
3859
3856
  const [n, r] = e[0].split("-M");
@@ -3928,7 +3925,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
3928
3925
  return r - s;
3929
3926
  }
3930
3927
  return n;
3931
- }, Ze = (t) => Me(t) ? 6 : Oe(t) ? 5 : Re(t) ? 4 : Ne(t) ? 3 : Ie(t) ? 2 : la(t) ? 1 : 0, et = (t, e = !1) => (e ? xt(t) : Pt(t))?.getTime() || 0, Mt = (t, e, n) => {
3928
+ }, Ze = (t) => ve(t) ? 6 : Me(t) ? 5 : ke(t) ? 4 : Ae(t) ? 3 : Re(t) ? 2 : la(t) ? 1 : 0, et = (t, e = !1) => (e ? xt(t) : Pt(t))?.getTime() || 0, Mt = (t, e, n) => {
3932
3929
  const r = I(e, !0), s = I(n), a = I(t, !0), o = I(t), i = r.getTime() > a.getTime() ? r : a, c = s.getTime() < o.getTime() ? s : o;
3933
3930
  return {
3934
3931
  start: i,
@@ -3938,7 +3935,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
3938
3935
  const s = +t, { start: a, end: o } = Mt(t, e, n);
3939
3936
  if (a.getTime() > o.getTime())
3940
3937
  return [];
3941
- const i = ee(a, r), c = i.weekYear === s ? i.weekNumber : i.weekYear < s ? 1 : ze(s, r), u = ee(o, r), d = u.weekYear === s ? u.weekNumber : u.weekYear > s ? ze(s, r) : 1, l = [];
3938
+ const i = Z(a, r), c = i.weekYear === s ? i.weekNumber : i.weekYear < s ? 1 : ze(s, r), u = Z(o, r), d = u.weekYear === s ? u.weekNumber : u.weekYear > s ? ze(s, r) : 1, l = [];
3942
3939
  if (c < d)
3943
3940
  for (let m = c; m <= d; m++)
3944
3941
  l.push(Et(s, m, r));
@@ -4001,7 +3998,7 @@ const Ta = (t) => /* @__PURE__ */ new Date(`${t}T00:00:00`), Ea = (t) => {
4001
3998
  };
4002
3999
  function $a(t) {
4003
4000
  const { urn: e } = t.details;
4004
- return de(e.resourceId, e.version, e.agencyId);
4001
+ return ue(e.resourceId, e.version, e.agencyId);
4005
4002
  }
4006
4003
  function mo(t) {
4007
4004
  const e = {};
@@ -4043,8 +4040,8 @@ function Wa(t, e) {
4043
4040
  };
4044
4041
  return n(t) === n(e);
4045
4042
  }
4046
- function ue(t) {
4047
- return de(
4043
+ function ce(t) {
4044
+ return ue(
4048
4045
  t.id,
4049
4046
  t.version ?? "",
4050
4047
  t.agencyID ?? ""
@@ -4052,13 +4049,13 @@ function ue(t) {
4052
4049
  }
4053
4050
  function Ot(t, e, n) {
4054
4051
  e?.forEach((r) => {
4055
- const { childId: s, agency: a, id: o, version: i } = tt(r.code), c = de(o, i, a), u = n?.find(
4056
- (l) => Wa(c, ue(l))
4052
+ const { childId: s, agency: a, id: o, version: i } = tt(r.code), c = ue(o, i, a), u = n?.find(
4053
+ (l) => Wa(c, ce(l))
4057
4054
  ), d = u?.codes?.find((l) => l.id === s);
4058
4055
  if (d != null) {
4059
4056
  const l = r.code.replace(
4060
4057
  c,
4061
- ue(u)
4058
+ ce(u)
4062
4059
  );
4063
4060
  t.push({ ...d, code: l });
4064
4061
  }
@@ -4072,7 +4069,7 @@ function go(t, e) {
4072
4069
  function wo(t) {
4073
4070
  const e = {};
4074
4071
  return t?.forEach((n) => {
4075
- e[ue(n)] = n.codes;
4072
+ e[ce(n)] = n.codes;
4076
4073
  }), e;
4077
4074
  }
4078
4075
  function yo(t, e, n) {
@@ -4113,12 +4110,12 @@ class po {
4113
4110
  }
4114
4111
  }
4115
4112
  export {
4116
- ye as Annotations,
4113
+ we as Annotations,
4117
4114
  qs as AssignmentStatus,
4118
4115
  qa as AvailabilityApi,
4119
4116
  $t as DATASET_DATA_URL,
4120
4117
  Ha as DatasetApi,
4121
- Te as DimensionType,
4118
+ De as DimensionType,
4122
4119
  Ct as DownloadType,
4123
4120
  Ba as FREQUENCY_DIMENSION_ID,
4124
4121
  Sa as FREQUENCY_DIM_ID,
@@ -4132,12 +4129,12 @@ export {
4132
4129
  gs as Periods,
4133
4130
  hs as RepresentationTextType,
4134
4131
  ms as SDMX_DATA_QUERY_PARAMS,
4135
- ie as SINGLE_WILDCARD_SYMBOL,
4132
+ oe as SINGLE_WILDCARD_SYMBOL,
4136
4133
  Qa as SdmxApiClient,
4137
4134
  nt as SdmxAvailabilityMode,
4138
- X as SdmxDataFormat,
4135
+ G as SdmxDataFormat,
4139
4136
  rt as SdmxDetails,
4140
- le as SdmxReferences,
4137
+ de as SdmxReferences,
4141
4138
  R as SeriesFilterOperator,
4142
4139
  ws as TIME_PERIOD,
4143
4140
  ps as TIME_PERIOD_END_ANNOTATION_KEY,
@@ -4147,10 +4144,10 @@ export {
4147
4144
  Zs as decodeDimensionId,
4148
4145
  ja as findCodelistByDimension,
4149
4146
  Ye as generateDatasetDataRequest,
4150
- de as generateShortUrn,
4147
+ ue as generateShortUrn,
4151
4148
  fo as getAdditionalColumns,
4152
4149
  Va as getAnnotationPeriod,
4153
- be as getArtifactByUrnWithWildCard,
4150
+ pe as getArtifactByUrnWithWildCard,
4154
4151
  za as getAttachedDimensionsSeriesByDimension,
4155
4152
  Ss as getAttachedDimensionsSeriesByTsId,
4156
4153
  Tt as getAttachedDimensionsSeriesKey,
@@ -4159,7 +4156,7 @@ export {
4159
4156
  Ga as getAvailableCodesFromConstrains,
4160
4157
  tt as getChildParsedUrn,
4161
4158
  wo as getCodeListsData,
4162
- De as getConcept,
4159
+ be as getConcept,
4163
4160
  Xe as getConceptByUrn,
4164
4161
  Cs as getConceptWithScheme,
4165
4162
  Ws as getConvertedMetaAttributes,
@@ -4172,28 +4169,28 @@ export {
4172
4169
  Xa as getFiltersDtoMapFromDataQuery,
4173
4170
  yo as getHierarchyAvailableCodes,
4174
4171
  go as getHierarchyCodes,
4175
- ee as getISOWeek,
4176
- K as getKeyFromUrn,
4172
+ Z as getISOWeek,
4173
+ z as getKeyFromUrn,
4177
4174
  Fa as getLastUpdatedTime,
4178
4175
  ze as getLastWeekNumberOfYear,
4179
- pe as getLocalizedName,
4176
+ ye as getLocalizedName,
4180
4177
  Aa as getMonthlyData,
4181
4178
  uo as getMonthlyDataByQuarter,
4182
- Ae as getMonthlyRegExp,
4179
+ Oe as getMonthlyRegExp,
4183
4180
  Pt as getParsedEndPeriodDate,
4184
4181
  io as getParsedResponse,
4185
4182
  xt as getParsedStartPeriodDate,
4186
4183
  I as getPeriodDate,
4187
4184
  Ca as getPeriods,
4188
4185
  co as getQuarterByMonth,
4189
- ke as getQuarterlyRegExp,
4186
+ Ne as getQuarterlyRegExp,
4190
4187
  Pa as getQuartersData,
4191
4188
  Gs as getQueryTimePeriodFilters,
4192
4189
  Lt as getRequestAcceptHeader,
4193
4190
  Rs as getResolvedVersionBySingleWildcard,
4194
4191
  va as getSemiAnnualData,
4195
4192
  ua as getSemiAnnuallyRegExp,
4196
- ce as getSeriesAttributes,
4193
+ ie as getSeriesAttributes,
4197
4194
  zs as getSeriesName,
4198
4195
  no as getStructureComponentsMap,
4199
4196
  Za as getStructureDimensions,
@@ -4211,15 +4208,15 @@ export {
4211
4208
  Ia as getWeeksColumns,
4212
4209
  _s as getWildCardPrefix,
4213
4210
  Mt as getYearPeriod,
4214
- ve as getYearlyRegExp,
4211
+ Pe as getYearlyRegExp,
4215
4212
  Na as getYears,
4216
4213
  la as isDaily,
4217
- Ne as isMonthly,
4218
- Re as isQuarterly,
4219
- Oe as isSemiAnnually,
4220
- Ie as isWeekly,
4214
+ Ae as isMonthly,
4215
+ ke as isQuarterly,
4216
+ Me as isSemiAnnually,
4217
+ Re as isWeekly,
4221
4218
  Ys as isWildCardVersionCorrect,
4222
- Me as isYearly,
4219
+ ve as isYearly,
4223
4220
  ca as monthlyPattern,
4224
4221
  so as openDownloadWindow,
4225
4222
  ra as quarterPattern,