@bootpay/client-js 5.2.4 → 5.2.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -15,22 +15,22 @@ const te = {
15
15
  }), ne = (r) => {
16
16
  let e = !1;
17
17
  return typeof r == "string" || Array.isArray(r) ? e = r.length === 0 : e = r == null || et(r, "object") && r.constructor === Object && Object.keys(r).length === 0, e;
18
- }, q = (r) => !ne(r), et = (r, e) => typeof r === e, $s = (r, e = void 0) => {
19
- if (q(e)) {
18
+ }, z = (r) => !ne(r), et = (r, e) => typeof r === e, ks = (r, e = void 0) => {
19
+ if (z(e)) {
20
20
  const t = typeof e != "string" ? new URLSearchParams(JSON.parse(JSON.stringify(e))).toString() : e;
21
21
  return /\?/.test(r) ? `${r.replace(/&/g, "&")}&${t}` : `${r.replace(/&/g, "&")}?${t}`;
22
22
  } else
23
23
  return r;
24
- }, mt = (r, e) => {
24
+ }, Et = (r, e) => {
25
25
  for (let t in e)
26
26
  e.hasOwnProperty(t) && (r[t] = e[t]);
27
27
  return r;
28
28
  };
29
29
  var N = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
30
- function We(r) {
30
+ function Me(r) {
31
31
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
32
32
  }
33
- function ks(r) {
33
+ function Ps(r) {
34
34
  if (r.__esModule) return r;
35
35
  var e = r.default;
36
36
  if (typeof e == "function") {
@@ -50,23 +50,23 @@ function ks(r) {
50
50
  }), t;
51
51
  }
52
52
  var zr = { exports: {} };
53
- function Ps(r) {
53
+ function Ss(r) {
54
54
  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.');
55
55
  }
56
- var Et = { exports: {} };
57
- const Ss = {}, Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
56
+ var gt = { exports: {} };
57
+ const Is = {}, Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58
58
  __proto__: null,
59
- default: Ss
60
- }, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ ks(Is);
61
- var W0;
59
+ default: Is
60
+ }, Symbol.toStringTag, { value: "Module" })), Rs = /* @__PURE__ */ Ps(Ts);
61
+ var M0;
62
62
  function L() {
63
- return W0 || (W0 = 1, function(r, e) {
63
+ return M0 || (M0 = 1, function(r, e) {
64
64
  (function(t, s) {
65
65
  r.exports = s();
66
66
  })(N, function() {
67
67
  var t = t || function(s, i) {
68
68
  var n;
69
- if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof N < "u" && N.crypto && (n = N.crypto), !n && typeof Ps == "function")
69
+ if (typeof window < "u" && window.crypto && (n = window.crypto), typeof self < "u" && self.crypto && (n = self.crypto), typeof globalThis < "u" && globalThis.crypto && (n = globalThis.crypto), !n && typeof window < "u" && window.msCrypto && (n = window.msCrypto), !n && typeof N < "u" && N.crypto && (n = N.crypto), !n && typeof Ss == "function")
70
70
  try {
71
71
  n = Rs;
72
72
  } catch {
@@ -557,7 +557,7 @@ function L() {
557
557
  }(Math);
558
558
  return t;
559
559
  });
560
- }(Et)), Et.exports;
560
+ }(gt)), gt.exports;
561
561
  }
562
562
  (function(r, e) {
563
563
  (function(t, s) {
@@ -566,8 +566,8 @@ function L() {
566
566
  return t.enc.Utf8;
567
567
  });
568
568
  })(zr);
569
- var Ts = zr.exports;
570
- const L0 = /* @__PURE__ */ We(Ts);
569
+ var Os = zr.exports;
570
+ const L0 = /* @__PURE__ */ Me(Os);
571
571
  var jr = { exports: {} };
572
572
  (function(r, e) {
573
573
  (function(t, s) {
@@ -642,7 +642,7 @@ var jr = { exports: {} };
642
642
  });
643
643
  })(jr);
644
644
  var be = jr.exports;
645
- const He = /* @__PURE__ */ We(be);
645
+ const He = /* @__PURE__ */ Me(be);
646
646
  class rt {
647
647
  $blank(e) {
648
648
  return ne(e);
@@ -702,7 +702,7 @@ const Ye = {
702
702
  this.level <= Ye.error && console.error(this.messageStringify(r, e));
703
703
  }
704
704
  };
705
- class Os extends rt {
705
+ class Us extends rt {
706
706
  constructor() {
707
707
  super(), this.$storage = {};
708
708
  }
@@ -789,7 +789,7 @@ class Os extends rt {
789
789
  }
790
790
  }
791
791
  }
792
- class Us extends Os {
792
+ class Hs extends Us {
793
793
  constructor() {
794
794
  super(), this.currentUserUUID();
795
795
  }
@@ -859,18 +859,18 @@ class Us extends Os {
859
859
  }
860
860
  }
861
861
  }
862
- const $e = new Us(), Hs = "@bootpay/client-js", Ns = "5.2.4", Ms = "dist/index.mjs", Ws = {
862
+ const $e = new Hs(), Ns = "@bootpay/client-js", Ws = "5.2.5-beta.2", Ms = "dist/index.mjs", Ls = {
863
863
  ".": {
864
864
  import: "./dist/index.mjs",
865
865
  types: "./dist/index.d.ts"
866
866
  }
867
- }, Ls = "dist/index.css", qs = {
867
+ }, qs = "dist/index.css", zs = {
868
868
  test: 'echo "Error: no test specified" && exit 1',
869
869
  build: "rm -rf ./dist && vite build",
870
870
  deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
871
- }, zs = {
872
- typescript: "^5.5.4"
873
871
  }, js = {
872
+ typescript: "^5.5.4"
873
+ }, Ks = {
874
874
  "@types/ws": "^8.5.5",
875
875
  "@types/node": "^18.15.3",
876
876
  "@webpack-cli/serve": "^2.0.5",
@@ -905,23 +905,23 @@ const $e = new Us(), Hs = "@bootpay/client-js", Ns = "5.2.4", Ms = "dist/index.m
905
905
  "vite-plugin-dts": "^3.6.4",
906
906
  "vite-plugin-tsconfig": "^1.0.4",
907
907
  "vite-plugin-css-injected-by-js": "3.3.1"
908
- }, Ks = {
908
+ }, Gs = {
909
909
  "@webpack-cli/serve": "^1.3.1"
910
- }, Gs = [], Xs = "", Vs = "ISC", Ys = "", ke = {
911
- name: Hs,
912
- version: Ns,
910
+ }, Xs = [], Vs = "", Ys = "ISC", Js = "", ke = {
911
+ name: Ns,
912
+ version: Ws,
913
913
  main: Ms,
914
- exports: Ws,
915
- styles: Ls,
916
- scripts: qs,
917
- dependencies: zs,
918
- devDependencies: js,
919
- resolutions: Ks,
920
- keywords: Gs,
921
- author: Xs,
922
- license: Vs,
923
- description: Ys
924
- }, T = {
914
+ exports: Ls,
915
+ styles: qs,
916
+ scripts: zs,
917
+ dependencies: js,
918
+ devDependencies: Ks,
919
+ resolutions: Gs,
920
+ keywords: Xs,
921
+ author: Vs,
922
+ license: Ys,
923
+ description: Js
924
+ }, R = {
925
925
  mode: "production",
926
926
  locale: "ko",
927
927
  isSetLocale: !1,
@@ -1025,10 +1025,10 @@ const Fe = {
1025
1025
  return ne(Fe.__BOOTPAY_NAMESPACE) && (Fe.__BOOTPAY_NAMESPACE = {}), this.addEventListener(r.split(".")[0], e, t || !1), Fe.__BOOTPAY_NAMESPACE[r] = e, this;
1026
1026
  },
1027
1027
  off(r) {
1028
- return q(Fe.__BOOTPAY_NAMESPACE) && q(Fe.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], Fe.__BOOTPAY_NAMESPACE[r]), this;
1028
+ return z(Fe.__BOOTPAY_NAMESPACE) && z(Fe.__BOOTPAY_NAMESPACE[r]) && this.removeEventListener(r.split(".")[0], Fe.__BOOTPAY_NAMESPACE[r]), this;
1029
1029
  }
1030
1030
  };
1031
- class xt extends rt {
1031
+ class st extends rt {
1032
1032
  constructor(e) {
1033
1033
  super(), this.$resolve = null, this.$reject = null, this.$messageEventName = (e == null ? void 0 : e.messageEventName) ?? "message.BootpayEvent", this.$eventHooks = (e == null ? void 0 : e.messageEventHooks) ?? {}, this.afterBind = e == null ? void 0 : e.afterBind, this.$childInstance = null, Fe.initialize();
1034
1034
  }
@@ -1038,9 +1038,9 @@ class xt extends rt {
1038
1038
  bind(e, t) {
1039
1039
  this.$messageEventName && window.resetBootpayEventListener(this.$messageEventName, (s) => {
1040
1040
  const i = this.parseEvent(s.data);
1041
- if (H.debug("event received", JSON.stringify(i)), q(i) && q(i.event)) {
1041
+ if (H.debug("event received", JSON.stringify(i)), z(i) && z(i.event)) {
1042
1042
  const n = this.hookFunction(i.hook);
1043
- if (q(n) && q(n[i.event]))
1043
+ if (z(n) && z(n[i.event]))
1044
1044
  return n[i.event](i.data, this);
1045
1045
  H.debug("event", `${this.$messageEventName}: ${i.event} is not defined`);
1046
1046
  }
@@ -1050,10 +1050,10 @@ class xt extends rt {
1050
1050
  return this.$eventHooks[e];
1051
1051
  }
1052
1052
  reject(e) {
1053
- q(this.$reject) && this.$reject(e);
1053
+ z(this.$reject) && this.$reject(e);
1054
1054
  }
1055
1055
  resolve(e) {
1056
- q(this.$resolve) && this.$resolve(e);
1056
+ z(this.$resolve) && this.$resolve(e);
1057
1057
  }
1058
1058
  /**
1059
1059
  * 함수를 class instnace variables에 넣는다
@@ -1125,10 +1125,11 @@ class _e extends rt {
1125
1125
  * @date: 2024-01-01
1126
1126
  */
1127
1127
  applyStylesToElement(e, t) {
1128
- for (let s in Object.keys(t)) {
1129
- let i = Object.keys(t)[s], n = t[i];
1130
- this.$present(n) && !String(n).match(/%/) && !String(n).match(/vh/) && (i.match(/width/) || i.match(/Width/) || i.match(/height/) || i.match(/Height/)) && (n = `${String(t[i]).replace(/px/gi, "")}px`), e.style.setProperty(i, n);
1131
- }
1128
+ if (t !== void 0)
1129
+ for (let s in Object.keys(t)) {
1130
+ let i = Object.keys(t)[s], n = t[i];
1131
+ this.$present(n) && !String(n).match(/%/) && !String(n).match(/vh/) && (i.match(/width/) || i.match(/Width/) || i.match(/height/) || i.match(/Height/)) && (n = `${String(t[i]).replace(/px/gi, "")}px`), e.style.setProperty(i, n);
1132
+ }
1132
1133
  }
1133
1134
  /**
1134
1135
  * render가 되었는지 체크한다
@@ -1161,7 +1162,7 @@ class _e extends rt {
1161
1162
  t.style.setProperty("height", "0"), t.innerHTML = this.$template, this.byId(this.$iFrameId).setAttribute("src", e);
1162
1163
  }
1163
1164
  }
1164
- class Js extends _e {
1165
+ class Zs extends _e {
1165
1166
  constructor() {
1166
1167
  super(), this.$alfredId = "bootpay-alfred-progress-id", this.$alfredTextId = "__alfred-text-message__";
1167
1168
  }
@@ -1208,101 +1209,101 @@ class Js extends _e {
1208
1209
  }
1209
1210
  }
1210
1211
  }
1211
- const ue = new Js();
1212
- var v0 = { exports: {} }, Kr = function(e, t) {
1212
+ const ue = new Zs();
1213
+ var y0 = { exports: {} }, Kr = function(e, t) {
1213
1214
  return function() {
1214
1215
  for (var i = new Array(arguments.length), n = 0; n < i.length; n++)
1215
1216
  i[n] = arguments[n];
1216
1217
  return e.apply(t, i);
1217
1218
  };
1218
- }, Zs = Kr, y0 = Object.prototype.toString, m0 = /* @__PURE__ */ function(r) {
1219
+ }, Qs = Kr, m0 = Object.prototype.toString, E0 = /* @__PURE__ */ function(r) {
1219
1220
  return function(e) {
1220
- var t = y0.call(e);
1221
+ var t = m0.call(e);
1221
1222
  return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
1222
1223
  };
1223
1224
  }(/* @__PURE__ */ Object.create(null));
1224
1225
  function Se(r) {
1225
1226
  return r = r.toLowerCase(), function(t) {
1226
- return m0(t) === r;
1227
+ return E0(t) === r;
1227
1228
  };
1228
1229
  }
1229
- function E0(r) {
1230
+ function g0(r) {
1230
1231
  return Array.isArray(r);
1231
1232
  }
1232
- function dt(r) {
1233
+ function xt(r) {
1233
1234
  return typeof r > "u";
1234
1235
  }
1235
- function Qs(r) {
1236
- return r !== null && !dt(r) && r.constructor !== null && !dt(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
1236
+ function ei(r) {
1237
+ return r !== null && !xt(r) && r.constructor !== null && !xt(r.constructor) && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
1237
1238
  }
1238
1239
  var Gr = Se("ArrayBuffer");
1239
- function ei(r) {
1240
+ function ti(r) {
1240
1241
  var e;
1241
1242
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Gr(r.buffer), e;
1242
1243
  }
1243
- function ti(r) {
1244
+ function ri(r) {
1244
1245
  return typeof r == "string";
1245
1246
  }
1246
- function ri(r) {
1247
+ function si(r) {
1247
1248
  return typeof r == "number";
1248
1249
  }
1249
1250
  function Xr(r) {
1250
1251
  return r !== null && typeof r == "object";
1251
1252
  }
1252
- function at(r) {
1253
- if (m0(r) !== "object")
1253
+ function ct(r) {
1254
+ if (E0(r) !== "object")
1254
1255
  return !1;
1255
1256
  var e = Object.getPrototypeOf(r);
1256
1257
  return e === null || e === Object.prototype;
1257
1258
  }
1258
- var si = Se("Date"), ii = Se("File"), ni = Se("Blob"), oi = Se("FileList");
1259
- function g0(r) {
1260
- return y0.call(r) === "[object Function]";
1261
- }
1262
- function ai(r) {
1263
- return Xr(r) && g0(r.pipe);
1259
+ var ii = Se("Date"), ni = Se("File"), oi = Se("Blob"), ai = Se("FileList");
1260
+ function B0(r) {
1261
+ return m0.call(r) === "[object Function]";
1264
1262
  }
1265
1263
  function ci(r) {
1264
+ return Xr(r) && B0(r.pipe);
1265
+ }
1266
+ function di(r) {
1266
1267
  var e = "[object FormData]";
1267
- return r && (typeof FormData == "function" && r instanceof FormData || y0.call(r) === e || g0(r.toString) && r.toString() === e);
1268
+ return r && (typeof FormData == "function" && r instanceof FormData || m0.call(r) === e || B0(r.toString) && r.toString() === e);
1268
1269
  }
1269
- var di = Se("URLSearchParams");
1270
- function xi(r) {
1270
+ var xi = Se("URLSearchParams");
1271
+ function li(r) {
1271
1272
  return r.trim ? r.trim() : r.replace(/^\s+|\s+$/g, "");
1272
1273
  }
1273
- function li() {
1274
+ function ui() {
1274
1275
  return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
1275
1276
  }
1276
- function B0(r, e) {
1277
+ function b0(r, e) {
1277
1278
  if (!(r === null || typeof r > "u"))
1278
- if (typeof r != "object" && (r = [r]), E0(r))
1279
+ if (typeof r != "object" && (r = [r]), g0(r))
1279
1280
  for (var t = 0, s = r.length; t < s; t++)
1280
1281
  e.call(null, r[t], t, r);
1281
1282
  else
1282
1283
  for (var i in r)
1283
1284
  Object.prototype.hasOwnProperty.call(r, i) && e.call(null, r[i], i, r);
1284
1285
  }
1285
- function u0() {
1286
+ function p0() {
1286
1287
  var r = {};
1287
1288
  function e(i, n) {
1288
- at(r[n]) && at(i) ? r[n] = u0(r[n], i) : at(i) ? r[n] = u0({}, i) : E0(i) ? r[n] = i.slice() : r[n] = i;
1289
+ ct(r[n]) && ct(i) ? r[n] = p0(r[n], i) : ct(i) ? r[n] = p0({}, i) : g0(i) ? r[n] = i.slice() : r[n] = i;
1289
1290
  }
1290
1291
  for (var t = 0, s = arguments.length; t < s; t++)
1291
- B0(arguments[t], e);
1292
+ b0(arguments[t], e);
1292
1293
  return r;
1293
1294
  }
1294
- function ui(r, e, t) {
1295
- return B0(e, function(i, n) {
1296
- t && typeof i == "function" ? r[n] = Zs(i, t) : r[n] = i;
1295
+ function pi(r, e, t) {
1296
+ return b0(e, function(i, n) {
1297
+ t && typeof i == "function" ? r[n] = Qs(i, t) : r[n] = i;
1297
1298
  }), r;
1298
1299
  }
1299
- function pi(r) {
1300
+ function hi(r) {
1300
1301
  return r.charCodeAt(0) === 65279 && (r = r.slice(1)), r;
1301
1302
  }
1302
- function hi(r, e, t, s) {
1303
+ function fi(r, e, t, s) {
1303
1304
  r.prototype = Object.create(e.prototype, s), r.prototype.constructor = r, t && Object.assign(r.prototype, t);
1304
1305
  }
1305
- function fi(r, e, t) {
1306
+ function vi(r, e, t) {
1306
1307
  var s, i, n, m = {};
1307
1308
  e = e || {};
1308
1309
  do {
@@ -1312,54 +1313,54 @@ function fi(r, e, t) {
1312
1313
  } while (r && (!t || t(r, e)) && r !== Object.prototype);
1313
1314
  return e;
1314
1315
  }
1315
- function vi(r, e, t) {
1316
+ function yi(r, e, t) {
1316
1317
  r = String(r), (t === void 0 || t > r.length) && (t = r.length), t -= e.length;
1317
1318
  var s = r.indexOf(e, t);
1318
1319
  return s !== -1 && s === t;
1319
1320
  }
1320
- function yi(r) {
1321
+ function mi(r) {
1321
1322
  if (!r) return null;
1322
1323
  var e = r.length;
1323
- if (dt(e)) return null;
1324
+ if (xt(e)) return null;
1324
1325
  for (var t = new Array(e); e-- > 0; )
1325
1326
  t[e] = r[e];
1326
1327
  return t;
1327
1328
  }
1328
- var mi = /* @__PURE__ */ function(r) {
1329
+ var Ei = /* @__PURE__ */ function(r) {
1329
1330
  return function(e) {
1330
1331
  return r && e instanceof r;
1331
1332
  };
1332
1333
  }(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array)), ee = {
1333
- isArray: E0,
1334
+ isArray: g0,
1334
1335
  isArrayBuffer: Gr,
1335
- isBuffer: Qs,
1336
- isFormData: ci,
1337
- isArrayBufferView: ei,
1338
- isString: ti,
1339
- isNumber: ri,
1336
+ isBuffer: ei,
1337
+ isFormData: di,
1338
+ isArrayBufferView: ti,
1339
+ isString: ri,
1340
+ isNumber: si,
1340
1341
  isObject: Xr,
1341
- isPlainObject: at,
1342
- isUndefined: dt,
1343
- isDate: si,
1344
- isFile: ii,
1345
- isBlob: ni,
1346
- isFunction: g0,
1347
- isStream: ai,
1348
- isURLSearchParams: di,
1349
- isStandardBrowserEnv: li,
1350
- forEach: B0,
1351
- merge: u0,
1352
- extend: ui,
1353
- trim: xi,
1354
- stripBOM: pi,
1355
- inherits: hi,
1356
- toFlatObject: fi,
1357
- kindOf: m0,
1342
+ isPlainObject: ct,
1343
+ isUndefined: xt,
1344
+ isDate: ii,
1345
+ isFile: ni,
1346
+ isBlob: oi,
1347
+ isFunction: B0,
1348
+ isStream: ci,
1349
+ isURLSearchParams: xi,
1350
+ isStandardBrowserEnv: ui,
1351
+ forEach: b0,
1352
+ merge: p0,
1353
+ extend: pi,
1354
+ trim: li,
1355
+ stripBOM: hi,
1356
+ inherits: fi,
1357
+ toFlatObject: vi,
1358
+ kindOf: E0,
1358
1359
  kindOfTest: Se,
1359
- endsWith: vi,
1360
- toArray: yi,
1361
- isTypedArray: mi,
1362
- isFileList: oi
1360
+ endsWith: yi,
1361
+ toArray: mi,
1362
+ isTypedArray: Ei,
1363
+ isFileList: ai
1363
1364
  }, Oe = ee;
1364
1365
  function q0(r) {
1365
1366
  return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
@@ -1385,7 +1386,7 @@ var Vr = function(e, t, s) {
1385
1386
  m !== -1 && (e = e.slice(0, m)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
1386
1387
  }
1387
1388
  return e;
1388
- }, Ei = ee;
1389
+ }, gi = ee;
1389
1390
  function lt() {
1390
1391
  this.handlers = [];
1391
1392
  }
@@ -1401,12 +1402,12 @@ lt.prototype.eject = function(e) {
1401
1402
  this.handlers[e] && (this.handlers[e] = null);
1402
1403
  };
1403
1404
  lt.prototype.forEach = function(e) {
1404
- Ei.forEach(this.handlers, function(s) {
1405
+ gi.forEach(this.handlers, function(s) {
1405
1406
  s !== null && e(s);
1406
1407
  });
1407
1408
  };
1408
- var gi = lt, Bi = ee, bi = function(e, t) {
1409
- Bi.forEach(e, function(i, n) {
1409
+ var Bi = lt, bi = ee, _i = function(e, t) {
1410
+ bi.forEach(e, function(i, n) {
1410
1411
  n !== t && n.toUpperCase() === t.toUpperCase() && (e[t] = i, delete e[n]);
1411
1412
  });
1412
1413
  }, Yr = ee;
@@ -1463,7 +1464,7 @@ var Le = Ne, Qr = {
1463
1464
  forcedJSONParsing: !0,
1464
1465
  clarifyTimeoutError: !1
1465
1466
  }, fe = ee;
1466
- function _i(r, e) {
1467
+ function Ci(r, e) {
1467
1468
  e = e || new FormData();
1468
1469
  var t = [];
1469
1470
  function s(n) {
@@ -1494,12 +1495,12 @@ function _i(r, e) {
1494
1495
  }
1495
1496
  return i(r), e;
1496
1497
  }
1497
- var es = _i, gt, z0;
1498
- function Ci() {
1499
- if (z0) return gt;
1498
+ var es = Ci, Bt, z0;
1499
+ function Ai() {
1500
+ if (z0) return Bt;
1500
1501
  z0 = 1;
1501
1502
  var r = Le;
1502
- return gt = function(t, s, i) {
1503
+ return Bt = function(t, s, i) {
1503
1504
  var n = i.config.validateStatus;
1504
1505
  !i.status || !n || n(i.status) ? t(i) : s(new r(
1505
1506
  "Request failed with status code " + i.status,
@@ -1508,14 +1509,14 @@ function Ci() {
1508
1509
  i.request,
1509
1510
  i
1510
1511
  ));
1511
- }, gt;
1512
+ }, Bt;
1512
1513
  }
1513
- var Bt, j0;
1514
- function Ai() {
1515
- if (j0) return Bt;
1514
+ var bt, j0;
1515
+ function wi() {
1516
+ if (j0) return bt;
1516
1517
  j0 = 1;
1517
1518
  var r = ee;
1518
- return Bt = r.isStandardBrowserEnv() ? (
1519
+ return bt = r.isStandardBrowserEnv() ? (
1519
1520
  // Standard browser envs support document.cookie
1520
1521
  /* @__PURE__ */ function() {
1521
1522
  return {
@@ -1545,17 +1546,17 @@ function Ai() {
1545
1546
  }
1546
1547
  };
1547
1548
  }()
1548
- ), Bt;
1549
+ ), bt;
1549
1550
  }
1550
- var wi = function(e) {
1551
+ var Fi = function(e) {
1551
1552
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1552
- }, Fi = function(e, t) {
1553
+ }, Di = function(e, t) {
1553
1554
  return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1554
- }, Di = wi, $i = Fi, ts = function(e, t) {
1555
- return e && !Di(t) ? $i(e, t) : t;
1556
- }, bt, K0;
1557
- function ki() {
1558
- if (K0) return bt;
1555
+ }, $i = Fi, ki = Di, ts = function(e, t) {
1556
+ return e && !$i(t) ? ki(e, t) : t;
1557
+ }, _t, K0;
1558
+ function Pi() {
1559
+ if (K0) return _t;
1559
1560
  K0 = 1;
1560
1561
  var r = ee, e = [
1561
1562
  "age",
@@ -1576,7 +1577,7 @@ function ki() {
1576
1577
  "retry-after",
1577
1578
  "user-agent"
1578
1579
  ];
1579
- return bt = function(s) {
1580
+ return _t = function(s) {
1580
1581
  var i = {}, n, m, x;
1581
1582
  return s && r.forEach(s.split(`
1582
1583
  `), function(a) {
@@ -1586,14 +1587,14 @@ function ki() {
1586
1587
  n === "set-cookie" ? i[n] = (i[n] ? i[n] : []).concat([m]) : i[n] = i[n] ? i[n] + ", " + m : m;
1587
1588
  }
1588
1589
  }), i;
1589
- }, bt;
1590
+ }, _t;
1590
1591
  }
1591
- var _t, G0;
1592
- function Pi() {
1593
- if (G0) return _t;
1592
+ var Ct, G0;
1593
+ function Si() {
1594
+ if (G0) return Ct;
1594
1595
  G0 = 1;
1595
1596
  var r = ee;
1596
- return _t = r.isStandardBrowserEnv() ? (
1597
+ return Ct = r.isStandardBrowserEnv() ? (
1597
1598
  // Standard browser envs have full support of the APIs needed to test
1598
1599
  // whether the request URL is of the same origin as current location.
1599
1600
  function() {
@@ -1623,11 +1624,11 @@ function Pi() {
1623
1624
  return !0;
1624
1625
  };
1625
1626
  }()
1626
- ), _t;
1627
+ ), Ct;
1627
1628
  }
1628
- var Ct, X0;
1629
+ var At, X0;
1629
1630
  function ut() {
1630
- if (X0) return Ct;
1631
+ if (X0) return At;
1631
1632
  X0 = 1;
1632
1633
  var r = Le, e = ee;
1633
1634
  function t(s) {
@@ -1635,21 +1636,21 @@ function ut() {
1635
1636
  }
1636
1637
  return e.inherits(t, r, {
1637
1638
  __CANCEL__: !0
1638
- }), Ct = t, Ct;
1639
+ }), At = t, At;
1639
1640
  }
1640
- var At, V0;
1641
- function Si() {
1642
- return V0 || (V0 = 1, At = function(e) {
1641
+ var wt, V0;
1642
+ function Ii() {
1643
+ return V0 || (V0 = 1, wt = function(e) {
1643
1644
  var t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1644
1645
  return t && t[1] || "";
1645
- }), At;
1646
+ }), wt;
1646
1647
  }
1647
- var wt, Y0;
1648
+ var Ft, Y0;
1648
1649
  function J0() {
1649
- if (Y0) return wt;
1650
+ if (Y0) return Ft;
1650
1651
  Y0 = 1;
1651
- var r = ee, e = Ci(), t = Ai(), s = Vr, i = ts, n = ki(), m = Pi(), x = Qr, p = Le, a = ut(), c = Si();
1652
- return wt = function(o) {
1652
+ var r = ee, e = Ai(), t = wi(), s = Vr, i = ts, n = Pi(), m = Si(), x = Qr, p = Le, a = ut(), c = Ii();
1653
+ return Ft = function(o) {
1653
1654
  return new Promise(function(h, y) {
1654
1655
  var f = o.data, b = o.headers, d = o.responseType, l;
1655
1656
  function v() {
@@ -1665,7 +1666,7 @@ function J0() {
1665
1666
  E.open(o.method.toUpperCase(), s(w, o.params, o.paramsSerializer), !0), E.timeout = o.timeout;
1666
1667
  function I() {
1667
1668
  if (E) {
1668
- var F = "getAllResponseHeaders" in E ? n(E.getAllResponseHeaders()) : null, D = !d || d === "text" || d === "json" ? E.responseText : E.response, R = {
1669
+ var F = "getAllResponseHeaders" in E ? n(E.getAllResponseHeaders()) : null, D = !d || d === "text" || d === "json" ? E.responseText : E.response, T = {
1669
1670
  data: D,
1670
1671
  status: E.status,
1671
1672
  statusText: E.statusText,
@@ -1677,7 +1678,7 @@ function J0() {
1677
1678
  h(U), v();
1678
1679
  }, function(U) {
1679
1680
  y(U), v();
1680
- }, R), E = null;
1681
+ }, T), E = null;
1681
1682
  }
1682
1683
  }
1683
1684
  if ("onloadend" in E ? E.onloadend = I : E.onreadystatechange = function() {
@@ -1687,10 +1688,10 @@ function J0() {
1687
1688
  }, E.onerror = function() {
1688
1689
  y(new p("Network Error", p.ERR_NETWORK, o, E, E)), E = null;
1689
1690
  }, E.ontimeout = function() {
1690
- var D = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded", R = o.transitional || x;
1691
+ var D = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded", T = o.transitional || x;
1691
1692
  o.timeoutErrorMessage && (D = o.timeoutErrorMessage), y(new p(
1692
1693
  D,
1693
- R.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
1694
+ T.clarifyTimeoutError ? p.ETIMEDOUT : p.ECONNABORTED,
1694
1695
  o,
1695
1696
  E
1696
1697
  )), E = null;
@@ -1698,8 +1699,8 @@ function J0() {
1698
1699
  var B = (o.withCredentials || m(w)) && o.xsrfCookieName ? t.read(o.xsrfCookieName) : void 0;
1699
1700
  B && (b[o.xsrfHeaderName] = B);
1700
1701
  }
1701
- "setRequestHeader" in E && r.forEach(b, function(D, R) {
1702
- typeof f > "u" && R.toLowerCase() === "content-type" ? delete b[R] : E.setRequestHeader(R, D);
1702
+ "setRequestHeader" in E && r.forEach(b, function(D, T) {
1703
+ typeof f > "u" && T.toLowerCase() === "content-type" ? delete b[T] : E.setRequestHeader(T, D);
1703
1704
  }), r.isUndefined(o.withCredentials) || (E.withCredentials = !!o.withCredentials), d && d !== "json" && (E.responseType = o.responseType), typeof o.onDownloadProgress == "function" && E.addEventListener("progress", o.onDownloadProgress), typeof o.onUploadProgress == "function" && E.upload && E.upload.addEventListener("progress", o.onUploadProgress), (o.cancelToken || o.signal) && (l = function(F) {
1704
1705
  E && (y(!F || F && F.type ? new a() : F), E.abort(), E = null);
1705
1706
  }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l))), f || (f = null);
@@ -1710,23 +1711,23 @@ function J0() {
1710
1711
  }
1711
1712
  E.send(f);
1712
1713
  });
1713
- }, wt;
1714
+ }, Ft;
1714
1715
  }
1715
- var Ft, Z0;
1716
- function Ii() {
1717
- return Z0 || (Z0 = 1, Ft = null), Ft;
1716
+ var Dt, Z0;
1717
+ function Ti() {
1718
+ return Z0 || (Z0 = 1, Dt = null), Dt;
1718
1719
  }
1719
- var Z = ee, Q0 = bi, er = Le, Ri = Qr, Ti = es, Oi = {
1720
+ var Z = ee, Q0 = _i, er = Le, Ri = Qr, Oi = es, Ui = {
1720
1721
  "Content-Type": "application/x-www-form-urlencoded"
1721
1722
  };
1722
1723
  function tr(r, e) {
1723
1724
  !Z.isUndefined(r) && Z.isUndefined(r["Content-Type"]) && (r["Content-Type"] = e);
1724
1725
  }
1725
- function Ui() {
1726
+ function Hi() {
1726
1727
  var r;
1727
1728
  return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (r = J0()), r;
1728
1729
  }
1729
- function Hi(r, e, t) {
1730
+ function Ni(r, e, t) {
1730
1731
  if (Z.isString(r))
1731
1732
  try {
1732
1733
  return (e || JSON.parse)(r), Z.trim(r);
@@ -1738,7 +1739,7 @@ function Hi(r, e, t) {
1738
1739
  }
1739
1740
  var pt = {
1740
1741
  transitional: Ri,
1741
- adapter: Ui(),
1742
+ adapter: Hi(),
1742
1743
  transformRequest: [function(e, t) {
1743
1744
  if (Q0(t, "Accept"), Q0(t, "Content-Type"), Z.isFormData(e) || Z.isArrayBuffer(e) || Z.isBuffer(e) || Z.isStream(e) || Z.isFile(e) || Z.isBlob(e))
1744
1745
  return e;
@@ -1749,9 +1750,9 @@ var pt = {
1749
1750
  var s = Z.isObject(e), i = t && t["Content-Type"], n;
1750
1751
  if ((n = Z.isFileList(e)) || s && i === "multipart/form-data") {
1751
1752
  var m = this.env && this.env.FormData;
1752
- return Ti(n ? { "files[]": e } : e, m && new m());
1753
+ return Oi(n ? { "files[]": e } : e, m && new m());
1753
1754
  } else if (s || i === "application/json")
1754
- return tr(t, "application/json"), Hi(e);
1755
+ return tr(t, "application/json"), Ni(e);
1755
1756
  return e;
1756
1757
  }],
1757
1758
  transformResponse: [function(e) {
@@ -1775,7 +1776,7 @@ var pt = {
1775
1776
  maxContentLength: -1,
1776
1777
  maxBodyLength: -1,
1777
1778
  env: {
1778
- FormData: Ii()
1779
+ FormData: Ti()
1779
1780
  },
1780
1781
  validateStatus: function(e) {
1781
1782
  return e >= 200 && e < 300;
@@ -1790,26 +1791,26 @@ Z.forEach(["delete", "get", "head"], function(e) {
1790
1791
  pt.headers[e] = {};
1791
1792
  });
1792
1793
  Z.forEach(["post", "put", "patch"], function(e) {
1793
- pt.headers[e] = Z.merge(Oi);
1794
+ pt.headers[e] = Z.merge(Ui);
1794
1795
  });
1795
- var b0 = pt, Ni = ee, Mi = b0, Wi = function(e, t, s) {
1796
+ var _0 = pt, Wi = ee, Mi = _0, Li = function(e, t, s) {
1796
1797
  var i = this || Mi;
1797
- return Ni.forEach(s, function(m) {
1798
+ return Wi.forEach(s, function(m) {
1798
1799
  e = m.call(i, e, t);
1799
1800
  }), e;
1800
- }, Dt, rr;
1801
+ }, $t, rr;
1801
1802
  function rs() {
1802
- return rr || (rr = 1, Dt = function(e) {
1803
+ return rr || (rr = 1, $t = function(e) {
1803
1804
  return !!(e && e.__CANCEL__);
1804
- }), Dt;
1805
+ }), $t;
1805
1806
  }
1806
- var sr = ee, $t = Wi, Li = rs(), qi = b0, zi = ut();
1807
- function kt(r) {
1807
+ var sr = ee, kt = Li, qi = rs(), zi = _0, ji = ut();
1808
+ function Pt(r) {
1808
1809
  if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted)
1809
- throw new zi();
1810
+ throw new ji();
1810
1811
  }
1811
- var ji = function(e) {
1812
- kt(e), e.headers = e.headers || {}, e.data = $t.call(
1812
+ var Ki = function(e) {
1813
+ Pt(e), e.headers = e.headers || {}, e.data = kt.call(
1813
1814
  e,
1814
1815
  e.data,
1815
1816
  e.headers,
@@ -1824,16 +1825,16 @@ var ji = function(e) {
1824
1825
  delete e.headers[i];
1825
1826
  }
1826
1827
  );
1827
- var t = e.adapter || qi.adapter;
1828
+ var t = e.adapter || zi.adapter;
1828
1829
  return t(e).then(function(i) {
1829
- return kt(e), i.data = $t.call(
1830
+ return Pt(e), i.data = kt.call(
1830
1831
  e,
1831
1832
  i.data,
1832
1833
  i.headers,
1833
1834
  e.transformResponse
1834
1835
  ), i;
1835
1836
  }, function(i) {
1836
- return Li(i) || (kt(e), i && i.response && (i.response.data = $t.call(
1837
+ return qi(i) || (Pt(e), i && i.response && (i.response.data = kt.call(
1837
1838
  e,
1838
1839
  i.response.data,
1839
1840
  i.response.headers,
@@ -1901,22 +1902,22 @@ var ji = function(e) {
1901
1902
  var o = a[g] || n, u = o(g);
1902
1903
  de.isUndefined(u) && o !== p || (s[g] = u);
1903
1904
  }), s;
1904
- }, Pt, ir;
1905
+ }, St, ir;
1905
1906
  function is() {
1906
- return ir || (ir = 1, Pt = {
1907
+ return ir || (ir = 1, St = {
1907
1908
  version: "0.27.2"
1908
- }), Pt;
1909
+ }), St;
1909
1910
  }
1910
- var Ki = is().version, Be = Le, _0 = {};
1911
+ var Gi = is().version, Be = Le, C0 = {};
1911
1912
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(r, e) {
1912
- _0[r] = function(s) {
1913
+ C0[r] = function(s) {
1913
1914
  return typeof s === r || "a" + (e < 1 ? "n " : " ") + r;
1914
1915
  };
1915
1916
  });
1916
1917
  var nr = {};
1917
- _0.transitional = function(e, t, s) {
1918
+ C0.transitional = function(e, t, s) {
1918
1919
  function i(n, m) {
1919
- return "[Axios v" + Ki + "] Transitional option '" + n + "'" + m + (s ? ". " + s : "");
1920
+ return "[Axios v" + Gi + "] Transitional option '" + n + "'" + m + (s ? ". " + s : "");
1920
1921
  }
1921
1922
  return function(n, m, x) {
1922
1923
  if (e === !1)
@@ -1932,7 +1933,7 @@ _0.transitional = function(e, t, s) {
1932
1933
  )), e ? e(n, m, x) : !0;
1933
1934
  };
1934
1935
  };
1935
- function Gi(r, e, t) {
1936
+ function Xi(r, e, t) {
1936
1937
  if (typeof r != "object")
1937
1938
  throw new Be("options must be an object", Be.ERR_BAD_OPTION_VALUE);
1938
1939
  for (var s = Object.keys(r), i = s.length; i-- > 0; ) {
@@ -1947,17 +1948,17 @@ function Gi(r, e, t) {
1947
1948
  throw new Be("Unknown option " + n, Be.ERR_BAD_OPTION);
1948
1949
  }
1949
1950
  }
1950
- var Xi = {
1951
- assertOptions: Gi,
1952
- validators: _0
1953
- }, ns = ee, Vi = Vr, or = gi, ar = ji, ht = ss, Yi = ts, os = Xi, Ue = os.validators;
1954
- function Me(r) {
1951
+ var Vi = {
1952
+ assertOptions: Xi,
1953
+ validators: C0
1954
+ }, ns = ee, Yi = Vr, or = Bi, ar = Ki, ht = ss, Ji = ts, os = Vi, Ue = os.validators;
1955
+ function We(r) {
1955
1956
  this.defaults = r, this.interceptors = {
1956
1957
  request: new or(),
1957
1958
  response: new or()
1958
1959
  };
1959
1960
  }
1960
- Me.prototype.request = function(e, t) {
1961
+ We.prototype.request = function(e, t) {
1961
1962
  typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = ht(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
1962
1963
  var s = t.transitional;
1963
1964
  s !== void 0 && os.assertOptions(s, {
@@ -1998,13 +1999,13 @@ Me.prototype.request = function(e, t) {
1998
1999
  x = x.then(m.shift(), m.shift());
1999
2000
  return x;
2000
2001
  };
2001
- Me.prototype.getUri = function(e) {
2002
+ We.prototype.getUri = function(e) {
2002
2003
  e = ht(this.defaults, e);
2003
- var t = Yi(e.baseURL, e.url);
2004
- return Vi(t, e.params, e.paramsSerializer);
2004
+ var t = Ji(e.baseURL, e.url);
2005
+ return Yi(t, e.params, e.paramsSerializer);
2005
2006
  };
2006
2007
  ns.forEach(["delete", "get", "head", "options"], function(e) {
2007
- Me.prototype[e] = function(t, s) {
2008
+ We.prototype[e] = function(t, s) {
2008
2009
  return this.request(ht(s || {}, {
2009
2010
  method: e,
2010
2011
  url: t,
@@ -2025,11 +2026,11 @@ ns.forEach(["post", "put", "patch"], function(e) {
2025
2026
  }));
2026
2027
  };
2027
2028
  }
2028
- Me.prototype[e] = t(), Me.prototype[e + "Form"] = t(!0);
2029
+ We.prototype[e] = t(), We.prototype[e + "Form"] = t(!0);
2029
2030
  });
2030
- var Ji = Me, St, cr;
2031
- function Zi() {
2032
- if (cr) return St;
2031
+ var Zi = We, It, cr;
2032
+ function Qi() {
2033
+ if (cr) return It;
2033
2034
  cr = 1;
2034
2035
  var r = ut();
2035
2036
  function e(t) {
@@ -2080,18 +2081,18 @@ function Zi() {
2080
2081
  token: i,
2081
2082
  cancel: s
2082
2083
  };
2083
- }, St = e, St;
2084
+ }, It = e, It;
2084
2085
  }
2085
- var It, dr;
2086
- function Qi() {
2087
- return dr || (dr = 1, It = function(e) {
2086
+ var Tt, dr;
2087
+ function en() {
2088
+ return dr || (dr = 1, Tt = function(e) {
2088
2089
  return function(s) {
2089
2090
  return e.apply(null, s);
2090
2091
  };
2091
- }), It;
2092
+ }), Tt;
2092
2093
  }
2093
2094
  var Rt, xr;
2094
- function en() {
2095
+ function tn() {
2095
2096
  if (xr) return Rt;
2096
2097
  xr = 1;
2097
2098
  var r = ee;
@@ -2099,17 +2100,17 @@ function en() {
2099
2100
  return r.isObject(t) && t.isAxiosError === !0;
2100
2101
  }, Rt;
2101
2102
  }
2102
- var lr = ee, tn = Kr, ct = Ji, rn = ss, sn = b0;
2103
+ var lr = ee, rn = Kr, dt = Zi, sn = ss, nn = _0;
2103
2104
  function as(r) {
2104
- var e = new ct(r), t = tn(ct.prototype.request, e);
2105
- return lr.extend(t, ct.prototype, e), lr.extend(t, e), t.create = function(i) {
2106
- return as(rn(r, i));
2105
+ var e = new dt(r), t = rn(dt.prototype.request, e);
2106
+ return lr.extend(t, dt.prototype, e), lr.extend(t, e), t.create = function(i) {
2107
+ return as(sn(r, i));
2107
2108
  }, t;
2108
2109
  }
2109
- var oe = as(sn);
2110
- oe.Axios = ct;
2110
+ var oe = as(nn);
2111
+ oe.Axios = dt;
2111
2112
  oe.CanceledError = ut();
2112
- oe.CancelToken = Zi();
2113
+ oe.CancelToken = Qi();
2113
2114
  oe.isCancel = rs();
2114
2115
  oe.VERSION = is().version;
2115
2116
  oe.toFormData = es;
@@ -2118,12 +2119,12 @@ oe.Cancel = oe.CanceledError;
2118
2119
  oe.all = function(e) {
2119
2120
  return Promise.all(e);
2120
2121
  };
2121
- oe.spread = Qi();
2122
- oe.isAxiosError = en();
2123
- v0.exports = oe;
2124
- v0.exports.default = oe;
2125
- var nn = v0.exports, on = nn;
2126
- const Je = /* @__PURE__ */ We(on);
2122
+ oe.spread = en();
2123
+ oe.isAxiosError = tn();
2124
+ y0.exports = oe;
2125
+ y0.exports.default = oe;
2126
+ var on = y0.exports, an = on;
2127
+ const Je = /* @__PURE__ */ Me(an);
2127
2128
  var cs = { exports: {} }, ds = { exports: {} };
2128
2129
  (function(r, e) {
2129
2130
  (function(t, s) {
@@ -2149,8 +2150,8 @@ var cs = { exports: {} }, ds = { exports: {} };
2149
2150
  var d = f + b, l = y[d];
2150
2151
  y[d] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360;
2151
2152
  }
2152
- var v = this._hash.words, E = y[f + 0], _ = y[f + 1], A = y[f + 2], w = y[f + 3], I = y[f + 4], B = y[f + 5], C = y[f + 6], F = y[f + 7], D = y[f + 8], R = y[f + 9], O = y[f + 10], U = y[f + 11], Y = y[f + 12], j = y[f + 13], X = y[f + 14], K = y[f + 15], $ = v[0], P = v[1], S = v[2], k = v[3];
2153
- $ = g($, P, S, k, E, 7, a[0]), k = g(k, $, P, S, _, 12, a[1]), S = g(S, k, $, P, A, 17, a[2]), P = g(P, S, k, $, w, 22, a[3]), $ = g($, P, S, k, I, 7, a[4]), k = g(k, $, P, S, B, 12, a[5]), S = g(S, k, $, P, C, 17, a[6]), P = g(P, S, k, $, F, 22, a[7]), $ = g($, P, S, k, D, 7, a[8]), k = g(k, $, P, S, R, 12, a[9]), S = g(S, k, $, P, O, 17, a[10]), P = g(P, S, k, $, U, 22, a[11]), $ = g($, P, S, k, Y, 7, a[12]), k = g(k, $, P, S, j, 12, a[13]), S = g(S, k, $, P, X, 17, a[14]), P = g(P, S, k, $, K, 22, a[15]), $ = o($, P, S, k, _, 5, a[16]), k = o(k, $, P, S, C, 9, a[17]), S = o(S, k, $, P, U, 14, a[18]), P = o(P, S, k, $, E, 20, a[19]), $ = o($, P, S, k, B, 5, a[20]), k = o(k, $, P, S, O, 9, a[21]), S = o(S, k, $, P, K, 14, a[22]), P = o(P, S, k, $, I, 20, a[23]), $ = o($, P, S, k, R, 5, a[24]), k = o(k, $, P, S, X, 9, a[25]), S = o(S, k, $, P, w, 14, a[26]), P = o(P, S, k, $, D, 20, a[27]), $ = o($, P, S, k, j, 5, a[28]), k = o(k, $, P, S, A, 9, a[29]), S = o(S, k, $, P, F, 14, a[30]), P = o(P, S, k, $, Y, 20, a[31]), $ = u($, P, S, k, B, 4, a[32]), k = u(k, $, P, S, D, 11, a[33]), S = u(S, k, $, P, U, 16, a[34]), P = u(P, S, k, $, X, 23, a[35]), $ = u($, P, S, k, _, 4, a[36]), k = u(k, $, P, S, I, 11, a[37]), S = u(S, k, $, P, F, 16, a[38]), P = u(P, S, k, $, O, 23, a[39]), $ = u($, P, S, k, j, 4, a[40]), k = u(k, $, P, S, E, 11, a[41]), S = u(S, k, $, P, w, 16, a[42]), P = u(P, S, k, $, C, 23, a[43]), $ = u($, P, S, k, R, 4, a[44]), k = u(k, $, P, S, Y, 11, a[45]), S = u(S, k, $, P, K, 16, a[46]), P = u(P, S, k, $, A, 23, a[47]), $ = h($, P, S, k, E, 6, a[48]), k = h(k, $, P, S, F, 10, a[49]), S = h(S, k, $, P, X, 15, a[50]), P = h(P, S, k, $, B, 21, a[51]), $ = h($, P, S, k, Y, 6, a[52]), k = h(k, $, P, S, w, 10, a[53]), S = h(S, k, $, P, O, 15, a[54]), P = h(P, S, k, $, _, 21, a[55]), $ = h($, P, S, k, D, 6, a[56]), k = h(k, $, P, S, K, 10, a[57]), S = h(S, k, $, P, C, 15, a[58]), P = h(P, S, k, $, j, 21, a[59]), $ = h($, P, S, k, I, 6, a[60]), k = h(k, $, P, S, U, 10, a[61]), S = h(S, k, $, P, A, 15, a[62]), P = h(P, S, k, $, R, 21, a[63]), v[0] = v[0] + $ | 0, v[1] = v[1] + P | 0, v[2] = v[2] + S | 0, v[3] = v[3] + k | 0;
2153
+ var v = this._hash.words, E = y[f + 0], _ = y[f + 1], A = y[f + 2], w = y[f + 3], I = y[f + 4], B = y[f + 5], C = y[f + 6], F = y[f + 7], D = y[f + 8], T = y[f + 9], O = y[f + 10], U = y[f + 11], Y = y[f + 12], j = y[f + 13], X = y[f + 14], K = y[f + 15], $ = v[0], P = v[1], S = v[2], k = v[3];
2154
+ $ = g($, P, S, k, E, 7, a[0]), k = g(k, $, P, S, _, 12, a[1]), S = g(S, k, $, P, A, 17, a[2]), P = g(P, S, k, $, w, 22, a[3]), $ = g($, P, S, k, I, 7, a[4]), k = g(k, $, P, S, B, 12, a[5]), S = g(S, k, $, P, C, 17, a[6]), P = g(P, S, k, $, F, 22, a[7]), $ = g($, P, S, k, D, 7, a[8]), k = g(k, $, P, S, T, 12, a[9]), S = g(S, k, $, P, O, 17, a[10]), P = g(P, S, k, $, U, 22, a[11]), $ = g($, P, S, k, Y, 7, a[12]), k = g(k, $, P, S, j, 12, a[13]), S = g(S, k, $, P, X, 17, a[14]), P = g(P, S, k, $, K, 22, a[15]), $ = o($, P, S, k, _, 5, a[16]), k = o(k, $, P, S, C, 9, a[17]), S = o(S, k, $, P, U, 14, a[18]), P = o(P, S, k, $, E, 20, a[19]), $ = o($, P, S, k, B, 5, a[20]), k = o(k, $, P, S, O, 9, a[21]), S = o(S, k, $, P, K, 14, a[22]), P = o(P, S, k, $, I, 20, a[23]), $ = o($, P, S, k, T, 5, a[24]), k = o(k, $, P, S, X, 9, a[25]), S = o(S, k, $, P, w, 14, a[26]), P = o(P, S, k, $, D, 20, a[27]), $ = o($, P, S, k, j, 5, a[28]), k = o(k, $, P, S, A, 9, a[29]), S = o(S, k, $, P, F, 14, a[30]), P = o(P, S, k, $, Y, 20, a[31]), $ = u($, P, S, k, B, 4, a[32]), k = u(k, $, P, S, D, 11, a[33]), S = u(S, k, $, P, U, 16, a[34]), P = u(P, S, k, $, X, 23, a[35]), $ = u($, P, S, k, _, 4, a[36]), k = u(k, $, P, S, I, 11, a[37]), S = u(S, k, $, P, F, 16, a[38]), P = u(P, S, k, $, O, 23, a[39]), $ = u($, P, S, k, j, 4, a[40]), k = u(k, $, P, S, E, 11, a[41]), S = u(S, k, $, P, w, 16, a[42]), P = u(P, S, k, $, C, 23, a[43]), $ = u($, P, S, k, T, 4, a[44]), k = u(k, $, P, S, Y, 11, a[45]), S = u(S, k, $, P, K, 16, a[46]), P = u(P, S, k, $, A, 23, a[47]), $ = h($, P, S, k, E, 6, a[48]), k = h(k, $, P, S, F, 10, a[49]), S = h(S, k, $, P, X, 15, a[50]), P = h(P, S, k, $, B, 21, a[51]), $ = h($, P, S, k, Y, 6, a[52]), k = h(k, $, P, S, w, 10, a[53]), S = h(S, k, $, P, O, 15, a[54]), P = h(P, S, k, $, _, 21, a[55]), $ = h($, P, S, k, D, 6, a[56]), k = h(k, $, P, S, K, 10, a[57]), S = h(S, k, $, P, C, 15, a[58]), P = h(P, S, k, $, j, 21, a[59]), $ = h($, P, S, k, I, 6, a[60]), k = h(k, $, P, S, U, 10, a[61]), S = h(S, k, $, P, A, 15, a[62]), P = h(P, S, k, $, T, 21, a[63]), v[0] = v[0] + $ | 0, v[1] = v[1] + P | 0, v[2] = v[2] + S | 0, v[3] = v[3] + k | 0;
2154
2155
  },
2155
2156
  _doFinalize: function() {
2156
2157
  var y = this._data, f = y.words, b = this._nDataBytes * 8, d = y.sigBytes * 8;
@@ -2189,8 +2190,8 @@ var cs = { exports: {} }, ds = { exports: {} };
2189
2190
  });
2190
2191
  })(ds);
2191
2192
  var Ce = ds.exports;
2192
- const xs = /* @__PURE__ */ We(Ce);
2193
- var Tt = { exports: {} }, Ot = { exports: {} }, ur;
2193
+ const xs = /* @__PURE__ */ Me(Ce);
2194
+ var Ot = { exports: {} }, Ut = { exports: {} }, ur;
2194
2195
  function ls() {
2195
2196
  return ur || (ur = 1, function(r, e) {
2196
2197
  (function(t, s) {
@@ -2232,10 +2233,10 @@ function ls() {
2232
2233
  s.SHA1 = m._createHelper(a), s.HmacSHA1 = m._createHmacHelper(a);
2233
2234
  }(), t.SHA1;
2234
2235
  });
2235
- }(Ot)), Ot.exports;
2236
+ }(Ut)), Ut.exports;
2236
2237
  }
2237
- var Ut = { exports: {} }, pr;
2238
- function C0() {
2238
+ var Ht = { exports: {} }, pr;
2239
+ function A0() {
2239
2240
  return pr || (pr = 1, function(r, e) {
2240
2241
  (function(t, s) {
2241
2242
  r.exports = s(L());
@@ -2310,13 +2311,13 @@ function C0() {
2310
2311
  });
2311
2312
  })();
2312
2313
  });
2313
- }(Ut)), Ut.exports;
2314
+ }(Ht)), Ht.exports;
2314
2315
  }
2315
2316
  var hr;
2316
2317
  function Ae() {
2317
2318
  return hr || (hr = 1, function(r, e) {
2318
2319
  (function(t, s, i) {
2319
- r.exports = s(L(), ls(), C0());
2320
+ r.exports = s(L(), ls(), A0());
2320
2321
  })(N, function(t) {
2321
2322
  return function() {
2322
2323
  var s = t, i = s.lib, n = i.Base, m = i.WordArray, x = s.algo, p = x.MD5, a = x.EvpKDF = n.extend({
@@ -2373,9 +2374,9 @@ function Ae() {
2373
2374
  };
2374
2375
  }(), t.EvpKDF;
2375
2376
  });
2376
- }(Tt)), Tt.exports;
2377
+ }(Ot)), Ot.exports;
2377
2378
  }
2378
- var Ht = { exports: {} }, fr;
2379
+ var Nt = { exports: {} }, fr;
2379
2380
  function Q() {
2380
2381
  return fr || (fr = 1, function(r, e) {
2381
2382
  (function(t, s, i) {
@@ -2506,11 +2507,11 @@ function Q() {
2506
2507
  }
2507
2508
  return function(C) {
2508
2509
  return {
2509
- encrypt: function(F, D, R) {
2510
- return B(D).encrypt(C, F, D, R);
2510
+ encrypt: function(F, D, T) {
2511
+ return B(D).encrypt(C, F, D, T);
2511
2512
  },
2512
- decrypt: function(F, D, R) {
2513
- return B(D).decrypt(C, F, D, R);
2513
+ decrypt: function(F, D, T) {
2514
+ return B(D).decrypt(C, F, D, T);
2514
2515
  }
2515
2516
  };
2516
2517
  };
@@ -2581,8 +2582,8 @@ function Q() {
2581
2582
  * mode.processBlock(data.words, offset);
2582
2583
  */
2583
2584
  processBlock: function(F, D) {
2584
- var R = this._cipher, O = R.blockSize;
2585
- C.call(this, F, D, O), R.encryptBlock(F, D), this._prevBlock = F.slice(D, D + O);
2585
+ var T = this._cipher, O = T.blockSize;
2586
+ C.call(this, F, D, O), T.encryptBlock(F, D), this._prevBlock = F.slice(D, D + O);
2586
2587
  }
2587
2588
  }), B.Decryptor = B.extend({
2588
2589
  /**
@@ -2596,14 +2597,14 @@ function Q() {
2596
2597
  * mode.processBlock(data.words, offset);
2597
2598
  */
2598
2599
  processBlock: function(F, D) {
2599
- var R = this._cipher, O = R.blockSize, U = F.slice(D, D + O);
2600
- R.decryptBlock(F, D), C.call(this, F, D, O), this._prevBlock = U;
2600
+ var T = this._cipher, O = T.blockSize, U = F.slice(D, D + O);
2601
+ T.decryptBlock(F, D), C.call(this, F, D, O), this._prevBlock = U;
2601
2602
  }
2602
2603
  });
2603
- function C(F, D, R) {
2604
+ function C(F, D, T) {
2604
2605
  var O, U = this._iv;
2605
2606
  U ? (O = U, this._iv = s) : O = this._prevBlock;
2606
- for (var Y = 0; Y < R; Y++)
2607
+ for (var Y = 0; Y < T; Y++)
2607
2608
  F[D + Y] ^= O[Y];
2608
2609
  }
2609
2610
  return B;
@@ -2621,8 +2622,8 @@ function Q() {
2621
2622
  * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
2622
2623
  */
2623
2624
  pad: function(B, C) {
2624
- for (var F = C * 4, D = F - B.sigBytes % F, R = D << 24 | D << 16 | D << 8 | D, O = [], U = 0; U < D; U += 4)
2625
- O.push(R);
2625
+ for (var F = C * 4, D = F - B.sigBytes % F, T = D << 24 | D << 16 | D << 8 | D, O = [], U = 0; U < D; U += 4)
2626
+ O.push(T);
2626
2627
  var Y = x.create(O, D);
2627
2628
  B.concat(Y);
2628
2629
  },
@@ -2773,7 +2774,7 @@ function Q() {
2773
2774
  */
2774
2775
  encrypt: function(B, C, F, D) {
2775
2776
  D = this.cfg.extend(D);
2776
- var R = B.createEncryptor(F, D), O = R.finalize(C), U = R.cfg;
2777
+ var T = B.createEncryptor(F, D), O = T.finalize(C), U = T.cfg;
2777
2778
  return l.create({
2778
2779
  ciphertext: O,
2779
2780
  key: F,
@@ -2804,8 +2805,8 @@ function Q() {
2804
2805
  */
2805
2806
  decrypt: function(B, C, F, D) {
2806
2807
  D = this.cfg.extend(D), C = this._parse(C, D.format);
2807
- var R = B.createDecryptor(F, D).finalize(C.ciphertext);
2808
- return R;
2808
+ var T = B.createDecryptor(F, D).finalize(C.ciphertext);
2809
+ return T;
2809
2810
  },
2810
2811
  /**
2811
2812
  * Converts serialized ciphertext to CipherParams,
@@ -2843,9 +2844,9 @@ function Q() {
2843
2844
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
2844
2845
  * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
2845
2846
  */
2846
- execute: function(B, C, F, D, R) {
2847
- if (D || (D = x.random(64 / 8)), R)
2848
- var O = o.create({ keySize: C + F, hasher: R }).compute(B, D);
2847
+ execute: function(B, C, F, D, T) {
2848
+ if (D || (D = x.random(64 / 8)), T)
2849
+ var O = o.create({ keySize: C + F, hasher: T }).compute(B, D);
2849
2850
  else
2850
2851
  var O = o.create({ keySize: C + F }).compute(B, D);
2851
2852
  var U = x.create(O.words.slice(C), F * 4);
@@ -2879,10 +2880,10 @@ function Q() {
2879
2880
  */
2880
2881
  encrypt: function(B, C, F, D) {
2881
2882
  D = this.cfg.extend(D);
2882
- var R = D.kdf.execute(F, B.keySize, B.ivSize, D.salt, D.hasher);
2883
- D.iv = R.iv;
2884
- var O = _.encrypt.call(this, B, C, R.key, D);
2885
- return O.mixIn(R), O;
2883
+ var T = D.kdf.execute(F, B.keySize, B.ivSize, D.salt, D.hasher);
2884
+ D.iv = T.iv;
2885
+ var O = _.encrypt.call(this, B, C, T.key, D);
2886
+ return O.mixIn(T), O;
2886
2887
  },
2887
2888
  /**
2888
2889
  * Decrypts serialized ciphertext using a password.
@@ -2903,15 +2904,15 @@ function Q() {
2903
2904
  */
2904
2905
  decrypt: function(B, C, F, D) {
2905
2906
  D = this.cfg.extend(D), C = this._parse(C, D.format);
2906
- var R = D.kdf.execute(F, B.keySize, B.ivSize, C.salt, D.hasher);
2907
- D.iv = R.iv;
2908
- var O = _.decrypt.call(this, B, C, R.key, D);
2907
+ var T = D.kdf.execute(F, B.keySize, B.ivSize, C.salt, D.hasher);
2908
+ D.iv = T.iv;
2909
+ var O = _.decrypt.call(this, B, C, T.key, D);
2909
2910
  return O;
2910
2911
  }
2911
2912
  });
2912
2913
  }();
2913
2914
  });
2914
- }(Ht)), Ht.exports;
2915
+ }(Nt)), Nt.exports;
2915
2916
  }
2916
2917
  (function(r, e) {
2917
2918
  (function(t, s, i) {
@@ -2957,11 +2958,11 @@ function Q() {
2957
2958
  l[v + 1] = l[v + 3], l[v + 3] = E;
2958
2959
  },
2959
2960
  _doCryptBlock: function(l, v, E, _, A, w, I, B) {
2960
- for (var C = this._nRounds, F = l[v] ^ E[0], D = l[v + 1] ^ E[1], R = l[v + 2] ^ E[2], O = l[v + 3] ^ E[3], U = 4, Y = 1; Y < C; Y++) {
2961
- var j = _[F >>> 24] ^ A[D >>> 16 & 255] ^ w[R >>> 8 & 255] ^ I[O & 255] ^ E[U++], X = _[D >>> 24] ^ A[R >>> 16 & 255] ^ w[O >>> 8 & 255] ^ I[F & 255] ^ E[U++], K = _[R >>> 24] ^ A[O >>> 16 & 255] ^ w[F >>> 8 & 255] ^ I[D & 255] ^ E[U++], $ = _[O >>> 24] ^ A[F >>> 16 & 255] ^ w[D >>> 8 & 255] ^ I[R & 255] ^ E[U++];
2962
- F = j, D = X, R = K, O = $;
2961
+ for (var C = this._nRounds, F = l[v] ^ E[0], D = l[v + 1] ^ E[1], T = l[v + 2] ^ E[2], O = l[v + 3] ^ E[3], U = 4, Y = 1; Y < C; Y++) {
2962
+ var j = _[F >>> 24] ^ A[D >>> 16 & 255] ^ w[T >>> 8 & 255] ^ I[O & 255] ^ E[U++], X = _[D >>> 24] ^ A[T >>> 16 & 255] ^ w[O >>> 8 & 255] ^ I[F & 255] ^ E[U++], K = _[T >>> 24] ^ A[O >>> 16 & 255] ^ w[F >>> 8 & 255] ^ I[D & 255] ^ E[U++], $ = _[O >>> 24] ^ A[F >>> 16 & 255] ^ w[D >>> 8 & 255] ^ I[T & 255] ^ E[U++];
2963
+ F = j, D = X, T = K, O = $;
2963
2964
  }
2964
- var j = (B[F >>> 24] << 24 | B[D >>> 16 & 255] << 16 | B[R >>> 8 & 255] << 8 | B[O & 255]) ^ E[U++], X = (B[D >>> 24] << 24 | B[R >>> 16 & 255] << 16 | B[O >>> 8 & 255] << 8 | B[F & 255]) ^ E[U++], K = (B[R >>> 24] << 24 | B[O >>> 16 & 255] << 16 | B[F >>> 8 & 255] << 8 | B[D & 255]) ^ E[U++], $ = (B[O >>> 24] << 24 | B[F >>> 16 & 255] << 16 | B[D >>> 8 & 255] << 8 | B[R & 255]) ^ E[U++];
2965
+ var j = (B[F >>> 24] << 24 | B[D >>> 16 & 255] << 16 | B[T >>> 8 & 255] << 8 | B[O & 255]) ^ E[U++], X = (B[D >>> 24] << 24 | B[T >>> 16 & 255] << 16 | B[O >>> 8 & 255] << 8 | B[F & 255]) ^ E[U++], K = (B[T >>> 24] << 24 | B[O >>> 16 & 255] << 16 | B[F >>> 8 & 255] << 8 | B[D & 255]) ^ E[U++], $ = (B[O >>> 24] << 24 | B[F >>> 16 & 255] << 16 | B[D >>> 8 & 255] << 8 | B[T & 255]) ^ E[U++];
2965
2966
  l[v] = j, l[v + 1] = X, l[v + 2] = K, l[v + 3] = $;
2966
2967
  },
2967
2968
  keySize: 256 / 32
@@ -2971,7 +2972,7 @@ function Q() {
2971
2972
  });
2972
2973
  })(cs);
2973
2974
  var us = cs.exports;
2974
- const p0 = /* @__PURE__ */ We(us);
2975
+ const h0 = /* @__PURE__ */ Me(us);
2975
2976
  class ye {
2976
2977
  constructor() {
2977
2978
  this.$http = Je.create({
@@ -2980,7 +2981,7 @@ class ye {
2980
2981
  }
2981
2982
  static encryptParams(e) {
2982
2983
  et(e, "object") && (e = JSON.stringify(e));
2983
- let t = p0.encrypt(e, qr());
2984
+ let t = h0.encrypt(e, qr());
2984
2985
  return {
2985
2986
  payload: t.ciphertext.toString(He),
2986
2987
  token: `${t.key.toString(He)}##${t.iv.toString(He)}`
@@ -2996,7 +2997,7 @@ class ye {
2996
2997
  }
2997
2998
  static objectKeyToUnderscore(e) {
2998
2999
  let t;
2999
- return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
3000
+ return z(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
3000
3001
  let i = {};
3001
3002
  Object.keys(s).forEach((n) => {
3002
3003
  i[this.toUnderscore(n)] = s[n];
@@ -3007,7 +3008,7 @@ class ye {
3007
3008
  }
3008
3009
  static objectKeyToCamel(e) {
3009
3010
  let t;
3010
- return q(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
3011
+ return z(e) && (Array.isArray(e) ? (t = [], e.forEach((s) => {
3011
3012
  let i = {};
3012
3013
  Object.keys(s).forEach((n) => {
3013
3014
  i[this.toCamelcase(n)] = s[n];
@@ -3017,8 +3018,8 @@ class ye {
3017
3018
  }))), t;
3018
3019
  }
3019
3020
  static axiosMultipayConfigure() {
3020
- Je.defaults.headers.common["Content-Type"] = "application/json", Je.defaults.headers.common.Accept = "application/json", Je.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)), Je.interceptors.response.use((e) => e, function(e) {
3021
- if (q(e.response)) {
3021
+ Je.defaults.headers.common["Content-Type"] = "application/json", Je.defaults.headers.common.Accept = "application/json", Je.interceptors.request.use((e) => (z(e.data), this.isHttpBodyUsedMethod(e.method) && (e.data = ye.encryptParams(ye.objectKeyToUnderscore(e.data))), e.headers !== void 0 && z(e.headers.progress) && delete e.headers.progress, e), (e) => Promise.reject(e)), Je.interceptors.response.use((e) => e, function(e) {
3022
+ if (z(e.response)) {
3022
3023
  let t = e.response.data;
3023
3024
  return t.status = e.response.status, Promise.reject(t);
3024
3025
  } else
@@ -3030,7 +3031,7 @@ class ye {
3030
3031
  }
3031
3032
  }
3032
3033
  ye.axiosMultipayConfigure();
3033
- class an extends ye {
3034
+ class cn extends ye {
3034
3035
  constructor() {
3035
3036
  super();
3036
3037
  }
@@ -3053,10 +3054,10 @@ class an extends ye {
3053
3054
  }
3054
3055
  }
3055
3056
  }
3056
- const cn = new an();
3057
- class dn extends xt {
3057
+ const dn = new cn();
3058
+ class xn extends st {
3058
3059
  constructor() {
3059
- super(), this.$messageEventName = "message.BootpayPaymentEvent", this.$eventPrefix = "bootpay", this.$pollingInterval = void 0, this.resetPollingData(), this.$pollingEvent = cn, this.pollingInterval = 3e3, this.isDone = !1;
3060
+ super(), this.$messageEventName = "message.BootpayPaymentEvent", this.$eventPrefix = "bootpay", this.$pollingInterval = void 0, this.resetPollingData(), this.$pollingEvent = dn, this.pollingInterval = 3e3, this.isDone = !1;
3060
3061
  }
3061
3062
  /**
3062
3063
  * 결제 이벤트를 바인딩한다
@@ -3066,14 +3067,14 @@ class dn extends xt {
3066
3067
  bind(e, t) {
3067
3068
  this.isDone = !1, this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
3068
3069
  const i = this.parseEvent(s.data);
3069
- if (H.debug("event received", JSON.stringify(i)), q(i))
3070
+ if (H.debug("event received", JSON.stringify(i)), z(i))
3070
3071
  switch (H.debug("event", i), i.event) {
3071
3072
  case "error":
3072
3073
  case "cancel":
3073
3074
  return this.handleErrorOrCancel(i);
3074
3075
  case "setConfirmParameters":
3075
3076
  const n = `${i.gateway_url}/confirm/${i.receipt_id}?application_id=${i.application_id}`;
3076
- i.open_type === "redirect" ? W.setConfirmRedirect(n) : W.setConfirmFormUrl(n);
3077
+ i.open_type === "redirect" ? M.setConfirmRedirect(n) : M.setConfirmFormUrl(n);
3077
3078
  break;
3078
3079
  case "confirm":
3079
3080
  return this.resolve({
@@ -3083,11 +3084,11 @@ class dn extends xt {
3083
3084
  order_id: i.order_id
3084
3085
  });
3085
3086
  case "redirect":
3086
- W.destroy(!1), location.href = i.url;
3087
+ M.destroy(!1), location.href = i.url;
3087
3088
  return;
3088
3089
  case "moveRedirectUrl":
3089
- W.closePopup(), W.hidePaymentiFrame(), ue.showProgress("결제 진행 중입니다. 잠시만 기다려주세요."), location.replace($s(i.url, i.parameters)), setTimeout(() => {
3090
- W.destroy(!1);
3090
+ M.closePopup(), M.hidePaymentiFrame(), ue.showProgress("결제 진행 중입니다. 잠시만 기다려주세요."), location.replace(ks(i.url, i.parameters)), setTimeout(() => {
3091
+ M.destroy(!1);
3091
3092
  }, 5e3);
3092
3093
  break;
3093
3094
  case "polling":
@@ -3111,7 +3112,7 @@ class dn extends xt {
3111
3112
  this.handleVisibilityUpdate(i);
3112
3113
  break;
3113
3114
  case "popup":
3114
- W.createPopupButton({
3115
+ M.createPopupButton({
3115
3116
  gatewayUrl: i.url,
3116
3117
  receiptId: i.receipt_id,
3117
3118
  name: i.name,
@@ -3119,7 +3120,7 @@ class dn extends xt {
3119
3120
  });
3120
3121
  break;
3121
3122
  case "close":
3122
- W.destroy();
3123
+ M.destroy();
3123
3124
  break;
3124
3125
  default:
3125
3126
  return;
@@ -3226,13 +3227,13 @@ class dn extends xt {
3226
3227
  handleStyleUpdate(e) {
3227
3228
  switch (e.event) {
3228
3229
  case "iFrameStyle":
3229
- W.iFrameSetStyle(e.styles);
3230
+ M.iFrameSetStyle(e.styles);
3230
3231
  break;
3231
3232
  case "windowStyle":
3232
- W.windowStyle(e.styles);
3233
+ M.windowStyle(e.styles);
3233
3234
  break;
3234
3235
  case "resize":
3235
- W.iFrameResize(e.resizeData);
3236
+ M.iFrameResize(e.resizeData);
3236
3237
  break;
3237
3238
  }
3238
3239
  }
@@ -3244,10 +3245,10 @@ class dn extends xt {
3244
3245
  handleVisibilityUpdate(e) {
3245
3246
  switch (e.event) {
3246
3247
  case "hidePayment":
3247
- W.closePopup(), W.hidePaymentiFrame();
3248
+ M.closePopup(), M.hidePaymentiFrame();
3248
3249
  break;
3249
3250
  case "showPayment":
3250
- W.showPaymentiFrame(this.$present(e.showCloseButton) ? e.showCloseButton : !1);
3251
+ M.showPaymentiFrame(this.$present(e.showCloseButton) ? e.showCloseButton : !1);
3251
3252
  break;
3252
3253
  }
3253
3254
  }
@@ -3283,8 +3284,8 @@ class dn extends xt {
3283
3284
  };
3284
3285
  }
3285
3286
  }
3286
- const ve = new dn();
3287
- class xn extends ye {
3287
+ const ve = new xn();
3288
+ class ln extends ye {
3288
3289
  constructor() {
3289
3290
  super(), this.$session = $e, this.$applicationId = void 0, this.$tk = void 0, this.$platformType = 1, this.$receiptId = void 0;
3290
3291
  }
@@ -3306,9 +3307,9 @@ class xn extends ye {
3306
3307
  }
3307
3308
  send(e) {
3308
3309
  try {
3309
- if (q(this.$applicationId))
3310
- return e.application_id = this.$applicationId, e.status = q(e.status) ? e.status : 1, e.version = ke.version, e.tk = this.$tk, H.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3311
- T.toAnalytics("event"),
3310
+ if (z(this.$applicationId))
3311
+ return e.application_id = this.$applicationId, e.status = z(e.status) ? e.status : 1, e.version = ke.version, e.tk = this.$tk, H.debug("send event", `${JSON.stringify(e)} 전송됨`), this.$http.post(
3312
+ R.toAnalytics("event"),
3312
3313
  e
3313
3314
  );
3314
3315
  } catch {
@@ -3327,9 +3328,9 @@ class xn extends ye {
3327
3328
  * @date: 2022-05-13
3328
3329
  */
3329
3330
  sendCloseEvent() {
3330
- if (q(this.$receiptId))
3331
+ if (z(this.$receiptId))
3331
3332
  try {
3332
- return this.$http.put(T.toApi(`close/${this.$receiptId}`));
3333
+ return this.$http.put(R.toApi(`close/${this.$receiptId}`));
3333
3334
  } catch (e) {
3334
3335
  return Promise.reject(e);
3335
3336
  }
@@ -3337,7 +3338,7 @@ class xn extends ye {
3337
3338
  return H.debug("receipt_id", "undefined receipt_id"), Promise.resolve();
3338
3339
  }
3339
3340
  }
3340
- const Qe = new xn(), A0 = {
3341
+ const Qe = new ln(), w0 = {
3341
3342
  startProgress: {
3342
3343
  PAYMENT: {
3343
3344
  ko: "결제를 시작합니다",
@@ -3441,22 +3442,22 @@ const Qe = new xn(), A0 = {
3441
3442
  en: "This is not a subscription widget. If it is not a subscription widget, use the requestPayment function."
3442
3443
  },
3443
3444
  getLocaleMessage: (r, e) => {
3444
- const s = r.split(".").reduce((i, n) => i[n], A0);
3445
- return q(s) && q(s[e]) ? s[e] : s.ko;
3445
+ const s = r.split(".").reduce((i, n) => i[n], w0);
3446
+ return z(s) && z(s[e]) ? s[e] : s.ko;
3446
3447
  }
3447
3448
  };
3448
- class ln extends _e {
3449
+ class un extends _e {
3449
3450
  constructor() {
3450
3451
  super(), this.mode = "PAYMENT", this.modeApiUrl = {
3451
3452
  PAYMENT: "request/payment",
3452
3453
  CARD_SUBSCRIPTION: "request/subscribe",
3453
3454
  AUTH: "request/authentication"
3454
- }, this.$formId = "bootpay-form", this.$iFrameId = "bootpay-iframe-id", this.$windowId = "bootpay-window-id", this.$paymentWindowId = "bootpay-payment-window-id", this.$confirmFormId = "bootpay-confirm-form-id", this.$confirmIFrame = "bootpay-confirm-iframe-id", this.$popupWindow = "bootpay-popup-window-id", this.$closeButton = "bootpay-close-btn", this.$popupItemNameId = "bootpay-item-name-id", this.$popupPriceId = "bootpay-price-id", this.$popup = void 0, this.$popupWatcher = void 0, this.$popupUrl = void 0, this.$env = T, this.$template = this.template();
3455
+ }, this.$formId = "bootpay-form", this.$iFrameId = "bootpay-iframe-id", this.$windowId = "bootpay-window-id", this.$paymentWindowId = "bootpay-payment-window-id", this.$confirmFormId = "bootpay-confirm-form-id", this.$confirmIFrame = "bootpay-confirm-iframe-id", this.$popupWindow = "bootpay-popup-window-id", this.$closeButton = "bootpay-close-btn", this.$popupItemNameId = "bootpay-item-name-id", this.$popupPriceId = "bootpay-price-id", this.$popup = void 0, this.$popupWatcher = void 0, this.$popupUrl = void 0, this.$env = R, this.$template = this.template();
3455
3456
  }
3456
3457
  template() {
3457
3458
  return `
3458
3459
  <div id="${this.$windowId}" class="bootpay-payment-background">
3459
- <div class="bootpay-payment-window ${T.isMobile() ? "__mobile" : ""}" id="${this.$paymentWindowId}">
3460
+ <div class="bootpay-payment-window ${R.isMobile() ? "__mobile" : ""}" id="${this.$paymentWindowId}">
3460
3461
  <button class="bootpay-close-btn" id="${this.$closeButton}" style="display: none;" onclick="Bootpay.dismiss()"></button>
3461
3462
  <form id="${this.$formId}" method="POST">
3462
3463
  </form>
@@ -3628,7 +3629,7 @@ class ln extends _e {
3628
3629
  */
3629
3630
  bindParentEventOnPopup() {
3630
3631
  let e = "beforeunload.BootpayReloadWatcher";
3631
- T.isMobileSafari() && (e = "pagehide.BootpayReloadWatcher"), window.resetBootpayEventListener(e, () => {
3632
+ R.isMobileSafari() && (e = "pagehide.BootpayReloadWatcher"), window.resetBootpayEventListener(e, () => {
3632
3633
  if (this.$popup !== void 0 && !this.$popup.closed)
3633
3634
  try {
3634
3635
  this.$popup.close();
@@ -3741,7 +3742,7 @@ class ln extends _e {
3741
3742
  * @returns string
3742
3743
  */
3743
3744
  message(e) {
3744
- return A0.getLocaleMessage(`${e}.${this.mode}`, T.locale);
3745
+ return w0.getLocaleMessage(`${e}.${this.mode}`, R.locale);
3745
3746
  }
3746
3747
  /**
3747
3748
  * Iframe창의 URL로 이동한다
@@ -3751,8 +3752,8 @@ class ln extends _e {
3751
3752
  moveToUrl(e) {
3752
3753
  const t = this.byId(this.$iFrameId);
3753
3754
  this.hidePaymentiFrame(), t.removeAttribute("style"), this.iFrameResize({
3754
- width: T.isMobile() ? "100%" : 400,
3755
- height: T.isMobile() ? "100%" : 700
3755
+ width: R.isMobile() ? "100%" : 400,
3756
+ height: R.isMobile() ? "100%" : 700
3756
3757
  }), t.style.setProperty("display", "block"), t.src = e;
3757
3758
  }
3758
3759
  apiUrl() {
@@ -3788,7 +3789,7 @@ class ln extends _e {
3788
3789
  this.mode = e, this.templateReload(), ve.clearPollingEvent(), ve.bind(t, s), i && n && ve.setDefaultPaymentData(i, n);
3789
3790
  }
3790
3791
  }
3791
- const W = new ln(), De = class De extends rt {
3792
+ const M = new un(), De = class De extends rt {
3792
3793
  constructor() {
3793
3794
  super(), this.$session = $e, this.$logger = H, this.$event = Qe, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
3794
3795
  instagram: /Instagram/i,
@@ -3811,19 +3812,19 @@ const W = new ln(), De = class De extends rt {
3811
3812
  */
3812
3813
  async requestPayment(e) {
3813
3814
  var t;
3814
- ((t = e.extra) == null ? void 0 : t.locale) !== void 0 && !T.isSetLocale && T.setLocale(e.extra.locale), this.$event.clearInstance(), this.generateTransactionKey(), e.application_id = T.currentApplicationId(e.application_id), this.$event.setTokenKey(this.$transactionKey), this.$event.setApplicationId(e.application_id), this.$event.send({
3815
+ ((t = e.extra) == null ? void 0 : t.locale) !== void 0 && !R.isSetLocale && R.setLocale(e.extra.locale), this.$event.clearInstance(), this.generateTransactionKey(), e.application_id = R.currentApplicationId(e.application_id), this.$event.setTokenKey(this.$transactionKey), this.$event.setApplicationId(e.application_id), this.$event.send({
3815
3816
  step: "start",
3816
3817
  msg: "결제 요청 시작",
3817
3818
  request: e
3818
- }), e.sdk = !0, e.platform_type = this.platformType, e.ver = T.packageVersion, e.sdk_version = T.sdkVersion, e.sdk_type = T.sdkName, e.locale = T.locale, e.price = parseFloat(String(e.price)), e.tax_free = parseFloat(String(e.tax_free)), e.deposit_price = parseFloat(String(e.deposit_price)), De.invalidRequestParamsData(e), De.invalidRequestItemsData(e.items, e.price), e.uuid = this.$session.currentUserUUID(), e.sk = this.$session.currentSessionKey(), e.ti = this.$session.currentTimeTerm(), e.tk = this.$transactionKey, e.env = this.getUserDeviceEnvironment(), e.extra = this.openTypeFilter(e.extra), this.extra = e.extra;
3819
+ }), e.sdk = !0, e.platform_type = this.platformType, e.ver = R.packageVersion, e.sdk_version = R.sdkVersion, e.sdk_type = R.sdkName, e.locale = R.locale, e.price = parseFloat(String(e.price)), e.tax_free = parseFloat(String(e.tax_free)), e.deposit_price = parseFloat(String(e.deposit_price)), De.invalidRequestParamsData(e), De.invalidRequestItemsData(e.items, e.price), e.uuid = this.$session.currentUserUUID(), e.sk = this.$session.currentSessionKey(), e.ti = this.$session.currentTimeTerm(), e.tk = this.$transactionKey, e.env = this.getUserDeviceEnvironment(), e.extra = this.openTypeFilter(e.extra), this.extra = e.extra;
3819
3820
  try {
3820
- const s = await W.start(e);
3821
- return H.debug("confirm ready", s), W.hidePaymentiFrame(), W.closePopup(), ["done", "issued"].indexOf(s.event) === -1 && this.$event.send({
3821
+ const s = await M.start(e);
3822
+ return H.debug("confirm ready", s), M.hidePaymentiFrame(), M.closePopup(), ["done", "issued"].indexOf(s.event) === -1 && this.$event.send({
3822
3823
  step: s.event,
3823
3824
  msg: "",
3824
3825
  request: e,
3825
3826
  response: s
3826
- }), W.setConfirmFormUrl(
3827
+ }), M.setConfirmFormUrl(
3827
3828
  `${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
3828
3829
  ), Promise.resolve(s);
3829
3830
  } catch (s) {
@@ -3837,7 +3838,7 @@ const W = new ln(), De = class De extends rt {
3837
3838
  */
3838
3839
  async confirm() {
3839
3840
  try {
3840
- const e = await W.confirm();
3841
+ const e = await M.confirm();
3841
3842
  return Promise.resolve(e);
3842
3843
  } catch (e) {
3843
3844
  return this.eventError(e), Promise.reject(e);
@@ -3855,7 +3856,7 @@ const W = new ln(), De = class De extends rt {
3855
3856
  msg: e.event === "done" ? "결제완료" : "가상계좌발급완료",
3856
3857
  request: {},
3857
3858
  response: e
3858
- }), ue.hideProgress(), this.$logger.debug("show result", this.isDisplaySuccessResult()), this.isDisplaySuccessResult() && t && ((s = e.data) == null ? void 0 : s.receipt_id) !== void 0 ? this.displayResultView(e.data.receipt_id) : W.destroy();
3859
+ }), ue.hideProgress(), this.$logger.debug("show result", this.isDisplaySuccessResult()), this.isDisplaySuccessResult() && t && ((s = e.data) == null ? void 0 : s.receipt_id) !== void 0 ? this.displayResultView(e.data.receipt_id) : M.destroy();
3859
3860
  }
3860
3861
  /**
3861
3862
  * 오류를 처리한다
@@ -3863,7 +3864,7 @@ const W = new ln(), De = class De extends rt {
3863
3864
  * @date: 2022-01-12
3864
3865
  */
3865
3866
  eventError(e) {
3866
- ue.hideProgress(), W.closePopup(), this.isDisplayErrorResult() && e.event === "error" ? this.displayResultErrorView(e) : W.destroy(), this.$logger.debug("done failed destroy and hide", "payment"), this.$event.sendError({
3867
+ ue.hideProgress(), M.closePopup(), this.isDisplayErrorResult() && e.event === "error" ? this.displayResultErrorView(e) : M.destroy(), this.$logger.debug("done failed destroy and hide", "payment"), this.$event.sendError({
3867
3868
  step: this.$present(e.event) ? e.event : "error",
3868
3869
  msg: e.message,
3869
3870
  trace: function() {
@@ -3907,10 +3908,10 @@ const W = new ln(), De = class De extends rt {
3907
3908
  widget_sandbox: e.widget_sandbox,
3908
3909
  subscribe_brandpay_type: e.subscribe_brandpay_type,
3909
3910
  platform_type: this.platformType,
3910
- ver: T.packageVersion,
3911
- sdk_version: T.sdkVersion,
3912
- sdk_type: T.sdkName,
3913
- locale: T.locale,
3911
+ ver: R.packageVersion,
3912
+ sdk_version: R.sdkVersion,
3913
+ sdk_type: R.sdkName,
3914
+ locale: R.locale,
3914
3915
  sdk: !0,
3915
3916
  uuid: this.$session.currentUserUUID(),
3916
3917
  sk: this.$session.currentSessionKey(),
@@ -3920,18 +3921,18 @@ const W = new ln(), De = class De extends rt {
3920
3921
  extra: e.extra
3921
3922
  };
3922
3923
  try {
3923
- const s = await W.start(t, "CARD_SUBSCRIPTION");
3924
+ const s = await M.start(t, "CARD_SUBSCRIPTION");
3924
3925
  switch (H.debug("subscription success", s), this.$event.send({
3925
3926
  step: "confirm",
3926
3927
  msg: "결제승인전",
3927
3928
  request: {},
3928
3929
  response: s
3929
- }), W.hidePaymentiFrame(), W.closePopup(), s.event) {
3930
+ }), M.hidePaymentiFrame(), M.closePopup(), s.event) {
3930
3931
  case "done":
3931
3932
  case "issued":
3932
3933
  break;
3933
3934
  case "confirm":
3934
- W.setConfirmFormUrl(
3935
+ M.setConfirmFormUrl(
3935
3936
  `${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
3936
3937
  );
3937
3938
  }
@@ -3960,9 +3961,9 @@ const W = new ln(), De = class De extends rt {
3960
3961
  order_name: e.order_name,
3961
3962
  platform_type: this.platformType,
3962
3963
  ver: ke.version,
3963
- sdk_version: T.sdkVersion,
3964
- sdk_type: T.sdkName,
3965
- locale: T.locale,
3964
+ sdk_version: R.sdkVersion,
3965
+ sdk_type: R.sdkName,
3966
+ locale: R.locale,
3966
3967
  metadata: e.metadata,
3967
3968
  redirect_url: e.redirect_url,
3968
3969
  sdk: !0,
@@ -3974,18 +3975,18 @@ const W = new ln(), De = class De extends rt {
3974
3975
  extra: e.extra
3975
3976
  };
3976
3977
  try {
3977
- const s = await W.start(t, "AUTH");
3978
+ const s = await M.start(t, "AUTH");
3978
3979
  switch (H.debug("authentication success", s), this.$event.send({
3979
3980
  step: "confirm",
3980
3981
  msg: "본인인증 승인전",
3981
3982
  request: {},
3982
3983
  response: s
3983
- }), W.hidePaymentiFrame(), W.closePopup(), s.event) {
3984
+ }), M.hidePaymentiFrame(), M.closePopup(), s.event) {
3984
3985
  case "done":
3985
3986
  case "issued":
3986
3987
  break;
3987
3988
  case "confirm":
3988
- W.setConfirmFormUrl(
3989
+ M.setConfirmFormUrl(
3989
3990
  `${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
3990
3991
  );
3991
3992
  }
@@ -3996,7 +3997,7 @@ const W = new ln(), De = class De extends rt {
3996
3997
  }
3997
3998
  async requestPaymentUrl(e) {
3998
3999
  try {
3999
- const t = await W.startPaymentUrl(e.url);
4000
+ const t = await M.startPaymentUrl(e.url);
4000
4001
  return ["done", "issued"].indexOf(t.event) === -1 && this.$event.send({
4001
4002
  step: t.event,
4002
4003
  msg: "",
@@ -4004,7 +4005,7 @@ const W = new ln(), De = class De extends rt {
4004
4005
  url: e.url
4005
4006
  },
4006
4007
  response: t
4007
- }), W.setConfirmFormUrl(
4008
+ }), M.setConfirmFormUrl(
4008
4009
  `${t.gateway_url}/confirm/${t.receipt_id}?application_id=${e.application_id}`
4009
4010
  ), Promise.resolve(t);
4010
4011
  } catch (t) {
@@ -4034,7 +4035,7 @@ const W = new ln(), De = class De extends rt {
4034
4035
  * @date: 2022-01-12
4035
4036
  */
4036
4037
  displayResultView(e) {
4037
- W.moveToUrl(T.toDoor(`result/${e}`));
4038
+ M.moveToUrl(R.toDoor(`result/${e}`));
4038
4039
  }
4039
4040
  /**
4040
4041
  * Result Error View를 보여준다
@@ -4042,7 +4043,7 @@ const W = new ln(), De = class De extends rt {
4042
4043
  * @date: 2022-01-12
4043
4044
  */
4044
4045
  displayResultErrorView(e) {
4045
- W.moveToUrl(T.toDoor(`error?error_code=${e.error_code}&pg_error_code=${e.pg_error_code}&message=${e.message}`));
4046
+ M.moveToUrl(R.toDoor(`error?error_code=${e.error_code}&pg_error_code=${e.pg_error_code}&message=${e.message}`));
4046
4047
  }
4047
4048
  /**
4048
4049
  * OpenTypeUserAgent Filter
@@ -4093,7 +4094,7 @@ const W = new ln(), De = class De extends rt {
4093
4094
  * @param price: number
4094
4095
  */
4095
4096
  static invalidRequestItemsData(e, t) {
4096
- if (e !== void 0 && q(e)) {
4097
+ if (e !== void 0 && z(e)) {
4097
4098
  let s = 0;
4098
4099
  if (e.forEach((i, n) => {
4099
4100
  if (ne(i.id))
@@ -4137,8 +4138,8 @@ De.invalidRequestParams = {
4137
4138
  order_id: "가맹점에서 설정할 주문 ID를 입력해주세요. [ key: order_id ]"
4138
4139
  };
4139
4140
  let tt = De;
4140
- const un = new tt();
4141
- class pn extends ye {
4141
+ const pn = new tt();
4142
+ class hn extends ye {
4142
4143
  constructor() {
4143
4144
  super(), this.$session = $e;
4144
4145
  }
@@ -4159,10 +4160,10 @@ class pn extends ye {
4159
4160
  const t = document.URL;
4160
4161
  if (t !== void 0 && t.search(/bootapi.co.kr/) === -1) {
4161
4162
  const s = this.$session.getUser();
4162
- e.application_id = T.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 || ne(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4163
+ e.application_id = R.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 && z(document.referrer) && document.referrer.search(new RegExp(window.location.hostname)) == -1 ? document.referrer : "", e.user_id = s === void 0 || ne(s) ? void 0 : s.id, e.items = this.generateItemKeyToVersion1(e.items);
4163
4164
  try {
4164
4165
  const i = await this.$http.post(
4165
- T.toAnalytics(`call?ver=${ke.version}`),
4166
+ R.toAnalytics(`call?ver=${ke.version}`),
4166
4167
  e
4167
4168
  );
4168
4169
  return i.data.status === 200 ? (H.info("Analytics Common Send", "통계 데이터가 전송되었습니다."), Promise.resolve()) : (H.warn("Analytics Common Send", `통계 데이터가 전송 실패. ${JSON.stringify(i.data)}`), Promise.reject());
@@ -4177,13 +4178,13 @@ class pn extends ye {
4177
4178
  * @date: 2022-03-02
4178
4179
  */
4179
4180
  async login(e) {
4180
- if (e.application_id = T.currentApplicationId(e.application_id), ne(e.application_id))
4181
+ if (e.application_id = R.currentApplicationId(e.application_id), ne(e.application_id))
4181
4182
  return H.error("Analytics Params", "application_id 값을 입력해주세요.");
4182
4183
  if (ne(e.id))
4183
4184
  return H.error("Analytics Params", "id 값을 입력해주세요.");
4184
4185
  try {
4185
4186
  const t = await this.$http.post(
4186
- T.toAnalytics(`login?ver=${ke.version}`),
4187
+ R.toAnalytics(`login?ver=${ke.version}`),
4187
4188
  e
4188
4189
  ), { user_id: s } = t.data.data;
4189
4190
  return this.$session.setUser({
@@ -4220,7 +4221,7 @@ class pn extends ye {
4220
4221
  }));
4221
4222
  }
4222
4223
  }
4223
- const hn = new pn();
4224
+ const fn = new hn();
4224
4225
  (function() {
4225
4226
  if (typeof window > "u" || typeof window.CustomEvent == "function") return !1;
4226
4227
  function r(e, t) {
@@ -4231,9 +4232,9 @@ const hn = new pn();
4231
4232
  r.prototype = window.Event.prototype, window.CustomEvent = r;
4232
4233
  })();
4233
4234
  const Pe = {
4234
- $payment: un,
4235
- $analytics: hn,
4236
- $environment: T,
4235
+ $payment: pn,
4236
+ $analytics: fn,
4237
+ $environment: R,
4237
4238
  /**
4238
4239
  * 결제 요청
4239
4240
  * Comment by GOSOMI
@@ -4377,7 +4378,7 @@ const Pe = {
4377
4378
  e = r.eventMessage;
4378
4379
  break;
4379
4380
  default:
4380
- if (q(r.event))
4381
+ if (z(r.event))
4381
4382
  e = r;
4382
4383
  else
4383
4384
  throw r;
@@ -4390,7 +4391,7 @@ const Pe = {
4390
4391
  * @date: 2021-06-23
4391
4392
  */
4392
4393
  readyToPopup() {
4393
- W.readyToPopup();
4394
+ M.readyToPopup();
4394
4395
  },
4395
4396
  /**
4396
4397
  * 로그 레벨을 설정한다
@@ -4432,7 +4433,7 @@ const Pe = {
4432
4433
  * @date: 2022-06-09
4433
4434
  */
4434
4435
  setLocale(r) {
4435
- T.setLocale(r), W.templateReload();
4436
+ R.setLocale(r), M.templateReload();
4436
4437
  },
4437
4438
  /**
4438
4439
  * 결제창을 닫는다
@@ -4461,21 +4462,21 @@ const Pe = {
4461
4462
  * @date: 2022-06-14
4462
4463
  */
4463
4464
  destroy() {
4464
- W.destroy();
4465
+ M.destroy();
4465
4466
  },
4466
4467
  overrideGlobalInstance() {
4467
4468
  window.Bootpay = Pe;
4468
4469
  }
4469
4470
  };
4470
4471
  typeof window < "u" && (window.Bootpay = Pe);
4471
- class fn extends xt {
4472
+ class vn extends st {
4472
4473
  constructor() {
4473
4474
  super(), this.$messageEventName = "message.BootpayUserTokenEvent";
4474
4475
  }
4475
4476
  bind(e, t) {
4476
4477
  this.setCallbackFunction(e, t), window.resetBootpayEventListener(this.$messageEventName, (s) => {
4477
4478
  const i = this.parseEvent(s.data);
4478
- if (q(i))
4479
+ if (z(i))
4479
4480
  switch (H.debug("event", i), i.event) {
4480
4481
  case "error":
4481
4482
  case "cancel":
@@ -4487,7 +4488,7 @@ class fn extends xt {
4487
4488
  case "confirmAddCard":
4488
4489
  return this.resolve(i);
4489
4490
  case "resize":
4490
- D0.iFrameResize(i.resizeData);
4491
+ vt.iFrameResize(i.resizeData);
4491
4492
  break;
4492
4493
  default:
4493
4494
  return;
@@ -4509,7 +4510,7 @@ class fn extends xt {
4509
4510
  });
4510
4511
  }
4511
4512
  }
4512
- var ps = { exports: {} }, Nt = { exports: {} }, vr;
4513
+ var ps = { exports: {} }, Wt = { exports: {} }, vr;
4513
4514
  function ft() {
4514
4515
  return vr || (vr = 1, function(r, e) {
4515
4516
  (function(t, s) {
@@ -4737,10 +4738,10 @@ function ft() {
4737
4738
  });
4738
4739
  }(), t;
4739
4740
  });
4740
- }(Nt)), Nt.exports;
4741
+ }(Wt)), Wt.exports;
4741
4742
  }
4742
4743
  var Mt = { exports: {} }, yr;
4743
- function vn() {
4744
+ function yn() {
4744
4745
  return yr || (yr = 1, function(r, e) {
4745
4746
  (function(t, s) {
4746
4747
  r.exports = s(L());
@@ -4761,8 +4762,8 @@ function vn() {
4761
4762
  });
4762
4763
  }(Mt)), Mt.exports;
4763
4764
  }
4764
- var Wt = { exports: {} }, mr;
4765
- function yn() {
4765
+ var Lt = { exports: {} }, mr;
4766
+ function mn() {
4766
4767
  return mr || (mr = 1, function(r, e) {
4767
4768
  (function(t, s) {
4768
4769
  r.exports = s(L());
@@ -4853,10 +4854,10 @@ function yn() {
4853
4854
  }
4854
4855
  }(), t.enc.Utf16;
4855
4856
  });
4856
- }(Wt)), Wt.exports;
4857
+ }(Lt)), Lt.exports;
4857
4858
  }
4858
- var Lt = { exports: {} }, Er;
4859
- function mn() {
4859
+ var qt = { exports: {} }, Er;
4860
+ function En() {
4860
4861
  return Er || (Er = 1, function(r, e) {
4861
4862
  (function(t, s) {
4862
4863
  r.exports = s(L());
@@ -4935,10 +4936,10 @@ function mn() {
4935
4936
  }
4936
4937
  }(), t.enc.Base64url;
4937
4938
  });
4938
- }(Lt)), Lt.exports;
4939
+ }(qt)), qt.exports;
4939
4940
  }
4940
- var qt = { exports: {} }, gr;
4941
- function w0() {
4941
+ var zt = { exports: {} }, gr;
4942
+ function F0() {
4942
4943
  return gr || (gr = 1, function(r, e) {
4943
4944
  (function(t, s) {
4944
4945
  r.exports = s(L());
@@ -4970,7 +4971,7 @@ function w0() {
4970
4971
  var I = g[w - 15], B = (I << 25 | I >>> 7) ^ (I << 14 | I >>> 18) ^ I >>> 3, C = g[w - 2], F = (C << 15 | C >>> 17) ^ (C << 13 | C >>> 19) ^ C >>> 10;
4971
4972
  g[w] = B + g[w - 7] + F + g[w - 16];
4972
4973
  }
4973
- var D = v & E ^ ~v & _, R = f & b ^ f & d ^ b & d, O = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), U = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), Y = A + U + D + c[w] + g[w], j = O + R;
4974
+ var D = v & E ^ ~v & _, T = f & b ^ f & d ^ b & d, O = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), U = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), Y = A + U + D + c[w] + g[w], j = O + T;
4974
4975
  A = _, _ = E, E = v, v = l + Y | 0, l = d, d = b, b = f, f = Y + j | 0;
4975
4976
  }
4976
4977
  y[0] = y[0] + f | 0, y[1] = y[1] + b | 0, y[2] = y[2] + d | 0, y[3] = y[3] + l | 0, y[4] = y[4] + v | 0, y[5] = y[5] + E | 0, y[6] = y[6] + _ | 0, y[7] = y[7] + A | 0;
@@ -4987,13 +4988,13 @@ function w0() {
4987
4988
  i.SHA256 = x._createHelper(o), i.HmacSHA256 = x._createHmacHelper(o);
4988
4989
  }(Math), t.SHA256;
4989
4990
  });
4990
- }(qt)), qt.exports;
4991
+ }(zt)), zt.exports;
4991
4992
  }
4992
- var zt = { exports: {} }, Br;
4993
- function En() {
4993
+ var jt = { exports: {} }, Br;
4994
+ function gn() {
4994
4995
  return Br || (Br = 1, function(r, e) {
4995
4996
  (function(t, s, i) {
4996
- r.exports = s(L(), w0());
4997
+ r.exports = s(L(), F0());
4997
4998
  })(N, function(t) {
4998
4999
  return function() {
4999
5000
  var s = t, i = s.lib, n = i.WordArray, m = s.algo, x = m.SHA256, p = m.SHA224 = x.extend({
@@ -5017,9 +5018,9 @@ function En() {
5017
5018
  s.SHA224 = x._createHelper(p), s.HmacSHA224 = x._createHmacHelper(p);
5018
5019
  }(), t.SHA224;
5019
5020
  });
5020
- }(zt)), zt.exports;
5021
+ }(jt)), jt.exports;
5021
5022
  }
5022
- var jt = { exports: {} }, br;
5023
+ var Kt = { exports: {} }, br;
5023
5024
  function hs() {
5024
5025
  return br || (br = 1, function(r, e) {
5025
5026
  (function(t, s, i) {
@@ -5130,18 +5131,18 @@ function hs() {
5130
5131
  ]);
5131
5132
  },
5132
5133
  _doProcessBlock: function(h, y) {
5133
- for (var f = this._hash.words, b = f[0], d = f[1], l = f[2], v = f[3], E = f[4], _ = f[5], A = f[6], w = f[7], I = b.high, B = b.low, C = d.high, F = d.low, D = l.high, R = l.low, O = v.high, U = v.low, Y = E.high, j = E.low, X = _.high, K = _.low, $ = A.high, P = A.low, S = w.high, k = w.low, J = I, V = B, se = C, M = F, qe = D, Ie = R, vt = O, ze = U, pe = Y, ae = j, st = X, je = K, it = $, Ke = P, yt = S, Ge = k, he = 0; he < 80; he++) {
5134
- var xe, Ee, nt = o[he];
5134
+ for (var f = this._hash.words, b = f[0], d = f[1], l = f[2], v = f[3], E = f[4], _ = f[5], A = f[6], w = f[7], I = b.high, B = b.low, C = d.high, F = d.low, D = l.high, T = l.low, O = v.high, U = v.low, Y = E.high, j = E.low, X = _.high, K = _.low, $ = A.high, P = A.low, S = w.high, k = w.low, J = I, V = B, se = C, W = F, qe = D, Ie = T, yt = O, ze = U, pe = Y, ae = j, it = X, je = K, nt = $, Ke = P, mt = S, Ge = k, he = 0; he < 80; he++) {
5135
+ var xe, Ee, ot = o[he];
5135
5136
  if (he < 16)
5136
- Ee = nt.high = h[y + he * 2] | 0, xe = nt.low = h[y + he * 2 + 1] | 0;
5137
+ Ee = ot.high = h[y + he * 2] | 0, xe = ot.low = h[y + he * 2 + 1] | 0;
5137
5138
  else {
5138
- var $0 = o[he - 15], Re = $0.high, Xe = $0.low, vs = (Re >>> 1 | Xe << 31) ^ (Re >>> 8 | Xe << 24) ^ Re >>> 7, k0 = (Xe >>> 1 | Re << 31) ^ (Xe >>> 8 | Re << 24) ^ (Xe >>> 7 | Re << 25), P0 = o[he - 2], Te = P0.high, Ve = P0.low, ys = (Te >>> 19 | Ve << 13) ^ (Te << 3 | Ve >>> 29) ^ Te >>> 6, S0 = (Ve >>> 19 | Te << 13) ^ (Ve << 3 | Te >>> 29) ^ (Ve >>> 6 | Te << 26), I0 = o[he - 7], ms = I0.high, Es = I0.low, R0 = o[he - 16], gs = R0.high, T0 = R0.low;
5139
- xe = k0 + Es, Ee = vs + ms + (xe >>> 0 < k0 >>> 0 ? 1 : 0), xe = xe + S0, Ee = Ee + ys + (xe >>> 0 < S0 >>> 0 ? 1 : 0), xe = xe + T0, Ee = Ee + gs + (xe >>> 0 < T0 >>> 0 ? 1 : 0), nt.high = Ee, nt.low = xe;
5139
+ var $0 = o[he - 15], Te = $0.high, Xe = $0.low, ys = (Te >>> 1 | Xe << 31) ^ (Te >>> 8 | Xe << 24) ^ Te >>> 7, k0 = (Xe >>> 1 | Te << 31) ^ (Xe >>> 8 | Te << 24) ^ (Xe >>> 7 | Te << 25), P0 = o[he - 2], Re = P0.high, Ve = P0.low, ms = (Re >>> 19 | Ve << 13) ^ (Re << 3 | Ve >>> 29) ^ Re >>> 6, S0 = (Ve >>> 19 | Re << 13) ^ (Ve << 3 | Re >>> 29) ^ (Ve >>> 6 | Re << 26), I0 = o[he - 7], Es = I0.high, gs = I0.low, T0 = o[he - 16], Bs = T0.high, R0 = T0.low;
5140
+ xe = k0 + gs, Ee = ys + Es + (xe >>> 0 < k0 >>> 0 ? 1 : 0), xe = xe + S0, Ee = Ee + ms + (xe >>> 0 < S0 >>> 0 ? 1 : 0), xe = xe + R0, Ee = Ee + Bs + (xe >>> 0 < R0 >>> 0 ? 1 : 0), ot.high = Ee, ot.low = xe;
5140
5141
  }
5141
- var Bs = pe & st ^ ~pe & it, O0 = ae & je ^ ~ae & Ke, bs = J & se ^ J & qe ^ se & qe, _s = V & M ^ V & Ie ^ M & Ie, Cs = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), U0 = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), As = (pe >>> 14 | ae << 18) ^ (pe >>> 18 | ae << 14) ^ (pe << 23 | ae >>> 9), ws = (ae >>> 14 | pe << 18) ^ (ae >>> 18 | pe << 14) ^ (ae << 23 | pe >>> 9), H0 = g[he], Fs = H0.high, N0 = H0.low, ce = Ge + ws, ge = yt + As + (ce >>> 0 < Ge >>> 0 ? 1 : 0), ce = ce + O0, ge = ge + Bs + (ce >>> 0 < O0 >>> 0 ? 1 : 0), ce = ce + N0, ge = ge + Fs + (ce >>> 0 < N0 >>> 0 ? 1 : 0), ce = ce + xe, ge = ge + Ee + (ce >>> 0 < xe >>> 0 ? 1 : 0), M0 = U0 + _s, Ds = Cs + bs + (M0 >>> 0 < U0 >>> 0 ? 1 : 0);
5142
- yt = it, Ge = Ke, it = st, Ke = je, st = pe, je = ae, ae = ze + ce | 0, pe = vt + ge + (ae >>> 0 < ze >>> 0 ? 1 : 0) | 0, vt = qe, ze = Ie, qe = se, Ie = M, se = J, M = V, V = ce + M0 | 0, J = ge + Ds + (V >>> 0 < ce >>> 0 ? 1 : 0) | 0;
5142
+ var bs = pe & it ^ ~pe & nt, O0 = ae & je ^ ~ae & Ke, _s = J & se ^ J & qe ^ se & qe, Cs = V & W ^ V & Ie ^ W & Ie, As = (J >>> 28 | V << 4) ^ (J << 30 | V >>> 2) ^ (J << 25 | V >>> 7), U0 = (V >>> 28 | J << 4) ^ (V << 30 | J >>> 2) ^ (V << 25 | J >>> 7), ws = (pe >>> 14 | ae << 18) ^ (pe >>> 18 | ae << 14) ^ (pe << 23 | ae >>> 9), Fs = (ae >>> 14 | pe << 18) ^ (ae >>> 18 | pe << 14) ^ (ae << 23 | pe >>> 9), H0 = g[he], Ds = H0.high, N0 = H0.low, ce = Ge + Fs, ge = mt + ws + (ce >>> 0 < Ge >>> 0 ? 1 : 0), ce = ce + O0, ge = ge + bs + (ce >>> 0 < O0 >>> 0 ? 1 : 0), ce = ce + N0, ge = ge + Ds + (ce >>> 0 < N0 >>> 0 ? 1 : 0), ce = ce + xe, ge = ge + Ee + (ce >>> 0 < xe >>> 0 ? 1 : 0), W0 = U0 + Cs, $s = As + _s + (W0 >>> 0 < U0 >>> 0 ? 1 : 0);
5143
+ mt = nt, Ge = Ke, nt = it, Ke = je, it = pe, je = ae, ae = ze + ce | 0, pe = yt + ge + (ae >>> 0 < ze >>> 0 ? 1 : 0) | 0, yt = qe, ze = Ie, qe = se, Ie = W, se = J, W = V, V = ce + W0 | 0, J = ge + $s + (V >>> 0 < ce >>> 0 ? 1 : 0) | 0;
5143
5144
  }
5144
- B = b.low = B + V, b.high = I + J + (B >>> 0 < V >>> 0 ? 1 : 0), F = d.low = F + M, d.high = C + se + (F >>> 0 < M >>> 0 ? 1 : 0), R = l.low = R + Ie, l.high = D + qe + (R >>> 0 < Ie >>> 0 ? 1 : 0), U = v.low = U + ze, v.high = O + vt + (U >>> 0 < ze >>> 0 ? 1 : 0), j = E.low = j + ae, E.high = Y + pe + (j >>> 0 < ae >>> 0 ? 1 : 0), K = _.low = K + je, _.high = X + st + (K >>> 0 < je >>> 0 ? 1 : 0), P = A.low = P + Ke, A.high = $ + it + (P >>> 0 < Ke >>> 0 ? 1 : 0), k = w.low = k + Ge, w.high = S + yt + (k >>> 0 < Ge >>> 0 ? 1 : 0);
5145
+ B = b.low = B + V, b.high = I + J + (B >>> 0 < V >>> 0 ? 1 : 0), F = d.low = F + W, d.high = C + se + (F >>> 0 < W >>> 0 ? 1 : 0), T = l.low = T + Ie, l.high = D + qe + (T >>> 0 < Ie >>> 0 ? 1 : 0), U = v.low = U + ze, v.high = O + yt + (U >>> 0 < ze >>> 0 ? 1 : 0), j = E.low = j + ae, E.high = Y + pe + (j >>> 0 < ae >>> 0 ? 1 : 0), K = _.low = K + je, _.high = X + it + (K >>> 0 < je >>> 0 ? 1 : 0), P = A.low = P + Ke, A.high = $ + nt + (P >>> 0 < Ke >>> 0 ? 1 : 0), k = w.low = k + Ge, w.high = S + mt + (k >>> 0 < Ge >>> 0 ? 1 : 0);
5145
5146
  },
5146
5147
  _doFinalize: function() {
5147
5148
  var h = this._data, y = h.words, f = this._nDataBytes * 8, b = h.sigBytes * 8;
@@ -5158,10 +5159,10 @@ function hs() {
5158
5159
  s.SHA512 = n._createHelper(u), s.HmacSHA512 = n._createHmacHelper(u);
5159
5160
  }(), t.SHA512;
5160
5161
  });
5161
- }(jt)), jt.exports;
5162
+ }(Kt)), Kt.exports;
5162
5163
  }
5163
- var Kt = { exports: {} }, _r;
5164
- function gn() {
5164
+ var Gt = { exports: {} }, _r;
5165
+ function Bn() {
5165
5166
  return _r || (_r = 1, function(r, e) {
5166
5167
  (function(t, s, i) {
5167
5168
  r.exports = s(L(), ft(), hs());
@@ -5188,10 +5189,10 @@ function gn() {
5188
5189
  s.SHA384 = p._createHelper(a), s.HmacSHA384 = p._createHmacHelper(a);
5189
5190
  }(), t.SHA384;
5190
5191
  });
5191
- }(Kt)), Kt.exports;
5192
+ }(Gt)), Gt.exports;
5192
5193
  }
5193
- var Gt = { exports: {} }, Cr;
5194
- function Bn() {
5194
+ var Xt = { exports: {} }, Cr;
5195
+ function bn() {
5195
5196
  return Cr || (Cr = 1, function(r, e) {
5196
5197
  (function(t, s, i) {
5197
5198
  r.exports = s(L(), ft());
@@ -5257,7 +5258,7 @@ function Bn() {
5257
5258
  D.high = B, D.low = C;
5258
5259
  }
5259
5260
  for (var I = 0; I < 5; I++)
5260
- for (var R = h[(I + 4) % 5], O = h[(I + 1) % 5], U = O.high, Y = O.low, B = R.high ^ (U << 1 | Y >>> 31), C = R.low ^ (Y << 1 | U >>> 31), F = 0; F < 5; F++) {
5261
+ for (var T = h[(I + 4) % 5], O = h[(I + 1) % 5], U = O.high, Y = O.low, B = T.high ^ (U << 1 | Y >>> 31), C = T.low ^ (Y << 1 | U >>> 31), F = 0; F < 5; F++) {
5261
5262
  var A = d[I + 5 * F];
5262
5263
  A.high ^= B, A.low ^= C;
5263
5264
  }
@@ -5274,8 +5275,8 @@ function Bn() {
5274
5275
  var j = I + 5 * F, A = d[j], J = h[j], V = h[(I + 1) % 5 + 5 * F], se = h[(I + 2) % 5 + 5 * F];
5275
5276
  A.high = J.high ^ ~V.high & se.high, A.low = J.low ^ ~V.low & se.low;
5276
5277
  }
5277
- var A = d[0], M = u[w];
5278
- A.high ^= M.high, A.low ^= M.low;
5278
+ var A = d[0], W = u[w];
5279
+ A.high ^= W.high, A.low ^= W.low;
5279
5280
  }
5280
5281
  },
5281
5282
  _doFinalize: function() {
@@ -5298,10 +5299,10 @@ function Bn() {
5298
5299
  i.SHA3 = x._createHelper(y), i.HmacSHA3 = x._createHmacHelper(y);
5299
5300
  }(Math), t.SHA3;
5300
5301
  });
5301
- }(Gt)), Gt.exports;
5302
+ }(Xt)), Xt.exports;
5302
5303
  }
5303
- var Xt = { exports: {} }, Ar;
5304
- function bn() {
5304
+ var Vt = { exports: {} }, Ar;
5305
+ function _n() {
5305
5306
  return Ar || (Ar = 1, function(r, e) {
5306
5307
  (function(t, s) {
5307
5308
  r.exports = s(L());
@@ -5650,11 +5651,11 @@ function bn() {
5650
5651
  var I = A + w, B = _[I];
5651
5652
  _[I] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
5652
5653
  }
5653
- var C = this._hash.words, F = u.words, D = h.words, R = a.words, O = c.words, U = g.words, Y = o.words, j, X, K, $, P, S, k, J, V, se;
5654
+ var C = this._hash.words, F = u.words, D = h.words, T = a.words, O = c.words, U = g.words, Y = o.words, j, X, K, $, P, S, k, J, V, se;
5654
5655
  S = j = C[0], k = X = C[1], J = K = C[2], V = $ = C[3], se = P = C[4];
5655
- for (var M, w = 0; w < 80; w += 1)
5656
- M = j + _[A + R[w]] | 0, w < 16 ? M += f(X, K, $) + F[0] : w < 32 ? M += b(X, K, $) + F[1] : w < 48 ? M += d(X, K, $) + F[2] : w < 64 ? M += l(X, K, $) + F[3] : M += v(X, K, $) + F[4], M = M | 0, M = E(M, U[w]), M = M + P | 0, j = P, P = $, $ = E(K, 10), K = X, X = M, M = S + _[A + O[w]] | 0, w < 16 ? M += v(k, J, V) + D[0] : w < 32 ? M += l(k, J, V) + D[1] : w < 48 ? M += d(k, J, V) + D[2] : w < 64 ? M += b(k, J, V) + D[3] : M += f(k, J, V) + D[4], M = M | 0, M = E(M, Y[w]), M = M + se | 0, S = se, se = V, V = E(J, 10), J = k, k = M;
5657
- M = C[1] + K + V | 0, C[1] = C[2] + $ + se | 0, C[2] = C[3] + P + S | 0, C[3] = C[4] + j + k | 0, C[4] = C[0] + X + J | 0, C[0] = M;
5656
+ for (var W, w = 0; w < 80; w += 1)
5657
+ W = j + _[A + T[w]] | 0, w < 16 ? W += f(X, K, $) + F[0] : w < 32 ? W += b(X, K, $) + F[1] : w < 48 ? W += d(X, K, $) + F[2] : w < 64 ? W += l(X, K, $) + F[3] : W += v(X, K, $) + F[4], W = W | 0, W = E(W, U[w]), W = W + P | 0, j = P, P = $, $ = E(K, 10), K = X, X = W, W = S + _[A + O[w]] | 0, w < 16 ? W += v(k, J, V) + D[0] : w < 32 ? W += l(k, J, V) + D[1] : w < 48 ? W += d(k, J, V) + D[2] : w < 64 ? W += b(k, J, V) + D[3] : W += f(k, J, V) + D[4], W = W | 0, W = E(W, Y[w]), W = W + se | 0, S = se, se = V, V = E(J, 10), J = k, k = W;
5658
+ W = C[1] + K + V | 0, C[1] = C[2] + $ + se | 0, C[2] = C[3] + P + S | 0, C[3] = C[4] + j + k | 0, C[4] = C[0] + X + J | 0, C[0] = W;
5658
5659
  },
5659
5660
  _doFinalize: function() {
5660
5661
  var _ = this._data, A = _.words, w = this._nDataBytes * 8, I = _.sigBytes * 8;
@@ -5691,13 +5692,13 @@ function bn() {
5691
5692
  i.RIPEMD160 = x._createHelper(y), i.HmacRIPEMD160 = x._createHmacHelper(y);
5692
5693
  }(), t.RIPEMD160;
5693
5694
  });
5694
- }(Xt)), Xt.exports;
5695
+ }(Vt)), Vt.exports;
5695
5696
  }
5696
- var Vt = { exports: {} }, wr;
5697
- function _n() {
5697
+ var Yt = { exports: {} }, wr;
5698
+ function Cn() {
5698
5699
  return wr || (wr = 1, function(r, e) {
5699
5700
  (function(t, s, i) {
5700
- r.exports = s(L(), w0(), C0());
5701
+ r.exports = s(L(), F0(), A0());
5701
5702
  })(N, function(t) {
5702
5703
  return function() {
5703
5704
  var s = t, i = s.lib, n = i.Base, m = i.WordArray, x = s.algo, p = x.SHA256, a = x.HMAC, c = x.PBKDF2 = n.extend({
@@ -5758,10 +5759,10 @@ function _n() {
5758
5759
  };
5759
5760
  }(), t.PBKDF2;
5760
5761
  });
5761
- }(Vt)), Vt.exports;
5762
+ }(Yt)), Yt.exports;
5762
5763
  }
5763
- var Yt = { exports: {} }, Fr;
5764
- function Cn() {
5764
+ var Jt = { exports: {} }, Fr;
5765
+ function An() {
5765
5766
  return Fr || (Fr = 1, function(r, e) {
5766
5767
  (function(t, s, i) {
5767
5768
  r.exports = s(L(), Q());
@@ -5788,10 +5789,10 @@ function Cn() {
5788
5789
  return s;
5789
5790
  }(), t.mode.CFB;
5790
5791
  });
5791
- }(Yt)), Yt.exports;
5792
+ }(Jt)), Jt.exports;
5792
5793
  }
5793
- var Jt = { exports: {} }, Dr;
5794
- function An() {
5794
+ var Zt = { exports: {} }, Dr;
5795
+ function wn() {
5795
5796
  return Dr || (Dr = 1, function(r, e) {
5796
5797
  (function(t, s, i) {
5797
5798
  r.exports = s(L(), Q());
@@ -5810,10 +5811,10 @@ function An() {
5810
5811
  return s.Decryptor = i, s;
5811
5812
  }(), t.mode.CTR;
5812
5813
  });
5813
- }(Jt)), Jt.exports;
5814
+ }(Zt)), Zt.exports;
5814
5815
  }
5815
- var Zt = { exports: {} }, $r;
5816
- function wn() {
5816
+ var Qt = { exports: {} }, $r;
5817
+ function Fn() {
5817
5818
  return $r || ($r = 1, function(r, e) {
5818
5819
  (function(t, s, i) {
5819
5820
  r.exports = s(L(), Q());
@@ -5849,10 +5850,10 @@ function wn() {
5849
5850
  return s.Decryptor = m, s;
5850
5851
  }(), t.mode.CTRGladman;
5851
5852
  });
5852
- }(Zt)), Zt.exports;
5853
+ }(Qt)), Qt.exports;
5853
5854
  }
5854
- var Qt = { exports: {} }, kr;
5855
- function Fn() {
5855
+ var e0 = { exports: {} }, kr;
5856
+ function Dn() {
5856
5857
  return kr || (kr = 1, function(r, e) {
5857
5858
  (function(t, s, i) {
5858
5859
  r.exports = s(L(), Q());
@@ -5869,10 +5870,10 @@ function Fn() {
5869
5870
  return s.Decryptor = i, s;
5870
5871
  }(), t.mode.OFB;
5871
5872
  });
5872
- }(Qt)), Qt.exports;
5873
+ }(e0)), e0.exports;
5873
5874
  }
5874
- var e0 = { exports: {} }, Pr;
5875
- function Dn() {
5875
+ var t0 = { exports: {} }, Pr;
5876
+ function $n() {
5876
5877
  return Pr || (Pr = 1, function(r, e) {
5877
5878
  (function(t, s, i) {
5878
5879
  r.exports = s(L(), Q());
@@ -5890,10 +5891,10 @@ function Dn() {
5890
5891
  }), s;
5891
5892
  }(), t.mode.ECB;
5892
5893
  });
5893
- }(e0)), e0.exports;
5894
+ }(t0)), t0.exports;
5894
5895
  }
5895
- var t0 = { exports: {} }, Sr;
5896
- function $n() {
5896
+ var r0 = { exports: {} }, Sr;
5897
+ function kn() {
5897
5898
  return Sr || (Sr = 1, function(r, e) {
5898
5899
  (function(t, s, i) {
5899
5900
  r.exports = s(L(), Q());
@@ -5909,10 +5910,10 @@ function $n() {
5909
5910
  }
5910
5911
  }, t.pad.Ansix923;
5911
5912
  });
5912
- }(t0)), t0.exports;
5913
+ }(r0)), r0.exports;
5913
5914
  }
5914
- var r0 = { exports: {} }, Ir;
5915
- function kn() {
5915
+ var s0 = { exports: {} }, Ir;
5916
+ function Pn() {
5916
5917
  return Ir || (Ir = 1, function(r, e) {
5917
5918
  (function(t, s, i) {
5918
5919
  r.exports = s(L(), Q());
@@ -5928,11 +5929,11 @@ function kn() {
5928
5929
  }
5929
5930
  }, t.pad.Iso10126;
5930
5931
  });
5931
- }(r0)), r0.exports;
5932
+ }(s0)), s0.exports;
5932
5933
  }
5933
- var s0 = { exports: {} }, Rr;
5934
- function Pn() {
5935
- return Rr || (Rr = 1, function(r, e) {
5934
+ var i0 = { exports: {} }, Tr;
5935
+ function Sn() {
5936
+ return Tr || (Tr = 1, function(r, e) {
5936
5937
  (function(t, s, i) {
5937
5938
  r.exports = s(L(), Q());
5938
5939
  })(N, function(t) {
@@ -5945,11 +5946,11 @@ function Pn() {
5945
5946
  }
5946
5947
  }, t.pad.Iso97971;
5947
5948
  });
5948
- }(s0)), s0.exports;
5949
+ }(i0)), i0.exports;
5949
5950
  }
5950
- var i0 = { exports: {} }, Tr;
5951
- function Sn() {
5952
- return Tr || (Tr = 1, function(r, e) {
5951
+ var n0 = { exports: {} }, Rr;
5952
+ function In() {
5953
+ return Rr || (Rr = 1, function(r, e) {
5953
5954
  (function(t, s, i) {
5954
5955
  r.exports = s(L(), Q());
5955
5956
  })(N, function(t) {
@@ -5967,10 +5968,10 @@ function Sn() {
5967
5968
  }
5968
5969
  }, t.pad.ZeroPadding;
5969
5970
  });
5970
- }(i0)), i0.exports;
5971
+ }(n0)), n0.exports;
5971
5972
  }
5972
- var n0 = { exports: {} }, Or;
5973
- function In() {
5973
+ var o0 = { exports: {} }, Or;
5974
+ function Tn() {
5974
5975
  return Or || (Or = 1, function(r, e) {
5975
5976
  (function(t, s, i) {
5976
5977
  r.exports = s(L(), Q());
@@ -5982,9 +5983,9 @@ function In() {
5982
5983
  }
5983
5984
  }, t.pad.NoPadding;
5984
5985
  });
5985
- }(n0)), n0.exports;
5986
+ }(o0)), o0.exports;
5986
5987
  }
5987
- var o0 = { exports: {} }, Ur;
5988
+ var a0 = { exports: {} }, Ur;
5988
5989
  function Rn() {
5989
5990
  return Ur || (Ur = 1, function(r, e) {
5990
5991
  (function(t, s, i) {
@@ -6029,10 +6030,10 @@ function Rn() {
6029
6030
  };
6030
6031
  }(), t.format.Hex;
6031
6032
  });
6032
- }(o0)), o0.exports;
6033
+ }(a0)), a0.exports;
6033
6034
  }
6034
- var a0 = { exports: {} }, Hr;
6035
- function Tn() {
6035
+ var c0 = { exports: {} }, Hr;
6036
+ function On() {
6036
6037
  return Hr || (Hr = 1, function(r, e) {
6037
6038
  (function(t, s, i) {
6038
6039
  r.exports = s(L(), be, Ce, Ae(), Q());
@@ -6749,10 +6750,10 @@ function Tn() {
6749
6750
  s.TripleDES = m._createHelper(f);
6750
6751
  }(), t.TripleDES;
6751
6752
  });
6752
- }(a0)), a0.exports;
6753
+ }(c0)), c0.exports;
6753
6754
  }
6754
- var c0 = { exports: {} }, Nr;
6755
- function On() {
6755
+ var d0 = { exports: {} }, Nr;
6756
+ function Un() {
6756
6757
  return Nr || (Nr = 1, function(r, e) {
6757
6758
  (function(t, s, i) {
6758
6759
  r.exports = s(L(), be, Ce, Ae(), Q());
@@ -6803,11 +6804,11 @@ function On() {
6803
6804
  s.RC4Drop = n._createHelper(a);
6804
6805
  }(), t.RC4;
6805
6806
  });
6806
- }(c0)), c0.exports;
6807
+ }(d0)), d0.exports;
6807
6808
  }
6808
- var d0 = { exports: {} }, Mr;
6809
- function Un() {
6810
- return Mr || (Mr = 1, function(r, e) {
6809
+ var x0 = { exports: {} }, Wr;
6810
+ function Hn() {
6811
+ return Wr || (Wr = 1, function(r, e) {
6811
6812
  (function(t, s, i) {
6812
6813
  r.exports = s(L(), be, Ce, Ae(), Q());
6813
6814
  })(N, function(t) {
@@ -6869,11 +6870,11 @@ function Un() {
6869
6870
  s.Rabbit = n._createHelper(c);
6870
6871
  }(), t.Rabbit;
6871
6872
  });
6872
- }(d0)), d0.exports;
6873
+ }(x0)), x0.exports;
6873
6874
  }
6874
- var x0 = { exports: {} }, Wr;
6875
- function Hn() {
6876
- return Wr || (Wr = 1, function(r, e) {
6875
+ var l0 = { exports: {} }, Mr;
6876
+ function Nn() {
6877
+ return Mr || (Mr = 1, function(r, e) {
6877
6878
  (function(t, s, i) {
6878
6879
  r.exports = s(L(), be, Ce, Ae(), Q());
6879
6880
  })(N, function(t) {
@@ -6933,10 +6934,10 @@ function Hn() {
6933
6934
  s.RabbitLegacy = n._createHelper(c);
6934
6935
  }(), t.RabbitLegacy;
6935
6936
  });
6936
- }(x0)), x0.exports;
6937
+ }(l0)), l0.exports;
6937
6938
  }
6938
- var l0 = { exports: {} }, Lr;
6939
- function Nn() {
6939
+ var u0 = { exports: {} }, Lr;
6940
+ function Wn() {
6940
6941
  return Lr || (Lr = 1, function(r, e) {
6941
6942
  (function(t, s, i) {
6942
6943
  r.exports = s(L(), be, Ce, Ae(), Q());
@@ -8055,18 +8056,18 @@ function Nn() {
8055
8056
  s.Blowfish = n._createHelper(y);
8056
8057
  }(), t.Blowfish;
8057
8058
  });
8058
- }(l0)), l0.exports;
8059
+ }(u0)), u0.exports;
8059
8060
  }
8060
8061
  (function(r, e) {
8061
8062
  (function(t, s, i) {
8062
- r.exports = s(L(), ft(), vn(), yn(), be, mn(), Ce, ls(), w0(), En(), hs(), gn(), Bn(), bn(), C0(), _n(), Ae(), Q(), Cn(), An(), wn(), Fn(), Dn(), $n(), kn(), Pn(), Sn(), In(), Rn(), us, Tn(), On(), Un(), Hn(), Nn());
8063
+ r.exports = s(L(), ft(), yn(), mn(), be, En(), Ce, ls(), F0(), gn(), hs(), Bn(), bn(), _n(), A0(), Cn(), Ae(), Q(), An(), wn(), Fn(), Dn(), $n(), kn(), Pn(), Sn(), In(), Tn(), Rn(), us, On(), Un(), Hn(), Nn(), Wn());
8063
8064
  })(N, function(t) {
8064
8065
  return t;
8065
8066
  });
8066
8067
  })(ps);
8067
8068
  var Mn = ps.exports;
8068
- const we = /* @__PURE__ */ We(Mn);
8069
- class Wn {
8069
+ const we = /* @__PURE__ */ Me(Mn);
8070
+ class Ln {
8070
8071
  constructor() {
8071
8072
  this.data = {
8072
8073
  client_key: ""
@@ -8078,7 +8079,7 @@ class Wn {
8078
8079
  encrypt(e) {
8079
8080
  if (ne(this.encryptKey()))
8080
8081
  throw new Error("privateKey is not set");
8081
- const t = typeof e == "string" ? e : JSON.stringify(e), s = p0.encrypt(
8082
+ const t = typeof e == "string" ? e : JSON.stringify(e), s = h0.encrypt(
8082
8083
  t,
8083
8084
  we.enc.Utf8.parse(this.encryptKey()),
8084
8085
  {
@@ -8091,7 +8092,7 @@ class Wn {
8091
8092
  decrypt(e) {
8092
8093
  if (ne(this.encryptKey()))
8093
8094
  throw new Error("privateKey is not set");
8094
- const s = p0.decrypt(
8095
+ const s = h0.decrypt(
8095
8096
  e,
8096
8097
  we.enc.Utf8.parse(this.encryptKey()),
8097
8098
  {
@@ -8111,7 +8112,7 @@ class Wn {
8111
8112
  throw new Error(`Hook ${e} is not defined`);
8112
8113
  }
8113
8114
  }
8114
- class Ln {
8115
+ class qn {
8115
8116
  constructor(e = {}) {
8116
8117
  this.hooks = {}, Object.keys(e).forEach((t) => {
8117
8118
  this.hooks[t] = e[t];
@@ -8131,13 +8132,13 @@ class Ln {
8131
8132
  }
8132
8133
  }
8133
8134
  }
8134
- class qn extends Ln {
8135
+ class zn extends qn {
8135
8136
  constructor(e = {}) {
8136
8137
  super(e);
8137
8138
  }
8138
8139
  }
8139
- const me = new qn();
8140
- class F0 extends Wn {
8140
+ const me = new zn();
8141
+ class D0 extends Ln {
8141
8142
  setWidgetData(e, t) {
8142
8143
  me.setHooks(t.hooks ?? {}), this.el = String(e).replace(/#/gi, ""), this.data = t, this.termsPassed = !1, this.data.terms = this.data.terms ?? [], this.widgetType = 1, this.data.widget = 1, this.data.use_terms = this.data.use_terms ?? !0, this.widgetExtra = {};
8143
8144
  }
@@ -8145,7 +8146,7 @@ class F0 extends Wn {
8145
8146
  this.data.pg = e, this.data.method = t, this.data.wallet_id = s, this.termsPassed = i, this.data.terms = n, this.widgetExtra = m;
8146
8147
  }
8147
8148
  updateOnProcessing(e) {
8148
- this.updateNumberFields(e, ["price", "tax_free"]), this.updateStringFields(e, ["currency", "widget_key"]), this.updateUndefinedCheckFields(e, ["user_token", "external_terms", "use_bootpay_inapp_sdk"]), q(e.use_terms) && (this.data.use_terms = e.use_terms !== !1), q(e.sandbox) && (this.data.sandbox = e.sandbox === !0), q(e.widget_type) && (this.widgetType = e.widget_type);
8149
+ this.updateNumberFields(e, ["price", "tax_free"]), this.updateStringFields(e, ["currency", "widget_key"]), this.updateUndefinedCheckFields(e, ["user_token", "external_terms", "use_bootpay_inapp_sdk"]), z(e.use_terms) && (this.data.use_terms = e.use_terms !== !1), z(e.sandbox) && (this.data.sandbox = e.sandbox === !0), z(e.widget_type) && (this.widgetType = e.widget_type);
8149
8150
  }
8150
8151
  encryptParameters() {
8151
8152
  return encodeURIComponent(
@@ -8167,7 +8168,7 @@ class F0 extends Wn {
8167
8168
  );
8168
8169
  }
8169
8170
  encryptKey() {
8170
- return q(this.data.application_id) ? xs(this.data.application_id).toString().substring(0, 16) : "";
8171
+ return z(this.data.application_id) ? xs(this.data.application_id).toString().substring(0, 16) : "";
8171
8172
  }
8172
8173
  /**
8173
8174
  * 결제 요청시 가져올 extra 값
@@ -8175,10 +8176,10 @@ class F0 extends Wn {
8175
8176
  * @date: 2024-08-19
8176
8177
  */
8177
8178
  getExtra(e = void 0) {
8178
- return mt(e ?? {}, mt(this.data.extra ?? {}, this.widgetExtra ?? {}));
8179
+ return Et(e ?? {}, Et(this.data.extra ?? {}, this.widgetExtra ?? {}));
8179
8180
  }
8180
8181
  getRequestPaymentData(e = void 0) {
8181
- return this.data.widget_sandbox = this.data.sandbox, this.data.extra = this.getExtra(e.extra), mt(e, this.data);
8182
+ return this.data.widget_sandbox = this.data.sandbox, this.data.extra = this.getExtra(e.extra), Et(e, this.data);
8182
8183
  }
8183
8184
  getManagerUrl() {
8184
8185
  return `brandpay/${this.data.application_id}/${this.encryptParameters()}/edit?__popup=${this.data.use_popup ? "true" : "false"}&__frame=${this.data.use_popup ? "false" : "true"}`;
@@ -8190,7 +8191,7 @@ class F0 extends Wn {
8190
8191
  */
8191
8192
  updateNumberFields(e, t) {
8192
8193
  t.forEach((s) => {
8193
- q(e[s]) && (this.data[s] = e[s]);
8194
+ z(e[s]) && (this.data[s] = e[s]);
8194
8195
  });
8195
8196
  }
8196
8197
  /**
@@ -8200,7 +8201,7 @@ class F0 extends Wn {
8200
8201
  */
8201
8202
  updateStringFields(e, t) {
8202
8203
  t.forEach((s) => {
8203
- q(e[s]) && (this.data[s] = e[s]);
8204
+ z(e[s]) && (this.data[s] = e[s]);
8204
8205
  });
8205
8206
  }
8206
8207
  /**
@@ -8214,10 +8215,10 @@ class F0 extends Wn {
8214
8215
  });
8215
8216
  }
8216
8217
  }
8217
- const z = new F0();
8218
- class zn extends _e {
8218
+ const q = new D0();
8219
+ class jn extends _e {
8219
8220
  constructor() {
8220
- super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = z, this.$template = this.defaultIframeHtml();
8221
+ super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = q, this.$template = this.defaultIframeHtml();
8221
8222
  }
8222
8223
  /**
8223
8224
  * 첫 Rendering을 진행한다
@@ -8229,7 +8230,7 @@ class zn extends _e {
8229
8230
  if (this.$blank(this.$widgetStore.el) || e === null)
8230
8231
  throw new Error("부트페이 위젯을 설정할 Element ID를 입력하지 않았거나 해당 Element DOM이 존재하지 않습니다.");
8231
8232
  this.templateRender(
8232
- T.toWidget(
8233
+ R.toWidget(
8233
8234
  `p/${this.$widgetStore.data.application_id}/${this.$widgetStore.encryptParameters()}`
8234
8235
  )
8235
8236
  );
@@ -8264,13 +8265,13 @@ class zn extends _e {
8264
8265
  e.innerHTML = "";
8265
8266
  }
8266
8267
  }
8267
- const G = new zn();
8268
- class jn extends rt {
8268
+ const G = new jn();
8269
+ class Kn extends rt {
8269
8270
  constructor() {
8270
- super(), this.message = A0;
8271
+ super(), this.message = w0;
8271
8272
  }
8272
8273
  initialize() {
8273
- z.setWidgetData(
8274
+ q.setWidgetData(
8274
8275
  void 0,
8275
8276
  {
8276
8277
  application_id: void 0,
@@ -8291,7 +8292,7 @@ class jn extends rt {
8291
8292
  throw new Error("결제금액은 1원 이상을 입력해주세요.");
8292
8293
  if (this.$blank(t == null ? void 0 : t.application_id))
8293
8294
  throw new Error("application_id가 입력되지 않았습니다.");
8294
- this.initialize(), z.setWidgetData(
8295
+ this.initialize(), q.setWidgetData(
8295
8296
  e,
8296
8297
  t
8297
8298
  ), G.render(), fs.bind();
@@ -8308,7 +8309,7 @@ class jn extends rt {
8308
8309
  widget_key: a,
8309
8310
  external_terms: c
8310
8311
  } = e;
8311
- z.updateOnProcessing({
8312
+ q.updateOnProcessing({
8312
8313
  price: t,
8313
8314
  tax_free: s,
8314
8315
  currency: i,
@@ -8335,10 +8336,10 @@ class jn extends rt {
8335
8336
  G.destroy();
8336
8337
  }
8337
8338
  selectPayment(e, t, s, i = !1, n, m) {
8338
- z.setPayment(e, t, s, i, n, m), H.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(m)}`);
8339
+ q.setPayment(e, t, s, i, n, m), H.debug("selectPayment", `pg: ${e}, method: ${t}, wallet_id: ${s}, terms: ${i}, select_terms: ${JSON.stringify(n)}, extra: ${JSON.stringify(m)}`);
8339
8340
  }
8340
8341
  currentTermsCondition() {
8341
- return z.data.terms;
8342
+ return q.data.terms;
8342
8343
  }
8343
8344
  /**
8344
8345
  * 부트페이 결제 요청을 한다
@@ -8346,7 +8347,7 @@ class jn extends rt {
8346
8347
  * @date: 2023-06-21
8347
8348
  */
8348
8349
  async requestPayment(e) {
8349
- return this.widgetRequestPaymentValidate(1), Pe.requestPayment(z.getRequestPaymentData(e));
8350
+ return this.widgetRequestPaymentValidate(1), Pe.requestPayment(q.getRequestPaymentData(e));
8350
8351
  }
8351
8352
  /**
8352
8353
  * 부트페이 정기결제 요청
@@ -8354,7 +8355,7 @@ class jn extends rt {
8354
8355
  * @date: 2024-08-19
8355
8356
  */
8356
8357
  async requestSubscription(e) {
8357
- return this.widgetRequestPaymentValidate(2), Pe.requestSubscription(z.getRequestPaymentData(e));
8358
+ return this.widgetRequestPaymentValidate(2), Pe.requestSubscription(q.getRequestPaymentData(e));
8358
8359
  }
8359
8360
  isRendered() {
8360
8361
  return G.isRendered();
@@ -8385,35 +8386,35 @@ class jn extends rt {
8385
8386
  */
8386
8387
  currentPaymentParameters() {
8387
8388
  return {
8388
- pg: z.data.pg,
8389
- method: z.data.method,
8390
- wallet_id: z.data.wallet_id,
8391
- terms: z.data.terms,
8392
- widget_key: z.data.widget_key,
8393
- widget_sandbox: z.data.sandbox,
8394
- extra: z.getExtra({})
8389
+ pg: q.data.pg,
8390
+ method: q.data.method,
8391
+ wallet_id: q.data.wallet_id,
8392
+ terms: q.data.terms,
8393
+ widget_key: q.data.widget_key,
8394
+ widget_sandbox: q.data.sandbox,
8395
+ extra: q.getExtra({})
8395
8396
  };
8396
8397
  }
8397
8398
  widgetRequestPaymentValidate(e = void 0) {
8398
- if (e !== void 0 && z.widgetType !== e)
8399
+ if (e !== void 0 && q.widgetType !== e)
8399
8400
  throw new le({
8400
8401
  event: "error",
8401
8402
  error_code: "RC_WIDGET_TYPE_INVALID",
8402
8403
  message: e === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
8403
8404
  });
8404
- if (this.$blank(z.data.pg) || this.$blank(z.data.method))
8405
+ if (this.$blank(q.data.pg) || this.$blank(q.data.method))
8405
8406
  throw new le({
8406
8407
  event: "error",
8407
8408
  error_code: "RC_PG_METHOD_NOT_SELECTED",
8408
8409
  message: this.message.getLocaleMessage("notSelectPayment", "ko")
8409
8410
  });
8410
- if (!z.termsPassed && z.data.use_terms)
8411
+ if (!q.termsPassed && q.data.use_terms)
8411
8412
  throw new le({
8412
8413
  event: "error",
8413
8414
  error_code: "RC_TERMS_NOT_AGREE",
8414
8415
  message: this.message.getLocaleMessage("termsNotAgree", "ko")
8415
8416
  });
8416
- if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(z.data.method) > -1 && z.data.wallet_id === void 0)
8417
+ if (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
8417
8418
  throw new le({
8418
8419
  event: "error",
8419
8420
  error_code: "RC_BRANDPAY_NEED_SELECT_WALLET",
@@ -8421,21 +8422,21 @@ class jn extends rt {
8421
8422
  });
8422
8423
  }
8423
8424
  }
8424
- const re = new jn();
8425
- class Kn extends _e {
8425
+ const re = new Kn();
8426
+ class Gn extends _e {
8426
8427
  constructor(e = { isBackground: !0 }) {
8427
- super(), this.$brandpayWindowId = "__bootpay-brandpay-window", this.$iFrameId = "__bootpay-brandpay-iframe", this.$windowId = "__bootpay-brandpay-container-window", this.$additionalClass = T.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template({ isBackground: e.isBackground ?? !0 }), this.$widgetStore = z;
8428
+ super(), this.$brandpayWindowId = "__bootpay-brandpay-window", this.$iFrameId = "__bootpay-brandpay-iframe", this.$windowId = "__bootpay-brandpay-container-window", this.$additionalClass = R.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template({ isBackground: e.isBackground ?? !0 }), this.$widgetStore = q;
8428
8429
  }
8429
8430
  template({ isBackground: e }) {
8430
8431
  return e ? `
8431
8432
  <div id="${this.$windowId}" class="bootpay-payment-background">
8432
- <div class="bootpay-payment-window ${T.isMobile() ? "__mobile" : ""}" id="${this.$brandpayWindowId}">
8433
+ <div class="bootpay-payment-window ${R.isMobile() ? "__mobile" : ""}" id="${this.$brandpayWindowId}">
8433
8434
  <iframe class="${this.$additionalClass}" id="${this.$iFrameId}" name="${this.$iFrameId}"></iframe>
8434
8435
  </div>
8435
8436
  </div>
8436
8437
  ` : `
8437
8438
  <div id="${this.$windowId}" class="bootpay-transparent-background">
8438
- <div class="bootpay-payment-window ${T.isMobile() ? "__mobile" : ""}" id="${this.$brandpayWindowId}">
8439
+ <div class="bootpay-payment-window ${R.isMobile() ? "__mobile" : ""}" id="${this.$brandpayWindowId}">
8439
8440
  <iframe class="${this.$additionalClass}" id="${this.$iFrameId}" name="${this.$iFrameId}" frameborder="0"></iframe>
8440
8441
  </div>
8441
8442
  </div>
@@ -8444,14 +8445,14 @@ class Kn extends _e {
8444
8445
  createIFrame(e) {
8445
8446
  this.createTemplateHtml();
8446
8447
  const t = document.getElementById(this.$iFrameId);
8447
- t == null || t.setAttribute("src", T.toWidget(`${e}`)), t == null || t.style.setProperty("display", "block"), this.bodyOpen("bootpay-mobile");
8448
+ t == null || t.setAttribute("src", R.toWidget(`${e}`)), t == null || t.style.setProperty("display", "block"), this.bodyOpen("bootpay-mobile");
8448
8449
  }
8449
8450
  templateRender(e) {
8450
8451
  this.$template = this.template({ isBackground: !1 });
8451
8452
  const t = document.getElementById(this.$widgetStore.el);
8452
8453
  t.innerHTML = this.$template;
8453
8454
  const s = this.byId(this.$iFrameId);
8454
- s.setAttribute("src", T.toWidget(e)), s.setAttribute("style", "border: 0; outline: 0;");
8455
+ s.setAttribute("src", R.toWidget(e)), s.setAttribute("style", "border: 0; outline: 0;");
8455
8456
  }
8456
8457
  addWallet(e) {
8457
8458
  this.createIFrame(e);
@@ -8473,10 +8474,10 @@ class Kn extends _e {
8473
8474
  }
8474
8475
  };
8475
8476
  const s = `brandpay/${this.$widgetStore.data.application_id}/${this.$widgetStore.encryptParameters()}/edit`;
8476
- console.log("url", s), t || T.isMobile() ? window.open(T.toWidget(`${s}?__popup=true`), "widget-brandpay-environment-popup", `width=${e.size.width},height=${e.size.height},scrollbars=yes`).focus() : this.createIFrame(s);
8477
+ console.log("url", s), t || R.isMobile() ? window.open(R.toWidget(`${s}?__popup=true`), "widget-brandpay-environment-popup", `width=${e.size.width},height=${e.size.height},scrollbars=yes`).focus() : this.createIFrame(s);
8477
8478
  }
8478
8479
  externalPassword({ popup: e, url: t }) {
8479
- e || T.isMobile() ? window.open(T.toWidget(`${t}?__popup=true`), "widget-brandpay-external-password-popup", "width=500,height=800,scrollbars=yes").focus() : this.createIFrame(t);
8480
+ e || R.isMobile() ? window.open(R.toWidget(`${t}?__popup=true`), "widget-brandpay-external-password-popup", "width=500,height=800,scrollbars=yes").focus() : this.createIFrame(t);
8480
8481
  }
8481
8482
  destroy() {
8482
8483
  const e = document.getElementById(this.$windowId);
@@ -8495,15 +8496,15 @@ class Kn extends _e {
8495
8496
  }), "*");
8496
8497
  }
8497
8498
  }
8498
- const ie = new Kn();
8499
- class Gn extends _e {
8499
+ const ie = new Gn();
8500
+ class Xn extends _e {
8500
8501
  constructor() {
8501
- super(), this.$windowId = "__bootpay-modal-window-container", this.$modalWindowId = "__bootpay-modal-window", this.$iFrameId = "__bootpay-modal-iframe", this.$additionalClass = T.isMobile() ? "" : "rounded-iframe", this.$template = this.template();
8502
+ super(), this.$windowId = "__bootpay-modal-window-container", this.$modalWindowId = "__bootpay-modal-window", this.$iFrameId = "__bootpay-modal-iframe", this.$additionalClass = R.isMobile() ? "" : "rounded-iframe", this.$template = this.template();
8502
8503
  }
8503
8504
  template() {
8504
8505
  return `
8505
8506
  <div id="${this.$windowId}" class="bootpay-payment-background">
8506
- <div class="bootpay-payment-window ${T.isMobile() ? "__mobile" : ""}" id="${this.$modalWindowId}">
8507
+ <div class="bootpay-payment-window ${R.isMobile() ? "__mobile" : ""}" id="${this.$modalWindowId}">
8507
8508
  <iframe class="${this.$additionalClass}" id="${this.$iFrameId}" name="${this.$iFrameId}"></iframe>
8508
8509
  </div>
8509
8510
  </div>
@@ -8534,8 +8535,8 @@ class Gn extends _e {
8534
8535
  }), "*");
8535
8536
  }
8536
8537
  }
8537
- const ot = new Gn();
8538
- class Xn extends _e {
8538
+ const at = new Xn();
8539
+ class Vn extends _e {
8539
8540
  constructor() {
8540
8541
  super(), this.$windowId = "__bootpay-confirm-modal-window-container", this.$modalWindowId = "__bootpay-confirm-modal-window", this.$additionalClass = "rounded-iframe", this.$title = "알림", this.$confirmButtonText = "확인", this.$cancelButtonText = "취소", this.$hookConfirmButtonId = "__bootpay-confirm-modal-hook-button", this.$hookCancelButtonId = "__bootpay-cancel-modal-hook-button", this.$hookCloseButtonId = "__bootpay-close-modal-hook-button", this.$template = this.template(), this.$message = "";
8541
8542
  }
@@ -8575,7 +8576,7 @@ class Xn extends _e {
8575
8576
  }, 100);
8576
8577
  }
8577
8578
  }
8578
- const h0 = new Xn(), Vn = {
8579
+ const f0 = new Vn(), Yn = {
8579
8580
  $eventPrefix: "bootpay",
8580
8581
  bootpayWidgetSelectMethod(r) {
8581
8582
  return this.triggerGlobalChangeEvent(r), re.selectPayment(
@@ -8627,10 +8628,10 @@ const h0 = new Xn(), Vn = {
8627
8628
  return ie.destroy();
8628
8629
  },
8629
8630
  bootpayWidgetModalOpen(r) {
8630
- return ot.createIFrame(r.url);
8631
+ return at.createIFrame(r.url);
8631
8632
  },
8632
8633
  bootpayWidgetModalClose() {
8633
- return ot.destroy();
8634
+ return at.destroy();
8634
8635
  },
8635
8636
  bootpayRequestModalCurrentStores(r) {
8636
8637
  return G.postMessage("bootpayWidgetRequestModalCurrentStores", r);
@@ -8639,7 +8640,7 @@ const h0 = new Xn(), Vn = {
8639
8640
  return G.postMessage("bootpayWidgetGetEnvironmentModalWidget", r);
8640
8641
  },
8641
8642
  bootpayWidgetResponseGetEnvironmentModalWidget(r) {
8642
- return ot.postMessage("bootpayResponseGetEnvironmentModalWidget", {
8643
+ return at.postMessage("bootpayResponseGetEnvironmentModalWidget", {
8643
8644
  application_id: G.$widgetStore.data.application_id,
8644
8645
  use_only_brandpay: G.$widgetStore.data.use_only_brandpay,
8645
8646
  user_token: G.$widgetStore.data.user_token,
@@ -8652,7 +8653,7 @@ const h0 = new Xn(), Vn = {
8652
8653
  });
8653
8654
  },
8654
8655
  bootpayWidgetModalResize(r) {
8655
- return ot.resize(r);
8656
+ return at.resize(r);
8656
8657
  },
8657
8658
  bootpayWidgetPaymentGetStoreData() {
8658
8659
  const {
@@ -8684,7 +8685,7 @@ const h0 = new Xn(), Vn = {
8684
8685
  this.callBootpayDOMEvent("widget-ready", r), me.callHook("ready", r);
8685
8686
  },
8686
8687
  bootpayWidgetUpdateStore(r) {
8687
- z.updateOnProcessing({
8688
+ q.updateOnProcessing({
8688
8689
  ...r
8689
8690
  });
8690
8691
  },
@@ -8692,7 +8693,7 @@ const h0 = new Xn(), Vn = {
8692
8693
  location.href = r.url;
8693
8694
  },
8694
8695
  bootpayWidgetShowModal(r) {
8695
- return h0.show(
8696
+ return f0.show(
8696
8697
  r.message,
8697
8698
  r.title,
8698
8699
  r.confirmButtonText,
@@ -8715,7 +8716,7 @@ const h0 = new Xn(), Vn = {
8715
8716
  */
8716
8717
  triggerGlobalChangeEvent(r) {
8717
8718
  var e;
8718
- r.completed = q(r.pg) && q(r.method) && (r.term_passed === !0 || !z.data.use_terms) && (["BRANDPAY_CARD", "BRANDPAY_AUTOMATIC_TRANSFER"].indexOf(r.method) === -1 || r.wallet_id !== void 0), (z.data.pg !== r.pg || z.data.method !== r.method || z.data.wallet_id !== r.wallet_id || JSON.stringify(z.widgetExtra) !== JSON.stringify(r.extra)) && (this.callBootpayDOMEvent("widget-change-payment", r), me.callHook("paymentMethodUpdated", r)), JSON.stringify((e = r.select_terms) == null ? void 0 : e.filter((t) => t.agree === !0)) !== JSON.stringify(z.data.terms.filter((t) => t.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", r), me.callHook("termsConsentUpdated", r));
8719
+ r.completed = z(r.pg) && z(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), me.callHook("paymentMethodUpdated", 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), me.callHook("termsConsentUpdated", r));
8719
8720
  },
8720
8721
  callBootpayDOMEvent(r, e = void 0) {
8721
8722
  document.dispatchEvent(
@@ -8735,18 +8736,18 @@ const h0 = new Xn(), Vn = {
8735
8736
  brandpayExternalPassword: (r) => ie.externalPassword(r),
8736
8737
  externalPasswordResponse: (r) => ie.postMessage("externalPasswordResponse", r)
8737
8738
  };
8738
- class Yn extends xt {
8739
+ class Jn extends st {
8739
8740
  constructor() {
8740
8741
  super({
8741
8742
  messageEventName: "message.BootpayWidgetEvent",
8742
8743
  messageEventHooks: {
8743
- WidgetWindowMessage: Vn
8744
+ WidgetWindowMessage: Yn
8744
8745
  }
8745
8746
  });
8746
8747
  }
8747
8748
  }
8748
- const fs = new Yn();
8749
- class Jn extends _e {
8749
+ const fs = new Jn();
8750
+ class Zn extends _e {
8750
8751
  constructor() {
8751
8752
  super(), this.$windowId = "__bootpay-slider-window-container", this.$modalWindowId = "__bootpay-slider-window", this.$additionalClass = "rounded-iframe", this.$title = "알림", this.$options = void 0;
8752
8753
  }
@@ -8805,30 +8806,44 @@ class Jn extends _e {
8805
8806
  }, 100);
8806
8807
  }
8807
8808
  }
8808
- const Zn = new Jn(), Qn = {
8809
+ const Qn = new Zn(), eo = {
8809
8810
  showSliderSelect(r) {
8810
- Zn.show(this, r);
8811
+ Qn.show(this, r);
8811
8812
  },
8812
8813
  selectSliderSelect(r, e = "sliderSelectResponse") {
8813
- f0.$childInstance.postMessage(e, {
8814
+ v0.$childInstance.postMessage(e, {
8814
8815
  key: r
8815
8816
  });
8816
8817
  }
8817
8818
  };
8818
- class eo extends xt {
8819
+ class to extends st {
8819
8820
  constructor() {
8820
8821
  super({
8821
8822
  messageEventName: "message.BootpaySliderEvent",
8822
8823
  messageEventHooks: {
8823
- StoreSliderEvent: Qn
8824
+ StoreSliderEvent: eo
8824
8825
  }
8825
8826
  });
8826
8827
  }
8827
8828
  }
8828
- const f0 = new eo();
8829
- class to extends _e {
8829
+ const v0 = new to(), ro = {
8830
+ externalPasswordResponse: (r) => vs.resolve(r),
8831
+ resize: (r) => vt.iFrameResize(r)
8832
+ };
8833
+ class so extends st {
8830
8834
  constructor() {
8831
- super(), this.$popupInstance = null, this.$popupInstanceWatcher = null, 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 fn(), this.$session = $e, this.deviceType = te.PLATFORM.JS;
8835
+ super({
8836
+ messageEventName: "message.BootpaySdkEvent",
8837
+ messageEventHooks: {
8838
+ WidgetWindowMessage: ro
8839
+ }
8840
+ });
8841
+ }
8842
+ }
8843
+ const vs = new so();
8844
+ class io extends _e {
8845
+ constructor() {
8846
+ super(), this.$popupInstance = null, this.$popupInstanceWatcher = null, 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 vn(), this.$session = $e, this.deviceType = te.PLATFORM.JS;
8832
8847
  }
8833
8848
  /**
8834
8849
  * 공통 템플릿 초기화 메서드
@@ -8888,7 +8903,7 @@ class to extends _e {
8888
8903
  return new Promise((s, i) => {
8889
8904
  this.initializeTemplate(s, i), this.goiFrameUrl(
8890
8905
  "GET",
8891
- T.toDoor(`sdk/password/${t}`),
8906
+ R.toDoor(`sdk/password/${t}`),
8892
8907
  {
8893
8908
  type: e,
8894
8909
  uuid: this.$session.currentUserUUID()
@@ -8896,6 +8911,18 @@ class to extends _e {
8896
8911
  );
8897
8912
  });
8898
8913
  }
8914
+ requestTokenFromSDK({ application_id: e, user_token: t }) {
8915
+ return new Promise((s, i) => {
8916
+ q.setWidgetData("", {
8917
+ application_id: e,
8918
+ user_token: t
8919
+ }), vs.bind(s, i), this.initializeTemplate(s, i), this.goiFrameUrl(
8920
+ "GET",
8921
+ R.toWidget(`password/${e}/${q.encryptParameters()}`),
8922
+ { uuid: this.$session.currentUserUUID() }
8923
+ );
8924
+ });
8925
+ }
8899
8926
  /**
8900
8927
  * 카드 추가 SDK
8901
8928
  * Comment by GOSOMI
@@ -8905,7 +8932,7 @@ class to extends _e {
8905
8932
  return new Promise((t, s) => {
8906
8933
  this.initializeTemplate(t, s), this.goiFrameUrl(
8907
8934
  "GET",
8908
- T.toDoor(`sdk/card/${e}`),
8935
+ R.toDoor(`sdk/card/${e}`),
8909
8936
  { uuid: this.$session.currentUserUUID() }
8910
8937
  );
8911
8938
  });
@@ -8919,7 +8946,7 @@ class to extends _e {
8919
8946
  return new Promise((t, s) => {
8920
8947
  this.initializeTemplate(t, s), this.goiFrameUrl(
8921
8948
  "GET",
8922
- T.toApi("sdk/easy/wallet"),
8949
+ R.toApi("sdk/easy/wallet"),
8923
8950
  {
8924
8951
  user_token: e,
8925
8952
  sdk: !0,
@@ -8937,7 +8964,7 @@ class to extends _e {
8937
8964
  return new Promise((t, s) => {
8938
8965
  this.initializeTemplate(t, s), this.goiFrameUrl(
8939
8966
  "POST",
8940
- T.toApi("sdk/easy/wallet"),
8967
+ R.toApi("sdk/easy/wallet"),
8941
8968
  {
8942
8969
  method: "DELETE",
8943
8970
  sdk: !0,
@@ -8958,7 +8985,7 @@ class to extends _e {
8958
8985
  return new Promise((t, s) => {
8959
8986
  this.initializeTemplate(t, s), this.goiFrameUrl(
8960
8987
  "POST",
8961
- T.toApi("sdk/easy/biometric"),
8988
+ R.toApi("sdk/easy/biometric"),
8962
8989
  {
8963
8990
  user_token: e.userToken,
8964
8991
  sdk: !0,
@@ -8978,7 +9005,7 @@ class to extends _e {
8978
9005
  return new Promise((t, s) => {
8979
9006
  this.initializeTemplate(t, s), this.goiFrameUrl(
8980
9007
  "POST",
8981
- T.toApi("sdk/easy/biometric"),
9008
+ R.toApi("sdk/easy/biometric"),
8982
9009
  {
8983
9010
  method: "DELETE",
8984
9011
  uuid: this.$session.currentUserUUID(),
@@ -8997,7 +9024,7 @@ class to extends _e {
8997
9024
  return new Promise((t, s) => {
8998
9025
  this.initializeTemplate(t, s), this.goiFrameUrl(
8999
9026
  "POST",
9000
- T.toApi("sdk/easy/card"),
9027
+ R.toApi("sdk/easy/card"),
9001
9028
  this.regenerateRequestPayment(e)
9002
9029
  );
9003
9030
  });
@@ -9009,11 +9036,11 @@ class to extends _e {
9009
9036
  */
9010
9037
  launchBrandpayManager(e) {
9011
9038
  clearInterval(this.$popupInstanceWatcher);
9012
- const t = new F0();
9039
+ const t = new D0();
9013
9040
  t.setWidgetData(e.el, e);
9014
9041
  const s = t.getManagerUrl();
9015
9042
  if (e.use_popup === !0)
9016
- this.$popupInstance = window.open(T.toWidget(s), "bootpay-brandpay-manager", "width=600,height=800,scrollbars=yes,resizable=yes"), this.$popupInstanceWatcher = setInterval(() => {
9043
+ this.$popupInstance = window.open(R.toWidget(s), "bootpay-brandpay-manager", "width=600,height=800,scrollbars=yes,resizable=yes"), this.$popupInstanceWatcher = setInterval(() => {
9017
9044
  if (this.$popupInstance === null || this.$popupInstance.closed) {
9018
9045
  try {
9019
9046
  me.callHook("brandpayManagerWindowClosed");
@@ -9028,7 +9055,7 @@ class to extends _e {
9028
9055
  throw new Error("부트페이 브랜드페이 매니저를 설정할 Element ID를 입력하지 않았거나 해당 Element DOM이 존재하지 않습니다.");
9029
9056
  ie.$widgetStore = t, ie.templateRender(s), this.bodyOpen("bootpay-inherit", !0);
9030
9057
  }
9031
- fs.bind(), f0.bind(), f0.setChildInstance(ie);
9058
+ fs.bind(), v0.bind(), v0.setChildInstance(ie);
9032
9059
  }
9033
9060
  /**
9034
9061
  * iFrame src로 이동
@@ -9092,15 +9119,15 @@ class to extends _e {
9092
9119
  this.$present(document.querySelector("body").className) && (document.querySelector("body").className = document.querySelector("body").className.replace(/bootpay-open/gi, "")), this.$present(this.byId(this.$windowId)) && (this.byId(this.$windowId).outerHTML = ""), document.body.classList.remove("bootpay-open"), ve.clearPollingEvent(), setTimeout(() => ve.callBootpayDOMEvent("close"), 300);
9093
9120
  }
9094
9121
  }
9095
- const D0 = new to(), ro = {
9096
- $templateUserToken: D0,
9122
+ const vt = new io(), no = {
9123
+ $templateUserToken: vt,
9097
9124
  /**
9098
9125
  * Password Token을 가져온다
9099
9126
  * Comment by GOSOMI
9100
9127
  * @date: 2022-02-16
9101
9128
  * @param userToken: string
9102
9129
  */
9103
- async requestPasswordToken(r) {
9130
+ async requestPasswordTokenLegacy(r) {
9104
9131
  try {
9105
9132
  const e = await this.$templateUserToken.request("passwordToken", r);
9106
9133
  return this.$templateUserToken.destroy(), Promise.resolve(e);
@@ -9108,6 +9135,14 @@ const D0 = new to(), ro = {
9108
9135
  return this.$templateUserToken.destroy(), Promise.reject(this.errorHandler(e));
9109
9136
  }
9110
9137
  },
9138
+ async requestPasswordToken(r) {
9139
+ try {
9140
+ const e = await this.$templateUserToken.requestTokenFromSDK(r);
9141
+ return this.$templateUserToken.destroy(), e.confirm ? Promise.resolve(e.token) : Promise.reject(e);
9142
+ } catch (e) {
9143
+ return this.$templateUserToken.destroy(), Promise.reject(this.errorHandler(e));
9144
+ }
9145
+ },
9111
9146
  /**
9112
9147
  * 간편결제 비밀번호 변경 SDK
9113
9148
  * Comment by GOSOMI
@@ -9185,7 +9220,7 @@ const D0 = new to(), ro = {
9185
9220
  * @returns void
9186
9221
  */
9187
9222
  setEnvironmentMode(r, e = void 0) {
9188
- T.set(r), e !== void 0 && T.setDevelopmentHost(e);
9223
+ R.set(r), e !== void 0 && R.setDevelopmentHost(e);
9189
9224
  },
9190
9225
  /**
9191
9226
  * DeviceType을 설정
@@ -9219,7 +9254,7 @@ const D0 = new to(), ro = {
9219
9254
  e = r.eventMessage;
9220
9255
  break;
9221
9256
  default:
9222
- if (q(r.event))
9257
+ if (z(r.event))
9223
9258
  e = r;
9224
9259
  else
9225
9260
  throw r;
@@ -9259,8 +9294,8 @@ const D0 = new to(), ro = {
9259
9294
  });
9260
9295
  }
9261
9296
  };
9262
- typeof window < "u" && (window.BootpaySDK = ro);
9263
- const so = {
9297
+ typeof window < "u" && (window.BootpaySDK = no);
9298
+ const oo = {
9264
9299
  render(r, e) {
9265
9300
  re.render(r, e);
9266
9301
  },
@@ -9268,7 +9303,7 @@ const so = {
9268
9303
  re.rerender();
9269
9304
  },
9270
9305
  setEnvironmentMode(r, e) {
9271
- Pe.setEnvironmentMode(r, e), T.set(r);
9306
+ Pe.setEnvironmentMode(r, e), R.set(r);
9272
9307
  },
9273
9308
  async requestPayment(r) {
9274
9309
  return new Promise(async (e, t) => {
@@ -9291,7 +9326,7 @@ const so = {
9291
9326
  });
9292
9327
  },
9293
9328
  launchBrandpayManager(r) {
9294
- D0.launchBrandpayManager(r);
9329
+ vt.launchBrandpayManager(r);
9295
9330
  },
9296
9331
  errorHandler(r) {
9297
9332
  let e;
@@ -9300,7 +9335,7 @@ const so = {
9300
9335
  e = r.eventMessage;
9301
9336
  break;
9302
9337
  default:
9303
- if (q(r.event))
9338
+ if (z(r.event))
9304
9339
  e = r;
9305
9340
  else
9306
9341
  throw r;
@@ -9362,12 +9397,12 @@ const so = {
9362
9397
  return Pe.setDevice(r);
9363
9398
  },
9364
9399
  alertConfirm() {
9365
- h0.destroy(), re.sendMessage("BootpayWidgetAlertConfirm", {
9400
+ f0.destroy(), re.sendMessage("BootpayWidgetAlertConfirm", {
9366
9401
  confirm: !0
9367
9402
  });
9368
9403
  },
9369
9404
  alertCancel() {
9370
- h0.destroy(), re.sendMessage("BootpayWidgetAlertConfirm", {
9405
+ f0.destroy(), re.sendMessage("BootpayWidgetAlertConfirm", {
9371
9406
  confirm: !1
9372
9407
  });
9373
9408
  },
@@ -9375,21 +9410,21 @@ const so = {
9375
9410
  return re.currentPaymentParameters();
9376
9411
  },
9377
9412
  isWidgetTypeSubscription() {
9378
- return z.widgetType === 2;
9413
+ return q.widgetType === 2;
9379
9414
  },
9380
9415
  isWidgetTypePayment() {
9381
- return z.widgetType === 1;
9416
+ return q.widgetType === 1;
9382
9417
  },
9383
9418
  getBrandpayLaunchManagerUrl(r) {
9384
- const e = new F0();
9385
- return e.setWidgetData("", r), T.toWidget(e.getManagerUrl());
9419
+ const e = new D0();
9420
+ return e.setWidgetData("", r), R.toWidget(e.getManagerUrl());
9386
9421
  }
9387
9422
  };
9388
- typeof window < "u" && (window.BootpayWidget = so);
9423
+ typeof window < "u" && (window.BootpayWidget = oo);
9389
9424
  export {
9390
9425
  Pe as Bootpay,
9391
- T as BootpayEnvironment,
9392
- ro as BootpaySDK,
9393
- so as BootpayWidget,
9426
+ R as BootpayEnvironment,
9427
+ no as BootpaySDK,
9428
+ oo as BootpayWidget,
9394
9429
  Pe as default
9395
9430
  };