@tapni/auth 0.0.51 → 0.0.53

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.
@@ -1,11 +1,11 @@
1
- import { reactive as Qn, readonly as Gn, resolveComponent as de, openBlock as f, createElementBlock as k, createElementVNode as c, toDisplayString as y, createCommentVNode as T, createVNode as j, withCtx as G, createTextVNode as I, pushScopeId as pe, popScopeId as ue, createStaticVNode as Wn, nextTick as We, withModifiers as U, normalizeStyle as ce, withDirectives as B, withKeys as te, vModelText as ae, vModelDynamic as fe, vShow as J, createBlock as Y, normalizeClass as R, unref as Yn } from "vue";
1
+ import { reactive as Qn, readonly as Gn, resolveComponent as de, openBlock as f, createElementBlock as k, createElementVNode as c, toDisplayString as y, createCommentVNode as T, createVNode as j, withCtx as G, createTextVNode as I, pushScopeId as pe, popScopeId as ue, createStaticVNode as Wn, nextTick as Ye, withModifiers as U, normalizeStyle as ce, withDirectives as B, withKeys as te, vModelText as ae, vModelDynamic as fe, vShow as J, createBlock as Y, normalizeClass as R, unref as Yn } from "vue";
2
2
  import { RouterView as Xn } from "vue-router";
3
3
  import L from "await-to-js";
4
- import Be from "axios";
4
+ import Me from "axios";
5
5
  import { jwtDecode as Je } from "jwt-decode";
6
6
  import { Device as ke } from "@capacitor/device";
7
7
  import { Capacitor as me } from "@capacitor/core";
8
- import { GoogleAuth as Ye } from "@codetrix-studio/capacitor-google-auth";
8
+ import { GoogleAuth as Xe } from "@codetrix-studio/capacitor-google-auth";
9
9
  import { FacebookLogin as Zn } from "@capacitor-community/facebook-login";
10
10
  import { SignInWithApple as Jn } from "@capacitor-community/apple-sign-in";
11
11
  import { MsAuthPlugin as et } from "@recognizebv/capacitor-plugin-msauth";
@@ -13,11 +13,12 @@ import { Browser as be } from "@capacitor/browser";
13
13
  import nt from "qr-code-styling";
14
14
  import { sanitizeUrl as tt } from "@braintree/sanitize-url";
15
15
  import "@tapni/capacitor-reactive-localstorage-vue3";
