@xwadex/fesd 0.0.14-re.83 → 0.0.14-re.84

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.
@@ -9,7 +9,7 @@ var h = (n, i, t) => {
9
9
  };
10
10
  var d = (n, i, t) => (fs(n, i, "access private method"), t);
11
11
  import { OverlayScrollbars as Me } from "overlayscrollbars";
12
- import f from "jquery";
12
+ import v from "jquery";
13
13
  import "./vendor-bundle.js";
14
14
  import "validator";
15
15
  import "flatpickr";
@@ -27,7 +27,7 @@ const Y = {
27
27
  videoTarget: "video-template",
28
28
  videoTargetRoute: "https://cdn.wdd.idv.tw/fesd/video4_lightbox.html",
29
29
  videoVimeoHash: null,
30
- videoHighQuality: !1,
30
+ videoHighQuality: "off",
31
31
  videoStartTime: 0
32
32
  },
33
33
  ATTRS: {
@@ -365,7 +365,7 @@ const Y = {
365
365
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
366
366
  }
367
367
  }, we = (n, i) => {
368
- const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, v = g[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - v, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
368
+ const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, f = g[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
369
369
  let S = 0;
370
370
  if (H === 0)
371
371
  return;
@@ -376,7 +376,7 @@ const Y = {
376
376
  X("beforeScroll");
377
377
  const Pe = () => {
378
378
  S += G;
379
- const R = Ls[r](S, v, H, o);
379
+ const R = Ls[r](S, f, H, o);
380
380
  g[u] = R, S < o && requestAnimationFrame(Pe), S >= o && X("afterScroll");
381
381
  };
382
382
  requestAnimationFrame(Pe);
@@ -674,13 +674,13 @@ customElements.define("modern-modal", ti);
674
674
  const _s = (n, i) => {
675
675
  const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
676
676
  i.forEach((s) => {
677
- const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), v = t * (l / 100);
678
- if (p - e <= g && m - e >= v && s.offsetParent)
677
+ const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), f = t * (l / 100);
678
+ if (p - e <= g && m - e >= f && s.offsetParent)
679
679
  setTimeout(() => {
680
680
  s.classList.add(o);
681
681
  }, a);
682
682
  else {
683
- const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <= v || c === !0;
683
+ const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <= f || c === !0;
684
684
  setTimeout(() => {
685
685
  y && s.classList.remove(o);
686
686
  }, a);
@@ -859,18 +859,18 @@ function Ei(n) {
859
859
  const i = [];
860
860
  n && n.forEach((t) => {
861
861
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
862
- }), f("html").addClass("scrollLock"), vs(i);
862
+ }), v("html").addClass("scrollLock"), vs(i);
863
863
  }
864
864
  function Ai(n) {
865
865
  const i = [];
866
866
  n && n.forEach((t) => {
867
867
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
868
- }), f("html").removeClass("scrollLock"), bs(i);
868
+ }), v("html").removeClass("scrollLock"), bs(i);
869
869
  }
870
870
  async function fn(n = 0) {
871
- if (f(".loading-wrapper").length)
871
+ if (v(".loading-wrapper").length)
872
872
  return;
873
- f("body").append(`
873
+ v("body").append(`
874
874
  <div class="loading-wrapper">
875
875
  <div class="icon-box">
876
876
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><path d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#ffffff" stroke="none">
@@ -880,13 +880,13 @@ async function fn(n = 0) {
880
880
  </svg>
881
881
  </div>
882
882
  </div>
883
- `), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
883
+ `), v(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
884
884
  Ei();
885
885
  });
886
886
  }
887
887
  function vn() {
888
- f(".loading-wrapper").fadeOut(300).promise().done(function() {
889
- f(".loading-wrapper").remove(), Ai();
888
+ v(".loading-wrapper").fadeOut(300).promise().done(function() {
889
+ v(".loading-wrapper").remove(), Ai();
890
890
  });
891
891
  }
892
892
  function bn(n, i) {
@@ -899,7 +899,7 @@ function Cs() {
899
899
  }
900
900
  function yn(n, i = () => {
901
901
  }) {
902
- f(`[data-tab-content=${n}]`).fadeIn(function() {
902
+ v(`[data-tab-content=${n}]`).fadeIn(function() {
903
903
  typeof i == "function" && i();
904
904
  }).siblings("[data-tab-content]").hide(), Cs();
905
905
  }
@@ -940,13 +940,13 @@ function En() {
940
940
  };
941
941
  }
942
942
  function An(n, i) {
943
- f(n).on("click", function() {
944
- f(this).toggleClass(i);
943
+ v(n).on("click", function() {
944
+ v(this).toggleClass(i);
945
945
  });
946
946
  }
947
947
  function Ln(n, i) {
948
- f(n).on("click", function() {
949
- f(n).not(this).removeClass(i), f(this).addClass(i);
948
+ v(n).on("click", function() {
949
+ v(n).not(this).removeClass(i), v(this).addClass(i);
950
950
  });
951
951
  }
952
952
  function Hs(n, i = 250) {
@@ -968,12 +968,12 @@ function Sn(n, i = 250) {
968
968
  };
969
969
  }
970
970
  function Dn() {
971
- window._g.interval = [], f(".countdown").each((i, t) => {
972
- const e = Number(f(t).attr("data-seconds")) + 1;
971
+ window._g.interval = [], v(".countdown").each((i, t) => {
972
+ const e = Number(v(t).attr("data-seconds")) + 1;
973
973
  let s = Math.floor(e / 60) + ":" + e % 60;
974
974
  window._g.interval[i] = setInterval(function() {
975
975
  var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
976
- --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, f(t).html(a + ":" + r), s = a + ":" + r;
976
+ --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, v(t).html(a + ":" + r), s = a + ":" + r;
977
977
  }, 1e3);
978
978
  });
979
979
  }
@@ -992,13 +992,13 @@ function kn() {
992
992
  n(), window.addEventListener("resize", Hs(n));
993
993
  }
994
994
  function $n(n, i, t, e, s) {
995
- const o = this, r = f(n).html().split("<br>");
995
+ const o = this, r = v(n).html().split("<br>");
996
996
  let l = "", c = 0;
997
997
  r.forEach((u, p) => {
998
- p !== 0 && (l += "<br>"), u.split("").forEach((g, v) => {
999
- i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), v === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
998
+ p !== 0 && (l += "<br>"), u.split("").forEach((g, f) => {
999
+ i ? (f === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), f === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
1000
1000
  });
1001
- }), f(n).html(l);
1001
+ }), v(n).html(l);
1002
1002
  }
1003
1003
  function xn(n, i) {
1004
1004
  const t = Math.pow(10, i);
@@ -1021,7 +1021,7 @@ function Cn(n) {
1021
1021
  }
1022
1022
  function Hn(n, i) {
1023
1023
  const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
1024
- (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), f(n.params.navigation.nextEl).hide(), f(n.params.navigation.prevEl).hide(), f(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), f(n.params.navigation.nextEl).show(), f(n.params.navigation.prevEl).show(), f(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1024
+ (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), v(n.params.navigation.nextEl).hide(), v(n.params.navigation.prevEl).hide(), v(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), v(n.params.navigation.nextEl).show(), v(n.params.navigation.prevEl).show(), v(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1025
1025
  }
1026
1026
  function Mn(n) {
1027
1027
  n.el.querySelectorAll("img.detect-shade").forEach((i) => {
@@ -1031,36 +1031,36 @@ function Mn(n) {
1031
1031
  });
1032
1032
  }
1033
1033
  function qn(n) {
1034
- const i = n.el, t = f(i).find(".swiper-slide-active"), e = f(t).find("video").get(0), s = f(i).find(".swiper-slide video");
1035
- n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
1034
+ const i = n.el, t = v(i).find(".swiper-slide-active"), e = v(t).find("video").get(0), s = v(i).find(".swiper-slide video");
1035
+ n.autoplay.stop(), v(e).off("ended"), e ? (s.each((o, a) => {
1036
1036
  a.currentTime = 0;
1037
- }), f(e).on("ended", function() {
1037
+ }), v(e).on("ended", function() {
1038
1038
  n.slideNext();
1039
1039
  }), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
1040
1040
  }
1041
1041
  function In() {
1042
- f(".number-grow").each(function(n, i) {
1043
- const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1042
+ v(".number-grow").each(function(n, i) {
1043
+ const t = v(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1044
1044
  let r = "";
1045
1045
  for (var l = 0; l <= 9; l++)
1046
1046
  r += String(l) + "<br>";
1047
1047
  return r;
1048
1048
  };
1049
- f(o).each(function(r, l) {
1049
+ v(o).each(function(r, l) {
1050
1050
  const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
1051
1051
  t.append(c);
1052
1052
  });
1053
1053
  });
1054
1054
  }
1055
1055
  function On() {
1056
- f(".letter-grow").each(function(n, i) {
1057
- const t = f(i), s = t.attr("data-letter").split(""), o = () => {
1056
+ v(".letter-grow").each(function(n, i) {
1057
+ const t = v(i), s = t.attr("data-letter").split(""), o = () => {
1058
1058
  let a = "";
1059
1059
  for (let r = 65; r <= 90; r++)
1060
1060
  a += String.fromCharCode(r) + "<br>";
1061
1061
  return a;
1062
1062
  };
1063
- f(s).each(function(a, r) {
1063
+ v(s).each(function(a, r) {
1064
1064
  const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
1065
1065
  t.append(l);
1066
1066
  });
@@ -1121,8 +1121,8 @@ V = new WeakSet(), Se = function() {
1121
1121
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1122
1122
  const g = s.querySelector("img");
1123
1123
  g.insertAdjacentHTML(E.after, t[o]);
1124
- const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
- !v && r == "youtube" ? p ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1124
+ const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
+ !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1126
1126
  const y = b.thumbnail_url;
1127
1127
  g.setAttribute("src", `${y}`);
1128
1128
  }).catch(function(b) {
@@ -1136,13 +1136,13 @@ V = new WeakSet(), Se = function() {
1136
1136
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
1137
1137
  const g = s.querySelector("img");
1138
1138
  g.insertAdjacentHTML(E.after, t[o]);
1139
- const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
- !v && r == "youtube" ? p ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1139
+ const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
+ !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1141
1141
  const y = b.thumbnail_url;
1142
1142
  g.setAttribute("src", `${y}`);
1143
1143
  }).catch(function(b) {
1144
1144
  console.log("error");
1145
- }) : v || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1145
+ }) : f || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1146
1146
  } else {
1147
1147
  s.innerHTML = Te(e);
1148
1148
  return;
@@ -1159,8 +1159,13 @@ V = new WeakSet(), Se = function() {
1159
1159
  on: {
1160
1160
  complete(m) {
1161
1161
  if (l == "instagram") {
1162
- const g = (v) => `${c}`;
1163
- m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm && window.instgrm.Embeds.process();
1162
+ const g = (f) => `${c}`;
1163
+ if (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm)
1164
+ window.instgrm.Embeds.process();
1165
+ else {
1166
+ const f = document.createElement("script");
1167
+ f.src = "https://www.instagram.com/embed.js", f.async = !0, document.body.appendChild(f);
1168
+ }
1164
1169
  } else
1165
1170
  m.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1166
1171
  },
@@ -2318,22 +2323,22 @@ It = new WeakSet(), $i = function() {
2318
2323
  const u = this, p = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2319
2324
  if (u.classList.contains("has-sublayer")) {
2320
2325
  c.stopPropagation();
2321
- const v = u.querySelector(".sub-dropdown"), b = v.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2322
- v.style.cssText = `--height: ${b.offsetHeight + y}px`;
2323
- const H = parseInt(v.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2326
+ const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2327
+ f.style.cssText = `--height: ${b.offsetHeight + y}px`;
2328
+ const H = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2324
2329
  s = m + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2325
2330
  };
2326
2331
  u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= H, S()) : (u.classList.add("open"), e.s.subDropdownTotalH += H, S());
2327
2332
  const X = () => {
2328
- e.__scroller__.update(!0), v.removeEventListener("transitionend", X);
2333
+ e.__scroller__.update(!0), f.removeEventListener("transitionend", X);
2329
2334
  };
2330
- v.addEventListener("transitionend", X);
2335
+ f.addEventListener("transitionend", X);
2331
2336
  } else
2332
2337
  switch (Os(e), e.s.selectType) {
2333
2338
  case "single":
2334
2339
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2335
- const v = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2336
- y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[v][b].forEach((H, G) => {
2340
+ const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2341
+ y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[f][b].forEach((H, G) => {
2337
2342
  const S = document.createElement("li");
2338
2343
  S.textContent = H[0], S.setAttribute("data-option", H[0]), y.querySelector(".dropdown-list").append(S);
2339
2344
  }), e.__events__.selectOption(y));
@@ -2547,22 +2552,22 @@ jt = new WeakSet(), Mi = function() {
2547
2552
  break;
2548
2553
  case "alternate":
2549
2554
  let g = function() {
2550
- let v = [];
2555
+ let f = [];
2551
2556
  switch (e) {
2552
2557
  case "top":
2553
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2558
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2554
2559
  break;
2555
2560
  case "right":
2556
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2561
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2557
2562
  break;
2558
2563
  case "bottom":
2559
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2564
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2560
2565
  break;
2561
2566
  case "left":
2562
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2567
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2563
2568
  break;
2564
2569
  }
2565
- return v;
2570
+ return f;
2566
2571
  }, p, m;
2567
2572
  (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
2568
2573
  duration: m,