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

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.
@@ -2,7 +2,7 @@ var fs = (n, i, t) => {
2
2
  if (!i.has(n))
3
3
  throw TypeError("Cannot " + t);
4
4
  };
5
- var p = (n, i, t) => {
5
+ var h = (n, i, t) => {
6
6
  if (i.has(n))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(n) : i.set(n, t);
@@ -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", h = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, v = g[u], b = w(t) ? A(t).getBoundingClientRect()[h] : 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, 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;
369
369
  let S = 0;
370
370
  if (H === 0)
371
371
  return;
@@ -384,9 +384,9 @@ const Y = {
384
384
  var J, Ee, pt, Ve, mt, Ke;
385
385
  class Qe {
386
386
  constructor(i, t = {}) {
387
- p(this, J);
388
- p(this, pt);
389
- p(this, mt);
387
+ h(this, J);
388
+ h(this, pt);
389
+ h(this, mt);
390
390
  this.__storage__ = {
391
391
  el: i,
392
392
  options: t
@@ -463,11 +463,11 @@ var gt, ei, ft, ii, vt, si, bt, ni, yt, oi;
463
463
  class ti extends HTMLElement {
464
464
  constructor() {
465
465
  super();
466
- p(this, gt);
467
- p(this, ft);
468
- p(this, vt);
469
- p(this, bt);
470
- p(this, yt);
466
+ h(this, gt);
467
+ h(this, ft);
468
+ h(this, vt);
469
+ h(this, bt);
470
+ h(this, yt);
471
471
  this.initialize = !1;
472
472
  }
473
473
  static get observedAttributes() {
@@ -506,7 +506,7 @@ gt = new WeakSet(), ei = function() {
506
506
  overflowBehavior: {
507
507
  x: "hidden"
508
508
  }
509
- }), d(this, bt, ni).call(this);
509
+ }), window.modalScroll = this.__scroller__, d(this, bt, ni).call(this);
510
510
  }, bt = new WeakSet(), ni = function() {
511
511
  var a, r, l;
512
512
  const t = this, { ATTRS: e } = I, { close: s, destroy: o } = e;
@@ -598,8 +598,8 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
598
598
  [...c].forEach((m) => {
599
599
  u.append(m);
600
600
  });
601
- const h = Ie[t] || A(n.target);
602
- r("complete", h), li(n, i);
601
+ const p = Ie[t] || A(n.target);
602
+ r("complete", p), li(n, i);
603
603
  }).catch((l) => {
604
604
  r("error", l);
605
605
  });
@@ -607,9 +607,9 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
607
607
  var Z, Ae, wt, ci, Tt, di;
608
608
  const P = class P {
609
609
  constructor(i, t = {}) {
610
- p(this, Z);
611
- p(this, wt);
612
- p(this, Tt);
610
+ h(this, Z);
611
+ h(this, wt);
612
+ h(this, Tt);
613
613
  this.__storage__ = {
614
614
  el: i,
615
615
  options: t
@@ -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: h, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), v = t * (l / 100);
678
- if (h - 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), v = t * (l / 100);
678
+ if (p - e <= g && m - e >= v && 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" && h - 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 <= v || c === !0;
684
684
  setTimeout(() => {
685
685
  y && s.classList.remove(o);
686
686
  }, a);
@@ -690,8 +690,8 @@ const _s = (n, i) => {
690
690
  var Q, Le, Et, hi;
691
691
  class ui {
692
692
  constructor(i, t = {}) {
693
- p(this, Q);
694
- p(this, Et);
693
+ h(this, Q);
694
+ h(this, Et);
695
695
  this.__storage__ = {
696
696
  el: i,
697
697
  options: t
@@ -746,20 +746,20 @@ var At, pi, Lt, mi, St, gi, Dt, fi, _t, vi, kt, bi, $t, yi, xt, wi, Ct, Ti;
746
746
  class xs extends HTMLElement {
747
747
  constructor() {
748
748
  super();
749
- p(this, At);
750
- p(this, Lt);
751
- p(this, St);
749
+ h(this, At);
750
+ h(this, Lt);
751
+ h(this, St);
752
752
  // youtube iframe
753
- p(this, Dt);
753
+ h(this, Dt);
754
754
  // vimeo iframe
755
- p(this, _t);
755
+ h(this, _t);
756
756
  // youku iframe
757
- p(this, kt);
758
- p(this, $t);
757
+ h(this, kt);
758
+ h(this, $t);
759
759
  // 2025.02.11 新增 ig
760
- p(this, xt);
760
+ h(this, xt);
761
761
  // 2025.02.11 新增 tiktok
762
- p(this, Ct);
762
+ h(this, Ct);
763
763
  d(this, At, pi).call(this);
764
764
  }
765
765
  play() {
@@ -847,7 +847,7 @@ At = new WeakSet(), pi = function() {
847
847
  return `<iframe src="//player.bilibili.com/player.html?bvid=${t}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
848
848
  }, xt = new WeakSet(), wi = function() {
849
849
  const { videoId: t, autoplay: e } = this;
850
- return `<iframe class="instagram-media instagram-media-rendered" id="instagram-embed-0" src="https://www.instagram.com/p/${t}/embed/" allowtransparency="true" allowfullscreen="true" frameborder="0" height="100%" data-instgrm-payload-id="instagram-media-payload-0" scrolling="no"></iframe>`;
850
+ return `<iframe class="instagram-media instagram-media-rendered" id="instagram-embed-0" src="https://www.instagram.com/p/${t}/embed/" width="num-w" height=" num-h" scrolling="auto" frameborder="0" data-instgrm-payload-id="instagram-media-payload-0"></iframe>`;
851
851
  }, Ct = new WeakSet(), Ti = function() {
852
852
  const { videoId: t, autoplay: e } = this;
853
853
  return `<iframe name="__tt_embed__v79271677875424740" sandbox="allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin" src="https://www.tiktok.com/player/v1/${t}?&${e === "on" ? "autoplay=1" : ""}"></iframe>`;
@@ -994,8 +994,8 @@ function kn() {
994
994
  function $n(n, i, t, e, s) {
995
995
  const o = this, r = f(n).html().split("<br>");
996
996
  let l = "", c = 0;
997
- r.forEach((u, h) => {
998
- h !== 0 && (l += "<br>"), u.split("").forEach((g, v) => {
997
+ r.forEach((u, p) => {
998
+ p !== 0 && (l += "<br>"), u.split("").forEach((g, v) => {
999
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++);
1000
1000
  });
1001
1001
  }), f(n).html(l);
@@ -1084,11 +1084,11 @@ const We = (n) => n.videoId !== "" || typeof n.videoId < "u", Ms = (n) => n.$sel
1084
1084
  var V, Se, Ht, Li, Mt, Si, K, De, qt, Di;
1085
1085
  class qs {
1086
1086
  constructor(i, t = {}) {
1087
- p(this, V);
1088
- p(this, Ht);
1089
- p(this, Mt);
1090
- p(this, K);
1091
- p(this, qt);
1087
+ h(this, V);
1088
+ h(this, Ht);
1089
+ h(this, Mt);
1090
+ h(this, K);
1091
+ h(this, qt);
1092
1092
  if (!at(i) && !ye(i) && !rt(i)) {
1093
1093
  je("video4", `找不到該物件 -> ${i}`);
1094
1094
  return;
@@ -1114,7 +1114,7 @@ V = new WeakSet(), Se = function() {
1114
1114
  e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, qt, Di).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), We(e.video.params) && !Ms(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, Mt, Si).call(this, e)), We(e.video.params) || je("video4", "無法取得影片 ID");
1115
1115
  }), this.emit("init");
1116
1116
  }, Mt = new WeakSet(), Si = function(i) {
1117
- const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: h } = e;
1117
+ const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: p } = e;
1118
1118
  if (l === "onBox") {
1119
1119
  let m = null;
1120
1120
  if (u === "on") {
@@ -1122,7 +1122,7 @@ V = new WeakSet(), Se = function() {
1122
1122
  const g = s.querySelector("img");
1123
1123
  g.insertAdjacentHTML(E.after, t[o]);
1124
1124
  const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
- !v && r == "youtube" ? h ? 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) => {
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) => {
1126
1126
  const y = b.thumbnail_url;
1127
1127
  g.setAttribute("src", `${y}`);
1128
1128
  }).catch(function(b) {
@@ -1137,7 +1137,7 @@ V = new WeakSet(), Se = function() {
1137
1137
  const g = s.querySelector("img");
1138
1138
  g.insertAdjacentHTML(E.after, t[o]);
1139
1139
  const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
- !v && r == "youtube" ? h ? 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) => {
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) => {
1141
1141
  const y = b.thumbnail_url;
1142
1142
  g.setAttribute("src", `${y}`);
1143
1143
  }).catch(function(b) {
@@ -1150,29 +1150,33 @@ V = new WeakSet(), Se = function() {
1150
1150
  m.video || (m.video = {}, m.video.params = e), m.video.eventHandler = d(this, K, De), m.addEventListener("click", m.video.eventHandler);
1151
1151
  }
1152
1152
  }, K = new WeakSet(), De = function(i) {
1153
- const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoTargetRoute: r, videoType: l } = t.params, c = new Fe({ callback_loaded: (u) => {
1153
+ const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoTargetRoute: r, videoType: l, videoIgHtml: c } = t.params, u = new Fe({ callback_loaded: (p) => {
1154
1154
  } });
1155
1155
  if (o == "onBox") {
1156
- const u = {
1156
+ const p = {
1157
1157
  target: a,
1158
1158
  route: r,
1159
1159
  on: {
1160
- complete(h) {
1161
- h.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), h.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1160
+ complete(m) {
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();
1164
+ } else
1165
+ m.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1162
1166
  },
1163
- open(h) {
1164
- const m = h.querySelectorAll("[data-overlayscrollbars-viewport]");
1165
- c.update(), Ei([...m]);
1167
+ open(m) {
1168
+ const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1169
+ u.update(), window.modalScroll.update(), Ei([...g]);
1166
1170
  },
1167
- close(h) {
1168
- const m = h.querySelectorAll("[data-overlayscrollbars-viewport]");
1169
- Ai([...m]);
1171
+ close(m) {
1172
+ const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1173
+ Ai([...g]);
1170
1174
  },
1171
- destroy(h) {
1175
+ destroy(m) {
1172
1176
  }
1173
1177
  }
1174
1178
  };
1175
- U.open(u);
1179
+ U.open(p);
1176
1180
  } else
1177
1181
  o == "onPage" && (t.params.videoAutoplay = "on", s.innerHTML = Te(t.params));
1178
1182
  }, qt = new WeakSet(), Di = function(i) {
@@ -1189,7 +1193,8 @@ V = new WeakSet(), Se = function() {
1189
1193
  videoTarget: i.getAttribute("video-target") || t.videoTarget,
1190
1194
  videoTargetRoute: i.getAttribute("video-target-route") || t.videoTargetRoute,
1191
1195
  videoStartTime: i.getAttribute("video-starttime") || t.videoStartTime,
1192
- videoHighQualityPic: i.getAttribute("video-highquality") || t.videoHighQuality
1196
+ videoHighQualityPic: i.getAttribute("video-highquality") || t.videoHighQuality,
1197
+ videoIgHtml: i.getAttribute("video-ig") || t.videoIgHtml
1193
1198
  };
1194
1199
  };
1195
1200
  Object.assign(qs.prototype, O);
@@ -2033,8 +2038,8 @@ const Oe = {
2033
2038
  );
2034
2039
  const l = e.querySelector(".dropdown-list");
2035
2040
  return [...t].forEach((c) => {
2036
- c.tagName === "LI" && (c.classList.contains("has-sublayer") ? [...c.querySelectorAll("li")].forEach((h) => {
2037
- (!h.hasAttribute("data-option") || h.getAttribute("data-option").trim() === "") && h.setAttribute("data-option", h.textContent.trim());
2041
+ c.tagName === "LI" && (c.classList.contains("has-sublayer") ? [...c.querySelectorAll("li")].forEach((p) => {
2042
+ (!p.hasAttribute("data-option") || p.getAttribute("data-option").trim() === "") && p.setAttribute("data-option", p.textContent.trim());
2038
2043
  }) : (!c.hasAttribute("data-option") || c.getAttribute("data-option").trim() === "") && c.setAttribute("data-option", c.textContent.trim())), l.append(c);
2039
2044
  }), e.children[0];
2040
2045
  }, Os = (n) => {
@@ -2128,10 +2133,10 @@ var It, $i, Ot, xi, Pt, Ci, Nt, Hi;
2128
2133
  class ki extends HTMLElement {
2129
2134
  constructor() {
2130
2135
  super();
2131
- p(this, It);
2132
- p(this, Ot);
2133
- p(this, Pt);
2134
- p(this, Nt);
2136
+ h(this, It);
2137
+ h(this, Ot);
2138
+ h(this, Pt);
2139
+ h(this, Nt);
2135
2140
  this.initialize = !1;
2136
2141
  }
2137
2142
  static get observedAttributes() {
@@ -2157,8 +2162,8 @@ class ki extends HTMLElement {
2157
2162
  case "multiple":
2158
2163
  const l = [];
2159
2164
  o.querySelector(".dropdown-list li").classList.remove("active"), s.split(",").forEach((u) => {
2160
- const h = o.querySelector(`.dropdown-list li[data-option="${u}"]`);
2161
- w(h) && (h.classList.add("active"), l.push(h));
2165
+ const p = o.querySelector(`.dropdown-list li[data-option="${u}"]`);
2166
+ w(p) && (p.classList.add("active"), l.push(p));
2162
2167
  });
2163
2168
  const c = l.map((u) => [...o.s.allLi].indexOf(u));
2164
2169
  x(o, c);
@@ -2276,7 +2281,7 @@ It = new WeakSet(), $i = function() {
2276
2281
  if (t.__scroller__) {
2277
2282
  const { viewport: c } = t.__scroller__.elements();
2278
2283
  if (w(t.s.activeLi)) {
2279
- const u = t.s.activeLi.clientHeight / 2, h = t.s.activeLi.offsetTop, m = h - r.clientHeight / 2 + u > 0 ? h - r.clientHeight / 2 + u : 0;
2284
+ const u = t.s.activeLi.clientHeight / 2, p = t.s.activeLi.offsetTop, m = p - r.clientHeight / 2 + u > 0 ? p - r.clientHeight / 2 + u : 0;
2280
2285
  c.scrollTo({
2281
2286
  top: m,
2282
2287
  behavior: "smooth"
@@ -2310,7 +2315,7 @@ It = new WeakSet(), $i = function() {
2310
2315
  e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.allLi.forEach((l) => {
2311
2316
  l.addEventListener("click", function(c) {
2312
2317
  var g;
2313
- const u = this, h = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2318
+ const u = this, p = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2314
2319
  if (u.classList.contains("has-sublayer")) {
2315
2320
  c.stopPropagation();
2316
2321
  const v = u.querySelector(".sub-dropdown"), b = v.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
@@ -2336,7 +2341,7 @@ It = new WeakSet(), $i = function() {
2336
2341
  (g = u.parentNode.closest("li")) != null && g.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
2337
2342
  break;
2338
2343
  case "multiple":
2339
- c.stopPropagation(), u.classList.toggle("active"), x(e, h);
2344
+ c.stopPropagation(), u.classList.toggle("active"), x(e, p);
2340
2345
  break;
2341
2346
  }
2342
2347
  });
@@ -2473,10 +2478,10 @@ var jt, Mi, zt, qi, Wt, Ii, Bt, Oi;
2473
2478
  class Bs extends HTMLElement {
2474
2479
  constructor() {
2475
2480
  super();
2476
- p(this, jt);
2477
- p(this, zt);
2478
- p(this, Wt);
2479
- p(this, Bt);
2481
+ h(this, jt);
2482
+ h(this, zt);
2483
+ h(this, Wt);
2484
+ h(this, Bt);
2480
2485
  this.initialize = !1;
2481
2486
  }
2482
2487
  static get observedAttributes() {
@@ -2545,20 +2550,20 @@ jt = new WeakSet(), Mi = function() {
2545
2550
  let v = [];
2546
2551
  switch (e) {
2547
2552
  case "top":
2548
- h = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (h * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
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)` }];
2549
2554
  break;
2550
2555
  case "right":
2551
- h = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (h * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
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)" }];
2552
2557
  break;
2553
2558
  case "bottom":
2554
- h = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (h * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
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)" }];
2555
2560
  break;
2556
2561
  case "left":
2557
- h = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (h * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
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)` }];
2558
2563
  break;
2559
2564
  }
2560
2565
  return v;
2561
- }, h, m;
2566
+ }, p, m;
2562
2567
  (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
2563
2568
  duration: m,
2564
2569
  fill: "forwards"
@@ -2632,17 +2637,17 @@ var Gt, Pi, Xt, Ni, Rt, ji, tt, _e, W, dt, Ft, zi;
2632
2637
  class Ge {
2633
2638
  constructor(i) {
2634
2639
  // 初始化
2635
- p(this, Gt);
2640
+ h(this, Gt);
2636
2641
  // 左右箭頭事件綁定
2637
- p(this, Xt);
2642
+ h(this, Xt);
2638
2643
  // 左右拖拉事件綁定
2639
- p(this, Rt);
2644
+ h(this, Rt);
2640
2645
  // 卷軸位置判斷
2641
- p(this, tt);
2646
+ h(this, tt);
2642
2647
  // 隱藏按鈕判斷
2643
- p(this, W);
2648
+ h(this, W);
2644
2649
  // 選項事件綁定
2645
- p(this, Ft);
2650
+ h(this, Ft);
2646
2651
  this.$element = i, this.option = i.s.option.drag, d(this, Gt, Pi).call(this);
2647
2652
  }
2648
2653
  // 更新 active 位置
@@ -2695,32 +2700,32 @@ Gt = new WeakSet(), Pi = function() {
2695
2700
  }, Rt = new WeakSet(), ji = function() {
2696
2701
  const { $wrapper: i } = this;
2697
2702
  let t = !1, e = !1, s = 0, o = 0;
2698
- const a = function(h) {
2699
- h.preventDefault(), e = !1, t = !0, s = h.pageX - i.offsetLeft, o = i.scrollLeft;
2703
+ const a = function(p) {
2704
+ p.preventDefault(), e = !1, t = !0, s = p.pageX - i.offsetLeft, o = i.scrollLeft;
2700
2705
  };
2701
2706
  i.removeEventListener("mousedown", a), i.addEventListener("mousedown", a);
2702
2707
  const r = function() {
2703
2708
  e = !1, t = !1;
2704
2709
  };
2705
2710
  i.removeEventListener("mouseleave", r), i.addEventListener("mouseleave", r);
2706
- const l = function(h) {
2707
- h.preventDefault(), t = !1;
2711
+ const l = function(p) {
2712
+ p.preventDefault(), t = !1;
2708
2713
  };
2709
2714
  i.removeEventListener("mouseup", l), i.addEventListener("mouseup", l);
2710
- const c = function(h) {
2711
- if (h.preventDefault(), e = !0, !t)
2715
+ const c = function(p) {
2716
+ if (p.preventDefault(), e = !0, !t)
2712
2717
  return;
2713
- const g = h.pageX - i.offsetLeft - s;
2718
+ const g = p.pageX - i.offsetLeft - s;
2714
2719
  i.scrollTo({
2715
2720
  left: o - g
2716
2721
  });
2717
2722
  };
2718
2723
  i.removeEventListener("mousemove", c), i.addEventListener("mousemove", c);
2719
- const u = function(h) {
2720
- e && (h.preventDefault(), h.stopPropagation());
2724
+ const u = function(p) {
2725
+ e && (p.preventDefault(), p.stopPropagation());
2721
2726
  };
2722
- i.querySelectorAll("a").forEach((h) => {
2723
- h.removeEventListener("click", u), h.addEventListener("click", u);
2727
+ i.querySelectorAll("a").forEach((p) => {
2728
+ p.removeEventListener("click", u), p.addEventListener("click", u);
2724
2729
  });
2725
2730
  }, tt = new WeakSet(), _e = function() {
2726
2731
  const { $container: i, $wrapper: t } = this, e = t.scrollWidth - t.clientWidth, s = t.scrollLeft;
@@ -2765,13 +2770,13 @@ var Yt, Wi, Ut, Bi, Jt, Gi, Zt, Xi;
2765
2770
  class Gs {
2766
2771
  constructor(i) {
2767
2772
  // 初始化
2768
- p(this, Yt);
2773
+ h(this, Yt);
2769
2774
  // 隱藏按鈕判斷
2770
- p(this, Ut);
2775
+ h(this, Ut);
2771
2776
  // 展開箭頭事件綁定
2772
- p(this, Jt);
2777
+ h(this, Jt);
2773
2778
  // 選項事件綁定
2774
- p(this, Zt);
2779
+ h(this, Zt);
2775
2780
  this.$element = i, this.option = i.s.option.collapse, d(this, Yt, Wi).call(this);
2776
2781
  }
2777
2782
  }
@@ -2807,12 +2812,12 @@ var Qt, Ri, Vt, Fi, et, ke, B, ut;
2807
2812
  class Rs extends HTMLElement {
2808
2813
  constructor() {
2809
2814
  super();
2810
- p(this, Qt);
2811
- p(this, Vt);
2815
+ h(this, Qt);
2816
+ h(this, Vt);
2812
2817
  // 斷點設定
2813
- p(this, et);
2818
+ h(this, et);
2814
2819
  // check type
2815
- p(this, B);
2820
+ h(this, B);
2816
2821
  this.initialize = !1, this.__events__ = {}, this.s = {}, this.s.originalDomString = this.innerHTML.trim().replace(/\n/g, ""), this.previousWidth = window.innerWidth;
2817
2822
  }
2818
2823
  static get observedAttributes() {
@@ -2898,38 +2903,38 @@ class Yi extends HTMLElement {
2898
2903
  // 定義組件的初始狀態
2899
2904
  constructor(t, e) {
2900
2905
  super();
2901
- p(this, Kt);
2902
- p(this, te);
2906
+ h(this, Kt);
2907
+ h(this, te);
2903
2908
  // 第一關 判斷數量以及id設定
2904
- p(this, it);
2909
+ h(this, it);
2905
2910
  // 第二關 id命名提醒
2906
- p(this, N);
2907
- p(this, ee);
2908
- p(this, ie);
2909
- p(this, se);
2911
+ h(this, N);
2912
+ h(this, ee);
2913
+ h(this, ie);
2914
+ h(this, se);
2910
2915
  // 執行函式
2911
2916
  // 移動至指定位置
2912
- p(this, ne);
2917
+ h(this, ne);
2913
2918
  // 移動
2914
- p(this, oe);
2919
+ h(this, oe);
2915
2920
  // 步驟狀態
2916
- p(this, ae);
2921
+ h(this, ae);
2917
2922
  // next 按鈕狀態
2918
- p(this, re);
2923
+ h(this, re);
2919
2924
  // prev 按鈕狀態
2920
- p(this, le);
2925
+ h(this, le);
2921
2926
  // 頁籤狀態
2922
- p(this, ce);
2927
+ h(this, ce);
2923
2928
  // 第三關各種元件判斷 及 執行
2924
- p(this, q);
2929
+ h(this, q);
2925
2930
  // 消失動畫
2926
- p(this, de);
2931
+ h(this, de);
2927
2932
  // 出現動畫
2928
- p(this, ue);
2933
+ h(this, ue);
2929
2934
  // 狀態
2930
- p(this, he);
2935
+ h(this, he);
2931
2936
  // resize
2932
- p(this, pe);
2937
+ h(this, pe);
2933
2938
  }
2934
2939
  // 當組件的屬性被更改時會被呼叫
2935
2940
  static get observedAttributes() {
@@ -3082,7 +3087,7 @@ Kt = new WeakSet(), Ui = function() {
3082
3087
  const { t: e } = this;
3083
3088
  this.t.transition;
3084
3089
  const s = e.tabPanels[t];
3085
- switch (s.classList.add("hide"), e.display) {
3090
+ switch (s.classList.remove("show"), s.classList.add("hide"), e.display) {
3086
3091
  case "fade":
3087
3092
  s.style.cssText = "display: none; opacity: 0;";
3088
3093
  break;
@@ -3098,7 +3103,7 @@ Kt = new WeakSet(), Ui = function() {
3098
3103
  }, ue = new WeakSet(), as = function(t) {
3099
3104
  const { duration: e, timing: s, delay: o } = this.t.transition, a = this.t.tabPanels[t];
3100
3105
  let r;
3101
- switch (a.classList.remove("hide"), a.style.transition = `opacity ${e}ms ${s} ${o}ms`, a.style.display = "block", this.t.display) {
3106
+ switch (a.classList.add("show"), a.classList.remove("hide"), a.style.transition = `opacity ${e}ms ${s} ${o}ms`, a.style.display = "block", this.t.display) {
3102
3107
  case "fade":
3103
3108
  a.style.opacity = "0", r = setTimeout(() => {
3104
3109
  clearTimeout(r), a.style.opacity = "1";
@@ -3113,8 +3118,8 @@ Kt = new WeakSet(), Ui = function() {
3113
3118
  break;
3114
3119
  case "swiper":
3115
3120
  a.style.opacity = "1";
3116
- const c = this.querySelector(".swiper-wrapper"), u = this.t.tabPanels[0].offsetWidth, h = -t * u;
3117
- c.style.transition = `transform ${e}ms ${s} ${o}ms`, c.style.transform = `translateX(${h}px)`;
3121
+ const c = this.querySelector(".swiper-wrapper"), u = this.t.tabPanels[0].offsetWidth, p = -t * u;
3122
+ c.style.transition = `transform ${e}ms ${s} ${o}ms`, c.style.transform = `translateX(${p}px)`;
3118
3123
  break;
3119
3124
  default:
3120
3125
  console.warn(this.t.display, "沒有這個效果請自己想辦法!!!!");
@@ -3181,10 +3186,10 @@ const Xe = (n) => {
3181
3186
  var st, xe, me, ds, ge, us, nt, Ce;
3182
3187
  class Us {
3183
3188
  constructor(i, t = {}) {
3184
- p(this, st);
3185
- p(this, me);
3186
- p(this, ge);
3187
- p(this, nt);
3189
+ h(this, st);
3190
+ h(this, me);
3191
+ h(this, ge);
3192
+ h(this, nt);
3188
3193
  !at(i) && !ye(i) && !rt(i) && !w(i) || (this.__storage__ = {
3189
3194
  el: i,
3190
3195
  options: t
@@ -3208,10 +3213,10 @@ st = new WeakSet(), xe = function() {
3208
3213
  }, ge = new WeakSet(), us = function(i) {
3209
3214
  const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
3210
3215
  if (c.collapse.height = u.children[0].offsetHeight, a ? (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)) : !c.classList.contains(l) && !c.hasAttribute(l) ? (c.classList.add(e), u.style.height = "0px", u.style.overflow = "hidden") : (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)), c.removeEventListener("click", d(this, nt, Ce)), c.addEventListener("click", d(this, nt, Ce)), r) {
3211
- const h = (m) => {
3216
+ const p = (m) => {
3212
3217
  m.stopPropagation();
3213
3218
  };
3214
- u.removeEventListener("click", h), u.addEventListener("click", h);
3219
+ u.removeEventListener("click", p), u.addEventListener("click", p);
3215
3220
  }
3216
3221
  }, nt = new WeakSet(), Ce = function() {
3217
3222
  const { instance: i, defaultOptions: t } = this.collapse, { collapseClass: e, block: s, target: o, single: a } = t, r = this;
@@ -3237,10 +3242,10 @@ var ot, He, fe, ps, ve, ms, be, gs;
3237
3242
  class Zs extends HTMLElement {
3238
3243
  constructor() {
3239
3244
  super();
3240
- p(this, ot);
3241
- p(this, fe);
3242
- p(this, ve);
3243
- p(this, be);
3245
+ h(this, ot);
3246
+ h(this, fe);
3247
+ h(this, ve);
3248
+ h(this, be);
3244
3249
  this.initialize = !1;
3245
3250
  }
3246
3251
  connectedCallback() {
@@ -3280,8 +3285,8 @@ ot = new WeakSet(), He = function() {
3280
3285
  let s = "ontouchstart" in document.documentElement ? "touchstart" : "mouseenter", o = "ontouchend" in document.documentElement ? "touchend" : "mouseleave";
3281
3286
  e.addEventListener(s, function(a) {
3282
3287
  if (s === "touchstart" && hs(), e.s.options.hover) {
3283
- const r = Math.round(s === "mouseenter" ? a.clientX - e.getBoundingClientRect().left : a.changedTouches[0].clientX - e.getBoundingClientRect().x), l = Math.round(s === "mouseenter" ? a.clientY - e.getBoundingClientRect().top : a.changedTouches[0].clientY - e.getBoundingClientRect().y), { offsetWidth: c, offsetHeight: u } = e, h = Math.ceil(Math.sqrt(c ** 2 + u ** 2) * 2);
3284
- e.style.setProperty("--r", h), t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3288
+ const r = Math.round(s === "mouseenter" ? a.clientX - e.getBoundingClientRect().left : a.changedTouches[0].clientX - e.getBoundingClientRect().x), l = Math.round(s === "mouseenter" ? a.clientY - e.getBoundingClientRect().top : a.changedTouches[0].clientY - e.getBoundingClientRect().y), { offsetWidth: c, offsetHeight: u } = e, p = Math.ceil(Math.sqrt(c ** 2 + u ** 2) * 2);
3289
+ e.style.setProperty("--r", p), t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3285
3290
  }
3286
3291
  }), e.addEventListener(o, function(a) {
3287
3292
  if (o !== "touchend" && e.s.options.hover) {
@@ -3297,13 +3302,13 @@ class Qs {
3297
3302
  }
3298
3303
  init() {
3299
3304
  const i = document.querySelectorAll("*:not([video-id]) > img"), t = (o, a) => {
3300
- const r = document.createElement("div"), l = document.createElement("span"), c = document.createElement("span"), u = Math.sqrt(o ** 2 + a ** 2), h = Math.asin(a / u) * 180 / Math.PI;
3305
+ const r = document.createElement("div"), l = document.createElement("span"), c = document.createElement("span"), u = Math.sqrt(o ** 2 + a ** 2), p = Math.asin(a / u) * 180 / Math.PI;
3301
3306
  return r.className = "no-image", l.className = "slash1", l.style.cssText = `
3302
3307
  width: ${u}px;
3303
- transform: rotate(${h}deg);
3308
+ transform: rotate(${p}deg);
3304
3309
  `, c.className = "slash2", c.style.cssText = `
3305
3310
  width: ${u}px;
3306
- transform: rotate(${-h}deg);
3311
+ transform: rotate(${-p}deg);
3307
3312
  `, r.appendChild(l), r.appendChild(c), r;
3308
3313
  }, e = document.querySelectorAll(".error-image");
3309
3314
  for (let o = 0; o < e.length; o++)
@@ -3356,9 +3361,9 @@ function Vs(n, i, t, e) {
3356
3361
  const l = t.name.substring(t.name.lastIndexOf(".")).replace("."), c = t.name.replace(`.${l}`, "");
3357
3362
  e.originalCanvas.toBlob(
3358
3363
  function(u) {
3359
- const h = new File([u], `${c}`, { type: t.type });
3364
+ const p = new File([u], `${c}`, { type: t.type });
3360
3365
  uploadImage[`${a}`][r] = {
3361
- file: h,
3366
+ file: p,
3362
3367
  info: e
3363
3368
  }, s.on.changeAfter && typeof s.on.changeAfter == "function" && s.on.changeAfter(n, e);
3364
3369
  },
@@ -3373,17 +3378,17 @@ function Vs(n, i, t, e) {
3373
3378
  }
3374
3379
  function Ks(n, i, t, e) {
3375
3380
  const s = document.createElement("canvas"), o = s.getContext("2d"), a = i.width, l = i.height / a * 100, c = e / t * 100;
3376
- let u = 0, h = 0;
3381
+ let u = 0, p = 0;
3377
3382
  switch (s.width = t, s.height = e, n.previewSize) {
3378
3383
  case "contain":
3379
- l < c ? (u = s.width, h = t * l / 100) : l > c ? (u = e / l * 100, h = s.height) : (u = s.width, h = s.height);
3384
+ l < c ? (u = s.width, p = t * l / 100) : l > c ? (u = e / l * 100, p = s.height) : (u = s.width, p = s.height);
3380
3385
  break;
3381
3386
  case "cover":
3382
- l < c ? (u = e / l * 100, h = s.height) : l > c ? (u = s.width, h = t * l / 100) : l === c && (u = s.width, h = s.height);
3387
+ l < c ? (u = e / l * 100, p = s.height) : l > c ? (u = s.width, p = t * l / 100) : l === c && (u = s.width, p = s.height);
3383
3388
  break;
3384
3389
  }
3385
- const m = (s.width - u) * 0.5, g = (s.height - h) * 0.5;
3386
- return o.drawImage(i, m, g, u, h), s;
3390
+ const m = (s.width - u) * 0.5, g = (s.height - p) * 0.5;
3391
+ return o.drawImage(i, m, g, u, p), s;
3387
3392
  }
3388
3393
  function tn(n, i) {
3389
3394
  return new Promise((t, e) => {