scordi-extension 1.15.13 → 1.15.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk/index.js CHANGED
@@ -1,7 +1,7 @@
1
- var On = Object.defineProperty;
2
- var Pn = (r, e, t) => e in r ? On(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var ue = (r, e, t) => Pn(r, typeof e != "symbol" ? e + "" : e, t);
4
- var be;
1
+ var Pn = Object.defineProperty;
2
+ var Nn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var ue = (r, e, t) => Nn(r, typeof e != "symbol" ? e + "" : e, t);
4
+ var we;
5
5
  (function(r) {
6
6
  r.assertEqual = (s) => {
7
7
  };
@@ -37,7 +37,7 @@ var be;
37
37
  return s.map((c) => typeof c == "string" ? `'${c}'` : c).join(i);
38
38
  }
39
39
  r.joinValues = a, r.jsonStringifyReplacer = (s, i) => typeof i == "bigint" ? i.toString() : i;
40
- })(be || (be = {}));
40
+ })(we || (we = {}));
41
41
  var Rr;
42
42
  (function(r) {
43
43
  r.mergeShapes = (e, t) => ({
@@ -46,7 +46,7 @@ var Rr;
46
46
  // second overwrites first
47
47
  });
48
48
  })(Rr || (Rr = {}));
49
- const z = be.arrayToEnum([
49
+ const z = we.arrayToEnum([
50
50
  "string",
51
51
  "nan",
52
52
  "number",
@@ -88,7 +88,7 @@ const z = be.arrayToEnum([
88
88
  default:
89
89
  return z.unknown;
90
90
  }
91
- }, P = be.arrayToEnum([
91
+ }, P = we.arrayToEnum([
92
92
  "invalid_type",
93
93
  "invalid_literal",
94
94
  "custom",
@@ -105,7 +105,7 @@ const z = be.arrayToEnum([
105
105
  "invalid_intersection_types",
106
106
  "not_multiple_of",
107
107
  "not_finite"
108
- ]), Nn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
108
+ ]), Cn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
109
109
  class at extends Error {
110
110
  get errors() {
111
111
  return this.issues;
@@ -133,10 +133,10 @@ class at extends Error {
133
133
  else if (c.path.length === 0)
134
134
  a._errors.push(t(c));
135
135
  else {
136
- let f = a, b = 0;
137
- for (; b < c.path.length; ) {
138
- const k = c.path[b];
139
- b === c.path.length - 1 ? (f[k] = f[k] || { _errors: [] }, f[k]._errors.push(t(c))) : f[k] = f[k] || { _errors: [] }, f = f[k], b++;
136
+ let f = a, w = 0;
137
+ for (; w < c.path.length; ) {
138
+ const k = c.path[w];
139
+ w === c.path.length - 1 ? (f[k] = f[k] || { _errors: [] }, f[k]._errors.push(t(c))) : f[k] = f[k] || { _errors: [] }, f = f[k], w++;
140
140
  }
141
141
  }
142
142
  };
@@ -150,7 +150,7 @@ class at extends Error {
150
150
  return this.message;
151
151
  }
152
152
  get message() {
153
- return JSON.stringify(this.issues, be.jsonStringifyReplacer, 2);
153
+ return JSON.stringify(this.issues, we.jsonStringifyReplacer, 2);
154
154
  }
155
155
  get isEmpty() {
156
156
  return this.issues.length === 0;
@@ -177,19 +177,19 @@ const Gt = (r, e) => {
177
177
  r.received === z.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
178
178
  break;
179
179
  case P.invalid_literal:
180
- t = `Invalid literal value, expected ${JSON.stringify(r.expected, be.jsonStringifyReplacer)}`;
180
+ t = `Invalid literal value, expected ${JSON.stringify(r.expected, we.jsonStringifyReplacer)}`;
181
181
  break;
182
182
  case P.unrecognized_keys:
183
- t = `Unrecognized key(s) in object: ${be.joinValues(r.keys, ", ")}`;
183
+ t = `Unrecognized key(s) in object: ${we.joinValues(r.keys, ", ")}`;
184
184
  break;
185
185
  case P.invalid_union:
186
186
  t = "Invalid input";
187
187
  break;
188
188
  case P.invalid_union_discriminator:
189
- t = `Invalid discriminator value. Expected ${be.joinValues(r.options)}`;
189
+ t = `Invalid discriminator value. Expected ${we.joinValues(r.options)}`;
190
190
  break;
191
191
  case P.invalid_enum_value:
192
- t = `Invalid enum value. Expected ${be.joinValues(r.options)}, received '${r.received}'`;
192
+ t = `Invalid enum value. Expected ${we.joinValues(r.options)}, received '${r.received}'`;
193
193
  break;
194
194
  case P.invalid_arguments:
195
195
  t = "Invalid function arguments";
@@ -201,7 +201,7 @@ const Gt = (r, e) => {
201
201
  t = "Invalid date";
202
202
  break;
203
203
  case P.invalid_string:
204
- typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` : be.assertNever(r.validation) : r.validation !== "regex" ? t = `Invalid ${r.validation}` : t = "Invalid";
204
+ typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` : we.assertNever(r.validation) : r.validation !== "regex" ? t = `Invalid ${r.validation}` : t = "Invalid";
205
205
  break;
206
206
  case P.too_small:
207
207
  r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "more than"} ${r.minimum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "over"} ${r.minimum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "bigint" ? t = `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(r.minimum))}` : t = "Invalid input";
@@ -222,12 +222,12 @@ const Gt = (r, e) => {
222
222
  t = "Number must be finite";
223
223
  break;
224
224
  default:
225
- t = e.defaultError, be.assertNever(r);
225
+ t = e.defaultError, we.assertNever(r);
226
226
  }
227
227
  return { message: t };
228
228
  };
229
229
  let Xr = Gt;
230
- function Cn(r) {
230
+ function Rn(r) {
231
231
  Xr = r;
232
232
  }
233
233
  function xr() {
@@ -245,15 +245,15 @@ const _r = (r) => {
245
245
  message: s.message
246
246
  };
247
247
  let f = "";
248
- const b = a.filter((k) => !!k).slice().reverse();
249
- for (const k of b)
248
+ const w = a.filter((k) => !!k).slice().reverse();
249
+ for (const k of w)
250
250
  f = k(c, { data: e, defaultError: f }).message;
251
251
  return {
252
252
  ...s,
253
253
  path: i,
254
254
  message: f
255
255
  };
256
- }, Rn = [];
256
+ }, Mn = [];
257
257
  function $(r, e) {
258
258
  const t = xr(), a = _r({
259
259
  issueData: e,
@@ -350,8 +350,8 @@ function oe(r) {
350
350
  if (e && (t || a))
351
351
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
352
352
  return e ? { errorMap: e, description: s } : { errorMap: (c, f) => {
353
- const { message: b } = r;
354
- return c.code === "invalid_enum_value" ? { message: b ?? f.defaultError } : typeof f.data > "u" ? { message: b ?? a ?? f.defaultError } : c.code !== "invalid_type" ? { message: f.defaultError } : { message: b ?? t ?? f.defaultError };
353
+ const { message: w } = r;
354
+ return c.code === "invalid_enum_value" ? { message: w ?? f.defaultError } : typeof f.data > "u" ? { message: w ?? a ?? f.defaultError } : c.code !== "invalid_type" ? { message: f.defaultError } : { message: w ?? t ?? f.defaultError };
355
355
  }, description: s };
356
356
  }
357
357
  class le {
@@ -476,7 +476,7 @@ class le {
476
476
  code: P.custom,
477
477
  ...a(s)
478
478
  });
479
- return typeof Promise < "u" && c instanceof Promise ? c.then((b) => b ? !0 : (f(), !1)) : c ? !0 : (f(), !1);
479
+ return typeof Promise < "u" && c instanceof Promise ? c.then((w) => w ? !0 : (f(), !1)) : c ? !0 : (f(), !1);
480
480
  });
481
481
  }
482
482
  refinement(e, t) {
@@ -573,16 +573,16 @@ class le {
573
573
  return this.safeParse(null).success;
574
574
  }
575
575
  }
576
- const Mn = /^c[^\s-]{8,}$/i, In = /^[0-9a-z]+$/, jn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Fn = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Un = /^[a-z0-9_-]{21}$/i, $n = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ln = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Bn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Zn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
576
+ const In = /^c[^\s-]{8,}$/i, jn = /^[0-9a-z]+$/, Fn = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Un = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, $n = /^[a-z0-9_-]{21}$/i, Ln = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Bn = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Zn = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, zn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
577
577
  let Pr;
578
- const zn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Wn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Vn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, qn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Hn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Gn = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Qr = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Yn = new RegExp(`^${Qr}$`);
578
+ const Wn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Vn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, qn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Hn = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Gn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Yn = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Qr = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Kn = new RegExp(`^${Qr}$`);
579
579
  function en(r) {
580
580
  let e = "[0-5]\\d";
581
581
  r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`);
582
582
  const t = r.precision ? "+" : "?";
583
583
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`;
584
584
  }
585
- function Kn(r) {
585
+ function Jn(r) {
586
586
  return new RegExp(`^${en(r)}$`);
587
587
  }
588
588
  function tn(r) {
@@ -590,11 +590,11 @@ function tn(r) {
590
590
  const t = [];
591
591
  return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
592
592
  }
593
- function Jn(r, e) {
594
- return !!((e === "v4" || !e) && zn.test(r) || (e === "v6" || !e) && Vn.test(r));
595
- }
596
593
  function Xn(r, e) {
597
- if (!$n.test(r))
594
+ return !!((e === "v4" || !e) && Wn.test(r) || (e === "v6" || !e) && qn.test(r));
595
+ }
596
+ function Qn(r, e) {
597
+ if (!Ln.test(r))
598
598
  return !1;
599
599
  try {
600
600
  const [t] = r.split(".");
@@ -606,8 +606,8 @@ function Xn(r, e) {
606
606
  return !1;
607
607
  }
608
608
  }
609
- function Qn(r, e) {
610
- return !!((e === "v4" || !e) && Wn.test(r) || (e === "v6" || !e) && qn.test(r));
609
+ function ea(r, e) {
610
+ return !!((e === "v4" || !e) && Vn.test(r) || (e === "v6" || !e) && Hn.test(r));
611
611
  }
612
612
  class ft extends le {
613
613
  _parse(e) {
@@ -658,43 +658,43 @@ class ft extends le {
658
658
  message: i.message
659
659
  }), a.dirty());
660
660
  } else if (i.kind === "email")
661
- Bn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
661
+ Zn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
662
662
  validation: "email",
663
663
  code: P.invalid_string,
664
664
  message: i.message
665
665
  }), a.dirty());
666
666
  else if (i.kind === "emoji")
667
- Pr || (Pr = new RegExp(Zn, "u")), Pr.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
667
+ Pr || (Pr = new RegExp(zn, "u")), Pr.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
668
668
  validation: "emoji",
669
669
  code: P.invalid_string,
670
670
  message: i.message
671
671
  }), a.dirty());
672
672
  else if (i.kind === "uuid")
673
- Fn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
673
+ Un.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
674
674
  validation: "uuid",
675
675
  code: P.invalid_string,
676
676
  message: i.message
677
677
  }), a.dirty());
678
678
  else if (i.kind === "nanoid")
679
- Un.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
679
+ $n.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
680
680
  validation: "nanoid",
681
681
  code: P.invalid_string,
682
682
  message: i.message
683
683
  }), a.dirty());
684
684
  else if (i.kind === "cuid")
685
- Mn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
685
+ In.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
686
686
  validation: "cuid",
687
687
  code: P.invalid_string,
688
688
  message: i.message
689
689
  }), a.dirty());
690
690
  else if (i.kind === "cuid2")
691
- In.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
691
+ jn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
692
692
  validation: "cuid2",
693
693
  code: P.invalid_string,
694
694
  message: i.message
695
695
  }), a.dirty());
696
696
  else if (i.kind === "ulid")
697
- jn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
697
+ Fn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
698
698
  validation: "ulid",
699
699
  code: P.invalid_string,
700
700
  message: i.message
@@ -729,39 +729,39 @@ class ft extends le {
729
729
  code: P.invalid_string,
730
730
  validation: "datetime",
731
731
  message: i.message
732
- }), a.dirty()) : i.kind === "date" ? Yn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
732
+ }), a.dirty()) : i.kind === "date" ? Kn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
733
733
  code: P.invalid_string,
734
734
  validation: "date",
735
735
  message: i.message
736
- }), a.dirty()) : i.kind === "time" ? Kn(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
736
+ }), a.dirty()) : i.kind === "time" ? Jn(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
737
737
  code: P.invalid_string,
738
738
  validation: "time",
739
739
  message: i.message
740
- }), a.dirty()) : i.kind === "duration" ? Ln.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
740
+ }), a.dirty()) : i.kind === "duration" ? Bn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
741
741
  validation: "duration",
742
742
  code: P.invalid_string,
743
743
  message: i.message
744
- }), a.dirty()) : i.kind === "ip" ? Jn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
744
+ }), a.dirty()) : i.kind === "ip" ? Xn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
745
745
  validation: "ip",
746
746
  code: P.invalid_string,
747
747
  message: i.message
748
- }), a.dirty()) : i.kind === "jwt" ? Xn(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), $(s, {
748
+ }), a.dirty()) : i.kind === "jwt" ? Qn(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), $(s, {
749
749
  validation: "jwt",
750
750
  code: P.invalid_string,
751
751
  message: i.message
752
- }), a.dirty()) : i.kind === "cidr" ? Qn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
752
+ }), a.dirty()) : i.kind === "cidr" ? ea(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
753
753
  validation: "cidr",
754
754
  code: P.invalid_string,
755
755
  message: i.message
756
- }), a.dirty()) : i.kind === "base64" ? Hn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
756
+ }), a.dirty()) : i.kind === "base64" ? Gn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
757
757
  validation: "base64",
758
758
  code: P.invalid_string,
759
759
  message: i.message
760
- }), a.dirty()) : i.kind === "base64url" ? Gn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
760
+ }), a.dirty()) : i.kind === "base64url" ? Yn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
761
761
  validation: "base64url",
762
762
  code: P.invalid_string,
763
763
  message: i.message
764
- }), a.dirty()) : be.assertNever(i);
764
+ }), a.dirty()) : we.assertNever(i);
765
765
  return { status: a.value, value: e.data };
766
766
  }
767
767
  _regex(e, t, a) {
@@ -992,7 +992,7 @@ ft.create = (r) => new ft({
992
992
  coerce: (r == null ? void 0 : r.coerce) ?? !1,
993
993
  ...oe(r)
994
994
  });
995
- function ea(r, e) {
995
+ function ta(r, e) {
996
996
  const t = (r.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, s = t > a ? t : a, i = Number.parseInt(r.toFixed(s).replace(".", "")), c = Number.parseInt(e.toFixed(s).replace(".", ""));
997
997
  return i % c / 10 ** s;
998
998
  }
@@ -1012,7 +1012,7 @@ class Ot extends le {
1012
1012
  let a;
1013
1013
  const s = new Ke();
1014
1014
  for (const i of this._def.checks)
1015
- i.kind === "int" ? be.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), $(a, {
1015
+ i.kind === "int" ? we.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), $(a, {
1016
1016
  code: P.invalid_type,
1017
1017
  expected: "integer",
1018
1018
  received: "float",
@@ -1031,14 +1031,14 @@ class Ot extends le {
1031
1031
  inclusive: i.inclusive,
1032
1032
  exact: !1,
1033
1033
  message: i.message
1034
- }), s.dirty()) : i.kind === "multipleOf" ? ea(e.data, i.value) !== 0 && (a = this._getOrReturnCtx(e, a), $(a, {
1034
+ }), s.dirty()) : i.kind === "multipleOf" ? ta(e.data, i.value) !== 0 && (a = this._getOrReturnCtx(e, a), $(a, {
1035
1035
  code: P.not_multiple_of,
1036
1036
  multipleOf: i.value,
1037
1037
  message: i.message
1038
1038
  }), s.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (a = this._getOrReturnCtx(e, a), $(a, {
1039
1039
  code: P.not_finite,
1040
1040
  message: i.message
1041
- }), s.dirty()) : be.assertNever(i);
1041
+ }), s.dirty()) : we.assertNever(i);
1042
1042
  return { status: s.value, value: e.data };
1043
1043
  }
1044
1044
  gte(e, t) {
@@ -1150,7 +1150,7 @@ class Ot extends le {
1150
1150
  return e;
1151
1151
  }
1152
1152
  get isInt() {
1153
- return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && be.isInteger(e.value));
1153
+ return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && we.isInteger(e.value));
1154
1154
  }
1155
1155
  get isFinite() {
1156
1156
  let e = null, t = null;
@@ -1200,7 +1200,7 @@ class Pt extends le {
1200
1200
  code: P.not_multiple_of,
1201
1201
  multipleOf: i.value,
1202
1202
  message: i.message
1203
- }), s.dirty()) : be.assertNever(i);
1203
+ }), s.dirty()) : we.assertNever(i);
1204
1204
  return { status: s.value, value: e.data };
1205
1205
  }
