@sunggang/ui-lib 0.4.3 → 0.4.4

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/index.esm3.js CHANGED
@@ -8,12 +8,12 @@ import { c as commonjsGlobal } from './_commonjsHelpers.esm.js';
8
8
  return left instanceof right;
9
9
  }
10
10
  }
11
- var g$6 = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || // eslint-disable-next-line no-undef
11
+ var g$5 = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || // eslint-disable-next-line no-undef
12
12
  typeof global !== "undefined" && global || {};
13
13
  var support = {
14
- searchParams: "URLSearchParams" in g$6,
15
- iterable: "Symbol" in g$6 && "iterator" in Symbol,
16
- blob: "FileReader" in g$6 && "Blob" in g$6 && function() {
14
+ searchParams: "URLSearchParams" in g$5,
15
+ iterable: "Symbol" in g$5 && "iterator" in Symbol,
16
+ blob: "FileReader" in g$5 && "Blob" in g$5 && function() {
17
17
  try {
18
18
  new Blob();
19
19
  return true;
@@ -21,8 +21,8 @@ var support = {
21
21
  return false;
22
22
  }
23
23
  }(),
24
- formData: "FormData" in g$6,
25
- arrayBuffer: "ArrayBuffer" in g$6
24
+ formData: "FormData" in g$5,
25
+ arrayBuffer: "ArrayBuffer" in g$5
26
26
  };
27
27
  function isDataView(obj) {
28
28
  return obj && DataView.prototype.isPrototypeOf(obj);
@@ -353,7 +353,7 @@ function Request(input, options) {
353
353
  this.method = normalizeMethod(options.method || this.method || "GET");
354
354
  this.mode = options.mode || this.mode || null;
355
355
  this.signal = options.signal || this.signal || function() {
356
- if ("AbortController" in g$6) {
356
+ if ("AbortController" in g$5) {
357
357
  var ctrl = new AbortController();
358
358
  return ctrl.signal;
359
359
  }
@@ -475,7 +475,7 @@ Response.redirect = function(url, status) {
475
475
  }
476
476
  });
477
477
  };
478
- var DOMException = g$6.DOMException;
478
+ var DOMException = g$5.DOMException;
479
479
  try {
480
480
  new DOMException();
481
481
  } catch (err) {
@@ -533,7 +533,7 @@ function fetch$1(input, init) {
533
533
  };
534
534
  function fixUrl(url) {
535
535
  try {
536
- return url === "" && g$6.location.href ? g$6.location.href : url;
536
+ return url === "" && g$5.location.href ? g$5.location.href : url;
537
537
  } catch (e) {
538
538
  return url;
539
539
  }
@@ -551,7 +551,7 @@ function fetch$1(input, init) {
551
551
  xhr.responseType = "arraybuffer";
552
552
  }
553
553
  }
554
- if (init && typeof init.headers === "object" && !(_instanceof$4(init.headers, Headers) || g$6.Headers && _instanceof$4(init.headers, g$6.Headers))) {
554
+ if (init && typeof init.headers === "object" && !(_instanceof$4(init.headers, Headers) || g$5.Headers && _instanceof$4(init.headers, g$5.Headers))) {
555
555
  var names = [];
556
556
  Object.getOwnPropertyNames(init.headers).forEach(function(name) {
557
557
  names.push(normalizeName(name));
@@ -580,11 +580,11 @@ function fetch$1(input, init) {
580
580
  });
581
581
  }
582
582
  fetch$1.polyfill = true;
583
- if (!g$6.fetch) {
584
- g$6.fetch = fetch$1;
585
- g$6.Headers = Headers;
586
- g$6.Request = Request;
587
- g$6.Response = Response;
583
+ if (!g$5.fetch) {
584
+ g$5.fetch = fetch$1;
585
+ g$5.Headers = Headers;
586
+ g$5.Request = Request;
587
+ g$5.Response = Response;
588
588
  }
589
589
 
590
590
  var n$4;
@@ -638,7 +638,7 @@ var i$2 = function i(t, e) {
638
638
  enumerable: !1,
639
639
  configurable: !0
640
640
  }), t;
641
- }(), u$a = function() {
641
+ }(), u$9 = function() {
642
642
  function n() {
643
643
  this.modules = new Map, this.hooks = {}, this.internalHooks = {};
644
644
  }
@@ -653,9 +653,9 @@ var i$2 = function i(t, e) {
653
653
  }, n.prototype.hasModule = function(t) {
654
654
  return this.modules.has(t);
655
655
  }, n;
656
- }(), a$8 = function a() {}, l$a = function l(t) {
656
+ }(), a$8 = function a() {}, l$b = function l(t) {
657
657
  return _instanceof$3(t, a$8);
658
- }, c$c = function(t) {
658
+ }, c$b = function(t) {
659
659
  function e(e, n, o) {
660
660
  var i = t.call(this) || this;
661
661
  return i.driver = e, i.contextHolder = n, i.option = o, i;
@@ -680,19 +680,19 @@ var i$2 = function i(t, e) {
680
680
  var _$n = Object.assign({}, this.defaultOption, this.option).namespacePrefix;
681
681
  return function(i, r) {
682
682
  if (!i || "function" != typeof i.install || "string" != typeof i.name) return i$3.warn("To install the plugin, you need to define the `name` property and the `install` method."), this;
683
- var s = l$a(i) ? i.name : "".concat(_$n).concat(i.name);
683
+ var s = l$b(i) ? i.name : "".concat(_$n).concat(i.name);
684
684
  if (t.hasModule(s)) return this;
685
- var u = l$a(i) ? i.install.call(i, e.moduleContext, r) : i.install.call(i, e.pluginContext, r);
685
+ var u = l$b(i) ? i.install.call(i, e.moduleContext, r) : i.install.call(i, e.pluginContext, r);
686
686
  return this["".concat(s)] ? (i$3.warn("There is a duplicate plugin name. `".concat(s, "` plugin namespace will be override.")), this["".concat(s)] = u) : void 0 !== u && (this["".concat(s)] = u), t.addModule(s, i), this;
687
687
  };
688
688
  }, e;
689
689
  }(a$8);
690
690
 
691
- var e$4, n$3 = new Promise(function(n) {
692
- e$4 = n;
691
+ var e$5, n$3 = new Promise(function(n) {
692
+ e$5 = n;
693
693
  });
694
694
 
695
- var e$3 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$6 = "INIT_FAILED", E$4 = "FORBIDDEN", n$2 = "INVALID_CONFIG", T$3 = "INVALID_ID_TOKEN", f$9 = "CREATE_SUBWINDOW_FAILED", N$2 = "EXCEPTION_IN_SUBWINDOW", o$4 = "liffEvent", l$9 = "LIFF_STORE", s$8 = "https://liff.".concat("line.me", "/"), a$7 = "https://miniapp.".concat("line.me", "/"), c$b = {
695
+ var e$4 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$5 = "INIT_FAILED", E$5 = "FORBIDDEN", n$2 = "INVALID_CONFIG", T$4 = "INVALID_ID_TOKEN", f$9 = "CREATE_SUBWINDOW_FAILED", N$2 = "EXCEPTION_IN_SUBWINDOW", o$3 = "liffEvent", l$a = "LIFF_STORE", s$8 = "https://liff.".concat("line.me", "/"), a$7 = "https://miniapp.".concat("line.me", "/"), c$a = {
696
696
  ACCESS_TOKEN: "accessToken",
697
697
  ID_TOKEN: "IDToken",
698
698
  DECODED_ID_TOKEN: "decodedIDToken",
@@ -718,7 +718,7 @@ var e$3 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$6 = "INIT_F
718
718
  "mst_verifier",
719
719
  "mst_challenge",
720
720
  "msit"
721
- ], O$3 = 5, A$4 = [
721
+ ], O$4 = 5, A$4 = [
722
722
  "liff.ref.source",
723
723
  "liff.ref.medium",
724
724
  "liff.ref.campaign",
@@ -730,23 +730,23 @@ var e$3 = "UNKNOWN", t = "UNAUTHORIZED", i$1 = "INVALID_ARGUMENT", I$6 = "INIT_F
730
730
  CANCEL: "cancel",
731
731
  CLOSE: "close",
732
732
  ERROR: "error"
733
- }, p$b = 100, S$5 = 100, L$4 = "liff.subwindow", R$5 = "healthCheck", U$4 = [
733
+ }, p$a = 100, S$6 = 100, L$5 = "liff.subwindow", R$5 = "healthCheck", U$4 = [
734
734
  "profile",
735
735
  "chat_message.write",
736
736
  "openid",
737
737
  "email"
738
738
  ];
739
739
 
740
- function c$a(n) {
740
+ function c$9(n) {
741
741
  return window.atob(n.replace(/-/g, "+").replace(/_/g, "/"));
742
742
  }
743
- var u$9 = {
744
- decode: c$a,
743
+ var u$8 = {
744
+ decode: c$9,
745
745
  encode: function encode(n) {
746
746
  return window.btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
747
747
  },
748
748
  decodeUnicode: function decodeUnicode(n) {
749
- var r = c$a(n).split("").map(function(n) {
749
+ var r = c$9(n).split("").map(function(n) {
750
750
  return "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2);
751
751
  }).join("");
752
752
  return decodeURIComponent(r);
@@ -765,25 +765,25 @@ function s$7(r) {
765
765
  var t = r.replace("#", "").match(/.{2}/g) || [];
766
766
  if (4 !== t.length) return i$3.warn("convertArgbToRgba: Received invalid ARGB color"), "";
767
767
  var e = function(n) {
768
- var _$r = p$a(n);
768
+ var _$r = p$9(n);
769
769
  return Math.round(_$r / 255 * 100) / 100;
770
- }(t[0]), _$o = p$a(t[1]), _$i = p$a(t[2]), a = p$a(t[3]);
770
+ }(t[0]), _$o = p$9(t[1]), _$i = p$9(t[2]), a = p$9(t[3]);
771
771
  return "rgba(".concat(_$o, ", ").concat(_$i, ", ").concat(a, ", ").concat(e, ")");
772
772
  }
773
- function p$a(n) {
773
+ function p$9(n) {
774
774
  return parseInt(n, 16);
775
775
  }
776
776
  function d$5(r) {
777
777
  var t = r.replace("#", "").match(/.{2}/g) || [];
778
778
  if (3 !== t.length) return i$3.warn("convertArgbToRgba: Received invalid hex color"), "";
779
- var e = p$a(t[0]), _$o = p$a(t[1]), _$i = p$a(t[2]);
779
+ var e = p$9(t[0]), _$o = p$9(t[1]), _$i = p$9(t[2]);
780
780
  return "".concat(e, ", ").concat(_$o, ", ").concat(_$i);
781
781
  }
782
- function l$8(n) {
782
+ function l$9(n) {
783
783
  for(var r = n.length, t = new ArrayBuffer(r), e = new Uint8Array(t), _$o = 0; _$o < r; _$o++)e[_$o] = n.charCodeAt(_$o);
784
784
  return t;
785
785
  }
786
- var v$5 = {
786
+ var v$4 = {
787
787
  get: function get(n) {
788
788
  var r = new RegExp("(?:(?:^|.*;\\s*)".concat(n, "\\s*\\=\\s*([^;]*).*$)|^.*$"));
789
789
  return document.cookie.replace(r, "$1");
@@ -801,22 +801,22 @@ var v$5 = {
801
801
  if (r) for(var e in r)t += "; ".concat(e, "=").concat(r[e]);
802
802
  document.cookie = t;
803
803
  }
804
- }, g$5 = new Set([
804
+ }, g$4 = new Set([
805
805
  "400",
806
806
  "401",
807
807
  "403",
808
808
  "404",
809
809
  "429",
810
810
  "500"
811
- ]), h$4 = function(n) {
811
+ ]), h$6 = function(n) {
812
812
  function t(r, t, e) {
813
813
  var _$o = n.call(this, t, e) || this;
814
814
  return _$o.code = r, _$o;
815
815
  }
816
816
  return __extends(t, n), t;
817
817
  }(Error);
818
- function w$5(n, r, t) {
819
- return (null == t ? void 0 : t.cause) && console.error("This is the cause of LiffError described below.", t.cause), new h$4(n, r || "", t || {});
818
+ function w$6(n, r, t) {
819
+ return (null == t ? void 0 : t.cause) && console.error("This is the cause of LiffError described below.", t.cause), new h$6(n, r || "", t || {});
820
820
  }
821
821
  function m$6(n) {
822
822
  var r = n.match(/([^-]+)-[^-]+/);
@@ -828,7 +828,7 @@ function y$4(n) {
828
828
  r += String.fromCharCode(parseInt(n));
829
829
  }), window.btoa(r);
830
830
  }
831
- var b$6 = function() {
831
+ var b$3 = function() {
832
832
  function n() {
833
833
  this.map = {};
834
834
  }
@@ -874,12 +874,12 @@ var R$4, A$3 = {
874
874
  }).join("&") : e(t);
875
875
  }).join("&");
876
876
  }
877
- }, I$5 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
877
+ }, I$4 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
878
878
  function U$3() {
879
879
  return window.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296;
880
880
  }
881
881
  function x$4(n) {
882
- for(var r = "", t = 0; t < n; t++)r += I$5[Math.floor(U$3() * I$5.length)];
882
+ for(var r = "", t = 0; t < n; t++)r += I$4[Math.floor(U$3() * I$4.length)];
883
883
  return r;
884
884
  }
885
885
  function C$4(n) {
@@ -890,9 +890,9 @@ function C$4(n) {
890
890
  }).join("&");
891
891
  return r.hash = t, r.toString();
892
892
  }
893
- function L$3(n) {
893
+ function L$4(n) {
894
894
  var r = new URL(n);
895
- return r.toString().replace(new RegExp(String.raw(O$2 || (O$2 = __makeTemplateObject([
895
+ return r.toString().replace(new RegExp(String.raw(O$3 || (O$3 = __makeTemplateObject([
896
896
  "^",
897
897
  ""
898
898
  ], [
@@ -901,10 +901,13 @@ function L$3(n) {
901
901
  ])), r.origin)), "");
902
902
  }
903
903
  var j$1 = function j(n) {
904
- var r = L$3(C$4(n));
905
- window.history.replaceState(history.state, "", r);
904
+ var r = C$4(n);
905
+ if (r !== n) {
906
+ var t = L$4(r);
907
+ window.history.replaceState(history.state, "", t);
908
+ }
906
909
  };
907
- function E$3(n, r) {
910
+ function E$4(n, r) {
908
911
  if (!n) throw new Error("addParamsToUrl: invalid URL");
909
912
  var e = new URL(n);
910
913
  return Object.entries(r).forEach(function(n) {
@@ -912,16 +915,16 @@ function E$3(n, r) {
912
915
  e.searchParams.set(_$o, _$i);
913
916
  }), e.toString();
914
917
  }
915
- var O$2, S$4 = ((R$4 = {})[s$8] = function S() {
918
+ var O$3, S$5 = ((R$4 = {})[s$8] = function S() {
916
919
  var n = $$2(s$8);
917
920
  return new RegExp("^".concat(n, "(\\d+-\\w+)"));
918
921
  }, R$4[a$7] = function() {
919
922
  var n = $$2(a$7);
920
923
  return new RegExp("^".concat(n, "((\\d+-\\w+)|(\\w+$))"));
921
924
  }, R$4);
922
- function k(n) {
923
- for(var r in S$4){
924
- var t = n.match(S$4[r]());
925
+ function k$1(n) {
926
+ for(var r in S$5){
927
+ var t = n.match(S$5[r]());
925
928
  if (t) return t[1];
926
929
  }
927
930
  return null;
@@ -929,7 +932,7 @@ function k(n) {
929
932
  function $$2(n) {
930
933
  return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
931
934
  }
932
- function T$2(n) {
935
+ function T$3(n) {
933
936
  var r = n.match(/^(https?:\/\/.*?)\//);
934
937
  return r && r[1] || "";
935
938
  }
@@ -942,7 +945,7 @@ function P$4(n) {
942
945
  function W$1(n) {
943
946
  return void 0 === n && (n = window.navigator.userAgent), /Line\/\d+\.\d+\.\d+/.test(n);
944
947
  }
945
- function B$1(n) {
948
+ function B$2(n) {
946
949
  return void 0 === n && (n = window.navigator.userAgent), /Line\/\d+\.\d+\.\d+ LIFF/.test(n);
947
950
  }
948
951
  function G$2(n) {
@@ -952,9 +955,9 @@ var J$1 = function J() {
952
955
  return "undefined" == typeof window;
953
956
  };
954
957
 
955
- var c$9 = null;
956
- function u$8() {
957
- return null === c$9 && (c$9 = B$1() || W$1() && /[#|&]access_token=/.test(location.hash) || "1" === sessionStorage.getItem("".concat(l$9, ":").concat(r$6)), sessionStorage.setItem("".concat(l$9, ":").concat(r$6), c$9 ? "1" : "0")), !!c$9;
958
+ var c$8 = null;
959
+ function u$7() {
960
+ return null === c$8 && (c$8 = B$2() || W$1() && /[#|&]access_token=/.test(location.hash) || "1" === sessionStorage.getItem("".concat(l$a, ":").concat(r$6)), sessionStorage.setItem("".concat(l$a, ":").concat(r$6), c$8 ? "1" : "0")), !!c$8;
958
961
  }
959
962
  (function(n) {
960
963
  function o() {
@@ -968,40 +971,40 @@ function u$8() {
968
971
  configurable: !0
969
972
  }), o.prototype.install = function() {
970
973
  return function() {
971
- return u$8();
974
+ return u$7();
972
975
  };
973
976
  }, o;
974
977
  })(a$8);
975
978
 
976
- function c$8() {
979
+ function c$7() {
977
980
  var n;
978
981
  return null !== (n = window.__liffConfig) && void 0 !== n ? n : {};
979
982
  }
980
- function l$7(n) {
983
+ function l$8(n) {
981
984
  window.__liffConfig = n;
982
985
  }
983
986
  function a$6(n, t) {
984
- if (!t) throw w$5(n$2, "liffId is necessary for liff.init()");
985
- var o = (u$8() ? sessionStorage : localStorage).getItem("".concat(l$9, ":").concat(t, ":").concat(n));
987
+ if (!t) throw w$6(n$2, "liffId is necessary for liff.init()");
988
+ var o = (u$7() ? sessionStorage : localStorage).getItem("".concat(l$a, ":").concat(t, ":").concat(n));
986
989
  try {
987
990
  return null === o ? null : JSON.parse(o);
988
991
  } catch (f) {
989
992
  return null;
990
993
  }
991
994
  }
992
- function p$9(n) {
993
- return a$6(n, c$8().liffId);
995
+ function p$8(n) {
996
+ return a$6(n, c$7().liffId);
994
997
  }
995
998
  function s$6(n, t) {
996
- var o = c$8().liffId;
997
- if (!o) throw w$5(n$2, "liffId is necessary for liff.init()");
998
- (u$8() ? sessionStorage : localStorage).setItem("".concat(l$9, ":").concat(o, ":").concat(n), JSON.stringify(t));
999
+ var o = c$7().liffId;
1000
+ if (!o) throw w$6(n$2, "liffId is necessary for liff.init()");
1001
+ (u$7() ? sessionStorage : localStorage).setItem("".concat(l$a, ":").concat(o, ":").concat(n), JSON.stringify(t));
999
1002
  }
1000
- function E$2() {
1001
- return p$9(c$b.CONTEXT);
1003
+ function E$3() {
1004
+ return p$8(c$a.CONTEXT);
1002
1005
  }
1003
- function I$4(n) {
1004
- s$6(c$b.CONTEXT, n);
1006
+ function I$3(n) {
1007
+ s$6(c$a.CONTEXT, n);
1005
1008
  }
1006
1009
  (function(t) {
1007
1010
  function r() {
@@ -1015,12 +1018,12 @@ function I$4(n) {
1015
1018
  configurable: !0
1016
1019
  }), r.prototype.install = function() {
1017
1020
  return function() {
1018
- return E$2();
1021
+ return E$3();
1019
1022
  };
1020
1023
  }, r;
1021
1024
  })(a$8);
1022
1025
  function y$3() {
1023
- return ((E$2() || {}).d || {}).aId;
1026
+ return ((E$3() || {}).d || {}).aId;
1024
1027
  }
1025
1028
  (function(t) {
1026
1029
  function r() {
@@ -1038,8 +1041,8 @@ function y$3() {
1038
1041
  };
1039
1042
  }, r;
1040
1043
  })(a$8);
1041
- function _$3() {
1042
- return ((E$2() || {}).d || {}).autoplay || !1;
1044
+ function _$2() {
1045
+ return ((E$3() || {}).d || {}).autoplay || !1;
1043
1046
  }
1044
1047
  (function(t) {
1045
1048
  function r() {
@@ -1053,12 +1056,12 @@ function _$3() {
1053
1056
  configurable: !0
1054
1057
  }), r.prototype.install = function() {
1055
1058
  return function() {
1056
- return _$3();
1059
+ return _$2();
1057
1060
  };
1058
1061
  }, r;
1059
1062
  })(a$8);
1060
- function S$3() {
1061
- return (E$2() || {}).profilePlus;
1063
+ function S$4() {
1064
+ return (E$3() || {}).profilePlus;
1062
1065
  }
1063
1066
  (function(t) {
1064
1067
  function r() {
@@ -1072,66 +1075,66 @@ function S$3() {
1072
1075
  configurable: !0
1073
1076
  }), r.prototype.install = function() {
1074
1077
  return function() {
1075
- return S$3();
1078
+ return S$4();
1076
1079
  };
1077
1080
  }, r;
1078
1081
  })(a$8);
1079
- function O$1() {
1080
- return Boolean(p$9(c$b.IS_SUBSEQUENT_LIFF_APP));
1082
+ function O$2() {
1083
+ return Boolean(p$8(c$a.IS_SUBSEQUENT_LIFF_APP));
1081
1084
  }
1082
1085
  function P$3(n) {
1083
- s$6(c$b.IS_SUBSEQUENT_LIFF_APP, n);
1086
+ s$6(c$a.IS_SUBSEQUENT_LIFF_APP, n);
1084
1087
  }
1085
- function b$5() {
1086
- return p$9(c$b.APP_DATA);
1088
+ function b$2() {
1089
+ return p$8(c$a.APP_DATA);
1087
1090
  }
1088
1091
  function N$1(n) {
1089
- s$6(c$b.APP_DATA, n);
1092
+ s$6(c$a.APP_DATA, n);
1090
1093
  }
1091
- function h$3() {
1092
- return p$9(c$b.MST_VERIFIER);
1094
+ function h$5() {
1095
+ return p$8(c$a.MST_VERIFIER);
1093
1096
  }
1094
1097
  function A$2(n) {
1095
- s$6(c$b.MST_VERIFIER, n);
1098
+ s$6(c$a.MST_VERIFIER, n);
1096
1099
  }
1097
- function v$4() {
1098
- return p$9(c$b.MSIT);
1100
+ function v$3() {
1101
+ return p$8(c$a.MSIT);
1099
1102
  }
1100
1103
  function C$3(n) {
1101
- s$6(c$b.MSIT, n);
1104
+ s$6(c$a.MSIT, n);
1102
1105
  }
1103
1106
  function D() {
1104
- return p$9(c$b.MST);
1107
+ return p$8(c$a.MST);
1105
1108
  }
1106
- function L$2(n) {
1107
- s$6(c$b.MST, n);
1109
+ function L$3(n) {
1110
+ s$6(c$a.MST, n);
1108
1111
  }
1109
1112
  function M() {
1110
- return p$9(c$b.MST_CHALLENGE);
1113
+ return p$8(c$a.MST_CHALLENGE);
1111
1114
  }
1112
1115
  function R$3(n) {
1113
- s$6(c$b.MST_CHALLENGE, n);
1116
+ s$6(c$a.MST_CHALLENGE, n);
1114
1117
  }
1115
1118
  function j() {
1116
- return p$9(c$b.CLIENT_ID);
1119
+ return p$8(c$a.CLIENT_ID);
1117
1120
  }
1118
1121
  function F$1(n) {
1119
- s$6(c$b.CLIENT_ID, n);
1122
+ s$6(c$a.CLIENT_ID, n);
1120
1123
  }
1121
1124
  function K() {
1122
- return p$9(c$b.RAW_CONTEXT);
1125
+ return p$8(c$a.RAW_CONTEXT);
1123
1126
  }
1124
- function w$4() {
1125
- return p$9(c$b.FEATURE_TOKEN);
1127
+ function w$5() {
1128
+ return p$8(c$a.FEATURE_TOKEN);
1126
1129
  }
1127
1130
  function U$2(n) {
1128
- s$6(c$b.FEATURE_TOKEN, n);
1131
+ s$6(c$a.FEATURE_TOKEN, n);
1129
1132
  }
1130
1133
  function X$1() {
1131
- return p$9(c$b.ID_TOKEN);
1134
+ return p$8(c$a.ID_TOKEN);
1132
1135
  }
1133
1136
  function G$1(n) {
1134
- s$6(c$b.ID_TOKEN, n);
1137
+ s$6(c$a.ID_TOKEN, n);
1135
1138
  }
1136
1139
  (function(t) {
1137
1140
  function r() {
@@ -1150,10 +1153,10 @@ function G$1(n) {
1150
1153
  }, r;
1151
1154
  })(a$8);
1152
1155
  function x$3() {
1153
- return p$9(c$b.ACCESS_TOKEN);
1156
+ return p$8(c$a.ACCESS_TOKEN);
1154
1157
  }
1155
- function B(n) {
1156
- s$6(c$b.ACCESS_TOKEN, n);
1158
+ function B$1(n) {
1159
+ s$6(c$a.ACCESS_TOKEN, n);
1157
1160
  }
1158
1161
  (function(t) {
1159
1162
  function r() {
@@ -1171,43 +1174,43 @@ function B(n) {
1171
1174
  };
1172
1175
  }, r;
1173
1176
  })(a$8);
1174
- function H$2(n) {
1175
- var _$t = c$8().liffId;
1176
- if (!_$t) throw w$5(n$2, "liffId is necessary for liff.init()");
1177
- (u$8() ? sessionStorage : localStorage).removeItem("".concat(l$9, ":").concat(_$t, ":").concat(n));
1177
+ function H$3(n) {
1178
+ var _$t = c$7().liffId;
1179
+ if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
1180
+ (u$7() ? sessionStorage : localStorage).removeItem("".concat(l$a, ":").concat(_$t, ":").concat(n));
1178
1181
  }
1179
1182
  function J() {
1180
- return p$9(c$b.LOGIN_TMP);
1183
+ return p$8(c$a.LOGIN_TMP);
1181
1184
  }
1182
1185
  function Q$1(n) {
1183
- s$6(c$b.LOGIN_TMP, n);
1186
+ s$6(c$a.LOGIN_TMP, n);
1184
1187
  }
1185
1188
  function W() {
1186
- H$2(c$b.LOGIN_TMP);
1189
+ H$3(c$a.LOGIN_TMP);
1187
1190
  }
1188
1191
  function q$2(n) {
1189
- var _$t = c$8();
1190
- v$5.set("".concat(l$9, ":").concat(c$b.EXPIRES, ":").concat(_$t.liffId), n.getTime(), {
1192
+ var _$t = c$7();
1193
+ v$4.set("".concat(l$a, ":").concat(c$a.EXPIRES, ":").concat(_$t.liffId), n.getTime(), {
1191
1194
  expires: n.toUTCString(),
1192
1195
  path: "/",
1193
1196
  secure: null
1194
1197
  });
1195
1198
  }
1196
1199
  function z$2() {
1197
- var n = c$8();
1198
- return v$5.get("".concat(l$9, ":").concat(c$b.EXPIRES, ":").concat(n.liffId));
1200
+ var n = c$7();
1201
+ return v$4.get("".concat(l$a, ":").concat(c$a.EXPIRES, ":").concat(n.liffId));
1199
1202
  }
1200
1203
  function Y$1() {
1201
- var n = c$8();
1202
- v$5.remove("".concat(l$9, ":").concat(c$b.EXPIRES, ":").concat(n.liffId), {
1204
+ var n = c$7();
1205
+ v$4.remove("".concat(l$a, ":").concat(c$a.EXPIRES, ":").concat(n.liffId), {
1203
1206
  path: "/"
1204
1207
  });
1205
1208
  }
1206
1209
  function Z$1() {
1207
- return p$9(c$b.DECODED_ID_TOKEN);
1210
+ return p$8(c$a.DECODED_ID_TOKEN);
1208
1211
  }
1209
1212
  function $$1(n) {
1210
- s$6(c$b.DECODED_ID_TOKEN, n);
1213
+ s$6(c$a.DECODED_ID_TOKEN, n);
1211
1214
  }
1212
1215
  (function(t) {
1213
1216
  function r() {
@@ -1226,12 +1229,12 @@ function $$1(n) {
1226
1229
  }, r;
1227
1230
  })(a$8);
1228
1231
  function tn() {
1229
- Object.keys(c$b).forEach(function(n) {
1230
- H$2(c$b[n]);
1232
+ Object.keys(c$a).forEach(function(n) {
1233
+ H$3(c$a[n]);
1231
1234
  }), Y$1();
1232
1235
  }
1233
1236
 
1234
- function e$2() {
1237
+ function e$3() {
1235
1238
  return !!x$3();
1236
1239
  }
1237
1240
  (function(r) {
@@ -1246,13 +1249,13 @@ function e$2() {
1246
1249
  configurable: !0
1247
1250
  }), n.prototype.install = function() {
1248
1251
  return function() {
1249
- return e$2();
1252
+ return e$3();
1250
1253
  };
1251
1254
  }, n;
1252
1255
  })(a$8);
1253
1256
 
1254
1257
  function r$5() {
1255
- return "2.26.0";
1258
+ return "2.27.1";
1256
1259
  }
1257
1260
  (function(n) {
1258
1261
  function r() {
@@ -1266,7 +1269,7 @@ function r$5() {
1266
1269
  configurable: !0
1267
1270
  }), r.prototype.install = function() {
1268
1271
  return function() {
1269
- return "2.26.0";
1272
+ return "2.27.1";
1270
1273
  };
1271
1274
  }, r;
1272
1275
  })(a$8);
@@ -1276,7 +1279,7 @@ var a$5 = function() {
1276
1279
  return t.prototype.invoke = function() {
1277
1280
  return G$2();
1278
1281
  }, t;
1279
- }(), l$6 = function() {
1282
+ }(), l$7 = function() {
1280
1283
  function t(t) {
1281
1284
  this.storage = t;
1282
1285
  }
@@ -1287,28 +1290,28 @@ var a$5 = function() {
1287
1290
  enumerable: !1,
1288
1291
  configurable: !0
1289
1292
  }), t.prototype.invoke = function() {
1290
- return new URLSearchParams(window.location.search).has(L$4) && this.setInSubWindow(!0), !(!this.getInSubWindow() && !this.getSubWindowIdentifier());
1293
+ return new URLSearchParams(window.location.search).has(L$5) && this.setInSubWindow(!0), !(!this.getInSubWindow() && !this.getSubWindowIdentifier());
1291
1294
  }, t.prototype.getInSubWindow = function() {
1292
- var n = this.storage.getItem("".concat(l$9, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY));
1295
+ var n = this.storage.getItem("".concat(l$a, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY));
1293
1296
  return null !== n && JSON.parse(n);
1294
1297
  }, t.prototype.getSubWindowIdentifier = function() {
1295
1298
  var _$t, n, i = "liff.subwindow.identifier", e = new URLSearchParams(window.location.search);
1296
1299
  return e.get(i) || (_$t = i, (n = e.get("liff.state")) ? new URLSearchParams(n).get(_$t) : null) || null;
1297
1300
  }, t.prototype.setInSubWindow = function(n) {
1298
- this.storage.setItem("".concat(l$9, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY), String(n));
1301
+ this.storage.setItem("".concat(l$a, ":").concat(this.getLiffId(), ":").concat(t.IN_SUB_WINDOW_KEY), String(n));
1299
1302
  }, t.prototype.getLiffId = function() {
1300
- var _$t = c$8().liffId;
1301
- if (!_$t) throw w$5(n$2, "liffId is necessary for liff.init()");
1303
+ var _$t = c$7().liffId;
1304
+ if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
1302
1305
  return _$t;
1303
1306
  }, t;
1304
- }(), p$8 = function(n) {
1307
+ }(), p$7 = function(n) {
1305
1308
  function i() {
1306
1309
  var _$t = n.call(this) || this;
1307
1310
  return J$1() ? _$t.impl = {
1308
1311
  invoke: function invoke() {
1309
1312
  return !1;
1310
1313
  }
1311
- } : u$8() ? _$t.impl = new a$5 : _$t.impl = new l$6(window.sessionStorage), _$t;
1314
+ } : u$7() ? _$t.impl = new a$5 : _$t.impl = new l$7(window.sessionStorage), _$t;
1312
1315
  }
1313
1316
  return __extends(i, n), Object.defineProperty(i.prototype, "name", {
1314
1317
  get: function get() {
@@ -1319,7 +1322,7 @@ var a$5 = function() {
1319
1322
  }), i.prototype.install = function() {
1320
1323
  return this.impl.invoke.bind(this.impl);
1321
1324
  }, i;
1322
- }(a$8), m$5 = new p$8, d$4 = m$5.install();
1325
+ }(a$8), m$5 = new p$7, d$4 = m$5.install();
1323
1326
 
1324
1327
  function r$4() {
1325
1328
  var n = navigator.userAgent.match(/Line\/\d+(\.\d+)*/i);
@@ -1343,7 +1346,7 @@ function r$4() {
1343
1346
  })(a$8);
1344
1347
 
1345
1348
  var r$3;
1346
- function e$1() {
1349
+ function e$2() {
1347
1350
  if (!r$3) {
1348
1351
  var t = window.navigator.userAgent.toLowerCase();
1349
1352
  r$3 = /iphone|ipad|ipod/.test(t) ? "ios" : /android/.test(t) ? "android" : "web";
@@ -1362,71 +1365,71 @@ function e$1() {
1362
1365
  configurable: !0
1363
1366
  }), r.prototype.install = function() {
1364
1367
  return function() {
1365
- return e$1();
1368
+ return e$2();
1366
1369
  };
1367
1370
  }, r;
1368
1371
  })(a$8);
1369
1372
 
1370
- function b$4(e) {
1371
- var r, n = E$2();
1373
+ function g$3(e) {
1374
+ var r, n = E$3();
1372
1375
  return null === (r = null == n ? void 0 : n.availability) || void 0 === r ? void 0 : r[e];
1373
1376
  }
1374
- function v$3(e, n, a) {
1375
- var _$i = b$4(e), t = a || e;
1376
- if (!_$i) return {
1377
+ function h$4(e, r, n) {
1378
+ var i = g$3(e), o = n || e;
1379
+ if (!i) return {
1377
1380
  available: !1,
1378
1381
  error: {
1379
- code: E$4,
1380
- message: "".concat(t, " is not allowed in this LIFF app")
1382
+ code: E$5,
1383
+ message: "".concat(o, " is not allowed in this LIFF app")
1381
1384
  }
1382
1385
  };
1383
- var l = _$i.minVer, c = _$i.unsupportedFromVer, s = !l || function(e, r) {
1386
+ var _$t = i.minVer, c = i.unsupportedFromVer, s = !_$t || function(e, r) {
1384
1387
  var _$n = r$4();
1385
1388
  return !!_$n && !(r && f$8(_$n, r) > 0) && f$8(_$n, e) >= 0;
1386
- }(l, c), d = u$8();
1389
+ }(_$t, c), d = u$7();
1387
1390
  return d && !s ? {
1388
1391
  available: !1,
1389
1392
  error: {
1390
- code: E$4,
1391
- message: "".concat(t, " is unavailable in this client version.")
1393
+ code: E$5,
1394
+ message: "".concat(o, " is unavailable in this client version.")
1392
1395
  }
1393
- } : _$i.permission ? d && s || n ? {
1396
+ } : i.permission ? d && s || r ? {
1394
1397
  available: !0
1395
1398
  } : {
1396
1399
  available: !1,
1397
1400
  error: {
1398
- code: E$4,
1399
- message: "".concat(t, " is not allowed in external browser")
1401
+ code: E$5,
1402
+ message: "".concat(o, " is not allowed in external browser")
1400
1403
  }
1401
1404
  } : {
1402
1405
  available: !1,
1403
1406
  error: {
1404
- code: E$4,
1405
- message: "".concat(t, " is not allowed in this LIFF app")
1407
+ code: E$5,
1408
+ message: "".concat(o, " is not allowed in this LIFF app")
1406
1409
  }
1407
1410
  };
1408
1411
  }
1409
- var g$4 = function g() {
1410
- return e$2() ? !B$1() && W$1() ? {
1412
+ var w$4 = function w() {
1413
+ return e$3() ? !B$2() && W$1() ? {
1411
1414
  available: !1,
1412
1415
  error: {
1413
- code: E$4,
1416
+ code: E$5,
1414
1417
  message: "Subwindow is not supported in this browser"
1415
1418
  }
1416
1419
  } : d$4() ? {
1417
1420
  available: !1,
1418
1421
  error: {
1419
- code: E$4,
1422
+ code: E$5,
1420
1423
  message: "this api can be only called in parent window"
1421
1424
  }
1422
- } : v$3("subwindowOpen", !0) : {
1425
+ } : h$4("subwindowOpen", !0) : {
1423
1426
  available: !1,
1424
1427
  error: {
1425
1428
  code: t,
1426
1429
  message: "Need access_token for api call, Please login first"
1427
1430
  }
1428
1431
  };
1429
- }, h$2 = [
1432
+ }, S$3 = [
1430
1433
  "subwindowOpen",
1431
1434
  "shareTargetPicker",
1432
1435
  "multipleLiffTransition",
@@ -1439,24 +1442,24 @@ var g$4 = function g() {
1439
1442
  "createShortcutOnHomeScreen",
1440
1443
  "internalCreateShortcutOnHomeScreen",
1441
1444
  "iap"
1442
- ], w$3 = {
1445
+ ], C$2 = {
1443
1446
  scanCode: function scanCode() {
1444
- return v$3("scanCode");
1447
+ return h$4("scanCode");
1445
1448
  },
1446
1449
  getAdvertisingId: function getAdvertisingId() {
1447
- return v$3("getAdvertisingId");
1450
+ return h$4("getAdvertisingId");
1448
1451
  },
1449
1452
  bluetoothLeFunction: function bluetoothLeFunction() {
1450
- return v$3("bluetoothLeFunction");
1453
+ return h$4("bluetoothLeFunction");
1451
1454
  },
1452
1455
  shareTargetPicker: function shareTargetPicker() {
1453
1456
  return d$4() ? {
1454
1457
  available: !1,
1455
1458
  error: {
1456
- code: E$4,
1459
+ code: E$5,
1457
1460
  message: "this api can be only called in parent window"
1458
1461
  }
1459
- } : e$2() ? v$3("shareTargetPicker", !0) : {
1462
+ } : e$3() ? h$4("shareTargetPicker", !0) : {
1460
1463
  available: !1,
1461
1464
  error: {
1462
1465
  code: t,
@@ -1465,56 +1468,56 @@ var g$4 = function g() {
1465
1468
  };
1466
1469
  },
1467
1470
  multipleLiffTransition: function multipleLiffTransition() {
1468
- var e = b$4("multipleLiffTransition");
1469
- return e && e.permission ? u$8() ? {
1471
+ var e = g$3("multipleLiffTransition");
1472
+ return e && e.permission ? u$7() ? {
1470
1473
  available: !0
1471
1474
  } : {
1472
1475
  available: !1,
1473
1476
  error: {
1474
- code: E$4,
1477
+ code: E$5,
1475
1478
  message: "multipleLiffTransition is available only in the LINE App browser"
1476
1479
  }
1477
1480
  } : {
1478
1481
  available: !1,
1479
1482
  error: {
1480
- code: E$4,
1483
+ code: E$5,
1481
1484
  message: "multipleLiffTransition is not allowed in this LIFF app"
1482
1485
  }
1483
1486
  };
1484
1487
  },
1485
- subwindowOpen: g$4,
1488
+ subwindowOpen: w$4,
1486
1489
  scanCodeV2: function scanCodeV2() {
1487
- if (!e$2()) return {
1490
+ if (!e$3()) return {
1488
1491
  available: !1,
1489
1492
  error: {
1490
1493
  code: t,
1491
1494
  message: "Need access_token for api call, Please login first"
1492
1495
  }
1493
1496
  };
1494
- var e = g$4();
1495
- return e.available ? v$3("scanCodeV2", !0) : e;
1497
+ var e = w$4();
1498
+ return e.available ? h$4("scanCodeV2", !0) : e;
1496
1499
  },
1497
1500
  addToHomeScreen: function addToHomeScreen() {
1498
1501
  return d$4() ? {
1499
1502
  available: !1,
1500
1503
  error: {
1501
- code: E$4,
1504
+ code: E$5,
1502
1505
  message: "this api can be only called in parent window"
1503
1506
  }
1504
- } : v$3("addToHomeScreen");
1507
+ } : h$4("addToHomeScreen");
1505
1508
  },
1506
1509
  skipChannelVerificationScreen: function skipChannelVerificationScreen() {
1507
- var e = E$2();
1510
+ var e = E$3();
1508
1511
  return e ? "square_chat" === e.type ? {
1509
1512
  available: !1,
1510
1513
  error: {
1511
- code: E$4,
1514
+ code: E$5,
1512
1515
  message: "skipChannelVerificationScreen is not allowed in OpenChat"
1513
1516
  }
1514
- } : v$3("skipChannelVerificationScreen") : {
1517
+ } : h$4("skipChannelVerificationScreen") : {
1515
1518
  available: !1,
1516
1519
  error: {
1517
- code: E$4,
1520
+ code: E$5,
1518
1521
  message: "Context is not found"
1519
1522
  }
1520
1523
  };
@@ -1523,60 +1526,60 @@ var g$4 = function g() {
1523
1526
  if (d$4()) return {
1524
1527
  available: !1,
1525
1528
  error: {
1526
- code: E$4,
1529
+ code: E$5,
1527
1530
  message: "this api can be only called in parent window"
1528
1531
  }
1529
1532
  };
1530
- if (!e$2()) return {
1533
+ if (!e$3()) return {
1531
1534
  available: !1,
1532
1535
  error: {
1533
1536
  code: t,
1534
1537
  message: "Need access_token for api call, Please login first"
1535
1538
  }
1536
1539
  };
1537
- var e = e$1();
1540
+ var e = e$2();
1538
1541
  return "android" !== e && "ios" !== e ? {
1539
1542
  available: !1,
1540
1543
  error: {
1541
- code: E$4,
1544
+ code: E$5,
1542
1545
  message: "this api can be only called in mobile device"
1543
1546
  }
1544
- } : v$3("addToHomeV2", !0, "createShortcutOnHomeScreen");
1547
+ } : h$4("addToHomeV2", !0, "createShortcutOnHomeScreen");
1545
1548
  },
1546
1549
  internalCreateShortcutOnHomeScreen: function internalCreateShortcutOnHomeScreen() {
1547
1550
  if (d$4()) return {
1548
1551
  available: !1,
1549
1552
  error: {
1550
- code: E$4,
1553
+ code: E$5,
1551
1554
  message: "this api can be only called in parent window"
1552
1555
  }
1553
1556
  };
1554
- if (!e$2()) return {
1557
+ if (!e$3()) return {
1555
1558
  available: !1,
1556
1559
  error: {
1557
1560
  code: t,
1558
1561
  message: "Need access_token for api call, Please login first"
1559
1562
  }
1560
1563
  };
1561
- var e = e$1();
1564
+ var e = e$2();
1562
1565
  if ("android" !== e && "ios" !== e) return {
1563
1566
  available: !1,
1564
1567
  error: {
1565
- code: E$4,
1568
+ code: E$5,
1566
1569
  message: "this api can be only called in mobile device"
1567
1570
  }
1568
1571
  };
1569
- var a = v$3("addToHomeV2", !0, "internalCreateShortcutOnHomeScreen");
1570
- return a.available ? v$3("addToHomeLineScheme", !0, "internalCreateShortcutOnHomeScreen") : a;
1572
+ var r = h$4("addToHomeV2", !0, "internalCreateShortcutOnHomeScreen");
1573
+ return r.available ? h$4("addToHomeLineScheme", !0, "internalCreateShortcutOnHomeScreen") : r;
1571
1574
  },
1572
1575
  iap: function iap() {
1573
- return u$8() ? e$2() ? d$4() ? {
1576
+ return u$7() ? e$3() ? d$4() ? {
1574
1577
  available: !1,
1575
1578
  error: {
1576
- code: E$4,
1579
+ code: E$5,
1577
1580
  message: "this api can be only called in parent window"
1578
1581
  }
1579
- } : v$3("iap", !1, "In-App Purchase") : {
1582
+ } : h$4("iap", !1, "In-App Purchase") : {
1580
1583
  available: !1,
1581
1584
  error: {
1582
1585
  code: t,
@@ -1585,61 +1588,61 @@ var g$4 = function g() {
1585
1588
  } : {
1586
1589
  available: !1,
1587
1590
  error: {
1588
- code: E$4,
1591
+ code: E$5,
1589
1592
  message: "In-App Purchase is not allowed in external browser"
1590
1593
  }
1591
1594
  };
1592
1595
  }
1593
- }, S$2 = function S(e) {
1596
+ }, T$2 = function T(e) {
1594
1597
  return function() {
1595
1598
  var r = e();
1596
- if (!r.available) throw w$5(r.error.code, r.error.message);
1599
+ if (!r.available) throw w$6(r.error.code, r.error.message);
1597
1600
  };
1598
- }, C$2 = {
1599
- scanCode: S$2(w$3.scanCode),
1600
- getAdvertisingId: S$2(w$3.getAdvertisingId),
1601
- bluetoothLeFunction: S$2(w$3.bluetoothLeFunction),
1602
- shareTargetPicker: S$2(w$3.shareTargetPicker),
1603
- multipleLiffTransition: S$2(w$3.multipleLiffTransition),
1604
- subwindowOpen: S$2(w$3.subwindowOpen),
1605
- scanCodeV2: S$2(w$3.scanCodeV2),
1606
- addToHomeScreen: S$2(w$3.addToHomeScreen),
1607
- skipChannelVerificationScreen: S$2(w$3.skipChannelVerificationScreen),
1608
- createShortcutOnHomeScreen: S$2(w$3.createShortcutOnHomeScreen),
1609
- internalCreateShortcutOnHomeScreen: S$2(w$3.internalCreateShortcutOnHomeScreen),
1610
- iap: S$2(w$3.iap)
1601
+ }, H$2 = {
1602
+ scanCode: T$2(C$2.scanCode),
1603
+ getAdvertisingId: T$2(C$2.getAdvertisingId),
1604
+ bluetoothLeFunction: T$2(C$2.bluetoothLeFunction),
1605
+ shareTargetPicker: T$2(C$2.shareTargetPicker),
1606
+ multipleLiffTransition: T$2(C$2.multipleLiffTransition),
1607
+ subwindowOpen: T$2(C$2.subwindowOpen),
1608
+ scanCodeV2: T$2(C$2.scanCodeV2),
1609
+ addToHomeScreen: T$2(C$2.addToHomeScreen),
1610
+ skipChannelVerificationScreen: T$2(C$2.skipChannelVerificationScreen),
1611
+ createShortcutOnHomeScreen: T$2(C$2.createShortcutOnHomeScreen),
1612
+ internalCreateShortcutOnHomeScreen: T$2(C$2.internalCreateShortcutOnHomeScreen),
1613
+ iap: T$2(C$2.iap)
1611
1614
  };
1612
- function T$1(e) {
1615
+ function k(e) {
1613
1616
  if (!function(e) {
1614
- return h$2.some(function(r) {
1617
+ return S$3.some(function(r) {
1615
1618
  return r === e;
1616
1619
  });
1617
- }(e)) throw w$5(i$1, "Unexpected API name.");
1618
- var r = w$3[e];
1620
+ }(e)) throw w$6(i$1, "Unexpected API name.");
1621
+ var r = C$2[e];
1619
1622
  return !r || r().available;
1620
1623
  }
1621
- (function(r) {
1622
- function n() {
1623
- var _$e = null !== r && r.apply(this, arguments) || this;
1624
+ (function(a) {
1625
+ function i() {
1626
+ var _$e = a.apply(this, __spreadArray([], __read(arguments), !1)) || this;
1624
1627
  return _$e.hooks = {}, _$e;
1625
1628
  }
1626
- return __extends(n, r), Object.defineProperty(n.prototype, "name", {
1629
+ return __extends(i, a), Object.defineProperty(i.prototype, "name", {
1627
1630
  get: function get() {
1628
1631
  return "isApiAvailable";
1629
1632
  },
1630
1633
  enumerable: !1,
1631
1634
  configurable: !0
1632
- }), n.prototype.install = function() {
1635
+ }), i.prototype.install = function() {
1633
1636
  return function(e) {
1634
- return T$1(e);
1637
+ return k(e);
1635
1638
  };
1636
- }, n;
1639
+ }, i;
1637
1640
  })(a$8);
1638
1641
 
1639
- var e = function() {
1642
+ var e$1 = function() {
1640
1643
  function t() {}
1641
1644
  return t.prototype.invoke = function(t) {
1642
- var i = C$2[t];
1645
+ var i = H$2[t];
1643
1646
  return !!i && (i(), !0);
1644
1647
  }, t;
1645
1648
  }(), r$2 = function() {
@@ -1649,9 +1652,9 @@ var e = function() {
1649
1652
  return t.prototype.invoke = function(t) {
1650
1653
  return this.liff.checkFeature(t);
1651
1654
  }, t;
1652
- }(), o$3 = function() {
1655
+ }(), o$2 = function() {
1653
1656
  function n(o) {
1654
- f$8(r$5(), n.SDK_VERSION_SUPPORTING_NEW) >= 0 ? this.impl = new e : this.impl = new r$2(o);
1657
+ f$8(r$5(), n.SDK_VERSION_SUPPORTING_NEW) >= 0 ? this.impl = new e$1 : this.impl = new r$2(o);
1655
1658
  }
1656
1659
  return Object.defineProperty(n, "SDK_VERSION_SUPPORTING_NEW", {
1657
1660
  get: function get() {
@@ -1671,16 +1674,16 @@ function _instanceof$2(left, right) {
1671
1674
  return left instanceof right;
1672
1675
  }
1673
1676
  }
1674
- var c$7 = function c1(t, n) {
1675
- return c$7 = Object.setPrototypeOf || _instanceof$2({
1677
+ var c$6 = function c1(t, n) {
1678
+ return c$6 = Object.setPrototypeOf || _instanceof$2({
1676
1679
  __proto__: []
1677
1680
  }, Array) && function(t, n) {
1678
1681
  t.__proto__ = n;
1679
1682
  } || function(t, n) {
1680
1683
  for(var e in n)Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
1681
- }, c$7(t, n);
1684
+ }, c$6(t, n);
1682
1685
  };
1683
- function u$7(t, n, e, o) {
1686
+ function u$6(t, n, e, o) {
1684
1687
  return new (e || (e = Promise))(function(r, i) {
1685
1688
  function c(t) {
1686
1689
  try {
@@ -1705,7 +1708,7 @@ function u$7(t, n, e, o) {
1705
1708
  l((o = o.apply(t, n || [])).next());
1706
1709
  });
1707
1710
  }
1708
- function l$5(t, n) {
1711
+ function l$6(t, n) {
1709
1712
  var e, o, r, _$i, c = {
1710
1713
  label: 0,
1711
1714
  sent: function sent() {
@@ -1801,7 +1804,7 @@ var s$5 = !1, a$4 = function a() {
1801
1804
  function e() {
1802
1805
  this.constructor = t;
1803
1806
  }
1804
- c$7(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e);
1807
+ c$6(t, n), t.prototype = null === n ? Object.create(n) : (e.prototype = n.prototype, new e);
1805
1808
  }(n, t), Object.defineProperty(n.prototype, "name", {
1806
1809
  get: function get() {
1807
1810
  return "_legacyExtensionsEnabled";
@@ -1812,14 +1815,14 @@ var s$5 = !1, a$4 = function a() {
1812
1815
  s$5 = !0;
1813
1816
  }, n;
1814
1817
  }(a$8);
1815
- function p$7() {
1818
+ function p$6() {
1816
1819
  var t;
1817
- return "ios" === e$1() ? (t = r$4()) && f$8(t, "9.19.0") < 0 ? "https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js";
1820
+ return "ios" === e$2() ? (t = r$4()) && f$8(t, "9.19.0") < 0 ? "https://static.line-scdn.net/liff/edge/2/ios-918-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/ios-extensions_2_22_0.js" : "https://static.line-scdn.net/liff/edge/2/non-ios-extensions_2_22_0.js";
1818
1821
  }
1819
1822
  function y$2() {
1820
1823
  return a$4() ? function() {
1821
- return u$7(this, void 0, void 0, function() {
1822
- return l$5(this, function(e) {
1824
+ return u$6(this, void 0, void 0, function() {
1825
+ return l$6(this, function(e) {
1823
1826
  switch(e.label){
1824
1827
  case 0:
1825
1828
  return [
@@ -1835,12 +1838,12 @@ function y$2() {
1835
1838
  return [
1836
1839
  2,
1837
1840
  new Promise(function(e, o) {
1838
- var r = document.createElement("script"), _$i = p$7();
1841
+ var r = document.createElement("script"), _$i = p$6();
1839
1842
  r.onload = function() {
1840
1843
  var r = window.liffClientExtension;
1841
- r ? e(r) : o(w$5(I$6, "Unable to load client features. (Extension is empty)"));
1844
+ r ? e(r) : o(w$6(I$5, "Unable to load client features. (Extension is empty)"));
1842
1845
  }, r.onerror = function(e) {
1843
- o(w$5(I$6, "Unable to load client features.", {
1846
+ o(w$6(I$5, "Unable to load client features.", {
1844
1847
  cause: e
1845
1848
  }));
1846
1849
  }, r.src = _$i, r.type = "text/javascript", document.body.appendChild(r);
@@ -1852,7 +1855,7 @@ function y$2() {
1852
1855
  }() : Promise.resolve(void 0);
1853
1856
  }
1854
1857
 
1855
- function o$2() {
1858
+ function o$1() {
1856
1859
  tn();
1857
1860
  }
1858
1861
  (function(r) {
@@ -1867,12 +1870,12 @@ function o$2() {
1867
1870
  configurable: !0
1868
1871
  }), n.prototype.install = function() {
1869
1872
  return function() {
1870
- return o$2();
1873
+ return o$1();
1871
1874
  };
1872
1875
  }, n;
1873
1876
  })(a$8);
1874
1877
 
1875
- function c$6(a) {
1878
+ function c$5(a) {
1876
1879
  return __awaiter(this, void 0, void 0, function() {
1877
1880
  var _$e, r, o;
1878
1881
  return __generator(this, function(t) {
@@ -1904,23 +1907,23 @@ function c$6(a) {
1904
1907
  a
1905
1908
  ];
1906
1909
  case 4:
1907
- return _$e = String(a.status), r = g$5.has(_$e) ? _$e : e$3, [
1910
+ return _$e = String(a.status), r = g$4.has(_$e) ? _$e : e$4, [
1908
1911
  4,
1909
1912
  a.json().catch(function() {
1910
- throw w$5(r, a.statusText);
1913
+ throw w$6(r, a.statusText);
1911
1914
  })
1912
1915
  ];
1913
1916
  case 5:
1914
- throw o = t.sent(), w$5(o.error || r, o.error_description || o.message);
1917
+ throw o = t.sent(), w$6(o.error || r, o.error_description || o.message);
1915
1918
  }
1916
1919
  });
1917
1920
  });
1918
1921
  }
1919
- function u$6(e) {
1922
+ function u$5(e) {
1920
1923
  var t$1 = function(e) {
1921
1924
  if (e) return e;
1922
1925
  var t$1 = x$3();
1923
- if (!t$1) throw w$5(t, "Need access_token for api call, Please login first");
1926
+ if (!t$1) throw w$6(t, "Need access_token for api call, Please login first");
1924
1927
  return {
1925
1928
  "Content-Type": "application/json",
1926
1929
  Accept: "application/json",
@@ -1934,105 +1937,105 @@ function u$6(e) {
1934
1937
  function f$6(e, t) {
1935
1938
  var a;
1936
1939
  try {
1937
- a = u$6(t);
1940
+ a = u$5(t);
1938
1941
  } catch (n) {
1939
1942
  return Promise.reject(n);
1940
1943
  }
1941
- return fetch(e, a).then(c$6);
1944
+ return fetch(e, a).then(c$5);
1942
1945
  }
1943
- function p$6(e, t) {
1946
+ function p$5(e, t) {
1944
1947
  var a;
1945
1948
  try {
1946
- a = u$6(t);
1949
+ a = u$5(t);
1947
1950
  } catch (n) {
1948
1951
  return Promise.reject(n);
1949
1952
  }
1950
1953
  return fetch(e, a);
1951
1954
  }
1952
- function h$1(e) {
1955
+ function h$3(e) {
1953
1956
  var t = e.subdomain, a = void 0 === t ? "api" : t, n = e.pathname;
1954
1957
  return "https://".concat(a, ".").concat("line.me", "/").concat(n);
1955
1958
  }
1956
1959
  var m$4 = {
1957
- token: h$1({
1960
+ token: h$3({
1958
1961
  pathname: "oauth2/v2.1/token"
1959
1962
  }),
1960
- certs: h$1({
1963
+ certs: h$3({
1961
1964
  pathname: "oauth2/v2.1/certs"
1962
1965
  }),
1963
- "openid-configuration": h$1({
1966
+ "openid-configuration": h$3({
1964
1967
  subdomain: "access",
1965
1968
  pathname: ".well-known/openid-configuration"
1966
1969
  }),
1967
- authorize: h$1({
1970
+ authorize: h$3({
1968
1971
  subdomain: "access",
1969
1972
  pathname: "liff/v1/authorize"
1970
1973
  }),
1971
- profile: h$1({
1974
+ profile: h$3({
1972
1975
  pathname: "v2/profile"
1973
1976
  }),
1974
- message: h$1({
1977
+ message: h$3({
1975
1978
  pathname: "message/v3/share"
1976
1979
  }),
1977
- friendship: h$1({
1980
+ friendship: h$3({
1978
1981
  pathname: "friendship/v1/status"
1979
1982
  }),
1980
- shareTargetPicker: h$1({
1983
+ shareTargetPicker: h$3({
1981
1984
  subdomain: "access",
1982
1985
  pathname: "oauth2/v2.1/liff/shareTargetPicker"
1983
1986
  }),
1984
- shareTargetPickerOtt: h$1({
1987
+ shareTargetPickerOtt: h$3({
1985
1988
  pathname: "liff/v2/apps"
1986
1989
  }),
1987
- shareTargetPickerResult: h$1({
1990
+ shareTargetPickerResult: h$3({
1988
1991
  subdomain: "access",
1989
1992
  pathname: "oauth2/v2.1/liff/shareTargetPicker/result"
1990
1993
  }),
1991
- apps: h$1({
1994
+ apps: h$3({
1992
1995
  pathname: "liff/v2/apps"
1993
1996
  }),
1994
- subWindowGetMSIT: h$1({
1997
+ subWindowGetMSIT: h$3({
1995
1998
  pathname: "liff/v2/sub/msit"
1996
1999
  }),
1997
- subWindowGetMSTByMSIT: h$1({
2000
+ subWindowGetMSTByMSIT: h$3({
1998
2001
  pathname: "liff/v2/sub/mst"
1999
2002
  }),
2000
- subWindowSubscribe: h$1({
2003
+ subWindowSubscribe: h$3({
2001
2004
  subdomain: "liff",
2002
2005
  pathname: "liff/v2/sub/waitResult"
2003
2006
  }),
2004
- subWindowPost: h$1({
2007
+ subWindowPost: h$3({
2005
2008
  pathname: "liff/v2/sub/result"
2006
2009
  }),
2007
- subWindowGetAppData: h$1({
2010
+ subWindowGetAppData: h$3({
2008
2011
  pathname: "liff/v2/sub/appData"
2009
2012
  }),
2010
2013
  subWindowGetOrigin: function subWindowGetOrigin(e) {
2011
- return h$1({
2014
+ return h$3({
2012
2015
  pathname: "liff/v2/sub/".concat(e, "/origin")
2013
2016
  });
2014
2017
  },
2015
- accessTokenVerify: h$1({
2018
+ accessTokenVerify: h$3({
2016
2019
  pathname: "oauth2/v2.1/verify"
2017
2020
  }),
2018
- unauthorizedPermissions: h$1({
2021
+ unauthorizedPermissions: h$3({
2019
2022
  subdomain: "liff",
2020
2023
  pathname: "liff/v2/incrementalAgreement/unauthorizedPermissions"
2021
2024
  }),
2022
- permanentLink: h$1({
2025
+ permanentLink: h$3({
2023
2026
  subdomain: "liff",
2024
2027
  pathname: "liff/v2/permanentLink"
2025
2028
  }),
2026
- createShortcutOnHomeScreen: h$1({
2029
+ createShortcutOnHomeScreen: h$3({
2027
2030
  subdomain: "liff-shortcut",
2028
2031
  pathname: "api/shortcut"
2029
2032
  })
2030
2033
  };
2031
- function l$4(e) {
2034
+ function l$5(e) {
2032
2035
  return m$4[e];
2033
2036
  }
2034
2037
  function d$3(e) {
2035
- return f$6("".concat(l$4("accessTokenVerify"), "?access_token=").concat(encodeURIComponent(e)), {
2038
+ return f$6("".concat(l$5("accessTokenVerify"), "?access_token=").concat(encodeURIComponent(e)), {
2036
2039
  headers: {
2037
2040
  "Content-Type": "application/json",
2038
2041
  Accept: "application/json"
@@ -2040,18 +2043,18 @@ function d$3(e) {
2040
2043
  });
2041
2044
  }
2042
2045
 
2043
- var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = __assign(__assign({}, C$5), {
2046
+ var d$2 = "liff.subwindow.identifier", u$4 = "liff.subwindow.cryptokey", f$5 = __assign(__assign({}, C$5), {
2044
2047
  GET_DATA: "getData",
2045
2048
  SET_DATA: "setData",
2046
2049
  NOT_FOUND: "notFound",
2047
2050
  TEARDOWN: "teardown"
2048
- }), u$5 = {
2051
+ }), l$4 = {
2049
2052
  BROADCAST: "broadcast",
2050
2053
  COMMAND: "command"
2051
- }, f$5 = {
2054
+ }, h$2 = {
2052
2055
  MAIN: "main",
2053
2056
  SUB: "sub"
2054
- }, v$2 = function v(e) {
2057
+ }, m$3 = function m(e) {
2055
2058
  return __awaiter(void 0, void 0, void 0, function() {
2056
2059
  var _$t;
2057
2060
  return __generator(this, function(n) {
@@ -2082,7 +2085,7 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2082
2085
  n.sent()
2083
2086
  ];
2084
2087
  case 2:
2085
- throw _$t = n.sent(), w$5(e$3, _$t);
2088
+ throw _$t = n.sent(), w$6(e$4, _$t);
2086
2089
  case 3:
2087
2090
  return [
2088
2091
  2
@@ -2090,9 +2093,9 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2090
2093
  }
2091
2094
  });
2092
2095
  });
2093
- }, p$5 = function p(e, s, r) {
2096
+ }, w$3 = function w(e, i, r) {
2094
2097
  return __awaiter(void 0, void 0, void 0, function() {
2095
- var _$t, o, c, d;
2098
+ var _$t, a, _$o, d;
2096
2099
  return __generator(this, function(n) {
2097
2100
  switch(n.label){
2098
2101
  case 0:
@@ -2103,25 +2106,25 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2103
2106
  4
2104
2107
  ]), _$t = (new TextEncoder).encode(e), [
2105
2108
  4,
2106
- v$2(s)
2109
+ m$3(i)
2107
2110
  ];
2108
2111
  case 1:
2109
- return o = n.sent(), [
2112
+ return a = n.sent(), [
2110
2113
  4,
2111
2114
  window.crypto.subtle.encrypt({
2112
2115
  name: "AES-GCM",
2113
2116
  iv: _$t
2114
- }, o, (new TextEncoder).encode(r))
2117
+ }, a, (new TextEncoder).encode(r))
2115
2118
  ];
2116
2119
  case 2:
2117
- return c = n.sent(), [
2120
+ return _$o = n.sent(), [
2118
2121
  2,
2119
- btoa(new Uint8Array(c).reduce(function(e, t) {
2122
+ btoa(new Uint8Array(_$o).reduce(function(e, t) {
2120
2123
  return e + String.fromCharCode(t);
2121
2124
  }, ""))
2122
2125
  ];
2123
2126
  case 3:
2124
- throw d = n.sent(), w$5(e$3, d);
2127
+ throw d = n.sent(), w$6(e$4, d);
2125
2128
  case 4:
2126
2129
  return [
2127
2130
  2
@@ -2129,9 +2132,9 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2129
2132
  }
2130
2133
  });
2131
2134
  });
2132
- }, m$3 = function m(e, s, r) {
2135
+ }, y$1 = function y(e, i, r) {
2133
2136
  return __awaiter(void 0, void 0, void 0, function() {
2134
- var _$t, o, c, d, u, f, l;
2137
+ var _$t, a, _$o, d, u, f, l;
2135
2138
  return __generator(this, function(n) {
2136
2139
  switch(n.label){
2137
2140
  case 0:
@@ -2142,16 +2145,16 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2142
2145
  4
2143
2146
  ]), _$t = (new TextEncoder).encode(e), [
2144
2147
  4,
2145
- v$2(s)
2148
+ m$3(i)
2146
2149
  ];
2147
2150
  case 1:
2148
- for(o = n.sent(), c = atob(r), d = new Uint8Array(c.length), u = 0; u < c.length; u++)d[u] = c.charCodeAt(u);
2151
+ for(a = n.sent(), _$o = atob(r), d = new Uint8Array(_$o.length), u = 0; u < _$o.length; u++)d[u] = _$o.charCodeAt(u);
2149
2152
  return [
2150
2153
  4,
2151
2154
  window.crypto.subtle.decrypt({
2152
2155
  name: "AES-GCM",
2153
2156
  iv: _$t
2154
- }, o, d.buffer)
2157
+ }, a, d.buffer)
2155
2158
  ];
2156
2159
  case 2:
2157
2160
  return f = n.sent(), [
@@ -2159,7 +2162,7 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2159
2162
  (new TextDecoder).decode(new Uint8Array(f))
2160
2163
  ];
2161
2164
  case 3:
2162
- throw l = n.sent(), w$5(e$3, l);
2165
+ throw l = n.sent(), w$6(e$4, l);
2163
2166
  case 4:
2164
2167
  return [
2165
2168
  2
@@ -2167,45 +2170,45 @@ var o$1 = "liff.subwindow.identifier", c$5 = "liff.subwindow.cryptokey", d$2 = _
2167
2170
  }
2168
2171
  });
2169
2172
  });
2170
- }, w$2 = function w(e, t) {
2171
- return y$1(e) === y$1(t);
2172
- }, y$1 = function y(e) {
2173
+ }, g$2 = function g(e, t) {
2174
+ return b$1(e) === b$1(t);
2175
+ }, b$1 = function b(e) {
2173
2176
  return "".concat(e.identifier, "-").concat(e.action, "-").concat(e.timestamp);
2174
- }, g$3 = function g(e) {
2177
+ }, E$2 = function E(e) {
2175
2178
  return Object.keys(C$5).map(function(e) {
2176
2179
  return C$5[e];
2177
- }).includes(e) ? u$5.BROADCAST : u$5.COMMAND;
2180
+ }).includes(e) ? l$4.BROADCAST : l$4.COMMAND;
2178
2181
  };
2179
- function b$3() {
2182
+ function A$1() {
2180
2183
  var _$e = document.createElement("form");
2181
2184
  _$e.method = "POST", _$e.action = "$MESSAGE_HANDLER_URL";
2182
2185
  var t = document.createElement("input");
2183
2186
  t.type = "hidden", t.name = "identifier", t.value = "$IDENTIFIER", _$e.appendChild(t), document.body.appendChild(_$e), _$e.submit();
2184
2187
  }
2185
- var E$1 = function E(r) {
2186
- void 0 === r && (r = f$5.MAIN);
2187
- var o = this;
2188
+ var T$1 = function T(o) {
2189
+ void 0 === o && (o = h$2.MAIN);
2190
+ var d = this;
2188
2191
  this.identification = {
2189
2192
  identifier: "",
2190
2193
  cryptoKey: ""
2191
2194
  }, this.messageHandlerInstance = null, this.listeners = new Map, this.sentMessages = [], this.generateIdentification = function() {
2192
- return __awaiter(o, void 0, void 0, function() {
2193
- var _$e, _$r, o, d, u;
2194
- return __generator(this, function(l) {
2195
- switch(l.label){
2195
+ return __awaiter(d, void 0, void 0, function() {
2196
+ var _$e, i, r, _$o, d;
2197
+ return __generator(this, function(f) {
2198
+ switch(f.label){
2196
2199
  case 0:
2197
- return _$e = new URLSearchParams(window.location.search), _$r = function r(t) {
2200
+ return _$e = new URLSearchParams(window.location.search), i = function i(t) {
2198
2201
  var _$n = _$e.get("liff.state");
2199
2202
  return _$n ? new URLSearchParams(_$n).get(t) : null;
2200
- }, o = this, u = {
2201
- identifier: this.windowType === f$5.MAIN ? x$4(12) : _$e.get("liff.subwindow.identifier") || _$r("liff.subwindow.identifier") || ""
2202
- }, this.windowType !== f$5.MAIN ? [
2203
+ }, r = this, d = {
2204
+ identifier: this.windowType === h$2.MAIN ? x$4(12) : _$e.get("liff.subwindow.identifier") || i("liff.subwindow.identifier") || ""
2205
+ }, this.windowType !== h$2.MAIN ? [
2203
2206
  3,
2204
2207
  2
2205
2208
  ] : [
2206
2209
  4,
2207
2210
  __awaiter(void 0, void 0, void 0, function() {
2208
- var _$e, _$t, _$s;
2211
+ var _$e, _$t, i;
2209
2212
  return __generator(this, function(n) {
2210
2213
  switch(n.label){
2211
2214
  case 0:
@@ -2230,13 +2233,13 @@ var E$1 = function E(r) {
2230
2233
  window.crypto.subtle.exportKey("jwk", _$e)
2231
2234
  ];
2232
2235
  case 2:
2233
- if (!(_$t = n.sent()) || !_$t.k) throw w$5(e$3, "failed to generate key");
2236
+ if (!(_$t = n.sent()) || !_$t.k) throw w$6(e$4, "failed to generate key");
2234
2237
  return [
2235
2238
  2,
2236
2239
  _$t.k
2237
2240
  ];
2238
2241
  case 3:
2239
- throw _$s = n.sent(), w$5(e$3, _$s);
2242
+ throw i = n.sent(), w$6(e$4, i);
2240
2243
  case 4:
2241
2244
  return [
2242
2245
  2
@@ -2246,27 +2249,27 @@ var E$1 = function E(r) {
2246
2249
  })
2247
2250
  ];
2248
2251
  case 1:
2249
- return d = l.sent(), [
2252
+ return _$o = f.sent(), [
2250
2253
  3,
2251
2254
  3
2252
2255
  ];
2253
2256
  case 2:
2254
- d = _$e.get(c$5) || _$r(c$5) || "", l.label = 3;
2257
+ _$o = _$e.get(u$4) || i(u$4) || "", f.label = 3;
2255
2258
  case 3:
2256
- return o.identification = (u.cryptoKey = d, u), [
2259
+ return r.identification = (d.cryptoKey = _$o, d), [
2257
2260
  2
2258
2261
  ];
2259
2262
  }
2260
2263
  });
2261
2264
  });
2262
2265
  }, this.hasIdentification = function() {
2263
- var _$e = o.identification, t = _$e.identifier, n = _$e.cryptoKey;
2266
+ var _$e = d.identification, t = _$e.identifier, n = _$e.cryptoKey;
2264
2267
  return "string" == typeof t && "string" == typeof n && t.length > 0 && n.length > 0;
2265
2268
  }, this.isReady = function() {
2266
- return o.hasIdentification() && !!o.messageHandlerInstance;
2269
+ return d.hasIdentification() && !!d.messageHandlerInstance;
2267
2270
  }, this.setup = function() {
2268
- return __awaiter(o, void 0, void 0, function() {
2269
- var _$e, _$t, s, _$r, o, c = this;
2271
+ return __awaiter(d, void 0, void 0, function() {
2272
+ var _$e, _$t, i, r, a, _$o = this;
2270
2273
  return __generator(this, function(n) {
2271
2274
  switch(n.label){
2272
2275
  case 0:
@@ -2280,12 +2283,12 @@ var E$1 = function E(r) {
2280
2283
  if (n.sent(), !(_$e = this.identification.identifier)) return [
2281
2284
  2
2282
2285
  ];
2283
- if (_$t = /^[a-zA-Z0-9]+$/gm, !_$e.match(_$t)) throw w$5(e$3, "Invalid identifier");
2284
- return (s = document.createElement("iframe")).style.display = "none", s.src = "about:blank", document.body.appendChild(s), null === (o = null == s ? void 0 : s.contentWindow) || void 0 === o || o.window.eval("(".concat(b$3.toString().replace("$MESSAGE_HANDLER_URL", "".concat("https://liff-subwindow.line.me/liff/v2/sub/messageHandler")).replace("$IDENTIFIER", _$e.split("'")[0]), ")()")), _$r = "iframe-".concat(_$e, "-ready"), [
2286
+ if (_$t = /^[a-zA-Z0-9]+$/gm, !_$e.match(_$t)) throw w$6(e$4, "Invalid identifier");
2287
+ return (i = document.createElement("iframe")).style.display = "none", i.src = "about:blank", document.body.appendChild(i), null === (a = null == i ? void 0 : i.contentWindow) || void 0 === a || a.window.eval("(".concat(A$1.toString().replace("$MESSAGE_HANDLER_URL", "".concat("https://liff-subwindow.line.me/liff/v2/sub/messageHandler")).replace("$IDENTIFIER", _$e.split("'")[0]), ")()")), r = "iframe-".concat(_$e, "-ready"), [
2285
2288
  4,
2286
2289
  new Promise(function(e) {
2287
2290
  var _$t = function t(n) {
2288
- n.data[_$r] && (c.messageHandlerInstance = s, window.addEventListener("message", c.proxyToListeners), e(), document.removeEventListener("message", _$t));
2291
+ n.data[r] && (_$o.messageHandlerInstance = i, window.addEventListener("message", _$o.proxyToListeners), e(), document.removeEventListener("message", _$t));
2289
2292
  };
2290
2293
  window.addEventListener("message", _$t);
2291
2294
  })
@@ -2299,7 +2302,7 @@ var E$1 = function E(r) {
2299
2302
  });
2300
2303
  });
2301
2304
  }, this.teardown = function() {
2302
- return __awaiter(o, void 0, void 0, function() {
2305
+ return __awaiter(d, void 0, void 0, function() {
2303
2306
  var _$e, _$t;
2304
2307
  return __generator(this, function(n) {
2305
2308
  switch(n.label){
@@ -2307,7 +2310,7 @@ var E$1 = function E(r) {
2307
2310
  return this.isReady() ? [
2308
2311
  4,
2309
2312
  this.send({
2310
- eventName: d$2.TEARDOWN
2313
+ eventName: f$5.TEARDOWN
2311
2314
  })
2312
2315
  ] : [
2313
2316
  3,
@@ -2323,21 +2326,21 @@ var E$1 = function E(r) {
2323
2326
  });
2324
2327
  });
2325
2328
  }, this.listen = function(e) {
2326
- o.listeners.set(e, e);
2329
+ d.listeners.set(e, e);
2327
2330
  }, this.listenRepliedEvent = function(e, t) {
2328
2331
  var n = function n1(i) {
2329
- i.replyTarget && w$2(i.replyTarget, e) && (t(i), o.listeners.delete(n));
2332
+ i.replyTarget && g$2(i.replyTarget, e) && (t(i), d.listeners.delete(n));
2330
2333
  };
2331
- o.listeners.set(n, n);
2334
+ d.listeners.set(n, n);
2332
2335
  }, this.send = function(e) {
2333
- return __awaiter(o, void 0, void 0, function() {
2334
- var _$t, s, _$r, a, o = this;
2336
+ return __awaiter(d, void 0, void 0, function() {
2337
+ var _$t, i, r, a, _$o = this;
2335
2338
  return __generator(this, function(n) {
2336
2339
  switch(n.label){
2337
2340
  case 0:
2338
- if (!this.isReady()) throw w$5("message bus is not ready to send message");
2339
- return s = {
2340
- action: g$3(e.eventName),
2341
+ if (!this.isReady()) throw w$6("message bus is not ready to send message");
2342
+ return i = {
2343
+ action: E$2(e.eventName),
2341
2344
  identifier: this.identification.identifier || "",
2342
2345
  timestamp: (new Date).getTime()
2343
2346
  }, [
@@ -2345,12 +2348,12 @@ var E$1 = function E(r) {
2345
2348
  this.getEncryptedContext(e)
2346
2349
  ];
2347
2350
  case 1:
2348
- return s.context = n.sent(), _$t = s, null === (a = null === (_$r = this.messageHandlerInstance) || void 0 === _$r ? void 0 : _$r.contentWindow) || void 0 === a || a.postMessage({
2351
+ return i.context = n.sent(), _$t = i, null === (a = null === (r = this.messageHandlerInstance) || void 0 === r ? void 0 : r.contentWindow) || void 0 === a || a.postMessage({
2349
2352
  messageBusEvent: _$t
2350
- }, "*"), this.sentMessages.push(y$1(_$t)), [
2353
+ }, "*"), this.sentMessages.push(b$1(_$t)), [
2351
2354
  4,
2352
2355
  new Promise(function(e) {
2353
- o.listenRepliedEvent(_$t, function(t) {
2356
+ _$o.listenRepliedEvent(_$t, function(t) {
2354
2357
  e(t.context);
2355
2358
  });
2356
2359
  })
@@ -2363,48 +2366,49 @@ var E$1 = function E(r) {
2363
2366
  }
2364
2367
  });
2365
2368
  });
2366
- }, this.reply = function(e, s) {
2367
- return __awaiter(o, void 0, void 0, function() {
2368
- var _$t, _$r, o, c;
2369
+ }, this.reply = function(e, i) {
2370
+ return __awaiter(d, void 0, void 0, function() {
2371
+ var _$t, r, a, _$o;
2369
2372
  return __generator(this, function(n) {
2370
2373
  switch(n.label){
2371
2374
  case 0:
2372
- if (!this.isReady()) throw w$5("message bus is not ready to send message");
2373
- if (!e.identifier || !e.timestamp) throw w$5(e$3, "target message is not valid");
2374
- return _$r = {
2375
- action: u$5.BROADCAST
2375
+ if (!this.isReady()) throw w$6("message bus is not ready to send message");
2376
+ if (!e.identifier || !e.timestamp) throw w$6(e$4, "target message is not valid");
2377
+ return r = {
2378
+ action: l$4.BROADCAST
2376
2379
  }, [
2377
2380
  4,
2378
- this.getEncryptedContext(s)
2381
+ this.getEncryptedContext(i)
2379
2382
  ];
2380
2383
  case 1:
2381
- return _$r.context = n.sent(), _$r.identifier = this.identification.identifier || "", _$r.timestamp = (new Date).getTime(), _$r.replyTarget = {
2384
+ return r.context = n.sent(), r.identifier = this.identification.identifier || "", r.timestamp = (new Date).getTime(), r.replyTarget = {
2382
2385
  action: e.action,
2383
2386
  identifier: e.identifier,
2384
2387
  timestamp: e.timestamp
2385
- }, _$t = _$r, null === (c = null === (o = this.messageHandlerInstance) || void 0 === o ? void 0 : o.contentWindow) || void 0 === c || c.postMessage({
2388
+ }, _$t = r, null === (_$o = null === (a = this.messageHandlerInstance) || void 0 === a ? void 0 : a.contentWindow) || void 0 === _$o || _$o.postMessage({
2386
2389
  messageBusEvent: _$t
2387
- }, "*"), this.sentMessages.push(y$1(_$t)), [
2390
+ }, "*"), this.sentMessages.push(b$1(_$t)), [
2388
2391
  2
2389
2392
  ];
2390
2393
  }
2391
2394
  });
2392
2395
  });
2393
2396
  }, this.setData = function(e, t) {
2394
- void 0 === e && (e = "appData"), o.send({
2395
- eventName: d$2.SET_DATA,
2397
+ void 0 === e && (e = "appData"), d.send({
2398
+ eventName: f$5.SET_DATA,
2396
2399
  key: e,
2397
2400
  data: t
2398
2401
  });
2399
- }, this.getData = function(e) {
2400
- return void 0 === e && (e = "appData"), __awaiter(o, void 0, void 0, function() {
2401
- return __generator(this, function(t) {
2402
+ }, this.getData = function() {
2403
+ for(var _$e = [], s = 0; s < arguments.length; s++)_$e[s] = arguments[s];
2404
+ return __awaiter(d, __spreadArray([], __read(_$e), !1), void 0, function(e) {
2405
+ return void 0 === e && (e = "appData"), __generator(this, function(t) {
2402
2406
  switch(t.label){
2403
2407
  case 0:
2404
2408
  return [
2405
2409
  4,
2406
2410
  this.send({
2407
- eventName: d$2.GET_DATA,
2411
+ eventName: f$5.GET_DATA,
2408
2412
  key: e
2409
2413
  })
2410
2414
  ];
@@ -2417,26 +2421,26 @@ var E$1 = function E(r) {
2417
2421
  });
2418
2422
  });
2419
2423
  }, this.proxyToListeners = function(i) {
2420
- return __awaiter(o, void 0, void 0, function() {
2421
- var s, _$r = this;
2424
+ return __awaiter(d, void 0, void 0, function() {
2425
+ var r, s = this;
2422
2426
  return __generator(this, function(a) {
2423
- return s = i.data.messageBusEvent, "https://liff-subwindow.line.me" !== i.origin ? [
2427
+ return r = i.data.messageBusEvent, "https://liff-subwindow.line.me" !== i.origin ? [
2424
2428
  2
2425
- ] : s ? (this.sentMessages.includes(y$1(s)) || s.identifier !== this.identification.identifier || s.action !== u$5.BROADCAST && !s.replyTarget || this.listeners.forEach(function(i) {
2426
- return __awaiter(_$r, void 0, void 0, function() {
2427
- var _$t, _$r, a;
2429
+ ] : r ? (this.sentMessages.includes(b$1(r)) || r.identifier !== this.identification.identifier || r.action !== l$4.BROADCAST && !r.replyTarget || this.listeners.forEach(function(i) {
2430
+ return __awaiter(s, void 0, void 0, function() {
2431
+ var _$t, s, a;
2428
2432
  return __generator(this, function(n) {
2429
2433
  switch(n.label){
2430
2434
  case 0:
2431
- return _$t = i, _$r = [
2432
- __assign({}, s)
2435
+ return _$t = i, s = [
2436
+ __assign({}, r)
2433
2437
  ], a = {}, [
2434
2438
  4,
2435
- this.getDecryptedContext(s.context)
2439
+ this.getDecryptedContext(r.context)
2436
2440
  ];
2437
2441
  case 1:
2438
2442
  return _$t.apply(void 0, [
2439
- __assign.apply(void 0, _$r.concat([
2443
+ __assign.apply(void 0, s.concat([
2440
2444
  (a.context = n.sent(), a)
2441
2445
  ]))
2442
2446
  ]), [
@@ -2453,47 +2457,47 @@ var E$1 = function E(r) {
2453
2457
  });
2454
2458
  });
2455
2459
  }, this.getEncryptedContext = function(e) {
2456
- return __awaiter(o, void 0, void 0, function() {
2457
- var _$t, i, s, _$r, a, o, c;
2460
+ return __awaiter(d, void 0, void 0, function() {
2461
+ var _$t, i, r, s, a, _$o, c;
2458
2462
  return __generator(this, function(n) {
2459
2463
  switch(n.label){
2460
2464
  case 0:
2461
- return _$t = this.identification, i = _$t.identifier, s = _$t.cryptoKey, a = (_$r = JSON).stringify, c = {
2465
+ return _$t = this.identification, i = _$t.identifier, r = _$t.cryptoKey, a = (s = JSON).stringify, c = {
2462
2466
  eventName: e.eventName,
2463
2467
  key: e.key ? e.key : void 0
2464
2468
  }, e.data ? [
2465
2469
  4,
2466
- p$5(i, s, JSON.stringify(e.data))
2470
+ w$3(i, r, JSON.stringify(e.data))
2467
2471
  ] : [
2468
2472
  3,
2469
2473
  2
2470
2474
  ];
2471
2475
  case 1:
2472
- return o = n.sent(), [
2476
+ return _$o = n.sent(), [
2473
2477
  3,
2474
2478
  3
2475
2479
  ];
2476
2480
  case 2:
2477
- o = void 0, n.label = 3;
2481
+ _$o = void 0, n.label = 3;
2478
2482
  case 3:
2479
2483
  return [
2480
2484
  2,
2481
- a.apply(_$r, [
2482
- (c.data = o, c)
2485
+ a.apply(s, [
2486
+ (c.data = _$o, c)
2483
2487
  ])
2484
2488
  ];
2485
2489
  }
2486
2490
  });
2487
2491
  });
2488
2492
  }, this.getDecryptedContext = function(i) {
2489
- return __awaiter(o, void 0, void 0, function() {
2490
- var _$t, s, _$r, a, o, c, d, u;
2493
+ return __awaiter(d, void 0, void 0, function() {
2494
+ var _$t, r, s, a, _$o, c, d, u;
2491
2495
  return __generator(this, function(n) {
2492
2496
  switch(n.label){
2493
2497
  case 0:
2494
- return _$t = this.identification, s = _$t.identifier, _$r = _$t.cryptoKey, (a = JSON.parse(i)).data && "string" == typeof a.data ? (u = (d = JSON).parse, [
2498
+ return _$t = this.identification, r = _$t.identifier, s = _$t.cryptoKey, (a = JSON.parse(i)).data && "string" == typeof a.data ? (u = (d = JSON).parse, [
2495
2499
  4,
2496
- m$3(s, _$r, a.data)
2500
+ y$1(r, s, a.data)
2497
2501
  ]) : [
2498
2502
  3,
2499
2503
  2
@@ -2508,20 +2512,20 @@ var E$1 = function E(r) {
2508
2512
  case 2:
2509
2513
  c = void 0, n.label = 3;
2510
2514
  case 3:
2511
- return o = c, [
2515
+ return _$o = c, [
2512
2516
  2,
2513
2517
  __assign(__assign({}, a), {
2514
- data: o
2518
+ data: _$o
2515
2519
  })
2516
2520
  ];
2517
2521
  }
2518
2522
  });
2519
2523
  });
2520
- }, this.windowType = r;
2524
+ }, this.windowType = o;
2521
2525
  };
2522
2526
 
2523
2527
  function l$3(e) {
2524
- return new CustomEvent(o$4, {
2528
+ return new CustomEvent(o$3, {
2525
2529
  detail: e
2526
2530
  });
2527
2531
  }
@@ -2536,7 +2540,7 @@ function l$3(e) {
2536
2540
  }();
2537
2541
  var f$4 = {}, c$4 = !1;
2538
2542
  function s$4(e, i) {
2539
- c$4 || (c$4 = !0, window.addEventListener(o$4, function(t) {
2543
+ c$4 || (c$4 = !0, window.addEventListener(o$3, function(t) {
2540
2544
  t && t.detail && t.detail.type && f$4[t.detail.type] && f$4[t.detail.type].forEach(function(e) {
2541
2545
  return e(t);
2542
2546
  });
@@ -2544,19 +2548,19 @@ function s$4(e, i) {
2544
2548
  i
2545
2549
  ];
2546
2550
  }
2547
- function u$4(t, e) {
2551
+ function u$3(t, e) {
2548
2552
  var i = f$4[t];
2549
2553
  if (i && Array.isArray(i)) {
2550
2554
  var o = i.indexOf(e);
2551
2555
  o >= 0 && i.splice(o, 1);
2552
2556
  }
2553
2557
  }
2554
- function v$1(t) {
2558
+ function v$2(t) {
2555
2559
  var i = {};
2556
2560
  try {
2557
2561
  i = JSON.parse(t);
2558
2562
  } catch (r) {
2559
- throw w$5(i$1, r.message);
2563
+ throw w$6(i$1, r.message);
2560
2564
  }
2561
2565
  var a = l$3(i);
2562
2566
  i$3.debug("[client dispatchEvent to js]", {
@@ -2566,32 +2570,32 @@ function v$1(t) {
2566
2570
  }
2567
2571
  function p$4(t, a, d) {
2568
2572
  void 0 === a && (a = {}), void 0 === d && (d = "");
2569
- var l = w$4();
2570
- if (!l) throw w$5(E$4, "Invalid featureToken for client features");
2571
- if (!window._liff || !window._liff.postMessage) throw w$5(i$1, "postMessage is not available from client");
2573
+ var l = w$5();
2574
+ if (!l) throw w$6(E$5, "Invalid featureToken for client features");
2575
+ if (!window._liff || !window._liff.postMessage) throw w$6(i$1, "postMessage is not available from client");
2572
2576
  i$3.debug("[js postMessage to client]", t, d, a), window._liff.postMessage(t, l, d, JSON.stringify(a));
2573
2577
  }
2574
- function w$1(t, e, l) {
2578
+ function w$2(t, e, l) {
2575
2579
  return void 0 === e && (e = {}), void 0 === l && (l = {
2576
2580
  once: !0
2577
- }), w$4() ? (l = __assign({
2581
+ }), w$5() ? (l = __assign({
2578
2582
  callbackId: x$4(12),
2579
2583
  once: !0
2580
2584
  }, l), new Promise(function(i, n) {
2581
2585
  var _$a = function a(e) {
2582
2586
  if (e && e.detail) {
2583
2587
  var _$r = e.detail.callbackId === l.callbackId, _$d = "string" != typeof e.detail.callbackId;
2584
- (_$r || _$d) && (l.once && u$4(t, _$a), i$3.debug("[callback detail]", e.detail), e.detail.error ? n(e.detail.error) : e.detail.data ? i(e.detail.data) : n(e.detail));
2588
+ (_$r || _$d) && (l.once && u$3(t, _$a), i$3.debug("[callback detail]", e.detail), e.detail.error ? n(e.detail.error) : e.detail.data ? i(e.detail.data) : n(e.detail));
2585
2589
  }
2586
2590
  n();
2587
2591
  };
2588
2592
  s$4(t, _$a), p$4(t, e, l.callbackId);
2589
- })) : Promise.reject(w$5(E$4, "Invalid featureToken for client features"));
2593
+ })) : Promise.reject(w$6(E$5, "Invalid featureToken for client features"));
2590
2594
  }
2591
2595
 
2592
2596
  function r$1() {
2593
2597
  var o = r$4();
2594
- null !== o && ("ios" === e$1() && f$8(o, "9.19") >= 0 || "android" === e$1() && f$8(o, "11.6.0") >= 0) ? location.href = "liff://close" : window._liff && window._liff.postMessage ? null !== o && f$8(o, "10.15.0") >= 0 ? "ios" === e$1() ? window._liff.postMessage("closeWindow", "") : window._liff.postMessage("closeWindow", "", "", "") : w$1("closeWindow") : window.close();
2598
+ null !== o && ("ios" === e$2() && f$8(o, "9.19") >= 0 || "android" === e$2() && f$8(o, "11.6.0") >= 0) ? location.href = "liff://close" : window._liff && window._liff.postMessage ? null !== o && f$8(o, "10.15.0") >= 0 ? "ios" === e$2() ? window._liff.postMessage("closeWindow", "") : window._liff.postMessage("closeWindow", "", "", "") : w$2("closeWindow") : window.close();
2595
2599
  }
2596
2600
  (function(i) {
2597
2601
  function n() {
@@ -2611,7 +2615,7 @@ function r$1() {
2611
2615
  })(a$8);
2612
2616
 
2613
2617
  function G(t) {
2614
- var e = l$4("subWindowGetOrigin");
2618
+ var e = l$5("subWindowGetOrigin");
2615
2619
  return f$6(e(t));
2616
2620
  }
2617
2621
  var V$1 = {};
@@ -2620,7 +2624,7 @@ function F(t, e) {
2620
2624
  t(e);
2621
2625
  });
2622
2626
  }
2623
- function _$2(t, e) {
2627
+ function _$1(t, e) {
2624
2628
  V$1[t] || (V$1[t] = []), V$1[t].push(e);
2625
2629
  }
2626
2630
  function q$1(t, e) {
@@ -2642,13 +2646,13 @@ var z$1, H$1, Q, X, Y, Z = function() {
2642
2646
  }, t.prototype.clear = function() {
2643
2647
  this.storage.clear();
2644
2648
  }, t.prototype.getKeyPrefix = function() {
2645
- return "".concat(l$9, ":").concat(this.getLiffId());
2649
+ return "".concat(l$a, ":").concat(this.getLiffId());
2646
2650
  }, t.prototype.getLiffId = function() {
2647
- var _$t = c$8().liffId;
2648
- if (!_$t) throw w$5(n$2, "liffId is necessary for liff.init()");
2651
+ var _$t = c$7().liffId;
2652
+ if (!_$t) throw w$6(n$2, "liffId is necessary for liff.init()");
2649
2653
  return _$t;
2650
2654
  }, t;
2651
- }(), $ = new Z(new b$6);
2655
+ }(), $ = new Z(new b$3);
2652
2656
  function tt$1() {
2653
2657
  var t = $.getItem("subWindowStatusUpdated");
2654
2658
  return null !== t && JSON.parse(t);
@@ -2668,17 +2672,17 @@ function it$1() {
2668
2672
  function ot$1() {
2669
2673
  return X;
2670
2674
  }
2671
- function st(n) {
2672
- return void 0 === n && (n = f$5.MAIN), __awaiter(this, void 0, void 0, function() {
2673
- return __generator(this, function(t) {
2674
- switch(t.label){
2675
+ function st$1() {
2676
+ return __awaiter(this, arguments, void 0, function(t) {
2677
+ return void 0 === t && (t = h$2.MAIN), __generator(this, function(e) {
2678
+ switch(e.label){
2675
2679
  case 0:
2676
2680
  return [
2677
2681
  4,
2678
- (Y = new E$1(n)).setup()
2682
+ (Y = new T$1(t)).setup()
2679
2683
  ];
2680
2684
  case 1:
2681
- return t.sent(), [
2685
+ return e.sent(), [
2682
2686
  2,
2683
2687
  Y
2684
2688
  ];
@@ -2689,24 +2693,24 @@ function st(n) {
2689
2693
  function ut() {
2690
2694
  return Y;
2691
2695
  }
2692
- var at$1 = new b$6, ct$1 = new Z(J$1() ? at$1 : window.sessionStorage);
2696
+ var at$1 = new b$3, ct$1 = new Z(J$1() ? at$1 : window.sessionStorage);
2693
2697
  function ft(t) {
2694
2698
  ct$1.setItem("mainWindowOrigin", t);
2695
2699
  }
2696
2700
  function lt() {
2697
2701
  return ct$1.getItem("mainWindowOrigin");
2698
2702
  }
2699
- function dt(n, r) {
2700
- return void 0 === r && (r = {}), __awaiter(this, void 0, void 0, function() {
2701
- var _$t, i, o, _$s, u, a, c, f;
2702
- return __generator(this, function(e) {
2703
+ function dt(n) {
2704
+ return __awaiter(this, arguments, void 0, function(t, n) {
2705
+ var r, i, o, _$s, u, a, c, f;
2706
+ return void 0 === n && (n = {}), __generator(this, function(e) {
2703
2707
  switch(e.label){
2704
2708
  case 0:
2705
- if (null == (_$t = ut()) ? void 0 : _$t.isReady()) return [
2709
+ if (null == (r = ut()) ? void 0 : r.isReady()) return [
2706
2710
  3,
2707
2711
  5
2708
2712
  ];
2709
- if (i = JSON.stringify(r), o = c$8().liffId, _$s = lt(), !window.opener || !_$s || !o) throw w$5(N$2);
2713
+ if (i = JSON.stringify(n), o = c$7().liffId, _$s = lt(), !window.opener || !_$s || !o) throw w$6(N$2);
2710
2714
  u = !1, e.label = 1;
2711
2715
  case 1:
2712
2716
  return e.trys.push([
@@ -2724,32 +2728,26 @@ function dt(n, r) {
2724
2728
  4
2725
2729
  ];
2726
2730
  case 3:
2727
- throw c = e.sent(), i$3.debug(c), w$5(N$2);
2731
+ throw c = e.sent(), i$3.debug(c), w$6(N$2);
2728
2732
  case 4:
2729
2733
  return f = u ? _$s : location.origin, [
2730
2734
  2,
2731
- new Promise(function(t) {
2732
- window.addEventListener("message", function e(r) {
2733
- (function(t) {
2734
- if (t.data && "string" == typeof t.data.type && [
2735
- C$5.SUBMIT,
2736
- C$5.CANCEL
2737
- ].includes(t.data.type)) return !0;
2738
- return !1;
2739
- })(r) && (window.removeEventListener("message", e), t({
2740
- status: n,
2735
+ new Promise(function(e) {
2736
+ window.addEventListener("message", function n(r) {
2737
+ mt(r) && (window.removeEventListener("message", n), e({
2738
+ status: t,
2741
2739
  result: i
2742
2740
  }));
2743
2741
  }), window.opener.postMessage({
2744
- status: n,
2742
+ status: t,
2745
2743
  result: i
2746
2744
  }, f);
2747
2745
  })
2748
2746
  ];
2749
2747
  case 5:
2750
- return _$t.send({
2751
- eventName: n,
2752
- data: r
2748
+ return r.send({
2749
+ eventName: t,
2750
+ data: n
2753
2751
  }), [
2754
2752
  4,
2755
2753
  new Promise(function(t) {
@@ -2760,8 +2758,8 @@ function dt(n, r) {
2760
2758
  return e.sent(), [
2761
2759
  2,
2762
2760
  {
2763
- status: n,
2764
- result: JSON.stringify(r)
2761
+ status: t,
2762
+ result: JSON.stringify(n)
2765
2763
  }
2766
2764
  ];
2767
2765
  }
@@ -2769,6 +2767,12 @@ function dt(n, r) {
2769
2767
  });
2770
2768
  }
2771
2769
  function mt(t) {
2770
+ return !(!t.data || "string" != typeof t.data.type || ![
2771
+ C$5.SUBMIT,
2772
+ C$5.CANCEL
2773
+ ].includes(t.data.type));
2774
+ }
2775
+ function vt(t) {
2772
2776
  var e, n = ot$1();
2773
2777
  if (t.origin === n) {
2774
2778
  var r = t.data;
@@ -2781,11 +2785,11 @@ function mt(t) {
2781
2785
  }
2782
2786
  switch(o){
2783
2787
  case R$5:
2784
- window.clearInterval(it$1()), wt();
2788
+ window.clearInterval(it$1()), gt();
2785
2789
  break;
2786
2790
  case C$5.CANCEL:
2787
2791
  case C$5.SUBMIT:
2788
- et$1(!0), window.clearInterval(it$1()), window.removeEventListener("message", mt), F(o, i), null === (e = rt$1()) || void 0 === e || e.postMessage({
2792
+ et$1(!0), window.clearInterval(it$1()), window.removeEventListener("message", vt), F(o, i), null === (e = rt$1()) || void 0 === e || e.postMessage({
2789
2793
  type: o
2790
2794
  }, ot$1());
2791
2795
  break;
@@ -2795,7 +2799,7 @@ function mt(t) {
2795
2799
  }
2796
2800
  }
2797
2801
  }
2798
- var vt = function vt(n) {
2802
+ var pt = function pt(n) {
2799
2803
  return __awaiter(void 0, void 0, void 0, function() {
2800
2804
  var _$t, r, i, o;
2801
2805
  return __generator(this, function(e) {
@@ -2804,7 +2808,7 @@ var vt = function vt(n) {
2804
2808
  ];
2805
2809
  switch(_$t = n.context, r = _$t.eventName, i = _$t.data, o = ut(), r){
2806
2810
  case C$5.INIT:
2807
- ht(!i.hasOpener);
2811
+ wt(!i.hasOpener);
2808
2812
  break;
2809
2813
  case C$5.CANCEL:
2810
2814
  case C$5.SUBMIT:
@@ -2813,7 +2817,7 @@ var vt = function vt(n) {
2813
2817
  });
2814
2818
  break;
2815
2819
  case C$5.CLOSE:
2816
- !1 === tt$1() && (et$1(!0), F(C$5.CLOSE, {})), wt();
2820
+ !1 === tt$1() && (et$1(!0), F(C$5.CLOSE, {})), gt();
2817
2821
  }
2818
2822
  return [
2819
2823
  2
@@ -2821,16 +2825,16 @@ var vt = function vt(n) {
2821
2825
  });
2822
2826
  });
2823
2827
  };
2824
- function pt() {
2825
- window.clearInterval(H$1), window.clearInterval(it$1()), window.removeEventListener("message", mt);
2828
+ function ht() {
2829
+ window.clearInterval(H$1), window.clearInterval(it$1()), window.removeEventListener("message", vt);
2826
2830
  }
2827
- function ht(t) {
2828
- if (void 0 === t && (t = !1), pt(), et$1(!1), t) {
2831
+ function wt(t) {
2832
+ if (void 0 === t && (t = !1), ht(), et$1(!1), t) {
2829
2833
  var e = rt$1();
2830
2834
  e && (e.close(), nt$1(null));
2831
2835
  }
2832
2836
  }
2833
- function wt() {
2837
+ function gt() {
2834
2838
  return __awaiter(this, void 0, void 0, function() {
2835
2839
  var _$t;
2836
2840
  return __generator(this, function(e) {
@@ -2853,43 +2857,42 @@ function wt() {
2853
2857
  });
2854
2858
  });
2855
2859
  }
2856
- function gt(i) {
2857
- var o;
2860
+ function bt(i) {
2858
2861
  return __awaiter(this, void 0, void 0, function() {
2859
- var _$t, _$s, u, a, c, f, l, b, y, S, I;
2862
+ var _$t, o, _$s, u, a, c, f, l, b, y, S, I;
2860
2863
  return __generator(this, function(e) {
2861
2864
  switch(e.label){
2862
2865
  case 0:
2863
- return (_$t = k(i.url)) ? (ht(!0), [
2866
+ return (_$t = k$1(i.url)) ? (wt(!0), [
2864
2867
  4,
2865
- wt()
2868
+ gt()
2866
2869
  ]) : [
2867
2870
  2,
2868
- Promise.reject(w$5(i$1, "params.url must be liff url or mini url"))
2871
+ Promise.reject(w$6(i$1, "params.url must be liff url or mini url"))
2869
2872
  ];
2870
2873
  case 1:
2871
- return e.sent(), nt$1("ios" !== e$1() || P$4() ? window.open("", "liffsubwindow", "width=480, height=640, menubar=no, toolbar=no, scrollbars=yes") : window.open()), _$s = i.url, u = i.appData, (a = new URL(_$s)).searchParams.append(L$4, "true"), [
2874
+ return e.sent(), nt$1("ios" !== e$2() || P$4() ? window.open("", "liffsubwindow", "width=480, height=640, menubar=no, toolbar=no, scrollbars=yes") : window.open()), o = i.url, _$s = i.appData, (u = new URL(o)).searchParams.append(L$5, "true"), [
2872
2875
  4,
2873
- st()
2876
+ st$1()
2874
2877
  ];
2875
2878
  case 2:
2876
- return c = e.sent(), a.searchParams.append(o$1, c.identification.identifier), a.searchParams.append(c$5, c.identification.cryptoKey), a.hostname = function(t) {
2879
+ return a = e.sent(), u.searchParams.append(d$2, a.identification.identifier), u.searchParams.append(u$4, a.identification.cryptoKey), u.hostname = function(t) {
2877
2880
  var _$e = __read(t.split(".")), _$i = _$e[0], o = _$e.slice(1);
2878
2881
  return __spreadArray([
2879
2882
  "".concat(_$i, "-ext")
2880
2883
  ], __read(o), !1).join(".");
2881
- }(a.hostname), f = a.toString(), [
2884
+ }(u.hostname), c = u.toString(), [
2882
2885
  4,
2883
2886
  G(_$t)
2884
2887
  ];
2885
2888
  case 3:
2886
- if (l = e.sent(), b = l.origin, y = l.subwindowCommonModule, !(S = rt$1())) throw w$5(f$9);
2887
- if (!y) return S.close(), [
2889
+ if (f = e.sent(), l = f.origin, b = f.subwindowCommonModule, !(y = rt$1())) throw w$6(f$9);
2890
+ if (!b) return y.close(), [
2888
2891
  2
2889
2892
  ];
2890
2893
  !function(t) {
2891
2894
  X = t;
2892
- }(b), c.listen(vt), c.setData("appData", u), window.addEventListener("message", mt), e.label = 4;
2895
+ }(l), a.listen(pt), a.setData("appData", _$s), window.addEventListener("message", vt), e.label = 4;
2893
2896
  case 4:
2894
2897
  return e.trys.push([
2895
2898
  4,
@@ -2898,7 +2901,7 @@ function gt(i) {
2898
2901
  7
2899
2902
  ]), [
2900
2903
  4,
2901
- null === (o = i.onBeforeTransition) || void 0 === o ? void 0 : o.call(i)
2904
+ null === (I = i.onBeforeTransition) || void 0 === I ? void 0 : I.call(i)
2902
2905
  ];
2903
2906
  case 5:
2904
2907
  return e.sent(), [
@@ -2906,21 +2909,21 @@ function gt(i) {
2906
2909
  7
2907
2910
  ];
2908
2911
  case 6:
2909
- throw I = e.sent(), S.close(), I;
2912
+ throw S = e.sent(), y.close(), S;
2910
2913
  case 7:
2911
- return S.location.href = f, _$P = function(t, e) {
2914
+ return y.location.href = c, _$P = function(t, e) {
2912
2915
  var n = rt$1(), r = {
2913
2916
  type: R$5
2914
2917
  };
2915
2918
  return e && (r.message = JSON.stringify(e)), window.setInterval(function() {
2916
2919
  null == n || n.postMessage(r, t);
2917
- }, S$5);
2918
- }(b, u), Q = _$P, function(t) {
2920
+ }, S$6);
2921
+ }(l, _$s), Q = _$P, function(t) {
2919
2922
  H$1 = t;
2920
2923
  }(window.setInterval(function() {
2921
2924
  var _$t = rt$1();
2922
- _$t && _$t.closed && (pt(), nt$1(null), !1 === tt$1() && (et$1(!0), F(C$5.CLOSE, {})));
2923
- }, p$b)), [
2925
+ _$t && _$t.closed && (ht(), nt$1(null), !1 === tt$1() && (et$1(!0), F(C$5.CLOSE, {})));
2926
+ }, p$a)), [
2924
2927
  2
2925
2928
  ];
2926
2929
  }
@@ -2928,8 +2931,8 @@ function gt(i) {
2928
2931
  });
2929
2932
  });
2930
2933
  }
2931
- var bt = null;
2932
- function yt(i) {
2934
+ var yt = null;
2935
+ function St(i) {
2933
2936
  return __awaiter(this, void 0, void 0, function() {
2934
2937
  var o, _$s, u, a, c, f, l, m, v, h, w, g, y, S, I = this;
2935
2938
  return __generator(this, function(P) {
@@ -2949,7 +2952,7 @@ function yt(i) {
2949
2952
  case 1:
2950
2953
  return t.sent(), [
2951
2954
  4,
2952
- yt({
2955
+ St({
2953
2956
  msit: o,
2954
2957
  mstChallenge: _$s,
2955
2958
  onSuccess: i.onSuccess,
@@ -2967,11 +2970,11 @@ function yt(i) {
2967
2970
  });
2968
2971
  }, f = function f() {
2969
2972
  for(var _$t = [], _$e = 0; _$e < arguments.length; _$e++)_$t[_$e] = arguments[_$e];
2970
- bt = null, i.onSuccess.apply(i, __spreadArray([], __read(_$t), !1));
2973
+ yt = null, i.onSuccess.apply(i, __spreadArray([], __read(_$t), !1));
2971
2974
  }, l = function l() {
2972
2975
  for(var _$t = [], _$e = 0; _$e < arguments.length; _$e++)_$t[_$e] = arguments[_$e];
2973
- bt = null, i.onError.apply(i, __spreadArray([], __read(_$t), !1));
2974
- }, m = Date.now(), null === bt && (bt = m), v = m - bt, a >= 10 || v > 6e5) return l(w$5(e$3, "Failed to connect")), [
2976
+ yt = null, i.onError.apply(i, __spreadArray([], __read(_$t), !1));
2977
+ }, m = Date.now(), null === yt && (yt = m), v = m - yt, a >= 10 || v > 6e5) return l(w$6(e$4, "Failed to connect")), [
2975
2978
  2
2976
2979
  ];
2977
2980
  P.label = 1;
@@ -2983,7 +2986,7 @@ function yt(i) {
2983
2986
  5
2984
2987
  ]), [
2985
2988
  4,
2986
- p$6(l$4("subWindowSubscribe"), {
2989
+ p$5(l$5("subWindowSubscribe"), {
2987
2990
  method: "POST",
2988
2991
  body: JSON.stringify({
2989
2992
  msit: o,
@@ -3021,13 +3024,13 @@ function yt(i) {
3021
3024
  case 7:
3022
3025
  return h.status >= 400 && 500 > h.status ? [
3023
3026
  4,
3024
- St(h)
3027
+ It(h)
3025
3028
  ] : [
3026
3029
  3,
3027
3030
  9
3028
3031
  ];
3029
3032
  case 8:
3030
- return g = P.sent(), w = g ? w$5(i$1, g.errorDetail) : w$5(e$3, "Some error happened in the server"), l(w), [
3033
+ return g = P.sent(), w = g ? w$6(i$1, g.errorDetail) : w$6(e$4, "Some error happened in the server"), l(w), [
3031
3034
  3,
3032
3035
  17
3033
3036
  ];
@@ -3037,10 +3040,10 @@ function yt(i) {
3037
3040
  16
3038
3041
  ] : [
3039
3042
  4,
3040
- St(h)
3043
+ It(h)
3041
3044
  ];
3042
3045
  case 10:
3043
- if (!(g = P.sent())) return l(w$5(e$3, "Some error happened in the server")), [
3046
+ if (!(g = P.sent())) return l(w$6(e$4, "Some error happened in the server")), [
3044
3047
  2
3045
3048
  ];
3046
3049
  switch(y = g.status, S = g.result, y){
@@ -3077,14 +3080,14 @@ function yt(i) {
3077
3080
  15
3078
3081
  ];
3079
3082
  case 14:
3080
- l(w$5(e$3, "Some error happened in the server")), P.label = 15;
3083
+ l(w$6(e$4, "Some error happened in the server")), P.label = 15;
3081
3084
  case 15:
3082
3085
  return [
3083
3086
  3,
3084
3087
  17
3085
3088
  ];
3086
3089
  case 16:
3087
- l(w$5(e$3, "Some error happened in the server")), P.label = 17;
3090
+ l(w$6(e$4, "Some error happened in the server")), P.label = 17;
3088
3091
  case 17:
3089
3092
  return [
3090
3093
  2
@@ -3093,7 +3096,7 @@ function yt(i) {
3093
3096
  });
3094
3097
  });
3095
3098
  }
3096
- function St(n) {
3099
+ function It(n) {
3097
3100
  return __awaiter(this, void 0, void 0, function() {
3098
3101
  return __generator(this, function(t) {
3099
3102
  switch(t.label){
@@ -3125,27 +3128,27 @@ function St(n) {
3125
3128
  });
3126
3129
  });
3127
3130
  }
3128
- function It(t) {
3131
+ function Ot(t) {
3129
3132
  var e = {};
3130
3133
  return Object.keys(t).forEach(function(n) {
3131
3134
  "closeButtonColor" === n ? "white" === t[n] ? e[n] = "#ffffff" : e[n] = "#000000" : e[n] = t[n];
3132
3135
  }), e;
3133
3136
  }
3134
- var Ot = {
3137
+ var Pt = {
3135
3138
  height: "full",
3136
3139
  closeButtonPosition: "right",
3137
3140
  closeButtonColor: "black",
3138
3141
  closeButtonLabel: ""
3139
3142
  };
3140
- function Pt(n) {
3141
- var r = n.appData, i = n.native, o = c$8().liffId, _$s = M(), u = k(n.url);
3142
- if (!o) return Promise.reject(w$5(t, "liffId is invalid"));
3143
- if (!_$s) return Promise.reject(w$5(t, "mst_challenge is invalid"));
3144
- if (!u) return Promise.reject(w$5(i$1, "params.url must be liff url or mini url"));
3145
- var a = Object.assign({}, Ot, i);
3143
+ function Ct(n) {
3144
+ var r = n.appData, i = n.native, o = c$7().liffId, _$s = M(), u = k$1(n.url);
3145
+ if (!o) return Promise.reject(w$6(t, "liffId is invalid"));
3146
+ if (!_$s) return Promise.reject(w$6(t, "mst_challenge is invalid"));
3147
+ if (!u) return Promise.reject(w$6(i$1, "params.url must be liff url or mini url"));
3148
+ var a = Object.assign({}, Pt, i);
3146
3149
  return (function(t) {
3147
3150
  var e = t.mainLiffId, _$n = t.subLiffId, r = t.mstChallenge, i = t.appData, o = t.view;
3148
- return e && r ? f$6(l$4("subWindowGetMSIT"), {
3151
+ return e && r ? f$6(l$5("subWindowGetMSIT"), {
3149
3152
  method: "POST",
3150
3153
  body: JSON.stringify({
3151
3154
  mainLiffId: e,
@@ -3154,16 +3157,16 @@ function Pt(n) {
3154
3157
  appData: i,
3155
3158
  view: o
3156
3159
  })
3157
- }) : Promise.reject(w$5(i$1, "no proper argument"));
3160
+ }) : Promise.reject(w$6(i$1, "no proper argument"));
3158
3161
  })({
3159
3162
  mainLiffId: o,
3160
3163
  subLiffId: u,
3161
3164
  mstChallenge: _$s,
3162
3165
  appData: r,
3163
- view: It(a)
3166
+ view: Ot(a)
3164
3167
  }).then(function(t) {
3165
3168
  var e = t.msit;
3166
- return yt({
3169
+ return St({
3167
3170
  msit: e,
3168
3171
  mstChallenge: _$s,
3169
3172
  onSuccess: function onSuccess(t, e) {
@@ -3175,18 +3178,17 @@ function Pt(n) {
3175
3178
  }), e;
3176
3179
  }).then(function(r) {
3177
3180
  return function(n, r) {
3178
- var i;
3179
3181
  return __awaiter(this, void 0, void 0, function() {
3180
- var _$t, o;
3182
+ var _$t, i, o;
3181
3183
  return __generator(this, function(e) {
3182
3184
  switch(e.label){
3183
3185
  case 0:
3184
- return _$t = n.url, (o = new URLSearchParams).set("msit", r), [
3186
+ return _$t = n.url, (i = new URLSearchParams).set("msit", r), [
3185
3187
  4,
3186
- null === (i = n.onBeforeTransition) || void 0 === i ? void 0 : i.call(n)
3188
+ null === (o = n.onBeforeTransition) || void 0 === o ? void 0 : o.call(n)
3187
3189
  ];
3188
3190
  case 1:
3189
- return e.sent(), location.href = "".concat(m$7, "?url=").concat(encodeURIComponent(_$t), "&").concat(o.toString()), [
3191
+ return e.sent(), location.href = "".concat(m$7, "?url=").concat(encodeURIComponent(_$t), "&").concat(i.toString()), [
3190
3192
  2
3191
3193
  ];
3192
3194
  }
@@ -3195,37 +3197,37 @@ function Pt(n) {
3195
3197
  }(n, r);
3196
3198
  });
3197
3199
  }
3198
- function Ct(t) {
3199
- return C$2.subwindowOpen(), u$8() ? Pt(t) : gt(t);
3200
- }
3201
3200
  function Lt(t) {
3202
- if (!t.mst || !t.status) return Promise.reject(w$5(i$1, "no proper argument"));
3201
+ return H$2.subwindowOpen(), u$7() ? Ct(t) : bt(t);
3202
+ }
3203
+ function Et(t) {
3204
+ if (!t.mst || !t.status) return Promise.reject(w$6(i$1, "no proper argument"));
3203
3205
  var e = JSON.stringify(t);
3204
- return f$6(l$4("subWindowPost"), {
3206
+ return f$6(l$5("subWindowPost"), {
3205
3207
  method: "POST",
3206
3208
  body: e
3207
3209
  });
3208
3210
  }
3209
- function Et() {
3210
- if (!d$4()) throw w$5(t, "this api can be only called in child window");
3211
+ function Nt() {
3212
+ if (!d$4()) throw w$6(t, "this api can be only called in child window");
3211
3213
  }
3212
- function Nt(n) {
3213
- return void 0 === n && (n = {}), Et(), u$8() ? function(n) {
3214
- return void 0 === n && (n = {}), __awaiter(this, void 0, void 0, function() {
3215
- var _$t, r;
3216
- return __generator(this, function(e) {
3214
+ function Tt(n) {
3215
+ return void 0 === n && (n = {}), Nt(), u$7() ? function() {
3216
+ return __awaiter(this, arguments, void 0, function(t$1) {
3217
+ var _$n, r;
3218
+ return void 0 === t$1 && (t$1 = {}), __generator(this, function(e) {
3217
3219
  switch(e.label){
3218
3220
  case 0:
3219
- return (_$t = D()) ? [
3221
+ return (_$n = D()) ? [
3220
3222
  4,
3221
- Lt({
3222
- mst: _$t,
3223
+ Et({
3224
+ mst: _$n,
3223
3225
  status: C$5.CANCEL,
3224
- result: n
3226
+ result: t$1
3225
3227
  })
3226
3228
  ] : [
3227
3229
  2,
3228
- Promise.reject(w$5(t, "mst is invalid"))
3230
+ Promise.reject(w$6(t, "mst is invalid"))
3229
3231
  ];
3230
3232
  case 1:
3231
3233
  return r = e.sent(), et$1(!0), [
@@ -3239,23 +3241,23 @@ function Nt(n) {
3239
3241
  return void 0 === t && (t = {}), dt(C$5.CANCEL, t);
3240
3242
  }(n);
3241
3243
  }
3242
- function Tt(n) {
3243
- return void 0 === n && (n = {}), Et(), u$8() ? function(n) {
3244
- return void 0 === n && (n = {}), __awaiter(this, void 0, void 0, function() {
3245
- var _$t, r;
3246
- return __generator(this, function(e) {
3244
+ function jt(n) {
3245
+ return void 0 === n && (n = {}), Nt(), u$7() ? function() {
3246
+ return __awaiter(this, arguments, void 0, function(t$1) {
3247
+ var _$n, r;
3248
+ return void 0 === t$1 && (t$1 = {}), __generator(this, function(e) {
3247
3249
  switch(e.label){
3248
3250
  case 0:
3249
- return (_$t = D()) ? [
3251
+ return (_$n = D()) ? [
3250
3252
  4,
3251
- Lt({
3252
- mst: _$t,
3253
+ Et({
3254
+ mst: _$n,
3253
3255
  status: C$5.SUBMIT,
3254
- result: n
3256
+ result: t$1
3255
3257
  })
3256
3258
  ] : [
3257
3259
  2,
3258
- Promise.reject(w$5(t, "mst is invalid"))
3260
+ Promise.reject(w$6(t, "mst is invalid"))
3259
3261
  ];
3260
3262
  case 1:
3261
3263
  return r = e.sent(), et$1(!0), [
@@ -3269,8 +3271,8 @@ function Tt(n) {
3269
3271
  return void 0 === t && (t = {}), dt(C$5.SUBMIT, t);
3270
3272
  }(n);
3271
3273
  }
3272
- function jt() {
3273
- return Et(), u$8() ? function() {
3274
+ function Mt() {
3275
+ return Nt(), u$7() ? function() {
3274
3276
  return __awaiter(this, void 0, void 0, function() {
3275
3277
  var _$t;
3276
3278
  return __generator(this, function(e) {
@@ -3281,14 +3283,14 @@ function jt() {
3281
3283
  2
3282
3284
  ] : (_$t = D()) ? [
3283
3285
  4,
3284
- Lt({
3286
+ Et({
3285
3287
  mst: _$t,
3286
3288
  status: C$5.CLOSE,
3287
3289
  result: {}
3288
3290
  })
3289
3291
  ] : [
3290
3292
  2,
3291
- Promise.reject(w$5(t, "mst is invalid"))
3293
+ Promise.reject(w$6(t, "mst is invalid"))
3292
3294
  ];
3293
3295
  case 1:
3294
3296
  e.sent(), e.label = 2;
@@ -3310,7 +3312,7 @@ function jt() {
3310
3312
  new Promise(function(t) {
3311
3313
  setTimeout(function() {
3312
3314
  r$1(), t();
3313
- }, S$5);
3315
+ }, S$6);
3314
3316
  })
3315
3317
  ]) : (r$1(), [
3316
3318
  2,
@@ -3320,9 +3322,9 @@ function jt() {
3320
3322
  });
3321
3323
  }();
3322
3324
  }
3323
- function Mt() {
3324
- return Et(), function() {
3325
- var t, e = b$5();
3325
+ function Bt() {
3326
+ return Nt(), function() {
3327
+ var t, e = b$2();
3326
3328
  try {
3327
3329
  t = e ? JSON.parse(e) : {};
3328
3330
  } catch (n) {
@@ -3331,33 +3333,33 @@ function Mt() {
3331
3333
  return Promise.resolve(t);
3332
3334
  }();
3333
3335
  }
3334
- function Bt(t) {
3336
+ function Dt(t) {
3335
3337
  var e = t.msit, n = t.mstVerifier;
3336
- return e && n ? f$6(l$4("subWindowGetMSTByMSIT"), {
3338
+ return e && n ? f$6(l$5("subWindowGetMSTByMSIT"), {
3337
3339
  method: "POST",
3338
3340
  body: JSON.stringify({
3339
3341
  msit: e,
3340
3342
  mstVerifier: n
3341
3343
  })
3342
- }) : Promise.reject(w$5(i$1, "no proper argument"));
3344
+ }) : Promise.reject(w$6(i$1, "no proper argument"));
3343
3345
  }
3344
- function Dt(t) {
3346
+ function At(t) {
3345
3347
  var e = t.mst;
3346
- return e ? f$6(l$4("subWindowGetAppData"), {
3348
+ return e ? f$6(l$5("subWindowGetAppData"), {
3347
3349
  method: "POST",
3348
3350
  body: JSON.stringify({
3349
3351
  mst: e
3350
3352
  })
3351
- }) : Promise.reject(w$5(i$1, "no proper argument"));
3353
+ }) : Promise.reject(w$6(i$1, "no proper argument"));
3352
3354
  }
3353
- var At = {
3354
- on: _$2,
3355
+ var Jt = {
3356
+ on: _$1,
3355
3357
  off: q$1,
3356
- open: Ct,
3357
- cancel: Nt,
3358
- submit: Tt,
3359
- close: jt,
3360
- getAppData: Mt
3358
+ open: Lt,
3359
+ cancel: Tt,
3360
+ submit: jt,
3361
+ close: Mt,
3362
+ getAppData: Bt
3361
3363
  }; (function(t) {
3362
3364
  function e() {
3363
3365
  return null !== t && t.apply(this, arguments) || this;
@@ -3371,17 +3373,17 @@ var At = {
3371
3373
  }), e.prototype.install = function() {
3372
3374
  var _$t = this;
3373
3375
  return {
3374
- on: _$2.bind(this),
3376
+ on: _$1.bind(this),
3375
3377
  off: q$1.bind(this),
3376
3378
  open: function open(e) {
3377
- return Ct.call(_$t, __assign(__assign({}, e), {
3379
+ return Lt.call(_$t, __assign(__assign({}, e), {
3378
3380
  onBeforeTransition: void 0
3379
3381
  }));
3380
3382
  },
3381
- cancel: Nt.bind(this),
3382
- submit: Tt.bind(this),
3383
- close: jt.bind(this),
3384
- getAppData: Mt.bind(this)
3383
+ cancel: Tt.bind(this),
3384
+ submit: jt.bind(this),
3385
+ close: Mt.bind(this),
3386
+ getAppData: Bt.bind(this)
3385
3387
  };
3386
3388
  }, e;
3387
3389
  })(a$8);
@@ -3481,7 +3483,7 @@ var tinySha256 = {
3481
3483
  });
3482
3484
  }(tinySha256));
3483
3485
 
3484
- var u$3 = tinySha256.exports;
3486
+ var h$1 = tinySha256.exports;
3485
3487
 
3486
3488
  var s$3 = function s() {
3487
3489
  var e = this;
@@ -3545,40 +3547,40 @@ var s$3 = function s() {
3545
3547
  };
3546
3548
  };
3547
3549
 
3548
- var _$1 = function _(i) {
3549
- var _$m, g = x$4(43), _ = y$4(u$3(g)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""), b = c$8();
3550
- if (!b || !b.liffId) throw w$5(n$2, "You need to define `liffId` for liff.login()");
3550
+ var v$1 = function v(i) {
3551
+ var o, r = x$4(43), _$d = y$4(h$1(r)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""), _ = c$7();
3552
+ if (!_ || !_.liffId) throw w$6(n$2, "You need to define `liffId` for liff.login()");
3551
3553
  var v = {
3552
- app_id: b.liffId,
3554
+ app_id: _.liffId,
3553
3555
  state: x$4(12),
3554
3556
  response_type: "code",
3555
3557
  code_challenge_method: "S256",
3556
- code_challenge: _,
3558
+ code_challenge: _$d,
3557
3559
  liff_sdk_version: r$5()
3558
3560
  };
3559
- i && i.redirectUri && (v.redirect_uri = i.redirectUri), d$4() && !u$8() && ((null === (_$m = ut()) || void 0 === _$m ? void 0 : _$m.isReady()) ? v.redirect_uri = window.location.href : v.disable_auto_login = "true"), Q$1({
3560
- codeVerifier: g
3561
+ i && i.redirectUri && (v.redirect_uri = i.redirectUri), d$4() && !u$7() && ((null === (o = ut()) || void 0 === o ? void 0 : o.isReady()) ? v.redirect_uri = window.location.href : v.disable_auto_login = "true"), Q$1({
3562
+ codeVerifier: r
3561
3563
  });
3562
- var w = l$4("authorize") + "?" + A$3.stringify(v);
3564
+ var w = l$5("authorize") + "?" + A$3.stringify(v);
3563
3565
  i$3.debug("[Redirect] ".concat(w)), window.location.href = w;
3564
- }, b$2 = function(o) {
3565
- function r() {
3566
- var _$i = null !== o && o.apply(this, arguments) || this;
3566
+ }, w$1 = function(e) {
3567
+ function t() {
3568
+ var _$i = e.apply(this, __spreadArray([], __read(arguments), !1)) || this;
3567
3569
  return _$i.hooks = {
3568
3570
  before: new s$3
3569
3571
  }, _$i;
3570
3572
  }
3571
- return __extends(r, o), Object.defineProperty(r.prototype, "name", {
3573
+ return __extends(t, e), Object.defineProperty(t.prototype, "name", {
3572
3574
  get: function get() {
3573
3575
  return "login";
3574
3576
  },
3575
3577
  enumerable: !1,
3576
3578
  configurable: !0
3577
- }), r.prototype.install = function() {
3579
+ }), t.prototype.install = function() {
3578
3580
  return this._login.bind(this);
3579
- }, r.prototype._login = function(i) {
3580
- this.hooks.before.call(i), _$1(i);
3581
- }, r;
3581
+ }, t.prototype._login = function(i) {
3582
+ this.hooks.before.call(i), v$1(i);
3583
+ }, t;
3582
3584
  }(a$8);
3583
3585
 
3584
3586
  var a$2, u$2 = "undefined" == typeof navigator ? "en" : null !== (a$2 = navigator.language) && void 0 !== a$2 ? a$2 : "en", c$3 = null;
@@ -3633,7 +3635,7 @@ function f$3() {
3633
3635
  });
3634
3636
  }
3635
3637
  function p$3(n) {
3636
- if (null === c$3) throw w$5(I$6, "please call xlt after liff.init");
3638
+ if (null === c$3) throw w$6(I$5, "please call xlt after liff.init");
3637
3639
  return c$3[n];
3638
3640
  }
3639
3641
  var d$1 = function(i) {
@@ -3683,7 +3685,7 @@ var Ae = {
3683
3685
  baseBackgroundColor: "#FFFFFF",
3684
3686
  baseTextColor: "#000000",
3685
3687
  lightButtonBorderColor: "rgba(0, 0, 0, 0.15)"
3686
- }, Te = {
3688
+ }, Ee = {
3687
3689
  iconColor: "#FFFFFF",
3688
3690
  statusBarColor: "WHITE",
3689
3691
  titleTextColor: "#FFFFFF",
@@ -3698,49 +3700,49 @@ var Ae = {
3698
3700
  baseTextColor: "#FFFFFF",
3699
3701
  lightButtonBorderColor: "rgba(255, 255, 255, 0.5)"
3700
3702
  };
3701
- function Ee() {
3703
+ function Le() {
3702
3704
  var e;
3703
- De("color-scheme", ((null == (e = E$2()) ? void 0 : e.menuColorSetting) || {
3705
+ Oe("color-scheme", ((null == (e = E$3()) ? void 0 : e.menuColorSetting) || {
3704
3706
  adaptableColorSchemes: [
3705
3707
  "light"
3706
3708
  ]
3707
3709
  }).adaptableColorSchemes.join(" "));
3708
3710
  var t = window.matchMedia("(prefers-color-scheme: dark)");
3709
- Le({
3711
+ Ne({
3710
3712
  matches: null == t ? void 0 : t.matches,
3711
3713
  media: null == t ? void 0 : t.media
3712
- }), t.addEventListener ? t.addEventListener("change", Le) : t.addListener && t.addListener(Le);
3714
+ }), t.addEventListener ? t.addEventListener("change", Ne) : t.addListener && t.addListener(Ne);
3713
3715
  }
3714
- function Le(t) {
3715
- var r = E$2(), n = (null == r ? void 0 : r.menuColorSetting) || {
3716
+ function Ne(t) {
3717
+ var r = E$3(), n = (null == r ? void 0 : r.menuColorSetting) || {
3716
3718
  adaptableColorSchemes: [
3717
3719
  "light"
3718
3720
  ],
3719
3721
  lightModeColor: Ae,
3720
- darkModeColor: Te
3721
- }, o = n.adaptableColorSchemes, i = n.lightModeColor, _$a = n.darkModeColor, c = o.includes("dark");
3722
- t.matches && c ? Ne(__assign(__assign({}, Te), _$a)) : Ne(__assign(__assign({}, Ae), i));
3722
+ darkModeColor: Ee
3723
+ }, o = n.adaptableColorSchemes, i = n.lightModeColor, a = n.darkModeColor, _$c = o.includes("dark");
3724
+ t.matches && _$c ? De(__assign(__assign({}, Ee), a)) : De(__assign(__assign({}, Ae), i));
3723
3725
  }
3724
- function Ne(e) {
3725
- var t = e.iconColor, r = e.statusBarColor, n = e.titleTextColor, o = e.titleSubtextColor, i = e.titleButtonColor, _$a = e.titleBackgroundColor, c = e.progressBarColor, s = e.progressBackgroundColor, u = e.titleButtonAreaBackgroundColor, d = e.titleButtonAreaBorderColor, h = e.baseBackgroundColor, p = e.baseTextColor, v = e.lightButtonBorderColor;
3726
- De("--liff-base-background-color", h), De("--liff-base-text-color", p), De("--liff-base-background-rgb-color", d$5(h)), De("--liff-base-text-rgb-color", d$5(p)), De("--liff-light-button-border-color", v), De("--liff-title-text-color", n), De("--liff-title-background-color", _$a), De("--liff-title-button-color", i), De("--liff-icon-color", t), De("--liff-status-bar-color", r), De("--liff-title-subtext-color", o), De("--liff-progress-bar-color", c), De("--liff-progress-background-color", s), De("--liff-title-button-area-background-color", s$7(u)), De("--liff-title-button-area-border-color", s$7(d));
3726
+ function De(e) {
3727
+ var t = e.iconColor, r = e.statusBarColor, n = e.titleTextColor, o = e.titleSubtextColor, i = e.titleButtonColor, a = e.titleBackgroundColor, _$c = e.progressBarColor, s = e.progressBackgroundColor, l = e.titleButtonAreaBackgroundColor, d = e.titleButtonAreaBorderColor, h = e.baseBackgroundColor, p = e.baseTextColor, v = e.lightButtonBorderColor;
3728
+ Oe("--liff-base-background-color", h), Oe("--liff-base-text-color", p), Oe("--liff-base-background-rgb-color", d$5(h)), Oe("--liff-base-text-rgb-color", d$5(p)), Oe("--liff-light-button-border-color", v), Oe("--liff-title-text-color", n), Oe("--liff-title-background-color", a), Oe("--liff-title-button-color", i), Oe("--liff-icon-color", t), Oe("--liff-status-bar-color", r), Oe("--liff-title-subtext-color", o), Oe("--liff-progress-bar-color", _$c), Oe("--liff-progress-background-color", s), Oe("--liff-title-button-area-background-color", s$7(l)), Oe("--liff-title-button-area-border-color", s$7(d));
3727
3729
  }
3728
- function De(e, t) {
3730
+ function Oe(e, t) {
3729
3731
  document.documentElement.style.setProperty(e, t);
3730
3732
  }
3731
- var Ue = {
3733
+ var Pe = {
3732
3734
  addToHomeScreen: function addToHomeScreen(e) {
3733
- if (!new o$3(e).invoke("addToHomeScreen")) throw w$5(E$4, "No permission for liff.addToHomeScreen()");
3735
+ if (!new o$2(e).invoke("addToHomeScreen")) throw w$6(E$5, "No permission for liff.addToHomeScreen()");
3734
3736
  },
3735
3737
  scanCode: function scanCode(e) {
3736
- if (!new o$3(e).invoke("scanCode")) return Promise.reject(w$5(E$4, "No permission for liff.scanCode()"));
3738
+ if (!new o$2(e).invoke("scanCode")) return Promise.reject(w$6(E$5, "No permission for liff.scanCode()"));
3737
3739
  },
3738
3740
  getAdvertisingId: function getAdvertisingId(e) {
3739
- if (!new o$3(e).invoke("getAdvertisingId")) return Promise.reject(w$5(E$4, "No permission for liff.getAdvertisingId()"));
3741
+ if (!new o$2(e).invoke("getAdvertisingId")) return Promise.reject(w$6(E$5, "No permission for liff.getAdvertisingId()"));
3740
3742
  },
3741
3743
  initPlugins: function initPlugins() {}
3742
3744
  };
3743
- function Oe(e) {
3745
+ function Ue(e) {
3744
3746
  return __awaiter(this, void 0, void 0, function() {
3745
3747
  var _$t;
3746
3748
  return __generator(this, function(r) {
@@ -3751,7 +3753,7 @@ function Oe(e) {
3751
3753
  y$2()
3752
3754
  ];
3753
3755
  case 1:
3754
- return (_$t = r.sent()) ? (_$t.install(e, Ue), [
3756
+ return (_$t = r.sent()) ? (_$t.install(e, Pe), [
3755
3757
  2
3756
3758
  ]) : [
3757
3759
  2
@@ -3760,14 +3762,14 @@ function Oe(e) {
3760
3762
  });
3761
3763
  });
3762
3764
  }
3763
- function Pe() {
3765
+ function We() {
3764
3766
  return __awaiter(this, void 0, void 0, function() {
3765
3767
  return __generator(this, function(e) {
3766
3768
  switch(e.label){
3767
3769
  case 0:
3768
3770
  return [
3769
3771
  4,
3770
- f$6(l$4("certs"))
3772
+ f$6(l$5("certs"))
3771
3773
  ];
3772
3774
  case 1:
3773
3775
  return [
@@ -3778,7 +3780,7 @@ function Pe() {
3778
3780
  });
3779
3781
  });
3780
3782
  }
3781
- function We(e, n, o) {
3783
+ function je(e, n, o) {
3782
3784
  return __awaiter(this, void 0, void 0, function() {
3783
3785
  var _$t;
3784
3786
  return __generator(this, function(r) {
@@ -3812,15 +3814,15 @@ function We(e, n, o) {
3812
3814
  });
3813
3815
  });
3814
3816
  }
3815
- function je(e, o) {
3817
+ function Me(e, o) {
3816
3818
  return __awaiter(this, void 0, void 0, function() {
3817
- var _$t, i, _$a, c, s, l, f, p, v, m, w, g, b, k, C, F;
3819
+ var _$t, i, a, _$c, s, l, f, u, v, m, w, g, b, k, C, F;
3818
3820
  return __generator(this, function(r) {
3819
3821
  switch(r.label){
3820
3822
  case 0:
3821
- return _$t = e.split("."), i = __read(_$t, 3), _$a = i[0], c = i[1], s = i[2], l = JSON.parse(u$9.decode(_$a)), f = JSON.parse(u$9.decodeUnicode(c)), p = l$8(u$9.decode(s)), v = l$8("".concat(_$a, ".").concat(c)), [
3823
+ return _$t = e.split("."), i = __read(_$t, 3), a = i[0], _$c = i[1], s = i[2], l = JSON.parse(u$8.decode(a)), f = JSON.parse(u$8.decodeUnicode(_$c)), u = l$9(u$8.decode(s)), v = l$9("".concat(a, ".").concat(_$c)), [
3822
3824
  4,
3823
- Pe()
3825
+ We()
3824
3826
  ];
3825
3827
  case 1:
3826
3828
  if (m = r.sent(), !(w = m.keys.find(function(e) {
@@ -3829,7 +3831,7 @@ function je(e, o) {
3829
3831
  3,
3830
3832
  6
3831
3833
  ];
3832
- if (delete w.alg, "ES256" !== l.alg) throw w$5(T$3, 'Invalid "alg" value in ID_TOKEN');
3834
+ if (delete w.alg, "ES256" !== l.alg) throw w$6(T$4, 'Invalid "alg" value in ID_TOKEN');
3833
3835
  g = void 0, r.label = 2;
3834
3836
  case 2:
3835
3837
  return r.trys.push([
@@ -3839,7 +3841,7 @@ function je(e, o) {
3839
3841
  5
3840
3842
  ]), [
3841
3843
  4,
3842
- We(w, v, p)
3844
+ je(w, v, u)
3843
3845
  ];
3844
3846
  case 3:
3845
3847
  return g = r.sent(), [
@@ -3847,20 +3849,20 @@ function je(e, o) {
3847
3849
  5
3848
3850
  ];
3849
3851
  case 4:
3850
- throw b = r.sent(), w$5(T$3, "".concat("Failed to use Crypto API to verify ID_TOKEN", ": ").concat(b));
3852
+ throw b = r.sent(), w$6(T$4, "".concat("Failed to use Crypto API to verify ID_TOKEN", ": ").concat(b));
3851
3853
  case 5:
3852
3854
  if (g) {
3853
- if (k = f.iss !== "https://access.".concat("line.me"), C = f.aud !== o, F = 1e3 * f.exp < Date.now(), k) throw w$5(T$3, 'Invalid "iss" value in ID_TOKEN');
3854
- if (C) throw w$5(T$3, 'Invalid "aud" value in ID_TOKEN');
3855
- if (F) throw w$5(T$3, 'Invalid "exp" value in ID_TOKEN');
3855
+ if (k = f.iss !== "https://access.".concat("line.me"), C = f.aud !== o, F = 1e3 * f.exp < Date.now(), k) throw w$6(T$4, 'Invalid "iss" value in ID_TOKEN');
3856
+ if (C) throw w$6(T$4, 'Invalid "aud" value in ID_TOKEN');
3857
+ if (F) throw w$6(T$4, 'Invalid "exp" value in ID_TOKEN');
3856
3858
  return [
3857
3859
  2,
3858
3860
  f
3859
3861
  ];
3860
3862
  }
3861
- throw w$5(T$3, "Invalid signature in ID_TOKEN");
3863
+ throw w$6(T$4, "Invalid signature in ID_TOKEN");
3862
3864
  case 6:
3863
- throw w$5(T$3, 'Invalid "kid" value in ID_TOKEN');
3865
+ throw w$6(T$4, 'Invalid "kid" value in ID_TOKEN');
3864
3866
  case 7:
3865
3867
  return [
3866
3868
  2
@@ -3883,14 +3885,14 @@ function Ke(e) {
3883
3885
  var t = e.pathname, r = e.query, n = r ? "?".concat(A$3.stringify(r)) : "", o = "".concat("liff://").concat(t).concat(n);
3884
3886
  location.href = o;
3885
3887
  }
3886
- var Me = null;
3887
- function Re() {
3888
- "boolean" == typeof Me && i$3.warn("liff.init is not expected to be called more than once"), Me = !!O$1() || !(!u$8() || A$3.parse(window.location.hash).feature_token || w$4()) && (P$3(!0), !0);
3889
- }
3888
+ var Re = null;
3890
3889
  function Ve() {
3891
- return Boolean(Me);
3890
+ "boolean" == typeof Re && i$3.warn("liff.init is not expected to be called more than once"), Re = !!O$2() || !(!u$7() || A$3.parse(window.location.hash).feature_token || w$5()) && (P$3(!0), !0);
3892
3891
  }
3893
- function Je(e, n) {
3892
+ function Je() {
3893
+ return Boolean(Re);
3894
+ }
3895
+ function qe(e, n) {
3894
3896
  return __awaiter(this, void 0, void 0, function() {
3895
3897
  var _$t;
3896
3898
  return __generator(this, function(r) {
@@ -3901,7 +3903,7 @@ function Je(e, n) {
3901
3903
  _$t
3902
3904
  ] : e && n ? [
3903
3905
  4,
3904
- Bt({
3906
+ Dt({
3905
3907
  msit: e,
3906
3908
  mstVerifier: n
3907
3909
  })
@@ -3923,18 +3925,18 @@ function Je(e, n) {
3923
3925
  });
3924
3926
  });
3925
3927
  }
3926
- function qe(e) {
3927
- return f$6("".concat(l$4("apps"), "/").concat(e, "/featureToken"));
3928
- }
3929
3928
  function ze(e) {
3929
+ return f$6("".concat(l$5("apps"), "/").concat(e, "/featureToken"));
3930
+ }
3931
+ function Ge(e) {
3930
3932
  return __awaiter(this, void 0, void 0, function() {
3931
- var _$t, n, i, _$a;
3933
+ var _$t, n, i, a;
3932
3934
  return __generator(this, function(r) {
3933
3935
  switch(r.label){
3934
3936
  case 0:
3935
3937
  return _$t = A$3.parse(window.location.hash), n = function(e) {
3936
3938
  for(var _$t, _$r, n = [], i = 1; i < arguments.length; i++)n[i - 1] = arguments[i];
3937
- var _$a = function a(t) {
3939
+ var a = function a(t) {
3938
3940
  Object.keys(t).filter(function(e) {
3939
3941
  return null !== t[e] && void 0 !== t[e];
3940
3942
  }).forEach(function(r) {
@@ -3942,8 +3944,8 @@ function ze(e) {
3942
3944
  });
3943
3945
  };
3944
3946
  try {
3945
- for(var c = __values(n), _$s = c.next(); !_$s.done; _$s = c.next()){
3946
- _$a(_$s.value);
3947
+ for(var _$c = __values(n), s = _$c.next(); !s.done; s = _$c.next()){
3948
+ a(s.value);
3947
3949
  }
3948
3950
  } catch (l) {
3949
3951
  _$t = {
@@ -3951,7 +3953,7 @@ function ze(e) {
3951
3953
  };
3952
3954
  } finally{
3953
3955
  try {
3954
- _$s && !_$s.done && (_$r = c.return) && _$r.call(c);
3956
+ s && !s.done && (_$r = _$c.return) && _$r.call(_$c);
3955
3957
  } finally{
3956
3958
  if (_$t) throw _$t.error;
3957
3959
  }
@@ -3960,15 +3962,15 @@ function ze(e) {
3960
3962
  }({
3961
3963
  access_token: x$3(),
3962
3964
  context_token: K(),
3963
- feature_token: w$4(),
3965
+ feature_token: w$5(),
3964
3966
  id_token: X$1(),
3965
3967
  client_id: j(),
3966
3968
  mst_challenge: M(),
3967
- mst_verifier: h$3(),
3968
- msit: v$4()
3969
- }, _$t), Ve() ? e$2() ? [
3969
+ mst_verifier: h$5(),
3970
+ msit: v$3()
3971
+ }, _$t), Je() ? e$3() ? [
3970
3972
  4,
3971
- qe(e)
3973
+ ze(e)
3972
3974
  ] : [
3973
3975
  3,
3974
3976
  2
@@ -3979,7 +3981,7 @@ function ze(e) {
3979
3981
  case 1:
3980
3982
  i = r.sent().featureToken, n.feature_token || (n.feature_token = i), r.label = 2;
3981
3983
  case 2:
3982
- (_$a = m$6(e)) && (n.client_id = _$a), r.label = 3;
3984
+ (a = m$6(e)) && (n.client_id = a), r.label = 3;
3983
3985
  case 3:
3984
3986
  return [
3985
3987
  2,
@@ -3989,12 +3991,12 @@ function ze(e) {
3989
3991
  });
3990
3992
  });
3991
3993
  }
3992
- function Ge(e) {
3993
- if (e.persisted && T$1("multipleLiffTransition")) if ("ios" === e$1()) window.location.reload();
3994
+ function Qe(e) {
3995
+ if (e.persisted && k("multipleLiffTransition")) if ("ios" === e$2()) window.location.reload();
3994
3996
  else {
3995
- var t = c$8().liffId, r = w$4();
3996
- if (!t) throw w$5(I$6, "Invalid LIFF ID.");
3997
- if (!r) throw w$5(E$4, "Invalid featureToken for client features");
3997
+ var t = c$7().liffId, r = w$5();
3998
+ if (!t) throw w$6(I$5, "Invalid LIFF ID.");
3999
+ if (!r) throw w$6(E$5, "Invalid featureToken for client features");
3998
4000
  Ke({
3999
4001
  pathname: "app/".concat(t),
4000
4002
  query: {
@@ -4003,10 +4005,9 @@ function Ge(e) {
4003
4005
  });
4004
4006
  }
4005
4007
  }
4006
- function Qe(e) {
4007
- var n, o;
4008
+ function Xe(e) {
4008
4009
  return __awaiter(this, void 0, void 0, function() {
4009
- var _$t, i, _$a, c, l, f, d, h, v, g, b, C, F, I, y, _, B$1;
4010
+ var _$t, n, o, i, a, _$c, s, f, u, h, p, m, b, k$1, F, y, I, _, B;
4010
4011
  return __generator(this, function(r) {
4011
4012
  switch(r.label){
4012
4013
  case 0:
@@ -4019,40 +4020,40 @@ function Qe(e) {
4019
4020
  else {
4020
4021
  i$3.debug("cannot find window._liff.features, listen to ready event");
4021
4022
  var _$r = function r() {
4022
- i$3.debug("ready event is fired"), u$4("ready", _$r), e();
4023
+ i$3.debug("ready event is fired"), u$3("ready", _$r), e();
4023
4024
  };
4024
4025
  s$4("ready", _$r);
4025
4026
  }
4026
4027
  })
4027
4028
  ];
4028
4029
  case 1:
4029
- return r.sent(), Re(), [
4030
+ return r.sent(), Ve(), [
4030
4031
  4,
4031
- ze(e.liffId)
4032
+ Ge(e.liffId)
4032
4033
  ];
4033
4034
  case 2:
4034
- if (_$t = r.sent(), i = _$t.access_token, _$a = _$t.context_token, c = _$t.feature_token, l = _$t.id_token, f = _$t.client_id, d = _$t.mst_verifier, h = _$t.mst_challenge, v = _$t.msit, _$a) {
4035
- if ("string" != typeof _$a) throw w$5(I$6, "Cannot get context token, perhaps there is an incorrect parameter in permanent link");
4036
- I$4(He(_$a));
4035
+ if (_$t = r.sent(), n = _$t.access_token, o = _$t.context_token, i = _$t.feature_token, a = _$t.id_token, _$c = _$t.client_id, s = _$t.mst_verifier, f = _$t.mst_challenge, u = _$t.msit, o) {
4036
+ if ("string" != typeof o) throw w$6(I$5, "Cannot get context token, perhaps there is an incorrect parameter in permanent link");
4037
+ I$3(He(o));
4037
4038
  }
4038
- if (void 0 !== (null === (n = E$2()) || void 0 === n ? void 0 : n.liffId) && (null === (o = E$2()) || void 0 === o ? void 0 : o.liffId) !== e.liffId) throw w$5(I$6, "Invalid LIFF ID");
4039
- return !d$4() && c && (!function(e, t) {
4040
- T$1("multipleLiffTransition") && Ke({
4039
+ if (void 0 !== (null === (_ = E$3()) || void 0 === _ ? void 0 : _.liffId) && (null === (B = E$3()) || void 0 === B ? void 0 : B.liffId) !== e.liffId) throw w$6(I$5, "Invalid LIFF ID");
4040
+ return !d$4() && i && (!function(e, t) {
4041
+ k("multipleLiffTransition") && Ke({
4041
4042
  pathname: "app/".concat(e),
4042
4043
  query: {
4043
4044
  feature_token: t
4044
4045
  }
4045
4046
  });
4046
- }(e.liffId, c), Ve() && U$2(c)), h && R$3(h), d && A$2(d), f && F$1(f), v && C$3(v), window.addEventListener("pageshow", Ge), e$2() ? [
4047
+ }(e.liffId, i), Je() && U$2(i)), f && R$3(f), s && A$2(s), _$c && F$1(_$c), u && C$3(u), window.addEventListener("pageshow", Qe), e$3() ? [
4047
4048
  3,
4048
4049
  5
4049
- ] : c && i ? [
4050
+ ] : i && n ? [
4050
4051
  3,
4051
4052
  5
4052
- ] : Ve() ? (g = E$3(location.href, {
4053
+ ] : Je() ? (h = E$4(location.href, {
4053
4054
  "liff.hback": "2"
4054
- }), _$1({
4055
- redirectUri: g
4055
+ }), v$1({
4056
+ redirectUri: h
4056
4057
  }), [
4057
4058
  4,
4058
4059
  new Promise(function() {})
@@ -4063,45 +4064,45 @@ function Qe(e) {
4063
4064
  case 3:
4064
4065
  r.sent(), r.label = 4;
4065
4066
  case 4:
4066
- throw _$1(), w$5(I$6, "Failed to parse feature_token or access_token");
4067
+ throw v$1(), w$6(I$5, "Failed to parse feature_token or access_token");
4067
4068
  case 5:
4068
- return i && c ? [
4069
+ return n && i ? [
4069
4070
  4,
4070
- d$3(i)
4071
+ d$3(n)
4071
4072
  ] : [
4072
4073
  3,
4073
4074
  7
4074
4075
  ];
4075
4076
  case 6:
4076
- if (b = r.sent(), C = b.client_id, F = b.expires_in, I = m$6(e.liffId), C !== I) throw _$1(), w$5(I$6, "Failed to verify access_token");
4077
- U$2(c), q$2(new Date(Date.now() + 1e3 * F)), B(i), r.label = 7;
4077
+ if (p = r.sent(), m = p.client_id, b = p.expires_in, k$1 = m$6(e.liffId), m !== k$1) throw v$1(), w$6(I$5, "Failed to verify access_token");
4078
+ U$2(i), q$2(new Date(Date.now() + 1e3 * b)), B$1(n), r.label = 7;
4078
4079
  case 7:
4079
4080
  return [
4080
4081
  4,
4081
- Je(v, d)
4082
+ qe(u, s)
4082
4083
  ];
4083
4084
  case 8:
4084
- return (y = r.sent()) ? (L$2(y), [
4085
+ return (F = r.sent()) ? (L$3(F), [
4085
4086
  4,
4086
- Dt({
4087
- mst: y
4087
+ At({
4088
+ mst: F
4088
4089
  })
4089
4090
  ]) : [
4090
4091
  3,
4091
4092
  10
4092
4093
  ];
4093
4094
  case 9:
4094
- (_ = r.sent().data) && N$1(JSON.stringify(_)), r.label = 10;
4095
+ (y = r.sent().data) && N$1(JSON.stringify(y)), r.label = 10;
4095
4096
  case 10:
4096
- return l && !X$1() && G$1(l), l && f && !Z$1() ? [
4097
+ return a && !X$1() && G$1(a), a && _$c && !Z$1() ? [
4097
4098
  4,
4098
- je(l, f)
4099
+ Me(a, _$c)
4099
4100
  ] : [
4100
4101
  3,
4101
4102
  12
4102
4103
  ];
4103
4104
  case 11:
4104
- (B$1 = r.sent()) && $$1(B$1), r.label = 12;
4105
+ (I = r.sent()) && $$1(I), r.label = 12;
4105
4106
  case 12:
4106
4107
  return [
4107
4108
  2
@@ -4110,13 +4111,13 @@ function Qe(e) {
4110
4111
  });
4111
4112
  });
4112
4113
  }
4113
- function Xe(e) {
4114
+ function Ye(e) {
4114
4115
  return __awaiter(this, void 0, void 0, function() {
4115
- var _$t, n, o, i, _$a, c, s;
4116
+ var _$t, n, o, i, a, _$c, s;
4116
4117
  return __generator(this, function(r) {
4117
4118
  switch(r.label){
4118
4119
  case 0:
4119
- return _$t = l$4("apps"), n = "".concat(_$t, "/").concat(e, "/contextToken"), o = x$3(), i = {
4120
+ return _$t = l$5("apps"), n = "".concat(_$t, "/").concat(e, "/contextToken"), o = x$3(), i = {
4120
4121
  "Content-Type": "application/json",
4121
4122
  Accept: "application/json"
4122
4123
  }, o && (i.Authorization = "Bearer ".concat(o)), [
@@ -4126,8 +4127,8 @@ function Xe(e) {
4126
4127
  })
4127
4128
  ];
4128
4129
  case 1:
4129
- if (_$a = r.sent(), !(c = _$a.contextToken)) throw w$5(I$6, "Can not get context from server.");
4130
- if (!(s = He(c))) throw w$5(I$6, "Invalid context token.");
4130
+ if (a = r.sent(), !(_$c = a.contextToken)) throw w$6(I$5, "Can not get context from server.");
4131
+ if (!(s = He(_$c))) throw w$6(I$5, "Invalid context token.");
4131
4132
  return [
4132
4133
  2,
4133
4134
  s
@@ -4136,40 +4137,40 @@ function Xe(e) {
4136
4137
  });
4137
4138
  });
4138
4139
  }
4139
- function Ye() {
4140
+ function Ze() {
4140
4141
  return __awaiter(this, void 0, void 0, function() {
4141
4142
  var e, _$t;
4142
4143
  return __generator(this, function(r) {
4143
4144
  switch(r.label){
4144
4145
  case 0:
4145
- if (!(e = c$8().liffId)) throw w$5(I$6, "Invalid LIFF ID.");
4146
+ if (!(e = c$7().liffId)) throw w$6(I$5, "Invalid LIFF ID.");
4146
4147
  return [
4147
4148
  4,
4148
- Xe(e)
4149
+ Ye(e)
4149
4150
  ];
4150
4151
  case 1:
4151
- return _$t = r.sent(), I$4(_$t), [
4152
+ return _$t = r.sent(), I$3(_$t), [
4152
4153
  2
4153
4154
  ];
4154
4155
  }
4155
4156
  });
4156
4157
  });
4157
4158
  }
4158
- function Ze(e) {
4159
+ function $e(e) {
4159
4160
  return __awaiter(this, void 0, void 0, function() {
4160
- var n, o, i, _$a = this;
4161
+ var n, o, i, a = this;
4161
4162
  return __generator(this, function(c) {
4162
4163
  switch(c.label){
4163
4164
  case 0:
4164
4165
  n = function n() {
4165
- return __awaiter(_$a, void 0, void 0, function() {
4166
- var _$t, n, o, i, _$a, _$c;
4166
+ return __awaiter(a, void 0, void 0, function() {
4167
+ var _$t, n, o, i, a, _$c;
4167
4168
  return __generator(this, function(r) {
4168
4169
  switch(r.label){
4169
4170
  case 0:
4170
4171
  return [
4171
4172
  4,
4172
- (s = c$8(), l = A$3.parse(window.location.search), f = J(), u = {
4173
+ (s = c$7(), l = A$3.parse(window.location.search), f = J(), u = {
4173
4174
  grant_type: "authorization_code",
4174
4175
  client_id: l.liffClientId,
4175
4176
  appId: s.liffId,
@@ -4177,7 +4178,7 @@ function Ze(e) {
4177
4178
  code_verifier: f.codeVerifier,
4178
4179
  redirect_uri: s.redirectUri || l.liffRedirectUri,
4179
4180
  id_token_key_type: "JWK"
4180
- }, d = A$3.stringify(u), f$6(l$4("token"), {
4181
+ }, d = A$3.stringify(u), f$6(l$5("token"), {
4181
4182
  method: "POST",
4182
4183
  headers: {
4183
4184
  "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
@@ -4186,17 +4187,17 @@ function Ze(e) {
4186
4187
  }))
4187
4188
  ];
4188
4189
  case 1:
4189
- return _$t = r.sent(), n = _$t.access_token, o = _$t.id_token, i = _$t.expires_in, F$1(e), B(n), q$2(new Date(Date.now() + 1e3 * i)), W(), o ? (G$1(o), [
4190
+ return _$t = r.sent(), n = _$t.access_token, o = _$t.id_token, i = _$t.expires_in, F$1(e), B$1(n), q$2(new Date(Date.now() + 1e3 * i)), W(), o ? (G$1(o), [
4190
4191
  4,
4191
- je(o, e)
4192
+ Me(o, e)
4192
4193
  ]) : [
4193
4194
  3,
4194
4195
  3
4195
4196
  ];
4196
4197
  case 2:
4197
- (_$a = r.sent()) && $$1(_$a), r.label = 3;
4198
+ (a = r.sent()) && $$1(a), r.label = 3;
4198
4199
  case 3:
4199
- return (_$c = A$3.parse(location.hash).context_token) ? (I$4(He(_$c)), [
4200
+ return (_$c = A$3.parse(location.hash).context_token) ? (I$3(He(_$c)), [
4200
4201
  3,
4201
4202
  6
4202
4203
  ]) : [
@@ -4206,7 +4207,7 @@ function Ze(e) {
4206
4207
  case 4:
4207
4208
  return [
4208
4209
  4,
4209
- Ye()
4210
+ Ze()
4210
4211
  ];
4211
4212
  case 5:
4212
4213
  r.sent(), r.label = 6;
@@ -4244,9 +4245,9 @@ function Ze(e) {
4244
4245
  });
4245
4246
  });
4246
4247
  }
4247
- function $e() {
4248
+ function et() {
4248
4249
  return __awaiter(this, void 0, void 0, function() {
4249
- var e, n, o, i, _$a, c, l = this;
4250
+ var e, n, o, i, a, _$c, s = this;
4250
4251
  return __generator(this, function(f) {
4251
4252
  switch(f.label){
4252
4253
  case 0:
@@ -4255,7 +4256,7 @@ function $e() {
4255
4256
  2
4256
4257
  ] : [
4257
4258
  4,
4258
- st(f$5.SUB)
4259
+ st$1(h$2.SUB)
4259
4260
  ];
4260
4261
  case 1:
4261
4262
  n = f.sent(), f.label = 2;
@@ -4268,7 +4269,7 @@ function $e() {
4268
4269
  8
4269
4270
  ];
4270
4271
  case 3:
4271
- return i = f.sent(), _$a = i.eventName, c = i.data, _$a !== d$2.NOT_FOUND ? [
4272
+ return i = f.sent(), a = i.eventName, _$c = i.data, a !== f$5.NOT_FOUND ? [
4272
4273
  3,
4273
4274
  6
4274
4275
  ] : [
@@ -4278,7 +4279,7 @@ function $e() {
4278
4279
  case 4:
4279
4280
  return f.sent(), [
4280
4281
  4,
4281
- $e()
4282
+ et()
4282
4283
  ];
4283
4284
  case 5:
4284
4285
  return [
@@ -4286,10 +4287,10 @@ function $e() {
4286
4287
  f.sent()
4287
4288
  ];
4288
4289
  case 6:
4289
- c && N$1(JSON.stringify(c)), f.label = 7;
4290
+ _$c && N$1(JSON.stringify(_$c)), f.label = 7;
4290
4291
  case 7:
4291
4292
  return e.listen(function(n) {
4292
- return __awaiter(l, void 0, void 0, function() {
4293
+ return __awaiter(s, void 0, void 0, function() {
4293
4294
  var _$t, i;
4294
4295
  return __generator(this, function(r) {
4295
4296
  return _$t = n.context, i = _$t.data, _$t.eventName === C$5.INIT && (null == i ? void 0 : i.subWindowId) !== o && r$1(), _$t.eventName !== C$5.CANCEL && _$t.eventName !== C$5.SUBMIT || e.teardown(), [
@@ -4297,7 +4298,7 @@ function $e() {
4297
4298
  ];
4298
4299
  });
4299
4300
  });
4300
- }), e$2() && e.send({
4301
+ }), e$3() && e.send({
4301
4302
  eventName: C$5.INIT,
4302
4303
  data: {
4303
4304
  subWindowId: o,
@@ -4318,8 +4319,8 @@ function $e() {
4318
4319
  return function t(r) {
4319
4320
  var n = r.data, o = r.source, i = r.origin;
4320
4321
  if (n) {
4321
- var _$a = n.type, c = n.message;
4322
- _$a === R$5 && (window.removeEventListener("message", t), c && N$1(c), ft(i), o && o.postMessage && o.postMessage({
4322
+ var a = n.type, _$c = n.message;
4323
+ a === R$5 && (window.removeEventListener("message", t), _$c && N$1(_$c), ft(i), o && o.postMessage && o.postMessage({
4323
4324
  status: R$5
4324
4325
  }, i), e());
4325
4326
  }
@@ -4340,24 +4341,27 @@ function $e() {
4340
4341
  });
4341
4342
  });
4342
4343
  }
4343
- var et = new (function() {
4344
+ var tt = new (function() {
4344
4345
  function e() {
4345
4346
  var _$e = this;
4346
4347
  this.getAndValidateContext = function() {
4347
- var _$e = E$2();
4348
- if (!_$e) throw w$5(I$6, "Could not get Context from server.");
4349
- if (!_$e.endpointUrl) throw w$5(I$6, "Could not get endpointUrl from server.");
4350
- if (!_$e.permanentLinkPattern) throw w$5(I$6, "Could not get permanentLinkPattern from server.");
4348
+ var _$e = E$3();
4349
+ if (!_$e) throw w$6(I$5, "Could not get Context from server.");
4350
+ if (!_$e.endpointUrl) throw w$6(I$5, "Could not get endpointUrl from server.");
4351
+ if (!_$e.permanentLinkPattern) throw w$6(I$5, "Could not get permanentLinkPattern from server.");
4351
4352
  return _$e;
4352
4353
  }, this.decodeState = function(t) {
4353
4354
  var r = _$e.getAndValidateContext();
4354
4355
  t = t.replace(/\n/g, "%0D%0A");
4355
- var n = !r.endpointUrl.startsWith("/?") && r.endpointUrl.includes("/?") || !r.endpointUrl.startsWith("/#") && r.endpointUrl.includes("/#") || r.endpointUrl.endsWith("/") || !t.startsWith("/?") && t.includes("/?") || !t.startsWith("/#") && t.includes("/#") || t.endsWith("/"), o = new URL(r.endpointUrl), i = o.origin, _$a = o.pathname, c = o.search, s = new URL("".concat(i).concat(_$e.attachSlashAtStart(t))), l = s.pathname, f = s.search, u = s.hash, d = "".concat(c).concat(c ? f.replace(/\?/g, "&") : f), h = "".concat(_$a).concat(_$e.attachSlashAtStart(l)).replace("//", "/");
4356
+ var n = _$e.hasTrailingSlash(r.endpointUrl) || _$e.hasTrailingSlash(t), o = new URL(r.endpointUrl), i = o.origin, a = o.pathname, _$c = o.search, s = new URL("".concat(i).concat(_$e.attachSlashAtStart(t))), l = s.pathname, f = s.search, u = s.hash, d = "".concat(_$c).concat(_$c ? f.replace(/\?/g, "&") : f), h = "".concat(a).concat(_$e.attachSlashAtStart(l)).replace("//", "/");
4356
4357
  return (h = _$e.attachSlashAtStart("".concat(h))).endsWith("/") && !n && (h = h.substring(0, h.length - 1)), "".concat(i).concat(h).concat(d).concat(u).replace(/%0D%0A/g, "\n");
4357
4358
  };
4358
4359
  }
4359
4360
  return e.prototype.attachSlashAtStart = function(e) {
4360
4361
  return "".concat(e && e.length > 0 && !e.startsWith("/") ? "/" : "").concat(e);
4362
+ }, e.prototype.hasTrailingSlash = function(e) {
4363
+ var t = e.indexOf("?"), r = e.indexOf("#"), n = -1;
4364
+ return (n = -1 === t && -1 === r ? e.length : -1 === t ? r : -1 === r ? t : Math.min(t, r)) > 0 && "/" === e[n - 1];
4361
4365
  }, e.prototype.invoke = function() {
4362
4366
  return __awaiter(this, void 0, void 0, function() {
4363
4367
  var _$e, _$t, n, o, i;
@@ -4377,7 +4381,7 @@ var et = new (function() {
4377
4381
  ]), n = location.href, (o = this.decodeState(_$t)) === n ? [
4378
4382
  3,
4379
4383
  3
4380
- ] : (_$e["liff.hback"] ? location.replace(E$3(o, {
4384
+ ] : (_$e["liff.hback"] ? location.replace(E$4(o, {
4381
4385
  "liff.hback": _$e["liff.hback"]
4382
4386
  })) : location.replace(o), [
4383
4387
  4,
@@ -4391,7 +4395,7 @@ var et = new (function() {
4391
4395
  5
4392
4396
  ];
4393
4397
  case 4:
4394
- if ((i = r.sent()).code === I$6) throw i;
4398
+ if ((i = r.sent()).code === I$5) throw i;
4395
4399
  return i$3.debug(i), [
4396
4400
  3,
4397
4401
  5
@@ -4405,27 +4409,27 @@ var et = new (function() {
4405
4409
  });
4406
4410
  }, e;
4407
4411
  }());
4408
- function tt(e, n) {
4412
+ function rt(e, n) {
4409
4413
  return __awaiter(this, void 0, void 0, function() {
4410
4414
  var _$t;
4411
4415
  return __generator(this, function(r) {
4412
4416
  switch(r.label){
4413
4417
  case 0:
4414
- if (!e.liffId) throw w$5(n$2, "liffId is necessary for liff.init()");
4415
- return l$7(e), !u$8() && e$2() && (z$2() || o$2()), _$t = A$3.parse(window.location.search), !d$4() || u$8() ? [
4418
+ if (!e.liffId) throw w$6(n$2, "liffId is necessary for liff.init()");
4419
+ return l$8(e), !u$7() && e$3() && (z$2() || o$1()), _$t = A$3.parse(window.location.search), !d$4() || u$7() ? [
4416
4420
  3,
4417
4421
  2
4418
4422
  ] : [
4419
4423
  4,
4420
- $e()
4424
+ et()
4421
4425
  ];
4422
4426
  case 1:
4423
4427
  r.sent(), r.label = 2;
4424
4428
  case 2:
4425
- if (_$t.error && _$t.liffOAuth2Error) throw _$a = _$t.error, c = _$t.error_description, l = c.replace(/\+/g, " "), f = "".concat(_$a, ": ").concat(l), w$5(I$6, f);
4426
- return o = _$t.code, i = J(), Boolean(o && !e$2() && i && i.codeVerifier) ? [
4429
+ if (_$t.error && _$t.liffOAuth2Error) throw a = _$t.error, _$c = _$t.error_description, s = _$c.replace(/\+/g, " "), f = "".concat(a, ": ").concat(s), w$6(I$5, f);
4430
+ return o = _$t.code, i = J(), Boolean(o && !e$3() && i && i.codeVerifier) ? [
4427
4431
  4,
4428
- Ze(_$t.liffClientId)
4432
+ $e(_$t.liffClientId)
4429
4433
  ] : [
4430
4434
  3,
4431
4435
  4
@@ -4433,9 +4437,9 @@ function tt(e, n) {
4433
4437
  case 3:
4434
4438
  r.sent(), r.label = 4;
4435
4439
  case 4:
4436
- return u$8() ? [
4440
+ return u$7() ? [
4437
4441
  4,
4438
- Qe(e)
4442
+ Xe(e)
4439
4443
  ] : [
4440
4444
  3,
4441
4445
  6
@@ -4446,19 +4450,19 @@ function tt(e, n) {
4446
4450
  8
4447
4451
  ];
4448
4452
  case 6:
4449
- return e$2() ? [
4453
+ return e$3() ? [
4450
4454
  3,
4451
4455
  8
4452
4456
  ] : [
4453
4457
  4,
4454
- Ye()
4458
+ Ze()
4455
4459
  ];
4456
4460
  case 7:
4457
4461
  r.sent(), r.label = 8;
4458
4462
  case 8:
4459
4463
  return [
4460
4464
  4,
4461
- et.invoke()
4465
+ tt.invoke()
4462
4466
  ];
4463
4467
  case 9:
4464
4468
  return r.sent(), [
@@ -4470,23 +4474,23 @@ function tt(e, n) {
4470
4474
  2
4471
4475
  ];
4472
4476
  }
4473
- var o, i, _$a, c, l, f;
4477
+ var o, i, a, _$c, s, f;
4474
4478
  });
4475
4479
  });
4476
4480
  }
4477
- var rt = function rt(e, t) {
4481
+ var nt = function nt(e, t) {
4478
4482
  return new Promise(function(r, n) {
4479
4483
  if (e) {
4480
4484
  var o = document.createElement("script");
4481
4485
  o.type = "module", o.onload = function() {
4482
4486
  r();
4483
4487
  }, o.src = e, document.head.appendChild(o);
4484
- } else n(w$5(n$2, t));
4488
+ } else n(w$6(n$2, t));
4485
4489
  });
4486
- }, nt = function nt(e) {
4490
+ }, ot = function ot(e) {
4487
4491
  var t = "https://static.line-scdn.net/lui/edge/versions/1.13.0/lui-alert.js";
4488
- return t && e && (t = t.replace(/\d{1,2}\.\d{1,2}\.\d{1,3}/, e)), rt(t, "LUI_ALERT_URL is not defined");
4489
- }, ot = function ot() {
4492
+ return t && e && (t = t.replace(/\d{1,2}\.\d{1,2}\.\d{1,3}/, e)), nt(t, "LUI_ALERT_URL is not defined");
4493
+ }, it = function it() {
4490
4494
  return __awaiter(void 0, void 0, void 0, function() {
4491
4495
  var e;
4492
4496
  return __generator(this, function(t) {
@@ -4500,14 +4504,14 @@ var rt = function rt(e, t) {
4500
4504
  2
4501
4505
  ] : [
4502
4506
  4,
4503
- rt("https://static.line-scdn.net/lui/edge/versions/1.13.0/luivendor.js", "LUI_VENDOR_URL is not defined")
4507
+ nt("https://static.line-scdn.net/lui/edge/versions/1.13.0/luivendor.js", "LUI_VENDOR_URL is not defined")
4504
4508
  ];
4505
4509
  case 1:
4506
4510
  t.sent(), t.label = 2;
4507
4511
  case 2:
4508
4512
  return [
4509
4513
  4,
4510
- nt(e)
4514
+ ot(e)
4511
4515
  ];
4512
4516
  case 3:
4513
4517
  return t.sent(), [
@@ -4517,10 +4521,10 @@ var rt = function rt(e, t) {
4517
4521
  e.innerHTML = '<lui-alert id="'.concat("liffAlert", "-").concat(_$r, '" shown title="').concat(p$3("alert.android.extBrowser.autoLoginWorkaround.title"), '" message="').concat(p$3("alert.android.extBrowser.autoLoginWorkaround.desc"), '" button="').concat(p$3("alert.android.extBrowser.autoLoginWorkaround.button.text"), '"></lui-alert>'), document.body.appendChild(e);
4518
4522
  var _$t = document.getElementById("".concat("liffAlert", "-").concat(_$r));
4519
4523
  _$t && _$t.addEventListener("lui-button-click", function() {
4520
- var e = window.open(E$3(window.location.href, {
4524
+ var e = window.open(E$4(window.location.href, {
4521
4525
  liffIsEscapedFromApp: "true"
4522
4526
  }), "_blank");
4523
- e && (e.location.href = E$3(window.location.href, {
4527
+ e && (e.location.href = E$4(window.location.href, {
4524
4528
  liffIsEscapedFromApp: "true"
4525
4529
  }), window.close());
4526
4530
  });
@@ -4534,31 +4538,30 @@ var rt = function rt(e, t) {
4534
4538
  var _$r;
4535
4539
  });
4536
4540
  });
4537
- }, it = function it(e) {
4541
+ }, at = function at(e) {
4538
4542
  try {
4539
4543
  return new URL(e).searchParams.get("lineAppVersion");
4540
4544
  } catch (t) {
4541
4545
  return null;
4542
4546
  }
4543
4547
  };
4544
- function at() {
4545
- var e;
4548
+ function ct() {
4546
4549
  return __awaiter(this, void 0, void 0, function() {
4547
- var _$t, n;
4550
+ var e, _$t, n;
4548
4551
  return __generator(this, function(r) {
4549
4552
  switch(r.label){
4550
4553
  case 0:
4551
- return _$t = null !== (e = it(window.location.href)) && void 0 !== e ? e : it(window.document.referrer), !!_$t && f$8(_$t, "13.10.0") >= 0 ? [
4554
+ return e = null !== (n = at(window.location.href)) && void 0 !== n ? n : at(window.document.referrer), !!e && f$8(e, "13.10.0") >= 0 ? [
4552
4555
  2
4553
- ] : u$8() || "android" !== e$1() || (n = A$3.parse(window.location.search))[o$1] || n.liffIsEscapedFromApp ? [
4556
+ ] : u$7() || "android" !== e$2() || (_$t = A$3.parse(window.location.search))[d$2] || _$t.liffIsEscapedFromApp ? [
4554
4557
  2
4555
- ] : n.liffClientId && document.referrer.includes("access.".concat("line.me")) ? (window.location.href = E$3(window.location.href, {
4558
+ ] : _$t.liffClientId && document.referrer.includes("access.".concat("line.me")) ? (window.location.href = E$4(window.location.href, {
4556
4559
  liffIsEscapedFromApp: "true"
4557
4560
  }), [
4558
4561
  2
4559
- ]) : n.liffClientId && document.referrer.includes("android-app://") ? [
4562
+ ]) : _$t.liffClientId && document.referrer.includes("android-app://") ? [
4560
4563
  4,
4561
- ot()
4564
+ it()
4562
4565
  ] : [
4563
4566
  3,
4564
4567
  2
@@ -4566,9 +4569,9 @@ function at() {
4566
4569
  case 1:
4567
4570
  r.sent(), r.label = 2;
4568
4571
  case 2:
4569
- return n.liffClientId && "" === document.referrer && 1 === window.history.length ? [
4572
+ return _$t.liffClientId && "" === document.referrer && 1 === window.history.length ? [
4570
4573
  4,
4571
- ot()
4574
+ it()
4572
4575
  ] : [
4573
4576
  3,
4574
4577
  4
@@ -4581,7 +4584,7 @@ function at() {
4581
4584
  6
4582
4585
  ] : [
4583
4586
  4,
4584
- ot()
4587
+ it()
4585
4588
  ];
4586
4589
  case 5:
4587
4590
  r.sent(), r.label = 6;
@@ -4593,9 +4596,9 @@ function at() {
4593
4596
  });
4594
4597
  });
4595
4598
  }
4596
- var ct = function(e) {
4597
- function n() {
4598
- var t = null !== e && e.apply(this, arguments) || this;
4599
+ var st = function(e) {
4600
+ function o() {
4601
+ var t = e.apply(this, __spreadArray([], __read(arguments), !1)) || this;
4599
4602
  return t.hooks = {
4600
4603
  before: new a$3,
4601
4604
  after: new a$3
@@ -4605,16 +4608,16 @@ var ct = function(e) {
4605
4608
  error: new a$3
4606
4609
  }, t;
4607
4610
  }
4608
- return __extends(n, e), Object.defineProperty(n.prototype, "name", {
4611
+ return __extends(o, e), Object.defineProperty(o.prototype, "name", {
4609
4612
  get: function get() {
4610
4613
  return "init";
4611
4614
  },
4612
4615
  enumerable: !1,
4613
4616
  configurable: !0
4614
- }), n.prototype.install = function(e) {
4617
+ }), o.prototype.install = function(e) {
4615
4618
  var t = e.liff;
4616
4619
  return this.liffForWindow = t, this.init.bind(this);
4617
- }, n.prototype.init = function(e, n, o) {
4620
+ }, o.prototype.init = function(e, n, o) {
4618
4621
  return __awaiter(this, void 0, void 0, function() {
4619
4622
  var _$t;
4620
4623
  return __generator(this, function(r) {
@@ -4635,20 +4638,20 @@ var ct = function(e) {
4635
4638
  ]), [
4636
4639
  4,
4637
4640
  Promise.all([
4638
- Oe(this.liffForWindow),
4639
- tt(e, this.internalHooks.beforeFinished.call)
4641
+ Ue(this.liffForWindow),
4642
+ rt(e, this.internalHooks.beforeFinished.call)
4640
4643
  ])
4641
4644
  ];
4642
4645
  case 3:
4643
- return r.sent(), Ee(), [
4646
+ return r.sent(), Le(), [
4644
4647
  4,
4645
4648
  this.internalHooks.beforeSuccess.call()
4646
4649
  ];
4647
4650
  case 4:
4648
- return r.sent(), !e.withLoginOnExternalBrowser || e$2() ? [
4651
+ return r.sent(), !e.withLoginOnExternalBrowser || e$3() ? [
4649
4652
  3,
4650
4653
  6
4651
- ] : (_$1(), [
4654
+ ] : (v$1(), [
4652
4655
  4,
4653
4656
  new Promise(function() {})
4654
4657
  ]);
@@ -4657,7 +4660,7 @@ var ct = function(e) {
4657
4660
  case 6:
4658
4661
  return [
4659
4662
  4,
4660
- at()
4663
+ ct()
4661
4664
  ];
4662
4665
  case 7:
4663
4666
  return r.sent(), [
@@ -4665,7 +4668,7 @@ var ct = function(e) {
4665
4668
  this.hooks.after.call()
4666
4669
  ];
4667
4670
  case 8:
4668
- return r.sent(), "function" == typeof n && n(), e$4(), [
4671
+ return r.sent(), "function" == typeof n && n(), e$5(), [
4669
4672
  3,
4670
4673
  11
4671
4674
  ];
@@ -4684,9 +4687,33 @@ var ct = function(e) {
4684
4687
  var _$i;
4685
4688
  });
4686
4689
  });
4687
- }, n;
4690
+ }, o;
4688
4691
  }(a$8);
4689
4692
 
4693
+ function e() {
4694
+ return {
4695
+ liffApp: "https://liff.".concat("line.me"),
4696
+ liffServer: "https://api.".concat("line.me"),
4697
+ miniApp: "https://miniapp.".concat("line.me")
4698
+ };
4699
+ }
4700
+ (function(n) {
4701
+ function i() {
4702
+ return null !== n && n.apply(this, arguments) || this;
4703
+ }
4704
+ return __extends(i, n), Object.defineProperty(i.prototype, "name", {
4705
+ get: function get() {
4706
+ return "getOrigins";
4707
+ },
4708
+ enumerable: !1,
4709
+ configurable: !0
4710
+ }), i.prototype.install = function() {
4711
+ return function() {
4712
+ return e();
4713
+ };
4714
+ }, i;
4715
+ })(a$8);
4716
+
4690
4717
  function r() {
4691
4718
  return navigator.language;
4692
4719
  }
@@ -4709,7 +4736,7 @@ function r() {
4709
4736
 
4710
4737
  function f$2() {
4711
4738
  var r = r$4();
4712
- if (!r || !u$8() || "ios" !== e$1()) return navigator.language;
4739
+ if (!r || !u$7() || "ios" !== e$2()) return navigator.language;
4713
4740
  if (f$8(r, "14.11.0") >= 0) {
4714
4741
  var _$t = window.prompt("LIFF:GET_APP_LANGUAGE");
4715
4742
  if (_$t) return _$t;
@@ -4733,15 +4760,15 @@ function f$2() {
4733
4760
  }, i;
4734
4761
  })(a$8);
4735
4762
 
4736
- function I$3(r) {
4763
+ function I$2(r) {
4737
4764
  return __awaiter(this, void 0, void 0, function() {
4738
4765
  var _$e, i, o, u, l, h, v;
4739
4766
  return __generator(this, function(t$1) {
4740
4767
  switch(t$1.label){
4741
4768
  case 0:
4742
4769
  return function(e) {
4743
- if (!U$4.includes(e)) throw w$5(i$1, "Unexpected permission name.");
4744
- var _$t = E$2();
4770
+ if (!U$4.includes(e)) throw w$6(i$1, "Unexpected permission name.");
4771
+ var _$t = E$3();
4745
4772
  return !!(null == _$t ? void 0 : _$t.scope.includes(e));
4746
4773
  }(r) ? (_$e = x$3()) ? [
4747
4774
  4,
@@ -4782,36 +4809,38 @@ function I$3(r) {
4782
4809
  }
4783
4810
  ];
4784
4811
  case 2:
4785
- throw w$5(t, "Need access_token for api call, Please login first");
4812
+ throw w$6(t, "Need access_token for api call, Please login first");
4786
4813
  }
4787
4814
  });
4788
4815
  });
4789
4816
  }
4790
- function A$1() {
4791
- var e, t, n = E$2();
4792
- return !!n && "square_chat" !== n.type && (T$1("skipChannelVerificationScreen") || !u$8() && (null === (t = null === (e = n.availability) || void 0 === e ? void 0 : e.skipChannelVerificationScreen) || void 0 === t ? void 0 : t.permission));
4817
+ function A() {
4818
+ var e, t, n = E$3();
4819
+ return !!n && "square_chat" !== n.type && (k("skipChannelVerificationScreen") || !u$7() && (null === (t = null === (e = n.availability) || void 0 === e ? void 0 : e.skipChannelVerificationScreen) || void 0 === t ? void 0 : t.permission));
4793
4820
  }
4794
- function S$1() {
4795
- var e = c$8().liffId;
4796
- if (e) return f$6("".concat(l$4("unauthorizedPermissions"), "?liffId=").concat(e), {
4821
+ function P$2() {
4822
+ var e = c$7().liffId;
4823
+ if (e) return f$6("".concat(l$5("unauthorizedPermissions"), "?liffId=").concat(e), {
4797
4824
  headers: {
4798
4825
  "Content-Type": "application/json",
4799
4826
  Accept: "application/json",
4800
4827
  Authorization: "Bearer ".concat(x$3())
4801
4828
  }
4802
4829
  });
4803
- throw w$5(t, "liffId is required");
4830
+ throw w$6(t, "liffId is required");
4804
4831
  }
4805
- var T, P$2 = At.on, q = At.off, _ = At.open, x$2 = function() {
4832
+ var S$2, T = Jt.on, _ = Jt.off, q = Jt.open, x$2 = function() {
4806
4833
  function n(n, r) {
4807
4834
  var i = this;
4808
4835
  this.onSubmit = function(n) {
4809
- var _$r = n.newAccessToken, o = n.ICA_ERROR;
4810
- return __awaiter(i, void 0, void 0, function() {
4836
+ return __awaiter(i, [
4837
+ n
4838
+ ], void 0, function(e) {
4839
+ var _$n = e.newAccessToken, _$r = e.ICA_ERROR;
4811
4840
  return __generator(this, function(e) {
4812
- return _$r ? this.resolve({
4813
- newAccessToken: _$r
4814
- }) : o && this.reject(w$5(e$3, o)), this.teardown(), [
4841
+ return _$n ? this.resolve({
4842
+ newAccessToken: _$n
4843
+ }) : _$r && this.reject(w$6(e$4, _$r)), this.teardown(), [
4815
4844
  2
4816
4845
  ];
4817
4846
  });
@@ -4819,7 +4848,7 @@ var T, P$2 = At.on, q = At.off, _ = At.open, x$2 = function() {
4819
4848
  }, this.onClose = function() {
4820
4849
  return __awaiter(i, void 0, void 0, function() {
4821
4850
  return __generator(this, function(e) {
4822
- return this.reject(w$5(t, "user didn't allow the agreement")), this.teardown(), [
4851
+ return this.reject(w$6(t, "user didn't allow the agreement")), this.teardown(), [
4823
4852
  2
4824
4853
  ];
4825
4854
  });
@@ -4827,7 +4856,7 @@ var T, P$2 = At.on, q = At.off, _ = At.open, x$2 = function() {
4827
4856
  }, this.onCancel = function() {
4828
4857
  return __awaiter(i, void 0, void 0, function() {
4829
4858
  return __generator(this, function(e) {
4830
- return this.reject(w$5(t, "user didn't allow the agreement")), this.teardown(), [
4859
+ return this.reject(w$6(t, "user didn't allow the agreement")), this.teardown(), [
4831
4860
  2
4832
4861
  ];
4833
4862
  });
@@ -4843,12 +4872,12 @@ var T, P$2 = At.on, q = At.off, _ = At.open, x$2 = function() {
4843
4872
  }, this.resolve = n, this.reject = r, this.setup();
4844
4873
  }
4845
4874
  return n.prototype.setup = function() {
4846
- P$2("submit", this.onSubmit), P$2("close", this.onClose), P$2("cancel", this.onCancel), P$2("error", this.onError);
4875
+ T("submit", this.onSubmit), T("close", this.onClose), T("cancel", this.onCancel), T("error", this.onError);
4847
4876
  }, n.prototype.teardown = function() {
4848
- q("submit", this.onSubmit), q("close", this.onClose), q("cancel", this.onCancel), q("error", this.onError), T = void 0;
4877
+ _("submit", this.onSubmit), _("close", this.onClose), _("cancel", this.onCancel), _("error", this.onError), S$2 = void 0;
4849
4878
  }, n.prototype.open = function(e) {
4850
- var t$1 = c$8().liffId;
4851
- t$1 ? _({
4879
+ var t$1 = c$7().liffId;
4880
+ t$1 ? q({
4852
4881
  url: "".concat("https://liff.line.me/1656032314-Xgrw5Pmk"),
4853
4882
  appData: {
4854
4883
  liffId: t$1,
@@ -4856,17 +4885,17 @@ var T, P$2 = At.on, q = At.off, _ = At.open, x$2 = function() {
4856
4885
  accessToken: x$3()
4857
4886
  },
4858
4887
  onBeforeTransition: e
4859
- }).catch(this.reject) : this.reject(w$5(t, "liffId is required"));
4888
+ }).catch(this.reject) : this.reject(w$6(t, "liffId is required"));
4860
4889
  }, n;
4861
4890
  }();
4862
- function E() {
4891
+ function E$1() {
4863
4892
  return __awaiter(this, void 0, void 0, function() {
4864
4893
  var n, r, i = this;
4865
4894
  return __generator(this, function(o) {
4866
4895
  switch(o.label){
4867
4896
  case 0:
4868
- if (!A$1()) throw w$5(E$4, "SkipChannelVerificationScreen is unavailable.");
4869
- return T && T.teardown(), n = function n() {
4897
+ if (!A()) throw w$6(E$5, "SkipChannelVerificationScreen is unavailable.");
4898
+ return S$2 && S$2.teardown(), n = function n() {
4870
4899
  return __awaiter(i, void 0, void 0, function() {
4871
4900
  var _$e;
4872
4901
  return __generator(this, function(t) {
@@ -4874,12 +4903,12 @@ function E() {
4874
4903
  case 0:
4875
4904
  return [
4876
4905
  4,
4877
- S$1()
4906
+ P$2()
4878
4907
  ];
4879
4908
  case 1:
4880
- if (_$e = t.sent(), (u$8() ? _$e : _$e.filter(function(e) {
4909
+ if (_$e = t.sent(), (u$7() ? _$e : _$e.filter(function(e) {
4881
4910
  return "chat_message.write" !== e;
4882
- })).length <= 0) throw w$5(E$4, "All permissions have already been approved.");
4911
+ })).length <= 0) throw w$6(E$5, "All permissions have already been approved.");
4883
4912
  return [
4884
4913
  2
4885
4914
  ];
@@ -4889,18 +4918,40 @@ function E() {
4889
4918
  }, [
4890
4919
  4,
4891
4920
  new Promise(function(e, t) {
4892
- (T = new x$2(e, t)).open(n);
4921
+ (S$2 = new x$2(e, t)).open(n);
4893
4922
  })
4894
4923
  ];
4895
4924
  case 1:
4896
- return r = o.sent().newAccessToken, B(r), [
4925
+ return r = o.sent().newAccessToken, B$1(r), [
4897
4926
  2
4898
4927
  ];
4899
4928
  }
4900
4929
  });
4901
4930
  });
4902
4931
  }
4903
- function R$2(n, o) {
4932
+ function R$2() {
4933
+ return __awaiter(this, void 0, void 0, function() {
4934
+ var _$e, n;
4935
+ return __generator(this, function(t$1) {
4936
+ switch(t$1.label){
4937
+ case 0:
4938
+ if (!(_$e = x$3())) throw w$6(t, "Need access_token for api call, Please login first");
4939
+ return [
4940
+ 4,
4941
+ d$3(_$e)
4942
+ ];
4943
+ case 1:
4944
+ return n = t$1.sent(), [
4945
+ 2,
4946
+ decodeURIComponent(n.scope).split(" ").filter(function(e) {
4947
+ return "" !== e;
4948
+ })
4949
+ ];
4950
+ }
4951
+ });
4952
+ });
4953
+ }
4954
+ function V(n, o) {
4904
4955
  var s = this;
4905
4956
  return function() {
4906
4957
  for(var c = [], a = 0; a < arguments.length; a++)c[a] = arguments[a];
@@ -4911,21 +4962,21 @@ function R$2(n, o) {
4911
4962
  case 0:
4912
4963
  return _$e = (c.length > 0 ? c[c.length - 1] : {}).ignorePermissionCheck, s = void 0 !== _$e && _$e, [
4913
4964
  4,
4914
- I$3(o)
4965
+ I$2(o)
4915
4966
  ];
4916
4967
  case 1:
4917
4968
  if ("unavailable" !== (a = t.sent().state)) return [
4918
4969
  3,
4919
4970
  2
4920
4971
  ];
4921
- throw w$5(E$4, "The permission is not in LIFF app scope.");
4972
+ throw w$6(E$5, "The permission is not in LIFF app scope.");
4922
4973
  case 2:
4923
- return "prompt" !== a || !A$1() || s || !u$8() && "chat_message.write" === o ? [
4974
+ return "prompt" !== a || !A() || s || !u$7() && "chat_message.write" === o ? [
4924
4975
  3,
4925
4976
  4
4926
4977
  ] : [
4927
4978
  4,
4928
- E()
4979
+ E$1()
4929
4980
  ];
4930
4981
  case 3:
4931
4982
  return t.sent(), [
@@ -4949,7 +5000,7 @@ function R$2(n, o) {
4949
5000
  });
4950
5001
  };
4951
5002
  }
4952
- var V = function(e) {
5003
+ var z = function(e) {
4953
5004
  function t() {
4954
5005
  return null !== e && e.apply(this, arguments) || this;
4955
5006
  }
@@ -4961,14 +5012,15 @@ var V = function(e) {
4961
5012
  configurable: !0
4962
5013
  }), t.prototype.install = function() {
4963
5014
  return {
4964
- query: I$3,
4965
- requestAll: E
5015
+ query: I$2,
5016
+ requestAll: E$1,
5017
+ getGrantedAll: R$2
4966
5018
  };
4967
5019
  }, t;
4968
- }(a$8), z = new V;
5020
+ }(a$8), B = new z;
4969
5021
 
4970
5022
  function n$1() {
4971
- return f$6(l$4("profile"));
5023
+ return f$6(l$5("profile"));
4972
5024
  }
4973
5025
  (function(t) {
4974
5026
  function e() {
@@ -4981,7 +5033,7 @@ function n$1() {
4981
5033
  enumerable: !1,
4982
5034
  configurable: !0
4983
5035
  }), e.prototype.install = function() {
4984
- return R$2(n$1, "profile");
5036
+ return V(n$1, "profile");
4985
5037
  }, e;
4986
5038
  })(a$8);
4987
5039
 
@@ -5002,9 +5054,9 @@ function p$2(n) {
5002
5054
  typeof _$e === "undefined" ? "undefined" : _type_of(_$e)
5003
5055
  ], 2), _$f = _$r[0], _$l = _$r[1];
5004
5056
  return "string" === _$f && "" !== _$o && ("undefined" === _$l || "boolean" === _$l);
5005
- }(n)) throw w$5(i$1, "Invalid parameters for liff.openWindow()");
5057
+ }(n)) throw w$6(i$1, "Invalid parameters for liff.openWindow()");
5006
5058
  var _$u = r$4();
5007
- if (u$8()) if (null !== _$u && "ios" === e$1() && f$8(_$u, "9.19") >= 0 || !window._liff.postMessage) {
5059
+ if (u$7()) if (null !== _$u && "ios" === e$2() && f$8(_$u, "9.19") >= 0 || !window._liff.postMessage) {
5008
5060
  var p = n.url, s = n.external, d = void 0 !== s && s;
5009
5061
  window.open(function(n, t) {
5010
5062
  var _$o, _$e, _$r, _$f, _$l, _$c, _$u, p, s;
@@ -5016,7 +5068,7 @@ function p$2(n) {
5016
5068
  var d = a$1(s, p);
5017
5069
  return "".concat(_$u, "?").concat("is_liff_external_open_window", "=").concat(!!t).concat(d);
5018
5070
  }(p, d));
5019
- } else w$1("openWindow", n);
5071
+ } else w$2("openWindow", n);
5020
5072
  else window.open(n.url, "_blank");
5021
5073
  }
5022
5074
  (function(i) {
@@ -5049,14 +5101,14 @@ var m$2 = function m(r) {
5049
5101
  }(r.type);
5050
5102
  };
5051
5103
  function p$1(r) {
5052
- return Promise.reject(w$5(i$1, r));
5104
+ return Promise.reject(w$6(i$1, r));
5053
5105
  }
5054
5106
  function l$1(r) {
5055
5107
  if (!function(r) {
5056
5108
  return Array.isArray(r) && r.every(m$2);
5057
5109
  }(r)) return p$1("Parameter 'messages' must be an array of { type, ... }");
5058
5110
  var e = r.length;
5059
- return e < 1 || e > 5 ? p$1("Number of messages should be in range 1 to ".concat(5, ".")) : f$6(l$4("message"), {
5111
+ return e < 1 || e > 5 ? p$1("Number of messages should be in range 1 to ".concat(5, ".")) : f$6(l$5("message"), {
5060
5112
  method: "POST",
5061
5113
  body: JSON.stringify({
5062
5114
  messages: r
@@ -5065,7 +5117,7 @@ function l$1(r) {
5065
5117
  }
5066
5118
  var c$2 = function c(r) {
5067
5119
  if ("403" === r.code) {
5068
- var e = "12.0.0" === r$4(), o = "ios" === e$1(), n = P$4();
5120
+ var e = "12.0.0" === r$4(), o = "ios" === e$2(), n = P$4();
5069
5121
  e && (o || n) && window.alert("LINEアプリをLINE 12.0.1以降にアップデートしてください。\nPlease update your LINE app to LINE 12.0.1 or later.");
5070
5122
  }
5071
5123
  throw r;
@@ -5080,12 +5132,12 @@ var c$2 = function c(r) {
5080
5132
  enumerable: !1,
5081
5133
  configurable: !0
5082
5134
  }), t.prototype.install = function() {
5083
- return R$2(l$1, "chat_message.write");
5135
+ return V(l$1, "chat_message.write");
5084
5136
  }, t;
5085
5137
  })(a$8);
5086
5138
 
5087
5139
  function o() {
5088
- return f$6(l$4("friendship"));
5140
+ return f$6(l$5("friendship"));
5089
5141
  }
5090
5142
  (function(t) {
5091
5143
  function e() {
@@ -5098,17 +5150,17 @@ function o() {
5098
5150
  enumerable: !1,
5099
5151
  configurable: !0
5100
5152
  }), e.prototype.install = function() {
5101
- return R$2(o, "profile");
5153
+ return V(o, "profile");
5102
5154
  }, e;
5103
5155
  })(a$8);
5104
5156
 
5105
- function g$2() {
5157
+ function I$1() {
5106
5158
  return __awaiter(this, void 0, void 0, function() {
5107
5159
  var _$t, i;
5108
5160
  return __generator(this, function(e) {
5109
5161
  switch(e.label){
5110
5162
  case 0:
5111
- if (!e$2()) return [
5163
+ if (!e$3()) return [
5112
5164
  3,
5113
5165
  6
5114
5166
  ];
@@ -5155,7 +5207,7 @@ function g$2() {
5155
5207
  });
5156
5208
  });
5157
5209
  }
5158
- function b$1() {
5210
+ function m$1() {
5159
5211
  return __awaiter(this, void 0, void 0, function() {
5160
5212
  var _$t;
5161
5213
  return __generator(this, function(e) {
@@ -5163,7 +5215,7 @@ function b$1() {
5163
5215
  case 0:
5164
5216
  return [
5165
5217
  4,
5166
- g$2()
5218
+ I$1()
5167
5219
  ];
5168
5220
  case 1:
5169
5221
  return (_$t = e.sent()) && "u" === _$t.substring(0, 1) ? [
@@ -5176,9 +5228,9 @@ function b$1() {
5176
5228
  });
5177
5229
  });
5178
5230
  }
5179
- var I$2 = function(u) {
5180
- function d() {
5181
- var t = null !== u && u.apply(this, arguments) || this;
5231
+ var L$2 = function(a) {
5232
+ function p() {
5233
+ var t = a.apply(this, __spreadArray([], __read(arguments), !1)) || this;
5182
5234
  return t.utsExtra = {
5183
5235
  isLiffSuccessful: !1,
5184
5236
  isLoggedIn: !1,
@@ -5186,19 +5238,19 @@ var I$2 = function(u) {
5186
5238
  version: ""
5187
5239
  }, t.injected = !1, t;
5188
5240
  }
5189
- return __extends(d, u), Object.defineProperty(d, "CUSTOMPLACEID_INIT", {
5241
+ return __extends(p, a), Object.defineProperty(p, "CUSTOMPLACEID_INIT", {
5190
5242
  get: function get() {
5191
5243
  return "liff.init";
5192
5244
  },
5193
5245
  enumerable: !1,
5194
5246
  configurable: !0
5195
- }), Object.defineProperty(d, "CUSTOMTYPE", {
5247
+ }), Object.defineProperty(p, "CUSTOMTYPE", {
5196
5248
  get: function get() {
5197
5249
  return "liffSdk";
5198
5250
  },
5199
5251
  enumerable: !1,
5200
5252
  configurable: !0
5201
- }), Object.defineProperty(d, "LiffUtsLoginStatus", {
5253
+ }), Object.defineProperty(p, "LiffUtsLoginStatus", {
5202
5254
  get: function get() {
5203
5255
  return {
5204
5256
  isLoggedIn: 1,
@@ -5207,51 +5259,51 @@ var I$2 = function(u) {
5207
5259
  },
5208
5260
  enumerable: !1,
5209
5261
  configurable: !0
5210
- }), Object.defineProperty(d.prototype, "name", {
5262
+ }), Object.defineProperty(p.prototype, "name", {
5211
5263
  get: function get() {
5212
5264
  return "analytics";
5213
5265
  },
5214
5266
  enumerable: !1,
5215
5267
  configurable: !0
5216
- }), d.prototype.install = function(t) {
5268
+ }), p.prototype.install = function(t) {
5217
5269
  var e = t.liff, _$i = t.internalHooks;
5218
5270
  this.liffCore = e, _$i.init.beforeFinished(this.beforeInitFinished.bind(this)), _$i.init.beforeSuccess(this.beforeInitSuccess.bind(this)), _$i.init.error(this.initError.bind(this));
5219
- }, d.prototype.changeRatioToUTSFormat = function(t) {
5271
+ }, p.prototype.changeRatioToUTSFormat = function(t) {
5220
5272
  if (t && Number.isFinite(t)) return Math.round(100 * t);
5221
- }, d.prototype.setExtra = function() {
5222
- var t, e = this.utsExtra, _$i = e.isLiffSuccessful, s = e.isLoggedIn, r = e.id, n = e.version, o = (s ? d.LiffUtsLoginStatus.isLoggedIn : 0) | (_$i ? d.LiffUtsLoginStatus.isLiffSuccessful : 0);
5273
+ }, p.prototype.setExtra = function() {
5274
+ var t, e = this.utsExtra, _$i = e.isLiffSuccessful, s = e.isLoggedIn, r = e.id, n = e.version, o = (s ? p.LiffUtsLoginStatus.isLoggedIn : 0) | (_$i ? p.LiffUtsLoginStatus.isLiffSuccessful : 0);
5223
5275
  null === (t = this.uts) || void 0 === t || t.setExtra("liff", {
5224
5276
  id: r,
5225
5277
  loginStatus: o,
5226
5278
  version: n
5227
5279
  });
5228
- }, d.prototype.assignUtsExtra = function(t) {
5280
+ }, p.prototype.assignUtsExtra = function(t) {
5229
5281
  Object.assign(this.utsExtra, t);
5230
- }, d.prototype.setVersion = function(t) {
5282
+ }, p.prototype.setVersion = function(t) {
5231
5283
  this.assignUtsExtra({
5232
5284
  version: t
5233
5285
  }), i$3.debug("[LIFFUTS][SDK version] ".concat(t)), this.setExtra();
5234
- }, d.prototype.setLiffId = function(t) {
5286
+ }, p.prototype.setLiffId = function(t) {
5235
5287
  this.assignUtsExtra({
5236
5288
  id: t
5237
5289
  }), i$3.debug("[LIFFUTS][LIFFID] ".concat(t)), this.setExtra();
5238
- }, d.prototype.setIsLoggedIn = function(t) {
5290
+ }, p.prototype.setIsLoggedIn = function(t) {
5239
5291
  this.assignUtsExtra({
5240
5292
  isLoggedIn: t
5241
5293
  }), i$3.debug("[LIFFUTS][isLoggedIn] ".concat(t)), this.setExtra();
5242
- }, d.prototype.sendLiffInit = function() {
5294
+ }, p.prototype.sendLiffInit = function() {
5243
5295
  var t;
5244
5296
  i$3.debug("[LIFFUTS][sendCustom] liff.init"), null === (t = this.uts) || void 0 === t || t.sendCustom({
5245
- type: d.CUSTOMTYPE,
5297
+ type: p.CUSTOMTYPE,
5246
5298
  params: {
5247
- placeId: d.CUSTOMPLACEID_INIT
5299
+ placeId: p.CUSTOMPLACEID_INIT
5248
5300
  }
5249
5301
  });
5250
- }, d.prototype.setIsLiffSuccessful = function(t) {
5302
+ }, p.prototype.setIsLiffSuccessful = function(t) {
5251
5303
  this.assignUtsExtra({
5252
5304
  isLiffSuccessful: t
5253
5305
  }), i$3.debug("[LIFFUTS][isLiffInitSuccessful] ".concat(t)), this.setExtra();
5254
- }, d.prototype.prepareReferrer = function(t) {
5306
+ }, p.prototype.prepareReferrer = function(t) {
5255
5307
  var e = {};
5256
5308
  Object.keys(t).forEach(function(i) {
5257
5309
  if (A$4.includes(i)) {
@@ -5259,16 +5311,16 @@ var I$2 = function(u) {
5259
5311
  "string" == typeof s && s && (e[i.replace(/^liff\.ref\./, "")] = s);
5260
5312
  }
5261
5313
  }), Object.keys(e).length > 0 && (this.referrer = e);
5262
- }, d.prototype.beforeInitFinished = function() {
5314
+ }, p.prototype.beforeInitFinished = function() {
5263
5315
  return __awaiter(this, void 0, void 0, function() {
5264
- var _$t, _$i, r, _$u, _$d, h, g, I, m, L, S, v;
5316
+ var _$t, _$i, s, r, o, _$a, _$p, b, I, L, S, v;
5265
5317
  return __generator(this, function(e) {
5266
5318
  switch(e.label){
5267
5319
  case 0:
5268
- if (_$t = A$3.parse(window.location.search), this.prepareReferrer(_$t), _$i = E$2(), !(r = null == _$i ? void 0 : _$i.utsTracking)) return [
5320
+ if (_$t = A$3.parse(window.location.search), this.prepareReferrer(_$t), _$i = E$3(), !(s = null == _$i ? void 0 : _$i.utsTracking)) return [
5269
5321
  2
5270
5322
  ];
5271
- if (_$u = c$8(), _$d = _$u.liffId, h = _$u.analytics, "auto" !== r.mode || !h) return [
5323
+ if (r = c$7(), o = r.liffId, _$a = r.analytics, "auto" !== s.mode || !_$a) return [
5272
5324
  3,
5273
5325
  6
5274
5326
  ];
@@ -5279,43 +5331,43 @@ var I$2 = function(u) {
5279
5331
  3,
5280
5332
  ,
5281
5333
  4
5282
- ]), g = this, [
5334
+ ]), _$p = this, [
5283
5335
  4,
5284
5336
  new Promise(function(t, e) {
5285
- var _$i = window.uts, _$s = document.createElement("script");
5286
- _$s.type = "text/javascript", _$s.src = "https://static.line-scdn.net/uts/edge/4.1.0/uts.js", _$s.onload = function() {
5337
+ var _$i = window.uts, s = document.createElement("script");
5338
+ s.type = "text/javascript", s.src = "https://static.line-scdn.net/uts/edge/4.1.0/uts.js", s.onload = function() {
5287
5339
  var _$e = window.uts;
5288
5340
  t(_$e), window.uts = _$i;
5289
- }, _$s.onerror = function(t) {
5341
+ }, s.onerror = function(t) {
5290
5342
  e(t);
5291
- }, document.getElementsByTagName("head")[0].appendChild(_$s);
5343
+ }, document.getElementsByTagName("head")[0].appendChild(s);
5292
5344
  })
5293
5345
  ];
5294
5346
  case 2:
5295
- return g.uts = e.sent(), [
5347
+ return _$p.uts = e.sent(), [
5296
5348
  3,
5297
5349
  4
5298
5350
  ];
5299
5351
  case 3:
5300
- return I = e.sent(), i$3.debug("[LIFFUTS] cannot load UTS, reason: ".concat(I)), [
5352
+ return b = e.sent(), i$3.debug("[LIFFUTS] cannot load UTS, reason: ".concat(b)), [
5301
5353
  2
5302
5354
  ];
5303
5355
  case 4:
5304
- return m = __assign(__assign({}, h.context), {
5305
- utsId: h.context.utsId,
5306
- appName: h.context.appName,
5307
- appEnv: h.context.appEnv || "release"
5356
+ return I = __assign(__assign({}, _$a.context), {
5357
+ utsId: _$a.context.utsId,
5358
+ appName: _$a.context.appName,
5359
+ appEnv: _$a.context.appEnv || "release"
5308
5360
  }), L = __assign(__assign({
5309
5361
  endpoint: "https://uts-front.line-apps.com"
5310
- }, h.options), {
5311
- sampleRate: this.changeRatioToUTSFormat(r.sendRatio),
5362
+ }, _$a.options), {
5363
+ sampleRate: this.changeRatioToUTSFormat(s.sendRatio),
5312
5364
  version: "current"
5313
- }), this.uts.init(m, L), [
5365
+ }), this.uts.init(I, L), [
5314
5366
  4,
5315
- b$1()
5367
+ m$1()
5316
5368
  ];
5317
5369
  case 5:
5318
- (S = e.sent()) && (i$3.debug("[LIFFUTS][mid] ".concat(S)), this.uts.setMid(S)), (null == _$i ? void 0 : _$i.tid) && (i$3.debug("[LIFFUTS][tid] ".concat(_$i.tid)), this.uts.setTid(_$i.tid)), this.referrer && (i$3.debug("liff.ref.referrer", this.referrer), this.uts.setSessionParams(this.referrer)), _$d && this.setLiffId(_$d), this.setIsLoggedIn(e$2()), this.setVersion(r$5()), v = C$4(location.href), i$3.debug("[LIFFUTS][url] ".concat(v)), this.uts.setUrl(v), this.liffCore.analytics = this.uts, this.injected = !0, e.label = 6;
5370
+ (S = e.sent()) && (i$3.debug("[LIFFUTS][mid] ".concat(S)), this.uts.setMid(S)), (null == _$i ? void 0 : _$i.tid) && (i$3.debug("[LIFFUTS][tid] ".concat(_$i.tid)), this.uts.setTid(_$i.tid)), this.referrer && (i$3.debug("liff.ref.referrer", this.referrer), this.uts.setSessionParams(this.referrer)), o && this.setLiffId(o), this.setIsLoggedIn(e$3()), this.setVersion(r$5()), v = C$4(location.href), i$3.debug("[LIFFUTS][url] ".concat(v)), this.uts.setUrl(v), this.liffCore.analytics = this.uts, this.injected = !0, e.label = 6;
5319
5371
  case 6:
5320
5372
  return [
5321
5373
  2
@@ -5323,12 +5375,12 @@ var I$2 = function(u) {
5323
5375
  }
5324
5376
  });
5325
5377
  });
5326
- }, d.prototype.beforeInitSuccess = function() {
5378
+ }, p.prototype.beforeInitSuccess = function() {
5327
5379
  return this.injected && (this.setIsLiffSuccessful(!0), this.sendLiffInit()), Promise.resolve();
5328
- }, d.prototype.initError = function() {
5380
+ }, p.prototype.initError = function() {
5329
5381
  return this.injected && (this.setIsLiffSuccessful(!1), this.sendLiffInit()), Promise.resolve();
5330
- }, d;
5331
- }(a$8), m$1 = function m(t) {
5382
+ }, p;
5383
+ }(a$8), S$1 = function S(t) {
5332
5384
  i$3.debug("[LIFFUTS][sendCustom] liff.shareTargetPicker"), t.sendCustom({
5333
5385
  type: "liffSdk",
5334
5386
  params: {
@@ -5338,7 +5390,7 @@ var I$2 = function(u) {
5338
5390
  };
5339
5391
 
5340
5392
  var g$1 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘”‡™‰ŒšŸ‹œ†¥¿©áÄýÍÎðô]|\n|.*#.*#|%(?![0-9A-Fa-f]{2})[^%]{0,2})/, v = function v(n) {
5341
- if (g$1.test(n)) throw w$5(i$1, "invalid URL.");
5393
+ if (g$1.test(n)) throw w$6(i$1, "invalid URL.");
5342
5394
  var t = new URL(n), r = t.username, e = t.password, i = t.hash, a = t.search;
5343
5395
  return {
5344
5396
  username: r,
@@ -5402,21 +5454,21 @@ var g$1 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘
5402
5454
  return 0 === t.indexOf(n) && (n.endsWith("/") && (n = n.substring(0, n.length - 1)), void 0 === t[n.length] || "/" === t[n.length]);
5403
5455
  }, L$1 = function L(n, t) {
5404
5456
  var r = v(n), e = new URL(t);
5405
- if (r.username !== e.username || r.password !== e.password) throw w$5(i$1, "invalid URL.");
5406
- if (e.origin !== r.origin || !C$1(e.pathname, r.pathname)) throw w$5(i$1, "invalid URL.");
5407
- }, P$1 = function(n) {
5408
- function t() {
5409
- var _$t = null !== n && n.apply(this, arguments) || this;
5410
- return _$t.extraParams = "", _$t.getAndValidateContext = function() {
5411
- var _$n = E$2();
5412
- if (!_$n) throw w$5(I$6, "Could not get Context from server.");
5413
- if (!_$n.endpointUrl) throw w$5(I$6, "Could not get endpointUrl from server.");
5414
- if (!_$n.permanentLinkPattern) throw w$5(I$6, "Could not get permanentLinkPattern from server.");
5457
+ if (r.username !== e.username || r.password !== e.password) throw w$6(i$1, "invalid URL.");
5458
+ if (e.origin !== r.origin || !C$1(e.pathname, r.pathname)) throw w$6(i$1, "invalid URL.");
5459
+ }, P$1 = function(r) {
5460
+ function o() {
5461
+ var _$e = r.apply(this, __spreadArray([], __read(arguments), !1)) || this;
5462
+ return _$e.extraParams = "", _$e.getAndValidateContext = function() {
5463
+ var _$n = E$3();
5464
+ if (!_$n) throw w$6(I$5, "Could not get Context from server.");
5465
+ if (!_$n.endpointUrl) throw w$6(I$5, "Could not get endpointUrl from server.");
5466
+ if (!_$n.permanentLinkPattern) throw w$6(I$5, "Could not get permanentLinkPattern from server.");
5415
5467
  return _$n;
5416
- }, _$t.createUrl = function() {
5417
- var _$n = _$t.getAndValidateContext(), r = window.location, _$e = r.pathname, i = r.search, a = r.hash, o = r.origin, u = new URL(_$n.endpointUrl);
5418
- if (u.origin !== o || !C$1(u.pathname, _$e)) throw w$5(n$2, "Current page is not under entrypoint.");
5419
- var l = _$e.substring(u.pathname.length);
5468
+ }, _$e.createUrl = function() {
5469
+ var _$n = _$e.getAndValidateContext(), _$t = window.location, _$r = _$t.pathname, i = _$t.search, a = _$t.hash, _$o = _$t.origin, u = new URL(_$n.endpointUrl);
5470
+ if (u.origin !== _$o || !C$1(u.pathname, _$r)) throw w$6(n$2, "Current page is not under entrypoint.");
5471
+ var l = _$r.substring(u.pathname.length);
5420
5472
  l.length > 0 && "/" !== l[0] && (l = "/" + l);
5421
5473
  var p = new RegExp("^".concat(D$1.join("|"))), _$d = a.substring(1).split("&").filter(function(n) {
5422
5474
  return !p.test(n) && Boolean(n);
@@ -5425,41 +5477,41 @@ var g$1 = /([\x90\x9D\x81\x8D\x8F<"{|}>\\^`“›„•‚ŽŠ…’—ž–‘
5425
5477
  return !/liff\.state/.test(n) && Boolean(n);
5426
5478
  });
5427
5479
  }, w = v(i), x = v(u.search);
5428
- _$t.extraParams && w.push(_$t.extraParams);
5480
+ _$e.extraParams && w.push(_$e.extraParams);
5429
5481
  for(var U = 0; U < x.length; U++){
5430
5482
  var y = x[U], b = w.indexOf(y);
5431
5483
  b > -1 && w.splice(b, 1);
5432
5484
  }
5433
5485
  var L = w.join("&"), P = "".concat(l).concat("" !== L ? "?".concat(L) : "").concat(g ? "#".concat(g) : "");
5434
- return "".concat(s$8).concat(c$8().liffId).concat(P);
5435
- }, _$t.createUrlBy = function(n) {
5436
- return __awaiter(_$t, void 0, void 0, function() {
5437
- var _$t, r, _$e, _$i, o, c;
5486
+ return "".concat(s$8).concat(c$7().liffId).concat(P);
5487
+ }, _$e.createUrlBy = function(n) {
5488
+ return __awaiter(_$e, void 0, void 0, function() {
5489
+ var _$t, _$r, _$e, _$i, _$o, c;
5438
5490
  return __generator(this, function(a) {
5439
- if (!(_$t = c$8().liffId)) throw w$5(I$6, "Should run after liff init.");
5440
- return r = this.getAndValidateContext(), L$1(n, r.endpointUrl), _$e = v(n), _$i = new URL(r.endpointUrl), o = r.miniDomainAllowed ? a$7 : s$8, c = r.miniDomainAllowed && r.miniAppId ? r.miniAppId : _$t, [
5491
+ if (!(_$t = c$7().liffId)) throw w$6(I$5, "Should run after liff init.");
5492
+ return _$r = this.getAndValidateContext(), L$1(n, _$r.endpointUrl), _$e = v(n), _$i = new URL(_$r.endpointUrl), _$o = _$r.miniDomainAllowed ? a$7 : s$8, c = _$r.miniDomainAllowed && _$r.miniAppId ? _$r.miniAppId : _$t, [
5441
5493
  2,
5442
- o.concat(c, x$1(_$e.pathname, _$i.pathname), y(_$e.search, _$i.search), b(_$e.hash))
5494
+ _$o.concat(c, x$1(_$e.pathname, _$i.pathname), y(_$e.search, _$i.search), b(_$e.hash))
5443
5495
  ];
5444
5496
  });
5445
5497
  });
5446
- }, _$t.setExtraQueryParam = function(n) {
5447
- _$t.extraParams = n;
5448
- }, _$t.install = function() {
5498
+ }, _$e.setExtraQueryParam = function(n) {
5499
+ _$e.extraParams = n;
5500
+ }, _$e.install = function() {
5449
5501
  return {
5450
- createUrl: _$t.createUrl,
5451
- createUrlBy: _$t.createUrlBy,
5452
- setExtraQueryParam: _$t.setExtraQueryParam
5502
+ createUrl: _$e.createUrl,
5503
+ createUrlBy: _$e.createUrlBy,
5504
+ setExtraQueryParam: _$e.setExtraQueryParam
5453
5505
  };
5454
- }, _$t;
5506
+ }, _$e;
5455
5507
  }
5456
- return __extends(t, n), Object.defineProperty(t.prototype, "name", {
5508
+ return __extends(o, r), Object.defineProperty(o.prototype, "name", {
5457
5509
  get: function get() {
5458
5510
  return "permanentLink";
5459
5511
  },
5460
5512
  enumerable: !1,
5461
5513
  configurable: !0
5462
- }), t;
5514
+ }), o;
5463
5515
  }(a$8), R$1 = new P$1;
5464
5516
 
5465
5517
  var s$2, u$1 = function() {
@@ -5483,18 +5535,18 @@ var s$2, u$1 = function() {
5483
5535
  }, this.start();
5484
5536
  }
5485
5537
  return o.prototype.start = function() {
5486
- At.on("submit", this.onSubmit), At.on("close", this.onClose), At.on("cancel", this.onCancel), At.on("error", this.onError);
5538
+ Jt.on("submit", this.onSubmit), Jt.on("close", this.onClose), Jt.on("cancel", this.onCancel), Jt.on("error", this.onError);
5487
5539
  }, o.prototype.destroy = function() {
5488
- At.off("submit", this.onSubmit), At.off("close", this.onClose), At.off("cancel", this.onCancel), At.off("error", this.onError), s$2 = void 0;
5540
+ Jt.off("submit", this.onSubmit), Jt.off("close", this.onClose), Jt.off("cancel", this.onCancel), Jt.off("error", this.onError), s$2 = void 0;
5489
5541
  }, o;
5490
5542
  }();
5491
5543
  function f$1() {
5492
5544
  return __awaiter(this, void 0, void 0, function() {
5493
5545
  return __generator(this, function(o) {
5494
- return C$2.scanCodeV2(), s$2 && s$2.destroy(), [
5546
+ return H$2.scanCodeV2(), s$2 && s$2.destroy(), [
5495
5547
  2,
5496
5548
  new Promise(function(o, t) {
5497
- s$2 = new u$1(o, t), At.open({
5549
+ s$2 = new u$1(o, t), Jt.open({
5498
5550
  url: "https://liff.line.me/1656359117-jxmx5e11"
5499
5551
  }).catch(function(o) {
5500
5552
  null == s$2 || s$2.destroy(), t(o);
@@ -5554,10 +5606,10 @@ function c(e, r, o, i) {
5554
5606
  });
5555
5607
  }
5556
5608
  function u(t, o, n, i) {
5557
- if (void 0 === n && (n = {}), "object" != typeof t || !t.postMessage) throw w$5(i$1, "target must be window object");
5558
- if ("string" != typeof o) throw w$5(i$1, "keyname must be string");
5559
- if ("object" != typeof n) throw w$5(i$1, "incorrect body format. It should be Object or Array comprised of Object");
5560
- if (!i) throw w$5(i$1, "serverEndPointUrl isn't passed. please fill up with proper url");
5609
+ if (void 0 === n && (n = {}), "object" != typeof t || !t.postMessage) throw w$6(i$1, "target must be window object");
5610
+ if ("string" != typeof o) throw w$6(i$1, "keyname must be string");
5611
+ if ("object" != typeof n) throw w$6(i$1, "incorrect body format. It should be Object or Array comprised of Object");
5612
+ if (!i) throw w$6(i$1, "serverEndPointUrl isn't passed. please fill up with proper url");
5561
5613
  if ("*" === i) throw new Error("serverEndPointUrl doesn't allow to set '*'");
5562
5614
  var s = {
5563
5615
  name: o,
@@ -5580,7 +5632,7 @@ function _instanceof(left, right) {
5580
5632
  return left instanceof right;
5581
5633
  }
5582
5634
  }
5583
- var I$1 = function() {
5635
+ var R = function() {
5584
5636
  function i() {
5585
5637
  this.payloadToShareTargetPicker = null, this.popupWindow = null, this.doesWaitForSubwindowResult = !1;
5586
5638
  }
@@ -5639,7 +5691,7 @@ var I$1 = function() {
5639
5691
  this.finalize(), this.resetAllVariables();
5640
5692
  }, i.prototype.finalize = function() {
5641
5693
  var t, e;
5642
- this.abortController && this.abortController.abort(), u$8() || (t = this.timeoutIDForHealthCheck, e = this.popupWindow, s$1(window, "message.receivedHealthcheck"), t && clearTimeout(t), e && !e.closed && e.close());
5694
+ this.abortController && this.abortController.abort(), u$7() || (t = this.timeoutIDForHealthCheck, e = this.popupWindow, s$1(window, "message.receivedHealthcheck"), t && clearTimeout(t), e && !e.closed && e.close());
5643
5695
  }, i.prototype.buildPayloadToShareTargetPicker = function(t) {
5644
5696
  return {
5645
5697
  messages: t.messages,
@@ -5647,14 +5699,14 @@ var I$1 = function() {
5647
5699
  referrer: t.referrer
5648
5700
  };
5649
5701
  }, i.prototype.initAllowPostMessageOrigin = function(t) {
5650
- return void 0 === t && (t = l$4("shareTargetPicker")), T$2(t);
5702
+ return void 0 === t && (t = l$5("shareTargetPicker")), T$3(t);
5651
5703
  }, i.prototype.initOtt = function() {
5652
5704
  return __awaiter(this, void 0, void 0, function() {
5653
5705
  var _$t, _$i, r;
5654
5706
  return __generator(this, function(e) {
5655
5707
  switch(e.label){
5656
5708
  case 0:
5657
- return this.abortController && (_$t = this.abortController.signal), _$i = "".concat(l$4("shareTargetPickerOtt"), "/").concat(this.liffId, "/ott"), r = this, [
5709
+ return this.abortController && (_$t = this.abortController.signal), _$i = "".concat(l$5("shareTargetPickerOtt"), "/").concat(this.liffId, "/ott"), r = this, [
5658
5710
  4,
5659
5711
  f$6(_$i, {
5660
5712
  method: "GET",
@@ -5671,28 +5723,28 @@ var I$1 = function() {
5671
5723
  });
5672
5724
  });
5673
5725
  }, i.prototype.prepareAnotherWindow = function() {
5674
- u$8() || ("ios" !== e$1() || P$4() ? this.popupWindow = window.open("", "liffpopup", "width=480, height=640, menubar=no, toolbar=no, scrollbars=yes") : this.popupWindow = window.open());
5726
+ u$7() || ("ios" !== e$2() || P$4() ? this.popupWindow = window.open("", "liffpopup", "width=480, height=640, menubar=no, toolbar=no, scrollbars=yes") : this.popupWindow = window.open());
5675
5727
  }, i.prototype.openAnotherWindow = function() {
5676
- if (u$8() && this.payloadToShareTargetPicker) t = this.liffId, e = this.ott, _$i = this.payloadToShareTargetPicker, o = {
5728
+ if (u$7() && this.payloadToShareTargetPicker) t = this.liffId, e = this.ott, _$i = this.payloadToShareTargetPicker, r = {
5677
5729
  liffId: t,
5678
5730
  ott: e,
5679
5731
  data: JSON.stringify(_$i),
5680
5732
  closeModals: !1
5681
- }, location.href = "".concat("line://picker", "?").concat(A$3.stringify(o));
5733
+ }, location.href = "".concat("line://picker", "?").concat(A$3.stringify(r));
5682
5734
  else {
5683
- if (this.timeoutIDForHealthCheck = window.setTimeout(this.healthCheck.bind(this), 1e3), !this.popupWindow) throw w$5(f$9);
5735
+ if (this.timeoutIDForHealthCheck = window.setTimeout(this.healthCheck.bind(this), 1e3), !this.popupWindow) throw w$6(f$9);
5684
5736
  !function(t, e, i) {
5685
- var _$r = {
5737
+ var r = {
5686
5738
  liffId: e,
5687
5739
  ott: i
5688
5740
  };
5689
- t.location.href = "".concat(l$4("shareTargetPicker"), "?").concat(A$3.stringify(_$r));
5741
+ t.location.href = "".concat(l$5("shareTargetPicker"), "?").concat(A$3.stringify(r));
5690
5742
  }(this.popupWindow, this.liffId, this.ott);
5691
5743
  }
5692
- var t, e, _$i, o;
5744
+ var t, e, _$i, r;
5693
5745
  }, i.prototype.initListener = function() {
5694
5746
  var t, e;
5695
- u$8() || (t = this.onReceivedHealthcheck.bind(this), e = this.allowPostMessageOrigin, m(window, "receivedHealthcheck", t, e));
5747
+ u$7() || (t = this.onReceivedHealthcheck.bind(this), e = this.allowPostMessageOrigin, m(window, "receivedHealthcheck", t, e));
5696
5748
  }, i.prototype.healthCheck = function() {
5697
5749
  return __awaiter(this, void 0, void 0, function() {
5698
5750
  var _$t;
@@ -5751,7 +5803,7 @@ var I$1 = function() {
5751
5803
  });
5752
5804
  });
5753
5805
  }, i.prototype.onReceivedHealthcheck = function() {
5754
- if (!this.popupWindow || !this.payloadToShareTargetPicker) throw w$5(f$9);
5806
+ if (!this.popupWindow || !this.payloadToShareTargetPicker) throw w$6(f$9);
5755
5807
  var t, e, _$i;
5756
5808
  t = this.popupWindow, e = this.payloadToShareTargetPicker, _$i = this.allowPostMessageOrigin, u(t, "ready", e, _$i);
5757
5809
  }, i.prototype.onCanceled = function() {
@@ -5760,13 +5812,13 @@ var I$1 = function() {
5760
5812
  return __generator(this, function(e) {
5761
5813
  switch(e.label){
5762
5814
  case 0:
5763
- if (u$8() || !this.ott) throw new Error("need to call with ott in client");
5815
+ if (u$7() || !this.ott) throw new Error("need to call with ott in client");
5764
5816
  return this.abortController && (_$t = this.abortController.signal), _$i = {
5765
5817
  liffId: this.liffId,
5766
5818
  ott: this.ott
5767
5819
  }, [
5768
5820
  4,
5769
- f$6("".concat(l$4("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
5821
+ f$6("".concat(l$5("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
5770
5822
  method: "POST",
5771
5823
  signal: _$t,
5772
5824
  headers: {
@@ -5794,7 +5846,7 @@ var I$1 = function() {
5794
5846
  ott: this.ott
5795
5847
  }, i$3.debug("fetch: getShareResult"), [
5796
5848
  2,
5797
- f$6("".concat(l$4("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
5849
+ f$6("".concat(l$5("shareTargetPickerResult"), "?").concat(A$3.stringify(_$i)), {
5798
5850
  method: "GET",
5799
5851
  headers: {
5800
5852
  Accept: "application/json"
@@ -5856,37 +5908,40 @@ var I$1 = function() {
5856
5908
  });
5857
5909
  });
5858
5910
  }, i;
5859
- }(), A = function(r) {
5860
- function l() {
5861
- var _$i = null !== r && r.apply(this, arguments) || this;
5862
- return _$i.shareTargetPicker = function(r, l) {
5863
- return void 0 === l && (l = {}), __awaiter(_$i, void 0, void 0, function() {
5864
- var _$t, _$i, h, c, b, y, v;
5865
- return __generator(this, function(e) {
5911
+ }(), O$1 = function(n) {
5912
+ function c() {
5913
+ var _$i = n.apply(this, __spreadArray([], __read(arguments), !1)) || this;
5914
+ return _$i.shareTargetPicker = function(n) {
5915
+ for(var _$c = [], u = 1; u < arguments.length; u++)_$c[u - 1] = arguments[u];
5916
+ return __awaiter(_$i, __spreadArray([
5917
+ n
5918
+ ], __read(_$c), !1), void 0, function(t, i) {
5919
+ var _$r, _$o, _$n, _$c, u, f, v;
5920
+ return void 0 === i && (i = {}), __generator(this, function(e) {
5866
5921
  switch(e.label){
5867
5922
  case 0:
5868
- if (C$2.shareTargetPicker(), !r || !Array.isArray(r) || 0 === r.length) throw w$5(i$1, "no proper argument");
5869
- if (r.length > O$3) throw w$5(i$1, "exceed the limit of num of messages");
5870
- if (!(_$t = c$8().liffId)) throw w$5(n$2);
5871
- window.liff && (_$i = window.liff).analytics && m$1(_$i.analytics), h = void 0 === l.isMultiple || l.isMultiple, e.label = 1;
5923
+ if (H$2.shareTargetPicker(), !t || !Array.isArray(t) || 0 === t.length) throw w$6(i$1, "no proper argument");
5924
+ if (t.length > O$4) throw w$6(i$1, "exceed the limit of num of messages");
5925
+ if (!(_$r = c$7().liffId)) throw w$6(n$2);
5926
+ window.liff && (_$o = window.liff).analytics && S$1(_$o.analytics), _$n = void 0 === i.isMultiple || i.isMultiple, e.label = 1;
5872
5927
  case 1:
5873
5928
  return e.trys.push([
5874
5929
  1,
5875
5930
  3,
5876
5931
  ,
5877
5932
  4
5878
- ]), c = I$1.getInstance(), b = r$4(), y = {
5933
+ ]), _$c = R.getInstance(), u = r$4(), f = {
5879
5934
  waitForSubwindowResult: !0
5880
- }, u$8() && b && f$8(b, "10.11.0") < 0 && (y.waitForSubwindowResult = !1), [
5935
+ }, u$7() && u && f$8(u, "10.11.0") < 0 && (f.waitForSubwindowResult = !1), [
5881
5936
  4,
5882
- c.init({
5883
- messages: r,
5884
- isMultiple: h,
5937
+ _$c.init({
5938
+ messages: t,
5939
+ isMultiple: _$n,
5885
5940
  referrer: {
5886
- liffId: _$t,
5941
+ liffId: _$r,
5887
5942
  url: location.origin
5888
5943
  },
5889
- options: y
5944
+ options: f
5890
5945
  })
5891
5946
  ];
5892
5947
  case 2:
@@ -5895,7 +5950,7 @@ var I$1 = function() {
5895
5950
  e.sent()
5896
5951
  ];
5897
5952
  case 3:
5898
- throw _instanceof(v = e.sent(), h$4) ? v : w$5(N$2, v.message);
5953
+ throw _instanceof(v = e.sent(), h$6) ? v : w$6(N$2, v.message);
5899
5954
  case 4:
5900
5955
  return [
5901
5956
  2
@@ -5905,16 +5960,16 @@ var I$1 = function() {
5905
5960
  });
5906
5961
  }, _$i;
5907
5962
  }
5908
- return __extends(l, r), Object.defineProperty(l.prototype, "name", {
5963
+ return __extends(c, n), Object.defineProperty(c.prototype, "name", {
5909
5964
  get: function get() {
5910
5965
  return "shareTargetPicker";
5911
5966
  },
5912
5967
  enumerable: !1,
5913
5968
  configurable: !0
5914
- }), l.prototype.install = function() {
5969
+ }), c.prototype.install = function() {
5915
5970
  return this.shareTargetPicker;
5916
- }, l;
5917
- }(a$8), R = new A;
5971
+ }, c;
5972
+ }(a$8), E = new O$1;
5918
5973
 
5919
5974
  function S(n, e) {
5920
5975
  return __awaiter(this, void 0, void 0, function() {
@@ -5922,7 +5977,7 @@ function S(n, e) {
5922
5977
  return __generator(this, function(r) {
5923
5978
  switch(r.label){
5924
5979
  case 0:
5925
- return _$t = l$4("createShortcutOnHomeScreen"), (i = new URL(_$t)).searchParams.append("liffId", n), i.searchParams.append("url", e.url), e.description && i.searchParams.append("description", e.description), [
5980
+ return _$t = l$5("createShortcutOnHomeScreen"), (i = new URL(_$t)).searchParams.append("liffId", n), i.searchParams.append("url", e.url), e.description && i.searchParams.append("description", e.description), [
5926
5981
  4,
5927
5982
  f$6(i.toString())
5928
5983
  ];
@@ -5936,7 +5991,7 @@ function S(n, e) {
5936
5991
  });
5937
5992
  }
5938
5993
  function g(t) {
5939
- if (F$2(t)) throw w$5(i$1, "LINE URL scheme are not supported in the current environment.");
5994
+ if (F$2(t)) throw w$6(i$1, "LINE URL scheme are not supported in the current environment.");
5940
5995
  }
5941
5996
  function I(n, e) {
5942
5997
  return __awaiter(this, void 0, void 0, function() {
@@ -5944,7 +5999,7 @@ function I(n, e) {
5944
5999
  return __generator(this, function(r) {
5945
6000
  switch(r.label){
5946
6001
  case 0:
5947
- return u$8() ? [
6002
+ return u$7() ? [
5948
6003
  2
5949
6004
  ] : [
5950
6005
  4,
@@ -6015,15 +6070,15 @@ function P(n, e) {
6015
6070
  }
6016
6071
  function H(t) {
6017
6072
  var r;
6018
- if (void 0 === t.url || null === t.url || "" === t.url) throw w$5(i$1, "no proper argument");
6019
- var n = E$2();
6073
+ if (void 0 === t.url || null === t.url || "" === t.url) throw w$6(i$1, "no proper argument");
6074
+ var n = E$3();
6020
6075
  if (!(null === (r = null == n ? void 0 : n.availability.addToHomeLineScheme) || void 0 === r ? void 0 : r.permission)) {
6021
- if (F$2(t.url)) throw w$5(E$4, "No permission to specify line schema in url.");
6022
- if (t.description) throw w$5(E$4, "No permission to specify description.");
6076
+ if (F$2(t.url)) throw w$6(E$5, "No permission to specify line schema in url.");
6077
+ if (t.description) throw w$6(E$5, "No permission to specify description.");
6023
6078
  }
6024
6079
  if (!F$2(t.url)) {
6025
- if (!n) throw w$5(E$4, "Could not get Context from server.");
6026
- n.liffId !== k(t.url) && L$1(t.url, n.endpointUrl);
6080
+ if (!n) throw w$6(E$5, "Could not get Context from server.");
6081
+ n.liffId !== k$1(t.url) && L$1(t.url, n.endpointUrl);
6027
6082
  }
6028
6083
  }
6029
6084
  function L(n) {
@@ -6031,7 +6086,7 @@ function L(n) {
6031
6086
  return __generator(this, function(t) {
6032
6087
  switch(t.label){
6033
6088
  case 0:
6034
- return H(n), C$2.internalCreateShortcutOnHomeScreen(), [
6089
+ return H(n), H$2.internalCreateShortcutOnHomeScreen(), [
6035
6090
  4,
6036
6091
  x(n)
6037
6092
  ];
@@ -6048,7 +6103,7 @@ function U(n) {
6048
6103
  return __generator(this, function(t) {
6049
6104
  switch(t.label){
6050
6105
  case 0:
6051
- return H(n), C$2.createShortcutOnHomeScreen(), [
6106
+ return H(n), H$2.createShortcutOnHomeScreen(), [
6052
6107
  4,
6053
6108
  x(n)
6054
6109
  ];
@@ -6066,8 +6121,8 @@ function x(n) {
6066
6121
  return __generator(this, function(r) {
6067
6122
  switch(r.label){
6068
6123
  case 0:
6069
- if (!(_$t = c$8().liffId)) throw w$5(I$6, "Invalid LIFF ID.");
6070
- return "ios" === e$1() ? [
6124
+ if (!(_$t = c$7().liffId)) throw w$6(I$5, "Invalid LIFF ID.");
6125
+ return "ios" === e$2() ? [
6071
6126
  4,
6072
6127
  P(_$t, n)
6073
6128
  ] : [
@@ -6126,19 +6181,19 @@ var C = function(t) {
6126
6181
  }, r;
6127
6182
  }(a$8);
6128
6183
 
6129
- function d(e) {
6130
- var n = e.productIds;
6131
- return __awaiter(this, void 0, void 0, function() {
6184
+ function s(e) {
6185
+ return __awaiter(this, arguments, void 0, function(t) {
6186
+ var e = t.productIds;
6132
6187
  return __generator(this, function(t) {
6133
6188
  switch(t.label){
6134
6189
  case 0:
6135
6190
  return [
6136
6191
  4,
6137
- w$1("iap.getPlatformProducts", {
6138
- productIds: n
6192
+ w$2("iap.getPlatformProducts", {
6193
+ productIds: e
6139
6194
  }).catch(function(t) {
6140
- if (t.code && t.description) throw w$5(t.code, t.description);
6141
- throw w$5(e$3, "Failed to get platform products", {
6195
+ if (t.code && t.description) throw w$6(t.code, t.description);
6196
+ throw w$6(e$4, "Failed to get platform products", {
6142
6197
  cause: t
6143
6198
  });
6144
6199
  })
@@ -6152,20 +6207,22 @@ function d(e) {
6152
6207
  });
6153
6208
  });
6154
6209
  }
6155
- var s = function s(e) {
6156
- var n = e.productId, o = e.orderId;
6157
- return __awaiter(void 0, void 0, void 0, function() {
6210
+ var d = function d(e) {
6211
+ return __awaiter(void 0, [
6212
+ e
6213
+ ], void 0, function(t) {
6214
+ var _$e = t.productId, n = t.orderId;
6158
6215
  return __generator(this, function(t) {
6159
6216
  switch(t.label){
6160
6217
  case 0:
6161
6218
  return [
6162
6219
  4,
6163
- w$1("iap.createPayment", {
6164
- productId: n,
6165
- orderId: o
6220
+ w$2("iap.createPayment", {
6221
+ productId: _$e,
6222
+ orderId: n
6166
6223
  }).catch(function(t) {
6167
- if (t.code && t.description) throw w$5(t.code, t.description);
6168
- throw w$5(e$3, "Failed to get platform products", {
6224
+ if (t.code && t.description) throw w$6(t.code, t.description);
6225
+ throw w$6(e$4, "Failed to get platform products", {
6169
6226
  cause: t
6170
6227
  });
6171
6228
  })
@@ -6194,9 +6251,9 @@ var s = function s(e) {
6194
6251
  for(var _$i = [], u = 0; u < arguments.length; u++)_$i[u] = arguments[u];
6195
6252
  return __awaiter(_$e, void 0, void 0, function() {
6196
6253
  return __generator(this, function(t) {
6197
- return C$2.iap(), [
6254
+ return H$2.iap(), [
6198
6255
  2,
6199
- d.apply(void 0, __spreadArray([], __read(_$i), !1))
6256
+ s.apply(void 0, __spreadArray([], __read(_$i), !1))
6200
6257
  ];
6201
6258
  });
6202
6259
  });
@@ -6205,9 +6262,9 @@ var s = function s(e) {
6205
6262
  for(var _$i = [], u = 0; u < arguments.length; u++)_$i[u] = arguments[u];
6206
6263
  return __awaiter(_$e, void 0, void 0, function() {
6207
6264
  return __generator(this, function(t) {
6208
- return C$2.iap(), [
6265
+ return H$2.iap(), [
6209
6266
  2,
6210
- s.apply(void 0, __spreadArray([], __read(_$i), !1))
6267
+ d.apply(void 0, __spreadArray([], __read(_$i), !1))
6211
6268
  ];
6212
6269
  });
6213
6270
  });
@@ -6215,7 +6272,7 @@ var s = function s(e) {
6215
6272
  requestConsentAgreement: function requestConsentAgreement() {
6216
6273
  return __awaiter(_$e, void 0, void 0, function() {
6217
6274
  return __generator(this, function(e) {
6218
- return C$2.iap(), [
6275
+ return H$2.iap(), [
6219
6276
  2,
6220
6277
  __awaiter(void 0, void 0, void 0, function() {
6221
6278
  return __generator(this, function(t) {
@@ -6223,9 +6280,9 @@ var s = function s(e) {
6223
6280
  case 0:
6224
6281
  return [
6225
6282
  4,
6226
- w$1("iap.requestConsentAgreement").catch(function(t) {
6227
- if (t.code && t.description) throw w$5(t.code, t.description);
6228
- throw w$5(e$3, "Failed to request consent agreement", {
6283
+ w$2("iap.requestConsentAgreement").catch(function(t) {
6284
+ if (t.code && t.description) throw w$6(t.code, t.description);
6285
+ throw w$6(e$4, "Failed to request consent agreement", {
6229
6286
  cause: t
6230
6287
  });
6231
6288
  })
@@ -6248,7 +6305,7 @@ var s = function s(e) {
6248
6305
  var liffInstance = {};
6249
6306
  var liff$1 = Object.defineProperties(liffInstance, {
6250
6307
  getOS: {
6251
- value: e$1,
6308
+ value: e$2,
6252
6309
  enumerable: true,
6253
6310
  writable: true
6254
6311
  },
@@ -6267,18 +6324,23 @@ var liff$1 = Object.defineProperties(liffInstance, {
6267
6324
  enumerable: true,
6268
6325
  writable: true
6269
6326
  },
6327
+ getOrigins: {
6328
+ value: e,
6329
+ enumerable: true,
6330
+ writable: true
6331
+ },
6270
6332
  isInClient: {
6271
- value: u$8,
6333
+ value: u$7,
6272
6334
  enumerable: true,
6273
6335
  writable: true
6274
6336
  },
6275
6337
  isLoggedIn: {
6276
- value: e$2,
6338
+ value: e$3,
6277
6339
  enumerable: true,
6278
6340
  writable: true
6279
6341
  },
6280
6342
  logout: {
6281
- value: o$2,
6343
+ value: o$1,
6282
6344
  enumerable: true,
6283
6345
  writable: true
6284
6346
  },
@@ -6298,7 +6360,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
6298
6360
  writable: true
6299
6361
  },
6300
6362
  getContext: {
6301
- value: E$2,
6363
+ value: E$3,
6302
6364
  enumerable: true,
6303
6365
  writable: true
6304
6366
  },
@@ -6313,7 +6375,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
6313
6375
  writable: true
6314
6376
  },
6315
6377
  getFriendship: {
6316
- value: R$2(o, "profile"),
6378
+ value: V(o, "profile"),
6317
6379
  enumerable: true,
6318
6380
  writable: true
6319
6381
  },
@@ -6323,12 +6385,12 @@ var liff$1 = Object.defineProperties(liffInstance, {
6323
6385
  writable: true
6324
6386
  },
6325
6387
  getProfilePlus: {
6326
- value: S$3,
6388
+ value: S$4,
6327
6389
  enumerable: true,
6328
6390
  writable: true
6329
6391
  },
6330
6392
  getIsVideoAutoPlay: {
6331
- value: _$3,
6393
+ value: _$2,
6332
6394
  enumerable: true,
6333
6395
  writable: true
6334
6396
  },
@@ -6338,22 +6400,22 @@ var liff$1 = Object.defineProperties(liffInstance, {
6338
6400
  writable: true
6339
6401
  },
6340
6402
  isApiAvailable: {
6341
- value: T$1,
6403
+ value: k,
6342
6404
  enumerable: true,
6343
6405
  writable: true
6344
6406
  },
6345
6407
  getProfile: {
6346
- value: R$2(n$1, "profile"),
6408
+ value: V(n$1, "profile"),
6347
6409
  enumerable: true,
6348
6410
  writable: true
6349
6411
  },
6350
6412
  sendMessages: {
6351
- value: R$2(l$1, "chat_message.write"),
6413
+ value: V(l$1, "chat_message.write"),
6352
6414
  enumerable: true,
6353
6415
  writable: true
6354
6416
  },
6355
6417
  subWindow: {
6356
- value: At,
6418
+ value: Jt,
6357
6419
  enumerable: true,
6358
6420
  writable: true
6359
6421
  },
@@ -6364,17 +6426,17 @@ var liff$1 = Object.defineProperties(liffInstance, {
6364
6426
  },
6365
6427
  id: {
6366
6428
  get: function get() {
6367
- return c$8().liffId || null;
6429
+ return c$7().liffId || null;
6368
6430
  },
6369
6431
  enumerable: true
6370
6432
  },
6371
6433
  _dispatchEvent: {
6372
- value: v$1,
6434
+ value: v$2,
6373
6435
  enumerable: true,
6374
6436
  writable: true
6375
6437
  },
6376
6438
  _call: {
6377
- value: w$1,
6439
+ value: w$2,
6378
6440
  enumerable: true,
6379
6441
  writable: true
6380
6442
  },
@@ -6384,7 +6446,7 @@ var liff$1 = Object.defineProperties(liffInstance, {
6384
6446
  writable: true
6385
6447
  },
6386
6448
  _removeListener: {
6387
- value: u$4,
6449
+ value: u$3,
6388
6450
  enumerable: true,
6389
6451
  writable: true
6390
6452
  },
@@ -6394,22 +6456,22 @@ var liff$1 = Object.defineProperties(liffInstance, {
6394
6456
  writable: true
6395
6457
  }
6396
6458
  });
6397
- var driver = new u$a();
6459
+ var driver = new u$9();
6398
6460
  var contextHolder = new s$9(driver, liff$1);
6399
- var use = new c$c(driver, contextHolder).install();
6461
+ var use = new c$b(driver, contextHolder).install();
6400
6462
  function applyModule(module) {
6401
6463
  use.call(liff$1, module);
6402
6464
  }
6403
6465
  [
6404
- new c$c(driver, contextHolder),
6405
- new b$2(),
6406
- new ct(),
6407
- new I$2(),
6466
+ new c$b(driver, contextHolder),
6467
+ new w$1(),
6468
+ new st(),
6469
+ new L$2(),
6408
6470
  c$1,
6409
6471
  R$1,
6410
6472
  m$5,
6411
- z,
6412
- R,
6473
+ B,
6474
+ E,
6413
6475
  h,
6414
6476
  new f$7(),
6415
6477
  new C(),