scordi-extension 1.15.10 → 1.15.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/.vite/manifest.json +15 -15
  2. package/dist/assets/index-BqQ8JinV.js +1 -0
  3. package/dist/assets/index-CVzjlC_s.js +1 -0
  4. package/dist/assets/index.ts-CD2jVezi.js +256 -0
  5. package/dist/assets/index.ts-mAOhzdZJ.js +238 -0
  6. package/dist/assets/internal-messages-BS1uEgeS.js +1 -0
  7. package/dist/assets/internal-messages-CP1ANEcL.js +1 -0
  8. package/dist/assets/main.tsx-CHn9k-P7.js +38 -0
  9. package/dist/assets/main.tsx-UFslEqbd.js +38 -0
  10. package/dist/assets/main.tsx-loader-CuF0J02t.js +13 -0
  11. package/dist/assets/main.tsx-loader-sjxNXQPw.js +13 -0
  12. package/dist/assets/types-Dzn4eD9c.js +22 -0
  13. package/dist/assets/types-q2_wITfk.js +4 -0
  14. package/dist/blocks/ExportDataBlock.d.ts +71 -0
  15. package/dist/blocks/ExportDataBlock.d.ts.map +1 -0
  16. package/dist/blocks/index.d.ts +41 -0
  17. package/dist/blocks/index.d.ts.map +1 -1
  18. package/dist/manifest.json +3 -2
  19. package/dist/sdk/index.cjs +4 -4
  20. package/dist/sdk/index.d.ts +1 -1
  21. package/dist/sdk/index.d.ts.map +1 -1
  22. package/dist/sdk/index.js +453 -406
  23. package/dist/src/blocks/AiParseDataBlock.ts.js +1 -1
  24. package/dist/src/blocks/ClearValueFormBlock.ts.js +1 -1
  25. package/dist/src/blocks/ElementExistsBlock.ts.js +1 -1
  26. package/dist/src/blocks/EventClickBlock.ts.js +1 -1
  27. package/dist/src/blocks/ExportDataBlock.ts.js +47 -0
  28. package/dist/src/blocks/FetchApiBlock.ts.js +1 -1
  29. package/dist/src/blocks/GetAttributeValueBlock.ts.js +1 -1
  30. package/dist/src/blocks/GetElementDataBlock.ts.js +1 -1
  31. package/dist/src/blocks/GetTextBlock.ts.js +1 -1
  32. package/dist/src/blocks/GetValueFormBlock.ts.js +1 -1
  33. package/dist/src/blocks/KeypressBlock.ts.js +1 -1
  34. package/dist/src/blocks/NavigateBlock.ts.js +1 -1
  35. package/dist/src/blocks/SaveAssetsBlock.ts.js +1 -1
  36. package/dist/src/blocks/ScrollBlock.ts.js +1 -1
  37. package/dist/src/blocks/SetValueFormBlock.ts.js +1 -1
  38. package/dist/src/blocks/TransformDataBlock.ts.js +2 -2
  39. package/dist/src/blocks/WaitBlock.ts.js +1 -1
  40. package/dist/src/blocks/WaitForConditionBlock.ts.js +1 -1
  41. package/dist/src/blocks/index.ts.js +9 -1
  42. package/dist/src/blocks/types.ts.js +1 -1
  43. package/dist/src/content/components/ConfirmationUI.tsx.js +3 -3
  44. package/dist/src/content/components/ExecutionStatusUI.tsx.js +3 -3
  45. package/dist/src/content/main.tsx.js +2 -2
  46. package/dist/src/types/internal-messages.ts.js +3 -0
  47. package/dist/types/internal-messages.d.ts +14 -1
  48. package/dist/types/internal-messages.d.ts.map +1 -1
  49. package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--29d58732.js +45 -0
  50. package/dist/vendor/.vite-deps-chunk-2TUXWMP5.js__v--34285d49.js +45 -0
  51. package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--29d58732.js +975 -0
  52. package/dist/vendor/.vite-deps-chunk-EL3BNLGW.js__v--34285d49.js +975 -0
  53. package/dist/vendor/.vite-deps-chunk-UW5CEYRC.js__v--29d58732.js +4154 -0
  54. package/dist/vendor/.vite-deps-chunk-UW5CEYRC.js__v--34285d49.js +4154 -0
  55. package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--29d58732.js +280 -0
  56. package/dist/vendor/.vite-deps-chunk-XHY3JSIG.js__v--34285d49.js +280 -0
  57. package/dist/vendor/.vite-deps-jsonata.js__v--34285d49.js +5761 -0
  58. package/dist/vendor/.vite-deps-jsonata.js__v--7496ecd5.js +5761 -0
  59. package/dist/vendor/.vite-deps-react-dom.js__v--1217aa43.js +6 -0
  60. package/dist/vendor/.vite-deps-react-dom.js__v--34285d49.js +6 -0
  61. package/dist/vendor/.vite-deps-react-dom_client.js__v--34285d49.js +18108 -0
  62. package/dist/vendor/.vite-deps-react-dom_client.js__v--8ec6d0f4.js +18108 -0
  63. package/dist/vendor/.vite-deps-react.js__v--1217aa43.js +5 -0
  64. package/dist/vendor/.vite-deps-react.js__v--34285d49.js +5 -0
  65. package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--1217aa43.js +281 -0
  66. package/dist/vendor/.vite-deps-react_jsx-dev-runtime.js__v--34285d49.js +281 -0
  67. package/dist/vendor/.vite-deps-zod.js__v--34285d49.js +222 -0
  68. package/dist/vendor/.vite-deps-zod.js__v--e4714212.js +222 -0
  69. package/dist/vendor/vite-client.js +1 -1
  70. package/package.json +2 -1
package/dist/sdk/index.js CHANGED
@@ -1,6 +1,6 @@
1
- var Dn = Object.defineProperty;
2
- var On = (r, e, t) => e in r ? Dn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var ue = (r, e, t) => On(r, typeof e != "symbol" ? e + "" : e, t);
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
4
  var be;
