@bootpay/client-js 5.2.0-beta.4 → 5.2.0-beta.6

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/index.es.js CHANGED
@@ -15,8 +15,8 @@ const te = {
15
15
  }), re = (r) => {
16
16
  let e = !1;
17
17
  return typeof r == "string" || Array.isArray(r) ? e = r.length === 0 : e = r == null || tt(r, "object") && r.constructor === Object && Object.keys(r).length === 0, e;
18
- }, M = (r) => !re(r), tt = (r, e) => typeof r === e, As = (r, e = void 0) => {
19
- if (M(e)) {
18
+ }, q = (r) => !re(r), tt = (r, e) => typeof r === e, As = (r, e = void 0) => {
19
+ if (q(e)) {
20
20
  const t = typeof e != "string" ? new URLSearchParams(JSON.parse(JSON.stringify(e))).toString() : e;
21
21
  return /\?/.test(r) ? `${r}&${t}` : `${r}?${t}`;
22
22
  } else
@@ -432,8 +432,8 @@ function z() {
432
432
  l ? R = s.ceil(R) : R = s.max((R | 0) - this._minBufferSize, 0);
433
433
  var _ = R * k, w = s.min(_ * 4, E);
434
434
  if (_) {
435
- for (var P = 0; P < _; P += k)
436
- this._doProcessBlock(b, P);
435
+ for (var B = 0; B < _; B += k)
436
+ this._doProcessBlock(b, B);
437
437
  h = b.splice(0, _), m.sigBytes -= w;
438
438
  }
439
439
  return new y.init(h, w);
@@ -644,7 +644,7 @@ function Ce() {
644
644
  }(_t)), _t.exports;
645
645
  }
646
646
  var Ns = Ce();
647
- const Pe = /* @__PURE__ */ Me(Ns);
647
+ const Be = /* @__PURE__ */ Me(Ns);
648
648
  class qe {
649
649
  $blank(e) {
650
650
  return re(e);
@@ -659,10 +659,10 @@ class qe {
659
659
  return X0();
660
660
  }
661
661
  $encrypt(e) {
662
- return this.$type(e, "object") && (e = JSON.stringify(e)), Pe.stringify(jr.parse(e));
662
+ return this.$type(e, "object") && (e = JSON.stringify(e)), Be.stringify(jr.parse(e));
663
663
  }
664
664
  $decrypt(e) {
665
- return jr.stringify(Pe.parse(e));
665
+ return jr.stringify(Be.parse(e));
666
666
  }
667
667
  getUserAgent() {
668
668
  return window.navigator.userAgent;
@@ -861,7 +861,7 @@ class Ms extends Ls {
861
861
  }
862
862
  }
863
863
  }
864
- const Be = new Ms(), qs = "@bootpay/client-js", Ws = "5.2.0-beta.4", zs = "dist/index.es.js", js = "dist/src/index.d.ts", Ks = "dist/index.css", Gs = {
864
+ const Pe = new Ms(), qs = "@bootpay/client-js", Ws = "5.2.0-beta.6", zs = "dist/index.es.js", js = "dist/src/index.d.ts", Ks = "dist/index.css", Gs = {
865
865
  test: 'echo "Error: no test specified" && exit 1',
866
866
  build: "rm -rf ./dist && vite build",
867
867
  deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
@@ -1017,7 +1017,7 @@ const ke = {
1017
1017
  return re(ke.__BOOTPAY_NAMESPACE) && (ke.__BOOTPAY_NAMESPACE = {}), this.addEventListener(r.split(".")[0], e, t || !1), ke.__BOOTPAY_NAMESPACE[r] = e, this;
1018
1018
  },
1019
1019
  off(r) {
1020
- return M(ke.__BOOTPAY_NAMESPACE) && M(ke.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], ke.__BOOTPAY_NAMESPACE[r]), this;
1020
+ return q(ke.__BOOTPAY_NAMESPACE) && q(ke.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], ke.__BOOTPAY_NAMESPACE[r]), this;
1021
1021
  }
1022
1022
  };
1023
1023
  class ut extends qe {
@@ -1027,9 +1027,9 @@ class ut extends qe {
1027
1027
  bind(e, t) {
1028
1028
  this.$messageEventName && window.resetBootpayEventListener(this.$messageEventName, (s) => {
1029
1029
  const i = this.parseEvent(s.data);
1030
- if (F.debug("event received", JSON.stringify(i)), M(i) && M(i.event)) {
1030
+ if (F.debug("event received", JSON.stringify(i)), q(i) && q(i.event)) {
1031
1031
  const n = this.hookFunction(i.hook);
1032
- if (M(n) && M(n[i.event]))
1032
+ if (q(n) && q(n[i.event]))
1033
1033
  return n[i.event](i.data, this);
1034
1034
  F.debug("event", `${this.$messageEventName}: ${i.event} is not defined`);
1035
1035
  }
@@ -1039,10 +1039,10 @@ class ut extends qe {
1039
1039
  return this.$eventHooks[e];
1040
1040
  }
1041
1041
  reject(e) {
1042
- M(this.$reject) && this.$reject(e);
1042
+ q(this.$reject) && this.$reject(e);
1043
1043
  }
1044
1044
  resolve(e) {
1045
- M(this.$resolve) && this.$resolve(e);
1045
+ q(this.$resolve) && this.$resolve(e);
1046
1046
  }
1047
1047
  /**
1048
1048
  * 함수를 class instnace variables에 넣는다
@@ -1445,7 +1445,7 @@ var We = Ne, ss = {
1445
1445
  forcedJSONParsing: !0,
1446
1446
  clarifyTimeoutError: !1
1447
1447
  }, ve = Q;
1448
- function Pi(r, e) {
1448
+ function Bi(r, e) {
1449
1449
  e = e || new FormData();
1450
1450
  var t = [];
1451
1451
  function s(n) {
@@ -1476,8 +1476,8 @@ function Pi(r, e) {
1476
1476
  }
1477
1477
  return i(r), e;
1478
1478
  }
1479
- var is = Pi, wt, Xr;
1480
- function Bi() {
1479
+ var is = Bi, wt, Xr;
1480
+ function Pi() {
1481
1481
  if (Xr) return wt;
1482
1482
  Xr = 1;
1483
1483
  var r = We;
@@ -1619,19 +1619,19 @@ function ft() {
1619
1619
  __CANCEL__: !0
1620
1620
  }), St = t, St;
1621
1621
  }
1622
- var Pt, Qr;
1622
+ var Bt, Qr;
1623
1623
  function Di() {
1624
- return Qr || (Qr = 1, Pt = function(e) {
1624
+ return Qr || (Qr = 1, Bt = function(e) {
1625
1625
  var t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1626
1626
  return t && t[1] || "";
1627
- }), Pt;
1627
+ }), Bt;
1628
1628
  }
1629
- var Bt, e0;
1629
+ var Pt, e0;
1630
1630
  function t0() {
1631
- if (e0) return Bt;
1631
+ if (e0) return Pt;
1632
1632
  e0 = 1;
1633
- var r = Q, e = Bi(), t = Ii(), s = Q0, i = ns, n = Oi(), x = Ui(), d = ss, p = We, a = ft(), c = Di();
1634
- return Bt = function(o) {
1633
+ var r = Q, e = Pi(), t = Ii(), s = Q0, i = ns, n = Oi(), x = Ui(), d = ss, p = We, a = ft(), c = Di();
1634
+ return Pt = function(o) {
1635
1635
  return new Promise(function(f, v) {
1636
1636
  var g = o.data, $ = o.headers, l = o.responseType, h;
1637
1637
  function m() {
@@ -1647,11 +1647,11 @@ function t0() {
1647
1647
  b.open(o.method.toUpperCase(), s(S, o.params, o.paramsSerializer), !0), b.timeout = o.timeout;
1648
1648
  function R() {
1649
1649
  if (b) {
1650
- var P = "getAllResponseHeaders" in b ? n(b.getAllResponseHeaders()) : null, I = !l || l === "text" || l === "json" ? b.responseText : b.response, O = {
1650
+ var B = "getAllResponseHeaders" in b ? n(b.getAllResponseHeaders()) : null, I = !l || l === "text" || l === "json" ? b.responseText : b.response, O = {
1651
1651
  data: I,
1652
1652
  status: b.status,
1653
1653
  statusText: b.statusText,
1654
- headers: P,
1654
+ headers: B,
1655
1655
  config: o,
1656
1656
  request: b
1657
1657
  };
@@ -1682,8 +1682,8 @@ function t0() {
1682
1682
  }
1683
1683
  "setRequestHeader" in b && r.forEach($, function(I, O) {
1684
1684
  typeof g > "u" && O.toLowerCase() === "content-type" ? delete $[O] : b.setRequestHeader(O, I);
1685
- }), r.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), l && l !== "json" && (b.responseType = o.responseType), typeof o.onDownloadProgress == "function" && b.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (h = function(P) {
1686
- b && (v(!P || P && P.type ? new a() : P), b.abort(), b = null);
1685
+ }), r.isUndefined(o.withCredentials) || (b.withCredentials = !!o.withCredentials), l && l !== "json" && (b.responseType = o.responseType), typeof o.onDownloadProgress == "function" && b.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && b.upload && b.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (h = function(B) {
1686
+ b && (v(!B || B && B.type ? new a() : B), b.abort(), b = null);
1687
1687
  }, o.cancelToken && o.cancelToken.subscribe(h), o.signal && (o.signal.aborted ? h() : o.signal.addEventListener("abort", h))), g || (g = null);
1688
1688
  var w = c(S);
1689
1689
  if (w && ["http", "https", "file"].indexOf(w) === -1) {
@@ -1692,7 +1692,7 @@ function t0() {
1692
1692
  }
1693
1693
  b.send(g);
1694
1694
  });
1695
- }, Bt;
1695
+ }, Pt;
1696
1696
  }
1697
1697
  var It, r0;
1698
1698
  function Fi() {
@@ -1774,7 +1774,7 @@ Z.forEach(["delete", "get", "head"], function(e) {
1774
1774
  Z.forEach(["post", "put", "patch"], function(e) {
1775
1775
  ht.headers[e] = Z.merge(Li);
1776
1776
  });
1777
- var Pr = ht, Wi = Q, zi = Pr, ji = function(e, t, s) {
1777
+ var Br = ht, Wi = Q, zi = Br, ji = function(e, t, s) {
1778
1778
  var i = this || zi;
1779
1779
  return Wi.forEach(s, function(x) {
1780
1780
  e = x.call(i, e, t);
@@ -1785,7 +1785,7 @@ function os() {
1785
1785
  return !!(e && e.__CANCEL__);
1786
1786
  }), Ct;
1787
1787
  }
1788
- var a0 = Q, Tt = ji, Ki = os(), Gi = Pr, Xi = ft();
1788
+ var a0 = Q, Tt = ji, Ki = os(), Gi = Br, Xi = ft();
1789
1789
  function At(r) {
1790
1790
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
1791
1791
  throw new Xi();
@@ -1889,14 +1889,14 @@ function cs() {
1889
1889
  version: "0.27.2"
1890
1890
  }), Rt;
1891
1891
  }
1892
- var Yi = cs().version, we = We, Br = {};
1892
+ var Yi = cs().version, we = We, Pr = {};
1893
1893
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(r, e) {
1894
- Br[r] = function(s) {
1894
+ Pr[r] = function(s) {
1895
1895
  return typeof s === r || "a" + (e < 1 ? "n " : " ") + r;
1896
1896
  };
1897
1897
  });
1898
1898
  var d0 = {};
1899
- Br.transitional = function(e, t, s) {
1899
+ Pr.transitional = function(e, t, s) {
1900
1900
  function i(n, x) {
1901
1901
  return "[Axios v" + Yi + "] Transitional option '" + n + "'" + x + (s ? ". " + s : "");
1902
1902
  }
@@ -1931,7 +1931,7 @@ function Ji(r, e, t) {
1931
1931
  }
1932
1932
  var Zi = {
1933
1933
  assertOptions: Ji,
1934
- validators: Br
1934
+ validators: Pr
1935
1935
  }, ds = Q, Qi = Q0, l0 = Ei, u0 = Vi, xt = as, en = ns, ls = Zi, He = ls.validators;
1936
1936
  function Le(r) {
1937
1937
  this.defaults = r, this.interceptors = {
@@ -2081,7 +2081,7 @@ function nn() {
2081
2081
  return r.isObject(t) && t.isAxiosError === !0;
2082
2082
  }, Dt;
2083
2083
  }
2084
- var x0 = Q, on = Y0, dt = tn, an = as, cn = Pr;
2084
+ var x0 = Q, on = Y0, dt = tn, an = as, cn = Br;
2085
2085
  function us(r) {
2086
2086
  var e = new dt(r), t = on(dt.prototype.request, e);
2087
2087
  return x0.extend(t, dt.prototype, e), x0.extend(t, e), t.create = function(i) {
@@ -2132,8 +2132,8 @@ function Ae() {
2132
2132
  var l = g + $, h = v[l];
2133
2133
  v[l] = (h << 8 | h >>> 24) & 16711935 | (h << 24 | h >>> 8) & 4278255360;
2134
2134
  }
2135
- var m = this._hash.words, b = v[g + 0], E = v[g + 1], k = v[g + 2], S = v[g + 3], R = v[g + 4], _ = v[g + 5], w = v[g + 6], P = v[g + 7], I = v[g + 8], O = v[g + 9], U = v[g + 10], H = v[g + 11], Y = v[g + 12], j = v[g + 13], X = v[g + 14], K = v[g + 15], B = m[0], T = m[1], A = m[2], C = m[3];
2136
- B = y(B, T, A, C, b, 7, a[0]), C = y(C, B, T, A, E, 12, a[1]), A = y(A, C, B, T, k, 17, a[2]), T = y(T, A, C, B, S, 22, a[3]), B = y(B, T, A, C, R, 7, a[4]), C = y(C, B, T, A, _, 12, a[5]), A = y(A, C, B, T, w, 17, a[6]), T = y(T, A, C, B, P, 22, a[7]), B = y(B, T, A, C, I, 7, a[8]), C = y(C, B, T, A, O, 12, a[9]), A = y(A, C, B, T, U, 17, a[10]), T = y(T, A, C, B, H, 22, a[11]), B = y(B, T, A, C, Y, 7, a[12]), C = y(C, B, T, A, j, 12, a[13]), A = y(A, C, B, T, X, 17, a[14]), T = y(T, A, C, B, K, 22, a[15]), B = o(B, T, A, C, E, 5, a[16]), C = o(C, B, T, A, w, 9, a[17]), A = o(A, C, B, T, H, 14, a[18]), T = o(T, A, C, B, b, 20, a[19]), B = o(B, T, A, C, _, 5, a[20]), C = o(C, B, T, A, U, 9, a[21]), A = o(A, C, B, T, K, 14, a[22]), T = o(T, A, C, B, R, 20, a[23]), B = o(B, T, A, C, O, 5, a[24]), C = o(C, B, T, A, X, 9, a[25]), A = o(A, C, B, T, S, 14, a[26]), T = o(T, A, C, B, I, 20, a[27]), B = o(B, T, A, C, j, 5, a[28]), C = o(C, B, T, A, k, 9, a[29]), A = o(A, C, B, T, P, 14, a[30]), T = o(T, A, C, B, Y, 20, a[31]), B = u(B, T, A, C, _, 4, a[32]), C = u(C, B, T, A, I, 11, a[33]), A = u(A, C, B, T, H, 16, a[34]), T = u(T, A, C, B, X, 23, a[35]), B = u(B, T, A, C, E, 4, a[36]), C = u(C, B, T, A, R, 11, a[37]), A = u(A, C, B, T, P, 16, a[38]), T = u(T, A, C, B, U, 23, a[39]), B = u(B, T, A, C, j, 4, a[40]), C = u(C, B, T, A, b, 11, a[41]), A = u(A, C, B, T, S, 16, a[42]), T = u(T, A, C, B, w, 23, a[43]), B = u(B, T, A, C, O, 4, a[44]), C = u(C, B, T, A, Y, 11, a[45]), A = u(A, C, B, T, K, 16, a[46]), T = u(T, A, C, B, k, 23, a[47]), B = f(B, T, A, C, b, 6, a[48]), C = f(C, B, T, A, P, 10, a[49]), A = f(A, C, B, T, X, 15, a[50]), T = f(T, A, C, B, _, 21, a[51]), B = f(B, T, A, C, Y, 6, a[52]), C = f(C, B, T, A, S, 10, a[53]), A = f(A, C, B, T, U, 15, a[54]), T = f(T, A, C, B, E, 21, a[55]), B = f(B, T, A, C, I, 6, a[56]), C = f(C, B, T, A, K, 10, a[57]), A = f(A, C, B, T, w, 15, a[58]), T = f(T, A, C, B, j, 21, a[59]), B = f(B, T, A, C, R, 6, a[60]), C = f(C, B, T, A, H, 10, a[61]), A = f(A, C, B, T, k, 15, a[62]), T = f(T, A, C, B, O, 21, a[63]), m[0] = m[0] + B | 0, m[1] = m[1] + T | 0, m[2] = m[2] + A | 0, m[3] = m[3] + C | 0;
2135
+ var m = this._hash.words, b = v[g + 0], E = v[g + 1], k = v[g + 2], S = v[g + 3], R = v[g + 4], _ = v[g + 5], w = v[g + 6], B = v[g + 7], I = v[g + 8], O = v[g + 9], U = v[g + 10], H = v[g + 11], Y = v[g + 12], j = v[g + 13], X = v[g + 14], K = v[g + 15], P = m[0], T = m[1], A = m[2], C = m[3];
2136
+ P = y(P, T, A, C, b, 7, a[0]), C = y(C, P, T, A, E, 12, a[1]), A = y(A, C, P, T, k, 17, a[2]), T = y(T, A, C, P, S, 22, a[3]), P = y(P, T, A, C, R, 7, a[4]), C = y(C, P, T, A, _, 12, a[5]), A = y(A, C, P, T, w, 17, a[6]), T = y(T, A, C, P, B, 22, a[7]), P = y(P, T, A, C, I, 7, a[8]), C = y(C, P, T, A, O, 12, a[9]), A = y(A, C, P, T, U, 17, a[10]), T = y(T, A, C, P, H, 22, a[11]), P = y(P, T, A, C, Y, 7, a[12]), C = y(C, P, T, A, j, 12, a[13]), A = y(A, C, P, T, X, 17, a[14]), T = y(T, A, C, P, K, 22, a[15]), P = o(P, T, A, C, E, 5, a[16]), C = o(C, P, T, A, w, 9, a[17]), A = o(A, C, P, T, H, 14, a[18]), T = o(T, A, C, P, b, 20, a[19]), P = o(P, T, A, C, _, 5, a[20]), C = o(C, P, T, A, U, 9, a[21]), A = o(A, C, P, T, K, 14, a[22]), T = o(T, A, C, P, R, 20, a[23]), P = o(P, T, A, C, O, 5, a[24]), C = o(C, P, T, A, X, 9, a[25]), A = o(A, C, P, T, S, 14, a[26]), T = o(T, A, C, P, I, 20, a[27]), P = o(P, T, A, C, j, 5, a[28]), C = o(C, P, T, A, k, 9, a[29]), A = o(A, C, P, T, B, 14, a[30]), T = o(T, A, C, P, Y, 20, a[31]), P = u(P, T, A, C, _, 4, a[32]), C = u(C, P, T, A, I, 11, a[33]), A = u(A, C, P, T, H, 16, a[34]), T = u(T, A, C, P, X, 23, a[35]), P = u(P, T, A, C, E, 4, a[36]), C = u(C, P, T, A, R, 11, a[37]), A = u(A, C, P, T, B, 16, a[38]), T = u(T, A, C, P, U, 23, a[39]), P = u(P, T, A, C, j, 4, a[40]), C = u(C, P, T, A, b, 11, a[41]), A = u(A, C, P, T, S, 16, a[42]), T = u(T, A, C, P, w, 23, a[43]), P = u(P, T, A, C, O, 4, a[44]), C = u(C, P, T, A, Y, 11, a[45]), A = u(A, C, P, T, K, 16, a[46]), T = u(T, A, C, P, k, 23, a[47]), P = f(P, T, A, C, b, 6, a[48]), C = f(C, P, T, A, B, 10, a[49]), A = f(A, C, P, T, X, 15, a[50]), T = f(T, A, C, P, _, 21, a[51]), P = f(P, T, A, C, Y, 6, a[52]), C = f(C, P, T, A, S, 10, a[53]), A = f(A, C, P, T, U, 15, a[54]), T = f(T, A, C, P, E, 21, a[55]), P = f(P, T, A, C, I, 6, a[56]), C = f(C, P, T, A, K, 10, a[57]), A = f(A, C, P, T, w, 15, a[58]), T = f(T, A, C, P, j, 21, a[59]), P = f(P, T, A, C, R, 6, a[60]), C = f(C, P, T, A, H, 10, a[61]), A = f(A, C, P, T, k, 15, a[62]), T = f(T, A, C, P, O, 21, a[63]), m[0] = m[0] + P | 0, m[1] = m[1] + T | 0, m[2] = m[2] + A | 0, m[3] = m[3] + C | 0;
2137
2137
  },
2138
2138
  _doFinalize: function() {
2139
2139
  var v = this._data, g = v.words, $ = this._nDataBytes * 8, l = v.sigBytes * 8;
@@ -2418,8 +2418,8 @@ function ee() {
2418
2418
  *
2419
2419
  * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
2420
2420
  */
2421
- init: function(_, w, P) {
2422
- this.cfg = this.cfg.extend(P), this._xformMode = _, this._key = w, this.reset();
2421
+ init: function(_, w, B) {
2422
+ this.cfg = this.cfg.extend(B), this._xformMode = _, this._key = w, this.reset();
2423
2423
  },
2424
2424
  /**
2425
2425
  * Resets this cipher to its initial state.
@@ -2488,11 +2488,11 @@ function ee() {
2488
2488
  }
2489
2489
  return function(w) {
2490
2490
  return {
2491
- encrypt: function(P, I, O) {
2492
- return _(I).encrypt(w, P, I, O);
2491
+ encrypt: function(B, I, O) {
2492
+ return _(I).encrypt(w, B, I, O);
2493
2493
  },
2494
- decrypt: function(P, I, O) {
2495
- return _(I).decrypt(w, P, I, O);
2494
+ decrypt: function(B, I, O) {
2495
+ return _(I).decrypt(w, B, I, O);
2496
2496
  }
2497
2497
  };
2498
2498
  };
@@ -2562,9 +2562,9 @@ function ee() {
2562
2562
  *
2563
2563
  * mode.processBlock(data.words, offset);
2564
2564
  */
2565
- processBlock: function(P, I) {
2565
+ processBlock: function(B, I) {
2566
2566
  var O = this._cipher, U = O.blockSize;
2567
- w.call(this, P, I, U), O.encryptBlock(P, I), this._prevBlock = P.slice(I, I + U);
2567
+ w.call(this, B, I, U), O.encryptBlock(B, I), this._prevBlock = B.slice(I, I + U);
2568
2568
  }
2569
2569
  }), _.Decryptor = _.extend({
2570
2570
  /**
@@ -2577,16 +2577,16 @@ function ee() {
2577
2577
  *
2578
2578
  * mode.processBlock(data.words, offset);
2579
2579
  */
2580
- processBlock: function(P, I) {
2581
- var O = this._cipher, U = O.blockSize, H = P.slice(I, I + U);
2582
- O.decryptBlock(P, I), w.call(this, P, I, U), this._prevBlock = H;
2580
+ processBlock: function(B, I) {
2581
+ var O = this._cipher, U = O.blockSize, H = B.slice(I, I + U);
2582
+ O.decryptBlock(B, I), w.call(this, B, I, U), this._prevBlock = H;
2583
2583
  }
2584
2584
  });
2585
- function w(P, I, O) {
2585
+ function w(B, I, O) {
2586
2586
  var U, H = this._iv;
2587
2587
  H ? (U = H, this._iv = s) : U = this._prevBlock;
2588
2588
  for (var Y = 0; Y < O; Y++)
2589
- P[I + Y] ^= U[Y];
2589
+ B[I + Y] ^= U[Y];
2590
2590
  }
2591
2591
  return _;
2592
2592
  }(), $ = i.pad = {}, l = $.Pkcs7 = {
@@ -2603,7 +2603,7 @@ function ee() {
2603
2603
  * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
2604
2604
  */
2605
2605
  pad: function(_, w) {
2606
- for (var P = w * 4, I = P - _.sigBytes % P, O = I << 24 | I << 16 | I << 8 | I, U = [], H = 0; H < I; H += 4)
2606
+ for (var B = w * 4, I = B - _.sigBytes % B, O = I << 24 | I << 16 | I << 8 | I, U = [], H = 0; H < I; H += 4)
2607
2607
  U.push(O);
2608
2608
  var Y = d.create(U, I);
2609
2609
  _.concat(Y);
@@ -2638,8 +2638,8 @@ function ee() {
2638
2638
  reset: function() {
2639
2639
  var _;
2640
2640
  u.reset.call(this);
2641
- var w = this.cfg, P = w.iv, I = w.mode;
2642
- this._xformMode == this._ENC_XFORM_MODE ? _ = I.createEncryptor : (_ = I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == _ ? this._mode.init(this, P && P.words) : (this._mode = _.call(I, this, P && P.words), this._mode.__creator = _);
2641
+ var w = this.cfg, B = w.iv, I = w.mode;
2642
+ this._xformMode == this._ENC_XFORM_MODE ? _ = I.createEncryptor : (_ = I.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == _ ? this._mode.init(this, B && B.words) : (this._mode = _.call(I, this, B && B.words), this._mode.__creator = _);
2643
2643
  },
2644
2644
  _doProcessBlock: function(_, w) {
2645
2645
  this._mode.processBlock(_, w);
@@ -2706,8 +2706,8 @@ function ee() {
2706
2706
  * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
2707
2707
  */
2708
2708
  stringify: function(_) {
2709
- var w, P = _.ciphertext, I = _.salt;
2710
- return I ? w = d.create([1398893684, 1701076831]).concat(I).concat(P) : w = P, w.toString(c);
2709
+ var w, B = _.ciphertext, I = _.salt;
2710
+ return I ? w = d.create([1398893684, 1701076831]).concat(I).concat(B) : w = B, w.toString(c);
2711
2711
  },
2712
2712
  /**
2713
2713
  * Converts an OpenSSL-compatible string to a cipher params object.
@@ -2723,8 +2723,8 @@ function ee() {
2723
2723
  * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
2724
2724
  */
2725
2725
  parse: function(_) {
2726
- var w, P = c.parse(_), I = P.words;
2727
- return I[0] == 1398893684 && I[1] == 1701076831 && (w = d.create(I.slice(2, 4)), I.splice(0, 4), P.sigBytes -= 16), h.create({ ciphertext: P, salt: w });
2726
+ var w, B = c.parse(_), I = B.words;
2727
+ return I[0] == 1398893684 && I[1] == 1701076831 && (w = d.create(I.slice(2, 4)), I.splice(0, 4), B.sigBytes -= 16), h.create({ ciphertext: B, salt: w });
2728
2728
  }
2729
2729
  }, E = n.SerializableCipher = x.extend({
2730
2730
  /**
@@ -2753,12 +2753,12 @@ function ee() {
2753
2753
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
2754
2754
  * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2755
2755
  */
2756
- encrypt: function(_, w, P, I) {
2756
+ encrypt: function(_, w, B, I) {
2757
2757
  I = this.cfg.extend(I);
2758
- var O = _.createEncryptor(P, I), U = O.finalize(w), H = O.cfg;
2758
+ var O = _.createEncryptor(B, I), U = O.finalize(w), H = O.cfg;
2759
2759
  return h.create({
2760
2760
  ciphertext: U,
2761
- key: P,
2761
+ key: B,
2762
2762
  iv: H.iv,
2763
2763
  algorithm: _,
2764
2764
  mode: H.mode,
@@ -2784,9 +2784,9 @@ function ee() {
2784
2784
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2785
2785
  * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
2786
2786
  */
2787
- decrypt: function(_, w, P, I) {
2787
+ decrypt: function(_, w, B, I) {
2788
2788
  I = this.cfg.extend(I), w = this._parse(w, I.format);
2789
- var O = _.createDecryptor(P, I).finalize(w.ciphertext);
2789
+ var O = _.createDecryptor(B, I).finalize(w.ciphertext);
2790
2790
  return O;
2791
2791
  },
2792
2792
  /**
@@ -2825,9 +2825,9 @@ function ee() {
2825
2825
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
2826
2826
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
2827
2827
  */
2828
- execute: function(_, w, P, I) {
2828
+ execute: function(_, w, B, I) {
2829
2829
  I || (I = d.random(64 / 8));
2830
- var O = o.create({ keySize: w + P }).compute(_, I), U = d.create(O.words.slice(w), P * 4);
2830
+ var O = o.create({ keySize: w + B }).compute(_, I), U = d.create(O.words.slice(w), B * 4);
2831
2831
  return O.sigBytes = w * 4, h.create({ key: O, iv: U, salt: I });
2832
2832
  }
2833
2833
  }, R = n.PasswordBasedCipher = E.extend({
@@ -2856,9 +2856,9 @@ function ee() {
2856
2856
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
2857
2857
  * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
2858
2858
  */
2859
- encrypt: function(_, w, P, I) {
2859
+ encrypt: function(_, w, B, I) {
2860
2860
  I = this.cfg.extend(I);
2861
- var O = I.kdf.execute(P, _.keySize, _.ivSize);
2861
+ var O = I.kdf.execute(B, _.keySize, _.ivSize);
2862
2862
  I.iv = O.iv;
2863
2863
  var U = E.encrypt.call(this, _, w, O.key, I);
2864
2864
  return U.mixIn(O), U;
@@ -2880,9 +2880,9 @@ function ee() {
2880
2880
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
2881
2881
  * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
2882
2882
  */
2883
- decrypt: function(_, w, P, I) {
2883
+ decrypt: function(_, w, B, I) {
2884
2884
  I = this.cfg.extend(I), w = this._parse(w, I.format);
2885
- var O = I.kdf.execute(P, _.keySize, _.ivSize, w.salt);
2885
+ var O = I.kdf.execute(B, _.keySize, _.ivSize, w.salt);
2886
2886
  I.iv = O.iv;
2887
2887
  var U = E.decrypt.call(this, _, w, O.key, I);
2888
2888
  return U;
@@ -2918,13 +2918,13 @@ function ps() {
2918
2918
  if (!(this._nRounds && this._keyPriorReset === this._key)) {
2919
2919
  for (var m = this._keyPriorReset = this._key, b = m.words, E = m.sigBytes / 4, k = this._nRounds = E + 6, S = (k + 1) * 4, R = this._keySchedule = [], _ = 0; _ < S; _++)
2920
2920
  _ < E ? R[_] = b[_] : (h = R[_ - 1], _ % E ? E > 6 && _ % E == 4 && (h = d[h >>> 24] << 24 | d[h >>> 16 & 255] << 16 | d[h >>> 8 & 255] << 8 | d[h & 255]) : (h = h << 8 | h >>> 24, h = d[h >>> 24] << 24 | d[h >>> 16 & 255] << 16 | d[h >>> 8 & 255] << 8 | d[h & 255], h ^= $[_ / E | 0] << 24), R[_] = R[_ - E] ^ h);
2921
- for (var w = this._invKeySchedule = [], P = 0; P < S; P++) {
2922
- var _ = S - P;
2923
- if (P % 4)
2921
+ for (var w = this._invKeySchedule = [], B = 0; B < S; B++) {
2922
+ var _ = S - B;
2923
+ if (B % 4)
2924
2924
  var h = R[_];
2925
2925
  else
2926
2926
  var h = R[_ - 4];
2927
- P < 4 || _ <= 4 ? w[P] = h : w[P] = u[d[h >>> 24]] ^ f[d[h >>> 16 & 255]] ^ v[d[h >>> 8 & 255]] ^ g[d[h & 255]];
2927
+ B < 4 || _ <= 4 ? w[B] = h : w[B] = u[d[h >>> 24]] ^ f[d[h >>> 16 & 255]] ^ v[d[h >>> 8 & 255]] ^ g[d[h & 255]];
2928
2928
  }
2929
2929
  }
2930
2930
  },
@@ -2938,12 +2938,12 @@ function ps() {
2938
2938
  h[m + 1] = h[m + 3], h[m + 3] = b;
2939
2939
  },
2940
2940
  _doCryptBlock: function(h, m, b, E, k, S, R, _) {
2941
- for (var w = this._nRounds, P = h[m] ^ b[0], I = h[m + 1] ^ b[1], O = h[m + 2] ^ b[2], U = h[m + 3] ^ b[3], H = 4, Y = 1; Y < w; Y++) {
2942
- var j = E[P >>> 24] ^ k[I >>> 16 & 255] ^ S[O >>> 8 & 255] ^ R[U & 255] ^ b[H++], X = E[I >>> 24] ^ k[O >>> 16 & 255] ^ S[U >>> 8 & 255] ^ R[P & 255] ^ b[H++], K = E[O >>> 24] ^ k[U >>> 16 & 255] ^ S[P >>> 8 & 255] ^ R[I & 255] ^ b[H++], B = E[U >>> 24] ^ k[P >>> 16 & 255] ^ S[I >>> 8 & 255] ^ R[O & 255] ^ b[H++];
2943
- P = j, I = X, O = K, U = B;
2941
+ for (var w = this._nRounds, B = h[m] ^ b[0], I = h[m + 1] ^ b[1], O = h[m + 2] ^ b[2], U = h[m + 3] ^ b[3], H = 4, Y = 1; Y < w; Y++) {
2942
+ var j = E[B >>> 24] ^ k[I >>> 16 & 255] ^ S[O >>> 8 & 255] ^ R[U & 255] ^ b[H++], X = E[I >>> 24] ^ k[O >>> 16 & 255] ^ S[U >>> 8 & 255] ^ R[B & 255] ^ b[H++], K = E[O >>> 24] ^ k[U >>> 16 & 255] ^ S[B >>> 8 & 255] ^ R[I & 255] ^ b[H++], P = E[U >>> 24] ^ k[B >>> 16 & 255] ^ S[I >>> 8 & 255] ^ R[O & 255] ^ b[H++];
2943
+ B = j, I = X, O = K, U = P;
2944
2944
  }
2945
- var j = (_[P >>> 24] << 24 | _[I >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[U & 255]) ^ b[H++], X = (_[I >>> 24] << 24 | _[O >>> 16 & 255] << 16 | _[U >>> 8 & 255] << 8 | _[P & 255]) ^ b[H++], K = (_[O >>> 24] << 24 | _[U >>> 16 & 255] << 16 | _[P >>> 8 & 255] << 8 | _[I & 255]) ^ b[H++], B = (_[U >>> 24] << 24 | _[P >>> 16 & 255] << 16 | _[I >>> 8 & 255] << 8 | _[O & 255]) ^ b[H++];
2946
- h[m] = j, h[m + 1] = X, h[m + 2] = K, h[m + 3] = B;
2945
+ var j = (_[B >>> 24] << 24 | _[I >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[U & 255]) ^ b[H++], X = (_[I >>> 24] << 24 | _[O >>> 16 & 255] << 16 | _[U >>> 8 & 255] << 8 | _[B & 255]) ^ b[H++], K = (_[O >>> 24] << 24 | _[U >>> 16 & 255] << 16 | _[B >>> 8 & 255] << 8 | _[I & 255]) ^ b[H++], P = (_[U >>> 24] << 24 | _[B >>> 16 & 255] << 16 | _[I >>> 8 & 255] << 8 | _[O & 255]) ^ b[H++];
2946
+ h[m] = j, h[m + 1] = X, h[m + 2] = K, h[m + 3] = P;
2947
2947
  },
2948
2948
  keySize: 256 / 32
2949
2949
  });
@@ -2964,8 +2964,8 @@ class ye {
2964
2964
  tt(e, "object") && (e = JSON.stringify(e));
2965
2965
  let t = rt.encrypt(e, X0());
2966
2966
  return {
2967
- payload: t.ciphertext.toString(Pe),
2968
- token: `${t.key.toString(Pe)}##${t.iv.toString(Pe)}`
2967
+ payload: t.ciphertext.toString(Be),
2968
+ token: `${t.key.toString(Be)}##${t.iv.toString(Be)}`
2969
2969
  };
2970
2970
  }
2971
2971
  static toUnderscore(e) {
@@ -2978,7 +2978,7 @@ class ye {
2978
2978
  }
2979
2979
  static objectKeyToUnderscore(e) {
2980
2980
  let t;
2981
- return M(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2981
+ return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2982
2982
  let i = {};
2983
2983
  Object.keys(s).forEach((n) => {
2984
2984
  i[this.toUnderscore(n)] = s[n];
@@ -2989,7 +2989,7 @@ class ye {
2989
2989
  }
2990
2990
  static objectKeyToCamel(e) {
2991
2991
  let t;
2992
- return M(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2992
+ return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
2993
2993
  let i = {};
2994
2994
  Object.keys(s).forEach((n) => {
2995
2995
  i[this.toCamelcase(n)] = s[n];
@@ -2999,8 +2999,8 @@ class ye {
2999
2999
  }))), t;
3000
3000
  }
3001
3001
  static axiosMultipayConfigure() {
3002
- Ze.defaults.headers.common["Content-Type"] = "application/json", Ze.defaults.headers.common.Accept = "application/json", Ze.interceptors.request.use((e) => (M(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && M(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), Ze.interceptors.response.use((e) => e, function(e) {
3003
- if (M(e.response)) {
3002
+ Ze.defaults.headers.common["Content-Type"] = "application/json", Ze.defaults.headers.common.Accept = "application/json", Ze.interceptors.request.use((e) => (q(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && q(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), Ze.interceptors.response.use((e) => e, function(e) {
3003
+ if (q(e.response)) {
3004
3004
  let t = e.response.data;
3005
3005
  return t.status = e.response.status, Promise.reject(t);
3006
3006
  } else
@@ -3053,7 +3053,7 @@ class hn extends ut {
3053
3053
  bind(e, t) {
3054
3054
  this.isDone = !1, this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
3055
3055
  const i = this.parseEvent(s.data);
3056
- if (F.debug("event received", JSON.stringify(i)), M(i))
3056
+ if (F.debug("event received", JSON.stringify(i)), q(i))
3057
3057
  switch (F.debug("event", i), i.event) {
3058
3058
  case "error":
3059
3059
  case "cancel":
@@ -3209,7 +3209,7 @@ class hn extends ut {
3209
3209
  const ne = new hn();
3210
3210
  class xn extends ye {
3211
3211
  constructor() {
3212
- super(), this.$session = Be, this.$applicationId = void 0, this.$tk = void 0, this.$platformType = 1, this.$receiptId = void 0;
3212
+ super(), this.$session = Pe, this.$applicationId = void 0, this.$tk = void 0, this.$platformType = 1, this.$receiptId = void 0;
3213
3213
  }
3214
3214
  /**
3215
3215
  * Token키를 설정
@@ -3229,8 +3229,8 @@ class xn extends ye {
3229
3229
  }
3230
3230
  send(e) {
3231
3231
  try {
3232
- if (M(this.$applicationId))
3233
- return e.application_id = this.$applicationId, e.status = M(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3232
+ if (q(this.$applicationId))
3233
+ return e.application_id = this.$applicationId, e.status = q(e.status) ? e.status : 1, e.version = $e.version, e.tk = this.$tk, F.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3234
3234
  D.toAnalytics("event"),
3235
3235
  e
3236
3236
  );
@@ -3250,7 +3250,7 @@ class xn extends ye {
3250
3250
  * @date: 2022-05-13
3251
3251
  */
3252
3252
  sendCloseEvent() {
3253
- if (M(this.$receiptId))
3253
+ if (q(this.$receiptId))
3254
3254
  try {
3255
3255
  return this.$http.put(D.toApi(`close/${this.$receiptId}`));
3256
3256
  } catch (e) {
@@ -3365,7 +3365,7 @@ const et = new xn(), Tr = {
3365
3365
  },
3366
3366
  getLocaleMessage: (r, e) => {
3367
3367
  const s = r.split(".").reduce((i, n) => i[n], Tr);
3368
- return M(s) && M(s[e]) ? s[e] : s.ko;
3368
+ return q(s) && q(s[e]) ? s[e] : s.ko;
3369
3369
  }
3370
3370
  };
3371
3371
  class vn extends Ee {
@@ -3691,7 +3691,7 @@ class vn extends Ee {
3691
3691
  }
3692
3692
  const W = new vn(), Se = class Se extends qe {
3693
3693
  constructor() {
3694
- super(), this.$session = Be, this.$logger = F, this.$event = et, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
3694
+ super(), this.$session = Pe, this.$logger = F, this.$event = et, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
3695
3695
  instagram: /Instagram/i,
3696
3696
  kakaotalk: /KAKAOTALK/i,
3697
3697
  facebook: /FBAV/i,
@@ -3806,6 +3806,7 @@ const W = new vn(), Se = class Se extends qe {
3806
3806
  widget: e.widget,
3807
3807
  widget_key: e.widget_key,
3808
3808
  widget_sandbox: e.widget_sandbox,
3809
+ subscribe_brandpay_type: e.subscribe_brandpay_type,
3809
3810
  platform_type: this.platformType,
3810
3811
  ver: D.packageVersion,
3811
3812
  sdk_version: D.sdkVersion,
@@ -3993,7 +3994,7 @@ const W = new vn(), Se = class Se extends qe {
3993
3994
  * @param price: number
3994
3995
  */
3995
3996
  static invalidRequestItemsData(e, t) {
3996
- if (e !== void 0 && M(e)) {
3997
+ if (e !== void 0 && q(e)) {
3997
3998
  let s = 0;
3998
3999
  if (e.forEach((i, n) => {
3999
4000
  if (re(i.id))
@@ -4040,7 +4041,7 @@ let st = Se;
4040
4041
  const yn = new st();
4041
4042
  class mn extends ye {
4042
4043
  constructor() {
4043
- super(), this.$session = Be;
4044
+ super(), this.$session = Pe;
4044
4045
  }
4045
4046
  /**
4046
4047
  * 인앱을 위한 통계 정보 추가
@@ -4059,7 +4060,7 @@ class mn extends ye {
4059
4060
  const t = document.URL;
4060
4061
  if (t !== void 0 && t.search(/bootapi.co.kr/) === -1) {
4061
4062
  const s = this.$session.getUser();
4062
- e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = t, e.referer = document.referrer !== void 0 && M(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4063
+ e.application_id = D.currentApplicationId(e.application_id), e.sk = this.$session.currentSessionKey(), e.uuid = this.$session.currentUserUUID(), e.time = this.$session.currentTime(), e.url = t, e.referer = document.referrer !== void 0 && q(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || re(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4063
4064
  try {
4064
4065
  const i = await this.$http.post(
4065
4066
  D.toAnalytics(`call?ver=${$e.version}`),
@@ -4277,7 +4278,7 @@ const Ie = {
4277
4278
  e = r.eventMessage;
4278
4279
  break;
4279
4280
  default:
4280
- if (M(r.event))
4281
+ if (q(r.event))
4281
4282
  e = r;
4282
4283
  else
4283
4284
  throw r;
@@ -4310,7 +4311,7 @@ const Ie = {
4310
4311
  * @returns string
4311
4312
  */
4312
4313
  setUUID(r) {
4313
- return Be.setUUID(r);
4314
+ return Pe.setUUID(r);
4314
4315
  },
4315
4316
  /**
4316
4317
  * 페이지 통계 데이터를 전송
@@ -4353,7 +4354,7 @@ const Ie = {
4353
4354
  });
4354
4355
  },
4355
4356
  getCurrentUUID() {
4356
- return Be.currentUserUUID();
4357
+ return Pe.currentUserUUID();
4357
4358
  },
4358
4359
  /**
4359
4360
  * 결제창을 닫는다
@@ -4375,7 +4376,7 @@ class bn extends ut {
4375
4376
  bind(e, t) {
4376
4377
  this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
4377
4378
  const i = this.parseEvent(s.data);
4378
- if (M(i))
4379
+ if (q(i))
4379
4380
  switch (F.debug("event", i), i.event) {
4380
4381
  case "error":
4381
4382
  case "cancel":
@@ -4403,7 +4404,7 @@ class bn extends ut {
4403
4404
  }
4404
4405
  class _n extends Ee {
4405
4406
  constructor() {
4406
- super(), this.$windowId = "bootpay-user-token-background-id", this.$userWindowId = "bootpay-user-token-window-id", this.$iFrameId = "bootpay-user-token-iframe-id", this.$bootpaySdkFormId = "bootpay-user-token-sdk-form", this.$template = this.template(), this.$event = new bn(), this.$session = Be, this.deviceType = te.PLATFORM.JS;
4407
+ super(), this.$windowId = "bootpay-user-token-background-id", this.$userWindowId = "bootpay-user-token-window-id", this.$iFrameId = "bootpay-user-token-iframe-id", this.$bootpaySdkFormId = "bootpay-user-token-sdk-form", this.$template = this.template(), this.$event = new bn(), this.$session = Pe, this.deviceType = te.PLATFORM.JS;
4407
4408
  }
4408
4409
  /**
4409
4410
  * DeviceType을 지정한다
@@ -4755,7 +4756,7 @@ const fs = new _n(), wn = {
4755
4756
  e = r.eventMessage;
4756
4757
  break;
4757
4758
  default:
4758
- if (M(r.event))
4759
+ if (q(r.event))
4759
4760
  e = r;
4760
4761
  else
4761
4762
  throw r;
@@ -4780,7 +4781,7 @@ const fs = new _n(), wn = {
4780
4781
  * @returns string
4781
4782
  */
4782
4783
  setUUID(r) {
4783
- return Be.setUUID(r);
4784
+ return Pe.setUUID(r);
4784
4785
  },
4785
4786
  /**
4786
4787
  * 결제창을 닫는다
@@ -5266,8 +5267,8 @@ function vs() {
5266
5267
  if (S < 16)
5267
5268
  y[S] = u[f + S] | 0;
5268
5269
  else {
5269
- var R = y[S - 15], _ = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = y[S - 2], P = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
5270
- y[S] = _ + y[S - 7] + P + y[S - 16];
5270
+ var R = y[S - 15], _ = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = y[S - 2], B = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
5271
+ y[S] = _ + y[S - 7] + B + y[S - 16];
5271
5272
  }
5272
5273
  var I = m & b ^ ~m & E, O = g & $ ^ g & l ^ $ & l, U = (g << 30 | g >>> 2) ^ (g << 19 | g >>> 13) ^ (g << 10 | g >>> 22), H = (m << 26 | m >>> 6) ^ (m << 21 | m >>> 11) ^ (m << 7 | m >>> 25), Y = k + H + I + c[S] + y[S], j = U + O;
5273
5274
  k = E, E = b, b = m, m = h + Y | 0, h = l, l = $, $ = g, g = Y + j | 0;
@@ -5288,9 +5289,9 @@ function vs() {
5288
5289
  });
5289
5290
  }(Gt)), Gt.exports;
5290
5291
  }
5291
- var Xt = { exports: {} }, P0;
5292
- function Pn() {
5293
- return P0 || (P0 = 1, function(r, e) {
5292
+ var Xt = { exports: {} }, B0;
5293
+ function Bn() {
5294
+ return B0 || (B0 = 1, function(r, e) {
5294
5295
  (function(t, s, i) {
5295
5296
  r.exports = s(z(), vs());
5296
5297
  })(N, function(t) {
@@ -5318,9 +5319,9 @@ function Pn() {
5318
5319
  });
5319
5320
  }(Xt)), Xt.exports;
5320
5321
  }
5321
- var Vt = { exports: {} }, B0;
5322
+ var Vt = { exports: {} }, P0;
5322
5323
  function ys() {
5323
- return B0 || (B0 = 1, function(r, e) {
5324
+ return P0 || (P0 = 1, function(r, e) {
5324
5325
  (function(t, s, i) {
5325
5326
  r.exports = s(z(), vt());
5326
5327
  })(N, function(t) {
@@ -5429,7 +5430,7 @@ function ys() {
5429
5430
  ]);
5430
5431
  },
5431
5432
  _doProcessBlock: function(f, v) {
5432
- for (var g = this._hash.words, $ = g[0], l = g[1], h = g[2], m = g[3], b = g[4], E = g[5], k = g[6], S = g[7], R = $.high, _ = $.low, w = l.high, P = l.low, I = h.high, O = h.low, U = m.high, H = m.low, Y = b.high, j = b.low, X = E.high, K = E.low, B = k.high, T = k.low, A = S.high, C = S.low, J = R, V = _, ie = w, L = P, ze = I, Oe = O, yt = U, je = H, he = Y, ce = j, it = X, Ke = K, nt = B, Ge = T, mt = A, Xe = C, xe = 0; xe < 80; xe++) {
5433
+ for (var g = this._hash.words, $ = g[0], l = g[1], h = g[2], m = g[3], b = g[4], E = g[5], k = g[6], S = g[7], R = $.high, _ = $.low, w = l.high, B = l.low, I = h.high, O = h.low, U = m.high, H = m.low, Y = b.high, j = b.low, X = E.high, K = E.low, P = k.high, T = k.low, A = S.high, C = S.low, J = R, V = _, ie = w, L = B, ze = I, Oe = O, yt = U, je = H, he = Y, ce = j, it = X, Ke = K, nt = P, Ge = T, mt = A, Xe = C, xe = 0; xe < 80; xe++) {
5433
5434
  var ue, ge, ot = o[xe];
5434
5435
  if (xe < 16)
5435
5436
  ge = ot.high = f[v + xe * 2] | 0, ue = ot.low = f[v + xe * 2 + 1] | 0;
@@ -5437,10 +5438,10 @@ function ys() {
5437
5438
  var Ar = o[xe - 15], Ue = Ar.high, Ve = Ar.low, gs = (Ue >>> 1 | Ve << 31) ^ (Ue >>> 8 | Ve << 24) ^ Ue >>> 7, Rr = (Ve >>> 1 | Ue << 31) ^ (Ve >>> 8 | Ue << 24) ^ (Ve >>> 7 | Ue << 25), Or = o[xe - 2], De = Or.high, Ye = Or.low, bs = (De >>> 19 | Ye << 13) ^ (De << 3 | Ye >>> 29) ^ De >>> 6, Ur = (Ye >>> 19 | De << 13) ^ (Ye << 3 | De >>> 29) ^ (Ye >>> 6 | De << 26), Dr = o[xe - 7], _s = Dr.high, ws = Dr.low, Fr = o[xe - 16], $s = Fr.high, Hr = Fr.low;
5438
5439
  ue = Rr + ws, ge = gs + _s + (ue >>> 0 < Rr >>> 0 ? 1 : 0), ue = ue + Ur, ge = ge + bs + (ue >>> 0 < Ur >>> 0 ? 1 : 0), ue = ue + Hr, ge = ge + $s + (ue >>> 0 < Hr >>> 0 ? 1 : 0), ot.high = ge, ot.low = ue;
5439
5440
  }
5440
- var Es = he & it ^ ~he & nt, Nr = ce & Ke ^ ~ce & Ge, ks = J & ie ^ J & ze ^ ie & ze, Ss = V & L ^ V & Oe ^ L & Oe, Ps = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), Lr = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), Bs = (he >>> 14 | ce << 18) ^ (he >>> 18 | ce << 14) ^ (he << 23 | ce >>> 9), Is = (ce >>> 14 | he << 18) ^ (ce >>> 18 | he << 14) ^ (ce << 23 | he >>> 9), Mr = y[xe], Cs = Mr.high, qr = Mr.low, de = Xe + Is, be = mt + Bs + (de >>> 0 < Xe >>> 0 ? 1 : 0), de = de + Nr, be = be + Es + (de >>> 0 < Nr >>> 0 ? 1 : 0), de = de + qr, be = be + Cs + (de >>> 0 < qr >>> 0 ? 1 : 0), de = de + ue, be = be + ge + (de >>> 0 < ue >>> 0 ? 1 : 0), Wr = Lr + Ss, Ts = Ps + ks + (Wr >>> 0 < Lr >>> 0 ? 1 : 0);
5441
+ var Es = he & it ^ ~he & nt, Nr = ce & Ke ^ ~ce & Ge, ks = J & ie ^ J & ze ^ ie & ze, Ss = V & L ^ V & Oe ^ L & Oe, Bs = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), Lr = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), Ps = (he >>> 14 | ce << 18) ^ (he >>> 18 | ce << 14) ^ (he << 23 | ce >>> 9), Is = (ce >>> 14 | he << 18) ^ (ce >>> 18 | he << 14) ^ (ce << 23 | he >>> 9), Mr = y[xe], Cs = Mr.high, qr = Mr.low, de = Xe + Is, be = mt + Ps + (de >>> 0 < Xe >>> 0 ? 1 : 0), de = de + Nr, be = be + Es + (de >>> 0 < Nr >>> 0 ? 1 : 0), de = de + qr, be = be + Cs + (de >>> 0 < qr >>> 0 ? 1 : 0), de = de + ue, be = be + ge + (de >>> 0 < ue >>> 0 ? 1 : 0), Wr = Lr + Ss, Ts = Bs + ks + (Wr >>> 0 < Lr >>> 0 ? 1 : 0);
5441
5442
  mt = nt, Xe = Ge, nt = it, Ge = Ke, it = he, Ke = ce, ce = je + de | 0, he = yt + be + (ce >>> 0 < je >>> 0 ? 1 : 0) | 0, yt = ze, je = Oe, ze = ie, Oe = L, ie = J, L = V, V = de + Wr | 0, J = be + Ts + (V >>> 0 < de >>> 0 ? 1 : 0) | 0;
5442
5443
  }
5443
- _ = $.low = _ + V, $.high = R + J + (_ >>> 0 < V >>> 0 ? 1 : 0), P = l.low = P + L, l.high = w + ie + (P >>> 0 < L >>> 0 ? 1 : 0), O = h.low = O + Oe, h.high = I + ze + (O >>> 0 < Oe >>> 0 ? 1 : 0), H = m.low = H + je, m.high = U + yt + (H >>> 0 < je >>> 0 ? 1 : 0), j = b.low = j + ce, b.high = Y + he + (j >>> 0 < ce >>> 0 ? 1 : 0), K = E.low = K + Ke, E.high = X + it + (K >>> 0 < Ke >>> 0 ? 1 : 0), T = k.low = T + Ge, k.high = B + nt + (T >>> 0 < Ge >>> 0 ? 1 : 0), C = S.low = C + Xe, S.high = A + mt + (C >>> 0 < Xe >>> 0 ? 1 : 0);
5444
+ _ = $.low = _ + V, $.high = R + J + (_ >>> 0 < V >>> 0 ? 1 : 0), B = l.low = B + L, l.high = w + ie + (B >>> 0 < L >>> 0 ? 1 : 0), O = h.low = O + Oe, h.high = I + ze + (O >>> 0 < Oe >>> 0 ? 1 : 0), H = m.low = H + je, m.high = U + yt + (H >>> 0 < je >>> 0 ? 1 : 0), j = b.low = j + ce, b.high = Y + he + (j >>> 0 < ce >>> 0 ? 1 : 0), K = E.low = K + Ke, E.high = X + it + (K >>> 0 < Ke >>> 0 ? 1 : 0), T = k.low = T + Ge, k.high = P + nt + (T >>> 0 < Ge >>> 0 ? 1 : 0), C = S.low = C + Xe, S.high = A + mt + (C >>> 0 < Xe >>> 0 ? 1 : 0);
5444
5445
  },
5445
5446
  _doFinalize: function() {
5446
5447
  var f = this._data, v = f.words, g = this._nDataBytes * 8, $ = f.sigBytes * 8;
@@ -5460,7 +5461,7 @@ function ys() {
5460
5461
  }(Vt)), Vt.exports;
5461
5462
  }
5462
5463
  var Yt = { exports: {} }, I0;
5463
- function Bn() {
5464
+ function Pn() {
5464
5465
  return I0 || (I0 = 1, function(r, e) {
5465
5466
  (function(t, s, i) {
5466
5467
  r.exports = s(z(), vt(), ys());
@@ -5548,29 +5549,29 @@ function In() {
5548
5549
  }
5549
5550
  for (var S = 0; S < 24; S++) {
5550
5551
  for (var R = 0; R < 5; R++) {
5551
- for (var _ = 0, w = 0, P = 0; P < 5; P++) {
5552
- var k = l[R + 5 * P];
5552
+ for (var _ = 0, w = 0, B = 0; B < 5; B++) {
5553
+ var k = l[R + 5 * B];
5553
5554
  _ ^= k.high, w ^= k.low;
5554
5555
  }
5555
5556
  var I = f[R];
5556
5557
  I.high = _, I.low = w;
5557
5558
  }
5558
5559
  for (var R = 0; R < 5; R++)
5559
- for (var O = f[(R + 4) % 5], U = f[(R + 1) % 5], H = U.high, Y = U.low, _ = O.high ^ (H << 1 | Y >>> 31), w = O.low ^ (Y << 1 | H >>> 31), P = 0; P < 5; P++) {
5560
- var k = l[R + 5 * P];
5560
+ for (var O = f[(R + 4) % 5], U = f[(R + 1) % 5], H = U.high, Y = U.low, _ = O.high ^ (H << 1 | Y >>> 31), w = O.low ^ (Y << 1 | H >>> 31), B = 0; B < 5; B++) {
5561
+ var k = l[R + 5 * B];
5561
5562
  k.high ^= _, k.low ^= w;
5562
5563
  }
5563
5564
  for (var j = 1; j < 25; j++) {
5564
- var _, w, k = l[j], X = k.high, K = k.low, B = y[j];
5565
- B < 32 ? (_ = X << B | K >>> 32 - B, w = K << B | X >>> 32 - B) : (_ = K << B - 32 | X >>> 64 - B, w = X << B - 32 | K >>> 64 - B);
5565
+ var _, w, k = l[j], X = k.high, K = k.low, P = y[j];
5566
+ P < 32 ? (_ = X << P | K >>> 32 - P, w = K << P | X >>> 32 - P) : (_ = K << P - 32 | X >>> 64 - P, w = X << P - 32 | K >>> 64 - P);
5566
5567
  var T = f[o[j]];
5567
5568
  T.high = _, T.low = w;
5568
5569
  }
5569
5570
  var A = f[0], C = l[0];
5570
5571
  A.high = C.high, A.low = C.low;
5571
5572
  for (var R = 0; R < 5; R++)
5572
- for (var P = 0; P < 5; P++) {
5573
- var j = R + 5 * P, k = l[j], J = f[j], V = f[(R + 1) % 5 + 5 * P], ie = f[(R + 2) % 5 + 5 * P];
5573
+ for (var B = 0; B < 5; B++) {
5574
+ var j = R + 5 * B, k = l[j], J = f[j], V = f[(R + 1) % 5 + 5 * B], ie = f[(R + 2) % 5 + 5 * B];
5574
5575
  k.high = J.high ^ ~V.high & ie.high, k.low = J.low ^ ~V.low & ie.low;
5575
5576
  }
5576
5577
  var k = l[0], L = u[S];
@@ -5949,18 +5950,18 @@ function Cn() {
5949
5950
  var R = k + S, _ = E[R];
5950
5951
  E[R] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
5951
5952
  }
5952
- var w = this._hash.words, P = u.words, I = f.words, O = a.words, U = c.words, H = y.words, Y = o.words, j, X, K, B, T, A, C, J, V, ie;
5953
- A = j = w[0], C = X = w[1], J = K = w[2], V = B = w[3], ie = T = w[4];
5953
+ var w = this._hash.words, B = u.words, I = f.words, O = a.words, U = c.words, H = y.words, Y = o.words, j, X, K, P, T, A, C, J, V, ie;
5954
+ A = j = w[0], C = X = w[1], J = K = w[2], V = P = w[3], ie = T = w[4];
5954
5955
  for (var L, S = 0; S < 80; S += 1)
5955
- L = j + E[k + O[S]] | 0, S < 16 ? L += g(X, K, B) + P[0] : S < 32 ? L += $(X, K, B) + P[1] : S < 48 ? L += l(X, K, B) + P[2] : S < 64 ? L += h(X, K, B) + P[3] : L += m(X, K, B) + P[4], L = L | 0, L = b(L, H[S]), L = L + T | 0, j = T, T = B, B = b(K, 10), K = X, X = L, L = A + E[k + U[S]] | 0, S < 16 ? L += m(C, J, V) + I[0] : S < 32 ? L += h(C, J, V) + I[1] : S < 48 ? L += l(C, J, V) + I[2] : S < 64 ? L += $(C, J, V) + I[3] : L += g(C, J, V) + I[4], L = L | 0, L = b(L, Y[S]), L = L + ie | 0, A = ie, ie = V, V = b(J, 10), J = C, C = L;
5956
- L = w[1] + K + V | 0, w[1] = w[2] + B + ie | 0, w[2] = w[3] + T + A | 0, w[3] = w[4] + j + C | 0, w[4] = w[0] + X + J | 0, w[0] = L;
5956
+ L = j + E[k + O[S]] | 0, S < 16 ? L += g(X, K, P) + B[0] : S < 32 ? L += $(X, K, P) + B[1] : S < 48 ? L += l(X, K, P) + B[2] : S < 64 ? L += h(X, K, P) + B[3] : L += m(X, K, P) + B[4], L = L | 0, L = b(L, H[S]), L = L + T | 0, j = T, T = P, P = b(K, 10), K = X, X = L, L = A + E[k + U[S]] | 0, S < 16 ? L += m(C, J, V) + I[0] : S < 32 ? L += h(C, J, V) + I[1] : S < 48 ? L += l(C, J, V) + I[2] : S < 64 ? L += $(C, J, V) + I[3] : L += g(C, J, V) + I[4], L = L | 0, L = b(L, Y[S]), L = L + ie | 0, A = ie, ie = V, V = b(J, 10), J = C, C = L;
5957
+ L = w[1] + K + V | 0, w[1] = w[2] + P + ie | 0, w[2] = w[3] + T + A | 0, w[3] = w[4] + j + C | 0, w[4] = w[0] + X + J | 0, w[0] = L;
5957
5958
  },
5958
5959
  _doFinalize: function() {
5959
5960
  var E = this._data, k = E.words, S = this._nDataBytes * 8, R = E.sigBytes * 8;
5960
5961
  k[R >>> 5] |= 128 << 24 - R % 32, k[(R + 64 >>> 9 << 4) + 14] = (S << 8 | S >>> 24) & 16711935 | (S << 24 | S >>> 8) & 4278255360, E.sigBytes = (k.length + 1) * 4, this._process();
5961
- for (var _ = this._hash, w = _.words, P = 0; P < 5; P++) {
5962
- var I = w[P];
5963
- w[P] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
5962
+ for (var _ = this._hash, w = _.words, B = 0; B < 5; B++) {
5963
+ var I = w[B];
5964
+ w[B] = (I << 8 | I >>> 24) & 16711935 | (I << 24 | I >>> 8) & 4278255360;
5964
5965
  }
5965
5966
  return _;
5966
5967
  },
@@ -7236,7 +7237,7 @@ function Kn() {
7236
7237
  }
7237
7238
  (function(r, e) {
7238
7239
  (function(t, s, i) {
7239
- r.exports = s(z(), vt(), En(), kn(), Ce(), Sn(), Ae(), Ir(), vs(), Pn(), ys(), Bn(), In(), Cn(), Cr(), Tn(), Re(), ee(), An(), Rn(), On(), Un(), Dn(), Fn(), Hn(), Nn(), Ln(), Mn(), qn(), ps(), Wn(), zn(), jn(), Kn());
7240
+ r.exports = s(z(), vt(), En(), kn(), Ce(), Sn(), Ae(), Ir(), vs(), Bn(), ys(), Pn(), In(), Cn(), Cr(), Tn(), Re(), ee(), An(), Rn(), On(), Un(), Dn(), Fn(), Hn(), Nn(), Ln(), Mn(), qn(), ps(), Wn(), zn(), jn(), Kn());
7240
7241
  })(N, function(t) {
7241
7242
  return t;
7242
7243
  });
@@ -7263,7 +7264,7 @@ class Xn {
7263
7264
  padding: oe.pad.Pkcs7
7264
7265
  }
7265
7266
  );
7266
- return Pe.stringify(s.ciphertext);
7267
+ return Be.stringify(s.ciphertext);
7267
7268
  }
7268
7269
  decrypt(e) {
7269
7270
  if (re(this.encryptKey()))
@@ -7299,7 +7300,7 @@ class Vn extends Xn {
7299
7300
  );
7300
7301
  }
7301
7302
  encryptKey() {
7302
- return M(this.data.client_key) ? hs(this.data.client_key).toString().substring(0, 16) : "";
7303
+ return q(this.data.client_key) ? hs(this.data.client_key).toString().substring(0, 16) : "";
7303
7304
  }
7304
7305
  currentBootpayStoreParameters() {
7305
7306
  let e = [];
@@ -7432,7 +7433,7 @@ class Yn extends Ee {
7432
7433
  }
7433
7434
  shopUrl() {
7434
7435
  const e = Object.fromEntries(new URLSearchParams(location.search));
7435
- return M(e.__b_u) ? gr.toExShopUrl(e.__b_u) : gr.toExShopUrl(
7436
+ return q(e.__b_u) ? gr.toExShopUrl(e.__b_u) : gr.toExShopUrl(
7436
7437
  `em/${this.$exStore.data.client_key}/${this.$exStore.encryptParameters()}?${this.$exStore.currentBootpayStoreParameters()}`
7437
7438
  );
7438
7439
  }
@@ -7488,7 +7489,7 @@ class Zn extends ut {
7488
7489
  afterBind: () => {
7489
7490
  window.resetBootpayEventListener("popstate.BootpayStoreEvent", (e) => {
7490
7491
  const t = Object.fromEntries(new URLSearchParams(location.search));
7491
- M(t.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${t.__b_u}` });
7492
+ q(t.__b_u) && me.postMessage("BootpayRouterChange", { url: `/${t.__b_u}` });
7492
7493
  });
7493
7494
  }
7494
7495
  });
@@ -7533,7 +7534,7 @@ const xr = new eo(), to = {
7533
7534
  }
7534
7535
  };
7535
7536
  typeof window < "u" && (window.BootpayStore = to);
7536
- const q = {
7537
+ const M = {
7537
7538
  el: void 0,
7538
7539
  data: void 0,
7539
7540
  termsPassed: !1,
@@ -7549,13 +7550,14 @@ const q = {
7549
7550
  this.data.pg = r, this.data.method = e, this.data.wallet_id = t, this.termsPassed = s, this.data.terms = i, this.widgetExtra = n;
7550
7551
  },
7551
7552
  updateOnProcessing(r) {
7552
- M(r.price) && (this.data.price = r.price), M(r.tax_free) && (this.data.tax_free = r.tax_free), M(r.currency) && (this.data.currency = r.currency), r.user_token !== void 0 && (this.data.user_token = r.user_token), M(r.use_terms) && (this.data.use_terms = r.use_terms !== !1), M(r.sandbox) && (this.data.sandbox = r.sandbox === !0), M(r.widget_key) && (this.data.widget_key = r.widget_key), M(r.widget_type) && (this.widgetType = r.widget_type), r.external_terms !== void 0 && (this.data.external_terms = r.external_terms), r.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = r.use_bootpay_inapp_sdk), r.widget_key !== void 0 && (this.data.widget_key = r.widget_key);
7553
+ q(r.price) && (this.data.price = r.price), q(r.tax_free) && (this.data.tax_free = r.tax_free), q(r.currency) && (this.data.currency = r.currency), r.user_token !== void 0 && (this.data.user_token = r.user_token), q(r.use_terms) && (this.data.use_terms = r.use_terms !== !1), q(r.sandbox) && (this.data.sandbox = r.sandbox === !0), q(r.widget_key) && (this.data.widget_key = r.widget_key), q(r.widget_type) && (this.widgetType = r.widget_type), r.external_terms !== void 0 && (this.data.external_terms = r.external_terms), r.use_bootpay_inapp_sdk !== void 0 && (this.data.use_bootpay_inapp_sdk = r.use_bootpay_inapp_sdk), r.widget_key !== void 0 && (this.data.widget_key = r.widget_key);
7553
7554
  },
7554
7555
  encryptParameters() {
7555
7556
  return encodeURIComponent(
7556
7557
  this.encrypt({
7557
7558
  order_name: this.data.order_name,
7558
7559
  use_only_brandpay: this.data.use_only_brandpay,
7560
+ subscribe_brandpay_type: this.data.subscribe_brandpay_type,
7559
7561
  user_token: this.data.user_token,
7560
7562
  sandbox: this.data.sandbox,
7561
7563
  use_terms: this.data.use_terms,
@@ -7578,7 +7580,7 @@ const q = {
7578
7580
  padding: oe.pad.Pkcs7
7579
7581
  }
7580
7582
  );
7581
- return Pe.stringify(t.ciphertext);
7583
+ return Be.stringify(t.ciphertext);
7582
7584
  },
7583
7585
  decrypt(r) {
7584
7586
  if (re(this.data.application_id))
@@ -7617,7 +7619,7 @@ const q = {
7617
7619
  };
7618
7620
  class ro extends Ee {
7619
7621
  constructor() {
7620
- super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = q, this.$template = this.defaultIframeHtml();
7622
+ super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = M, this.$template = this.defaultIframeHtml();
7621
7623
  }
7622
7624
  /**
7623
7625
  * 첫 Rendering을 진행한다
@@ -7668,7 +7670,7 @@ class ro extends Ee {
7668
7670
  const G = new ro();
7669
7671
  class so extends Ee {
7670
7672
  constructor() {
7671
- super(), this.$brandpayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = q;
7673
+ super(), this.$brandpayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = M;
7672
7674
  }
7673
7675
  template() {
7674
7676
  return `
@@ -7843,7 +7845,7 @@ const br = new no(), oo = {
7843
7845
  return G.postMessage("bootpayWidgetBrandpayReload", r);
7844
7846
  },
7845
7847
  bootpayWidgetResize(r) {
7846
- return this.callBootpayDOMEvent("widget-resize", r), q.callHook("resize", r), G.resize(r);
7848
+ return this.callBootpayDOMEvent("widget-resize", r), M.callHook("resize", r), G.resize(r);
7847
7849
  },
7848
7850
  bootpayWidgetShowInterestInformation(r) {
7849
7851
  return _e.showCardInterestInformation(r);
@@ -7904,7 +7906,7 @@ const br = new no(), oo = {
7904
7906
  });
7905
7907
  },
7906
7908
  bootpayWidgetTermAllAgree(r) {
7907
- this.callBootpayDOMEvent("all-agree-terms", r), q.callHook("allTermsAccepted", r);
7909
+ this.callBootpayDOMEvent("all-agree-terms", r), M.callHook("allTermsAccepted", r);
7908
7910
  },
7909
7911
  bootpayWidgetSelectPayment(r) {
7910
7912
  const { method_alias: e, payment_type: t, wallet_id: s } = r;
@@ -7915,10 +7917,10 @@ const br = new no(), oo = {
7915
7917
  });
7916
7918
  },
7917
7919
  bootpayWidgetReady(r) {
7918
- this.callBootpayDOMEvent("widget-ready", r), q.callHook("ready", r);
7920
+ this.callBootpayDOMEvent("widget-ready", r), M.callHook("ready", r);
7919
7921
  },
7920
7922
  bootpayWidgetUpdateStore(r) {
7921
- q.updateOnProcessing({
7923
+ M.updateOnProcessing({
7922
7924
  ...r
7923
7925
  });
7924
7926
  },
@@ -7939,6 +7941,9 @@ const br = new no(), oo = {
7939
7941
  }
7940
7942
  );
7941
7943
  },
7944
+ brandpayWalletUpdated(r) {
7945
+ M.callHook("brandpayWalletUpdated", r);
7946
+ },
7942
7947
  /**
7943
7948
  * 결제 선택시 global 이벤트를 분리하여 호출한다
7944
7949
  * Comment by GOSOMI
@@ -7946,7 +7951,7 @@ const br = new no(), oo = {
7946
7951
  */
7947
7952
  triggerGlobalChangeEvent(r) {
7948
7953
  var e;
7949
- r.completed = M(r.pg) && M(r.method) && (r.term_passed === !0 || !q.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(r.method) === -1 || r.wallet_id !== void 0), (q.data.pg !== r.pg || q.data.method !== r.method || q.data.wallet_id !== r.wallet_id || JSON.stringify(q.widgetExtra) !== JSON.stringify(r.extra)) && (this.callBootpayDOMEvent("widget-change-payment", r), q.callHook("changePayment", r)), JSON.stringify((e = r.select_terms) == null ? void 0 : e.filter((t) => t.agree === !0)) !== JSON.stringify(q.data.terms.filter((t) => t.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", r), q.callHook("changeTerms", r));
7954
+ r.completed = q(r.pg) && q(r.method) && (r.term_passed === !0 || !M.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(r.method) === -1 || r.wallet_id !== void 0), (M.data.pg !== r.pg || M.data.method !== r.method || M.data.wallet_id !== r.wallet_id || JSON.stringify(M.widgetExtra) !== JSON.stringify(r.extra)) && (this.callBootpayDOMEvent("widget-change-payment", r), M.callHook("paymentMethodUpdated", r)), JSON.stringify((e = r.select_terms) == null ? void 0 : e.filter((t) => t.agree === !0)) !== JSON.stringify(M.data.terms.filter((t) => t.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", r), M.callHook("termsConsentUpdated", r));
7950
7955
  },
7951
7956
  callBootpayDOMEvent(r, e = void 0) {
7952
7957
  document.dispatchEvent(
@@ -7976,7 +7981,7 @@ class lo extends qe {
7976
7981
  super(), this.message = Tr;
7977
7982
  }
7978
7983
  initialize() {
7979
- q.setWidgetData(
7984
+ M.setWidgetData(
7980
7985
  void 0,
7981
7986
  {
7982
7987
  application_id: void 0,
@@ -7997,7 +8002,7 @@ class lo extends qe {
7997
8002
  throw new Error("결제금액은 1원 이상을 입력해주세요.");
7998
8003
  if (this.$blank(t == null ? void 0 : t.application_id))
7999
8004
  throw new Error("application_id가 입력되지 않았습니다.");
8000
- this.initialize(), q.setWidgetData(
8005
+ this.initialize(), M.setWidgetData(
8001
8006
  e,
8002
8007
  t
8003
8008
  ), G.render(), co.bind();
@@ -8014,7 +8019,7 @@ class lo extends qe {
8014
8019
  widget_key: a,
8015
8020
  external_terms: c
8016
8021
  } = e;
8017
- q.updateOnProcessing({
8022
+ M.updateOnProcessing({
8018
8023
  price: t,
8019
8024
  tax_free: s,
8020
8025
  currency: i,
@@ -8041,10 +8046,10 @@ class lo extends qe {
8041
8046
  G.destroy();
8042
8047
  }
8043
8048
  selectPayment(e, t, s, i = !1, n, x) {
8044
- q.setPayment(e, t, s, i, n, x), F.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(x)}`);
8049
+ M.setPayment(e, t, s, i, n, x), F.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(x)}`);
8045
8050
  }
8046
8051
  currentTermsCondition() {
8047
- return q.data.terms;
8052
+ return M.data.terms;
8048
8053
  }
8049
8054
  /**
8050
8055
  * 부트페이 결제 요청을 한다
@@ -8052,7 +8057,7 @@ class lo extends qe {
8052
8057
  * @date: 2023-06-21
8053
8058
  */
8054
8059
  async requestPayment(e) {
8055
- return this.widgetRequestPaymentValidate(1), Ie.requestPayment(q.getRequestPaymentData(e));
8060
+ return this.widgetRequestPaymentValidate(1), Ie.requestPayment(M.getRequestPaymentData(e));
8056
8061
  }
8057
8062
  /**
8058
8063
  * 부트페이 정기결제 요청
@@ -8060,7 +8065,7 @@ class lo extends qe {
8060
8065
  * @date: 2024-08-19
8061
8066
  */
8062
8067
  async requestSubscription(e) {
8063
- return this.widgetRequestPaymentValidate(2), Ie.requestSubscription(q.getRequestPaymentData(e));
8068
+ return this.widgetRequestPaymentValidate(2), Ie.requestSubscription(M.getRequestPaymentData(e));
8064
8069
  }
8065
8070
  isRendered() {
8066
8071
  return G.isRendered();
@@ -8091,35 +8096,35 @@ class lo extends qe {
8091
8096
  */
8092
8097
  currentPaymentParameters() {
8093
8098
  return this.widgetRequestPaymentValidate(), {
8094
- pg: q.data.pg,
8095
- method: q.data.method,
8096
- wallet_id: q.data.wallet_id,
8097
- terms: q.data.terms,
8098
- widget_key: q.data.widget_key,
8099
- widget_sandbox: q.data.sandbox,
8100
- extra: q.getExtra({})
8099
+ pg: M.data.pg,
8100
+ method: M.data.method,
8101
+ wallet_id: M.data.wallet_id,
8102
+ terms: M.data.terms,
8103
+ widget_key: M.data.widget_key,
8104
+ widget_sandbox: M.data.sandbox,
8105
+ extra: M.getExtra({})
8101
8106
  };
8102
8107
  }
8103
8108
  widgetRequestPaymentValidate(e = void 0) {
8104
- if (e !== void 0 && q.widgetType !== e)
8109
+ if (e !== void 0 && M.widgetType !== e)
8105
8110
  throw new pe({
8106
8111
  event: "error",
8107
8112
  error_code: "RC_WIDGET_TYPE_INVALID",
8108
8113
  message: e === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
8109
8114
  });
8110
- if (this.$blank(q.data.pg) || this.$blank(q.data.method))
8115
+ if (this.$blank(M.data.pg) || this.$blank(M.data.method))
8111
8116
  throw new pe({
8112
8117
  event: "error",
8113
8118
  error_code: "RC_PG_METHOD_NOT_SELECTED",
8114
8119
  message: this.message.getLocaleMessage("notSelectPayment", "ko")
8115
8120
  });
8116
- if (!q.termsPassed && q.data.use_terms)
8121
+ if (!M.termsPassed && M.data.use_terms)
8117
8122
  throw new pe({
8118
8123
  event: "error",
8119
8124
  error_code: "RC_TERMS_NOT_AGREE",
8120
8125
  message: this.message.getLocaleMessage("termsNotAgree", "ko")
8121
8126
  });
8122
- if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
8127
+ if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(M.data.method) > -1 && M.data.wallet_id === void 0)
8123
8128
  throw new pe({
8124
8129
  event: "error",
8125
8130
  error_code: "RC_BRANDPAY_NEED_SELECT_WALLET",
@@ -8164,7 +8169,7 @@ const se = new lo(), uo = {
8164
8169
  e = r.eventMessage;
8165
8170
  break;
8166
8171
  default:
8167
- if (M(r.event))
8172
+ if (q(r.event))
8168
8173
  e = r;
8169
8174
  else
8170
8175
  throw r;
@@ -8239,10 +8244,10 @@ const se = new lo(), uo = {
8239
8244
  return se.currentPaymentParameters();
8240
8245
  },
8241
8246
  isWidgetTypeSubscription() {
8242
- return q.widgetType === 2;
8247
+ return M.widgetType === 2;
8243
8248
  },
8244
8249
  isWidgetTypePayment() {
8245
- return q.widgetType === 1;
8250
+ return M.widgetType === 1;
8246
8251
  }
8247
8252
  };
8248
8253
  typeof window < "u" && (window.BootpayWidget = uo);