16
- const at = "0.0.51", z = (e, t = !1) => {
16
+ const at = "0.0.53", z = (e, t = !1) => {
17
17
  const r = at;
18
18
  let u = "https://api.tapni.co/v1/";
19
- location.hostname.includes("dev.") && (u = "https://api-dev.tapni.co/v1/");
20
- let l = Be.create({
19
+ const l = O.methods.apiRootGet();
20
+ l && (u = l);
21
+ let d = Me.create({
21
22
  baseURL: u,
22
23
  headers: {
23
24
  ...e ? { Authorization: `Bearer ${e.token}` } : {},
@@ -25,29 +26,29 @@ const at = "0.0.51", z = (e, t = !1) => {
25
26
  "X-Client-Version": r.version
26
27
  }
27
28
  });
28
- return l.interceptors.request.use(async function(d) {
29
- if (["post", "put", "delete"].includes(d.method.toLowerCase()) ? d.data = {
30
- ...d.data,
29
+ return d.interceptors.request.use(async function(g) {
30
+ if (["post", "put", "delete"].includes(g.method.toLowerCase()) ? g.data = {
31
+ ...g.data,
31
32
  ...e ? {
32
33
  lang: e.appLanguage,
33
34
  realm: e.realm || "app"
34
35
  } : {}
35
- } : d.method.toLowerCase() === "get" && (d.params = {
36
- ...d.params,
36
+ } : g.method.toLowerCase() === "get" && (g.params = {
37
+ ...g.params,
37
38
  ...e ? {
38
39
  lang: e.appLanguage,
39
40
  realm: e.realm || "app"
40
41
  } : {}
41
42
  }), e && e.token && !t) {
42
- const h = Je(e.token);
43
- if (h.exp - 30 < Math.floor(Date.now() / 1e3))
44
- return D.methods.refreshTokenAction(h).then(() => (d.headers = {
45
- ...d.headers,
43
+ const m = Je(e.token);
44
+ if (m.exp - 30 < Math.floor(Date.now() / 1e3))
45
+ return O.methods.refreshTokenAction(m).then(() => (g.headers = {
46
+ ...g.headers,
46
47
  Authorization: `Bearer ${e.token}`
47
- }, d));
48
+ }, g));
48
49
  }
49
- return d;
50
- }), l;
50
+ return g;
51
+ }), d;
51
52
  }, re = {
52
53
  getMe() {
53
54
  return z(storage).get("/users/me");
@@ -90,7 +91,7 @@ const at = "0.0.51", z = (e, t = !1) => {
90
91
  loginUsingQR(e, t) {
91
92
  return z(t).post("/users/qr/login", e);
92
93
  }
93
- }, Xe = {
94
+ }, Ze = {
94
95
  registerDevice(e, t) {
95
96
  return z(t).post("/devices/add", e);
96
97
  },
@@ -157,7 +158,7 @@ const N = {
157
158
  exchangeAuthCode(e, t) {
158
159
  return z(t).post("/users/auth-code", e);
159
160
  }
160
- }, xe = {
161
+ }, Be = {
161
162
  getBySSOEmail(e, t) {
162
163
  return z(t).get(`/company/sso/${e}`);
163
164
  },
@@ -4328,7 +4329,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4328
4329
  }
4329
4330
  };
4330
4331
  var rt = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4331
- const D = {
4332
+ const O = {
4332
4333
  mixins: [ot],
4333
4334
  data() {
4334
4335
  return {
@@ -4388,6 +4389,9 @@ const D = {
4388
4389
  this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.$storage.realm = this.$route.query.realm), v.$on("updateLang", this.updateLang), rt.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4389
4390
  },
4390
4391
  methods: {
4392
+ apiRootGet() {
4393
+ return this.API_ROOT;
4394
+ },
4391
4395
  errorHandler(e) {
4392
4396
  if (e && e.response && e.response.data && e.response.data.error) {
4393
4397
  if (e.response.data.error === "ACCESS_DENIED" || e.response.data.error === "TOKEN_EXPIRED")
@@ -4419,7 +4423,7 @@ const D = {
4419
4423
  },
4420
4424
  async maintenance() {
4421
4425
  const [e, t] = await L(
4422
- Be.get("https://status.tapni.co/data/maintenance.json")
4426
+ Me.get("https://status.tapni.co/data/maintenance.json")
4423
4427
  );
4424
4428
  if (e)
4425
4429
  return console.error(e);
@@ -4556,19 +4560,19 @@ const D = {
4556
4560
  }
4557
4561
  };
4558
4562
  const [u, l] = await L(
4559
- Xe.registerDevice(r, this.$storage)
4563
+ Ze.registerDevice(r, this.$storage)
4560
4564
  );
4561
4565
  return u ? this.errorHandler(u) : l;
4562
4566
  },
4563
4567
  async addFcmToken(e) {
4564
4568
  const [t, r] = await L(
4565
- Xe.addFcmToken(e, this.$storage)
4569
+ Ze.addFcmToken(e, this.$storage)
4566
4570
  );
4567
4571
  return t ? this.errorHandler(t) : r;
4568
4572
  },
4569
4573
  async acceptCompanyInvitation(e) {
4570
4574
  const [t, r] = await L(
4571
- xe.acceptCompanyInvitation(e, this.$storage)
4575
+ Be.acceptCompanyInvitation(e, this.$storage)
4572
4576
  );
4573
4577
  return t ? this.errorHandler(t) : r;
4574
4578
  },
@@ -4581,7 +4585,7 @@ const D = {
4581
4585
  },
4582
4586
  async getCompanyBySSOEmail(e) {
4583
4587
  const [t, r] = await L(
4584
- xe.getBySSOEmail(e.email, this.$storage)
4588
+ Be.getBySSOEmail(e.email, this.$storage)
4585
4589
  );
4586
4590
  if (t)
4587
4591
  return this.errorHandler(t);
@@ -4645,7 +4649,7 @@ const D = {
4645
4649
  return r;
4646
4650
  }, st = {
4647
4651
  name: "AuthWelcome",
4648
- mixins: [D],
4652
+ mixins: [O],
4649
4653
  data() {
4650
4654
  return {
4651
4655
  loading: !0
@@ -4677,7 +4681,7 @@ const D = {
4677
4681
  ft
4678
4682
  ];
4679
4683
  function bt(e, t, r, u, l, d) {
4680
- const h = de("router-link");
4684
+ const g = de("router-link");
4681
4685
  return f(), k("div", ct, [
4682
4686
  c("video", {
4683
4687
  id: "tapniVideo",
@@ -4692,7 +4696,7 @@ function bt(e, t, r, u, l, d) {
4692
4696
  c("p", _t, y(e.ssoLang[this.appLanguage].welcome_p1), 1),
4693
4697
  T("", !0),
4694
4698
  T("", !0),
4695
- j(h, {
4699
+ j(g, {
4696
4700
  to: "register",
4697
4701
  exact: "",
4698
4702
  class: "button-center button button-90 google-button bg-tapni-grey pointer"
@@ -4703,7 +4707,7 @@ function bt(e, t, r, u, l, d) {
4703
4707
  _: 1
4704
4708
  }),
4705
4709
  c("div", mt, [
4706
- j(h, { to: "/login" }, {
4710
+ j(g, { to: "/login" }, {
4707
4711
  default: G(() => [
4708
4712
  I(y(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4709
4713
  c("b", null, y(e.ssoLang[this.appLanguage].sign_in), 1)
@@ -4728,13 +4732,13 @@ const dn = /* @__PURE__ */ $(st, [["render", bt], ["__scopeId", "data-v-c5cb659c
4728
4732
  }
4729
4733
  },
4730
4734
  mounted() {
4731
- Ye.initialize();
4735
+ Xe.initialize();
4732
4736
  },
4733
4737
  methods: {
4734
4738
  async googleLogin() {
4735
4739
  var r;
4736
4740
  this.googleLoad = !0;
4737
- let [e, t] = await L(Ye.signIn());
4741
+ let [e, t] = await L(Xe.signIn());
4738
4742
  if (e)
4739
4743
  return this.googleLoad = !1;
4740
4744
  if (this.referral && (t.ref = this.referral), t.authentication && (t.authentication.accessToken || t.authentication.idToken)) {
@@ -4864,7 +4868,7 @@ const ve = {
4864
4868
  },
4865
4869
  methods: {
4866
4870
  async microsoftLogin(e, t = {}) {
4867
- var l, d, h;
4871
+ var l, d, g;
4868
4872
  e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(t).length || (t = ((d = (l = this.ssoCompany.sso) == null ? void 0 : l.azure) == null ? void 0 : d.sso) || {});
4869
4873
  const [r, u] = await L(
4870
4874
  et.login({
@@ -4887,7 +4891,7 @@ const ve = {
4887
4891
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(m);
4888
4892
  if (b.data.success) {
4889
4893
  if (this.display === "popup")
4890
- return (h = window.parent) == null ? void 0 : h.postMessage(
4894
+ return (g = window.parent) == null ? void 0 : g.postMessage(
4891
4895
  { code: b.data.auth_code, state: this.$route.query.state },
4892
4896
  "*"
4893
4897
  );
@@ -4917,8 +4921,8 @@ const ve = {
4917
4921
  return null;
4918
4922
  },
4919
4923
  compareLangKeys() {
4920
- const e = Object.keys(en.default.state), t = Object.keys(nn.default.state), r = Object.keys(tn.default.state), u = Object.keys(cn.default.state), l = Object.keys(on.default.state), d = Object.keys(an.default.state), h = Object.keys(rn.default.state), m = Object.keys(sn.default.state);
4921
- console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !h.includes(b))), console.log("In sr but not in en", h.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in tr", e.filter((b) => !m.includes(b))), console.log("In tr but not in en", m.filter((b) => !e.includes(b))), console.log();
4924
+ const e = Object.keys(en.default.state), t = Object.keys(nn.default.state), r = Object.keys(tn.default.state), u = Object.keys(cn.default.state), l = Object.keys(on.default.state), d = Object.keys(an.default.state), g = Object.keys(rn.default.state), m = Object.keys(sn.default.state);
4925
+ console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !g.includes(b))), console.log("In sr but not in en", g.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in tr", e.filter((b) => !m.includes(b))), console.log("In tr but not in en", m.filter((b) => !e.includes(b))), console.log();
4922
4926
  },
4923
4927
  base64ImageToBlob(e) {
4924
4928
  const t = e.split(";base64,"), r = t[0].split(":")[1], u = window.atob(t[1]), l = new Uint8Array(u.length);
@@ -4935,9 +4939,9 @@ const ve = {
4935
4939
  });
4936
4940
  },
4937
4941
  base64toFile(e, t) {
4938
- for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length, h = new Uint8Array(d); d--; )
4939
- h[d] = l.charCodeAt(d);
4940
- return new File([h], t, { type: u });
4942
+ for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length, g = new Uint8Array(d); d--; )
4943
+ g[d] = l.charCodeAt(d);
4944
+ return new File([g], t, { type: u });
4941
4945
  },
4942
4946
  fileToBase64(e) {
4943
4947
  new Promise((t, r) => {
@@ -4952,8 +4956,8 @@ const ve = {
4952
4956
  cropCardScan(e, t) {
4953
4957
  const r = new window.Image(), u = document.createElement("canvas"), l = u.getContext("2d");
4954
4958
  r.src = "data:image/jpeg;base64," + e, r.onload = () => {
4955
- const d = r.width, h = r.width / 1.65, m = 0, b = r.height / 2 - h / 2, C = d, p = h;
4956
- u.width = C, u.height = p, l.drawImage(r, m, b, d, h, 0, 0, C, p);
4959
+ const d = r.width, g = r.width / 1.65, m = 0, b = r.height / 2 - g / 2, C = d, p = g;
4960
+ u.width = C, u.height = p, l.drawImage(r, m, b, d, g, 0, 0, C, p);
4957
4961
  const x = u.toDataURL();
4958
4962
  return t(x), x;
4959
4963
  };
@@ -4983,8 +4987,8 @@ const ve = {
4983
4987
  r = r.replace(/ /g, "+");
4984
4988
  const l = new TextEncoder(), d = new TextDecoder();
4985
4989
  e = l.encode(e), t = l.encode(t), r = u(r, storage);
4986
- const h = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
4987
- let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t }, h, r);
4990
+ const g = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
4991
+ let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t }, g, r);
4988
4992
  return m = d.decode(m), m = m.replace(/ /g, "+"), m = atob(m), m;
4989
4993
  } catch (u) {
4990
4994
  console.log(u);
@@ -5007,7 +5011,7 @@ const ve = {
5007
5011
  methods: {
5008
5012
  async exchangeCode(e) {
5009
5013
  var l, d;
5010
- let [t, r] = await L(Be.post(e.domain + "/v1/token", new URLSearchParams({ code: e.code, client_id: e.clientID, grant_type: "authorization_code", redirect_uri: this.isNative ? "tapni://t.link/callback/okta" : location.origin + "/callback/okta", code_verifier: localStorage.getItem("pkce_code_verifier") })));
5014
+ let [t, r] = await L(Me.post(e.domain + "/v1/token", new URLSearchParams({ code: e.code, client_id: e.clientID, grant_type: "authorization_code", redirect_uri: this.isNative ? "tapni://t.link/callback/okta" : location.origin + "/callback/okta", code_verifier: localStorage.getItem("pkce_code_verifier") })));
5011
5015
  if (t)
5012
5016
  return this.errorHandler(t);
5013
5017
  localStorage.removeItem("pkce_code_verifier");
@@ -5027,9 +5031,9 @@ const ve = {
5027
5031
  const t = me.getPlatform() || "web";
5028
5032
  let r = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + t + "&rand=" + le.generateRandomString(28)), u = le.generateRandomString(28);
5029
5033
  localStorage.setItem("pkce_code_verifier", u);
5030
- let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize", h;
5031
- this.isNative ? h = "tapni://t.link/callback/okta" : h = location.origin + "/callback/okta";
5032
- let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(h) + "&code_challenge=" + encodeURIComponent(l) + "&code_challenge_method=S256", b = this, C;
5034
+ let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize", g;
5035
+ this.isNative ? g = "tapni://t.link/callback/okta" : g = location.origin + "/callback/okta";
5036
+ let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(g) + "&code_challenge=" + encodeURIComponent(l) + "&code_challenge_method=S256", b = this, C;
5033
5037
  window.addEventListener("message", async (p) => {
5034
5038
  if (!this.allowedOrigins.includes(p.origin))
5035
5039
  return console.log("Origin is not allowed!");
@@ -5040,8 +5044,8 @@ const ve = {
5040
5044
  let e = this.$route.query.code, t, r, u, l, d = { type: "okta" };
5041
5045
  if (e && (d.code = e), this.$route.query.state) {
5042
5046
  t = this.$route.query.state, t = atob(t);
5043
- const h = new URLSearchParams(t);
5044
- r = h.get("client_id"), u = h.get("domain"), l = h.get("platform");
5047
+ const g = new URLSearchParams(t);
5048
+ r = g.get("client_id"), u = g.get("domain"), l = g.get("platform");
5045
5049
  }
5046
5050
  window.opener ? (window.opener.postMessage(d, location.origin), window.close()) : (this.isNative && this.isIOS && await be.close(), v.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && r && u && await this.exchangeCode({ code: e, clientID: r, domain: u, platform: l }), localStorage.removeItem("pkce_code_verifier"), v.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5047
5051
  }
@@ -5073,10 +5077,10 @@ function Lt(e, t, r) {
5073
5077
  return (t + r) * 3 / 4 - r;
5074
5078
  }
5075
5079
  function Ct(e) {
5076
- var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)), h = 0, m = l > 0 ? u - 4 : u, b;
5080
+ var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)), g = 0, m = l > 0 ? u - 4 : u, b;
5077
5081
  for (b = 0; b < m; b += 4)
5078
- t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[h++] = t >> 16 & 255, d[h++] = t >> 8 & 255, d[h++] = t & 255;
5079
- return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[h++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[h++] = t >> 8 & 255, d[h++] = t & 255), d;
5082
+ t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[g++] = t >> 16 & 255, d[g++] = t >> 8 & 255, d[g++] = t & 255;
5083
+ return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[g++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[g++] = t >> 8 & 255, d[g++] = t & 255), d;
5080
5084
  }
5081
5085
  function St(e) {
5082
5086
  return Q[e >> 18 & 63] + Q[e >> 12 & 63] + Q[e >> 6 & 63] + Q[e & 63];
@@ -5087,38 +5091,38 @@ function Tt(e, t, r) {
5087
5091
  return l.join("");
5088
5092
  }
5089
5093
  function Et(e) {
5090
- for (var t, r = e.length, u = r % 3, l = [], d = 16383, h = 0, m = r - u; h < m; h += d)
5091
- l.push(Tt(e, h, h + d > m ? m : h + d));
5094
+ for (var t, r = e.length, u = r % 3, l = [], d = 16383, g = 0, m = r - u; g < m; g += d)
5095
+ l.push(Tt(e, g, g + d > m ? m : g + d));
5092
5096
  return u === 1 ? (t = e[r - 1], l.push(
5093
5097
  Q[t >> 2] + Q[t << 4 & 63] + "=="
5094
5098
  )) : u === 2 && (t = (e[r - 2] << 8) + e[r - 1], l.push(
5095
5099
  Q[t >> 10] + Q[t >> 4 & 63] + Q[t << 2 & 63] + "="
5096
5100
  )), l.join("");
5097
5101
  }
5098
- var Me = {};
5102
+ var Re = {};
5099
5103
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
5100
- Me.read = function(e, t, r, u, l) {
5101
- var d, h, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, O = e[t + x];
5102
- for (x += W, d = O & (1 << -p) - 1, O >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
5104
+ Re.read = function(e, t, r, u, l) {
5105
+ var d, g, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, D = e[t + x];
5106
+ for (x += W, d = D & (1 << -p) - 1, D >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
5103
5107
  ;
5104
- for (h = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; h = h * 256 + e[t + x], x += W, p -= 8)
5108
+ for (g = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; g = g * 256 + e[t + x], x += W, p -= 8)
5105
5109
  ;
5106
5110
  if (d === 0)
5107
5111
  d = 1 - C;
5108
5112
  else {
5109
5113
  if (d === b)
5110
- return h ? NaN : (O ? -1 : 1) * (1 / 0);
5111
- h = h + Math.pow(2, u), d = d - C;
5114
+ return g ? NaN : (D ? -1 : 1) * (1 / 0);
5115
+ g = g + Math.pow(2, u), d = d - C;
5112
5116
  }
5113
- return (O ? -1 : 1) * h * Math.pow(2, d - u);
5117
+ return (D ? -1 : 1) * g * Math.pow(2, d - u);
5114
5118
  };
5115
- Me.write = function(e, t, r, u, l, d) {
5116
- var h, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
5117
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, h = p) : (h = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -h)) < 1 && (h--, b *= 2), h + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (h++, b /= 2), h + x >= p ? (m = 0, h = p) : h + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), h = h + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), h = 0)); l >= 8; e[r + O] = m & 255, O += ee, m /= 256, l -= 8)
5119
+ Re.write = function(e, t, r, u, l, d) {
5120
+ var g, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, D = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
5121
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, g = p) : (g = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -g)) < 1 && (g--, b *= 2), g + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (g++, b /= 2), g + x >= p ? (m = 0, g = p) : g + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), g = g + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), g = 0)); l >= 8; e[r + D] = m & 255, D += ee, m /= 256, l -= 8)
5118
5122
  ;
5119
- for (h = h << l | m, C += l; C > 0; e[r + O] = h & 255, O += ee, h /= 256, C -= 8)
5123
+ for (g = g << l | m, C += l; C > 0; e[r + D] = g & 255, D += ee, g /= 256, C -= 8)
5120
5124
  ;
5121
- e[r + O - ee] |= Ce * 128;
5125
+ e[r + D - ee] |= Ce * 128;
5122
5126
  };
5123
5127
  /*!
5124
5128
  * The buffer module from node.js, for the browser.
@@ -5127,11 +5131,11 @@ Me.write = function(e, t, r, u, l, d) {
5127
5131
  * @license MIT
5128
5132
  */
5129
5133
  (function(e) {
5130
- const t = we, r = Me, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5134
+ const t = we, r = Re, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5131
5135
  e.Buffer = p, e.SlowBuffer = Tn, e.INSPECT_MAX_BYTES = 50;
5132
5136
  const l = 2147483647;
5133
5137
  e.kMaxLength = l;
5134
- const { Uint8Array: d, ArrayBuffer: h, SharedArrayBuffer: m } = globalThis;
5138
+ const { Uint8Array: d, ArrayBuffer: g, SharedArrayBuffer: m } = globalThis;
5135
5139
  p.TYPED_ARRAY_SUPPORT = b(), !p.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
5136
5140
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
5137
5141
  );
@@ -5178,13 +5182,13 @@ Me.write = function(e, t, r, u, l, d) {
5178
5182
  function x(i, n, a) {
5179
5183
  if (typeof i == "string")
5180
5184
  return Ce(i, n);
5181
- if (h.isView(i))
5185
+ if (g.isView(i))
5182
5186
  return Cn(i);
5183
5187
  if (i == null)
5184
5188
  throw new TypeError(
5185
5189
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
5186
5190
  );
5187
- if (H(i, h) || i && H(i.buffer, h) || typeof m < "u" && (H(i, m) || i && H(i.buffer, m)))
5191
+ if (H(i, g) || i && H(i.buffer, g) || typeof m < "u" && (H(i, m) || i && H(i.buffer, m)))
5188
5192
  return Te(i, n, a);
5189
5193
  if (typeof i == "number")
5190
5194
  throw new TypeError(
@@ -5211,11 +5215,11 @@ Me.write = function(e, t, r, u, l, d) {
5211
5215
  if (i < 0)
5212
5216
  throw new RangeError('The value "' + i + '" is invalid for option "size"');
5213
5217
  }
5214
- function O(i, n, a) {
5218
+ function D(i, n, a) {
5215
5219
  return W(i), i <= 0 ? C(i) : n !== void 0 ? typeof a == "string" ? C(i).fill(n, a) : C(i).fill(n) : C(i);
5216
5220
  }
5217
5221
  p.alloc = function(i, n, a) {
5218
- return O(i, n, a);
5222
+ return D(i, n, a);
5219
5223
  };
5220
5224
  function ee(i) {
5221
5225
  return W(i), C(i < 0 ? 0 : Ee(i) | 0);
@@ -5228,7 +5232,7 @@ Me.write = function(e, t, r, u, l, d) {
5228
5232
  function Ce(i, n) {
5229
5233
  if ((typeof n != "string" || n === "") && (n = "utf8"), !p.isEncoding(n))
5230
5234
  throw new TypeError("Unknown encoding: " + n);
5231
- const a = Re(i, n) | 0;
5235
+ const a = qe(i, n) | 0;
5232
5236
  let o = C(a);
5233
5237
  const s = o.write(i, n);
5234
5238
  return s !== a && (o = o.slice(0, s)), o;
@@ -5282,7 +5286,7 @@ Me.write = function(e, t, r, u, l, d) {
5282
5286
  if (n === a)
5283
5287
  return 0;
5284
5288
  let o = n.length, s = a.length;
5285
- for (let _ = 0, g = Math.min(o, s); _ < g; ++_)
5289
+ for (let _ = 0, h = Math.min(o, s); _ < h; ++_)
5286
5290
  if (n[_] !== a[_]) {
5287
5291
  o = n[_], s = a[_];
5288
5292
  break;
@@ -5317,25 +5321,25 @@ Me.write = function(e, t, r, u, l, d) {
5317
5321
  const s = p.allocUnsafe(a);
5318
5322
  let _ = 0;
5319
5323
  for (o = 0; o < n.length; ++o) {
5320
- let g = n[o];
5321
- if (H(g, d))
5322
- _ + g.length > s.length ? (p.isBuffer(g) || (g = p.from(g)), g.copy(s, _)) : d.prototype.set.call(
5324
+ let h = n[o];
5325
+ if (H(h, d))
5326
+ _ + h.length > s.length ? (p.isBuffer(h) || (h = p.from(h)), h.copy(s, _)) : d.prototype.set.call(
5323
5327
  s,
5324
- g,
5328
+ h,
5325
5329
  _
5326
5330
  );
5327
- else if (p.isBuffer(g))
5328
- g.copy(s, _);
5331
+ else if (p.isBuffer(h))
5332
+ h.copy(s, _);
5329
5333
  else
5330
5334
  throw new TypeError('"list" argument must be an Array of Buffers');
5331
- _ += g.length;
5335
+ _ += h.length;
5332
5336
  }
5333
5337
  return s;
5334
5338
  };
5335
- function Re(i, n) {
5339
+ function qe(i, n) {
5336
5340
  if (p.isBuffer(i))
5337
5341
  return i.length;
5338
- if (h.isView(i) || H(i, h))
5342
+ if (g.isView(i) || H(i, g))
5339
5343
  return i.byteLength;
5340
5344
  if (typeof i != "string")
5341
5345
  throw new TypeError(
@@ -5362,14 +5366,14 @@ Me.write = function(e, t, r, u, l, d) {
5362
5366
  case "hex":
5363
5367
  return a >>> 1;
5364
5368
  case "base64":
5365
- return Ge(i).length;
5369
+ return We(i).length;
5366
5370
  default:
5367
5371
  if (s)
5368
5372
  return o ? -1 : Ae(i).length;
5369
5373
  n = ("" + n).toLowerCase(), s = !0;
5370
5374
  }
5371
5375
  }
5372
- p.byteLength = Re;
5376
+ p.byteLength = qe;
5373
5377
  function En(i, n, a) {
5374
5378
  let o = !1;
5375
5379
  if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((a === void 0 || a > this.length) && (a = this.length), a <= 0) || (a >>>= 0, n >>>= 0, a <= n))
@@ -5380,7 +5384,7 @@ Me.write = function(e, t, r, u, l, d) {
5380
5384
  return Nn(this, n, a);
5381
5385
  case "utf8":
5382
5386
  case "utf-8":
5383
- return Ue(this, n, a);
5387
+ return Oe(this, n, a);
5384
5388
  case "ascii":
5385
5389
  return Rn(this, n, a);
5386
5390
  case "latin1":
@@ -5427,7 +5431,7 @@ Me.write = function(e, t, r, u, l, d) {
5427
5431
  return this;
5428
5432
  }, p.prototype.toString = function() {
5429
5433
  const n = this.length;
5430
- return n === 0 ? "" : arguments.length === 0 ? Ue(this, 0, n) : En.apply(this, arguments);
5434
+ return n === 0 ? "" : arguments.length === 0 ? Oe(this, 0, n) : En.apply(this, arguments);
5431
5435
  }, p.prototype.toLocaleString = p.prototype.toString, p.prototype.equals = function(n) {
5432
5436
  if (!p.isBuffer(n))
5433
5437
  throw new TypeError("Argument must be a Buffer");
@@ -5451,16 +5455,16 @@ Me.write = function(e, t, r, u, l, d) {
5451
5455
  return 1;
5452
5456
  if (a >>>= 0, o >>>= 0, s >>>= 0, _ >>>= 0, this === n)
5453
5457
  return 0;
5454
- let g = _ - s, w = o - a;
5455
- const A = Math.min(g, w), E = this.slice(s, _), P = n.slice(a, o);
5458
+ let h = _ - s, w = o - a;
5459
+ const A = Math.min(h, w), E = this.slice(s, _), P = n.slice(a, o);
5456
5460
  for (let S = 0; S < A; ++S)
5457
5461
  if (E[S] !== P[S]) {
5458
- g = E[S], w = P[S];
5462
+ h = E[S], w = P[S];
5459
5463
  break;
5460
5464
  }
5461
- return g < w ? -1 : w < g ? 1 : 0;
5465
+ return h < w ? -1 : w < h ? 1 : 0;
5462
5466
  };
5463
- function qe(i, n, a, o, s) {
5467
+ function Ne(i, n, a, o, s) {
5464
5468
  if (i.length === 0)
5465
5469
  return -1;
5466
5470
  if (typeof a == "string" ? (o = a, a = 0) : a > 2147483647 ? a = 2147483647 : a < -2147483648 && (a = -2147483648), a = +a, Pe(a) && (a = s ? 0 : i.length - 1), a < 0 && (a = i.length + a), a >= i.length) {
@@ -5473,17 +5477,17 @@ Me.write = function(e, t, r, u, l, d) {
5473
5477
  else
5474
5478
  return -1;
5475
5479
  if (typeof n == "string" && (n = p.from(n, o)), p.isBuffer(n))
5476
- return n.length === 0 ? -1 : Ne(i, n, a, o, s);
5480
+ return n.length === 0 ? -1 : Ue(i, n, a, o, s);
5477
5481
  if (typeof n == "number")
5478
- return n = n & 255, typeof d.prototype.indexOf == "function" ? s ? d.prototype.indexOf.call(i, n, a) : d.prototype.lastIndexOf.call(i, n, a) : Ne(i, [n], a, o, s);
5482
+ return n = n & 255, typeof d.prototype.indexOf == "function" ? s ? d.prototype.indexOf.call(i, n, a) : d.prototype.lastIndexOf.call(i, n, a) : Ue(i, [n], a, o, s);
5479
5483
  throw new TypeError("val must be string, number or Buffer");
5480
5484
  }
5481
- function Ne(i, n, a, o, s) {
5482
- let _ = 1, g = i.length, w = n.length;
5485
+ function Ue(i, n, a, o, s) {
5486
+ let _ = 1, h = i.length, w = n.length;
5483
5487
  if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
5484
5488
  if (i.length < 2 || n.length < 2)
5485
5489
  return -1;
5486
- _ = 2, g /= 2, w /= 2, a /= 2;
5490
+ _ = 2, h /= 2, w /= 2, a /= 2;
5487
5491
  }
5488
5492
  function A(P, S) {
5489
5493
  return _ === 1 ? P[S] : P.readUInt16BE(S * _);
@@ -5491,14 +5495,14 @@ Me.write = function(e, t, r, u, l, d) {
5491
5495
  let E;
5492
5496
  if (s) {
5493
5497
  let P = -1;
5494
- for (E = a; E < g; E++)
5498
+ for (E = a; E < h; E++)
5495
5499
  if (A(i, E) === A(n, P === -1 ? 0 : E - P)) {
5496
5500
  if (P === -1 && (P = E), E - P + 1 === w)
5497
5501
  return P * _;
5498
5502
  } else
5499
5503
  P !== -1 && (E -= E - P), P = -1;
5500
5504
  } else
5501
- for (a + w > g && (a = g - w), E = a; E >= 0; E--) {
5505
+ for (a + w > h && (a = h - w), E = a; E >= 0; E--) {
5502
5506
  let P = !0;
5503
5507
  for (let S = 0; S < w; S++)
5504
5508
  if (A(i, E + S) !== A(n, S)) {
@@ -5513,9 +5517,9 @@ Me.write = function(e, t, r, u, l, d) {
5513
5517
  p.prototype.includes = function(n, a, o) {
5514
5518
  return this.indexOf(n, a, o) !== -1;
5515
5519
  }, p.prototype.indexOf = function(n, a, o) {
5516
- return qe(this, n, a, o, !0);
5520
+ return Ne(this, n, a, o, !0);
5517
5521
  }, p.prototype.lastIndexOf = function(n, a, o) {
5518
- return qe(this, n, a, o, !1);
5522
+ return Ne(this, n, a, o, !1);
5519
5523
  };
5520
5524
  function In(i, n, a, o) {
5521
5525
  a = Number(a) || 0;
@@ -5523,14 +5527,14 @@ Me.write = function(e, t, r, u, l, d) {
5523
5527
  o ? (o = Number(o), o > s && (o = s)) : o = s;
5524
5528
  const _ = n.length;
5525
5529
  o > _ / 2 && (o = _ / 2);
5526
- let g;
5527
- for (g = 0; g < o; ++g) {
5528
- const w = parseInt(n.substr(g * 2, 2), 16);
5530
+ let h;
5531
+ for (h = 0; h < o; ++h) {
5532
+ const w = parseInt(n.substr(h * 2, 2), 16);
5529
5533
  if (Pe(w))
5530
- return g;
5531
- i[a + g] = w;
5534
+ return h;
5535
+ i[a + h] = w;
5532
5536
  }
5533
- return g;
5537
+ return h;
5534
5538
  }
5535
5539
  function An(i, n, a, o) {
5536
5540
  return ge(Ae(n, i.length - a), i, a, o);
@@ -5539,7 +5543,7 @@ Me.write = function(e, t, r, u, l, d) {
5539
5543
  return ge(Vn(n), i, a, o);
5540
5544
  }
5541
5545
  function jn(i, n, a, o) {
5542
- return ge(Ge(n), i, a, o);
5546
+ return ge(We(n), i, a, o);
5543
5547
  }
5544
5548
  function xn(i, n, a, o) {
5545
5549
  return ge(Kn(n, i.length - a), i, a, o);
@@ -5559,7 +5563,7 @@ Me.write = function(e, t, r, u, l, d) {
5559
5563
  if ((o === void 0 || o > _) && (o = _), n.length > 0 && (o < 0 || a < 0) || a > this.length)
5560
5564
  throw new RangeError("Attempt to write outside buffer bounds");
5561
5565
  s || (s = "utf8");
5562
- let g = !1;
5566
+ let h = !1;
5563
5567
  for (; ; )
5564
5568
  switch (s) {
5565
5569
  case "hex":
@@ -5579,9 +5583,9 @@ Me.write = function(e, t, r, u, l, d) {
5579
5583
  case "utf-16le":
5580
5584
  return xn(this, n, a, o);
5581
5585
  default:
5582
- if (g)
5586
+ if (h)
5583
5587
  throw new TypeError("Unknown encoding: " + s);
5584
- s = ("" + s).toLowerCase(), g = !0;
5588
+ s = ("" + s).toLowerCase(), h = !0;
5585
5589
  }
5586
5590
  }, p.prototype.toJSON = function() {
5587
5591
  return {
@@ -5592,30 +5596,30 @@ Me.write = function(e, t, r, u, l, d) {
5592
5596
  function Bn(i, n, a) {
5593
5597
  return n === 0 && a === i.length ? t.fromByteArray(i) : t.fromByteArray(i.slice(n, a));
5594
5598
  }
5595
- function Ue(i, n, a) {
5599
+ function Oe(i, n, a) {
5596
5600
  a = Math.min(i.length, a);
5597
5601
  const o = [];
5598
5602
  let s = n;
5599
5603
  for (; s < a; ) {
5600
5604
  const _ = i[s];
5601
- let g = null, w = _ > 239 ? 4 : _ > 223 ? 3 : _ > 191 ? 2 : 1;
5605
+ let h = null, w = _ > 239 ? 4 : _ > 223 ? 3 : _ > 191 ? 2 : 1;
5602
5606
  if (s + w <= a) {
5603
5607
  let A, E, P, S;
5604
5608
  switch (w) {
5605
5609
  case 1:
5606
- _ < 128 && (g = _);
5610
+ _ < 128 && (h = _);
5607
5611
  break;
5608
5612
  case 2:
5609
- A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (g = S));
5613
+ A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (h = S));
5610
5614
  break;
5611
5615
  case 3:
5612
- A = i[s + 1], E = i[s + 2], (A & 192) === 128 && (E & 192) === 128 && (S = (_ & 15) << 12 | (A & 63) << 6 | E & 63, S > 2047 && (S < 55296 || S > 57343) && (g = S));
5616
+ A = i[s + 1], E = i[s + 2], (A & 192) === 128 && (E & 192) === 128 && (S = (_ & 15) << 12 | (A & 63) << 6 | E & 63, S > 2047 && (S < 55296 || S > 57343) && (h = S));
5613
5617
  break;
5614
5618
  case 4:
5615
- A = i[s + 1], E = i[s + 2], P = i[s + 3], (A & 192) === 128 && (E & 192) === 128 && (P & 192) === 128 && (S = (_ & 15) << 18 | (A & 63) << 12 | (E & 63) << 6 | P & 63, S > 65535 && S < 1114112 && (g = S));
5619
+ A = i[s + 1], E = i[s + 2], P = i[s + 3], (A & 192) === 128 && (E & 192) === 128 && (P & 192) === 128 && (S = (_ & 15) << 18 | (A & 63) << 12 | (E & 63) << 6 | P & 63, S > 65535 && S < 1114112 && (h = S));
5616
5620
  }
5617
5621
  }
5618
- g === null ? (g = 65533, w = 1) : g > 65535 && (g -= 65536, o.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), o.push(g), s += w;
5622
+ h === null ? (h = 65533, w = 1) : h > 65535 && (h -= 65536, o.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), o.push(h), s += w;
5619
5623
  }
5620
5624
  return Mn(o);
5621
5625
  }
@@ -5675,9 +5679,9 @@ Me.write = function(e, t, r, u, l, d) {
5675
5679
  }
5676
5680
  p.prototype.readUintLE = p.prototype.readUIntLE = function(n, a, o) {
5677
5681
  n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5678
- let s = this[n], _ = 1, g = 0;
5679
- for (; ++g < a && (_ *= 256); )
5680
- s += this[n + g] * _;
5682
+ let s = this[n], _ = 1, h = 0;
5683
+ for (; ++h < a && (_ *= 256); )
5684
+ s += this[n + h] * _;
5681
5685
  return s;
5682
5686
  }, p.prototype.readUintBE = p.prototype.readUIntBE = function(n, a, o) {
5683
5687
  n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
@@ -5709,16 +5713,16 @@ Me.write = function(e, t, r, u, l, d) {
5709
5713
  return (BigInt(s) << BigInt(32)) + BigInt(_);
5710
5714
  }), p.prototype.readIntLE = function(n, a, o) {
5711
5715
  n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5712
- let s = this[n], _ = 1, g = 0;
5713
- for (; ++g < a && (_ *= 256); )
5714
- s += this[n + g] * _;
5716
+ let s = this[n], _ = 1, h = 0;
5717
+ for (; ++h < a && (_ *= 256); )
5718
+ s += this[n + h] * _;
5715
5719
  return _ *= 128, s >= _ && (s -= Math.pow(2, 8 * a)), s;
5716
5720
  }, p.prototype.readIntBE = function(n, a, o) {
5717
5721
  n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5718
- let s = a, _ = 1, g = this[n + --s];
5722
+ let s = a, _ = 1, h = this[n + --s];
5719
5723
  for (; s > 0 && (_ *= 256); )
5720
- g += this[n + --s] * _;
5721
- return _ *= 128, g >= _ && (g -= Math.pow(2, 8 * a)), g;
5724
+ h += this[n + --s] * _;
5725
+ return _ *= 128, h >= _ && (h -= Math.pow(2, 8 * a)), h;
5722
5726
  }, p.prototype.readInt8 = function(n, a) {
5723
5727
  return n = n >>> 0, a || M(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
5724
5728
  }, p.prototype.readInt16LE = function(n, a) {
@@ -5768,18 +5772,18 @@ Me.write = function(e, t, r, u, l, d) {
5768
5772
  const w = Math.pow(2, 8 * o) - 1;
5769
5773
  q(this, n, a, o, w, 0);
5770
5774
  }
5771
- let _ = 1, g = 0;
5772
- for (this[a] = n & 255; ++g < o && (_ *= 256); )
5773
- this[a + g] = n / _ & 255;
5775
+ let _ = 1, h = 0;
5776
+ for (this[a] = n & 255; ++h < o && (_ *= 256); )
5777
+ this[a + h] = n / _ & 255;
5774
5778
  return a + o;
5775
5779
  }, p.prototype.writeUintBE = p.prototype.writeUIntBE = function(n, a, o, s) {
5776
5780
  if (n = +n, a = a >>> 0, o = o >>> 0, !s) {
5777
5781
  const w = Math.pow(2, 8 * o) - 1;
5778
5782
  q(this, n, a, o, w, 0);
5779
5783
  }
5780
- let _ = o - 1, g = 1;
5781
- for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
5782
- this[a + _] = n / g & 255;
5784
+ let _ = o - 1, h = 1;
5785
+ for (this[a + _] = n & 255; --_ >= 0 && (h *= 256); )
5786
+ this[a + _] = n / h & 255;
5783
5787
  return a + o;
5784
5788
  }, p.prototype.writeUint8 = p.prototype.writeUInt8 = function(n, a, o) {
5785
5789
  return n = +n, a = a >>> 0, o || q(this, n, a, 1, 255, 0), this[a] = n & 255, a + 1;
@@ -5792,41 +5796,41 @@ Me.write = function(e, t, r, u, l, d) {
5792
5796
  }, p.prototype.writeUint32BE = p.prototype.writeUInt32BE = function(n, a, o) {
5793
5797
  return n = +n, a = a >>> 0, o || q(this, n, a, 4, 4294967295, 0), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
5794
5798
  };
5795
- function Oe(i, n, a, o, s) {
5796
- Qe(n, o, s, i, a, 7);
5799
+ function Fe(i, n, a, o, s) {
5800
+ Ge(n, o, s, i, a, 7);
5797
5801
  let _ = Number(n & BigInt(4294967295));
5798
5802
  i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _;
5799
- let g = Number(n >> BigInt(32) & BigInt(4294967295));
5800
- return i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, a;
5803
+ let h = Number(n >> BigInt(32) & BigInt(4294967295));
5804
+ return i[a++] = h, h = h >> 8, i[a++] = h, h = h >> 8, i[a++] = h, h = h >> 8, i[a++] = h, a;
5801
5805
  }
5802
- function Fe(i, n, a, o, s) {
5803
- Qe(n, o, s, i, a, 7);
5806
+ function Ve(i, n, a, o, s) {
5807
+ Ge(n, o, s, i, a, 7);
5804
5808
  let _ = Number(n & BigInt(4294967295));
5805
5809
  i[a + 7] = _, _ = _ >> 8, i[a + 6] = _, _ = _ >> 8, i[a + 5] = _, _ = _ >> 8, i[a + 4] = _;
5806
- let g = Number(n >> BigInt(32) & BigInt(4294967295));
5807
- return i[a + 3] = g, g = g >> 8, i[a + 2] = g, g = g >> 8, i[a + 1] = g, g = g >> 8, i[a] = g, a + 8;
5810
+ let h = Number(n >> BigInt(32) & BigInt(4294967295));
5811
+ return i[a + 3] = h, h = h >> 8, i[a + 2] = h, h = h >> 8, i[a + 1] = h, h = h >> 8, i[a] = h, a + 8;
5808
5812
  }
5809
5813
  p.prototype.writeBigUInt64LE = Z(function(n, a = 0) {
5810
- return Oe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5811
- }), p.prototype.writeBigUInt64BE = Z(function(n, a = 0) {
5812
5814
  return Fe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5815
+ }), p.prototype.writeBigUInt64BE = Z(function(n, a = 0) {
5816
+ return Ve(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5813
5817
  }), p.prototype.writeIntLE = function(n, a, o, s) {
5814
5818
  if (n = +n, a = a >>> 0, !s) {
5815
5819
  const A = Math.pow(2, 8 * o - 1);
5816
5820
  q(this, n, a, o, A - 1, -A);
5817
5821
  }
5818
- let _ = 0, g = 1, w = 0;
5819
- for (this[a] = n & 255; ++_ < o && (g *= 256); )
5820
- n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
5822
+ let _ = 0, h = 1, w = 0;
5823
+ for (this[a] = n & 255; ++_ < o && (h *= 256); )
5824
+ n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n / h >> 0) - w & 255;
5821
5825
  return a + o;
5822
5826
  }, p.prototype.writeIntBE = function(n, a, o, s) {
5823
5827
  if (n = +n, a = a >>> 0, !s) {
5824
5828
  const A = Math.pow(2, 8 * o - 1);
5825
5829
  q(this, n, a, o, A - 1, -A);
5826
5830
  }
5827
- let _ = o - 1, g = 1, w = 0;
5828
- for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
5829
- n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
5831
+ let _ = o - 1, h = 1, w = 0;
5832
+ for (this[a + _] = n & 255; --_ >= 0 && (h *= 256); )
5833
+ n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n / h >> 0) - w & 255;
5830
5834
  return a + o;
5831
5835
  }, p.prototype.writeInt8 = function(n, a, o) {
5832
5836
  return n = +n, a = a >>> 0, o || q(this, n, a, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[a] = n & 255, a + 1;
@@ -5839,31 +5843,31 @@ Me.write = function(e, t, r, u, l, d) {
5839
5843
  }, p.prototype.writeInt32BE = function(n, a, o) {
5840
5844
  return n = +n, a = a >>> 0, o || q(this, n, a, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
5841
5845
  }, p.prototype.writeBigInt64LE = Z(function(n, a = 0) {
5842
- return Oe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5843
- }), p.prototype.writeBigInt64BE = Z(function(n, a = 0) {
5844
5846
  return Fe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5847
+ }), p.prototype.writeBigInt64BE = Z(function(n, a = 0) {
5848
+ return Ve(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5845
5849
  });
5846
- function Ve(i, n, a, o, s, _) {
5850
+ function Ke(i, n, a, o, s, _) {
5847
5851
  if (a + o > i.length)
5848
5852
  throw new RangeError("Index out of range");
5849
5853
  if (a < 0)
5850
5854
  throw new RangeError("Index out of range");
5851
5855
  }
5852
- function Ke(i, n, a, o, s) {
5853
- return n = +n, a = a >>> 0, s || Ve(i, n, a, 4), r.write(i, n, a, o, 23, 4), a + 4;
5856
+ function $e(i, n, a, o, s) {
5857
+ return n = +n, a = a >>> 0, s || Ke(i, n, a, 4), r.write(i, n, a, o, 23, 4), a + 4;
5854
5858
  }
5855
5859
  p.prototype.writeFloatLE = function(n, a, o) {
5856
- return Ke(this, n, a, !0, o);
5860
+ return $e(this, n, a, !0, o);
5857
5861
  }, p.prototype.writeFloatBE = function(n, a, o) {
5858
- return Ke(this, n, a, !1, o);
5862
+ return $e(this, n, a, !1, o);
5859
5863
  };
5860
- function $e(i, n, a, o, s) {
5861
- return n = +n, a = a >>> 0, s || Ve(i, n, a, 8), r.write(i, n, a, o, 52, 8), a + 8;
5864
+ function He(i, n, a, o, s) {
5865
+ return n = +n, a = a >>> 0, s || Ke(i, n, a, 8), r.write(i, n, a, o, 52, 8), a + 8;
5862
5866
  }
5863
5867
  p.prototype.writeDoubleLE = function(n, a, o) {
5864
- return $e(this, n, a, !0, o);
5868
+ return He(this, n, a, !0, o);
5865
5869
  }, p.prototype.writeDoubleBE = function(n, a, o) {
5866
- return $e(this, n, a, !1, o);
5870
+ return He(this, n, a, !1, o);
5867
5871
  }, p.prototype.copy = function(n, a, o, s) {
5868
5872
  if (!p.isBuffer(n))
5869
5873
  throw new TypeError("argument should be a Buffer");
@@ -5889,8 +5893,8 @@ Me.write = function(e, t, r, u, l, d) {
5889
5893
  if (typeof s == "string" && !p.isEncoding(s))
5890
5894
  throw new TypeError("Unknown encoding: " + s);
5891
5895
  if (n.length === 1) {
5892
- const g = n.charCodeAt(0);
5893
- (s === "utf8" && g < 128 || s === "latin1") && (n = g);
5896
+ const h = n.charCodeAt(0);
5897
+ (s === "utf8" && h < 128 || s === "latin1") && (n = h);
5894
5898
  }
5895
5899
  } else
5896
5900
  typeof n == "number" ? n = n & 255 : typeof n == "boolean" && (n = Number(n));
@@ -5904,11 +5908,11 @@ Me.write = function(e, t, r, u, l, d) {
5904
5908
  for (_ = a; _ < o; ++_)
5905
5909
  this[_] = n;
5906
5910
  else {
5907
- const g = p.isBuffer(n) ? n : p.from(n, s), w = g.length;
5911
+ const h = p.isBuffer(n) ? n : p.from(n, s), w = h.length;
5908
5912
  if (w === 0)
5909
5913
  throw new TypeError('The value "' + n + '" is invalid for argument "value"');
5910
5914
  for (_ = 0; _ < o - a; ++_)
5911
- this[_ + a] = g[_ % w];
5915
+ this[_ + a] = h[_ % w];
5912
5916
  }
5913
5917
  return this;
5914
5918
  };
@@ -5954,27 +5958,27 @@ Me.write = function(e, t, r, u, l, d) {
5954
5958
  "ERR_OUT_OF_RANGE",
5955
5959
  function(i, n, a) {
5956
5960
  let o = `The value of "${i}" is out of range.`, s = a;
5957
- return Number.isInteger(a) && Math.abs(a) > 2 ** 32 ? s = He(String(a)) : typeof a == "bigint" && (s = String(a), (a > BigInt(2) ** BigInt(32) || a < -(BigInt(2) ** BigInt(32))) && (s = He(s)), s += "n"), o += ` It must be ${n}. Received ${s}`, o;
5961
+ return Number.isInteger(a) && Math.abs(a) > 2 ** 32 ? s = Qe(String(a)) : typeof a == "bigint" && (s = String(a), (a > BigInt(2) ** BigInt(32) || a < -(BigInt(2) ** BigInt(32))) && (s = Qe(s)), s += "n"), o += ` It must be ${n}. Received ${s}`, o;
5958
5962
  },
5959
5963
  RangeError
5960
5964
  );
5961
- function He(i) {
5965
+ function Qe(i) {
5962
5966
  let n = "", a = i.length;
5963
5967
  const o = i[0] === "-" ? 1 : 0;
5964
5968
  for (; a >= o + 4; a -= 3)
5965
5969
  n = `_${i.slice(a - 3, a)}${n}`;
5966
5970
  return `${i.slice(0, a)}${n}`;
5967
5971
  }
5968
- function Dn(i, n, a) {
5972
+ function On(i, n, a) {
5969
5973
  oe(n, "offset"), (i[n] === void 0 || i[n + a] === void 0) && _e(n, i.length - (a + 1));
5970
5974
  }
5971
- function Qe(i, n, a, o, s, _) {
5975
+ function Ge(i, n, a, o, s, _) {
5972
5976
  if (i > a || i < n) {
5973
- const g = typeof n == "bigint" ? "n" : "";
5977
+ const h = typeof n == "bigint" ? "n" : "";
5974
5978
  let w;
5975
- throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${g} and < 2${g} ** ${(_ + 1) * 8}${g}` : w = `>= -(2${g} ** ${(_ + 1) * 8 - 1}${g}) and < 2 ** ${(_ + 1) * 8 - 1}${g}` : w = `>= ${n}${g} and <= ${a}${g}`, new ie.ERR_OUT_OF_RANGE("value", w, i);
5979
+ throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${h} and < 2${h} ** ${(_ + 1) * 8}${h}` : w = `>= -(2${h} ** ${(_ + 1) * 8 - 1}${h}) and < 2 ** ${(_ + 1) * 8 - 1}${h}` : w = `>= ${n}${h} and <= ${a}${h}`, new ie.ERR_OUT_OF_RANGE("value", w, i);
5976
5980
  }
5977
- Dn(o, s, _);
5981
+ On(o, s, _);
5978
5982
  }
5979
5983
  function oe(i, n) {
5980
5984
  if (typeof i != "number")
@@ -5987,9 +5991,9 @@ Me.write = function(e, t, r, u, l, d) {
5987
5991
  i
5988
5992
  );
5989
5993
  }
5990
- const On = /[^+/0-9A-Za-z-_]/g;
5994
+ const Dn = /[^+/0-9A-Za-z-_]/g;
5991
5995
  function Fn(i) {
5992
- if (i = i.split("=")[0], i = i.trim().replace(On, ""), i.length < 2)
5996
+ if (i = i.split("=")[0], i = i.trim().replace(Dn, ""), i.length < 2)
5993
5997
  return "";
5994
5998
  for (; i.length % 4 !== 0; )
5995
5999
  i = i + "=";
@@ -6001,13 +6005,13 @@ Me.write = function(e, t, r, u, l, d) {
6001
6005
  const o = i.length;
6002
6006
  let s = null;
6003
6007
  const _ = [];
6004
- for (let g = 0; g < o; ++g) {
6005
- if (a = i.charCodeAt(g), a > 55295 && a < 57344) {
6008
+ for (let h = 0; h < o; ++h) {
6009
+ if (a = i.charCodeAt(h), a > 55295 && a < 57344) {
6006
6010
  if (!s) {
6007
6011
  if (a > 56319) {
6008
6012
  (n -= 3) > -1 && _.push(239, 191, 189);
6009
6013
  continue;
6010
- } else if (g + 1 === o) {
6014
+ } else if (h + 1 === o) {
6011
6015
  (n -= 3) > -1 && _.push(239, 191, 189);
6012
6016
  continue;
6013
6017
  }
@@ -6063,11 +6067,11 @@ Me.write = function(e, t, r, u, l, d) {
6063
6067
  function Kn(i, n) {
6064
6068
  let a, o, s;
6065
6069
  const _ = [];
6066
- for (let g = 0; g < i.length && !((n -= 2) < 0); ++g)
6067
- a = i.charCodeAt(g), o = a >> 8, s = a % 256, _.push(s), _.push(o);
6070
+ for (let h = 0; h < i.length && !((n -= 2) < 0); ++h)
6071
+ a = i.charCodeAt(h), o = a >> 8, s = a % 256, _.push(s), _.push(o);
6068
6072
  return _;
6069
6073
  }
6070
- function Ge(i) {
6074
+ function We(i) {
6071
6075
  return t.toByteArray(Fn(i));
6072
6076
  }
6073
6077
  function ge(i, n, a, o) {
@@ -6168,7 +6172,7 @@ const It = mn.Buffer, ze = {
6168
6172
  },
6169
6173
  methods: {
6170
6174
  async changeLoginToQr() {
6171
- this.isQrCodeLogin = !0, await We(), await this.initQrCodeLogin();
6175
+ this.isQrCodeLogin = !0, await Ye(), await this.initQrCodeLogin();
6172
6176
  },
6173
6177
  generateRandomHash() {
6174
6178
  const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", t = e.length;
@@ -6208,7 +6212,7 @@ const It = mn.Buffer, ze = {
6208
6212
  },
6209
6213
  async startQrCodePooling() {
6210
6214
  this.poolingInterval = setInterval(async () => {
6211
- const [e, t] = await L(xe.qrCodePooling({
6215
+ const [e, t] = await L(Be.qrCodePooling({
6212
6216
  qrToken: this.qrCodeHash
6213
6217
  }, this.$storage));
6214
6218
  if (e)
@@ -6217,14 +6221,14 @@ const It = mn.Buffer, ze = {
6217
6221
  }, 2e3);
6218
6222
  },
6219
6223
  async initQrCodeLogin() {
6220
- this.refreshQrCode(), await We(), await this.startQrCodePooling(), this.qrCodeRefreshInterval = setInterval(() => {
6224
+ this.refreshQrCode(), await Ye(), await this.startQrCodePooling(), this.qrCodeRefreshInterval = setInterval(() => {
6221
6225
  this.refreshQrCode();
6222
6226
  }, 6e4);
6223
6227
  }
6224
6228
  }
6225
6229
  }, Pt = {
6226
6230
  name: "AuthLogin",
6227
- mixins: [pn, un, _n, ve, ye, ze, D, At],
6231
+ mixins: [pn, un, _n, ve, ye, ze, O, At],
6228
6232
  props: {
6229
6233
  isModal: {
6230
6234
  type: Boolean,
@@ -6317,7 +6321,7 @@ const It = mn.Buffer, ze = {
6317
6321
  class: "responsive-image",
6318
6322
  style: { width: "50%" }
6319
6323
  })
6320
- ], -1), Ut = ["placeholder"], Dt = /* @__PURE__ */ c("em", null, null, -1), Ot = { class: "page-login-field half-bottom" }, Ft = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6324
+ ], -1), Ut = ["placeholder"], Ot = /* @__PURE__ */ c("em", null, null, -1), Dt = { class: "page-login-field half-bottom" }, Ft = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6321
6325
  /* @__PURE__ */ c("img", {
6322
6326
  src: "https://cdn.tapni.co/icons/padlock.png",
6323
6327
  class: "responsive-image",
@@ -6382,7 +6386,7 @@ const It = mn.Buffer, ze = {
6382
6386
  class: "page-login-links"
6383
6387
  }, wa = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), za = { class: "forgot center-text pointer small-top" }, La = /* @__PURE__ */ c("br", null, null, -1), Ca = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
6384
6388
  function Sa(e, t, r, u, l, d) {
6385
- const h = de("router-link");
6389
+ const g = de("router-link");
6386
6390
  return f(), k("form", {
6387
6391
  class: "page-login content-boxed content-boxed-padding",
6388
6392
  onSubmit: t[13] || (t[13] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
@@ -6414,9 +6418,9 @@ function Sa(e, t, r, u, l, d) {
6414
6418
  }, null, 40, Ut), [
6415
6419
  [ae, l.emailOrUsername]
6416
6420
  ]),
6417
- Dt
6421
+ Ot
6418
6422
  ]),
6419
- c("div", Ot, [
6423
+ c("div", Dt, [
6420
6424
  Ft,
6421
6425
  B(c("input", {
6422
6426
  "onUpdate:modelValue": t[3] || (t[3] = (m) => l.password = m),
@@ -6522,7 +6526,7 @@ function Sa(e, t, r, u, l, d) {
6522
6526
  ]),
6523
6527
  Ca
6524
6528
  ])) : (f(), k("div", ya, [
6525
- d.displayRegisterLogin ? (f(), Y(h, {
6529
+ d.displayRegisterLogin ? (f(), Y(g, {
6526
6530
  key: 0,
6527
6531
  class: "forgot float-right",
6528
6532
  to: "/register"
@@ -6532,7 +6536,7 @@ function Sa(e, t, r, u, l, d) {
6532
6536
  ]),
6533
6537
  _: 1
6534
6538
  })) : T("", !0),
6535
- d.displayResetPasswordLogin ? (f(), Y(h, {
6539
+ d.displayResetPasswordLogin ? (f(), Y(g, {
6536
6540
  key: 1,
6537
6541
  class: "create float-left",
6538
6542
  to: "/reset"
@@ -6548,7 +6552,7 @@ function Sa(e, t, r, u, l, d) {
6548
6552
  }
6549
6553
  const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
6550
6554
  name: "AuthRegister",
6551
- mixins: [pn, un, _n, ve, D],
6555
+ mixins: [pn, un, _n, ve, O],
6552
6556
  props: {
6553
6557
  isModal: {
6554
6558
  type: Boolean,
@@ -6630,13 +6634,13 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
6630
6634
  class: "responsive-image",
6631
6635
  style: { width: "60%" }
6632
6636
  })
6633
- ], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" }, Da = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6637
+ ], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" }, Oa = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6634
6638
  /* @__PURE__ */ c("img", {
6635
6639
  src: "https://cdn.tapni.co/icons/user.png",
6636
6640
  class: "responsive-image",
6637
6641
  style: { width: "50%" }
6638
6642
  })
6639
- ], -1), Oa = ["placeholder", "disabled"], Fa = /* @__PURE__ */ c("em", null, null, -1), Va = { class: "page-login-field half-top half-bottom" }, Ka = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6643
+ ], -1), Da = ["placeholder", "disabled"], Fa = /* @__PURE__ */ c("em", null, null, -1), Va = { class: "page-login-field half-top half-bottom" }, Ka = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6640
6644
  /* @__PURE__ */ c("img", {
6641
6645
  src: "https://cdn.tapni.co/icons/padlock.png",
6642
6646
  class: "responsive-image",
@@ -6683,7 +6687,7 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
6683
6687
  class: "page-login-links"
6684
6688
  }, gi = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), hi = { class: "forgot center-text pointer small-top" }, fi = /* @__PURE__ */ c("br", null, null, -1), ki = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
6685
6689
  function bi(e, t, r, u, l, d) {
6686
- const h = de("router-link");
6690
+ const g = de("router-link");
6687
6691
  return f(), k("form", {
6688
6692
  class: "page-login content-boxed content-boxed-padding",
6689
6693
  onSubmit: t[12] || (t[12] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
@@ -6720,7 +6724,7 @@ function bi(e, t, r, u, l, d) {
6720
6724
  Na
6721
6725
  ]),
6722
6726
  c("div", Ua, [
6723
- Da,
6727
+ Oa,
6724
6728
  B(c("input", {
6725
6729
  "onUpdate:modelValue": t[3] || (t[3] = (m) => l.username = m),
6726
6730
  onKeydown: t[4] || (t[4] = te(U(() => {
@@ -6734,7 +6738,7 @@ function bi(e, t, r, u, l, d) {
6734
6738
  required: "",
6735
6739
  disabled: l.usernameRegister,
6736
6740
  class: R({ "input-disabled": l.usernameRegister })
6737
- }, null, 42, Oa), [
6741
+ }, null, 42, Da), [
6738
6742
  [ae, l.username]
6739
6743
  ]),
6740
6744
  Fa
@@ -6820,7 +6824,7 @@ function bi(e, t, r, u, l, d) {
6820
6824
  ]),
6821
6825
  ki
6822
6826
  ])) : (f(), k("div", mi, [
6823
- j(h, {
6827
+ j(g, {
6824
6828
  class: "create float-right",
6825
6829
  to: "/verify"
6826
6830
  }, {
@@ -6829,7 +6833,7 @@ function bi(e, t, r, u, l, d) {
6829
6833
  ]),
6830
6834
  _: 1
6831
6835
  }),
6832
- j(h, {
6836
+ j(g, {
6833
6837
  class: "forgot float-left",
6834
6838
  to: "/login"
6835
6839
  }, {
@@ -6844,7 +6848,7 @@ function bi(e, t, r, u, l, d) {
6844
6848
  }
6845
6849
  const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
6846
6850
  name: "AuthVerify",
6847
- mixins: [D],
6851
+ mixins: [O],
6848
6852
  props: {
6849
6853
  isModal: {
6850
6854
  type: Boolean,
@@ -6937,12 +6941,12 @@ const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
6937
6941
  }, Mi = {
6938
6942
  key: 1,
6939
6943
  class: "button--loading button__loader"
6940
- }, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Di = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Oi = {
6944
+ }, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Oi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Di = {
6941
6945
  key: 1,
6942
6946
  class: "page-login-links"
6943
6947
  }, Fi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), Vi = { class: "forgot center-text pointer small-top" }, Ki = /* @__PURE__ */ K(() => /* @__PURE__ */ c("br", null, null, -1)), $i = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1));
6944
6948
  function Hi(e, t, r, u, l, d) {
6945
- const h = de("router-link");
6949
+ const g = de("router-link");
6946
6950
  return f(), k("form", {
6947
6951
  class: "page-login content-boxed content-boxed-padding",
6948
6952
  onSubmit: t[6] || (t[6] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
@@ -6996,7 +7000,7 @@ function Hi(e, t, r, u, l, d) {
6996
7000
  }, null, 8, Ni),
6997
7001
  Ui
6998
7002
  ]),
6999
- Di,
7003
+ Oi,
7000
7004
  r.isModal ? (f(), k("div", {
7001
7005
  key: 2,
7002
7006
  class: "page-login-links",
@@ -7008,8 +7012,8 @@ function Hi(e, t, r, u, l, d) {
7008
7012
  I(" " + y(e.ssoLang[this.appLanguage].create_new_account), 1)
7009
7013
  ]),
7010
7014
  $i
7011
- ])) : (f(), k("div", Oi, [
7012
- j(h, {
7015
+ ])) : (f(), k("div", Di, [
7016
+ j(g, {
7013
7017
  class: "create float-right",
7014
7018
  to: "/register"
7015
7019
  }, {
@@ -7018,7 +7022,7 @@ function Hi(e, t, r, u, l, d) {
7018
7022
  ]),
7019
7023
  _: 1
7020
7024
  }),
7021
- j(h, {
7025
+ j(g, {
7022
7026
  class: "forgot float-left",
7023
7027
  to: "/login"
7024
7028
  }, {
@@ -7033,7 +7037,7 @@ function Hi(e, t, r, u, l, d) {
7033
7037
  }
7034
7038
  const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa"]]), Qi = {
7035
7039
  name: "AuthReset",
7036
- mixins: [D],
7040
+ mixins: [O],
7037
7041
  data() {
7038
7042
  return {
7039
7043
  loading: !0,
@@ -7141,7 +7145,7 @@ const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa
7141
7145
  class: "button--loading button__loader"
7142
7146
  }, So = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), To = { class: "close-text center-text half-top color-black" }, Eo = ["innerHTML"], Io = ["href"];
7143
7147
  function Ao(e, t, r, u, l, d) {
7144
- const h = de("router-link");
7148
+ const g = de("router-link");
7145
7149
  return l.passwordChange ? (f(), k("form", {
7146
7150
  key: 1,
7147
7151
  class: "page-login content-boxed content-boxed-padding",
@@ -7241,7 +7245,7 @@ function Ao(e, t, r, u, l, d) {
7241
7245
  ]),
7242
7246
  so,
7243
7247
  c("div", co, [
7244
- j(h, {
7248
+ j(g, {
7245
7249
  class: "create float-right",
7246
7250
  to: "/verify"
7247
7251
  }, {
@@ -7250,7 +7254,7 @@ function Ao(e, t, r, u, l, d) {
7250
7254
  ]),
7251
7255
  _: 1
7252
7256
  }),
7253
- j(h, {
7257
+ j(g, {
7254
7258
  class: "forgot float-left",
7255
7259
  to: "/login"
7256
7260
  }, {
@@ -7265,7 +7269,7 @@ function Ao(e, t, r, u, l, d) {
7265
7269
  }
7266
7270
  const bn = /* @__PURE__ */ $(Qi, [["render", Ao], ["__scopeId", "data-v-4f85b89a"]]), Po = {
7267
7271
  name: "AuthCallback",
7268
- mixins: [ye, ze, D],
7272
+ mixins: [ye, ze, O],
7269
7273
  data() {
7270
7274
  return {};
7271
7275
  },
@@ -7297,7 +7301,7 @@ function Ro(e, t, r, u, l, d) {
7297
7301
  Bo,
7298
7302
  I(" " + y(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
7299
7303
  c("span", {
7300
- onClick: t[0] || (t[0] = (...h) => d.inAppRedirect && d.inAppRedirect(...h)),
7304
+ onClick: t[0] || (t[0] = (...g) => d.inAppRedirect && d.inAppRedirect(...g)),
7301
7305
  style: { color: "blue", cursor: "pointer" }
7302
7306
  }, y(e.ssoLang[this.appLanguage].click_here), 1),
7303
7307
  I(".")
@@ -7306,7 +7310,7 @@ function Ro(e, t, r, u, l, d) {
7306
7310
  }
7307
7311
  const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
7308
7312
  name: "ModalOverlay",
7309
- mixins: [D],
7313
+ mixins: [O],
7310
7314
  data() {
7311
7315
  return {
7312
7316
  toggle: !1
@@ -7332,12 +7336,12 @@ const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
7332
7336
  function No(e, t, r, u, l, d) {
7333
7337
  return f(), k("div", {
7334
7338
  class: R({ "pointer delete-menu": !0, "delete-menu-active": l.toggle }),
7335
- onClick: t[0] || (t[0] = (...h) => d.toggleEmit && d.toggleEmit(...h))
7339
+ onClick: t[0] || (t[0] = (...g) => d.toggleEmit && d.toggleEmit(...g))
7336
7340
  }, null, 2);
7337
7341
  }
7338
7342
  const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
7339
7343
  name: "SSO",
7340
- mixins: [ve, ye, ze, D],
7344
+ mixins: [ve, ye, ze, O],
7341
7345
  data() {
7342
7346
  return {
7343
7347
  toggle: !1,
@@ -7378,14 +7382,14 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
7378
7382
  this.toggle = !this.toggle;
7379
7383
  }
7380
7384
  }
7381
- }, Do = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Oo = /* @__PURE__ */ Do(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7385
+ }, Oo = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Do = /* @__PURE__ */ Oo(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7382
7386
  /* @__PURE__ */ c("img", {
7383
7387
  src: "https://cdn.tapni.co/icons/down-arrow.png",
7384
7388
  class: "responsive-image",
7385
7389
  style: { width: "45%" }
7386
7390
  })
7387
7391
  ], -1)), Fo = [
7388
- Oo
7392
+ Do
7389
7393
  ], Vo = { class: "bold center-text color-black half-top half-bottom" }, Ko = ["placeholder"], $o = {
7390
7394
  type: "submit",
7391
7395
  class: "button black-button white-button button-full",
@@ -7396,12 +7400,12 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
7396
7400
  };
7397
7401
  function Go(e, t, r, u, l, d) {
7398
7402
  return f(), k("form", {
7399
- onSubmit: t[3] || (t[3] = U((...h) => d.submit && d.submit(...h), ["prevent"])),
7403
+ onSubmit: t[3] || (t[3] = U((...g) => d.submit && d.submit(...g), ["prevent"])),
7400
7404
  class: R(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": l.toggle }]),
7401
7405
  style: { height: "auto", "margin-top": "-172.5px" }
7402
7406
  }, [
7403
7407
  c("a", {
7404
- onClick: t[0] || (t[0] = (...h) => d.forceClose && d.forceClose(...h)),
7408
+ onClick: t[0] || (t[0] = (...g) => d.forceClose && d.forceClose(...g)),
7405
7409
  class: "color-black pull-right pointer",
7406
7410
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
7407
7411
  }, Fo),
@@ -7409,7 +7413,7 @@ function Go(e, t, r, u, l, d) {
7409
7413
  c("div", null, [
7410
7414
  B(c("input", {
7411
7415
  type: "text",
7412
- "onUpdate:modelValue": t[1] || (t[1] = (h) => l.email = h),
7416
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => l.email = g),
7413
7417
  placeholder: e.ssoLang[this.appLanguage].email,
7414
7418
  autocomplete: "off",
7415
7419
  autocorrect: "off",
@@ -7431,7 +7435,7 @@ function Go(e, t, r, u, l, d) {
7431
7435
  }
7432
7436
  const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09"]]), Wo = {
7433
7437
  name: "SSOPick",
7434
- mixins: [ve, ye, ze, D],
7438
+ mixins: [ve, ye, ze, O],
7435
7439
  data() {
7436
7440
  return {
7437
7441
  toggle: !1,
@@ -7492,7 +7496,7 @@ const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09
7492
7496
  class: "button--loading button__loader"
7493
7497
  };
7494
7498
  function cr(e, t, r, u, l, d) {
7495
- var h, m, b;
7499
+ var g, m, b;
7496
7500
  return f(), k("form", {
7497
7501
  onSubmit: t[4] || (t[4] = U(() => {
7498
7502
  }, ["prevent"])),
@@ -7505,7 +7509,7 @@ function cr(e, t, r, u, l, d) {
7505
7509
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
7506
7510
  }, Xo),
7507
7511
  c("h3", Zo, y(e.ssoLang[e.appLanguage].select_sign_method), 1),
7508
- (h = l.sso) != null && h.azure ? (f(), k("a", {
7512
+ (g = l.sso) != null && g.azure ? (f(), k("a", {
7509
7513
  key: 0,
7510
7514
  onClick: t[1] || (t[1] = (C) => d.ssoLogin("azure")),
7511
7515
  class: "button-center button black-button button-90 google-button pointer"
@@ -7533,7 +7537,7 @@ function cr(e, t, r, u, l, d) {
7533
7537
  }
7534
7538
  const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65"]]), lr = {
7535
7539
  name: "LinkIcon",
7536
- mixins: [D],
7540
+ mixins: [O],
7537
7541
  props: {
7538
7542
  linkAdding: {
7539
7543
  type: Boolean,
@@ -7605,7 +7609,7 @@ const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65
7605
7609
  methods: {}
7606
7610
  }, dr = ["src", "alt"], pr = ["src", "alt"], ur = ["src", "alt"], _r = ["src", "alt"];
7607
7611
  function mr(e, t, r, u, l, d) {
7608
- var h, m;
7612
+ var g, m;
7609
7613
  return f(), k("a", {
7610
7614
  class: R(["disable-select", r.linkStyle + (r.disabled ? " opacity-50" : "")]),
7611
7615
  style: ce(
@@ -7618,7 +7622,7 @@ function mr(e, t, r, u, l, d) {
7618
7622
  "pulse pulse-border": r.pulse,
7619
7623
  "link-drag": r.editing
7620
7624
  }),
7621
- style: ce({ ...(h = r.customLinkStyle) == null ? void 0 : h.linkIcon })
7625
+ style: ce({ ...(g = r.customLinkStyle) == null ? void 0 : g.linkIcon })
7622
7626
  }, [
7623
7627
  !r.data.custom_icon && r.data.type !== "customlink" ? (f(), k("img", {
7624
7628
  key: 0,
@@ -7666,7 +7670,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
7666
7670
  GOOGLE_ANALYTICS_ID: ""
7667
7671
  }, fr = {
7668
7672
  name: "Language",
7669
- mixins: [D],
7673
+ mixins: [O],
7670
7674
  components: { LinkIcon: gr },
7671
7675
  data() {
7672
7676
  return {
@@ -7707,7 +7711,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
7707
7711
  br
7708
7712
  ], yr = { class: "bold center-text color-black small-bottom" };
7709
7713
  function wr(e, t, r, u, l, d) {
7710
- const h = de("LinkIcon");
7714
+ const g = de("LinkIcon");
7711
7715
  return f(), k("div", {
7712
7716
  class: R(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": l.toggle }]),
7713
7717
  style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
@@ -7718,56 +7722,56 @@ function wr(e, t, r, u, l, d) {
7718
7722
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
7719
7723
  }, vr),
7720
7724
  c("h3", yr, y(e.ssoLang[e.appLanguage].app_language), 1),
7721
- j(h, {
7725
+ j(g, {
7722
7726
  onClick: t[1] || (t[1] = (m) => d.updateLanguage("en")),
7723
7727
  "link-style": "link-grid",
7724
7728
  data: { type: "lang/en", text: e.ssoLang[this.appLanguage].english },
7725
7729
  editing: !1,
7726
7730
  class: R({ "add-button": !0 })
7727
7731
  }, null, 8, ["data"]),
7728
- j(h, {
7732
+ j(g, {
7729
7733
  onClick: t[2] || (t[2] = (m) => d.updateLanguage("es")),
7730
7734
  "link-style": "link-grid",
7731
7735
  data: { type: "lang/es", text: e.ssoLang[this.appLanguage].spanish },
7732
7736
  editing: !1,
7733
7737
  class: R({ "add-button": !0 })
7734
7738
  }, null, 8, ["data"]),
7735
- j(h, {
7739
+ j(g, {
7736
7740
  onClick: t[3] || (t[3] = (m) => d.updateLanguage("de")),
7737
7741
  "link-style": "link-grid",
7738
7742
  data: { type: "lang/de", text: e.ssoLang[this.appLanguage].german },
7739
7743
  editing: !1,
7740
7744
  class: R({ "add-button": !0 })
7741
7745
  }, null, 8, ["data"]),
7742
- j(h, {
7746
+ j(g, {
7743
7747
  onClick: t[4] || (t[4] = (m) => d.updateLanguage("it")),
7744
7748
  "link-style": "link-grid",
7745
7749
  data: { type: "lang/it", text: e.ssoLang[this.appLanguage].italian },
7746
7750
  editing: !1,
7747
7751
  class: R({ "add-button": !0 })
7748
7752
  }, null, 8, ["data"]),
7749
- j(h, {
7753
+ j(g, {
7750
7754
  onClick: t[5] || (t[5] = (m) => d.updateLanguage("fr")),
7751
7755
  "link-style": "link-grid",
7752
7756
  data: { type: "lang/fr", text: e.ssoLang[this.appLanguage].french },
7753
7757
  editing: !1,
7754
7758
  class: R({ "add-button": !0 })
7755
7759
  }, null, 8, ["data"]),
7756
- j(h, {
7760
+ j(g, {
7757
7761
  onClick: t[6] || (t[6] = (m) => d.updateLanguage("kr")),
7758
7762
  "link-style": "link-grid",
7759
7763
  data: { type: "lang/kr", text: e.ssoLang[this.appLanguage].korean },
7760
7764
  editing: !1,
7761
7765
  class: R({ "add-button": !0 })
7762
7766
  }, null, 8, ["data"]),
7763
- j(h, {
7767
+ j(g, {
7764
7768
  onClick: t[7] || (t[7] = (m) => d.updateLanguage("sr")),
7765
7769
  "link-style": "link-grid",
7766
7770
  data: { type: "lang/sr", text: e.ssoLang[this.appLanguage].serbian },
7767
7771
  editing: !1,
7768
7772
  class: R({ "add-button": !0 })
7769
7773
  }, null, 8, ["data"]),
7770
- j(h, {
7774
+ j(g, {
7771
7775
  onClick: t[8] || (t[8] = (m) => d.updateLanguage("tr")),
7772
7776
  "link-style": "link-grid",
7773
7777
  data: { type: "lang/tr", text: e.ssoLang[this.appLanguage].turkish },
@@ -7809,7 +7813,7 @@ const Lr = { id: "ssoapp" }, Cr = {
7809
7813
  Rr
7810
7814
  ], Nr = {
7811
7815
  name: "TapniAuth",
7812
- mixins: [D],
7816
+ mixins: [O],
7813
7817
  data() {
7814
7818
  return {
7815
7819
  isSetup: !1
@@ -7871,7 +7875,7 @@ const Lr = { id: "ssoapp" }, Cr = {
7871
7875
  this.applyBgStyle();
7872
7876
  }
7873
7877
  }
7874
- }, Ze = /* @__PURE__ */ Object.assign(Nr, {
7878
+ }, xe = /* @__PURE__ */ Object.assign(Nr, {
7875
7879
  setup(e) {
7876
7880
  return document.addEventListener("DOMContentLoaded", function() {
7877
7881
  const t = document.createElement("script");
@@ -7919,9 +7923,13 @@ const Lr = { id: "ssoapp" }, Cr = {
7919
7923
  ]));
7920
7924
  }
7921
7925
  }), ns = {
7922
- TapniAuth: Ze,
7923
- install: (e) => {
7924
- e.component("TapniAuth", Ze);
7926
+ TapniAuth: xe,
7927
+ install: (e, t) => {
7928
+ t && t.API_ROOT && xe.mixin({
7929
+ created() {
7930
+ this.API_ROOT = t.API_ROOT;
7931
+ }
7932
+ }), e.component("TapniAuth", xe);
7925
7933
  }
7926
7934
  };
7927
7935
  export {