5
5
  (function(r) {
6
6
  r.assertEqual = (s) => {
@@ -105,7 +105,7 @@ const z = be.arrayToEnum([
105
105
  "invalid_intersection_types",
106
106
  "not_multiple_of",
107
107
  "not_finite"
108
- ]), Pn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
108
+ ]), Nn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
109
109
  class at extends Error {
110
110
  get errors() {
111
111
  return this.issues;
@@ -227,7 +227,7 @@ const Ht = (r, e) => {
227
227
  return { message: t };
228
228
  };
229
229
  let Xr = Ht;
230
- function Nn(r) {
230
+ function Cn(r) {
231
231
  Xr = r;
232
232
  }
233
233
  function xr() {
@@ -253,7 +253,7 @@ const _r = (r) => {
253
253
  path: i,
254
254
  message: f
255
255
  };
256
- }, Cn = [];
256
+ }, Rn = [];
257
257
  function $(r, e) {
258
258
  const t = xr(), a = _r({
259
259
  issueData: e,
@@ -573,16 +573,16 @@ class le {
573
573
  return this.safeParse(null).success;
574
574
  }
575
575
  }
576
- const Rn = /^c[^\s-]{8,}$/i, Mn = /^[0-9a-z]+$/, In = /^[0-9A-HJKMNP-TV-Z]{26}$/i, jn = /^[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, Fn = /^[a-z0-9_-]{21}$/i, Un = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $n = /^[-+]?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)?)??$/, Ln = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Bn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
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})+$";
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])$/, 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])\/(3[0-2]|[12]?[0-9])$/, Wn = /^(([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]))$/, 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]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, qn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Hn = /^([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])))", Gn = new RegExp(`^${Qr}$`);
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}$`);
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 Yn(r) {
585
+ function Kn(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 Kn(r, e) {
594
- return !!((e === "v4" || !e) && Zn.test(r) || (e === "v6" || !e) && Wn.test(r));
595
- }
596
593
  function Jn(r, e) {
597
- if (!Un.test(r))
594
+ return !!((e === "v4" || !e) && zn.test(r) || (e === "v6" || !e) && Vn.test(r));
595
+ }
596
+ function Xn(r, e) {
597
+ if (!$n.test(r))
598
598
  return !1;
599
599
  try {
600
600
  const [t] = r.split(".");
@@ -606,8 +606,8 @@ function Jn(r, e) {
606
606
  return !1;
607
607
  }
608
608
  }
609
- function Xn(r, e) {
610
- return !!((e === "v4" || !e) && zn.test(r) || (e === "v6" || !e) && Vn.test(r));
609
+ function Qn(r, e) {
610
+ return !!((e === "v4" || !e) && Wn.test(r) || (e === "v6" || !e) && qn.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
- Ln.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
661
+ Bn.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(Bn, "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
- jn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
673
+ Fn.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
- Fn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
679
+ Un.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
- Rn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
685
+ Mn.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
- Mn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
691
+ In.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
- In.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
697
+ jn.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,35 +729,35 @@ 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" ? Gn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
732
+ }), a.dirty()) : i.kind === "date" ? Yn.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" ? Yn(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
736
+ }), a.dirty()) : i.kind === "time" ? Kn(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" ? $n.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
740
+ }), a.dirty()) : i.kind === "duration" ? Ln.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" ? Kn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
744
+ }), a.dirty()) : i.kind === "ip" ? Jn(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" ? Jn(e.data, i.alg) || (s = this._getOrReturnCtx(e, s), $(s, {
748
+ }), a.dirty()) : i.kind === "jwt" ? Xn(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" ? Xn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
752
+ }), a.dirty()) : i.kind === "cidr" ? Qn(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" ? qn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
756
+ }), a.dirty()) : i.kind === "base64" ? Hn.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" ? Hn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
760
+ }), a.dirty()) : i.kind === "base64url" ? Gn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
761
761
  validation: "base64url",
762
762
  code: P.invalid_string,
763
763
  message: i.message
@@ -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 Qn(r, e) {
995
+ function ea(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
  }
@@ -1031,7 +1031,7 @@ class Dt extends le {
1031
1031
  inclusive: i.inclusive,
1032
1032
  exact: !1,
1033
1033
  message: i.message
1034
- }), s.dirty()) : i.kind === "multipleOf" ? Qn(e.data, i.value) !== 0 && (a = this._getOrReturnCtx(e, a), $(a, {
1034
+ }), s.dirty()) : i.kind === "multipleOf" ? ea(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
@@ -2723,7 +2723,7 @@ Sr.create = (r) => new Sr({
2723
2723
  typeName: ne.ZodNaN,
2724
2724
  ...oe(r)
2725
2725
  });
2726
- const ea = Symbol("zod_brand");
2726
+ const ta = Symbol("zod_brand");
2727
2727
  class $r extends le {
2728
2728
  _parse(e) {
2729
2729
  const { ctx: t } = this._processInputParams(e), a = t.data;
@@ -2811,16 +2811,16 @@ function nn(r, e = {}, t) {
2811
2811
  }
2812
2812
  }) : Gt.create();
2813
2813
  }
2814
- const ta = {
2814
+ const ra = {
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 ra = (r, e = {
2821
+ const na = (r, e = {
2822
2822
  message: `Input not instance of ${r.name}`
2823
- }) => nn((t) => t instanceof r, e), $e = ft.create, Kt = Dt.create, na = Sr.create, aa = Ot.create, Ct = rr.create, sa = Ut.create, ia = Er.create, oa = nr.create, ca = ar.create, ua = Gt.create, la = jt.create, fa = Et.create, da = Tr.create, ha = dt.create, Rt = Ie.create, pa = Ie.strictCreate, ma = sr.create, ya = Dr.create, ga = ir.create, va = vt.create, ba = or.create, wa = Ar.create, ka = $t.create, xa = qt.create, _a = cr.create, Ea = ur.create, Lr = Pt.create, Br = lr.create, Ta = Yt.create, Gr = ht.create, Aa = yt.create, Sa = Nt.create, Da = ht.createWithPreprocess, Oa = pr.create, Pa = () => $e().optional(), Na = () => Kt().optional(), Ca = () => Ct().optional(), Fr = {
2823
+ }) => nn((t) => t instanceof r, e), $e = ft.create, Kt = Dt.create, aa = Sr.create, sa = Ot.create, Ct = rr.create, ia = Ut.create, oa = Er.create, ca = nr.create, ua = ar.create, la = Gt.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 = qt.create, Ea = cr.create, Ta = ur.create, Lr = Pt.create, Br = lr.create, Aa = Yt.create, Gr = ht.create, Sa = yt.create, Da = Nt.create, Oa = ht.createWithPreprocess, Pa = pr.create, Na = () => $e().optional(), Ca = () => Kt().optional(), Ra = () => Ct().optional(), Fr = {
2824
2824
  string: ((r) => ft.create({ ...r, coerce: !0 })),
2825
2825
  number: ((r) => Dt.create({ ...r, coerce: !0 })),
2826
2826
  boolean: ((r) => rr.create({
@@ -2829,13 +2829,13 @@ const ra = (r, e = {
2829
2829
  })),
2830
2830
  bigint: ((r) => Ot.create({ ...r, coerce: !0 })),
2831
2831
  date: ((r) => Ut.create({ ...r, coerce: !0 }))
2832
- }, Ra = te, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2832
+ }, Ma = te, D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2833
2833
  __proto__: null,
2834
- BRAND: ea,
2834
+ BRAND: ta,
2835
2835
  DIRTY: Vt,
2836
- EMPTY_PATH: Cn,
2836
+ EMPTY_PATH: Rn,
2837
2837
  INVALID: te,
2838
- NEVER: Ra,
2838
+ NEVER: Ma,
2839
2839
  OK: Je,
2840
2840
  ParseStatus: Ke,
2841
2841
  Schema: le,
@@ -2885,65 +2885,65 @@ const ra = (r, e = {
2885
2885
  ZodUnknown: jt,
2886
2886
  ZodVoid: Tr,
2887
2887
  addIssueToContext: $,
2888
- any: ua,
2889
- array: ha,
2890
- bigint: aa,
2888
+ any: la,
2889
+ array: pa,
2890
+ bigint: sa,
2891
2891
  boolean: Ct,
2892
2892
  coerce: Fr,
2893
2893
  custom: nn,
2894
- date: sa,
2894
+ date: ia,
2895
2895
  datetimeRegex: tn,
2896
2896
  defaultErrorMap: Ht,
2897
- discriminatedUnion: ya,
2897
+ discriminatedUnion: ga,
2898
2898
  effect: Gr,
2899
2899
  enum: Lr,
2900
- function: xa,
2900
+ function: _a,
2901
2901
  getErrorMap: xr,
2902
2902
  getParsedType: _t,
2903
- instanceof: ra,
2904
- intersection: ga,
2903
+ instanceof: na,
2904
+ intersection: va,
2905
2905
  isAborted: Mr,
2906
2906
  isAsync: tr,
2907
2907
  isDirty: Ir,
2908
2908
  isValid: Ft,
2909
- late: ta,
2910
- lazy: _a,
2911
- literal: Ea,
2909
+ late: ra,
2910
+ lazy: Ea,
2911
+ literal: Ta,
2912
2912
  makeIssue: _r,
2913
- map: wa,
2914
- nan: na,
2913
+ map: ka,
2914
+ nan: aa,
2915
2915
  nativeEnum: Br,
2916
- never: fa,
2917
- null: ca,
2918
- nullable: Sa,
2916
+ never: da,
2917
+ null: ua,
2918
+ nullable: Da,
2919
2919
  number: Kt,
2920
2920
  object: Rt,
2921
2921
  get objectUtil() {
2922
2922
  return Rr;
2923
2923
  },
2924
- oboolean: Ca,
2925
- onumber: Na,
2926
- optional: Aa,
2927
- ostring: Pa,
2928
- pipeline: Oa,
2929
- preprocess: Da,
2930
- promise: Ta,
2931
- quotelessJson: Pn,
2932
- record: ba,
2933
- set: ka,
2934
- setErrorMap: Nn,
2935
- strictObject: pa,
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,
2936
2936
  string: $e,
2937
- symbol: ia,
2937
+ symbol: oa,
2938
2938
  transformer: Gr,
2939
- tuple: va,
2940
- undefined: oa,
2941
- union: ma,
2942
- unknown: la,
2939
+ tuple: ba,
2940
+ undefined: ca,
2941
+ union: ya,
2942
+ unknown: fa,
2943
2943
  get util() {
2944
2944
  return be;
2945
2945
  },
2946
- void: da
2946
+ void: ha
2947
2947
  }, Symbol.toStringTag, { value: "Module" })), bt = Rt({
2948
2948
  name: $e(),
2949
2949
  selector: $e(),
@@ -2953,30 +2953,30 @@ const ra = (r, e = {
2953
2953
  waitSelectorTimeout: Kt().optional(),
2954
2954
  multiple: Ct().optional()
2955
2955
  })
2956
- }), Ma = O.object({
2957
- type: O.literal("object"),
2958
- shape: O.record(O.string(), O.any())
2959
- }), Ia = O.object({
2960
- type: O.literal("array"),
2961
- items: O.any()
2962
- }), ja = O.discriminatedUnion("type", [
2963
- Ma,
2964
- Ia
2965
- ]), an = O.object({
2966
- name: O.literal("ai-parse-data"),
2967
- sourceData: O.any().optional(),
2968
- schemaDefinition: ja,
2969
- prompt: O.string().optional(),
2970
- model: O.string().optional(),
2971
- apiKey: O.string().min(1, "AI API key is required"),
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"),
2972
2972
  // 필수
2973
- provider: O.enum(["openai", "anthropic"])
2973
+ provider: D.enum(["openai", "anthropic"])
2974
2974
  // 필수
2975
2975
  });
2976
- function Fa(r) {
2976
+ function Ua(r) {
2977
2977
  return an.parse(r);
2978
2978
  }
2979
- async function Ua(r) {
2979
+ async function $a(r) {
2980
2980
  try {
2981
2981
  const {
2982
2982
  sourceData: e,
@@ -3014,19 +3014,19 @@ async function Ua(r) {
3014
3014
  };
3015
3015
  }
3016
3016
  }
3017
- function Gs(r) {
3017
+ function Js(r) {
3018
3018
  return {
3019
3019
  type: "object",
3020
3020
  shape: r
3021
3021
  };
3022
3022
  }
3023
- function Ys(r) {
3023
+ function Xs(r) {
3024
3024
  return {
3025
3025
  type: "array",
3026
3026
  items: r
3027
3027
  };
3028
3028
  }
3029
- const Ks = {
3029
+ const Qs = {
3030
3030
  string: (r) => ({
3031
3031
  type: "string",
3032
3032
  ...r
@@ -3051,7 +3051,7 @@ const Ks = {
3051
3051
  }),
3052
3052
  currency: (r) => ({
3053
3053
  type: "currency",
3054
- shape: Bs,
3054
+ shape: Ws,
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 $a extends Or {
3078
+ class La extends Or {
3079
3079
  async find(e, t = document) {
3080
3080
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3081
3081
  try {
@@ -3109,7 +3109,7 @@ class $a extends Or {
3109
3109
  });
3110
3110
  }
3111
3111
  }
3112
- class La extends Or {
3112
+ class Ba 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() === "")
@@ -3130,7 +3130,7 @@ class La extends Or {
3130
3130
  }
3131
3131
  }
3132
3132
  }
3133
- class Ba 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() === "")
@@ -3159,7 +3159,7 @@ class Ba extends Or {
3159
3159
  return null;
3160
3160
  }
3161
3161
  }
3162
- class Za extends Or {
3162
+ class za extends Or {
3163
3163
  async find(e, t = document) {
3164
3164
  const { selector: a, option: s } = e, { multiple: i = !1 } = s || {};
3165
3165
  try {
@@ -3186,7 +3186,7 @@ class Za extends Or {
3186
3186
  }
3187
3187
  }
3188
3188
  }
3189
- class za {
3189
+ class Wa {
3190
3190
  /**
3191
3191
  * 요소의 안정적인 CSS 셀렉터 생성
3192
3192
  * @param element 대상 요소
@@ -3249,29 +3249,29 @@ class za {
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 = Wa(t, a);
3252
+ const { selector: t, findBy: a = "cssSelector", option: s } = r, { waitForSelector: i = !1, waitSelectorTimeout: c = 5e3 } = s || {}, f = Va(t, a);
3253
3253
  return i ? f.waitForElement(r, e, c) : f.find(r, e);
3254
3254
  }
3255
- function Wa(r, e) {
3256
- return e === "xpath" ? new Za() : r.includes(">>") ? new Ba() : r.includes("|>") ? new La() : new $a();
3255
+ function Va(r, e) {
3256
+ return e === "xpath" ? new za() : r.includes(">>") ? new Za() : r.includes("|>") ? new Ba() : new La();
3257
3257
  }
3258
3258
  const sn = bt.extend({
3259
- name: O.literal("get-text"),
3260
- includeTags: O.boolean().optional(),
3261
- useTextContent: O.boolean().optional(),
3262
- regex: O.string().optional(),
3263
- prefixText: O.string().optional(),
3264
- suffixText: O.string().optional(),
3265
- filterEmpty: O.boolean().optional(),
3266
- scrollToCollect: O.boolean().optional(),
3267
- scrollDistance: O.number().optional(),
3268
- scrollWaitMs: O.number().optional(),
3269
- maxScrollAttempts: O.number().optional()
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()
3270
3270
  });
3271
- function Va(r) {
3271
+ function qa(r) {
3272
3272
  return sn.parse(r);
3273
3273
  }
3274
- async function qa(r) {
3274
+ async function Ha(r) {
3275
3275
  try {
3276
3276
  const {
3277
3277
  selector: e = "",
@@ -3291,7 +3291,7 @@ async function qa(r) {
3291
3291
  if (!e)
3292
3292
  throw new Error("Selector is required for get-text block");
3293
3293
  if (M && (b != null && b.multiple))
3294
- return await Ha({
3294
+ return await Ga({
3295
3295
  selector: e,
3296
3296
  findBy: f,
3297
3297
  option: b,
@@ -3328,7 +3328,7 @@ async function qa(r) {
3328
3328
  };
3329
3329
  }
3330
3330
  }
3331
- async function Ha(r) {
3331
+ async function Ga(r) {
3332
3332
  const {
3333
3333
  selector: e,
3334
3334
  findBy: t,
@@ -3376,13 +3376,13 @@ function on(r, e, t, a = "", s = "") {
3376
3376
  };
3377
3377
  }
3378
3378
  const cn = bt.extend({
3379
- name: O.literal("attribute-value"),
3380
- attributeName: O.string()
3379
+ name: D.literal("attribute-value"),
3380
+ attributeName: D.string()
3381
3381
  });
3382
- function Ga(r) {
3382
+ function Ya(r) {
3383
3383
  return cn.parse(r);
3384
3384
  }
3385
- async function Ya(r) {
3385
+ async function Ka(r) {
3386
3386
  try {
3387
3387
  const { selector: e = "", attributeName: t, findBy: a = "cssSelector", option: s } = r;
3388
3388
  if (!e)
@@ -3400,13 +3400,13 @@ async function Ya(r) {
3400
3400
  }
3401
3401
  }
3402
3402
  const un = bt.extend({
3403
- name: O.literal("get-value-form"),
3404
- type: O.enum(["text-field", "select", "checkbox"]).optional()
3403
+ name: D.literal("get-value-form"),
3404
+ type: D.enum(["text-field", "select", "checkbox"]).optional()
3405
3405
  });
3406
- function Ka(r) {
3406
+ function Ja(r) {
3407
3407
  return un.parse(r);
3408
3408
  }
3409
- async function Ja(r) {
3409
+ async function Xa(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 Ja(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: Xa(s, t) };
3417
+ return { data: Qa(s, t) };
3418
3418
  } catch (e) {
3419
3419
  return {
3420
3420
  hasError: !0,
@@ -3423,7 +3423,7 @@ async function Ja(r) {
3423
3423
  };
3424
3424
  }
3425
3425
  }
3426
- function Xa(r, e) {
3426
+ function Qa(r, e) {
3427
3427
  switch (e) {
3428
3428
  case "text-field":
3429
3429
  if (r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement)
@@ -3443,14 +3443,14 @@ function Xa(r, e) {
3443
3443
  throw new Error(`Invalid element type for ${e}`);
3444
3444
  }
3445
3445
  const ln = bt.extend({
3446
- name: O.literal("set-value-form"),
3447
- setValue: O.string(),
3448
- type: O.enum(["text-field", "select", "checkbox"]).optional()
3446
+ name: D.literal("set-value-form"),
3447
+ setValue: D.string(),
3448
+ type: D.enum(["text-field", "select", "checkbox"]).optional()
3449
3449
  });
3450
- function Qa(r) {
3450
+ function es(r) {
3451
3451
  return ln.parse(r);
3452
3452
  }
3453
- async function es(r) {
3453
+ async function ts(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 es(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 ts(i, t, a), { data: "Form element updated successfully" };
3461
+ return rs(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 es(r) {
3467
3467
  };
3468
3468
  }
3469
3469
  }
3470
- function ts(r, e, t) {
3470
+ function rs(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 })));
@@ -3483,13 +3483,13 @@ function ts(r, e, t) {
3483
3483
  }
3484
3484
  }
3485
3485
  const fn = bt.extend({
3486
- name: O.literal("clear-value-form"),
3487
- type: O.enum(["text-field", "select", "checkbox"]).optional()
3486
+ name: D.literal("clear-value-form"),
3487
+ type: D.enum(["text-field", "select", "checkbox"]).optional()
3488
3488
  });
3489
- function rs(r) {
3489
+ function ns(r) {
3490
3490
  return fn.parse(r);
3491
3491
  }
3492
- async function ns(r) {
3492
+ async function as(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 ns(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 as(s, t), { data: "Form element cleared successfully" };
3500
+ return ss(s, t), { data: "Form element cleared successfully" };
3501
3501
  } catch (e) {
3502
3502
  return {
3503
3503
  hasError: !0,
@@ -3506,7 +3506,7 @@ async function ns(r) {
3506
3506
  };
3507
3507
  }
3508
3508
  }
3509
- function as(r, e) {
3509
+ function ss(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 })));
@@ -3522,12 +3522,12 @@ function as(r, e) {
3522
3522
  }
3523
3523
  }
3524
3524
  const dn = bt.extend({
3525
- name: O.literal("element-exists")
3525
+ name: D.literal("element-exists")
3526
3526
  });
3527
- function ss(r) {
3527
+ function is(r) {
3528
3528
  return dn.parse(r);
3529
3529
  }
3530
- async function is(r) {
3530
+ async function os(r) {
3531
3531
  try {
3532
3532
  const { selector: e = "", findBy: t = "cssSelector", option: a } = r;
3533
3533
  if (!e)
@@ -3542,16 +3542,16 @@ async function is(r) {
3542
3542
  }
3543
3543
  }
3544
3544
  const hn = bt.extend({
3545
- name: O.literal("event-click"),
3546
- textFilter: O.object({
3547
- text: O.union([O.string(), O.array(O.string())]),
3548
- mode: O.enum(["exact", "contains", "startsWith", "endsWith", "regex"])
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"])
3549
3549
  }).optional()
3550
3550
  });
3551
- function os(r) {
3551
+ function cs(r) {
3552
3552
  return hn.parse(r);
3553
3553
  }
3554
- async function cs(r) {
3554
+ async function us(r) {
3555
3555
  try {
3556
3556
  const { selector: e = "", findBy: t = "cssSelector", option: a, textFilter: s } = r;
3557
3557
  if (!e)
@@ -3562,7 +3562,7 @@ async function cs(r) {
3562
3562
  let c;
3563
3563
  if (Array.isArray(i))
3564
3564
  if (s) {
3565
- const f = us(i, s.text, s.mode);
3565
+ const f = ls(i, s.text, s.mode);
3566
3566
  if (!f) {
3567
3567
  const b = Array.isArray(s.text) ? s.text.join(", ") : s.text;
3568
3568
  throw new Error(`No element found with text filter: "${b}" (mode: ${s.mode})`);
@@ -3572,7 +3572,7 @@ async function cs(r) {
3572
3572
  c = i[0];
3573
3573
  else
3574
3574
  c = i;
3575
- return await fs(c), { data: !0 };
3575
+ return await ds(c), { data: !0 };
3576
3576
  } catch (e) {
3577
3577
  return console.log(e), {
3578
3578
  hasError: !0,
@@ -3581,9 +3581,9 @@ async function cs(r) {
3581
3581
  };
3582
3582
  }
3583
3583
  }
3584
- function us(r, e, t) {
3584
+ function ls(r, e, t) {
3585
3585
  for (const a of r) {
3586
- const s = ls(a), i = Array.isArray(e) ? e : [e];
3586
+ const s = fs(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 us(r, e, t) {
3614
3614
  }
3615
3615
  return null;
3616
3616
  }
3617
- function ls(r) {
3617
+ function fs(r) {
3618
3618
  if (r.innerText)
3619
3619
  return r.innerText.trim();
3620
3620
  if (r.textContent)
@@ -3630,7 +3630,7 @@ function ls(r) {
3630
3630
  const a = r.getAttribute("aria-label");
3631
3631
  return a ? a.trim() : "";
3632
3632
  }
3633
- async function fs(r) {
3633
+ async function ds(r) {
3634
3634
  r.scrollIntoView({
3635
3635
  behavior: "instant",
3636
3636
  block: "center",
@@ -3654,20 +3654,20 @@ async function fs(r) {
3654
3654
  }
3655
3655
  await new Promise((s) => setTimeout(s, 50));
3656
3656
  }
3657
- const pn = O.object({
3658
- name: O.literal("keypress"),
3659
- key: O.string(),
3660
- code: O.string().optional(),
3661
- keyCode: O.number().optional(),
3662
- modifiers: O.array(O.enum(["Alt", "Control", "Meta", "Shift"])).optional()
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()
3663
3663
  });
3664
- function ds(r) {
3664
+ function hs(r) {
3665
3665
  return pn.parse(r);
3666
3666
  }
3667
- async function hs(r) {
3667
+ async function ps(r) {
3668
3668
  try {
3669
3669
  const { key: e, code: t, keyCode: a, modifiers: s = [] } = r;
3670
- return await ps(e, t, a, s), { data: !0 };
3670
+ return await ms(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 hs(r) {
3676
3676
  };
3677
3677
  }
3678
3678
  }
3679
- async function ps(r, e, t, a = []) {
3679
+ async function ms(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 = O.object({
3739
- name: O.literal("wait"),
3740
- duration: O.number().min(0)
3738
+ const mn = D.object({
3739
+ name: D.literal("wait"),
3740
+ duration: D.number().min(0)
3741
3741
  });
3742
- function ms(r) {
3742
+ function ys(r) {
3743
3743
  return mn.parse(r);
3744
3744
  }
3745
- async function ys(r) {
3745
+ async function gs(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,37 +3754,37 @@ async function ys(r) {
3754
3754
  };
3755
3755
  }
3756
3756
  }
3757
- const yn = O.object({
3758
- name: O.literal("wait-for-condition"),
3759
- conditions: O.object({
3760
- urlPattern: O.string().optional(),
3761
- elementExists: O.object({
3762
- selector: O.string(),
3763
- findBy: O.enum(["cssSelector", "xpath"])
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"])
3764
3764
  }).optional(),
3765
- cookieExists: O.string().optional(),
3766
- storageKey: O.object({
3767
- type: O.enum(["localStorage", "sessionStorage"]),
3768
- key: O.string()
3765
+ cookieExists: D.string().optional(),
3766
+ storageKey: D.object({
3767
+ type: D.enum(["localStorage", "sessionStorage"]),
3768
+ key: D.string()
3769
3769
  }).optional(),
3770
- userConfirmation: O.boolean().optional(),
3771
- message: O.string().optional(),
3772
- buttonText: O.string().optional()
3770
+ userConfirmation: D.boolean().optional(),
3771
+ message: D.string().optional(),
3772
+ buttonText: D.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: O.enum(["auto", "manual", "auto-or-manual"]).optional(),
3780
- pollingIntervalMs: O.number().min(100).optional(),
3781
- timeoutMs: O.number().min(1e3).optional(),
3782
- position: O.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
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()
3783
3783
  });
3784
- function gs(r) {
3784
+ function vs(r) {
3785
3785
  return yn.parse(r);
3786
3786
  }
3787
- async function vs(r) {
3787
+ async function bs(r) {
3788
3788
  try {
3789
3789
  const {
3790
3790
  conditions: e,
@@ -3891,16 +3891,16 @@ async function vs(r) {
3891
3891
  };
3892
3892
  }
3893
3893
  }
3894
- const gn = O.object({
3895
- name: O.literal("navigate"),
3896
- url: O.string().url("Valid URL is required"),
3897
- waitForLoad: O.boolean().optional(),
3898
- timeout: O.number().min(0).optional()
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()
3899
3899
  });
3900
- function bs(r) {
3900
+ function ws(r) {
3901
3901
  return gn.parse(r);
3902
3902
  }
3903
- async function ws(r) {
3903
+ async function ks(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) => {
@@ -3920,12 +3920,12 @@ async function ws(r) {
3920
3920
  }
3921
3921
  }
3922
3922
  const vn = bt.extend({
3923
- name: O.literal("save-assets")
3923
+ name: D.literal("save-assets")
3924
3924
  });
3925
- function ks(r) {
3925
+ function xs(r) {
3926
3926
  return vn.parse(r);
3927
3927
  }
3928
- async function xs(r) {
3928
+ async function _s(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 xs(r) {
3943
3943
  };
3944
3944
  }
3945
3945
  }
3946
- class _s {
3946
+ class Es {
3947
3947
  /**
3948
3948
  * 요소의 XPath 생성
3949
3949
  * @param element 대상 요소
@@ -3999,21 +3999,21 @@ class _s {
3999
3999
  }
4000
4000
  }
4001
4001
  const bn = bt.extend({
4002
- name: O.literal("get-element-data"),
4003
- includeText: O.boolean().optional(),
4004
- includeTags: O.boolean().optional(),
4005
- useTextContent: O.boolean().optional(),
4006
- regex: O.string().optional(),
4007
- prefixText: O.string().optional(),
4008
- suffixText: O.string().optional(),
4009
- attributes: O.array(O.string()).optional(),
4010
- includeSelector: O.boolean().optional(),
4011
- includeXPath: O.boolean().optional()
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()
4012
4012
  });
4013
- function Es(r) {
4013
+ function Ts(r) {
4014
4014
  return bn.parse(r);
4015
4015
  }
4016
- async function Ts(r) {
4016
+ async function As(r) {
4017
4017
  try {
4018
4018
  const {
4019
4019
  selector: e = "",
@@ -4036,7 +4036,7 @@ async function Ts(r) {
4036
4036
  const A = await pt({ selector: e, findBy: S, option: x });
4037
4037
  if (!A)
4038
4038
  return { data: Array.isArray(A) ? [] : {} };
4039
- const I = As(
4039
+ const I = Ss(
4040
4040
  t,
4041
4041
  a,
4042
4042
  s,
@@ -4056,7 +4056,7 @@ async function Ts(r) {
4056
4056
  };
4057
4057
  }
4058
4058
  }
4059
- function As(r, e, t, a, s = "", i = "", c = [], f = !1, b = !1) {
4059
+ function Ss(r, e, t, a, s = "", i = "", c = [], f = !1, b = !1) {
4060
4060
  return (k) => {
4061
4061
  const M = {};
4062
4062
  if (r) {
@@ -4074,21 +4074,21 @@ function As(r, e, t, a, s = "", i = "", c = [], f = !1, b = !1) {
4074
4074
  A && (x = A.getAttribute(S));
4075
4075
  }
4076
4076
  M.attributes[S] = x;
4077
- })), f && (M.selector = za.generate(k)), b && (M.xpath = _s.generate(k)), M;
4077
+ })), f && (M.selector = Wa.generate(k)), b && (M.xpath = Es.generate(k)), M;
4078
4078
  };
4079
4079
  }
4080
4080
  const wn = bt.extend({
4081
- name: O.literal("scroll"),
4082
- scrollType: O.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
4083
- distance: O.number().optional(),
4084
- behavior: O.enum(["auto", "smooth"]).optional(),
4085
- maxScrolls: O.number().optional(),
4086
- waitAfterScroll: O.number().optional()
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()
4087
4087
  });
4088
- function Ss(r) {
4088
+ function Ds(r) {
4089
4089
  return wn.parse(r);
4090
4090
  }
4091
- async function Ds(r) {
4091
+ async function Os(r) {
4092
4092
  try {
4093
4093
  const {
4094
4094
  selector: e = "",
@@ -4104,13 +4104,13 @@ async function Ds(r) {
4104
4104
  case "toElement":
4105
4105
  if (!e)
4106
4106
  throw new Error("Selector is required for toElement scroll type");
4107
- return await Os(e, f, b, s);
4107
+ return await Ps(e, f, b, s);
4108
4108
  case "toBottom":
4109
- return await Ps(s, c);
4109
+ return await Ns(s, c);
4110
4110
  case "byDistance":
4111
- return await Ns(a, s);
4111
+ return await Cs(a, s);
4112
4112
  case "untilLoaded":
4113
- return await Cs(i, a, s, c);
4113
+ return await Rs(i, a, s, c);
4114
4114
  default:
4115
4115
  throw new Error(`Unknown scroll type: ${t}`);
4116
4116
  }
@@ -4122,7 +4122,7 @@ async function Ds(r) {
4122
4122
  };
4123
4123
  }
4124
4124
  }
4125
- async function Os(r, e, t, a) {
4125
+ async function Ps(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 Os(r, e, t, a) {
4130
4130
  data: !1
4131
4131
  };
4132
4132
  }
4133
- async function Ps(r, e) {
4133
+ async function Ns(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 Ps(r, e) {
4145
4145
  }
4146
4146
  return { data: !0 };
4147
4147
  }
4148
- async function Ns(r, e) {
4148
+ async function Cs(r, e) {
4149
4149
  return window.scrollBy({
4150
4150
  top: r,
4151
4151
  behavior: e
4152
4152
  }), { data: !0 };
4153
4153
  }
4154
- async function Cs(r, e, t, a) {
4154
+ async function Rs(r, e, t, a) {
4155
4155
  let s = 0, i = document.body.scrollHeight;
4156
4156
  for (; s < r; ) {
4157
4157
  window.scrollBy({
@@ -4166,20 +4166,20 @@ async function Cs(r, e, t, a) {
4166
4166
  }
4167
4167
  return { data: !0 };
4168
4168
  }
4169
- const kn = O.object({
4170
- name: O.literal("fetch-api"),
4171
- url: O.string(),
4172
- method: O.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
4173
- headers: O.record(O.string(), O.string()).optional(),
4174
- body: O.record(O.string(), O.any()).optional(),
4175
- timeout: O.number().min(0).optional(),
4176
- parseJson: O.boolean().optional(),
4177
- returnHeaders: O.boolean().optional()
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()
4178
4178
  });
4179
- function Rs(r) {
4179
+ function Ms(r) {
4180
4180
  return kn.parse(r);
4181
4181
  }
4182
- async function Ms(r) {
4182
+ async function Is(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 Ms(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 Is(r) {
4214
+ function js(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 js() {
4221
+ function Fs() {
4222
4222
  return Jr || (Jr = 1, (function(r, e) {
4223
4223
  (function(t) {
4224
4224
  r.exports = t();
@@ -4292,21 +4292,21 @@ function js() {
4292
4292
  "Nineteenth"
4293
4293
  ], M = ["Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety", "Hundred"], S = ["Thousand", "Million", "Billion", "Trillion"];
4294
4294
  function x(v, T) {
4295
- var w = function(U, j, D) {
4295
+ var w = function(U, j, O) {
4296
4296
  var F = "";
4297
4297
  if (U <= 19)
4298
- F = (j ? " and " : "") + (D ? k[U] : b[U]);
4298
+ F = (j ? " and " : "") + (O ? k[U] : b[U]);
4299
4299
  else if (U < 100) {
4300
4300
  const ge = Math.floor(U / 10), we = U % 10;
4301
- F = (j ? " and " : "") + M[ge - 2], we > 0 ? F += "-" + w(we, !1, D) : D && (F = F.substring(0, F.length - 1) + "ieth");
4301
+ F = (j ? " and " : "") + M[ge - 2], we > 0 ? F += "-" + w(we, !1, O) : O && (F = F.substring(0, F.length - 1) + "ieth");
4302
4302
  } else if (U < 1e3) {
4303
4303
  const ge = Math.floor(U / 100), we = U % 100;
4304
- F = (j ? ", " : "") + b[ge] + " Hundred", we > 0 ? F += w(we, !0, D) : D && (F += "th");
4304
+ F = (j ? ", " : "") + b[ge] + " Hundred", we > 0 ? F += w(we, !0, O) : O && (F += "th");
4305
4305
  } else {
4306
4306
  var J = Math.floor(Math.log10(U) / 3);
4307
4307
  J > S.length && (J = S.length);
4308
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, D) : D && (F += "th");
4309
+ F = (j ? ", " : "") + w(we, !1, !1) + " " + S[J - 1], K > 0 ? F += w(K, !0, O) : O && (F += "th");
4310
4310
  }
4311
4311
  return F;
4312
4312
  }, N = w(v, !1, T);
@@ -4329,11 +4329,11 @@ function js() {
4329
4329
  let N = [0];
4330
4330
  return w.forEach((j) => {
4331
4331
  if (j < 100) {
4332
- let D = N.pop();
4333
- D >= 1e3 && (N.push(D), D = 0), N.push(D + j);
4332
+ let O = N.pop();
4333
+ O >= 1e3 && (N.push(O), O = 0), N.push(O + j);
4334
4334
  } else
4335
4335
  N.push(N.pop() * j);
4336
- }), N.reduce((j, D) => j + D, 0);
4336
+ }), N.reduce((j, O) => j + O, 0);
4337
4337
  }
4338
4338
  const ae = [
4339
4339
  [1e3, "m"],
@@ -4425,7 +4425,7 @@ function js() {
4425
4425
  w = w.substr(0, we) + ge.character + w.substr(we);
4426
4426
  });
4427
4427
  if (T.ordinal) {
4428
- var D = { 1: "st", 2: "nd", 3: "rd" }, F = w[w.length - 1], J = D[F];
4428
+ var O = { 1: "st", 2: "nd", 3: "rd" }, F = w[w.length - 1], J = O[F];
4429
4429
  (!J || w.length > 1 && w[w.length - 2] === "1") && (J = "th"), w = w + J;
4430
4430
  }
4431
4431
  break;
@@ -4470,13 +4470,13 @@ function js() {
4470
4470
  T.primary = E.WORDS;
4471
4471
  break;
4472
4472
  default: {
4473
- let j = null, D = 0, F = 0, J = [], ge = 0;
4473
+ let j = null, O = 0, F = 0, J = [], ge = 0;
4474
4474
  if (f(w).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];
4478
4478
  if (K >= G && K <= G + 9) {
4479
- if (ee = !0, D++, ge++, j === null)
4479
+ if (ee = !0, O++, ge++, j === null)
4480
4480
  j = G;
4481
4481
  else if (G !== j)
4482
4482
  throw {
@@ -4489,8 +4489,8 @@ function js() {
4489
4489
  position: ge,
4490
4490
  character: String.fromCodePoint(K)
4491
4491
  }));
4492
- }), D > 0) {
4493
- T.primary = E.DECIMAL, T.zeroCode = j, T.mandatoryDigits = D, T.optionalDigits = F;
4492
+ }), O > 0) {
4493
+ T.primary = E.DECIMAL, T.zeroCode = j, T.mandatoryDigits = O, T.optionalDigits = F;
4494
4494
  const ee = function(me) {
4495
4495
  if (me.length === 0)
4496
4496
  return 0;
@@ -4560,7 +4560,7 @@ function js() {
4560
4560
  };
4561
4561
  let ee = v.substring(U + 1, j);
4562
4562
  ee = ee.split(/\s+/).join("");
4563
- var D = {
4563
+ var O = {
4564
4564
  type: "marker",
4565
4565
  component: ee.charAt(0)
4566
4566
  // 1. The component specifier is always present and is always a single letter.
@@ -4577,38 +4577,38 @@ function js() {
4577
4577
  min: qe(Ze),
4578
4578
  max: qe(it)
4579
4579
  };
4580
- D.width = Le, J = ee.substring(1, F);
4580
+ O.width = Le, J = ee.substring(1, F);
4581
4581
  } else
4582
4582
  J = ee.substring(1);
4583
4583
  if (J.length === 1)
4584
- D.presentation1 = J;
4584
+ O.presentation1 = J;
4585
4585
  else if (J.length > 1) {
4586
4586
  var ge = J.charAt(J.length - 1);
4587
- "atco".indexOf(ge) !== -1 ? (D.presentation2 = ge, ge === "o" && (D.ordinal = !0), D.presentation1 = J.substring(0, J.length - 1)) : D.presentation1 = J;
4587
+ "atco".indexOf(ge) !== -1 ? (O.presentation2 = ge, ge === "o" && (O.ordinal = !0), O.presentation1 = J.substring(0, J.length - 1)) : O.presentation1 = J;
4588
4588
  } else
4589
- D.presentation1 = Te[D.component];
4590
- if (typeof D.presentation1 > "u")
4589
+ O.presentation1 = Te[O.component];
4590
+ if (typeof O.presentation1 > "u")
4591
4591
  throw {
4592
4592
  code: "D3132",
4593
- value: D.component
4593
+ value: O.component
4594
4594
  };
4595
- if (D.presentation1[0] === "n")
4596
- D.names = L.LOWER;
4597
- else if (D.presentation1[0] === "N")
4598
- D.presentation1[1] === "n" ? D.names = L.TITLE : D.names = L.UPPER;
4599
- else if ("YMDdFWwXxHhmsf".indexOf(D.component) !== -1) {
4600
- var we = D.presentation1;
4601
- if (D.presentation2 && (we += ";" + D.presentation2), D.integerFormat = xe(we), D.width && D.width.min !== void 0 && D.integerFormat.mandatoryDigits < D.width.min && (D.integerFormat.mandatoryDigits = D.width.min), D.component === "Y")
4602
- if (D.n = -1, D.width && D.width.max !== void 0)
4603
- D.n = D.width.max, D.integerFormat.mandatoryDigits = D.n;
4595
+ if (O.presentation1[0] === "n")
4596
+ O.names = L.LOWER;
4597
+ else if (O.presentation1[0] === "N")
4598
+ O.presentation1[1] === "n" ? O.names = L.TITLE : O.names = L.UPPER;
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")
4602
+ if (O.n = -1, O.width && O.width.max !== void 0)
4603
+ O.n = O.width.max, O.integerFormat.mandatoryDigits = O.n;
4604
4604
  else {
4605
- var K = D.integerFormat.mandatoryDigits + D.integerFormat.optionalDigits;
4606
- K >= 2 && (D.n = K);
4605
+ var K = O.integerFormat.mandatoryDigits + O.integerFormat.optionalDigits;
4606
+ K >= 2 && (O.n = K);
4607
4607
  }
4608
4608
  const me = T[T.length - 1];
4609
4609
  me && me.integerFormat && (me.integerFormat.parseWidth = me.integerFormat.mandatoryDigits);
4610
4610
  }
4611
- (D.component === "Z" || D.component === "z") && (D.integerFormat = xe(D.presentation1)), T.push(D), U = j + 1;
4611
+ (O.component === "Z" || O.component === "z") && (O.integerFormat = xe(O.presentation1)), T.push(O), U = j + 1;
4612
4612
  }
4613
4613
  j++;
4614
4614
  }
@@ -4659,38 +4659,38 @@ function js() {
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());
4662
- let D = tt(U, j);
4663
- if (D > 52) {
4662
+ let O = tt(U, j);
4663
+ if (O > 52) {
4664
4664
  const F = _e(N.nextYear());
4665
- j >= F && (D = 1);
4666
- } else if (D < 1) {
4665
+ j >= F && (O = 1);
4666
+ } else if (O < 1) {
4667
4667
  const F = _e(N.previousYear());
4668
- D = tt(F, j);
4668
+ O = tt(F, j);
4669
4669
  }
4670
- w = Math.floor(D);
4670
+ w = Math.floor(O);
4671
4671
  break;
4672
4672
  }
4673
4673
  case "w": {
4674
4674
  const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = Date.UTC(N.year, N.month, v.getUTCDate());
4675
- let D = tt(U, j);
4676
- if (D > 4) {
4675
+ let O = tt(U, j);
4676
+ if (O > 4) {
4677
4677
  const F = _e(N.nextMonth());
4678
- j >= F && (D = 1);
4679
- } else if (D < 1) {
4678
+ j >= F && (O = 1);
4679
+ } else if (O < 1) {
4680
4680
  const F = _e(N.previousMonth());
4681
- D = tt(F, j);
4681
+ O = tt(F, j);
4682
4682
  }
4683
- w = Math.floor(D);
4683
+ w = Math.floor(O);
4684
4684
  break;
4685
4685
  }
4686
4686
  case "X": {
4687
- const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = _e(N.nextYear()), D = v.getTime();
4688
- D < U ? w = N.year - 1 : D >= j ? w = N.year + 1 : w = N.year;
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;
4689
4689
  break;
4690
4690
  }
4691
4691
  case "x": {
4692
- const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = N.nextMonth(), D = _e(j), F = v.getTime();
4693
- F < U ? w = N.previousMonth().month + 1 : F >= D ? w = j.month + 1 : w = N.month + 1;
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;
4694
4694
  break;
4695
4695
  }
4696
4696
  case "H":
@@ -4769,11 +4769,11 @@ function js() {
4769
4769
  } else K.component === "P" && K.names === L.UPPER && (ee = ee.toUpperCase());
4770
4770
  return ee;
4771
4771
  };
4772
- let D;
4773
- typeof T > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), D = Fe) : D = Ae(T);
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);
4774
4774
  const F = (60 * N + U) * 60 * 1e3, J = new Date(v + F);
4775
4775
  let ge = "";
4776
- return D.parts.forEach(function(we) {
4776
+ return O.parts.forEach(function(we) {
4777
4777
  we.type === "literal" ? ge += we.value : ge += j(J, we);
4778
4778
  }), ge;
4779
4779
  }
@@ -4786,10 +4786,10 @@ function js() {
4786
4786
  N.regex = w.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4787
4787
  else if (w.component === "Z" || w.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(D) {
4790
- w.component === "z" && (D = D.substring(3));
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));
4791
4791
  let F = 0, J = 0;
4792
- return j ? (F = Number.parseInt(D.substring(0, D.indexOf(j.character))), J = Number.parseInt(D.substring(D.indexOf(j.character) + 1))) : D.length - 1 <= 2 ? F = Number.parseInt(D) : (F = Number.parseInt(D.substring(0, 3)), J = Number.parseInt(D.substring(3))), F * 60 + J;
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
4794
  } else if (w.integerFormat)
4795
4795
  N = d(w.integerFormat);
@@ -4797,12 +4797,12 @@ function js() {
4797
4797
  N.regex = "[a-zA-Z]+";
4798
4798
  var U = {};
4799
4799
  if (w.component === "M" || w.component === "x")
4800
- Re.forEach(function(j, D) {
4801
- w.width && w.width.max ? U[j.substring(0, w.width.max)] = D + 1 : U[j] = D + 1;
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;
4802
4802
  });
4803
4803
  else if (w.component === "F")
4804
- ve.forEach(function(j, D) {
4805
- D > 0 && (w.width && w.width.max ? U[j.substring(0, w.width.max)] = D : U[j] = D);
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);
4806
4806
  });
4807
4807
  else if (w.component === "P")
4808
4808
  U = { am: 0, AM: 0, pm: 1, PM: 1 };
@@ -4861,12 +4861,12 @@ function js() {
4861
4861
  }
4862
4862
  function V(v, T) {
4863
4863
  const w = Ae(T), N = d(w), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
4864
- var D = new RegExp(U, "i").exec(v);
4865
- if (D !== null) {
4864
+ var O = new RegExp(U, "i").exec(v);
4865
+ if (O !== null) {
4866
4866
  const G = {};
4867
- for (let De = 1; De < D.length; De++) {
4867
+ for (let De = 1; De < O.length; De++) {
4868
4868
  const u = N.parts[De - 1];
4869
- u.parse && (G[u.component] = u.parse(D[De]));
4869
+ u.parse && (G[u.component] = u.parse(O[De]));
4870
4870
  }
4871
4871
  if (Object.getOwnPropertyNames(G).length === 0)
4872
4872
  return;
@@ -5405,18 +5405,18 @@ function js() {
5405
5405
  if (Ue.minimumExponentSize === 0)
5406
5406
  Mt = Xt;
5407
5407
  else {
5408
- var En = Math.pow(10, Ue.scalingFactor), Tn = Math.pow(10, Ue.scalingFactor - 1);
5409
- for (Mt = Xt, Zt = 0; Mt < Tn; )
5408
+ var Tn = Math.pow(10, Ue.scalingFactor), An = Math.pow(10, Ue.scalingFactor - 1);
5409
+ for (Mt = Xt, Zt = 0; Mt < An; )
5410
5410
  Mt *= 10, Zt -= 1;
5411
- for (; Mt > En; )
5411
+ for (; Mt > Tn; )
5412
5412
  Mt /= 10, Zt += 1;
5413
5413
  }
5414
- var An = F(Mt, Ue.maximumFactionalPartSize), zr = function(re, Me) {
5414
+ var Sn = 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(An, Ue.maximumFactionalPartSize), Ge = ce.indexOf(".");
5419
+ }, ce = zr(Sn, 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 js() {
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 Sn = Math.floor((Ge - 1) / Ue.regularGrouping), gr = 1; gr <= Sn; gr++)
5427
+ for (var Dn = Math.floor((Ge - 1) / Ue.regularGrouping), gr = 1; gr <= Dn; gr++)
5428
5428
  ce = [ce.slice(0, Ge - gr * Ue.regularGrouping), Bt, ce.slice(Ge - gr * Ue.regularGrouping)].join("");
5429
5429
  else
5430
5430
  Ue.integerPartGroupingPositions.forEach(function(re) {
@@ -5484,7 +5484,7 @@ function js() {
5484
5484
  if (!(typeof n > "u"))
5485
5485
  return o = Math.floor(n), o;
5486
5486
  }
5487
- function D(n) {
5487
+ function O(n) {
5488
5488
  var o;
5489
5489
  if (!(typeof n > "u"))
5490
5490
  return o = Math.ceil(n), o;
@@ -5804,7 +5804,7 @@ function js() {
5804
5804
  formatBase: w,
5805
5805
  number: N,
5806
5806
  floor: j,
5807
- ceil: D,
5807
+ ceil: O,
5808
5808
  round: F,
5809
5809
  abs: U,
5810
5810
  sqrt: J,
@@ -5879,7 +5879,7 @@ function js() {
5879
5879
  n = await j(u, h, y);
5880
5880
  break;
5881
5881
  case "block":
5882
- n = await D(u, h, y);
5882
+ n = await O(u, h, y);
5883
5883
  break;
5884
5884
  case "bind":
5885
5885
  n = await U(u, h, y);
@@ -6329,7 +6329,7 @@ function js() {
6329
6329
  var n, o = await L(u.condition, h, y);
6330
6330
  return c.boolean(o) ? n = await L(u.then, h, y) : typeof u.else < "u" && (n = await L(u.else, h, y)), n;
6331
6331
  }
6332
- async function D(u, h, y) {
6332
+ async function O(u, h, y) {
6333
6333
  for (var n, o = ct(y), l = 0; l < u.expressions.length; l++)
6334
6334
  n = await L(u.expressions[l], h, o);
6335
6335
  return n;
@@ -7531,14 +7531,14 @@ function js() {
7531
7531
  default:
7532
7532
  var j = "S0206";
7533
7533
  d.id === "(end)" && (j = "S0207");
7534
- var D = {
7534
+ var O = {
7535
7535
  code: j,
7536
7536
  position: d.position,
7537
7537
  token: d.value
7538
7538
  };
7539
7539
  if (x)
7540
- return Q.push(D), { type: "error", error: D };
7541
- throw D.stack = new Error().stack, D;
7540
+ return Q.push(O), { type: "error", error: O };
7541
+ throw O.stack = new Error().stack, O;
7542
7542
  }
7543
7543
  return d.keepArray && (m.keepArray = !0), m;
7544
7544
  };
@@ -7869,21 +7869,21 @@ function js() {
7869
7869
  });
7870
7870
  })(Cr)), Cr.exports;
7871
7871
  }
7872
- var Fs = js();
7873
- const Us = /* @__PURE__ */ Is(Fs), xn = O.object({
7874
- name: O.literal("transform-data"),
7875
- sourceData: O.any().optional(),
7876
- expression: O.string().min(1, "JSONata expression is required")
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")
7877
7877
  });
7878
- function $s(r) {
7878
+ function Ls(r) {
7879
7879
  return xn.parse(r);
7880
7880
  }
7881
- async function Ls(r) {
7881
+ async function Bs(r) {
7882
7882
  try {
7883
7883
  const { sourceData: e, expression: t } = r, a = e ?? {};
7884
7884
  let s;
7885
7885
  try {
7886
- s = Us(t);
7886
+ s = $s(t);
7887
7887
  } catch (c) {
7888
7888
  throw new Error(
7889
7889
  `Invalid JSONata expression: ${c instanceof Error ? c.message : "Unknown error"}`
@@ -7908,7 +7908,48 @@ async function Ls(r) {
7908
7908
  };
7909
7909
  }
7910
7910
  }
7911
- const Js = {
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()
7919
+ }).optional()
7920
+ });
7921
+ function Zs(r) {
7922
+ return _n.parse(r);
7923
+ }
7924
+ async function zs(r) {
7925
+ try {
7926
+ const { data: e, format: t, filename: a, csvOptions: s } = r;
7927
+ console.log("[ExportDataBlock] Sending export request to background:", t);
7928
+ const i = await chrome.runtime.sendMessage({
7929
+ type: "EXPORT_DATA",
7930
+ data: {
7931
+ data: e,
7932
+ format: t,
7933
+ filename: a,
7934
+ csvOptions: s
7935
+ }
7936
+ });
7937
+ return i.$isError ? {
7938
+ hasError: !0,
7939
+ message: i.message || "Export failed",
7940
+ data: void 0
7941
+ } : (console.log("[ExportDataBlock] Export successful:", i.data.filename), {
7942
+ data: i.data
7943
+ });
7944
+ } catch (e) {
7945
+ return console.error("[ExportDataBlock] Export error:", e), {
7946
+ hasError: !0,
7947
+ message: e instanceof Error ? e.message : "Unknown error in export-data handler",
7948
+ data: void 0
7949
+ };
7950
+ }
7951
+ }
7952
+ const ei = {
7912
7953
  "get-text": sn,
7913
7954
  "attribute-value": cn,
7914
7955
  "get-value-form": un,
@@ -7925,80 +7966,85 @@ const Js = {
7925
7966
  scroll: wn,
7926
7967
  "ai-parse-data": an,
7927
7968
  "fetch-api": kn,
7928
- "transform-data": xn
7969
+ "transform-data": xn,
7970
+ "export-data": _n
7929
7971
  };
7930
- class Xs {
7972
+ class ti {
7931
7973
  // Implementation
7932
7974
  static async executeBlock(e) {
7933
7975
  try {
7934
7976
  switch (e.name) {
7935
7977
  case "get-text": {
7936
- const t = Va(e);
7937
- return await qa(t);
7978
+ const t = qa(e);
7979
+ return await Ha(t);
7938
7980
  }
7939
7981
  case "attribute-value": {
7940
- const t = Ga(e);
7941
- return await Ya(t);
7982
+ const t = Ya(e);
7983
+ return await Ka(t);
7942
7984
  }
7943
7985
  case "get-value-form": {
7944
- const t = Ka(e);
7945
- return await Ja(t);
7986
+ const t = Ja(e);
7987
+ return await Xa(t);
7946
7988
  }
7947
7989
  case "set-value-form": {
7948
- const t = Qa(e);
7949
- return await es(t);
7990
+ const t = es(e);
7991
+ return await ts(t);
7950
7992
  }
7951
7993
  case "clear-value-form": {
7952
- const t = rs(e);
7953
- return await ns(t);
7994
+ const t = ns(e);
7995
+ return await as(t);
7954
7996
  }
7955
7997
  case "element-exists": {
7956
- const t = ss(e);
7957
- return await is(t);
7998
+ const t = is(e);
7999
+ return await os(t);
7958
8000
  }
7959
8001
  case "event-click": {
7960
- const t = os(e);
7961
- return await cs(t);
8002
+ const t = cs(e);
8003
+ return await us(t);
7962
8004
  }
7963
8005
  case "keypress": {
7964
- const t = ds(e);
7965
- return await hs(t);
8006
+ const t = hs(e);
8007
+ return await ps(t);
7966
8008
  }
7967
8009
  case "wait": {
7968
- const t = ms(e);
7969
- return await ys(t);
8010
+ const t = ys(e);
8011
+ return await gs(t);
7970
8012
  }
7971
8013
  case "wait-for-condition": {
7972
- const t = gs(e);
7973
- return await vs(t);
8014
+ const t = vs(e);
8015
+ return await bs(t);
7974
8016
  }
7975
8017
  case "navigate": {
7976
- const t = bs(e);
7977
- return await ws(t);
8018
+ const t = ws(e);
8019
+ return await ks(t);
7978
8020
  }
7979
8021
  case "save-assets": {
7980
- const t = ks(e);
7981
- return await xs(t);
8022
+ const t = xs(e);
8023
+ return await _s(t);
7982
8024
  }
7983
8025
  case "get-element-data": {
7984
- const t = Es(e);
7985
- return await Ts(t);
8026
+ const t = Ts(e);
8027
+ return await As(t);
7986
8028
  }
7987
8029
  case "scroll": {
7988
- const t = Ss(e);
7989
- return await Ds(t);
8030
+ const t = Ds(e);
8031
+ return await Os(t);
7990
8032
  }
7991
8033
  case "ai-parse-data": {
7992
- const t = Fa(e);
7993
- return await Ua(t);
8034
+ const t = Ua(e);
8035
+ return await $a(t);
7994
8036
  }
7995
8037
  case "fetch-api": {
7996
- const t = Rs(e);
7997
- return await Ms(t);
8038
+ const t = Ms(e);
8039
+ return await Is(t);
7998
8040
  }
7999
8041
  case "transform-data": {
8000
- const t = $s(e);
8001
- return await Ls(t);
8042
+ const t = Ls(e);
8043
+ return await Bs(t);
8044
+ }
8045
+ case "export-data": {
8046
+ const t = Zs(e);
8047
+ return await zs(t);
8002
8048
  }
8003
8049
  default:
8004
8050
  return {
@@ -8016,20 +8062,20 @@ class Xs {
8016
8062
  }
8017
8063
  }
8018
8064
  }
8019
- class Qs {
8065
+ class ri {
8020
8066
  constructor() {
8021
8067
  ue(this, "expr");
8022
8068
  ue(this, "json");
8023
8069
  }
8024
8070
  }
8025
- class ei {
8071
+ class ni {
8026
8072
  constructor() {
8027
8073
  ue(this, "template");
8028
8074
  ue(this, "valueFrom");
8029
8075
  ue(this, "default");
8030
8076
  }
8031
8077
  }
8032
- class ti {
8078
+ class ai {
8033
8079
  constructor() {
8034
8080
  ue(this, "id");
8035
8081
  ue(this, "title");
@@ -8047,7 +8093,7 @@ class ti {
8047
8093
  ue(this, "delayAfterMs");
8048
8094
  }
8049
8095
  }
8050
- class ri {
8096
+ class si {
8051
8097
  constructor() {
8052
8098
  ue(this, "version");
8053
8099
  ue(this, "id");
@@ -8060,7 +8106,7 @@ class ri {
8060
8106
  ue(this, "defaultDelayMs");
8061
8107
  }
8062
8108
  }
8063
- class ni {
8109
+ class ii {
8064
8110
  constructor() {
8065
8111
  ue(this, "stepId");
8066
8112
  ue(this, "skipped");
@@ -8072,7 +8118,7 @@ class ni {
8072
8118
  ue(this, "attempts");
8073
8119
  }
8074
8120
  }
8075
- class ai {
8121
+ class oi {
8076
8122
  constructor() {
8077
8123
  ue(this, "success");
8078
8124
  ue(this, "steps");
@@ -8083,7 +8129,7 @@ class ai {
8083
8129
  }
8084
8130
  }
8085
8131
  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 || {});
8086
- const Bs = {
8132
+ const Ws = {
8087
8133
  code: {
8088
8134
  type: "string",
8089
8135
  enum: Object.values(Zr),
@@ -8160,10 +8206,10 @@ class lt extends Error {
8160
8206
  );
8161
8207
  }
8162
8208
  }
8163
- function Zs(r) {
8209
+ function Vs(r) {
8164
8210
  return r && r.type === "8G_EXTENSION_RESPONSE";
8165
8211
  }
8166
- const zs = Rt({
8212
+ const qs = Rt({
8167
8213
  // 워크스페이스 이름
8168
8214
  name: $e(),
8169
8215
  // 워크스페이스를 구분할 수 있는 구분자, ex) slug 같은 것들 01republic
@@ -8171,7 +8217,7 @@ const zs = Rt({
8171
8217
  // 워크스페이스의 프로필 이미지
8172
8218
  image: $e()
8173
8219
  });
8174
- var _n = /* @__PURE__ */ ((r) => (r.monthly = "MONTHLY", r.yearly = "YEARLY", r))(_n || {});
8220
+ var En = /* @__PURE__ */ ((r) => (r.monthly = "MONTHLY", r.yearly = "YEARLY", r))(En || {});
8175
8221
  const Ur = Rt({
8176
8222
  // 통화 코드
8177
8223
  code: Br(Zr),
@@ -8183,7 +8229,7 @@ const Ur = Rt({
8183
8229
  amount: Kt(),
8184
8230
  // 표시용 텍스트 (optional, 예: "US$57.75")
8185
8231
  text: $e().optional()
8186
- }), Ws = Rt({
8232
+ }), Hs = Rt({
8187
8233
  // 플랜 이름
8188
8234
  planName: $e(),
8189
8235
  // 현재 주기 결제 금액
@@ -8191,7 +8237,7 @@ const Ur = Rt({
8191
8237
  // 다음 결제 예정일
8192
8238
  nextPaymentDue: $e(),
8193
8239
  // 주기 단위
8194
- cycleTerm: Br(_n).nullable(),
8240
+ cycleTerm: Br(En).nullable(),
8195
8241
  // 무료 티어 여부
8196
8242
  isFreeTier: Ct(),
8197
8243
  // 플랜 단위 여부
@@ -8222,7 +8268,7 @@ const Ur = Rt({
8222
8268
  소지자
8223
8269
  비고
8224
8270
  */
8225
- }), Vs = Rt({
8271
+ }), Gs = Rt({
8226
8272
  // 결제 이력 고유 아이디
8227
8273
  uid: $e(),
8228
8274
  // 결제 일자
@@ -8237,7 +8283,7 @@ const Ur = Rt({
8237
8283
  isSuccessfulPaid: Ct(),
8238
8284
  // 결제 영수증 링크
8239
8285
  receiptUrl: $e()
8240
- }), qs = Rt({
8286
+ }), Ys = Rt({
8241
8287
  // 멤버 이름
8242
8288
  name: $e(),
8243
8289
  // 멤버 이메일
@@ -8251,7 +8297,7 @@ const Ur = Rt({
8251
8297
  // 멤버 구독 좌석 상태
8252
8298
  subscriptionSeatStatus: Lr(["FREE", "PAID"]).nullable().optional()
8253
8299
  });
8254
- class si {
8300
+ class ci {
8255
8301
  constructor() {
8256
8302
  }
8257
8303
  /**
@@ -8262,7 +8308,7 @@ class si {
8262
8308
  const a = setTimeout(() => {
8263
8309
  t(lt.extensionNotInstalled());
8264
8310
  }, 5e3), s = (i) => {
8265
- Zs(i.data) && (clearTimeout(a), window.removeEventListener("message", s), e(i.data));
8311
+ Vs(i.data) && (clearTimeout(a), window.removeEventListener("message", s), e(i.data));
8266
8312
  };
8267
8313
  window.addEventListener("message", s), window.postMessage({ type: "8G_EXTENSION_CHECK" }, "*");
8268
8314
  });
@@ -8313,7 +8359,7 @@ class si {
8313
8359
  };
8314
8360
  const s = [];
8315
8361
  for (const f of a) {
8316
- const b = zs.safeParse(f);
8362
+ const b = qs.safeParse(f);
8317
8363
  b.success ? s.push(b.data) : console.warn("Invalid workspace data:", f, b.error);
8318
8364
  }
8319
8365
  return {
@@ -8335,7 +8381,7 @@ class si {
8335
8381
  const s = (f = (c = a.steps[a.steps.length - 1]) == null ? void 0 : c.result) == null ? void 0 : f.data;
8336
8382
  if (!s)
8337
8383
  return { ...a };
8338
- const i = Ws.safeParse(s);
8384
+ const i = Hs.safeParse(s);
8339
8385
  if (i.success) {
8340
8386
  const b = i.data;
8341
8387
  return { ...a, ...b };
@@ -8357,7 +8403,7 @@ class si {
8357
8403
  return { ...a, data: [] };
8358
8404
  const i = [];
8359
8405
  for (const b of s) {
8360
- const k = Vs.safeParse(b);
8406
+ const k = Gs.safeParse(b);
8361
8407
  k.success ? i.push(k.data) : console.warn("Invalid workspace billing history data:", b, k.error);
8362
8408
  }
8363
8409
  return { ...a, data: i };
@@ -8377,7 +8423,7 @@ class si {
8377
8423
  return { ...a, data: [] };
8378
8424
  const i = [];
8379
8425
  for (const b of s) {
8380
- const k = qs.safeParse(b);
8426
+ const k = Ys.safeParse(b);
8381
8427
  k.success ? i.push(k.data) : console.warn("Invalid workspace member data:", b, k.error);
8382
8428
  }
8383
8429
  return { ...a, data: i };
@@ -8405,20 +8451,21 @@ class si {
8405
8451
  }
8406
8452
  export {
8407
8453
  an as AiParseDataBlockSchema,
8408
- Js as AllBlockSchemas,
8454
+ ei as AllBlockSchemas,
8409
8455
  bt as BaseBlockSchema,
8410
- _n as BillingCycleTerm,
8411
- ei as Binding,
8412
- Xs as BlockHandler,
8456
+ En as BillingCycleTerm,
8457
+ ni as Binding,
8458
+ ti as BlockHandler,
8413
8459
  fn as ClearValueFormsBlockSchema,
8414
- ai as CollectWorkflowResult,
8415
- Qs as Condition,
8460
+ oi as CollectWorkflowResult,
8461
+ ri as Condition,
8416
8462
  Zr as CurrencyCode,
8417
- Bs as CurrencyInfoSchema,
8418
- si as EightGClient,
8463
+ Ws as CurrencyInfoSchema,
8464
+ ci as EightGClient,
8419
8465
  lt as EightGError,
8420
8466
  dn as ElementExistsBlockSchema,
8421
8467
  hn as EventClickBlockSchema,
8468
+ _n as ExportDataBlockSchema,
8422
8469
  kn as FetchApiBlockSchema,
8423
8470
  cn as GetAttributeValueBlockSchema,
8424
8471
  bn as GetElementDataBlockSchema,
@@ -8427,19 +8474,19 @@ export {
8427
8474
  pn as KeypressBlockSchema,
8428
8475
  gn as NavigateBlockSchema,
8429
8476
  vn as SaveAssetsBlockSchema,
8430
- Ks as Schema,
8477
+ Qs as Schema,
8431
8478
  wn as ScrollBlockSchema,
8432
8479
  ln as SetValueFormsBlockSchema,
8433
8480
  xn as TransformDataBlockSchema,
8434
8481
  mn as WaitBlockSchema,
8435
8482
  yn as WaitForConditionBlockSchema,
8436
- ri as Workflow,
8437
- ti as WorkflowStep,
8438
- ni as WorkflowStepRunResult,
8439
- Vs as WorkspaceBillingHistorySchema,
8440
- Ws as WorkspaceBillingSchema,
8441
- zs as WorkspaceItemSchema,
8442
- qs as WorkspaceMemberSchema,
8443
- Ys as createArraySchema,
8444
- Gs as createSchema
8483
+ si as Workflow,
8484
+ ai as WorkflowStep,
8485
+ ii as WorkflowStepRunResult,
8486
+ Gs as WorkspaceBillingHistorySchema,
8487
+ Hs as WorkspaceBillingSchema,
8488
+ qs as WorkspaceItemSchema,
8489
+ Ys as WorkspaceMemberSchema,
8490
+ Xs as createArraySchema,
8491
+ Js as createSchema
8445
8492
  };