1206
1206
  _getInvalidInput(e) {
@@ -1352,7 +1352,7 @@ class Ut extends le {
1352
1352
  exact: !1,
1353
1353
  maximum: i.value,
1354
1354
  type: "date"
1355
- }), a.dirty()) : be.assertNever(i);
1355
+ }), a.dirty()) : we.assertNever(i);
1356
1356
  return {
1357
1357
  status: a.value,
1358
1358
  value: new Date(e.data.getTime())
@@ -1599,7 +1599,7 @@ class Ie extends le {
1599
1599
  _getCached() {
1600
1600
  if (this._cached !== null)
1601
1601
  return this._cached;
1602
- const e = this._def.shape(), t = be.objectKeys(e);
1602
+ const e = this._def.shape(), t = we.objectKeys(e);
1603
1603
  return this._cached = { shape: e, keys: t }, this._cached;
1604
1604
  }
1605
1605
  _parse(e) {
@@ -1615,12 +1615,12 @@ class Ie extends le {
1615
1615
  if (!(this._def.catchall instanceof Et && this._def.unknownKeys === "strip"))
1616
1616
  for (const k in s.data)
1617
1617
  c.includes(k) || f.push(k);
1618
- const b = [];
1618
+ const w = [];
1619
1619
  for (const k of c) {
1620
- const M = i[k], S = s.data[k];
1621
- b.push({
1620
+ const M = i[k], D = s.data[k];
1621
+ w.push({
1622
1622
  key: { status: "valid", value: k },
1623
- value: M._parse(new gt(s, S, s.path, k)),
1623
+ value: M._parse(new gt(s, D, s.path, k)),
1624
1624
  alwaysSet: k in s.data
1625
1625
  });
1626
1626
  }
@@ -1628,7 +1628,7 @@ class Ie extends le {
1628
1628
  const k = this._def.unknownKeys;
1629
1629
  if (k === "passthrough")
1630
1630
  for (const M of f)
1631
- b.push({
1631
+ w.push({
1632
1632
  key: { status: "valid", value: M },
1633
1633
  value: { status: "valid", value: s.data[M] }
1634
1634
  });
@@ -1641,11 +1641,11 @@ class Ie extends le {
1641
1641
  } else {
1642
1642
  const k = this._def.catchall;
1643
1643
  for (const M of f) {
1644
- const S = s.data[M];
1645
- b.push({
1644
+ const D = s.data[M];
1645
+ w.push({
1646
1646
  key: { status: "valid", value: M },
1647
1647
  value: k._parse(
1648
- new gt(s, S, s.path, M)
1648
+ new gt(s, D, s.path, M)
1649
1649
  //, ctx.child(key), value, getParsedType(value)
1650
1650
  ),
1651
1651
  alwaysSet: M in s.data
@@ -1654,16 +1654,16 @@ class Ie extends le {
1654
1654
  }
1655
1655
  return s.common.async ? Promise.resolve().then(async () => {
1656
1656
  const k = [];
1657
- for (const M of b) {
1658
- const S = await M.key, x = await M.value;
1657
+ for (const M of w) {
1658
+ const D = await M.key, x = await M.value;
1659
1659
  k.push({
1660
- key: S,
1660
+ key: D,
1661
1661
  value: x,
1662
1662
  alwaysSet: M.alwaysSet
1663
1663
  });
1664
1664
  }
1665
1665
  return k;
1666
- }).then((k) => Ke.mergeObjectSync(a, k)) : Ke.mergeObjectSync(a, b);
1666
+ }).then((k) => Ke.mergeObjectSync(a, k)) : Ke.mergeObjectSync(a, w);
1667
1667
  }
1668
1668
  get shape() {
1669
1669
  return this._def.shape();
@@ -1806,7 +1806,7 @@ class Ie extends le {
1806
1806
  }
1807
1807
  pick(e) {
1808
1808
  const t = {};
1809
- for (const a of be.objectKeys(e))
1809
+ for (const a of we.objectKeys(e))
1810
1810
  e[a] && this.shape[a] && (t[a] = this.shape[a]);
1811
1811
  return new Ie({
1812
1812
  ...this._def,
@@ -1815,7 +1815,7 @@ class Ie extends le {
1815
1815
  }
1816
1816
  omit(e) {
1817
1817
  const t = {};
1818
- for (const a of be.objectKeys(this.shape))
1818
+ for (const a of we.objectKeys(this.shape))
1819
1819
  e[a] || (t[a] = this.shape[a]);
1820
1820
  return new Ie({
1821
1821
  ...this._def,
@@ -1830,7 +1830,7 @@ class Ie extends le {
1830
1830
  }
1831
1831
  partial(e) {
1832
1832
  const t = {};
1833
- for (const a of be.objectKeys(this.shape)) {
1833
+ for (const a of we.objectKeys(this.shape)) {
1834
1834
  const s = this.shape[a];
1835
1835
  e && !e[a] ? t[a] = s : t[a] = s.optional();
1836
1836
  }
@@ -1841,7 +1841,7 @@ class Ie extends le {
1841
1841
  }
1842
1842
  required(e) {
1843
1843
  const t = {};
1844
- for (const a of be.objectKeys(this.shape))
1844
+ for (const a of we.objectKeys(this.shape))
1845
1845
  if (e && !e[a])
1846
1846
  t[a] = this.shape[a];
1847
1847
  else {
@@ -1856,7 +1856,7 @@ class Ie extends le {
1856
1856
  });
1857
1857
  }
1858
1858
  keyof() {
1859
- return rn(be.objectKeys(this.shape));
1859
+ return rn(we.objectKeys(this.shape));
1860
1860
  }
1861
1861
  }
1862
1862
  Ie.create = (r, e) => new Ie({
@@ -1918,7 +1918,7 @@ class sr extends le {
1918
1918
  {
1919
1919
  let i;
1920
1920
  const c = [];
1921
- for (const b of a) {
1921
+ for (const w of a) {
1922
1922
  const k = {
1923
1923
  ...t,
1924
1924
  common: {
@@ -1926,7 +1926,7 @@ class sr extends le {
1926
1926
  issues: []
1927
1927
  },
1928
1928
  parent: null
1929
- }, M = b._parseSync({
1929
+ }, M = w._parseSync({
1930
1930
  data: t.data,
1931
1931
  path: t.path,
1932
1932
  parent: k
@@ -1937,7 +1937,7 @@ class sr extends le {
1937
1937
  }
1938
1938
  if (i)
1939
1939
  return t.common.issues.push(...i.ctx.common.issues), i.result;
1940
- const f = c.map((b) => new at(b));
1940
+ const f = c.map((w) => new at(w));
1941
1941
  return $(t, {
1942
1942
  code: P.invalid_union,
1943
1943
  unionErrors: f
@@ -1953,7 +1953,7 @@ sr.create = (r, e) => new sr({
1953
1953
  typeName: ne.ZodUnion,
1954
1954
  ...oe(e)
1955
1955
  });
1956
- const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof Nt ? r.options : r instanceof lr ? be.objectValues(r.enum) : r instanceof fr ? xt(r._def.innerType) : r instanceof nr ? [void 0] : r instanceof ar ? [null] : r instanceof yt ? [void 0, ...xt(r.unwrap())] : r instanceof Ct ? [null, ...xt(r.unwrap())] : r instanceof $r || r instanceof hr ? xt(r.unwrap()) : r instanceof dr ? xt(r._def.innerType) : [];
1956
+ const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof Nt ? r.options : r instanceof lr ? we.objectValues(r.enum) : r instanceof fr ? xt(r._def.innerType) : r instanceof nr ? [void 0] : r instanceof ar ? [null] : r instanceof yt ? [void 0, ...xt(r.unwrap())] : r instanceof Ct ? [null, ...xt(r.unwrap())] : r instanceof $r || r instanceof hr ? xt(r.unwrap()) : r instanceof dr ? xt(r._def.innerType) : [];
1957
1957
  class Dr extends le {
1958
1958
  _parse(e) {
1959
1959
  const { ctx: t } = this._processInputParams(e);
@@ -2021,12 +2021,12 @@ function jr(r, e) {
2021
2021
  if (r === e)
2022
2022
  return { valid: !0, data: r };
2023
2023
  if (t === z.object && a === z.object) {
2024
- const s = be.objectKeys(e), i = be.objectKeys(r).filter((f) => s.indexOf(f) !== -1), c = { ...r, ...e };
2024
+ const s = we.objectKeys(e), i = we.objectKeys(r).filter((f) => s.indexOf(f) !== -1), c = { ...r, ...e };
2025
2025
  for (const f of i) {
2026
- const b = jr(r[f], e[f]);
2027
- if (!b.valid)
2026
+ const w = jr(r[f], e[f]);
2027
+ if (!w.valid)
2028
2028
  return { valid: !1 };
2029
- c[f] = b.data;
2029
+ c[f] = w.data;
2030
2030
  }
2031
2031
  return { valid: !0, data: c };
2032
2032
  } else if (t === z.array && a === z.array) {
@@ -2034,10 +2034,10 @@ function jr(r, e) {
2034
2034
  return { valid: !1 };
2035
2035
  const s = [];
2036
2036
  for (let i = 0; i < r.length; i++) {
2037
- const c = r[i], f = e[i], b = jr(c, f);
2038
- if (!b.valid)
2037
+ const c = r[i], f = e[i], w = jr(c, f);
2038
+ if (!w.valid)
2039
2039
  return { valid: !1 };
2040
- s.push(b.data);
2040
+ s.push(w.data);
2041
2041
  }
2042
2042
  return { valid: !0, data: s };
2043
2043
  } else return t === z.date && a === z.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
@@ -2105,8 +2105,8 @@ class vt extends le {
2105
2105
  type: "array"
2106
2106
  }), t.dirty());
2107
2107
  const i = [...a.data].map((c, f) => {
2108
- const b = this._def.items[f] || this._def.rest;
2109
- return b ? b._parse(new gt(a, c, a.path, f)) : null;
2108
+ const w = this._def.items[f] || this._def.rest;
2109
+ return w ? w._parse(new gt(a, c, a.path, f)) : null;
2110
2110
  }).filter((c) => !!c);
2111
2111
  return a.common.async ? Promise.all(i).then((c) => Ke.mergeArray(t, c)) : Ke.mergeArray(t, i);
2112
2112
  }
@@ -2186,15 +2186,15 @@ class Ar extends le {
2186
2186
  expected: z.map,
2187
2187
  received: a.parsedType
2188
2188
  }), te;
2189
- const s = this._def.keyType, i = this._def.valueType, c = [...a.data.entries()].map(([f, b], k) => ({
2189
+ const s = this._def.keyType, i = this._def.valueType, c = [...a.data.entries()].map(([f, w], k) => ({
2190
2190
  key: s._parse(new gt(a, f, a.path, [k, "key"])),
2191
- value: i._parse(new gt(a, b, a.path, [k, "value"]))
2191
+ value: i._parse(new gt(a, w, a.path, [k, "value"]))
2192
2192
  }));
2193
2193
  if (a.common.async) {
2194
2194
  const f = /* @__PURE__ */ new Map();
2195
2195
  return Promise.resolve().then(async () => {
2196
- for (const b of c) {
2197
- const k = await b.key, M = await b.value;
2196
+ for (const w of c) {
2197
+ const k = await w.key, M = await w.value;
2198
2198
  if (k.status === "aborted" || M.status === "aborted")
2199
2199
  return te;
2200
2200
  (k.status === "dirty" || M.status === "dirty") && t.dirty(), f.set(k.value, M.value);
@@ -2203,8 +2203,8 @@ class Ar extends le {
2203
2203
  });
2204
2204
  } else {
2205
2205
  const f = /* @__PURE__ */ new Map();
2206
- for (const b of c) {
2207
- const k = b.key, M = b.value;
2206
+ for (const w of c) {
2207
+ const k = w.key, M = w.value;
2208
2208
  if (k.status === "aborted" || M.status === "aborted")
2209
2209
  return te;
2210
2210
  (k.status === "dirty" || M.status === "dirty") && t.dirty(), f.set(k.value, M.value);
@@ -2245,17 +2245,17 @@ class $t extends le {
2245
2245
  message: s.maxSize.message
2246
2246
  }), t.dirty());
2247
2247
  const i = this._def.valueType;
2248
- function c(b) {
2248
+ function c(w) {
2249
2249
  const k = /* @__PURE__ */ new Set();
2250
- for (const M of b) {
2250
+ for (const M of w) {
2251
2251
  if (M.status === "aborted")
2252
2252
  return te;
2253
2253
  M.status === "dirty" && t.dirty(), k.add(M.value);
2254
2254
  }
2255
2255
  return { status: t.value, value: k };
2256
2256
  }
2257
- const f = [...a.data.values()].map((b, k) => i._parse(new gt(a, b, a.path, k)));
2258
- return a.common.async ? Promise.all(f).then((b) => c(b)) : c(f);
2257
+ const f = [...a.data.values()].map((w, k) => i._parse(new gt(a, w, a.path, k)));
2258
+ return a.common.async ? Promise.all(f).then((w) => c(w)) : c(f);
2259
2259
  }
2260
2260
  min(e, t) {
2261
2261
  return new $t({
@@ -2295,49 +2295,49 @@ class Ht extends le {
2295
2295
  expected: z.function,
2296
2296
  received: t.parsedType
2297
2297
  }), te;
2298
- function a(f, b) {
2298
+ function a(f, w) {
2299
2299
  return _r({
2300
2300
  data: f,
2301
2301
  path: t.path,
2302
2302
  errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(), Gt].filter((k) => !!k),
2303
2303
  issueData: {
2304
2304
  code: P.invalid_arguments,
2305
- argumentsError: b
2305
+ argumentsError: w
2306
2306
  }
2307
2307
  });
2308
2308
  }
2309
- function s(f, b) {
2309
+ function s(f, w) {
2310
2310
  return _r({
2311
2311
  data: f,
2312
2312
  path: t.path,
2313
2313
  errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(), Gt].filter((k) => !!k),
2314
2314
  issueData: {
2315
2315
  code: P.invalid_return_type,
2316
- returnTypeError: b
2316
+ returnTypeError: w
2317
2317
  }
2318
2318
  });
2319
2319
  }
2320
2320
  const i = { errorMap: t.common.contextualErrorMap }, c = t.data;
2321
2321
  if (this._def.returns instanceof Kt) {
2322
2322
  const f = this;
2323
- return Je(async function(...b) {
2324
- const k = new at([]), M = await f._def.args.parseAsync(b, i).catch((A) => {
2325
- throw k.addIssue(a(b, A)), k;
2326
- }), S = await Reflect.apply(c, this, M);
2327
- return await f._def.returns._def.type.parseAsync(S, i).catch((A) => {
2328
- throw k.addIssue(s(S, A)), k;
2323
+ return Je(async function(...w) {
2324
+ const k = new at([]), M = await f._def.args.parseAsync(w, i).catch((S) => {
2325
+ throw k.addIssue(a(w, S)), k;
2326
+ }), D = await Reflect.apply(c, this, M);
2327
+ return await f._def.returns._def.type.parseAsync(D, i).catch((S) => {
2328
+ throw k.addIssue(s(D, S)), k;
2329
2329
  });
2330
2330
  });
2331
2331
  } else {
2332
2332
  const f = this;
2333
- return Je(function(...b) {
2334
- const k = f._def.args.safeParse(b, i);
2333
+ return Je(function(...w) {
2334
+ const k = f._def.args.safeParse(w, i);
2335
2335
  if (!k.success)
2336
- throw new at([a(b, k.error)]);
2337
- const M = Reflect.apply(c, this, k.data), S = f._def.returns.safeParse(M, i);
2338
- if (!S.success)
2339
- throw new at([s(M, S.error)]);
2340
- return S.data;
2336
+ throw new at([a(w, k.error)]);
2337
+ const M = Reflect.apply(c, this, k.data), D = f._def.returns.safeParse(M, i);
2338
+ if (!D.success)
2339
+ throw new at([s(M, D.error)]);
2340
+ return D.data;
2341
2341
  });
2342
2342
  }
2343
2343
  }
@@ -2421,7 +2421,7 @@ class Nt extends le {
2421
2421
  if (typeof e.data != "string") {
2422
2422
  const t = this._getOrReturnCtx(e), a = this._def.values;
2423
2423
  return $(t, {
2424
- expected: be.joinValues(a),
2424
+ expected: we.joinValues(a),
2425
2425
  received: t.parsedType,
2426
2426
  code: P.invalid_type
2427
2427
  }), te;
@@ -2473,17 +2473,17 @@ class Nt extends le {
2473
2473
  Nt.create = rn;
2474
2474
  class lr extends le {
2475
2475
  _parse(e) {
2476
- const t = be.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
2476
+ const t = we.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
2477
2477
  if (a.parsedType !== z.string && a.parsedType !== z.number) {
2478
- const s = be.objectValues(t);
2478
+ const s = we.objectValues(t);
2479
2479
  return $(a, {
2480
- expected: be.joinValues(s),
2480
+ expected: we.joinValues(s),
2481
2481
  received: a.parsedType,
2482
2482
  code: P.invalid_type
2483
2483
  }), te;
2484
2484
  }
2485
- if (this._cache || (this._cache = new Set(be.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2486
- const s = be.objectValues(t);
2485
+ if (this._cache || (this._cache = new Set(we.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2486
+ const s = we.objectValues(t);
2487
2487
  return $(a, {
2488
2488
  received: a.data,
2489
2489
  code: P.invalid_enum_value,
@@ -2547,12 +2547,12 @@ class ht extends le {
2547
2547
  return Promise.resolve(c).then(async (f) => {
2548
2548
  if (t.value === "aborted")
2549
2549
  return te;
2550
- const b = await this._def.schema._parseAsync({
2550
+ const w = await this._def.schema._parseAsync({
2551
2551
  data: f,
2552
2552
  path: a.path,
2553
2553
  parent: a
2554
2554
  });
2555
- return b.status === "aborted" ? te : b.status === "dirty" || t.value === "dirty" ? qt(b.value) : b;
2555
+ return w.status === "aborted" ? te : w.status === "dirty" || t.value === "dirty" ? qt(w.value) : w;
2556
2556
  });
2557
2557
  {
2558
2558
  if (t.value === "aborted")
@@ -2567,10 +2567,10 @@ class ht extends le {
2567
2567
  }
2568
2568
  if (s.type === "refinement") {
2569
2569
  const c = (f) => {
2570
- const b = s.refinement(f, i);
2570
+ const w = s.refinement(f, i);
2571
2571
  if (a.common.async)
2572
- return Promise.resolve(b);
2573
- if (b instanceof Promise)
2572
+ return Promise.resolve(w);
2573
+ if (w instanceof Promise)
2574
2574
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
2575
2575
  return f;
2576
2576
  };
@@ -2602,7 +2602,7 @@ class ht extends le {
2602
2602
  status: t.value,
2603
2603
  value: f
2604
2604
  })) : te);
2605
- be.assertNever(s);
2605
+ we.assertNever(s);
2606
2606
  }
2607
2607
  }
2608
2608
  ht.create = (r, e, t) => new ht({
@@ -2723,7 +2723,7 @@ Sr.create = (r) => new Sr({
2723
2723
  typeName: ne.ZodNaN,
2724
2724
  ...oe(r)
2725
2725
  });
2726
- const ta = Symbol("zod_brand");
2726
+ const ra = Symbol("zod_brand");
2727
2727
  class $r extends le {
2728
2728
  _parse(e) {
2729
2729
  const { ctx: t } = this._processInputParams(e), a = t.data;
@@ -2801,8 +2801,8 @@ function nn(r, e = {}, t) {
2801
2801
  if (i instanceof Promise)
2802
2802
  return i.then((c) => {
2803
2803
  if (!c) {
2804
- const f = Hr(e, a), b = f.fatal ?? t ?? !0;
2805
- s.addIssue({ code: "custom", ...f, fatal: b });
2804
+ const f = Hr(e, a), w = f.fatal ?? t ?? !0;
2805
+ s.addIssue({ code: "custom", ...f, fatal: w });
2806
2806
  }
2807
2807
  });
2808
2808
  if (!i) {
@@ -2811,16 +2811,16 @@ function nn(r, e = {}, t) {
2811
2811
  }
2812
2812
  }) : Yt.create();
2813
2813
  }
2814
- const ra = {
2814
+ const na = {
2815
2815
  object: Ie.lazycreate
2816
2816
  };
2817
2817
  var ne;
2818
2818
  (function(r) {
2819
2819
  r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
2820
2820
  })(ne || (ne = {}));
2821
- const na = (r, e = {
2821
+ const aa = (r, e = {
2822
2822
  message: `Input not instance of ${r.name}`
2823
- }) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, aa = Sr.create, sa = Pt.create, Tt = rr.create, ia = Ut.create, oa = Er.create, ca = nr.create, ua = ar.create, la = Yt.create, fa = jt.create, da = Et.create, ha = Tr.create, pa = dt.create, Rt = Ie.create, ma = Ie.strictCreate, ya = sr.create, ga = Dr.create, va = ir.create, ba = vt.create, wa = or.create, ka = Ar.create, xa = $t.create, _a = Ht.create, Ea = cr.create, Ta = ur.create, Lr = Nt.create, Br = lr.create, Aa = Kt.create, Gr = ht.create, Sa = yt.create, Da = Ct.create, Oa = ht.createWithPreprocess, Pa = pr.create, Na = () => $e().optional(), Ca = () => Lt().optional(), Ra = () => Tt().optional(), Fr = {
2823
+ }) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, sa = Sr.create, ia = Pt.create, Tt = rr.create, oa = Ut.create, ca = Er.create, ua = nr.create, la = ar.create, fa = Yt.create, da = jt.create, ha = Et.create, pa = Tr.create, ma = dt.create, Rt = Ie.create, ya = Ie.strictCreate, ga = sr.create, va = Dr.create, wa = ir.create, ba = vt.create, ka = or.create, xa = Ar.create, _a = $t.create, Ea = Ht.create, Ta = cr.create, Aa = ur.create, Lr = Nt.create, Br = lr.create, Sa = Kt.create, Gr = ht.create, Da = yt.create, Oa = Ct.create, Pa = ht.createWithPreprocess, Na = pr.create, Ca = () => $e().optional(), Ra = () => Lt().optional(), Ma = () => Tt().optional(), Fr = {
2824
2824
  string: ((r) => ft.create({ ...r, coerce: !0 })),
2825
2825
  number: ((r) => Ot.create({ ...r, coerce: !0 })),
2826
2826
  boolean: ((r) => rr.create({
@@ -2829,13 +2829,13 @@ const na = (r, e = {
2829
2829
  })),
2830
2830
  bigint: ((r) => Pt.create({ ...r, coerce: !0 })),
2831
2831
  date: ((r) => Ut.create({ ...r, coerce: !0 }))
2832
- }, Ma = te, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2832
+ }, Ia = te, T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2833
2833
  __proto__: null,
2834
- BRAND: ta,
2834
+ BRAND: ra,
2835
2835
  DIRTY: qt,
2836
- EMPTY_PATH: Rn,
2836
+ EMPTY_PATH: Mn,
2837
2837
  INVALID: te,
2838
- NEVER: Ma,
2838
+ NEVER: Ia,
2839
2839
  OK: Je,
2840
2840
  ParseStatus: Ke,
2841
2841
  Schema: le,
@@ -2885,66 +2885,66 @@ const na = (r, e = {
2885
2885
  ZodUnknown: jt,
2886
2886
  ZodVoid: Tr,
2887
2887
  addIssueToContext: $,
2888
- any: la,
2889
- array: pa,
2890
- bigint: sa,
2888
+ any: fa,
2889
+ array: ma,
2890
+ bigint: ia,
2891
2891
  boolean: Tt,
2892
2892
  coerce: Fr,
2893
2893
  custom: nn,
2894
- date: ia,
2894
+ date: oa,
2895
2895
  datetimeRegex: tn,
2896
2896
  defaultErrorMap: Gt,
2897
- discriminatedUnion: ga,
2897
+ discriminatedUnion: va,
2898
2898
  effect: Gr,
2899
2899
  enum: Lr,
2900
- function: _a,
2900
+ function: Ea,
2901
2901
  getErrorMap: xr,
2902
2902
  getParsedType: _t,
2903
- instanceof: na,
2904
- intersection: va,
2903
+ instanceof: aa,
2904
+ intersection: wa,
2905
2905
  isAborted: Mr,
2906
2906
  isAsync: tr,
2907
2907
  isDirty: Ir,
2908
2908
  isValid: Ft,
2909
- late: ra,
2910
- lazy: Ea,
2911
- literal: Ta,
2909
+ late: na,
2910
+ lazy: Ta,
2911
+ literal: Aa,
2912
2912
  makeIssue: _r,
2913
- map: ka,
2914
- nan: aa,
2913
+ map: xa,
2914
+ nan: sa,
2915
2915
  nativeEnum: Br,
2916
- never: da,
2917
- null: ua,
2918
- nullable: Da,
2916
+ never: ha,
2917
+ null: la,
2918
+ nullable: Oa,
2919
2919
  number: Lt,
2920
2920
  object: Rt,
2921
2921
  get objectUtil() {
2922
2922
  return Rr;
2923
2923
  },
2924
- oboolean: Ra,
2925
- onumber: Ca,
2926
- optional: Sa,
2927
- ostring: Na,
2928
- pipeline: Pa,
2929
- preprocess: Oa,
2930
- promise: Aa,
2931
- quotelessJson: Nn,
2932
- record: wa,
2933
- set: xa,
2934
- setErrorMap: Cn,
2935
- strictObject: ma,
2924
+ oboolean: Ma,
2925
+ onumber: Ra,
2926
+ optional: Da,
2927
+ ostring: Ca,
2928
+ pipeline: Na,
2929
+ preprocess: Pa,
2930
+ promise: Sa,
2931
+ quotelessJson: Cn,
2932
+ record: ka,
2933
+ set: _a,
2934
+ setErrorMap: Rn,
2935
+ strictObject: ya,
2936
2936
  string: $e,
2937
- symbol: oa,
2937
+ symbol: ca,
2938
2938
  transformer: Gr,
2939
2939
  tuple: ba,
2940
- undefined: ca,
2941
- union: ya,
2942
- unknown: fa,
2940
+ undefined: ua,
2941
+ union: ga,
2942
+ unknown: da,
2943
2943
  get util() {
2944
- return be;
2944
+ return we;
2945
2945
  },
2946
- void: ha
2947
- }, Symbol.toStringTag, { value: "Module" })), bt = Rt({
2946
+ void: pa
2947
+ }, Symbol.toStringTag, { value: "Module" })), wt = Rt({
2948
2948
  name: $e(),
2949
2949
  selector: $e(),
2950
2950
  findBy: Lr(["cssSelector", "xpath"]),
@@ -2953,30 +2953,30 @@ const na = (r, e = {
2953
2953
  waitSelectorTimeout: Lt().optional(),
2954
2954
  multiple: Tt().optional()
2955
2955
  })
2956
- }), Ia = D.object({
2957
- type: D.literal("object"),
2958
- shape: D.record(D.string(), D.any())
2959
- }), ja = D.object({
2960
- type: D.literal("array"),
2961
- items: D.any()
2962
- }), Fa = D.discriminatedUnion("type", [
2963
- Ia,
2964
- ja
2965
- ]), an = D.object({
2966
- name: D.literal("ai-parse-data"),
2967
- sourceData: D.any().optional(),
2968
- schemaDefinition: Fa,
2969
- prompt: D.string().optional(),
2970
- model: D.string().optional(),
2971
- apiKey: D.string().min(1, "AI API key is required"),
2956
+ }), ja = T.object({
2957
+ type: T.literal("object"),
2958
+ shape: T.record(T.string(), T.any())
2959
+ }), Fa = T.object({
2960
+ type: T.literal("array"),
2961
+ items: T.any()
2962
+ }), Ua = T.discriminatedUnion("type", [
2963
+ ja,
2964
+ Fa
2965
+ ]), an = T.object({
2966
+ name: T.literal("ai-parse-data"),
2967
+ sourceData: T.any().optional(),
2968
+ schemaDefinition: Ua,
2969
+ prompt: T.string().optional(),
2970
+ model: T.string().optional(),
2971
+ apiKey: T.string().min(1, "AI API key is required"),
2972
2972
  // 필수
2973
- provider: D.enum(["openai", "anthropic"])
2973
+ provider: T.enum(["openai", "anthropic"])
2974
2974
  // 필수
2975
2975
  });
2976
- function Ua(r) {
2976
+ function $a(r) {
2977
2977
  return an.parse(r);
2978
2978
  }
2979
- async function $a(r) {
2979
+ async function La(r) {
2980
2980
  try {
2981
2981
  const {
2982
2982
  sourceData: e,
@@ -3014,19 +3014,19 @@ async function $a(r) {
3014
3014
  };
3015
3015
  }
3016
3016
  }
3017
- function Js(r) {
3017
+ function ei(r) {
3018
3018
  return {
3019
3019
  type: "object",
3020
3020
  shape: r
3021
3021
  };
3022
3022
  }
3023
- function Xs(r) {
3023
+ function ti(r) {
3024
3024
  return {
3025
3025
  type: "array",
3026
3026
  items: r
3027
3027
  };
3028
3028
  }
3029
- const Qs = {
3029
+ const ri = {
3030
3030
  string: (r) => ({
3031
3031
  type: "string",
3032
3032
  ...r
@@ -3051,7 +3051,7 @@ const Qs = {
3051
3051
  }),
3052
3052
  currency: (r) => ({
3053
3053
  type: "currency",
3054
- shape: Ws,
3054
+ shape: Hs,
3055
3055
  description: (r == null ? void 0 : r.description) || "Currency information with code, symbol, format, amount, and text",
3056
3056
  optional: r == null ? void 0 : r.optional
3057
3057
  })
@@ -3075,7 +3075,7 @@ class Or {
3075
3075
  });
3076
3076
  }
3077
3077
  }
3078
- class La extends Or {
3078
+ class Ba extends Or {
3079
3079
  async find(e, t = document) {
3080
3080
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3081
3081
  try {
@@ -3100,16 +3100,16 @@ class La extends Or {
3100
3100
  const s = ((i = a.textContent) == null ? void 0 : i.trim()) || "";
3101
3101
  if (s) {
3102
3102
  a.setAttribute("data-contains", s);
3103
- const f = Array.from(a.childNodes).filter((b) => b.nodeType === Node.TEXT_NODE).map((b) => {
3103
+ const f = Array.from(a.childNodes).filter((w) => w.nodeType === Node.TEXT_NODE).map((w) => {
3104
3104
  var k;
3105
- return ((k = b.textContent) == null ? void 0 : k.trim()) || "";
3105
+ return ((k = w.textContent) == null ? void 0 : k.trim()) || "";
3106
3106
  }).join(" ").trim();
3107
3107
  (f && f === s || a.children.length === 0 && s) && a.setAttribute("data-equal", s);
3108
3108
  }
3109
3109
  });
3110
3110
  }
3111
3111
  }
3112
- class Ba extends Or {
3112
+ class Za extends Or {
3113
3113
  async find(e, t = document) {
3114
3114
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3115
3115
  if (!a || a.trim() === "")
@@ -3117,49 +3117,49 @@ class Ba extends Or {
3117
3117
  const c = a.split("|>").map((k) => k.trim());
3118
3118
  if (c.length !== 2)
3119
3119
  return null;
3120
- const f = c[0], b = c[1];
3121
- if (!f || !b)
3120
+ const f = c[0], w = c[1];
3121
+ if (!f || !w)
3122
3122
  return null;
3123
3123
  try {
3124
3124
  const k = t.querySelector(f);
3125
3125
  if (!k || !k.contentDocument) return null;
3126
3126
  const M = k.contentDocument;
3127
- return i ? Array.from(M.querySelectorAll(b)) : M.querySelector(b);
3127
+ return i ? Array.from(M.querySelectorAll(w)) : M.querySelector(w);
3128
3128
  } catch (k) {
3129
3129
  return console.error("Iframe Selector error:", k), null;
3130
3130
  }
3131
3131
  }
3132
3132
  }
3133
- class Za extends Or {
3133
+ class za extends Or {
3134
3134
  async find(e, t = document) {
3135
3135
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3136
3136
  if (!a || a.trim() === "")
3137
3137
  return null;
3138
- const c = a.split(">>").map((b) => b.trim());
3138
+ const c = a.split(">>").map((w) => w.trim());
3139
3139
  let f = t;
3140
3140
  try {
3141
- for (let b = 0; b < c.length; b++) {
3142
- const k = c[b], M = b === c.length - 1;
3141
+ for (let w = 0; w < c.length; w++) {
3142
+ const k = c[w], M = w === c.length - 1;
3143
3143
  if (!k)
3144
3144
  return null;
3145
3145
  if (M && i)
3146
3146
  return Array.from(f.querySelectorAll(k));
3147
- const S = f.querySelector(k);
3148
- if (!S) return null;
3147
+ const D = f.querySelector(k);
3148
+ if (!D) return null;
3149
3149
  if (M)
3150
- return S;
3151
- if (S.shadowRoot)
3152
- f = S.shadowRoot;
3150
+ return D;
3151
+ if (D.shadowRoot)
3152
+ f = D.shadowRoot;
3153
3153
  else
3154
3154
  return null;
3155
3155
  }
3156
- } catch (b) {
3157
- return console.error("Shadow DOM Selector error:", b), null;
3156
+ } catch (w) {
3157
+ return console.error("Shadow DOM Selector error:", w), null;
3158
3158
  }
3159
3159
  return null;
3160
3160
  }
3161
3161
  }
3162
- class za extends Or {
3162
+ class Wa extends Or {
3163
3163
  async find(e, t = document) {
3164
3164
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3165
3165
  try {
@@ -3172,8 +3172,8 @@ class za extends Or {
3172
3172
  );
3173
3173
  if (i) {
3174
3174
  const f = [];
3175
- for (let b = 0; b < c.snapshotLength; b++) {
3176
- const k = c.snapshotItem(b);
3175
+ for (let w = 0; w < c.snapshotLength; w++) {
3176
+ const k = c.snapshotItem(w);
3177
3177
  k && k.nodeType === Node.ELEMENT_NODE && f.push(k);
3178
3178
  }
3179
3179
  return Promise.resolve(f.length > 0 ? f : null);
@@ -3186,7 +3186,7 @@ class za extends Or {
3186
3186
  }
3187
3187
  }
3188
3188
  }
3189
- class Wa {
3189
+ class Va {
3190
3190
  /**
3191
3191
  * 요소의 안정적인 CSS 셀렉터 생성
3192
3192
  * @param element 대상 요소
@@ -3249,29 +3249,29 @@ class Wa {
3249
3249
  }
3250
3250
  }
3251
3251
  async function pt(r, e = document) {
3252
- const { selector: t, findBy: a = "cssSelector", option: s } = r, { waitForSelector: i = !1, waitSelectorTimeout: c = 5e3 } = s || {}, f = Va(t, a);
3252
+ const { selector: t, findBy: a = "cssSelector", option: s } = r, { waitForSelector: i = !1, waitSelectorTimeout: c = 5e3 } = s || {}, f = qa(t, a);
3253
3253
  return i ? f.waitForElement(r, e, c) : f.find(r, e);
3254
3254
  }
3255
- function Va(r, e) {
3256
- return e === "xpath" ? new za() : r.includes(">>") ? new Za() : r.includes("|>") ? new Ba() : new La();
3257
- }
3258
- const sn = bt.extend({
3259
- name: D.literal("get-text"),
3260
- includeTags: D.boolean().optional(),
3261
- useTextContent: D.boolean().optional(),
3262
- regex: D.string().optional(),
3263
- prefixText: D.string().optional(),
3264
- suffixText: D.string().optional(),
3265
- filterEmpty: D.boolean().optional(),
3266
- scrollToCollect: D.boolean().optional(),
3267
- scrollDistance: D.number().optional(),
3268
- scrollWaitMs: D.number().optional(),
3269
- maxScrollAttempts: D.number().optional()
3255
+ function qa(r, e) {
3256
+ return e === "xpath" ? new Wa() : r.includes(">>") ? new za() : r.includes("|>") ? new Za() : new Ba();
3257
+ }
3258
+ const sn = wt.extend({
3259
+ name: T.literal("get-text"),
3260
+ includeTags: T.boolean().optional(),
3261
+ useTextContent: T.boolean().optional(),
3262
+ regex: T.string().optional(),
3263
+ prefixText: T.string().optional(),
3264
+ suffixText: T.string().optional(),
3265
+ filterEmpty: T.boolean().optional(),
3266
+ scrollToCollect: T.boolean().optional(),
3267
+ scrollDistance: T.number().optional(),
3268
+ scrollWaitMs: T.number().optional(),
3269
+ maxScrollAttempts: T.number().optional()
3270
3270
  });
3271
- function qa(r) {
3271
+ function Ha(r) {
3272
3272
  return sn.parse(r);
3273
3273
  }
3274
- async function Ha(r) {
3274
+ async function Ga(r) {
3275
3275
  try {
3276
3276
  const {
3277
3277
  selector: e = "",
@@ -3281,31 +3281,31 @@ async function Ha(r) {
3281
3281
  prefixText: i = "",
3282
3282
  suffixText: c = "",
3283
3283
  findBy: f = "cssSelector",
3284
- option: b,
3284
+ option: w,
3285
3285
  filterEmpty: k = !0,
3286
3286
  scrollToCollect: M = !1,
3287
- scrollDistance: S = 500,
3287
+ scrollDistance: D = 500,
3288
3288
  scrollWaitMs: x = 300,
3289
- maxScrollAttempts: A = 100
3289
+ maxScrollAttempts: S = 100
3290
3290
  } = r;
3291
3291
  if (!e)
3292
3292
  throw new Error("Selector is required for get-text block");
3293
- if (M && (b != null && b.multiple))
3294
- return await Ga({
3293
+ if (M && (w != null && w.multiple))
3294
+ return await Ya({
3295
3295
  selector: e,
3296
3296
  findBy: f,
3297
- option: b,
3297
+ option: w,
3298
3298
  includeTags: t,
3299
3299
  useTextContent: a,
3300
3300
  regex: s,
3301
3301
  prefixText: i,
3302
3302
  suffixText: c,
3303
3303
  filterEmpty: k,
3304
- scrollDistance: S,
3304
+ scrollDistance: D,
3305
3305
  scrollWaitMs: x,
3306
- maxScrollAttempts: A
3306
+ maxScrollAttempts: S
3307
3307
  });
3308
- const I = await pt({ selector: e, findBy: f, option: b });
3308
+ const I = await pt({ selector: e, findBy: f, option: w });
3309
3309
  if (!I)
3310
3310
  return { data: "" };
3311
3311
  const ae = on(
@@ -3328,7 +3328,7 @@ async function Ha(r) {
3328
3328
  };
3329
3329
  }
3330
3330
  }
3331
- async function Ga(r) {
3331
+ async function Ya(r) {
3332
3332
  const {
3333
3333
  selector: e,
3334
3334
  findBy: t,
@@ -3337,12 +3337,12 @@ async function Ga(r) {
3337
3337
  useTextContent: i,
3338
3338
  regex: c,
3339
3339
  prefixText: f,
3340
- suffixText: b,
3340
+ suffixText: w,
3341
3341
  filterEmpty: k,
3342
3342
  scrollDistance: M,
3343
- scrollWaitMs: S,
3343
+ scrollWaitMs: D,
3344
3344
  maxScrollAttempts: x
3345
- } = r, A = on(s, i, c, f, b), I = /* @__PURE__ */ new Set();
3345
+ } = r, S = on(s, i, c, f, w), I = /* @__PURE__ */ new Set();
3346
3346
  let ae = 0, Q = 0;
3347
3347
  const pe = 5;
3348
3348
  for (; ae < x; ) {
@@ -3350,7 +3350,7 @@ async function Ga(r) {
3350
3350
  if (H && Array.isArray(H)) {
3351
3351
  const B = I.size;
3352
3352
  if (H.forEach((L) => {
3353
- const W = A(L);
3353
+ const W = S(L);
3354
3354
  (!k || W.trim() !== "") && I.add(W);
3355
3355
  }), I.size === B) {
3356
3356
  if (Q++, Q >= pe)
@@ -3359,7 +3359,7 @@ async function Ga(r) {
3359
3359
  Q = 0;
3360
3360
  }
3361
3361
  const C = window.pageYOffset || document.documentElement.scrollTop;
3362
- if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, S)), (window.pageYOffset || document.documentElement.scrollTop) === C)
3362
+ if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, D)), (window.pageYOffset || document.documentElement.scrollTop) === C)
3363
3363
  break;
3364
3364
  ae++;
3365
3365
  }
@@ -3369,20 +3369,20 @@ function on(r, e, t, a = "", s = "") {
3369
3369
  return (i) => {
3370
3370
  let c = "";
3371
3371
  if (r ? c = i.innerHTML : c = e ? i.textContent || "" : i.innerText || "", t) {
3372
- const f = new RegExp(t, "g"), b = c.match(f);
3373
- c = b ? b.join(" ") : "";
3372
+ const f = new RegExp(t, "g"), w = c.match(f);
3373
+ c = w ? w.join(" ") : "";
3374
3374
  }
3375
3375
  return c.trim() && (c = a + c.trim() + s), c;
3376
3376
  };
3377
3377
  }
3378
- const cn = bt.extend({
3379
- name: D.literal("attribute-value"),
3380
- attributeName: D.string()
3378
+ const cn = wt.extend({
3379
+ name: T.literal("attribute-value"),
3380
+ attributeName: T.string()
3381
3381
  });
3382
- function Ya(r) {
3382
+ function Ka(r) {
3383
3383
  return cn.parse(r);
3384
3384
  }
3385
- async function Ka(r) {
3385
+ async function Ja(r) {
3386
3386
  try {
3387
3387
  const { selector: e = "", attributeName: t, findBy: a = "cssSelector", option: s } = r;
3388
3388
  if (!e)
@@ -3399,14 +3399,14 @@ async function Ka(r) {
3399
3399
  };
3400
3400
  }
3401
3401
  }
3402
- const un = bt.extend({
3403
- name: D.literal("get-value-form"),
3404
- type: D.enum(["text-field", "select", "checkbox"]).optional()
3402
+ const un = wt.extend({
3403
+ name: T.literal("get-value-form"),
3404
+ type: T.enum(["text-field", "select", "checkbox"]).optional()
3405
3405
  });
3406
- function Ja(r) {
3406
+ function Xa(r) {
3407
3407
  return un.parse(r);
3408
3408
  }
3409
- async function Xa(r) {
3409
+ async function Qa(r) {
3410
3410
  try {
3411
3411
  const { selector: e = "", type: t = "text-field", findBy: a = "cssSelector" } = r;
3412
3412
  if (!e)
@@ -3414,7 +3414,7 @@ async function Xa(r) {
3414
3414
  const s = await pt({ selector: e, findBy: a, option: r.option });
3415
3415
  if (!s)
3416
3416
  throw new Error("Form element not found");
3417
- return { data: Qa(s, t) };
3417
+ return { data: es(s, t) };
3418
3418
  } catch (e) {
3419
3419
  return {
3420
3420
  hasError: !0,
@@ -3423,7 +3423,7 @@ async function Xa(r) {
3423
3423
  };
3424
3424
  }
3425
3425
  }
3426
- function Qa(r, e) {
3426
+ function es(r, e) {
3427
3427
  switch (e) {
3428
3428
  case "text-field":
3429
3429
  if (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement)
@@ -3442,15 +3442,15 @@ function Qa(r, e) {
3442
3442
  }
3443
3443
  throw new Error(`Invalid element type for ${e}`);
3444
3444
  }
3445
- const ln = bt.extend({
3446
- name: D.literal("set-value-form"),
3447
- setValue: D.string(),
3448
- type: D.enum(["text-field", "select", "checkbox"]).optional()
3445
+ const ln = wt.extend({
3446
+ name: T.literal("set-value-form"),
3447
+ setValue: T.string(),
3448
+ type: T.enum(["text-field", "select", "checkbox"]).optional()
3449
3449
  });
3450
- function es(r) {
3450
+ function ts(r) {
3451
3451
  return ln.parse(r);
3452
3452
  }
3453
- async function ts(r) {
3453
+ async function rs(r) {
3454
3454
  try {
3455
3455
  const { selector: e = "", setValue: t, type: a = "text-field", findBy: s = "cssSelector" } = r;
3456
3456
  if (!e)
@@ -3458,7 +3458,7 @@ async function ts(r) {
3458
3458
  const i = await pt({ selector: e, findBy: s, option: r.option });
3459
3459
  if (!i)
3460
3460
  throw new Error("Form element not found");
3461
- return rs(i, t, a), { data: "Form element updated successfully" };
3461
+ return ns(i, t, a), { data: "Form element updated successfully" };
3462
3462
  } catch (e) {
3463
3463
  return {
3464
3464
  hasError: !0,
@@ -3467,7 +3467,7 @@ async function ts(r) {
3467
3467
  };
3468
3468
  }
3469
3469
  }
3470
- function rs(r, e, t) {
3470
+ function ns(r, e, t) {
3471
3471
  switch (t) {
3472
3472
  case "text-field":
3473
3473
  (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement) && (r.value = e, r.dispatchEvent(new Event("input", { bubbles: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0 })));
@@ -3482,14 +3482,14 @@ function rs(r, e, t) {
3482
3482
  throw new Error(`Unsupported form element type: ${t}`);
3483
3483
  }
3484
3484
  }
3485
- const fn = bt.extend({
3486
- name: D.literal("clear-value-form"),
3487
- type: D.enum(["text-field", "select", "checkbox"]).optional()
3485
+ const fn = wt.extend({
3486
+ name: T.literal("clear-value-form"),
3487
+ type: T.enum(["text-field", "select", "checkbox"]).optional()
3488
3488
  });
3489
- function ns(r) {
3489
+ function as(r) {
3490
3490
  return fn.parse(r);
3491
3491
  }
3492
- async function as(r) {
3492
+ async function ss(r) {
3493
3493
  try {
3494
3494
  const { selector: e = "", type: t = "text-field", findBy: a = "cssSelector" } = r;
3495
3495
  if (!e)
@@ -3497,7 +3497,7 @@ async function as(r) {
3497
3497
  const s = await pt({ selector: e, findBy: a, option: r.option });
3498
3498
  if (!s)
3499
3499
  throw new Error("Form element not found");
3500
- return ss(s, t), { data: "Form element cleared successfully" };
3500
+ return is(s, t), { data: "Form element cleared successfully" };
3501
3501
  } catch (e) {
3502
3502
  return {
3503
3503
  hasError: !0,
@@ -3506,7 +3506,7 @@ async function as(r) {
3506
3506
  };
3507
3507
  }
3508
3508
  }
3509
- function ss(r, e) {
3509
+ function is(r, e) {
3510
3510
  switch (e) {
3511
3511
  case "text-field":
3512
3512
  (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement) && (r.value = "", r.dispatchEvent(new Event("input", { bubbles: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0 })));
@@ -3521,13 +3521,13 @@ function ss(r, e) {
3521
3521
  throw new Error(`Unsupported form element type: ${e}`);
3522
3522
  }
3523
3523
  }
3524
- const dn = bt.extend({
3525
- name: D.literal("element-exists")
3524
+ const dn = wt.extend({
3525
+ name: T.literal("element-exists")
3526
3526
  });
3527
- function is(r) {
3527
+ function os(r) {
3528
3528
  return dn.parse(r);
3529
3529
  }
3530
- async function os(r) {
3530
+ async function cs(r) {
3531
3531
  try {
3532
3532
  const { selector: e = "", findBy: t = "cssSelector", option: a } = r;
3533
3533
  if (!e)
@@ -3541,17 +3541,17 @@ async function os(r) {
3541
3541
  };
3542
3542
  }
3543
3543
  }
3544
- const hn = bt.extend({
3545
- name: D.literal("event-click"),
3546
- textFilter: D.object({
3547
- text: D.union([D.string(), D.array(D.string())]),
3548
- mode: D.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
3544
+ const hn = wt.extend({
3545
+ name: T.literal("event-click"),
3546
+ textFilter: T.object({
3547
+ text: T.union([T.string(), T.array(T.string())]),
3548
+ mode: T.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
3549
3549
  }).optional()
3550
3550
  });
3551
- function cs(r) {
3551
+ function us(r) {
3552
3552
  return hn.parse(r);
3553
3553
  }
3554
- async function us(r) {
3554
+ async function ls(r) {
3555
3555
  try {
3556
3556
  const { selector: e = "", findBy: t = "cssSelector", option: a, textFilter: s } = r;
3557
3557
  if (!e)
@@ -3562,17 +3562,17 @@ async function us(r) {
3562
3562
  let c;
3563
3563
  if (Array.isArray(i))
3564
3564
  if (s) {
3565
- const f = ls(i, s.text, s.mode);
3565
+ const f = fs(i, s.text, s.mode);
3566
3566
  if (!f) {
3567
- const b = Array.isArray(s.text) ? s.text.join(", ") : s.text;
3568
- throw new Error(`No element found with text filter: "${b}" (mode: ${s.mode})`);
3567
+ const w = Array.isArray(s.text) ? s.text.join(", ") : s.text;
3568
+ throw new Error(`No element found with text filter: "${w}" (mode: ${s.mode})`);
3569
3569
  }
3570
3570
  c = f;
3571
3571
  } else
3572
3572
  c = i[0];
3573
3573
  else
3574
3574
  c = i;
3575
- return await ds(c), { data: !0 };
3575
+ return await hs(c), { data: !0 };
3576
3576
  } catch (e) {
3577
3577
  return console.log(e), {
3578
3578
  hasError: !0,
@@ -3581,9 +3581,9 @@ async function us(r) {
3581
3581
  };
3582
3582
  }
3583
3583
  }
3584
- function ls(r, e, t) {
3584
+ function fs(r, e, t) {
3585
3585
  for (const a of r) {
3586
- const s = fs(a), i = Array.isArray(e) ? e : [e];
3586
+ const s = ds(a), i = Array.isArray(e) ? e : [e];
3587
3587
  for (const c of i) {
3588
3588
  let f = !1;
3589
3589
  switch (t) {
@@ -3614,7 +3614,7 @@ function ls(r, e, t) {
3614
3614
  }
3615
3615
  return null;
3616
3616
  }
3617
- function fs(r) {
3617
+ function ds(r) {
3618
3618
  if (r.innerText)
3619
3619
  return r.innerText.trim();
3620
3620
  if (r.textContent)
@@ -3630,7 +3630,7 @@ function fs(r) {
3630
3630
  const a = r.getAttribute("aria-label");
3631
3631
  return a ? a.trim() : "";
3632
3632
  }
3633
- async function ds(r) {
3633
+ async function hs(r) {
3634
3634
  r.scrollIntoView({
3635
3635
  behavior: "instant",
3636
3636
  block: "center",
@@ -3654,20 +3654,20 @@ async function ds(r) {
3654
3654
  }
3655
3655
  await new Promise((s) => setTimeout(s, 50));
3656
3656
  }
3657
- const pn = D.object({
3658
- name: D.literal("keypress"),
3659
- key: D.string(),
3660
- code: D.string().optional(),
3661
- keyCode: D.number().optional(),
3662
- modifiers: D.array(D.enum(["Alt", "Control", "Meta", "Shift"])).optional()
3657
+ const pn = T.object({
3658
+ name: T.literal("keypress"),
3659
+ key: T.string(),
3660
+ code: T.string().optional(),
3661
+ keyCode: T.number().optional(),
3662
+ modifiers: T.array(T.enum(["Alt", "Control", "Meta", "Shift"])).optional()
3663
3663
  });
3664
- function hs(r) {
3664
+ function ps(r) {
3665
3665
  return pn.parse(r);
3666
3666
  }
3667
- async function ps(r) {
3667
+ async function ms(r) {
3668
3668
  try {
3669
3669
  const { key: e, code: t, keyCode: a, modifiers: s = [] } = r;
3670
- return await ms(e, t, a, s), { data: !0 };
3670
+ return await ys(e, t, a, s), { data: !0 };
3671
3671
  } catch (e) {
3672
3672
  return console.log(e), {
3673
3673
  hasError: !0,
@@ -3676,7 +3676,7 @@ async function ps(r) {
3676
3676
  };
3677
3677
  }
3678
3678
  }
3679
- async function ms(r, e, t, a = []) {
3679
+ async function ys(r, e, t, a = []) {
3680
3680
  try {
3681
3681
  const s = await chrome.runtime.sendMessage({
3682
3682
  type: "CDP_KEYPRESS",
@@ -3735,14 +3735,14 @@ function Yr(r) {
3735
3735
  shiftKey: r.includes("Shift")
3736
3736
  };
3737
3737
  }
3738
- const mn = D.object({
3739
- name: D.literal("wait"),
3740
- duration: D.number().min(0)
3738
+ const mn = T.object({
3739
+ name: T.literal("wait"),
3740
+ duration: T.number().min(0)
3741
3741
  });
3742
- function ys(r) {
3742
+ function gs(r) {
3743
3743
  return mn.parse(r);
3744
3744
  }
3745
- async function gs(r) {
3745
+ async function vs(r) {
3746
3746
  try {
3747
3747
  const { duration: e } = r;
3748
3748
  return console.log(`[Wait] Waiting for ${e}ms...`), await new Promise((t) => setTimeout(t, e)), console.log(`[Wait] Wait completed after ${e}ms`), { data: !0 };
@@ -3754,34 +3754,34 @@ async function gs(r) {
3754
3754
  };
3755
3755
  }
3756
3756
  }
3757
- const yn = D.object({
3758
- name: D.literal("wait-for-condition"),
3759
- conditions: D.object({
3760
- urlPattern: D.string().optional(),
3761
- elementExists: D.object({
3762
- selector: D.string(),
3763
- findBy: D.enum(["cssSelector", "xpath"])
3757
+ const yn = T.object({
3758
+ name: T.literal("wait-for-condition"),
3759
+ conditions: T.object({
3760
+ urlPattern: T.string().optional(),
3761
+ elementExists: T.object({
3762
+ selector: T.string(),
3763
+ findBy: T.enum(["cssSelector", "xpath"])
3764
3764
  }).optional(),
3765
- cookieExists: D.string().optional(),
3766
- storageKey: D.object({
3767
- type: D.enum(["localStorage", "sessionStorage"]),
3768
- key: D.string()
3765
+ cookieExists: T.string().optional(),
3766
+ storageKey: T.object({
3767
+ type: T.enum(["localStorage", "sessionStorage"]),
3768
+ key: T.string()
3769
3769
  }).optional(),
3770
- userConfirmation: D.boolean().optional(),
3771
- message: D.string().optional(),
3772
- buttonText: D.string().optional()
3770
+ userConfirmation: T.boolean().optional(),
3771
+ message: T.string().optional(),
3772
+ buttonText: T.string().optional()
3773
3773
  }).refine(
3774
3774
  (r) => r.urlPattern !== void 0 || r.elementExists !== void 0 || r.cookieExists !== void 0 || r.storageKey !== void 0 || r.userConfirmation === !0,
3775
3775
  {
3776
3776
  message: "At least one condition must be specified"
3777
3777
  }
3778
3778
  ),
3779
- mode: D.enum(["auto", "manual", "auto-or-manual"]).optional(),
3780
- pollingIntervalMs: D.number().min(100).optional(),
3781
- timeoutMs: D.number().min(1e3).optional(),
3782
- position: D.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
3779
+ mode: T.enum(["auto", "manual", "auto-or-manual"]).optional(),
3780
+ pollingIntervalMs: T.number().min(100).optional(),
3781
+ timeoutMs: T.number().min(1e3).optional(),
3782
+ position: T.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
3783
3783
  });
3784
- function vs(r) {
3784
+ function ws(r) {
3785
3785
  return yn.parse(r);
3786
3786
  }
3787
3787
  async function bs(r) {
@@ -3795,9 +3795,9 @@ async function bs(r) {
3795
3795
  } = r;
3796
3796
  console.log("[WaitForCondition] Starting wait with conditions:", e), console.log("[WaitForCondition] Mode:", t, "Timeout:", s);
3797
3797
  const c = !!(e.urlPattern || e.elementExists || e.cookieExists || e.storageKey), f = e.userConfirmation === !0;
3798
- let b = null, k = null;
3799
- (t === "manual" || t === "auto-or-manual") && f && (b = new Promise((S) => {
3800
- k = S;
3798
+ let w = null, k = null;
3799
+ (t === "manual" || t === "auto-or-manual") && f && (w = new Promise((D) => {
3800
+ k = D;
3801
3801
  }), window.dispatchEvent(
3802
3802
  new CustomEvent("8g-show-confirmation-ui", {
3803
3803
  detail: {
@@ -3817,27 +3817,27 @@ async function bs(r) {
3817
3817
  reason: "urlPattern",
3818
3818
  message: `URL matches pattern: ${e.urlPattern}`
3819
3819
  };
3820
- } catch (S) {
3821
- console.warn("[WaitForCondition] Invalid URL pattern:", S);
3820
+ } catch (D) {
3821
+ console.warn("[WaitForCondition] Invalid URL pattern:", D);
3822
3822
  }
3823
3823
  if (e.elementExists) {
3824
- const { selector: S, findBy: x } = e.elementExists;
3825
- let A = null;
3826
- if (x === "cssSelector" ? A = document.querySelector(S) : x === "xpath" && (A = document.evaluate(
3827
- S,
3824
+ const { selector: D, findBy: x } = e.elementExists;
3825
+ let S = null;
3826
+ if (x === "cssSelector" ? S = document.querySelector(D) : x === "xpath" && (S = document.evaluate(
3827
+ D,
3828
3828
  document,
3829
3829
  null,
3830
3830
  XPathResult.FIRST_ORDERED_NODE_TYPE,
3831
3831
  null
3832
- ).singleNodeValue), A)
3832
+ ).singleNodeValue), S)
3833
3833
  return {
3834
3834
  success: !0,
3835
3835
  reason: "elementExists",
3836
- message: `Element found: ${S}`
3836
+ message: `Element found: ${D}`
3837
3837
  };
3838
3838
  }
3839
- if (e.cookieExists && document.cookie.split(";").some((A) => {
3840
- const [I] = A.trim().split("=");
3839
+ if (e.cookieExists && document.cookie.split(";").some((S) => {
3840
+ const [I] = S.trim().split("=");
3841
3841
  return I === e.cookieExists;
3842
3842
  }))
3843
3843
  return {
@@ -3846,22 +3846,22 @@ async function bs(r) {
3846
3846
  message: `Cookie found: ${e.cookieExists}`
3847
3847
  };
3848
3848
  if (e.storageKey) {
3849
- const { type: S, key: x } = e.storageKey;
3850
- if ((S === "localStorage" ? window.localStorage : window.sessionStorage).getItem(x) !== null)
3849
+ const { type: D, key: x } = e.storageKey;
3850
+ if ((D === "localStorage" ? window.localStorage : window.sessionStorage).getItem(x) !== null)
3851
3851
  return {
3852
3852
  success: !0,
3853
3853
  reason: "storageKey",
3854
- message: `Storage key found: ${S}.${x}`
3854
+ message: `Storage key found: ${D}.${x}`
3855
3855
  };
3856
3856
  }
3857
3857
  return null;
3858
3858
  };
3859
- return new Promise((S) => {
3860
- let x = null, A = !1;
3859
+ return new Promise((D) => {
3860
+ let x = null, S = !1;
3861
3861
  const I = () => {
3862
3862
  x && (clearInterval(x), x = null), window.dispatchEvent(new CustomEvent("8g-hide-confirmation-ui"));
3863
3863
  }, ae = (pe) => {
3864
- A || (A = !0, I(), console.log("[WaitForCondition] Resolved with:", pe), S({ data: pe }));
3864
+ S || (S = !0, I(), console.log("[WaitForCondition] Resolved with:", pe), D({ data: pe }));
3865
3865
  }, Q = setTimeout(() => {
3866
3866
  ae({
3867
3867
  success: !1,
@@ -3872,7 +3872,7 @@ async function bs(r) {
3872
3872
  (t === "auto" || t === "auto-or-manual") && c && (x = setInterval(async () => {
3873
3873
  const pe = await M();
3874
3874
  pe && (clearTimeout(Q), ae(pe));
3875
- }, a)), (t === "manual" || t === "auto-or-manual") && b && b.then(() => {
3875
+ }, a)), (t === "manual" || t === "auto-or-manual") && w && w.then(() => {
3876
3876
  clearTimeout(Q), ae({
3877
3877
  success: !0,
3878
3878
  reason: "userConfirmation",
@@ -3891,16 +3891,16 @@ async function bs(r) {
3891
3891
  };
3892
3892
  }
3893
3893
  }
3894
- const gn = D.object({
3895
- name: D.literal("navigate"),
3896
- url: D.string().url("Valid URL is required"),
3897
- waitForLoad: D.boolean().optional(),
3898
- timeout: D.number().min(0).optional()
3894
+ const gn = T.object({
3895
+ name: T.literal("navigate"),
3896
+ url: T.string().url("Valid URL is required"),
3897
+ waitForLoad: T.boolean().optional(),
3898
+ timeout: T.number().min(0).optional()
3899
3899
  });
3900
- function ws(r) {
3900
+ function ks(r) {
3901
3901
  return gn.parse(r);
3902
3902
  }
3903
- async function ks(r) {
3903
+ async function xs(r) {
3904
3904
  try {
3905
3905
  const { url: e, waitForLoad: t = !0, timeout: a = 3e4 } = r;
3906
3906
  return console.log(`[Navigate] Navigating to: ${e}`), t ? new Promise((s, i) => {
@@ -3919,13 +3919,13 @@ async function ks(r) {
3919
3919
  };
3920
3920
  }
3921
3921
  }
3922
- const vn = bt.extend({
3923
- name: D.literal("save-assets")
3922
+ const vn = wt.extend({
3923
+ name: T.literal("save-assets")
3924
3924
  });
3925
- function xs(r) {
3925
+ function _s(r) {
3926
3926
  return vn.parse(r);
3927
3927
  }
3928
- async function _s(r) {
3928
+ async function Es(r) {
3929
3929
  try {
3930
3930
  const { selector: e = "img, audio, video, source", findBy: t = "cssSelector", option: a } = r, s = await pt({ selector: e, findBy: t, option: a });
3931
3931
  if (!s || !Array.isArray(s))
@@ -3943,7 +3943,7 @@ async function _s(r) {
3943
3943
  };
3944
3944
  }
3945
3945
  }
3946
- class Es {
3946
+ class Ts {
3947
3947
  /**
3948
3948
  * 요소의 XPath 생성
3949
3949
  * @param element 대상 요소
@@ -3955,10 +3955,10 @@ class Es {
3955
3955
  let a = e;
3956
3956
  for (; a && a.nodeType === Node.ELEMENT_NODE; ) {
3957
3957
  let i = a.tagName.toLowerCase();
3958
- const c = Array.from(((s = a.parentElement) == null ? void 0 : s.children) || []).filter((b) => b.tagName === a.tagName);
3958
+ const c = Array.from(((s = a.parentElement) == null ? void 0 : s.children) || []).filter((w) => w.tagName === a.tagName);
3959
3959
  if (c.length > 1) {
3960
- const b = c.indexOf(a) + 1;
3961
- i += `[${b}]`;
3960
+ const w = c.indexOf(a) + 1;
3961
+ i += `[${w}]`;
3962
3962
  }
3963
3963
  const f = this.getStableAttributes(a);
3964
3964
  f.length > 0 && (i += `[@${f.join(" and @")}]`), t.unshift(i), a = a.parentElement;
@@ -3998,22 +3998,22 @@ class Es {
3998
3998
  ].some((a) => a.test(e));
3999
3999
  }
4000
4000
  }
4001
- const bn = bt.extend({
4002
- name: D.literal("get-element-data"),
4003
- includeText: D.boolean().optional(),
4004
- includeTags: D.boolean().optional(),
4005
- useTextContent: D.boolean().optional(),
4006
- regex: D.string().optional(),
4007
- prefixText: D.string().optional(),
4008
- suffixText: D.string().optional(),
4009
- attributes: D.array(D.string()).optional(),
4010
- includeSelector: D.boolean().optional(),
4011
- includeXPath: D.boolean().optional()
4001
+ const wn = wt.extend({
4002
+ name: T.literal("get-element-data"),
4003
+ includeText: T.boolean().optional(),
4004
+ includeTags: T.boolean().optional(),
4005
+ useTextContent: T.boolean().optional(),
4006
+ regex: T.string().optional(),
4007
+ prefixText: T.string().optional(),
4008
+ suffixText: T.string().optional(),
4009
+ attributes: T.array(T.string()).optional(),
4010
+ includeSelector: T.boolean().optional(),
4011
+ includeXPath: T.boolean().optional()
4012
4012
  });
4013
- function Ts(r) {
4014
- return bn.parse(r);
4013
+ function As(r) {
4014
+ return wn.parse(r);
4015
4015
  }
4016
- async function As(r) {
4016
+ async function Ss(r) {
4017
4017
  try {
4018
4018
  const {
4019
4019
  selector: e = "",
@@ -4023,31 +4023,31 @@ async function As(r) {
4023
4023
  regex: i,
4024
4024
  prefixText: c = "",
4025
4025
  suffixText: f = "",
4026
- attributes: b = [],
4026
+ attributes: w = [],
4027
4027
  includeSelector: k = !1,
4028
4028
  includeXPath: M = !1,
4029
- findBy: S = "cssSelector",
4029
+ findBy: D = "cssSelector",
4030
4030
  option: x
4031
4031
  } = r;
4032
4032
  if (!e)
4033
4033
  throw new Error("Selector is required for get-element-data block");
4034
- if (!t && b.length === 0)
4034
+ if (!t && w.length === 0)
4035
4035
  throw new Error("Either includeText must be true or attributes must be provided");
4036
- const A = await pt({ selector: e, findBy: S, option: x });
4037
- if (!A)
4038
- return { data: Array.isArray(A) ? [] : {} };
4039
- const I = Ss(
4036
+ const S = await pt({ selector: e, findBy: D, option: x });
4037
+ if (!S)
4038
+ return { data: Array.isArray(S) ? [] : {} };
4039
+ const I = Ds(
4040
4040
  t,
4041
4041
  a,
4042
4042
  s,
4043
4043
  i,
4044
4044
  c,
4045
4045
  f,
4046
- b,
4046
+ w,
4047
4047
  k,
4048
4048
  M
4049
4049
  );
4050
- return Array.isArray(A) ? { data: A.map(I) } : { data: I(A) };
4050
+ return Array.isArray(S) ? { data: S.map(I) } : { data: I(S) };
4051
4051
  } catch (e) {
4052
4052
  return {
4053
4053
  hasError: !0,
@@ -4056,39 +4056,39 @@ async function As(r) {
4056
4056
  };
4057
4057
  }
4058
4058
  }
4059
- function Ss(r, e, t, a, s = "", i = "", c = [], f = !1, b = !1) {
4059
+ function Ds(r, e, t, a, s = "", i = "", c = [], f = !1, w = !1) {
4060
4060
  return (k) => {
4061
4061
  const M = {};
4062
4062
  if (r) {
4063
- let S = "";
4064
- if (e ? S = k.innerHTML : S = t ? k.textContent || "" : k.innerText || "", a) {
4065
- const x = new RegExp(a, "g"), A = S.match(x);
4066
- S = A ? A.join(" ") : "";
4063
+ let D = "";
4064
+ if (e ? D = k.innerHTML : D = t ? k.textContent || "" : k.innerText || "", a) {
4065
+ const x = new RegExp(a, "g"), S = D.match(x);
4066
+ D = S ? S.join(" ") : "";
4067
4067
  }
4068
- S.trim() && (S = s + S.trim() + i), M.text = S;
4068
+ D.trim() && (D = s + D.trim() + i), M.text = D;
4069
4069
  }
4070
- return c.length > 0 && (M.attributes = {}, c.forEach((S) => {
4071
- let x = k.getAttribute(S);
4070
+ return c.length > 0 && (M.attributes = {}, c.forEach((D) => {
4071
+ let x = k.getAttribute(D);
4072
4072
  if (x === null) {
4073
- const A = k.querySelector(`[${S}]`);
4074
- A && (x = A.getAttribute(S));
4073
+ const S = k.querySelector(`[${D}]`);
4074
+ S && (x = S.getAttribute(D));
4075
4075
  }
4076
- M.attributes[S] = x;
4077
- })), f && (M.selector = Wa.generate(k)), b && (M.xpath = Es.generate(k)), M;
4076
+ M.attributes[D] = x;
4077
+ })), f && (M.selector = Va.generate(k)), w && (M.xpath = Ts.generate(k)), M;
4078
4078
  };
4079
4079
  }
4080
- const wn = bt.extend({
4081
- name: D.literal("scroll"),
4082
- scrollType: D.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
4083
- distance: D.number().optional(),
4084
- behavior: D.enum(["auto", "smooth"]).optional(),
4085
- maxScrolls: D.number().optional(),
4086
- waitAfterScroll: D.number().optional()
4080
+ const bn = wt.extend({
4081
+ name: T.literal("scroll"),
4082
+ scrollType: T.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
4083
+ distance: T.number().optional(),
4084
+ behavior: T.enum(["auto", "smooth"]).optional(),
4085
+ maxScrolls: T.number().optional(),
4086
+ waitAfterScroll: T.number().optional()
4087
4087
  });
4088
- function Ds(r) {
4089
- return wn.parse(r);
4088
+ function Os(r) {
4089
+ return bn.parse(r);
4090
4090
  }
4091
- async function Os(r) {
4091
+ async function Ps(r) {
4092
4092
  try {
4093
4093
  const {
4094
4094
  selector: e = "",
@@ -4098,19 +4098,19 @@ async function Os(r) {
4098
4098
  maxScrolls: i = 50,
4099
4099
  waitAfterScroll: c = 300,
4100
4100
  findBy: f = "cssSelector",
4101
- option: b
4101
+ option: w
4102
4102
  } = r;
4103
4103
  switch (t) {
4104
4104
  case "toElement":
4105
4105
  if (!e)
4106
4106
  throw new Error("Selector is required for toElement scroll type");
4107
- return await Ps(e, f, b, s);
4107
+ return await Ns(e, f, w, s);
4108
4108
  case "toBottom":
4109
- return await Ns(s, c);
4109
+ return await Cs(s, c);
4110
4110
  case "byDistance":
4111
- return await Cs(a, s);
4111
+ return await Rs(a, s);
4112
4112
  case "untilLoaded":
4113
- return await Rs(i, a, s, c);
4113
+ return await Ms(i, a, s, c);
4114
4114
  default:
4115
4115
  throw new Error(`Unknown scroll type: ${t}`);
4116
4116
  }
@@ -4122,7 +4122,7 @@ async function Os(r) {
4122
4122
  };
4123
4123
  }
4124
4124
  }
4125
- async function Ps(r, e, t, a) {
4125
+ async function Ns(r, e, t, a) {
4126
4126
  const s = await pt({ selector: r, findBy: e, option: t });
4127
4127
  return s ? ((Array.isArray(s) ? s[0] : s).scrollIntoView({ behavior: a, block: "center" }), { data: !0 }) : {
4128
4128
  hasError: !0,
@@ -4130,7 +4130,7 @@ async function Ps(r, e, t, a) {
4130
4130
  data: !1
4131
4131
  };
4132
4132
  }
4133
- async function Ns(r, e) {
4133
+ async function Cs(r, e) {
4134
4134
  let t = document.body.scrollHeight, a = 0;
4135
4135
  const s = 50;
4136
4136
  for (; a < s; ) {
@@ -4145,13 +4145,13 @@ async function Ns(r, e) {
4145
4145
  }
4146
4146
  return { data: !0 };
4147
4147
  }
4148
- async function Cs(r, e) {
4148
+ async function Rs(r, e) {
4149
4149
  return window.scrollBy({
4150
4150
  top: r,
4151
4151
  behavior: e
4152
4152
  }), { data: !0 };
4153
4153
  }
4154
- async function Rs(r, e, t, a) {
4154
+ async function Ms(r, e, t, a) {
4155
4155
  let s = 0, i = document.body.scrollHeight;
4156
4156
  for (; s < r; ) {
4157
4157
  window.scrollBy({
@@ -4159,27 +4159,27 @@ async function Rs(r, e, t, a) {
4159
4159
  behavior: t
4160
4160
  // Use provided behavior
4161
4161
  }), await new Promise((k) => setTimeout(k, a));
4162
- const c = document.body.scrollHeight, f = window.pageYOffset || document.documentElement.scrollTop, b = window.innerHeight;
4163
- if (f + b >= c - 10 && c === i)
4162
+ const c = document.body.scrollHeight, f = window.pageYOffset || document.documentElement.scrollTop, w = window.innerHeight;
4163
+ if (f + w >= c - 10 && c === i)
4164
4164
  break;
4165
4165
  i = c, s++;
4166
4166
  }
4167
4167
  return { data: !0 };
4168
4168
  }
4169
- const kn = D.object({
4170
- name: D.literal("fetch-api"),
4171
- url: D.string(),
4172
- method: D.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
4173
- headers: D.record(D.string(), D.string()).optional(),
4174
- body: D.record(D.string(), D.any()).optional(),
4175
- timeout: D.number().min(0).optional(),
4176
- parseJson: D.boolean().optional(),
4177
- returnHeaders: D.boolean().optional()
4169
+ const kn = T.object({
4170
+ name: T.literal("fetch-api"),
4171
+ url: T.string(),
4172
+ method: T.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
4173
+ headers: T.record(T.string(), T.string()).optional(),
4174
+ body: T.record(T.string(), T.any()).optional(),
4175
+ timeout: T.number().min(0).optional(),
4176
+ parseJson: T.boolean().optional(),
4177
+ returnHeaders: T.boolean().optional()
4178
4178
  });
4179
- function Ms(r) {
4179
+ function Is(r) {
4180
4180
  return kn.parse(r);
4181
4181
  }
4182
- async function Is(r) {
4182
+ async function js(r) {
4183
4183
  try {
4184
4184
  console.log("[FetchApiBlock] Sending API request to background:", r.url);
4185
4185
  const e = await chrome.runtime.sendMessage({
@@ -4211,14 +4211,14 @@ async function Is(r) {
4211
4211
  }
4212
4212
  }
4213
4213
  var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4214
- function js(r) {
4214
+ function Fs(r) {
4215
4215
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4216
4216
  }
4217
4217
  function kr(r) {
4218
4218
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4219
4219
  }
4220
4220
  var Cr = { exports: {} }, Jr;
4221
- function Fs() {
4221
+ function Us() {
4222
4222
  return Jr || (Jr = 1, (function(r, e) {
4223
4223
  (function(t) {
4224
4224
  r.exports = t();
@@ -4228,27 +4228,27 @@ function Fs() {
4228
4228
  function c(k, M) {
4229
4229
  if (!s[k]) {
4230
4230
  if (!a[k]) {
4231
- var S = typeof kr == "function" && kr;
4232
- if (!M && S) return S(k, !0);
4231
+ var D = typeof kr == "function" && kr;
4232
+ if (!M && D) return D(k, !0);
4233
4233
  if (f) return f(k, !0);
4234
4234
  var x = new Error("Cannot find module '" + k + "'");
4235
4235
  throw x.code = "MODULE_NOT_FOUND", x;
4236
4236
  }
4237
- var A = s[k] = { exports: {} };
4238
- a[k][0].call(A.exports, function(I) {
4237
+ var S = s[k] = { exports: {} };
4238
+ a[k][0].call(S.exports, function(I) {
4239
4239
  var ae = a[k][1][I];
4240
4240
  return c(ae || I);
4241
- }, A, A.exports, t, a, s, i);
4241
+ }, S, S.exports, t, a, s, i);
4242
4242
  }
4243
4243
  return s[k].exports;
4244
4244
  }
4245
- for (var f = typeof kr == "function" && kr, b = 0; b < i.length; b++) c(i[b]);
4245
+ for (var f = typeof kr == "function" && kr, w = 0; w < i.length; w++) c(i[w]);
4246
4246
  return c;
4247
4247
  }
4248
4248
  return t;
4249
4249
  })())({ 1: [function(t, a, s) {
4250
4250
  const i = t("./utils"), c = (function() {
4251
- const f = i.stringToArray, b = [
4251
+ const f = i.stringToArray, w = [
4252
4252
  "Zero",
4253
4253
  "One",
4254
4254
  "Two",
@@ -4290,44 +4290,44 @@ function Fs() {
4290
4290
  "Seventeenth",
4291
4291
  "Eighteenth",
4292
4292
  "Nineteenth"
4293
- ], M = ["Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety", "Hundred"], S = ["Thousand", "Million", "Billion", "Trillion"];
4294
- function x(v, T) {
4295
- var w = function(U, j, O) {
4293
+ ], M = ["Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety", "Hundred"], D = ["Thousand", "Million", "Billion", "Trillion"];
4294
+ function x(v, A) {
4295
+ var b = function(U, j, O) {
4296
4296
  var F = "";
4297
4297
  if (U <= 19)
4298
- F = (j ? " and " : "") + (O ? k[U] : b[U]);
4298
+ F = (j ? " and " : "") + (O ? k[U] : w[U]);
4299
4299
  else if (U < 100) {
4300
- const ge = Math.floor(U / 10), we = U % 10;
4301
- F = (j ? " and " : "") + M[ge - 2], we > 0 ? F += "-" + w(we, !1, O) : O && (F = F.substring(0, F.length - 1) + "ieth");
4300
+ const ge = Math.floor(U / 10), be = U % 10;
4301
+ F = (j ? " and " : "") + M[ge - 2], be > 0 ? F += "-" + b(be, !1, O) : O && (F = F.substring(0, F.length - 1) + "ieth");
4302
4302
  } else if (U < 1e3) {
4303
- const ge = Math.floor(U / 100), we = U % 100;
4304
- F = (j ? ", " : "") + b[ge] + " Hundred", we > 0 ? F += w(we, !0, O) : O && (F += "th");
4303
+ const ge = Math.floor(U / 100), be = U % 100;
4304
+ F = (j ? ", " : "") + w[ge] + " Hundred", be > 0 ? F += b(be, !0, O) : O && (F += "th");
4305
4305
  } else {
4306
4306
  var J = Math.floor(Math.log10(U) / 3);
4307
- J > S.length && (J = S.length);
4308
- const ge = Math.pow(10, J * 3), we = Math.floor(U / ge), K = U - we * ge;
4309
- F = (j ? ", " : "") + w(we, !1, !1) + " " + S[J - 1], K > 0 ? F += w(K, !0, O) : O && (F += "th");
4307
+ J > D.length && (J = D.length);
4308
+ const ge = Math.pow(10, J * 3), be = Math.floor(U / ge), K = U - be * ge;
4309
+ F = (j ? ", " : "") + b(be, !1, !1) + " " + D[J - 1], K > 0 ? F += b(K, !0, O) : O && (F += "th");
4310
4310
  }
4311
4311
  return F;
4312
- }, N = w(v, !1, T);
4312
+ }, N = b(v, !1, A);
4313
4313
  return N;
4314
4314
  }
4315
- const A = {};
4316
- b.forEach(function(v, T) {
4317
- A[v.toLowerCase()] = T;
4318
- }), k.forEach(function(v, T) {
4319
- A[v.toLowerCase()] = T;
4320
- }), M.forEach(function(v, T) {
4321
- const w = v.toLowerCase();
4322
- A[w] = (T + 2) * 10, A[w.substring(0, v.length - 1) + "ieth"] = A[w];
4323
- }), A.hundredth = 100, S.forEach(function(v, T) {
4324
- const w = v.toLowerCase(), N = Math.pow(10, (T + 1) * 3);
4325
- A[w] = N, A[w + "th"] = N;
4315
+ const S = {};
4316
+ w.forEach(function(v, A) {
4317
+ S[v.toLowerCase()] = A;
4318
+ }), k.forEach(function(v, A) {
4319
+ S[v.toLowerCase()] = A;
4320
+ }), M.forEach(function(v, A) {
4321
+ const b = v.toLowerCase();
4322
+ S[b] = (A + 2) * 10, S[b.substring(0, v.length - 1) + "ieth"] = S[b];
4323
+ }), S.hundredth = 100, D.forEach(function(v, A) {
4324
+ const b = v.toLowerCase(), N = Math.pow(10, (A + 1) * 3);
4325
+ S[b] = N, S[b + "th"] = N;
4326
4326
  });
4327
4327
  function I(v) {
4328
- const w = v.split(/,\s|\sand\s|[\s\\-]/).map((j) => A[j]);
4328
+ const b = v.split(/,\s|\sand\s|[\s\\-]/).map((j) => S[j]);
4329
4329
  let N = [0];
4330
- return w.forEach((j) => {
4330
+ return b.forEach((j) => {
4331
4331
  if (j < 100) {
4332
4332
  let O = N.pop();
4333
4333
  O >= 1e3 && (N.push(O), O = 0), N.push(O + j);
@@ -4351,36 +4351,36 @@ function Fs() {
4351
4351
  [1, "i"]
4352
4352
  ], Q = { M: 1e3, D: 500, C: 100, L: 50, X: 10, V: 5, I: 1 };
4353
4353
  function pe(v) {
4354
- for (var T = 0; T < ae.length; T++) {
4355
- const w = ae[T];
4356
- if (v >= w[0])
4357
- return w[1] + pe(v - w[0]);
4354
+ for (var A = 0; A < ae.length; A++) {
4355
+ const b = ae[A];
4356
+ if (v >= b[0])
4357
+ return b[1] + pe(v - b[0]);
4358
4358
  }
4359
4359
  return "";
4360
4360
  }
4361
4361
  function H(v) {
4362
- for (var T = 0, w = 1, N = v.length - 1; N >= 0; N--) {
4362
+ for (var A = 0, b = 1, N = v.length - 1; N >= 0; N--) {
4363
4363
  const U = v[N], j = Q[U];
4364
- j < w ? T -= j : (w = j, T += j);
4364
+ j < b ? A -= j : (b = j, A += j);
4365
4365
  }
4366
- return T;
4366
+ return A;
4367
4367
  }
4368
- function C(v, T) {
4369
- for (var w = [], N = T.charCodeAt(0); v > 0; )
4370
- w.unshift(String.fromCharCode((v - 1) % 26 + N)), v = Math.floor((v - 1) / 26);
4371
- return w.join("");
4368
+ function C(v, A) {
4369
+ for (var b = [], N = A.charCodeAt(0); v > 0; )
4370
+ b.unshift(String.fromCharCode((v - 1) % 26 + N)), v = Math.floor((v - 1) / 26);
4371
+ return b.join("");
4372
4372
  }
4373
- function se(v, T) {
4374
- for (var w = T.charCodeAt(0), N = 0, U = 0; U < v.length; U++)
4375
- N += (v.charCodeAt(v.length - U - 1) - w + 1) * Math.pow(26, U);
4373
+ function se(v, A) {
4374
+ for (var b = A.charCodeAt(0), N = 0, U = 0; U < v.length; U++)
4375
+ N += (v.charCodeAt(v.length - U - 1) - b + 1) * Math.pow(26, U);
4376
4376
  return N;
4377
4377
  }
4378
- function B(v, T) {
4378
+ function B(v, A) {
4379
4379
  if (typeof v > "u")
4380
4380
  return;
4381
4381
  v = Math.floor(v);
4382
- const w = xe(T);
4383
- return W(v, w);
4382
+ const b = xe(A);
4383
+ return W(v, b);
4384
4384
  }
4385
4385
  const E = {
4386
4386
  DECIMAL: "decimal",
@@ -4393,85 +4393,85 @@ function Fs() {
4393
4393
  LOWER: "lower",
4394
4394
  TITLE: "title"
4395
4395
  };
4396
- function W(v, T) {
4397
- let w;
4396
+ function W(v, A) {
4397
+ let b;
4398
4398
  const N = v < 0;
4399
- switch (v = Math.abs(v), T.primary) {
4399
+ switch (v = Math.abs(v), A.primary) {
4400
4400
  case E.LETTERS:
4401
- w = C(v, T.case === L.UPPER ? "A" : "a");
4401
+ b = C(v, A.case === L.UPPER ? "A" : "a");
4402
4402
  break;
4403
4403
  case E.ROMAN:
4404
- w = pe(v), T.case === L.UPPER && (w = w.toUpperCase());
4404
+ b = pe(v), A.case === L.UPPER && (b = b.toUpperCase());
4405
4405
  break;
4406
4406
  case E.WORDS:
4407
- w = x(v, T.ordinal), T.case === L.UPPER ? w = w.toUpperCase() : T.case === L.LOWER && (w = w.toLowerCase());
4407
+ b = x(v, A.ordinal), A.case === L.UPPER ? b = b.toUpperCase() : A.case === L.LOWER && (b = b.toLowerCase());
4408
4408
  break;
4409
4409
  case E.DECIMAL:
4410
- w = "" + v;
4411
- var U = T.mandatoryDigits - w.length;
4410
+ b = "" + v;
4411
+ var U = A.mandatoryDigits - b.length;
4412
4412
  if (U > 0) {
4413
4413
  var j = new Array(U + 1).join("0");
4414
- w = j + w;
4414
+ b = j + b;
4415
4415
  }
4416
- if (T.zeroCode !== 48 && (w = f(w).map((ge) => String.fromCodePoint(ge.codePointAt(0) + T.zeroCode - 48)).join("")), T.regular) {
4417
- const ge = Math.floor((w.length - 1) / T.groupingSeparators.position);
4418
- for (let we = ge; we > 0; we--) {
4419
- const K = w.length - we * T.groupingSeparators.position;
4420
- w = w.substr(0, K) + T.groupingSeparators.character + w.substr(K);
4416
+ if (A.zeroCode !== 48 && (b = f(b).map((ge) => String.fromCodePoint(ge.codePointAt(0) + A.zeroCode - 48)).join("")), A.regular) {
4417
+ const ge = Math.floor((b.length - 1) / A.groupingSeparators.position);
4418
+ for (let be = ge; be > 0; be--) {
4419
+ const K = b.length - be * A.groupingSeparators.position;
4420
+ b = b.substr(0, K) + A.groupingSeparators.character + b.substr(K);
4421
4421
  }
4422
4422
  } else
4423
- T.groupingSeparators.reverse().forEach((ge) => {
4424
- const we = w.length - ge.position;
4425
- w = w.substr(0, we) + ge.character + w.substr(we);
4423
+ A.groupingSeparators.reverse().forEach((ge) => {
4424
+ const be = b.length - ge.position;
4425
+ b = b.substr(0, be) + ge.character + b.substr(be);
4426
4426
  });
4427
- if (T.ordinal) {
4428
- var O = { 1: "st", 2: "nd", 3: "rd" }, F = w[w.length - 1], J = O[F];
4429
- (!J || w.length > 1 && w[w.length - 2] === "1") && (J = "th"), w = w + J;
4427
+ if (A.ordinal) {
4428
+ var O = { 1: "st", 2: "nd", 3: "rd" }, F = b[b.length - 1], J = O[F];
4429
+ (!J || b.length > 1 && b[b.length - 2] === "1") && (J = "th"), b = b + J;
4430
4430
  }
4431
4431
  break;
4432
4432
  case E.SEQUENCE:
4433
4433
  throw {
4434
4434
  code: "D3130",
4435
- value: T.token
4435
+ value: A.token
4436
4436
  };
4437
4437
  }
4438
- return N && (w = "-" + w), w;
4438
+ return N && (b = "-" + b), b;
4439
4439
  }
4440
4440
  const he = [48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296];
4441
4441
  function xe(v) {
4442
- const T = {
4442
+ const A = {
4443
4443
  type: "integer",
4444
4444
  primary: E.DECIMAL,
4445
4445
  case: L.LOWER,
4446
4446
  ordinal: !1
4447
4447
  };
4448
- let w, N;
4448
+ let b, N;
4449
4449
  const U = v.lastIndexOf(";");
4450
- switch (U === -1 ? w = v : (w = v.substring(0, U), N = v.substring(U + 1), N[0] === "o" && (T.ordinal = !0)), w) {
4450
+ switch (U === -1 ? b = v : (b = v.substring(0, U), N = v.substring(U + 1), N[0] === "o" && (A.ordinal = !0)), b) {
4451
4451
  case "A":
4452
- T.case = L.UPPER;
4452
+ A.case = L.UPPER;
4453
4453
  /* eslnt-disable-next-line no-fallthrough */
4454
4454
  case "a":
4455
- T.primary = E.LETTERS;
4455
+ A.primary = E.LETTERS;
4456
4456
  break;
4457
4457
  case "I":
4458
- T.case = L.UPPER;
4458
+ A.case = L.UPPER;
4459
4459
  /* eslnt-disable-next-line no-fallthrough */
4460
4460
  case "i":
4461
- T.primary = E.ROMAN;
4461
+ A.primary = E.ROMAN;
4462
4462
  break;
4463
4463
  case "W":
4464
- T.case = L.UPPER, T.primary = E.WORDS;
4464
+ A.case = L.UPPER, A.primary = E.WORDS;
4465
4465
  break;
4466
4466
  case "Ww":
4467
- T.case = L.TITLE, T.primary = E.WORDS;
4467
+ A.case = L.TITLE, A.primary = E.WORDS;
4468
4468
  break;
4469
4469
  case "w":
4470
- T.primary = E.WORDS;
4470
+ A.primary = E.WORDS;
4471
4471
  break;
4472
4472
  default: {
4473
4473
  let j = null, O = 0, F = 0, J = [], ge = 0;
4474
- if (f(w).map((K) => K.codePointAt(0)).reverse().forEach((K) => {
4474
+ if (f(b).map((K) => K.codePointAt(0)).reverse().forEach((K) => {
4475
4475
  let ee = !1;
4476
4476
  for (let me = 0; me < he.length; me++) {
4477
4477
  const G = he[me];
@@ -4490,7 +4490,7 @@ function Fs() {
4490
4490
  character: String.fromCodePoint(K)
4491
4491
  }));
4492
4492
  }), O > 0) {
4493
- T.primary = E.DECIMAL, T.zeroCode = j, T.mandatoryDigits = O, T.optionalDigits = F;
4493
+ A.primary = E.DECIMAL, A.zeroCode = j, A.mandatoryDigits = O, A.optionalDigits = F;
4494
4494
  const ee = function(me) {
4495
4495
  if (me.length === 0)
4496
4496
  return 0;
@@ -4506,15 +4506,15 @@ function Fs() {
4506
4506
  return 0;
4507
4507
  return qe;
4508
4508
  }(J);
4509
- ee > 0 ? (T.regular = !0, T.groupingSeparators = {
4509
+ ee > 0 ? (A.regular = !0, A.groupingSeparators = {
4510
4510
  position: ee,
4511
4511
  character: J[0].character
4512
- }) : (T.regular = !1, T.groupingSeparators = J);
4512
+ }) : (A.regular = !1, A.groupingSeparators = J);
4513
4513
  } else
4514
- T.primary = E.SEQUENCE, T.token = w;
4514
+ A.primary = E.SEQUENCE, A.token = b;
4515
4515
  }
4516
4516
  }
4517
- return T;
4517
+ return A;
4518
4518
  }
4519
4519
  const Te = {
4520
4520
  Y: "1",
@@ -4538,20 +4538,20 @@ function Fs() {
4538
4538
  E: "n"
4539
4539
  };
4540
4540
  function Ae(v) {
4541
- var T = [];
4542
- const w = {
4541
+ var A = [];
4542
+ const b = {
4543
4543
  type: "datetime",
4544
- parts: T
4544
+ parts: A
4545
4545
  }, N = function(ee, me) {
4546
4546
  if (me > ee) {
4547
4547
  let G = v.substring(ee, me);
4548
- G = G.split("]]").join("]"), T.push({ type: "literal", value: G });
4548
+ G = G.split("]]").join("]"), A.push({ type: "literal", value: G });
4549
4549
  }
4550
4550
  };
4551
4551
  for (var U = 0, j = 0; j < v.length; ) {
4552
4552
  if (v.charAt(j) === "[") {
4553
4553
  if (v.charAt(j + 1) === "[") {
4554
- N(U, j), T.push({ type: "literal", value: "[" }), j += 2, U = j;
4554
+ N(U, j), A.push({ type: "literal", value: "[" }), j += 2, U = j;
4555
4555
  continue;
4556
4556
  }
4557
4557
  if (N(U, j), U = j, j = v.indexOf("]", U), j === -1)
@@ -4597,65 +4597,65 @@ function Fs() {
4597
4597
  else if (O.presentation1[0] === "N")
4598
4598
  O.presentation1[1] === "n" ? O.names = L.TITLE : O.names = L.UPPER;
4599
4599
  else if ("YMDdFWwXxHhmsf".indexOf(O.component) !== -1) {
4600
- var we = O.presentation1;
4601
- if (O.presentation2 && (we += ";" + O.presentation2), O.integerFormat = xe(we), O.width && O.width.min !== void 0 && O.integerFormat.mandatoryDigits < O.width.min && (O.integerFormat.mandatoryDigits = O.width.min), O.component === "Y")
4600
+ var be = O.presentation1;
4601
+ if (O.presentation2 && (be += ";" + O.presentation2), O.integerFormat = xe(be), O.width && O.width.min !== void 0 && O.integerFormat.mandatoryDigits < O.width.min && (O.integerFormat.mandatoryDigits = O.width.min), O.component === "Y")
4602
4602
  if (O.n = -1, O.width && O.width.max !== void 0)
4603
4603
  O.n = O.width.max, O.integerFormat.mandatoryDigits = O.n;
4604
4604
  else {
4605
4605
  var K = O.integerFormat.mandatoryDigits + O.integerFormat.optionalDigits;
4606
4606
  K >= 2 && (O.n = K);
4607
4607
  }
4608
- const me = T[T.length - 1];
4608
+ const me = A[A.length - 1];
4609
4609
  me && me.integerFormat && (me.integerFormat.parseWidth = me.integerFormat.mandatoryDigits);
4610
4610
  }
4611
- (O.component === "Z" || O.component === "z") && (O.integerFormat = xe(O.presentation1)), T.push(O), U = j + 1;
4611
+ (O.component === "Z" || O.component === "z") && (O.integerFormat = xe(O.presentation1)), A.push(O), U = j + 1;
4612
4612
  }
4613
4613
  j++;
4614
4614
  }
4615
- return N(U, j), w;
4615
+ return N(U, j), b;
4616
4616
  }
4617
4617
  const ve = ["", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], Re = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], et = 1e3 * 60 * 60 * 24, _e = function(v) {
4618
- const T = Date.UTC(v.year, v.month);
4619
- var w = new Date(T).getUTCDay();
4620
- return w === 0 && (w = 7), w > 4 ? T + (8 - w) * et : T - (w - 1) * et;
4621
- }, fe = function(v, T) {
4618
+ const A = Date.UTC(v.year, v.month);
4619
+ var b = new Date(A).getUTCDay();
4620
+ return b === 0 && (b = 7), b > 4 ? A + (8 - b) * et : A - (b - 1) * et;
4621
+ }, fe = function(v, A) {
4622
4622
  return {
4623
4623
  year: v,
4624
- month: T,
4624
+ month: A,
4625
4625
  nextMonth: function() {
4626
- return T === 11 ? fe(v + 1, 0) : fe(v, T + 1);
4626
+ return A === 11 ? fe(v + 1, 0) : fe(v, A + 1);
4627
4627
  },
4628
4628
  previousMonth: function() {
4629
- return T === 0 ? fe(v - 1, 11) : fe(v, T - 1);
4629
+ return A === 0 ? fe(v - 1, 11) : fe(v, A - 1);
4630
4630
  },
4631
4631
  nextYear: function() {
4632
- return fe(v + 1, T);
4632
+ return fe(v + 1, A);
4633
4633
  },
4634
4634
  previousYear: function() {
4635
- return fe(v - 1, T);
4635
+ return fe(v - 1, A);
4636
4636
  }
4637
4637
  };
4638
- }, tt = function(v, T) {
4639
- return (T - v) / (et * 7) + 1;
4640
- }, ie = (v, T) => {
4641
- let w;
4642
- switch (T) {
4638
+ }, tt = function(v, A) {
4639
+ return (A - v) / (et * 7) + 1;
4640
+ }, ie = (v, A) => {
4641
+ let b;
4642
+ switch (A) {
4643
4643
  case "Y":
4644
- w = v.getUTCFullYear();
4644
+ b = v.getUTCFullYear();
4645
4645
  break;
4646
4646
  case "M":
4647
- w = v.getUTCMonth() + 1;
4647
+ b = v.getUTCMonth() + 1;
4648
4648
  break;
4649
4649
  case "D":
4650
- w = v.getUTCDate();
4650
+ b = v.getUTCDate();
4651
4651
  break;
4652
4652
  case "d": {
4653
4653
  const N = Date.UTC(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate()), U = Date.UTC(v.getUTCFullYear(), 0);
4654
- w = (N - U) / et + 1;
4654
+ b = (N - U) / et + 1;
4655
4655
  break;
4656
4656
  }
4657
4657
  case "F":
4658
- w = v.getUTCDay(), w === 0 && (w = 7);
4658
+ b = v.getUTCDay(), b === 0 && (b = 7);
4659
4659
  break;
4660
4660
  case "W": {
4661
4661
  const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = Date.UTC(N.year, v.getUTCMonth(), v.getUTCDate());
@@ -4667,7 +4667,7 @@ function Fs() {
4667
4667
  const F = _e(N.previousYear());
4668
4668
  O = tt(F, j);
4669
4669
  }
4670
- w = Math.floor(O);
4670
+ b = Math.floor(O);
4671
4671
  break;
4672
4672
  }
4673
4673
  case "w": {
@@ -4680,59 +4680,59 @@ function Fs() {
4680
4680
  const F = _e(N.previousMonth());
4681
4681
  O = tt(F, j);
4682
4682
  }
4683
- w = Math.floor(O);
4683
+ b = Math.floor(O);
4684
4684
  break;
4685
4685
  }
4686
4686
  case "X": {
4687
4687
  const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = _e(N.nextYear()), O = v.getTime();
4688
- O < U ? w = N.year - 1 : O >= j ? w = N.year + 1 : w = N.year;
4688
+ O < U ? b = N.year - 1 : O >= j ? b = N.year + 1 : b = N.year;
4689
4689
  break;
4690
4690
  }
4691
4691
  case "x": {
4692
4692
  const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = N.nextMonth(), O = _e(j), F = v.getTime();
4693
- F < U ? w = N.previousMonth().month + 1 : F >= O ? w = j.month + 1 : w = N.month + 1;
4693
+ F < U ? b = N.previousMonth().month + 1 : F >= O ? b = j.month + 1 : b = N.month + 1;
4694
4694
  break;
4695
4695
  }
4696
4696
  case "H":
4697
- w = v.getUTCHours();
4697
+ b = v.getUTCHours();
4698
4698
  break;
4699
4699
  case "h":
4700
- w = v.getUTCHours(), w = w % 12, w === 0 && (w = 12);
4700
+ b = v.getUTCHours(), b = b % 12, b === 0 && (b = 12);
4701
4701
  break;
4702
4702
  case "P":
4703
- w = v.getUTCHours() >= 12 ? "pm" : "am";
4703
+ b = v.getUTCHours() >= 12 ? "pm" : "am";
4704
4704
  break;
4705
4705
  case "m":
4706
- w = v.getUTCMinutes();
4706
+ b = v.getUTCMinutes();
4707
4707
  break;
4708
4708
  case "s":
4709
- w = v.getUTCSeconds();
4709
+ b = v.getUTCSeconds();
4710
4710
  break;
4711
4711
  case "f":
4712
- w = v.getUTCMilliseconds();
4712
+ b = v.getUTCMilliseconds();
4713
4713
  break;
4714
4714
  case "Z":
4715
4715
  // timezone
4716
4716
  case "z":
4717
4717
  break;
4718
4718
  case "C":
4719
- w = "ISO";
4719
+ b = "ISO";
4720
4720
  break;
4721
4721
  case "E":
4722
- w = "ISO";
4722
+ b = "ISO";
4723
4723
  break;
4724
4724
  }
4725
- return w;
4725
+ return b;
4726
4726
  };
4727
4727
  let Fe = null;
4728
- function st(v, T, w) {
4728
+ function st(v, A, b) {
4729
4729
  var N = 0, U = 0;
4730
- if (typeof w < "u") {
4731
- const we = parseInt(w);
4732
- N = Math.floor(we / 100), U = we % 100;
4730
+ if (typeof b < "u") {
4731
+ const be = parseInt(b);
4732
+ N = Math.floor(be / 100), U = be % 100;
4733
4733
  }
4734
- var j = function(we, K) {
4735
- var ee = ie(we, K.component);
4734
+ var j = function(be, K) {
4735
+ var ee = ie(be, K.component);
4736
4736
  if ("YMDdFWwXxHhms".indexOf(K.component) !== -1)
4737
4737
  if (K.component === "Y" && K.n !== -1 && (ee = ee % Math.pow(10, K.n)), K.names) {
4738
4738
  if (K.component === "M" || K.component === "x")
@@ -4770,74 +4770,74 @@ function Fs() {
4770
4770
  return ee;
4771
4771
  };
4772
4772
  let O;
4773
- typeof T > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), O = Fe) : O = Ae(T);
4773
+ typeof A > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), O = Fe) : O = Ae(A);
4774
4774
  const F = (60 * N + U) * 60 * 1e3, J = new Date(v + F);
4775
4775
  let ge = "";
4776
- return O.parts.forEach(function(we) {
4777
- we.type === "literal" ? ge += we.value : ge += j(J, we);
4776
+ return O.parts.forEach(function(be) {
4777
+ be.type === "literal" ? ge += be.value : ge += j(J, be);
4778
4778
  }), ge;
4779
4779
  }
4780
4780
  function d(v) {
4781
- var T = {};
4781
+ var A = {};
4782
4782
  if (v.type === "datetime")
4783
- T.type = "datetime", T.parts = v.parts.map(function(w) {
4783
+ A.type = "datetime", A.parts = v.parts.map(function(b) {
4784
4784
  var N = {};
4785
- if (w.type === "literal")
4786
- N.regex = w.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4787
- else if (w.component === "Z" || w.component === "z") {
4785
+ if (b.type === "literal")
4786
+ N.regex = b.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4787
+ else if (b.component === "Z" || b.component === "z") {
4788
4788
  let j;
4789
- Array.isArray(w.integerFormat.groupingSeparators) || (j = w.integerFormat.groupingSeparators), N.regex = "", w.component === "z" && (N.regex = "GMT"), N.regex += "[-+][0-9]+", j && (N.regex += j.character + "[0-9]+"), N.parse = function(O) {
4790
- w.component === "z" && (O = O.substring(3));
4789
+ Array.isArray(b.integerFormat.groupingSeparators) || (j = b.integerFormat.groupingSeparators), N.regex = "", b.component === "z" && (N.regex = "GMT"), N.regex += "[-+][0-9]+", j && (N.regex += j.character + "[0-9]+"), N.parse = function(O) {
4790
+ b.component === "z" && (O = O.substring(3));
4791
4791
  let F = 0, J = 0;
4792
4792
  return j ? (F = Number.parseInt(O.substring(0, O.indexOf(j.character))), J = Number.parseInt(O.substring(O.indexOf(j.character) + 1))) : O.length - 1 <= 2 ? F = Number.parseInt(O) : (F = Number.parseInt(O.substring(0, 3)), J = Number.parseInt(O.substring(3))), F * 60 + J;
4793
4793
  };
4794
- } else if (w.integerFormat)
4795
- N = d(w.integerFormat);
4794
+ } else if (b.integerFormat)
4795
+ N = d(b.integerFormat);
4796
4796
  else {
4797
4797
  N.regex = "[a-zA-Z]+";
4798
4798
  var U = {};
4799
- if (w.component === "M" || w.component === "x")
4799
+ if (b.component === "M" || b.component === "x")
4800
4800
  Re.forEach(function(j, O) {
4801
- w.width && w.width.max ? U[j.substring(0, w.width.max)] = O + 1 : U[j] = O + 1;
4801
+ b.width && b.width.max ? U[j.substring(0, b.width.max)] = O + 1 : U[j] = O + 1;
4802
4802
  });
4803
- else if (w.component === "F")
4803
+ else if (b.component === "F")
4804
4804
  ve.forEach(function(j, O) {
4805
- O > 0 && (w.width && w.width.max ? U[j.substring(0, w.width.max)] = O : U[j] = O);
4805
+ O > 0 && (b.width && b.width.max ? U[j.substring(0, b.width.max)] = O : U[j] = O);
4806
4806
  });
4807
- else if (w.component === "P")
4807
+ else if (b.component === "P")
4808
4808
  U = { am: 0, AM: 0, pm: 1, PM: 1 };
4809
4809
  else
4810
4810
  throw {
4811
4811
  code: "D3133",
4812
- value: w.component
4812
+ value: b.component
4813
4813
  };
4814
4814
  N.parse = function(j) {
4815
4815
  return U[j];
4816
4816
  };
4817
4817
  }
4818
- return N.component = w.component, N;
4818
+ return N.component = b.component, N;
4819
4819
  });
4820
4820
  else {
4821
- T.type = "integer";
4822
- const w = v.case === L.UPPER;
4821
+ A.type = "integer";
4822
+ const b = v.case === L.UPPER;
4823
4823
  switch (v.primary) {
4824
4824
  case E.LETTERS:
4825
- T.regex = w ? "[A-Z]+" : "[a-z]+", T.parse = function(N) {
4826
- return se(N, w ? "A" : "a");
4825
+ A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(N) {
4826
+ return se(N, b ? "A" : "a");
4827
4827
  };
4828
4828
  break;
4829
4829
  case E.ROMAN:
4830
- T.regex = w ? "[MDCLXVI]+" : "[mdclxvi]+", T.parse = function(N) {
4831
- return H(w ? N : N.toUpperCase());
4830
+ A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(N) {
4831
+ return H(b ? N : N.toUpperCase());
4832
4832
  };
4833
4833
  break;
4834
4834
  case E.WORDS:
4835
- T.regex = "(?:" + Object.keys(A).concat("and", "[\\-, ]").join("|") + ")+", T.parse = function(N) {
4835
+ A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(N) {
4836
4836
  return I(N.toLowerCase());
4837
4837
  };
4838
4838
  break;
4839
4839
  case E.DECIMAL:
4840
- T.regex = "[0-9]", v.parseWidth ? T.regex += `{${v.parseWidth}}` : T.regex += "+", v.ordinal && (T.regex += "(?:th|st|nd|rd)"), T.parse = function(N) {
4840
+ A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(N) {
4841
4841
  let U = N;
4842
4842
  return v.ordinal && (U = N.substring(0, N.length - 2)), v.regular ? U = U.split(",").join("") : v.groupingSeparators.forEach((j) => {
4843
4843
  U = U.split(j.character).join("");
@@ -4851,16 +4851,16 @@ function Fs() {
4851
4851
  };
4852
4852
  }
4853
4853
  }
4854
- return T;
4854
+ return A;
4855
4855
  }
4856
- function m(v, T) {
4856
+ function m(v, A) {
4857
4857
  if (typeof v > "u")
4858
4858
  return;
4859
- const w = xe(T);
4860
- return d(w).parse(v);
4859
+ const b = xe(A);
4860
+ return d(b).parse(v);
4861
4861
  }
4862
- function V(v, T) {
4863
- const w = Ae(T), N = d(w), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
4862
+ function V(v, A) {
4863
+ const b = Ae(A), N = d(b), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
4864
4864
  var O = new RegExp(U, "i").exec(v);
4865
4865
  if (O !== null) {
4866
4866
  const G = {};
@@ -4875,9 +4875,9 @@ function Fs() {
4875
4875
  Ze <<= 1, Ze += De ? 1 : 0;
4876
4876
  }, qe = (De) => !(~De & Ze) && !!(De & Ze);
4877
4877
  "YXMxWwdD".split("").forEach((De) => it(G[De]));
4878
- const He = !qe(161) && qe(130), wt = qe(84), At = !wt && qe(72);
4878
+ const He = !qe(161) && qe(130), bt = qe(84), At = !bt && qe(72);
4879
4879
  Ze = 0, "PHhmsf".split("").forEach((De) => it(G[De]));
4880
- const St = !qe(23) && qe(47), Jt = (He ? "YD" : wt ? "XxwF" : At ? "XWF" : "YMD") + (St ? "Phmsf" : "Hmsf"), ct = this.environment.timestamp;
4880
+ const St = !qe(23) && qe(47), Jt = (He ? "YD" : bt ? "XxwF" : At ? "XWF" : "YMD") + (St ? "Phmsf" : "Hmsf"), ct = this.environment.timestamp;
4881
4881
  let Bt = !1, mt = !1;
4882
4882
  if (Jt.split("").forEach((De) => {
4883
4883
  if (typeof G[De] > "u")
@@ -4890,7 +4890,7 @@ function Fs() {
4890
4890
  const De = Date.UTC(G.Y, 0), u = (G.d - 1) * 1e3 * 60 * 60 * 24, h = new Date(De + u);
4891
4891
  G.M = h.getUTCMonth(), G.D = h.getUTCDate();
4892
4892
  }
4893
- if (wt)
4893
+ if (bt)
4894
4894
  throw {
4895
4895
  code: "D3136"
4896
4896
  };
@@ -4904,9 +4904,9 @@ function Fs() {
4904
4904
  }
4905
4905
  }
4906
4906
  var de = new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");
4907
- function Pe(v, T) {
4907
+ function Pe(v, A) {
4908
4908
  if (!(typeof v > "u"))
4909
- if (typeof T > "u") {
4909
+ if (typeof A > "u") {
4910
4910
  if (!de.test(v))
4911
4911
  throw {
4912
4912
  stack: new Error().stack,
@@ -4915,11 +4915,11 @@ function Fs() {
4915
4915
  };
4916
4916
  return Date.parse(v);
4917
4917
  } else
4918
- return V.call(this, v, T);
4918
+ return V.call(this, v, A);
4919
4919
  }
4920
- function Ee(v, T, w) {
4920
+ function Ee(v, A, b) {
4921
4921
  if (!(typeof v > "u"))
4922
- return st.call(this, v, T, w);
4922
+ return st.call(this, v, A, b);
4923
4923
  }
4924
4924
  return {
4925
4925
  formatInteger: B,
@@ -4934,7 +4934,7 @@ function Fs() {
4934
4934
  (function() {
4935
4935
  var c = t("./utils");
4936
4936
  const f = (() => {
4937
- var b = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, S = c.createSequence, x = c.isSequence, A = c.isFunction, I = c.isLambda, ae = c.isPromise, Q = c.getFunctionArity, pe = c.isDeepEqual, H = c.stringToArray;
4937
+ var w = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, D = c.createSequence, x = c.isSequence, S = c.isFunction, I = c.isLambda, ae = c.isPromise, Q = c.getFunctionArity, pe = c.isDeepEqual, H = c.stringToArray;
4938
4938
  function C(n) {
4939
4939
  if (!(typeof n > "u")) {
4940
4940
  var o = 0;
@@ -4967,7 +4967,7 @@ function Fs() {
4967
4967
  var l;
4968
4968
  if (typeof n == "string")
4969
4969
  l = n;
4970
- else if (A(n))
4970
+ else if (S(n))
4971
4971
  l = "";
4972
4972
  else {
4973
4973
  if (typeof n == "number" && !isFinite(n))
@@ -4978,7 +4978,7 @@ function Fs() {
4978
4978
  };
4979
4979
  var g = o ? 2 : 0;
4980
4980
  Array.isArray(n) && n.outerWrapper && (n = n[0]), l = JSON.stringify(n, function(p, _) {
4981
- return typeof _ < "u" && _ !== null && _.toPrecision && b(_) ? Number(_.toPrecision(15)) : _ && A(_) ? "" : _;
4981
+ return typeof _ < "u" && _ !== null && _.toPrecision && w(_) ? Number(_.toPrecision(15)) : _ && S(_) ? "" : _;
4982
4982
  }, g);
4983
4983
  }
4984
4984
  return l;
@@ -5042,7 +5042,7 @@ function Fs() {
5042
5042
  }
5043
5043
  async function fe(n, o) {
5044
5044
  var l = n.apply(this, [o]);
5045
- if (ae(l) && (l = await l), l && !(typeof l.start == "number" || l.end === "number" || Array.isArray(l.groups) || A(l.next)))
5045
+ if (ae(l) && (l = await l), l && !(typeof l.start == "number" || l.end === "number" || Array.isArray(l.groups) || S(l.next)))
5046
5046
  throw {
5047
5047
  code: "T1010",
5048
5048
  stack: new Error().stack
@@ -5070,7 +5070,7 @@ function Fs() {
5070
5070
  code: "D3040",
5071
5071
  index: 3
5072
5072
  };
5073
- var g = S();
5073
+ var g = D();
5074
5074
  if (typeof l > "u" || l > 0) {
5075
5075
  var p = 0, _ = await fe(o, n);
5076
5076
  if (typeof _ < "u")
@@ -5273,7 +5273,7 @@ function Fs() {
5273
5273
  if (!(typeof n > "u"))
5274
5274
  return typeof o > "u" && (o = ""), n.join(o);
5275
5275
  }
5276
- function T(n, o, l) {
5276
+ function A(n, o, l) {
5277
5277
  if (!(typeof n > "u")) {
5278
5278
  var g = {
5279
5279
  "decimal-separator": ".",
@@ -5352,20 +5352,20 @@ function Fs() {
5352
5352
  stack: new Error().stack
5353
5353
  };
5354
5354
  }, Se = function(re) {
5355
- var Me = function(Ve, br) {
5355
+ var Me = function(Ve, wr) {
5356
5356
  for (var er = [], kt = Ve.indexOf(p["grouping-separator"]); kt !== -1; ) {
5357
- var wr = (br ? Ve.substring(0, kt) : Ve.substring(kt)).split("").filter(function(Wt) {
5357
+ var br = (wr ? Ve.substring(0, kt) : Ve.substring(kt)).split("").filter(function(Wt) {
5358
5358
  return _.indexOf(Wt) !== -1 || Wt === p.digit;
5359
5359
  }).length;
5360
- er.push(wr), kt = re.integerPart.indexOf(p["grouping-separator"], kt + 1);
5360
+ er.push(br), kt = re.integerPart.indexOf(p["grouping-separator"], kt + 1);
5361
5361
  }
5362
5362
  return er;
5363
5363
  }, Ye = Me(re.integerPart), Ce = function(Ve) {
5364
5364
  if (Ve.length === 0)
5365
5365
  return 0;
5366
- for (var br = function(wr, Wt) {
5367
- return Wt === 0 ? wr : br(Wt, wr % Wt);
5368
- }, er = Ve.reduce(br), kt = 1; kt <= Ve.length; kt++)
5366
+ for (var wr = function(br, Wt) {
5367
+ return Wt === 0 ? br : wr(Wt, br % Wt);
5368
+ }, er = Ve.reduce(wr), kt = 1; kt <= Ve.length; kt++)
5369
5369
  if (Ve.indexOf(kt * er) === -1)
5370
5370
  return 0;
5371
5371
  return er;
@@ -5405,18 +5405,18 @@ function Fs() {
5405
5405
  if (Ue.minimumExponentSize === 0)
5406
5406
  Mt = Xt;
5407
5407
  else {
5408
- var Tn = Math.pow(10, Ue.scalingFactor), An = Math.pow(10, Ue.scalingFactor - 1);
5409
- for (Mt = Xt, zt = 0; Mt < An; )
5408
+ var An = Math.pow(10, Ue.scalingFactor), Sn = Math.pow(10, Ue.scalingFactor - 1);
5409
+ for (Mt = Xt, zt = 0; Mt < Sn; )
5410
5410
  Mt *= 10, zt -= 1;
5411
- for (; Mt > Tn; )
5411
+ for (; Mt > An; )
5412
5412
  Mt /= 10, zt += 1;
5413
5413
  }
5414
- var Sn = F(Mt, Ue.maximumFactionalPartSize), zr = function(re, Me) {
5414
+ var Dn = F(Mt, Ue.maximumFactionalPartSize), zr = function(re, Me) {
5415
5415
  var Ye = Math.abs(re).toFixed(Me);
5416
5416
  return ot !== "0" && (Ye = Ye.split("").map(function(Ce) {
5417
5417
  return Ce >= "0" && Ce <= "9" ? _[Ce.charCodeAt(0) - 48] : Ce;
5418
5418
  }).join("")), Ye;
5419
- }, ce = zr(Sn, Ue.maximumFactionalPartSize), Ge = ce.indexOf(".");
5419
+ }, ce = zr(Dn, Ue.maximumFactionalPartSize), Ge = ce.indexOf(".");
5420
5420
  for (Ge === -1 ? ce = ce + We : ce = ce.replace(".", We); ce.charAt(0) === ot; )
5421
5421
  ce = ce.substring(1);
5422
5422
  for (; ce.charAt(ce.length - 1) === ot; )
@@ -5424,7 +5424,7 @@ function Fs() {
5424
5424
  Ge = ce.indexOf(We);
5425
5425
  var Qt = Ue.minimumIntegerPartSize - Ge, Wr = Ue.minimumFactionalPartSize - (ce.length - Ge - 1);
5426
5426
  if (ce = (Qt > 0 ? new Array(Qt + 1).join(ot) : "") + ce, ce = ce + (Wr > 0 ? new Array(Wr + 1).join(ot) : ""), Ge = ce.indexOf(We), Ue.regularGrouping > 0)
5427
- for (var Dn = Math.floor((Ge - 1) / Ue.regularGrouping), gr = 1; gr <= Dn; gr++)
5427
+ for (var On = Math.floor((Ge - 1) / Ue.regularGrouping), gr = 1; gr <= On; gr++)
5428
5428
  ce = [ce.slice(0, Ge - gr * Ue.regularGrouping), Zt, ce.slice(Ge - gr * Ue.regularGrouping)].join("");
5429
5429
  else
5430
5430
  Ue.integerPartGroupingPositions.forEach(function(re) {
@@ -5439,7 +5439,7 @@ function Fs() {
5439
5439
  return ce = Ue.prefix + ce + Ue.suffix, ce;
5440
5440
  }
5441
5441
  }
5442
- function w(n, o) {
5442
+ function b(n, o) {
5443
5443
  if (!(typeof n > "u")) {
5444
5444
  if (n = F(n), typeof o > "u" ? o = 10 : o = F(o), o < 2 || o > 36)
5445
5445
  throw {
@@ -5528,7 +5528,7 @@ function Fs() {
5528
5528
  return l;
5529
5529
  }
5530
5530
  }
5531
- function we() {
5531
+ function be() {
5532
5532
  return Math.random();
5533
5533
  }
5534
5534
  function K(n) {
@@ -5543,7 +5543,7 @@ function Fs() {
5543
5543
  });
5544
5544
  o = l.length > 0;
5545
5545
  }
5546
- } else typeof n == "string" ? n.length > 0 && (o = !0) : b(n) ? n !== 0 && (o = !0) : n !== null && typeof n == "object" && !A(n) ? Object.keys(n).length > 0 && (o = !0) : typeof n == "boolean" && n === !0 && (o = !0);
5546
+ } else typeof n == "string" ? n.length > 0 && (o = !0) : w(n) ? n !== 0 && (o = !0) : n !== null && typeof n == "object" && !S(n) ? Object.keys(n).length > 0 && (o = !0) : typeof n == "boolean" && n === !0 && (o = !0);
5547
5547
  return o;
5548
5548
  }
5549
5549
  }
@@ -5557,7 +5557,7 @@ function Fs() {
5557
5557
  }
5558
5558
  async function G(n, o) {
5559
5559
  if (!(typeof n > "u")) {
5560
- for (var l = S(), g = 0; g < n.length; g++) {
5560
+ for (var l = D(), g = 0; g < n.length; g++) {
5561
5561
  var p = me(o, n[g], g, n), _ = await o.apply(this, p);
5562
5562
  typeof _ < "u" && l.push(_);
5563
5563
  }
@@ -5566,7 +5566,7 @@ function Fs() {
5566
5566
  }
5567
5567
  async function Ze(n, o) {
5568
5568
  if (!(typeof n > "u")) {
5569
- for (var l = S(), g = 0; g < n.length; g++) {
5569
+ for (var l = D(), g = 0; g < n.length; g++) {
5570
5570
  var p = n[g], _ = me(o, p, g, n), R = await o.apply(this, _);
5571
5571
  K(R) && l.push(p);
5572
5572
  }
@@ -5626,7 +5626,7 @@ function Fs() {
5626
5626
  }
5627
5627
  }
5628
5628
  function He(n) {
5629
- var o = S();
5629
+ var o = D();
5630
5630
  if (Array.isArray(n)) {
5631
5631
  var l = {};
5632
5632
  n.forEach(function(g) {
@@ -5635,28 +5635,28 @@ function Fs() {
5635
5635
  l[_] = !0;
5636
5636
  });
5637
5637
  }), o = He(l);
5638
- } else n !== null && typeof n == "object" && !A(n) && Object.keys(n).forEach((g) => o.push(g));
5638
+ } else n !== null && typeof n == "object" && !S(n) && Object.keys(n).forEach((g) => o.push(g));
5639
5639
  return o;
5640
5640
  }
5641
- function wt(n, o) {
5641
+ function bt(n, o) {
5642
5642
  var l;
5643
5643
  if (Array.isArray(n)) {
5644
- l = S();
5644
+ l = D();
5645
5645
  for (var g = 0; g < n.length; g++) {
5646
- var p = wt(n[g], o);
5646
+ var p = bt(n[g], o);
5647
5647
  typeof p < "u" && (Array.isArray(p) ? p.forEach((_) => l.push(_)) : l.push(p));
5648
5648
  }
5649
- } else n !== null && typeof n == "object" && !A(n) && (l = n[o]);
5649
+ } else n !== null && typeof n == "object" && !S(n) && (l = n[o]);
5650
5650
  return l;
5651
5651
  }
5652
5652
  function At(n, o) {
5653
- return typeof n > "u" ? o : typeof o > "u" ? n : (Array.isArray(n) || (n = S(n)), Array.isArray(o) || (o = [o]), n.concat(o));
5653
+ return typeof n > "u" ? o : typeof o > "u" ? n : (Array.isArray(n) || (n = D(n)), Array.isArray(o) || (o = [o]), n.concat(o));
5654
5654
  }
5655
5655
  function mr(n) {
5656
5656
  return !(typeof n > "u");
5657
5657
  }
5658
5658
  function St(n) {
5659
- var o = S();
5659
+ var o = D();
5660
5660
  if (Array.isArray(n))
5661
5661
  n.forEach(function(p) {
5662
5662
  o = At(o, St(p));
@@ -5689,7 +5689,7 @@ function Fs() {
5689
5689
  }
5690
5690
  }
5691
5691
  async function Jt(n, o) {
5692
- var l = S();
5692
+ var l = D();
5693
5693
  for (var g in n) {
5694
5694
  var p = me(o, n[g], g, n), _ = await o.apply(this, p);
5695
5695
  typeof _ < "u" && l.push(_);
@@ -5713,7 +5713,7 @@ function Fs() {
5713
5713
  }
5714
5714
  function mt(n) {
5715
5715
  if (n !== void 0)
5716
- return n === null ? "null" : b(n) ? "number" : typeof n == "string" ? "string" : typeof n == "boolean" ? "boolean" : Array.isArray(n) ? "array" : A(n) ? "function" : "object";
5716
+ return n === null ? "null" : w(n) ? "number" : typeof n == "string" ? "string" : typeof n == "boolean" ? "boolean" : Array.isArray(n) ? "array" : S(n) ? "function" : "object";
5717
5717
  }
5718
5718
  async function De(n, o) {
5719
5719
  if (!(typeof n > "u")) {
@@ -5761,7 +5761,7 @@ function Fs() {
5761
5761
  if (!(typeof n > "u")) {
5762
5762
  if (!Array.isArray(n) || n.length <= 1)
5763
5763
  return n;
5764
- for (var o = x(n) ? S() : [], l = 0; l < n.length; l++) {
5764
+ for (var o = x(n) ? D() : [], l = 0; l < n.length; l++) {
5765
5765
  for (var g = n[l], p = !1, _ = 0; _ < o.length; _++)
5766
5766
  if (pe(g, o[_])) {
5767
5767
  p = !0;
@@ -5800,8 +5800,8 @@ function Fs() {
5800
5800
  replace: Fe,
5801
5801
  split: Ee,
5802
5802
  join: v,
5803
- formatNumber: T,
5804
- formatBase: w,
5803
+ formatNumber: A,
5804
+ formatBase: b,
5805
5805
  number: N,
5806
5806
  floor: j,
5807
5807
  ceil: O,
@@ -5809,7 +5809,7 @@ function Fs() {
5809
5809
  abs: U,
5810
5810
  sqrt: J,
5811
5811
  power: ge,
5812
- random: we,
5812
+ random: be,
5813
5813
  boolean: K,
5814
5814
  not: ee,
5815
5815
  map: G,
@@ -5819,7 +5819,7 @@ function Fs() {
5819
5819
  foldLeft: Le,
5820
5820
  sift: y,
5821
5821
  keys: He,
5822
- lookup: wt,
5822
+ lookup: bt,
5823
5823
  append: At,
5824
5824
  exists: mr,
5825
5825
  spread: St,
@@ -5844,8 +5844,8 @@ function Fs() {
5844
5844
  }).call(this);
5845
5845
  }).call(this, typeof Kr < "u" ? Kr : typeof self < "u" ? self : typeof window < "u" ? window : {});
5846
5846
  }, { "./utils": 6 }], 3: [function(t, a, s) {
5847
- var i = t("./datetime"), c = t("./functions"), f = t("./utils"), b = t("./parser"), k = t("./signature"), M = (function() {
5848
- var S = f.isNumeric, x = f.isArrayOfStrings, A = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, E = ct(null);
5847
+ var i = t("./datetime"), c = t("./functions"), f = t("./utils"), w = t("./parser"), k = t("./signature"), M = (function() {
5848
+ var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, E = ct(null);
5849
5849
  async function L(u, h, y) {
5850
5850
  var n, o = y.lookup(Symbol.for("jsonata.__evaluate_entry"));
5851
5851
  switch (o && await o(u, h, y), u.type) {
@@ -5903,13 +5903,13 @@ function Fs() {
5903
5903
  n = await ee(u, h, y);
5904
5904
  break;
5905
5905
  case "transform":
5906
- n = we(u, h, y);
5906
+ n = be(u, h, y);
5907
5907
  break;
5908
5908
  }
5909
5909
  if (Object.prototype.hasOwnProperty.call(u, "predicate"))
5910
5910
  for (var l = 0; l < u.predicate.length; l++)
5911
5911
  n = await ve(u.predicate[l].expr, n, y);
5912
- u.type !== "path" && Object.prototype.hasOwnProperty.call(u, "group") && (n = await T(u.group, n, y));
5912
+ u.type !== "path" && Object.prototype.hasOwnProperty.call(u, "group") && (n = await A(u.group, n, y));
5913
5913
  var g = y.lookup(Symbol.for("jsonata.__evaluate_exit"));
5914
5914
  return g && await g(u, h, y, n), n && ae(n) && !n.tupleStream && (u.keepArray && (n.keepSingleton = !0), n.length === 0 ? n = void 0 : n.length === 1 && (n = n.keepSingleton ? n : n[0])), n;
5915
5915
  }
@@ -5928,7 +5928,7 @@ function Fs() {
5928
5928
  else
5929
5929
  for (o = I(), p = 0; p < g.length; p++)
5930
5930
  o.push(g[p]["@"]);
5931
- return u.keepSingletonArray && (Array.isArray(o) && o.cons && !o.sequence && (o = I(o)), o.keepSingleton = !0), u.hasOwnProperty("group") && (o = await T(u.group, l ? g : o, y)), o;
5931
+ return u.keepSingletonArray && (Array.isArray(o) && o.cons && !o.sequence && (o = I(o)), o.keepSingleton = !0), u.hasOwnProperty("group") && (o = await A(u.group, l ? g : o, y)), o;
5932
5932
  }
5933
5933
  function he(u, h) {
5934
5934
  var y = ct(u);
@@ -6011,7 +6011,7 @@ function Fs() {
6011
6011
  var l = h[o], g = l, p = y;
6012
6012
  h.tupleStream && (g = l["@"], p = he(y, l));
6013
6013
  var _ = await L(u, g, p);
6014
- S(_) && (_ = [_]), A(_) ? _.forEach(function(q) {
6014
+ D(_) && (_ = [_]), S(_) ? _.forEach(function(q) {
6015
6015
  var X = Math.floor(q);
6016
6016
  X < 0 && (X = h.length + X), X === o && n.push(l);
6017
6017
  }) : c.boolean(_) && n.push(l);
@@ -6067,7 +6067,7 @@ function Fs() {
6067
6067
  case "-":
6068
6068
  if (n = await L(u.expression, h, y), typeof n > "u")
6069
6069
  n = void 0;
6070
- else if (S(n))
6070
+ else if (D(n))
6071
6071
  n = -n;
6072
6072
  else
6073
6073
  throw {
@@ -6092,7 +6092,7 @@ function Fs() {
6092
6092
  });
6093
6093
  break;
6094
6094
  case "{":
6095
- n = await T(u, h, y);
6095
+ n = await A(u, h, y);
6096
6096
  break;
6097
6097
  }
6098
6098
  return n;
@@ -6128,13 +6128,13 @@ function Fs() {
6128
6128
  }
6129
6129
  function d(u, h, y) {
6130
6130
  var n;
6131
- if (typeof u < "u" && !S(u))
6131
+ if (typeof u < "u" && !D(u))
6132
6132
  throw {
6133
6133
  code: "T2001",
6134
6134
  stack: new Error().stack,
6135
6135
  value: u
6136
6136
  };
6137
- if (typeof h < "u" && !S(h))
6137
+ if (typeof h < "u" && !D(h))
6138
6138
  throw {
6139
6139
  code: "T2002",
6140
6140
  stack: new Error().stack,
@@ -6240,7 +6240,7 @@ function Fs() {
6240
6240
  var y, n = "", o = "";
6241
6241
  return typeof u < "u" && (n = c.string(u)), typeof h < "u" && (o = c.string(h)), y = n.concat(o), y;
6242
6242
  }
6243
- async function T(u, h, y) {
6243
+ async function A(u, h, y) {
6244
6244
  var n = {}, o = {}, l = !!(h && h.tupleStream);
6245
6245
  Array.isArray(h) || (h = I(h)), h.length === 0 && h.push(void 0);
6246
6246
  for (var g = 0; g < h.length; g++)
@@ -6272,7 +6272,7 @@ function Fs() {
6272
6272
  let ke = o[Se];
6273
6273
  var je = ke.data, ot = y;
6274
6274
  if (l) {
6275
- var We = w(ke.data);
6275
+ var We = b(ke.data);
6276
6276
  je = We["@"], delete We["@"], ot = he(y, We);
6277
6277
  }
6278
6278
  return y.isParallelCall = ze > 0, [Se, await L(u.lhs[ke.exprIndex][1], je, ot)];
@@ -6283,7 +6283,7 @@ function Fs() {
6283
6283
  }
6284
6284
  return n;
6285
6285
  }
6286
- function w(u) {
6286
+ function b(u) {
6287
6287
  if (!Array.isArray(u))
6288
6288
  return u;
6289
6289
  var h = {};
@@ -6410,7 +6410,7 @@ function Fs() {
6410
6410
  };
6411
6411
  return n = await c.sort.apply(p, [o, g]), n;
6412
6412
  }
6413
- function we(u, h, y) {
6413
+ function be(u, h, y) {
6414
6414
  var n = async function(o) {
6415
6415
  if (!(typeof o > "u")) {
6416
6416
  var l = y.lookup("clone");
@@ -6465,7 +6465,7 @@ function Fs() {
6465
6465
  };
6466
6466
  return Z(n, "<(oa):o>");
6467
6467
  }
6468
- var K = b("function($f, $g) { function($x){ $g($f($x)) } }");
6468
+ var K = w("function($f, $g) { function($x){ $g($f($x)) } }");
6469
6469
  async function ee(u, h, y) {
6470
6470
  var n, o = await L(u.lhs, h, y);
6471
6471
  if (u.rhs.type === "function")
@@ -6578,7 +6578,7 @@ function Fs() {
6578
6578
  token: u.procedure.steps[0].value
6579
6579
  };
6580
6580
  if (pe(p))
6581
- n = wt(p, o);
6581
+ n = bt(p, o);
6582
6582
  else if (p && p._jsonata_function === !0)
6583
6583
  n = At(p.implementation, o);
6584
6584
  else if (typeof p == "function")
@@ -6604,7 +6604,7 @@ function Fs() {
6604
6604
  n.bind(o.value, h[l]);
6605
6605
  }), typeof u.body == "function" ? y = await mr(u.body, n) : y = await L(u.body, u.input, n), y;
6606
6606
  }
6607
- function wt(u, h) {
6607
+ function bt(u, h) {
6608
6608
  var y = ct(u.environment), n = [];
6609
6609
  u.arguments.forEach(function(l, g) {
6610
6610
  var p = h[g];
@@ -6624,9 +6624,9 @@ function Fs() {
6624
6624
  y = y.map(function(g) {
6625
6625
  return "$" + g.trim();
6626
6626
  });
6627
- var n = "function(" + y.join(", ") + "){ _ }", o = b(n);
6627
+ var n = "function(" + y.join(", ") + "){ _ }", o = w(n);
6628
6628
  o.body = u;
6629
- var l = wt(o, h);
6629
+ var l = bt(o, h);
6630
6630
  return l;
6631
6631
  }
6632
6632
  async function mr(u, h) {
@@ -6653,7 +6653,7 @@ function Fs() {
6653
6653
  var y = this.input;
6654
6654
  typeof h < "u" && (y = h, Array.isArray(y) && !ae(y) && (y = I(y), y.outerWrapper = !0));
6655
6655
  try {
6656
- var n = b(u, !1);
6656
+ var n = w(u, !1);
6657
6657
  } catch (l) {
6658
6658
  throw mt(l), {
6659
6659
  stack: new Error().stack,
@@ -6818,7 +6818,7 @@ function Fs() {
6818
6818
  function De(u, h) {
6819
6819
  var y, n;
6820
6820
  try {
6821
- y = b(u, h && h.recover), n = y.errors, delete y.errors;
6821
+ y = w(u, h && h.recover), n = y.errors, delete y.errors;
6822
6822
  } catch (g) {
6823
6823
  throw mt(g), g;
6824
6824
  }
@@ -6866,7 +6866,7 @@ function Fs() {
6866
6866
  }
6867
6867
  };
6868
6868
  }
6869
- return De.parser = b, De;
6869
+ return De.parser = w, De;
6870
6870
  })();
6871
6871
  a.exports = M;
6872
6872
  }, { "./datetime": 1, "./functions": 2, "./parser": 4, "./signature": 5, "./utils": 6 }], 4: [function(t, a, s) {
@@ -6913,7 +6913,7 @@ function Fs() {
6913
6913
  // not an operator, but needed as a stop character for name tokens
6914
6914
  "~": 0
6915
6915
  // not an operator, but needed as a stop character for name tokens
6916
- }, b = {
6916
+ }, w = {
6917
6917
  // JSON string escape sequences - see json.org
6918
6918
  '"': '"',
6919
6919
  "\\": "\\",
@@ -6924,33 +6924,33 @@ function Fs() {
6924
6924
  `,
6925
6925
  r: "\r",
6926
6926
  t: " "
6927
- }, k = function(S) {
6928
- var x = 0, A = S.length, I = function(pe, H) {
6927
+ }, k = function(D) {
6928
+ var x = 0, S = D.length, I = function(pe, H) {
6929
6929
  var C = { type: pe, value: H, position: x };
6930
6930
  return C;
6931
6931
  }, ae = function() {
6932
6932
  for (var pe = x, H = 0, C, se, B = function(L) {
6933
- if (S.charAt(L) === "/" && H === 0) {
6934
- for (var W = 0; S.charAt(L - (W + 1)) === "\\"; )
6933
+ if (D.charAt(L) === "/" && H === 0) {
6934
+ for (var W = 0; D.charAt(L - (W + 1)) === "\\"; )
6935
6935
  W++;
6936
6936
  if (W % 2 === 0)
6937
6937
  return !0;
6938
6938
  }
6939
6939
  return !1;
6940
- }; x < A; ) {
6941
- var E = S.charAt(x);
6940
+ }; x < S; ) {
6941
+ var E = D.charAt(x);
6942
6942
  if (B(x)) {
6943
- if (C = S.substring(pe, x), C === "")
6943
+ if (C = D.substring(pe, x), C === "")
6944
6944
  throw {
6945
6945
  code: "S0301",
6946
6946
  stack: new Error().stack,
6947
6947
  position: x
6948
6948
  };
6949
- for (x++, E = S.charAt(x), pe = x; E === "i" || E === "m"; )
6950
- x++, E = S.charAt(x);
6951
- return se = S.substring(pe, x) + "g", new RegExp(C, se);
6949
+ for (x++, E = D.charAt(x), pe = x; E === "i" || E === "m"; )
6950
+ x++, E = D.charAt(x);
6951
+ return se = D.substring(pe, x) + "g", new RegExp(C, se);
6952
6952
  }
6953
- (E === "(" || E === "[" || E === "{") && S.charAt(x - 1) !== "\\" && H++, (E === ")" || E === "]" || E === "}") && S.charAt(x - 1) !== "\\" && H--, x++;
6953
+ (E === "(" || E === "[" || E === "{") && D.charAt(x - 1) !== "\\" && H++, (E === ")" || E === "]" || E === "}") && D.charAt(x - 1) !== "\\" && H--, x++;
6954
6954
  }
6955
6955
  throw {
6956
6956
  code: "S0302",
@@ -6958,52 +6958,52 @@ function Fs() {
6958
6958
  position: x
6959
6959
  };
6960
6960
  }, Q = function(pe) {
6961
- if (x >= A) return null;
6962
- for (var H = S.charAt(x); x < A && `
6961
+ if (x >= S) return null;
6962
+ for (var H = D.charAt(x); x < S && `
6963
6963
  \r\v`.indexOf(H) > -1; )
6964
- x++, H = S.charAt(x);
6965
- if (H === "/" && S.charAt(x + 1) === "*") {
6964
+ x++, H = D.charAt(x);
6965
+ if (H === "/" && D.charAt(x + 1) === "*") {
6966
6966
  var C = x;
6967
- for (x += 2, H = S.charAt(x); !(H === "*" && S.charAt(x + 1) === "/"); )
6968
- if (H = S.charAt(++x), x >= A)
6967
+ for (x += 2, H = D.charAt(x); !(H === "*" && D.charAt(x + 1) === "/"); )
6968
+ if (H = D.charAt(++x), x >= S)
6969
6969
  throw {
6970
6970
  code: "S0106",
6971
6971
  stack: new Error().stack,
6972
6972
  position: C
6973
6973
  };
6974
- return x += 2, H = S.charAt(x), Q(pe);
6974
+ return x += 2, H = D.charAt(x), Q(pe);
6975
6975
  }
6976
6976
  if (pe !== !0 && H === "/")
6977
6977
  return x++, I("regex", ae());
6978
- if (H === "." && S.charAt(x + 1) === ".")
6978
+ if (H === "." && D.charAt(x + 1) === ".")
6979
6979
  return x += 2, I("operator", "..");
6980
- if (H === ":" && S.charAt(x + 1) === "=")
6980
+ if (H === ":" && D.charAt(x + 1) === "=")
6981
6981
  return x += 2, I("operator", ":=");
6982
- if (H === "!" && S.charAt(x + 1) === "=")
6982
+ if (H === "!" && D.charAt(x + 1) === "=")
6983
6983
  return x += 2, I("operator", "!=");
6984
- if (H === ">" && S.charAt(x + 1) === "=")
6984
+ if (H === ">" && D.charAt(x + 1) === "=")
6985
6985
  return x += 2, I("operator", ">=");
6986
- if (H === "<" && S.charAt(x + 1) === "=")
6986
+ if (H === "<" && D.charAt(x + 1) === "=")
6987
6987
  return x += 2, I("operator", "<=");
6988
- if (H === "*" && S.charAt(x + 1) === "*")
6988
+ if (H === "*" && D.charAt(x + 1) === "*")
6989
6989
  return x += 2, I("operator", "**");
6990
- if (H === "~" && S.charAt(x + 1) === ">")
6990
+ if (H === "~" && D.charAt(x + 1) === ">")
6991
6991
  return x += 2, I("operator", "~>");
6992
- if (H === "?" && S.charAt(x + 1) === ":")
6992
+ if (H === "?" && D.charAt(x + 1) === ":")
6993
6993
  return x += 2, I("operator", "?:");
6994
- if (H === "?" && S.charAt(x + 1) === "?")
6994
+ if (H === "?" && D.charAt(x + 1) === "?")
6995
6995
  return x += 2, I("operator", "??");
6996
6996
  if (Object.prototype.hasOwnProperty.call(f, H))
6997
6997
  return x++, I("operator", H);
6998
6998
  if (H === '"' || H === "'") {
6999
6999
  var se = H;
7000
7000
  x++;
7001
- for (var B = ""; x < A; ) {
7002
- if (H = S.charAt(x), H === "\\")
7003
- if (x++, H = S.charAt(x), Object.prototype.hasOwnProperty.call(b, H))
7004
- B += b[H];
7001
+ for (var B = ""; x < S; ) {
7002
+ if (H = D.charAt(x), H === "\\")
7003
+ if (x++, H = D.charAt(x), Object.prototype.hasOwnProperty.call(w, H))
7004
+ B += w[H];
7005
7005
  else if (H === "u") {
7006
- var E = S.substr(x + 1, 4);
7006
+ var E = D.substr(x + 1, 4);
7007
7007
  if (/^[0-9a-fA-F]+$/.test(E)) {
7008
7008
  var L = parseInt(E, 16);
7009
7009
  B += String.fromCharCode(L), x += 4;
@@ -7033,7 +7033,7 @@ function Fs() {
7033
7033
  position: x
7034
7034
  };
7035
7035
  }
7036
- var W = /^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/, he = W.exec(S.substring(x));
7036
+ var W = /^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/, he = W.exec(D.substring(x));
7037
7037
  if (he !== null) {
7038
7038
  var xe = parseFloat(he[0]);
7039
7039
  if (!isNaN(xe) && isFinite(xe))
@@ -7048,21 +7048,21 @@ function Fs() {
7048
7048
  var Te;
7049
7049
  if (H === "`") {
7050
7050
  x++;
7051
- var Ae = S.indexOf("`", x);
7051
+ var Ae = D.indexOf("`", x);
7052
7052
  if (Ae !== -1)
7053
- return Te = S.substring(x, Ae), x = Ae + 1, I("name", Te);
7054
- throw x = A, {
7053
+ return Te = D.substring(x, Ae), x = Ae + 1, I("name", Te);
7054
+ throw x = S, {
7055
7055
  code: "S0105",
7056
7056
  stack: new Error().stack,
7057
7057
  position: x
7058
7058
  };
7059
7059
  }
7060
7060
  for (var ve = x, Re; ; )
7061
- if (Re = S.charAt(ve), ve === A || `
7061
+ if (Re = D.charAt(ve), ve === S || `
7062
7062
  \r\v`.indexOf(Re) > -1 || Object.prototype.hasOwnProperty.call(f, Re)) {
7063
- if (S.charAt(x) === "$")
7064
- return Te = S.substring(x + 1, ve), x = ve, I("variable", Te);
7065
- switch (Te = S.substring(x, ve), x = ve, Te) {
7063
+ if (D.charAt(x) === "$")
7064
+ return Te = D.substring(x + 1, ve), x = ve, I("variable", Te);
7065
+ switch (Te = D.substring(x, ve), x = ve, Te) {
7066
7066
  case "or":
7067
7067
  case "in":
7068
7068
  case "and":
@@ -7074,16 +7074,16 @@ function Fs() {
7074
7074
  case "null":
7075
7075
  return I("value", null);
7076
7076
  default:
7077
- return x === A && Te === "" ? null : I("name", Te);
7077
+ return x === S && Te === "" ? null : I("name", Te);
7078
7078
  }
7079
7079
  } else
7080
7080
  ve++;
7081
7081
  };
7082
7082
  return Q;
7083
- }, M = function(S, x) {
7084
- var A, I, ae = {}, Q = [], pe = function() {
7083
+ }, M = function(D, x) {
7084
+ var S, I, ae = {}, Q = [], pe = function() {
7085
7085
  var d = [];
7086
- A.id !== "(end)" && d.push({ type: A.type, value: A.value, position: A.position });
7086
+ S.id !== "(end)" && d.push({ type: S.type, value: S.value, position: S.position });
7087
7087
  for (var m = I(); m !== null; )
7088
7088
  d.push(m), m = I();
7089
7089
  return d;
@@ -7105,32 +7105,32 @@ function Fs() {
7105
7105
  if (x) {
7106
7106
  d.remaining = pe(), Q.push(d);
7107
7107
  var m = ae["(error)"];
7108
- return A = Object.create(m), A.error = d, A.type = "(error)", A;
7108
+ return S = Object.create(m), S.error = d, S.type = "(error)", S;
7109
7109
  } else
7110
7110
  throw d.stack = new Error().stack, d;
7111
7111
  }, B = function(d, m) {
7112
- if (d && A.id !== d) {
7112
+ if (d && S.id !== d) {
7113
7113
  var V;
7114
- A.id === "(end)" ? V = "S0203" : V = "S0202";
7114
+ S.id === "(end)" ? V = "S0203" : V = "S0202";
7115
7115
  var de = {
7116
7116
  code: V,
7117
- position: A.position,
7118
- token: A.value,
7117
+ position: S.position,
7118
+ token: S.value,
7119
7119
  value: d
7120
7120
  };
7121
7121
  return se(de);
7122
7122
  }
7123
7123
  var Pe = I(m);
7124
7124
  if (Pe === null)
7125
- return A = ae["(end)"], A.position = S.length, A;
7126
- var Ee = Pe.value, v = Pe.type, T;
7125
+ return S = ae["(end)"], S.position = D.length, S;
7126
+ var Ee = Pe.value, v = Pe.type, A;
7127
7127
  switch (v) {
7128
7128
  case "name":
7129
7129
  case "variable":
7130
- T = ae["(name)"];
7130
+ A = ae["(name)"];
7131
7131
  break;
7132
7132
  case "operator":
7133
- if (T = ae[Ee], !T)
7133
+ if (A = ae[Ee], !A)
7134
7134
  return se({
7135
7135
  code: "S0204",
7136
7136
  stack: new Error().stack,
@@ -7141,10 +7141,10 @@ function Fs() {
7141
7141
  case "string":
7142
7142
  case "number":
7143
7143
  case "value":
7144
- T = ae["(literal)"];
7144
+ A = ae["(literal)"];
7145
7145
  break;
7146
7146
  case "regex":
7147
- v = "regex", T = ae["(regex)"];
7147
+ v = "regex", A = ae["(regex)"];
7148
7148
  break;
7149
7149
  /* istanbul ignore next */
7150
7150
  default:
@@ -7155,11 +7155,11 @@ function Fs() {
7155
7155
  token: Ee
7156
7156
  });
7157
7157
  }
7158
- return A = Object.create(T), A.value = Ee, A.type = v, A.position = Pe.position, A;
7158
+ return S = Object.create(A), S.value = Ee, S.type = v, S.position = Pe.position, S;
7159
7159
  }, E = function(d) {
7160
- var m, V = A;
7161
- for (B(null, !0), m = V.nud(); d < A.lbp; )
7162
- V = A, B(), m = V.led(m);
7160
+ var m, V = S;
7161
+ for (B(null, !0), m = V.nud(); d < S.lbp; )
7162
+ V = S, B(), m = V.led(m);
7163
7163
  return m;
7164
7164
  }, L = function(d) {
7165
7165
  var m = C(d, 0);
@@ -7188,7 +7188,7 @@ function Fs() {
7188
7188
  arguments: [d]
7189
7189
  }, this.then = d, this.else = E(0), this;
7190
7190
  }), he("(error)", 10, function(d) {
7191
- return this.lhs = d, this.error = A.error, this.remaining = pe(), this.type = "error", this;
7191
+ return this.lhs = d, this.error = S.error, this.remaining = pe(), this.type = "error", this;
7192
7192
  }), xe("*", function() {
7193
7193
  return this.type = "wildcard", this;
7194
7194
  }), xe("**", function() {
@@ -7196,8 +7196,8 @@ function Fs() {
7196
7196
  }), xe("%", function() {
7197
7197
  return this.type = "parent", this;
7198
7198
  }), W("(", f["("], function(d) {
7199
- if (this.procedure = d, this.type = "function", this.arguments = [], A.id !== ")")
7200
- for (; A.type === "operator" && A.id === "?" ? (this.type = "partial", this.arguments.push(A), B("?")) : this.arguments.push(E(0)), A.id === ","; )
7199
+ if (this.procedure = d, this.type = "function", this.arguments = [], S.id !== ")")
7200
+ for (; S.type === "operator" && S.id === "?" ? (this.type = "partial", this.arguments.push(S), B("?")) : this.arguments.push(E(0)), S.id === ","; )
7201
7201
  B(",");
7202
7202
  if (B(")", !0), d.type === "name" && (d.value === "function" || d.value === "λ")) {
7203
7203
  if (this.arguments.forEach(function(Ee, v) {
@@ -7209,8 +7209,8 @@ function Fs() {
7209
7209
  token: Ee.value,
7210
7210
  value: v + 1
7211
7211
  });
7212
- }), this.type = "lambda", A.id === "<") {
7213
- for (var m = A.position, V = 1, de = "<"; V > 0 && A.id !== "{" && A.id !== "(end)"; ) {
7212
+ }), this.type = "lambda", S.id === "<") {
7213
+ for (var m = S.position, V = 1, de = "<"; V > 0 && S.id !== "{" && S.id !== "(end)"; ) {
7214
7214
  var Pe = B();
7215
7215
  Pe.id === ">" ? V-- : Pe.id === "<" && V++, de += Pe.value;
7216
7216
  }
@@ -7225,25 +7225,25 @@ function Fs() {
7225
7225
  }
7226
7226
  return this;
7227
7227
  }), xe("(", function() {
7228
- for (var d = []; A.id !== ")" && (d.push(E(0)), A.id === ";"); )
7228
+ for (var d = []; S.id !== ")" && (d.push(E(0)), S.id === ";"); )
7229
7229
  B(";");
7230
7230
  return B(")", !0), this.type = "block", this.expressions = d, this;
7231
7231
  }), xe("[", function() {
7232
7232
  var d = [];
7233
- if (A.id !== "]")
7233
+ if (S.id !== "]")
7234
7234
  for (; ; ) {
7235
7235
  var m = E(0);
7236
- if (A.id === "..") {
7237
- var V = { type: "binary", value: "..", position: A.position, lhs: m };
7236
+ if (S.id === "..") {
7237
+ var V = { type: "binary", value: "..", position: S.position, lhs: m };
7238
7238
  B(".."), V.rhs = E(0), m = V;
7239
7239
  }
7240
- if (d.push(m), A.id !== ",")
7240
+ if (d.push(m), S.id !== ",")
7241
7241
  break;
7242
7242
  B(",");
7243
7243
  }
7244
7244
  return B("]", !0), this.expressions = d, this.type = "unary", this;
7245
7245
  }), W("[", f["["], function(d) {
7246
- if (A.id === "]") {
7246
+ if (S.id === "]") {
7247
7247
  for (var m = d; m && m.type === "binary" && m.value === "["; )
7248
7248
  m = m.lhs;
7249
7249
  return m.keepArray = !0, B("]"), d;
@@ -7255,7 +7255,7 @@ function Fs() {
7255
7255
  var V = {
7256
7256
  descending: !1
7257
7257
  };
7258
- if (A.id === "<" ? B("<") : A.id === ">" && (V.descending = !0, B(">")), V.expression = E(0), m.push(V), A.id !== ",")
7258
+ if (S.id === "<" ? B("<") : S.id === ">" && (V.descending = !0, B(">")), V.expression = E(0), m.push(V), S.id !== ",")
7259
7259
  break;
7260
7260
  B(",");
7261
7261
  }
@@ -7263,12 +7263,12 @@ function Fs() {
7263
7263
  });
7264
7264
  var Te = function(d) {
7265
7265
  var m = [];
7266
- if (A.id !== "}")
7266
+ if (S.id !== "}")
7267
7267
  for (; ; ) {
7268
7268
  var V = E(0);
7269
7269
  B(":");
7270
7270
  var de = E(0);
7271
- if (m.push([V, de]), A.id !== ",")
7271
+ if (m.push([V, de]), S.id !== ",")
7272
7272
  break;
7273
7273
  B(",");
7274
7274
  }
@@ -7296,11 +7296,11 @@ function Fs() {
7296
7296
  token: "#"
7297
7297
  }) : (this.type = "binary", this);
7298
7298
  }), W("?", f["?"], function(d) {
7299
- return this.type = "condition", this.condition = d, this.then = E(0), A.id === ":" && (B(":"), this.else = E(0)), this;
7299
+ return this.type = "condition", this.condition = d, this.then = E(0), S.id === ":" && (B(":"), this.else = E(0)), this;
7300
7300
  }), W("?:", f["?:"], function(d) {
7301
7301
  return this.type = "condition", this.condition = d, this.then = d, this.else = E(0), this;
7302
7302
  }), xe("|", function() {
7303
- return this.type = "transform", this.pattern = E(0), B("|"), this.update = E(0), A.id === "," && (B(","), this.delete = E(0)), B("|"), this;
7303
+ return this.type = "transform", this.pattern = E(0), B("|"), this.update = E(0), S.id === "," && (B(","), this.delete = E(0)), B("|"), this;
7304
7304
  });
7305
7305
  var Ae = function(d) {
7306
7306
  var m;
@@ -7391,18 +7391,18 @@ function Fs() {
7391
7391
  break;
7392
7392
  case "[":
7393
7393
  m = ie(d.lhs);
7394
- var v = m, T = "predicate";
7395
- if (m.type === "path" && (v = m.steps[m.steps.length - 1], T = "stages"), typeof v.group < "u")
7394
+ var v = m, A = "predicate";
7395
+ if (m.type === "path" && (v = m.steps[m.steps.length - 1], A = "stages"), typeof v.group < "u")
7396
7396
  throw {
7397
7397
  code: "S0209",
7398
7398
  stack: new Error().stack,
7399
7399
  position: d.position
7400
7400
  };
7401
- typeof v[T] > "u" && (v[T] = []);
7402
- var w = ie(d.rhs);
7403
- typeof w.seekingParent < "u" && (w.seekingParent.forEach((F) => {
7401
+ typeof v[A] > "u" && (v[A] = []);
7402
+ var b = ie(d.rhs);
7403
+ typeof b.seekingParent < "u" && (b.seekingParent.forEach((F) => {
7404
7404
  F.level === 1 ? _e(v, F) : F.level--;
7405
- }), fe(v, w)), v[T].push({ type: "filter", expr: w, position: d.position });
7405
+ }), fe(v, b)), v[A].push({ type: "filter", expr: b, position: d.position });
7406
7406
  break;
7407
7407
  case "{":
7408
7408
  if (m = ie(d.lhs), typeof m.group < "u")
@@ -7542,13 +7542,13 @@ function Fs() {
7542
7542
  }
7543
7543
  return d.keepArray && (m.keepArray = !0), m;
7544
7544
  };
7545
- I = k(S), B();
7545
+ I = k(D), B();
7546
7546
  var Fe = E(0);
7547
- if (A.id !== "(end)") {
7547
+ if (S.id !== "(end)") {
7548
7548
  var st = {
7549
7549
  code: "S0201",
7550
- position: A.position,
7551
- token: A.value
7550
+ position: S.position,
7551
+ token: S.value
7552
7552
  };
7553
7553
  se(st);
7554
7554
  }
@@ -7574,13 +7574,13 @@ function Fs() {
7574
7574
  o: "objects",
7575
7575
  s: "strings"
7576
7576
  };
7577
- function b(k) {
7578
- for (var M = 1, S = [], x = {}, A = x; M < k.length; ) {
7577
+ function w(k) {
7578
+ for (var M = 1, D = [], x = {}, S = x; M < k.length; ) {
7579
7579
  var I = k.charAt(M);
7580
7580
  if (I === ":")
7581
7581
  break;
7582
7582
  var ae = function() {
7583
- S.push(x), A = x, x = {};
7583
+ D.push(x), S = x, x = {};
7584
7584
  }, Q = function(W, he, xe, Te) {
7585
7585
  for (var Ae = 1, ve = he; ve < W.length; )
7586
7586
  if (ve++, I = W.charAt(ve), I === Te) {
@@ -7614,12 +7614,12 @@ function Fs() {
7614
7614
  x.regex = "[asnblfom]", x.type = I, ae();
7615
7615
  break;
7616
7616
  case "-":
7617
- A.context = !0, A.contextRegex = new RegExp(A.regex), A.regex += "?";
7617
+ S.context = !0, S.contextRegex = new RegExp(S.regex), S.regex += "?";
7618
7618
  break;
7619
7619
  case "?":
7620
7620
  // optional param
7621
7621
  case "+":
7622
- A.regex += I;
7622
+ S.regex += I;
7623
7623
  break;
7624
7624
  case "(":
7625
7625
  var pe = Q(k, M, "(", ")"), H = k.substring(M + 1, pe);
@@ -7635,21 +7635,21 @@ function Fs() {
7635
7635
  x.type = "(" + H + ")", M = pe, ae();
7636
7636
  break;
7637
7637
  case "<":
7638
- if (A.type === "a" || A.type === "f") {
7638
+ if (S.type === "a" || S.type === "f") {
7639
7639
  var C = Q(k, M, "<", ">");
7640
- A.subtype = k.substring(M + 1, C), M = C;
7640
+ S.subtype = k.substring(M + 1, C), M = C;
7641
7641
  } else
7642
7642
  throw {
7643
7643
  code: "S0401",
7644
7644
  stack: new Error().stack,
7645
- value: A.type,
7645
+ value: S.type,
7646
7646
  offset: M
7647
7647
  };
7648
7648
  break;
7649
7649
  }
7650
7650
  M++;
7651
7651
  }
7652
- var se = "^" + S.map(function(W) {
7652
+ var se = "^" + D.map(function(W) {
7653
7653
  return "(" + W.regex + ")";
7654
7654
  }).join("") + "$", B = new RegExp(se), E = function(W) {
7655
7655
  var he;
@@ -7677,8 +7677,8 @@ function Fs() {
7677
7677
  }
7678
7678
  return he;
7679
7679
  }, L = function(W, he) {
7680
- for (var xe = "^", Te = 0, Ae = 0; Ae < S.length; Ae++) {
7681
- xe += S[Ae].regex;
7680
+ for (var xe = "^", Te = 0, Ae = 0; Ae < D.length; Ae++) {
7681
+ xe += D[Ae].regex;
7682
7682
  var ve = he.match(xe);
7683
7683
  if (ve === null)
7684
7684
  throw {
@@ -7706,7 +7706,7 @@ function Fs() {
7706
7706
  var Te = B.exec(xe);
7707
7707
  if (Te) {
7708
7708
  var Ae = [], ve = 0;
7709
- return S.forEach(function(Re, et) {
7709
+ return D.forEach(function(Re, et) {
7710
7710
  var _e = W[ve], fe = Te[et + 1];
7711
7711
  if (fe === "")
7712
7712
  if (Re.context && Re.contextRegex) {
@@ -7765,7 +7765,7 @@ function Fs() {
7765
7765
  }
7766
7766
  };
7767
7767
  }
7768
- return b;
7768
+ return w;
7769
7769
  })();
7770
7770
  a.exports = c;
7771
7771
  }, { "./utils": 6 }], 6: [function(t, a, s) {
@@ -7786,7 +7786,7 @@ function Fs() {
7786
7786
  return typeof B != "string";
7787
7787
  }).length === 0), se;
7788
7788
  }
7789
- function b(C) {
7789
+ function w(C) {
7790
7790
  var se = !1;
7791
7791
  return Array.isArray(C) && (se = C.filter(function(B) {
7792
7792
  return !c(B);
@@ -7799,14 +7799,14 @@ function Fs() {
7799
7799
  function M(C) {
7800
7800
  return C.sequence === !0 && Array.isArray(C);
7801
7801
  }
7802
- function S(C) {
7802
+ function D(C) {
7803
7803
  return C && (C._jsonata_function === !0 || C._jsonata_lambda === !0) || typeof C == "function";
7804
7804
  }
7805
7805
  function x(C) {
7806
7806
  var se = typeof C.arity == "number" ? C.arity : typeof C.implementation == "function" ? C.implementation.length : typeof C.length == "number" ? C.length : C.arguments.length;
7807
7807
  return se;
7808
7808
  }
7809
- function A(C) {
7809
+ function S(C) {
7810
7810
  return C && C._jsonata_lambda === !0;
7811
7811
  }
7812
7812
  var I = (typeof Symbol == "function" ? Symbol : {}).iterator || "@@iterator";
@@ -7852,11 +7852,11 @@ function Fs() {
7852
7852
  return {
7853
7853
  isNumeric: c,
7854
7854
  isArrayOfStrings: f,
7855
- isArrayOfNumbers: b,
7855
+ isArrayOfNumbers: w,
7856
7856
  createSequence: k,
7857
7857
  isSequence: M,
7858
- isFunction: S,
7859
- isLambda: A,
7858
+ isFunction: D,
7859
+ isLambda: S,
7860
7860
  isIterable: ae,
7861
7861
  getFunctionArity: x,
7862
7862
  isDeepEqual: Q,
@@ -7869,21 +7869,21 @@ function Fs() {
7869
7869
  });
7870
7870
  })(Cr)), Cr.exports;
7871
7871
  }
7872
- var Us = Fs();
7873
- const $s = /* @__PURE__ */ js(Us), xn = D.object({
7874
- name: D.literal("transform-data"),
7875
- sourceData: D.any().optional(),
7876
- expression: D.string().min(1, "JSONata expression is required")
7872
+ var $s = Us();
7873
+ const Ls = /* @__PURE__ */ Fs($s), xn = T.object({
7874
+ name: T.literal("transform-data"),
7875
+ sourceData: T.any().optional(),
7876
+ expression: T.string().min(1, "JSONata expression is required")
7877
7877
  });
7878
- function Ls(r) {
7878
+ function Bs(r) {
7879
7879
  return xn.parse(r);
7880
7880
  }
7881
- async function Bs(r) {
7881
+ async function Zs(r) {
7882
7882
  try {
7883
7883
  const { sourceData: e, expression: t } = r, a = e ?? {};
7884
7884
  let s;
7885
7885
  try {
7886
- s = $s(t);
7886
+ s = Ls(t);
7887
7887
  } catch (c) {
7888
7888
  throw new Error(
7889
7889
  `Invalid JSONata expression: ${c instanceof Error ? c.message : "Unknown error"}`
@@ -7893,7 +7893,7 @@ async function Bs(r) {
7893
7893
  try {
7894
7894
  i = await s.evaluate(a);
7895
7895
  } catch (c) {
7896
- throw new Error(
7896
+ throw console.error("JSONata evaluation failed:", c), new Error(
7897
7897
  `JSONata evaluation failed: ${c instanceof Error ? c.message : "Unknown error"}`
7898
7898
  );
7899
7899
  }
@@ -7908,20 +7908,20 @@ async function Bs(r) {
7908
7908
  };
7909
7909
  }
7910
7910
  }
7911
- const _n = D.object({
7912
- name: D.literal("export-data"),
7913
- data: D.any(),
7914
- format: D.enum(["json", "csv", "xlsx"]),
7915
- filename: D.string().optional(),
7916
- csvOptions: D.object({
7917
- delimiter: D.string().optional(),
7918
- includeHeaders: D.boolean().optional()
7911
+ const _n = T.object({
7912
+ name: T.literal("export-data"),
7913
+ data: T.any(),
7914
+ format: T.enum(["json", "csv", "xlsx"]),
7915
+ filename: T.string().optional(),
7916
+ csvOptions: T.object({
7917
+ delimiter: T.string().optional(),
7918
+ includeHeaders: T.boolean().optional()
7919
7919
  }).optional()
7920
7920
  });
7921
- function Zs(r) {
7921
+ function zs(r) {
7922
7922
  return _n.parse(r);
7923
7923
  }
7924
- async function zs(r) {
7924
+ async function Ws(r) {
7925
7925
  try {
7926
7926
  const { data: e, format: t, filename: a, csvOptions: s } = r;
7927
7927
  console.log("[ExportDataBlock] Sending export request to background:", t);
@@ -7949,7 +7949,57 @@ async function zs(r) {
7949
7949
  };
7950
7950
  }
7951
7951
  }
7952
- const ei = {
7952
+ const En = T.object({
7953
+ name: T.literal("network-catch"),
7954
+ urlPattern: T.string().optional(),
7955
+ method: T.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
7956
+ status: T.union([
7957
+ T.number(),
7958
+ T.object({
7959
+ min: T.number().optional(),
7960
+ max: T.number().optional()
7961
+ })
7962
+ ]).optional(),
7963
+ mimeType: T.string().optional(),
7964
+ waitForRequest: T.boolean().optional(),
7965
+ waitTimeout: T.number().min(0).optional(),
7966
+ returnAll: T.boolean().optional(),
7967
+ includeHeaders: T.boolean().optional()
7968
+ });
7969
+ function Vs(r) {
7970
+ return En.parse(r);
7971
+ }
7972
+ async function qs(r) {
7973
+ try {
7974
+ console.log("[NetworkCatchBlock] Fetching network requests with pattern:", r.urlPattern);
7975
+ const e = await chrome.runtime.sendMessage({
7976
+ type: "NETWORK_CATCH",
7977
+ data: {
7978
+ urlPattern: r.urlPattern,
7979
+ method: r.method,
7980
+ status: r.status,
7981
+ mimeType: r.mimeType,
7982
+ waitForRequest: r.waitForRequest || !1,
7983
+ waitTimeout: r.waitTimeout || 5e3,
7984
+ returnAll: r.returnAll || !1,
7985
+ includeHeaders: r.includeHeaders || !1
7986
+ }
7987
+ });
7988
+ return e.$isError ? {
7989
+ hasError: !0,
7990
+ message: e.message || "Failed to fetch network data",
7991
+ data: void 0
7992
+ } : (console.log("[NetworkCatchBlock] Retrieved network data:", e.data), {
7993
+ data: e.data
7994
+ });
7995
+ } catch (e) {
7996
+ return console.error("[NetworkCatchBlock] Error:", e), {
7997
+ hasError: !0,
7998
+ message: e instanceof Error ? e.message : "Failed to fetch network data"
7999
+ };
8000
+ }
8001
+ }
8002
+ const ni = {
7953
8003
  "get-text": sn,
7954
8004
  "attribute-value": cn,
7955
8005
  "get-value-form": un,
@@ -7962,89 +8012,94 @@ const ei = {
7962
8012
  "wait-for-condition": yn,
7963
8013
  navigate: gn,
7964
8014
  "save-assets": vn,
7965
- "get-element-data": bn,
7966
- scroll: wn,
8015
+ "get-element-data": wn,
8016
+ scroll: bn,
7967
8017
  "ai-parse-data": an,
7968
8018
  "fetch-api": kn,
7969
8019
  "transform-data": xn,
7970
- "export-data": _n
8020
+ "export-data": _n,
8021
+ "network-catch": En
7971
8022
  };
7972
- class ti {
8023
+ class ai {
7973
8024
  // Implementation
7974
8025
  static async executeBlock(e) {
7975
8026
  try {
7976
8027
  switch (e.name) {
7977
8028
  case "get-text": {
7978
- const t = qa(e);
7979
- return await Ha(t);
8029
+ const t = Ha(e);
8030
+ return await Ga(t);
7980
8031
  }
7981
8032
  case "attribute-value": {
7982
- const t = Ya(e);
7983
- return await Ka(t);
8033
+ const t = Ka(e);
8034
+ return await Ja(t);
7984
8035
  }
7985
8036
  case "get-value-form": {
7986
- const t = Ja(e);
7987
- return await Xa(t);
8037
+ const t = Xa(e);
8038
+ return await Qa(t);
7988
8039
  }
7989
8040
  case "set-value-form": {
7990
- const t = es(e);
7991
- return await ts(t);
8041
+ const t = ts(e);
8042
+ return await rs(t);
7992
8043
  }
7993
8044
  case "clear-value-form": {
7994
- const t = ns(e);
7995
- return await as(t);
8045
+ const t = as(e);
8046
+ return await ss(t);
7996
8047
  }
7997
8048
  case "element-exists": {
7998
- const t = is(e);
7999
- return await os(t);
8049
+ const t = os(e);
8050
+ return await cs(t);
8000
8051
  }
8001
8052
  case "event-click": {
8002
- const t = cs(e);
8003
- return await us(t);
8053
+ const t = us(e);
8054
+ return await ls(t);
8004
8055
  }
8005
8056
  case "keypress": {
8006
- const t = hs(e);
8007
- return await ps(t);
8057
+ const t = ps(e);
8058
+ return await ms(t);
8008
8059
  }
8009
8060
  case "wait": {
8010
- const t = ys(e);
8011
- return await gs(t);
8061
+ const t = gs(e);
8062
+ return await vs(t);
8012
8063
  }
8013
8064
  case "wait-for-condition": {
8014
- const t = vs(e);
8065
+ const t = ws(e);
8015
8066
  return await bs(t);
8016
8067
  }
8017
8068
  case "navigate": {
8018
- const t = ws(e);
8019
- return await ks(t);
8069
+ const t = ks(e);
8070
+ return await xs(t);
8020
8071
  }
8021
8072
  case "save-assets": {
8022
- const t = xs(e);
8023
- return await _s(t);
8073
+ const t = _s(e);
8074
+ return await Es(t);
8024
8075
  }
8025
8076
  case "get-element-data": {
8026
- const t = Ts(e);
8027
- return await As(t);
8077
+ const t = As(e);
8078
+ return await Ss(t);
8028
8079
  }
8029
8080
  case "scroll": {
8030
- const t = Ds(e);
8031
- return await Os(t);
8081
+ const t = Os(e);
8082
+ return await Ps(t);
8032
8083
  }
8033
8084
  case "ai-parse-data": {
8034
- const t = Ua(e);
8035
- return await $a(t);
8085
+ const t = $a(e);
8086
+ return await La(t);
8036
8087
  }
8037
8088
  case "fetch-api": {
8038
- const t = Ms(e);
8039
- return await Is(t);
8089
+ const t = Is(e);
8090
+ return await js(t);
8040
8091
  }
8041
8092
  case "transform-data": {
8042
- const t = Ls(e);
8043
- return await Bs(t);
8093
+ const t = Bs(e);
8094
+ return await Zs(t);
8044
8095
  }
8045
8096
  case "export-data": {
8046
- const t = Zs(e);
8047
- return await zs(t);
8097
+ const t = zs(e);
8098
+ return await Ws(t);
8099
+ }
8100
+ case "network-catch": {
8101
+ const t = Vs(e);
8102
+ return await qs(t);
8048
8103
  }
8049
8104
  default:
8050
8105
  return {
@@ -8062,20 +8117,20 @@ class ti {
8062
8117
  }
8063
8118
  }
8064
8119
  }
8065
- class ri {
8120
+ class si {
8066
8121
  constructor() {
8067
8122
  ue(this, "expr");
8068
8123
  ue(this, "json");
8069
8124
  }
8070
8125
  }
8071
- class ni {
8126
+ class ii {
8072
8127
  constructor() {
8073
8128
  ue(this, "template");
8074
8129
  ue(this, "valueFrom");
8075
8130
  ue(this, "default");
8076
8131
  }
8077
8132
  }
8078
- class ai {
8133
+ class oi {
8079
8134
  constructor() {
8080
8135
  ue(this, "id");
8081
8136
  ue(this, "title");
@@ -8093,7 +8148,7 @@ class ai {
8093
8148
  ue(this, "delayAfterMs");
8094
8149
  }
8095
8150
  }
8096
- class si {
8151
+ class ci {
8097
8152
  constructor() {
8098
8153
  ue(this, "version");
8099
8154
  ue(this, "id");
@@ -8106,7 +8161,7 @@ class si {
8106
8161
  ue(this, "defaultDelayMs");
8107
8162
  }
8108
8163
  }
8109
- class ii {
8164
+ class ui {
8110
8165
  constructor() {
8111
8166
  ue(this, "stepId");
8112
8167
  ue(this, "skipped");
@@ -8118,7 +8173,7 @@ class ii {
8118
8173
  ue(this, "attempts");
8119
8174
  }
8120
8175
  }
8121
- class oi {
8176
+ class li {
8122
8177
  constructor() {
8123
8178
  ue(this, "success");
8124
8179
  ue(this, "steps");
@@ -8129,7 +8184,7 @@ class oi {
8129
8184
  }
8130
8185
  }
8131
8186
  var Zr = /* @__PURE__ */ ((r) => (r.USD = "USD", r.KRW = "KRW", r.EUR = "EUR", r.GBP = "GBP", r.CAD = "CAD", r.CNY = "CNY", r.JPY = "JPY", r.VND = "VND", r.ARS = "ARS", r.INR = "INR", r.TWD = "TWD", r.AUD = "AUD", r.HKD = "HKD", r.IDR = "IDR", r.MXN = "MXN", r.NZD = "NZD", r.SGD = "SGD", r.CHF = "CHF", r.THB = "THB", r.BRL = "BRL", r.TRY = "TRY", r.RUB = "RUB", r.NOK = "NOK", r.DKK = "DKK", r.SEK = "SEK", r.ILS = "ILS", r.ZAR = "ZAR", r.PLN = "PLN", r.PHP = "PHP", r.CZK = "CZK", r.CLP = "CLP", r.COP = "COP", r.EGP = "EGP", r.MYR = "MYR", r.HUF = "HUF", r.AED = "AED", r.SAR = "SAR", r.RON = "RON", r.BGN = "BGN", r))(Zr || {});
8132
- const Ws = {
8187
+ const Hs = {
8133
8188
  code: {
8134
8189
  type: "string",
8135
8190
  enum: Object.values(Zr),
@@ -8206,10 +8261,10 @@ class lt extends Error {
8206
8261
  );
8207
8262
  }
8208
8263
  }
8209
- function Vs(r) {
8264
+ function Gs(r) {
8210
8265
  return r && r.type === "8G_EXTENSION_RESPONSE";
8211
8266
  }
8212
- const qs = Rt({
8267
+ const Ys = Rt({
8213
8268
  // 워크스페이스를 구분할 수 있는 구분자, ex) slug 같은 것들 01republic
8214
8269
  id: $e(),
8215
8270
  // 워크스페이스 이름
@@ -8221,7 +8276,7 @@ const qs = Rt({
8221
8276
  // 관리자 여부
8222
8277
  isAdmin: Tt().nullable().optional()
8223
8278
  });
8224
- var En = /* @__PURE__ */ ((r) => (r.monthly = "MONTHLY", r.yearly = "YEARLY", r))(En || {});
8279
+ var Tn = /* @__PURE__ */ ((r) => (r.monthly = "MONTHLY", r.yearly = "YEARLY", r))(Tn || {});
8225
8280
  const Ur = Rt({
8226
8281
  // 통화 코드
8227
8282
  code: Br(Zr),
@@ -8233,7 +8288,7 @@ const Ur = Rt({
8233
8288
  amount: Lt(),
8234
8289
  // 표시용 텍스트 (optional, 예: "US$57.75")
8235
8290
  text: $e().optional()
8236
- }), Hs = Rt({
8291
+ }), Ks = Rt({
8237
8292
  // 플랜 이름
8238
8293
  planName: $e(),
8239
8294
  // 현재 주기 결제 금액
@@ -8241,7 +8296,7 @@ const Ur = Rt({
8241
8296
  // 다음 결제 예정일
8242
8297
  nextPaymentDue: $e(),
8243
8298
  // 주기 단위
8244
- cycleTerm: Br(En).nullable(),
8299
+ cycleTerm: Br(Tn).nullable(),
8245
8300
  // 무료 티어 여부
8246
8301
  isFreeTier: Tt(),
8247
8302
  // 플랜 단위 여부
@@ -8272,7 +8327,7 @@ const Ur = Rt({
8272
8327
  소지자
8273
8328
  비고
8274
8329
  */
8275
- }), Gs = Rt({
8330
+ }), Js = Rt({
8276
8331
  // 결제 이력 고유 아이디
8277
8332
  uid: $e(),
8278
8333
  // 결제 일자
@@ -8287,7 +8342,7 @@ const Ur = Rt({
8287
8342
  isSuccessfulPaid: Tt(),
8288
8343
  // 결제 영수증 링크
8289
8344
  receiptUrl: $e()
8290
- }), Ys = Rt({
8345
+ }), Xs = Rt({
8291
8346
  // 멤버 이름
8292
8347
  name: $e(),
8293
8348
  // 멤버 이메일
@@ -8301,7 +8356,7 @@ const Ur = Rt({
8301
8356
  // 멤버 구독 좌석 상태
8302
8357
  subscriptionSeatStatus: Lr(["FREE", "PAID"]).nullable().optional()
8303
8358
  });
8304
- class ci {
8359
+ class fi {
8305
8360
  constructor() {
8306
8361
  }
8307
8362
  /**
@@ -8312,7 +8367,7 @@ class ci {
8312
8367
  const a = setTimeout(() => {
8313
8368
  t(lt.extensionNotInstalled());
8314
8369
  }, 5e3), s = (i) => {
8315
- Vs(i.data) && (clearTimeout(a), window.removeEventListener("message", s), e(i.data));
8370
+ Gs(i.data) && (clearTimeout(a), window.removeEventListener("message", s), e(i.data));
8316
8371
  };
8317
8372
  window.addEventListener("message", s), window.postMessage({ type: "8G_EXTENSION_CHECK" }, "*");
8318
8373
  });
@@ -8324,11 +8379,11 @@ class ci {
8324
8379
  return new Promise((t, a) => {
8325
8380
  const s = `8g_wf_${Date.now()}_${Math.random()}`, i = e.timeoutMs ?? 6e5, c = setTimeout(() => {
8326
8381
  a(lt.requestTimeout(i));
8327
- }, i), f = (b) => {
8328
- var k, M, S, x, A, I, ae;
8329
- if (((k = b.data) == null ? void 0 : k.type) === "8G_COLLECT_RESPONSE" && b.data.requestId === s) {
8382
+ }, i), f = (w) => {
8383
+ var k, M, D, x, S, I, ae;
8384
+ if (((k = w.data) == null ? void 0 : k.type) === "8G_COLLECT_RESPONSE" && w.data.requestId === s) {
8330
8385
  clearTimeout(c), window.removeEventListener("message", f);
8331
- const Q = b.data, pe = ((M = Q == null ? void 0 : Q.result) == null ? void 0 : M.steps) ?? ((x = (S = Q == null ? void 0 : Q.result) == null ? void 0 : S.result) == null ? void 0 : x.steps) ?? [], H = ((A = Q == null ? void 0 : Q.result) == null ? void 0 : A.context) ?? ((ae = (I = Q == null ? void 0 : Q.result) == null ? void 0 : I.result) == null ? void 0 : ae.context) ?? { steps: {}, vars: {} };
8386
+ const Q = w.data, pe = ((M = Q == null ? void 0 : Q.result) == null ? void 0 : M.steps) ?? ((x = (D = Q == null ? void 0 : Q.result) == null ? void 0 : D.result) == null ? void 0 : x.steps) ?? [], H = ((S = Q == null ? void 0 : Q.result) == null ? void 0 : S.context) ?? ((ae = (I = Q == null ? void 0 : Q.result) == null ? void 0 : I.result) == null ? void 0 : ae.context) ?? { steps: {}, vars: {} };
8332
8387
  t({
8333
8388
  success: Q.success,
8334
8389
  steps: pe,
@@ -8363,8 +8418,8 @@ class ci {
8363
8418
  };
8364
8419
  const s = [];
8365
8420
  for (const f of a) {
8366
- const b = qs.safeParse(f);
8367
- b.success ? s.push(b.data) : console.warn("Invalid workspace data:", f, b.error);
8421
+ const w = Ys.safeParse(f);
8422
+ w.success ? s.push(w.data) : console.warn("Invalid workspace data:", f, w.error);
8368
8423
  }
8369
8424
  return {
8370
8425
  ...t,
@@ -8385,10 +8440,10 @@ class ci {
8385
8440
  const s = (f = (c = a.steps[a.steps.length - 1]) == null ? void 0 : c.result) == null ? void 0 : f.data;
8386
8441
  if (!s)
8387
8442
  return { ...a };
8388
- const i = Hs.safeParse(s);
8443
+ const i = Ks.safeParse(s);
8389
8444
  if (i.success) {
8390
- const b = i.data;
8391
- return { ...a, ...b };
8445
+ const w = i.data;
8446
+ return { ...a, ...w };
8392
8447
  } else
8393
8448
  return console.warn("Invalid workspace billing data:", s, i.error), { ...a };
8394
8449
  }
@@ -8406,9 +8461,9 @@ class ci {
8406
8461
  if (!s || !Array.isArray(s))
8407
8462
  return { ...a, data: [] };
8408
8463
  const i = [];
8409
- for (const b of s) {
8410
- const k = Gs.safeParse(b);
8411
- k.success ? i.push(k.data) : console.warn("Invalid workspace billing history data:", b, k.error);
8464
+ for (const w of s) {
8465
+ const k = Js.safeParse(w);
8466
+ k.success ? i.push(k.data) : console.warn("Invalid workspace billing history data:", w, k.error);
8412
8467
  }
8413
8468
  return { ...a, data: i };
8414
8469
  }
@@ -8426,9 +8481,9 @@ class ci {
8426
8481
  if (!s || !Array.isArray(s))
8427
8482
  return { ...a, data: [] };
8428
8483
  const i = [];
8429
- for (const b of s) {
8430
- const k = Ys.safeParse(b);
8431
- k.success ? i.push(k.data) : console.warn("Invalid workspace member data:", b, k.error);
8484
+ for (const w of s) {
8485
+ const k = Xs.safeParse(w);
8486
+ k.success ? i.push(k.data) : console.warn("Invalid workspace member data:", w, k.error);
8432
8487
  }
8433
8488
  return { ...a, data: i };
8434
8489
  }
@@ -8455,42 +8510,43 @@ class ci {
8455
8510
  }
8456
8511
  export {
8457
8512
  an as AiParseDataBlockSchema,
8458
- ei as AllBlockSchemas,
8459
- bt as BaseBlockSchema,
8460
- En as BillingCycleTerm,
8461
- ni as Binding,
8462
- ti as BlockHandler,
8513
+ ni as AllBlockSchemas,
8514
+ wt as BaseBlockSchema,
8515
+ Tn as BillingCycleTerm,
8516
+ ii as Binding,
8517
+ ai as BlockHandler,
8463
8518
  fn as ClearValueFormsBlockSchema,
8464
- oi as CollectWorkflowResult,
8465
- ri as Condition,
8519
+ li as CollectWorkflowResult,
8520
+ si as Condition,
8466
8521
  Zr as CurrencyCode,
8467
- Ws as CurrencyInfoSchema,
8468
- ci as EightGClient,
8522
+ Hs as CurrencyInfoSchema,
8523
+ fi as EightGClient,
8469
8524
  lt as EightGError,
8470
8525
  dn as ElementExistsBlockSchema,
8471
8526
  hn as EventClickBlockSchema,
8472
8527
  _n as ExportDataBlockSchema,
8473
8528
  kn as FetchApiBlockSchema,
8474
8529
  cn as GetAttributeValueBlockSchema,
8475
- bn as GetElementDataBlockSchema,
8530
+ wn as GetElementDataBlockSchema,
8476
8531
  sn as GetTextBlockSchema,
8477
8532
  un as GetValueFormsBlockSchema,
8478
8533
  pn as KeypressBlockSchema,
8479
8534
  gn as NavigateBlockSchema,
8535
+ En as NetworkCatchBlockSchema,
8480
8536
  vn as SaveAssetsBlockSchema,
8481
- Qs as Schema,
8482
- wn as ScrollBlockSchema,
8537
+ ri as Schema,
8538
+ bn as ScrollBlockSchema,
8483
8539
  ln as SetValueFormsBlockSchema,
8484
8540
  xn as TransformDataBlockSchema,
8485
8541
  mn as WaitBlockSchema,
8486
8542
  yn as WaitForConditionBlockSchema,
8487
- si as Workflow,
8488
- ai as WorkflowStep,
8489
- ii as WorkflowStepRunResult,
8490
- Gs as WorkspaceBillingHistorySchema,
8491
- Hs as WorkspaceBillingSchema,
8492
- qs as WorkspaceItemSchema,
8493
- Ys as WorkspaceMemberSchema,
8494
- Xs as createArraySchema,
8495
- Js as createSchema
8543
+ ci as Workflow,
8544
+ oi as WorkflowStep,
8545
+ ui as WorkflowStepRunResult,
8546
+ Js as WorkspaceBillingHistorySchema,
8547
+ Ks as WorkspaceBillingSchema,
8548
+ Ys as WorkspaceItemSchema,
8549
+ Xs as WorkspaceMemberSchema,
8550
+ ti as createArraySchema,
8551
+ ei as createSchema
8496
8552
  };