aptechka 0.81.0 → 0.82.0

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.
Files changed (121) hide show
  1. package/lib/{Animation-C4tLEBGM.js → Animation-DxtCzFP3.js} +2 -2
  2. package/lib/{Composed-BB1MtFiT.js → Composed-DtS09lSU.js} +2 -2
  3. package/lib/{Damped-DVG5nrYV.js → Damped-DMnIOXpC.js} +2 -2
  4. package/lib/{DerivedArray-D3scYQdp.js → DerivedArray-DG9iR0mf.js} +1 -1
  5. package/lib/{DragControls-Cm_88cLt.js → DragControls-DCC8iEOR.js} +4 -4
  6. package/lib/LocalLinks-Bua7BGRF.cjs +1 -0
  7. package/lib/LocalLinks-TQkTpAMx.js +62 -0
  8. package/lib/PageAnnouncerElement-C4k2kDJ5.cjs +1 -0
  9. package/lib/PageAnnouncerElement-sfh0_4vl.js +24 -0
  10. package/lib/PageScroll-C7QBpx0G.cjs +1 -0
  11. package/lib/PageScroll-cQ3B5-6N.js +62 -0
  12. package/lib/SourceElement-BQ7g2KWK.js +260 -0
  13. package/lib/SourceElement-TzgPNQOd.cjs +5 -0
  14. package/lib/{Store-BtVtCGLk.js → Store-CgQ3ReoB.js} +1 -1
  15. package/lib/{Tweened-C1lnK6n9.js → Tweened-lT68VACv.js} +2 -2
  16. package/lib/{Viewport-DbN_JWBM.js → Viewport-DGnJ31b4.js} +2 -2
  17. package/lib/accordion/index.js +1 -1
  18. package/lib/animation/index.js +3 -3
  19. package/lib/attribute/index.js +3 -3
  20. package/lib/billboard/index.js +2 -2
  21. package/lib/cache/Cache.d.ts +8 -0
  22. package/lib/cache/index.cjs +1 -0
  23. package/lib/cache/index.d.ts +1 -0
  24. package/lib/cache/index.js +37 -0
  25. package/lib/canvas/index.js +2 -2
  26. package/lib/controls/index.js +1 -1
  27. package/lib/css-property/index.js +3 -3
  28. package/lib/css-value-parser/index.js +1 -1
  29. package/lib/dev/index.js +2 -2
  30. package/lib/device/index.js +1 -1
  31. package/lib/{dom-fgxIeFxm.js → dom-BIeVMHfK.js} +2 -2
  32. package/lib/element-linked-store/index.js +2 -2
  33. package/lib/element-resizer/index.js +2 -2
  34. package/lib/en3/index.js +2 -2
  35. package/lib/history/History.d.ts +10 -0
  36. package/lib/history/index.cjs +1 -0
  37. package/lib/history/index.d.ts +1 -0
  38. package/lib/history/index.js +34 -0
  39. package/lib/iframe/index.cjs +1 -1
  40. package/lib/iframe/index.js +3 -3
  41. package/lib/image/index.cjs +1 -1
  42. package/lib/image/index.js +4 -4
  43. package/lib/{index-JqYHGoo6.js → index-LReFyN6i.js} +1 -1
  44. package/lib/intersector/index.js +2 -2
  45. package/lib/jsx/index.js +6 -6
  46. package/lib/ladder/index.js +2 -2
  47. package/lib/layout-box/index.js +2 -2
  48. package/lib/loading/index.js +1 -1
  49. package/lib/local-links/LocalLinks.d.ts +17 -0
  50. package/lib/local-links/index.cjs +1 -0
  51. package/lib/local-links/index.d.ts +1 -0
  52. package/lib/local-links/index.js +4 -0
  53. package/lib/masonry-layout/index.js +2 -2
  54. package/lib/media/index.js +2 -2
  55. package/lib/metadata-BcYZ5w3T.cjs +1 -0
  56. package/lib/metadata-jfowcCyz.js +12 -0
  57. package/lib/morph/index.cjs +1 -1
  58. package/lib/morph/index.js +141 -140
  59. package/lib/morph-B6sGhLCi.cjs +1 -0
  60. package/lib/morph-BQErz7qP.js +242 -0
  61. package/lib/need_redo_tweaker/index.cjs +1 -1
  62. package/lib/need_redo_tweaker/index.js +4 -4
  63. package/lib/{object-D6MVWB4l.js → object-CcMK4y_r.js} +12 -10
  64. package/lib/object-baN9pgbU.cjs +1 -0
  65. package/lib/page-announcer/PageAnnouncerElement.d.ts +10 -0
  66. package/lib/page-announcer/index.cjs +1 -0
  67. package/lib/page-announcer/index.d.ts +1 -0
  68. package/lib/page-announcer/index.js +4 -0
  69. package/lib/page-scroll/PageScroll.d.ts +23 -0
  70. package/lib/page-scroll/index.cjs +1 -0
  71. package/lib/page-scroll/index.d.ts +1 -0
  72. package/lib/page-scroll/index.js +4 -0
  73. package/lib/pixel-perfect/index.js +3 -3
  74. package/lib/pointer/index.js +4 -4
  75. package/lib/popover/index.cjs +1 -1
  76. package/lib/popover/index.js +3 -3
  77. package/lib/radio/index.js +1 -1
  78. package/lib/{render-CMQbWthg.js → render-CiA0mn5V.js} +3 -3
  79. package/lib/router/Route.d.ts +1 -2
  80. package/lib/router/Router.d.ts +18 -23
  81. package/lib/router/index.cjs +1 -1
  82. package/lib/router/index.d.ts +1 -1
  83. package/lib/router/index.js +183 -249
  84. package/lib/scroll/index.js +8 -8
  85. package/lib/scroll-entries/index.js +1 -1
  86. package/lib/{scroll-7JSxRKFK.js → scroll-jcbHDexr.js} +2 -2
  87. package/lib/scroll-kit/index.js +4 -4
  88. package/lib/sequence/index.cjs +1 -1
  89. package/lib/sequence/index.js +3 -3
  90. package/lib/size-element/index.js +1 -1
  91. package/lib/slicer/index.js +1 -1
  92. package/lib/source/SourceElement.d.ts +1 -1
  93. package/lib/source/index.cjs +1 -1
  94. package/lib/source/index.js +1 -1
  95. package/lib/spa/SPA.d.ts +29 -0
  96. package/lib/spa/index.cjs +1 -0
  97. package/lib/spa/index.d.ts +1 -0
  98. package/lib/spa/index.js +130 -0
  99. package/lib/store/index.js +3 -3
  100. package/lib/{stylesheet-JlRFfJIc.js → stylesheet-DbHOxtjw.js} +1 -1
  101. package/lib/ticker/index.js +2 -2
  102. package/lib/url-CPgw9bd5.cjs +1 -0
  103. package/lib/url-DAl-mgbC.js +97 -0
  104. package/lib/utils/index.cjs +1 -1
  105. package/lib/utils/index.d.ts +2 -0
  106. package/lib/utils/index.js +141 -120
  107. package/lib/utils/morph.d.ts +49 -0
  108. package/lib/utils/object.d.ts +1 -1
  109. package/lib/utils/url.d.ts +6 -0
  110. package/lib/video/index.cjs +1 -1
  111. package/lib/video/index.js +3 -3
  112. package/lib/window-resizer/index.js +1 -1
  113. package/lib/youtube/index.cjs +1 -1
  114. package/lib/youtube/index.js +3 -3
  115. package/package.json +49 -1
  116. package/lib/SourceElement-BBfaAgwe.cjs +0 -5
  117. package/lib/SourceElement-BiNNtaz9.js +0 -265
  118. package/lib/object-CCiXnER2.cjs +0 -1
  119. package/lib/router/Link.d.ts +0 -8
  120. package/lib/url-CoUSEREU.cjs +0 -1
  121. package/lib/url-IGj2LgDW.js +0 -66
@@ -1,5 +1,5 @@
1
- var be = Object.defineProperty, ve = Object.defineProperties;
2
- var Ee = Object.getOwnPropertyDescriptors;
1
+ var be = Object.defineProperty, Ee = Object.defineProperties;
2
+ var ve = Object.getOwnPropertyDescriptors;
3
3
  var te = Object.getOwnPropertySymbols;
4
4
  var Le = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
5
5
  var ee = (h, e) => (e = Symbol[h]) ? e : Symbol.for("Symbol." + h), se = (h) => {
@@ -12,34 +12,34 @@ var ae = (h, e, a) => e in h ? be(h, e, { enumerable: !0, configurable: !0, writ
12
12
  for (var a of te(e))
13
13
  Se.call(e, a) && ae(h, a, e[a]);
14
14
  return h;
15
- }, zt = (h, e) => ve(h, Ee(e));
16
- var qt = (h, e, a) => e.has(h) || se("Cannot " + a);
17
- var t = (h, e, a) => (qt(h, e, "read from private field"), a ? a.call(h) : e.get(h)), l = (h, e, a) => e.has(h) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(h) : e.set(h, a), o = (h, e, a, i) => (qt(h, e, "write to private field"), i ? i.call(h, a) : e.set(h, a), a), g = (h, e, a) => (qt(h, e, "access private method"), a);
15
+ }, zt = (h, e) => Ee(h, ve(e));
16
+ var It = (h, e, a) => e.has(h) || se("Cannot " + a);
17
+ var t = (h, e, a) => (It(h, e, "read from private field"), a ? a.call(h) : e.get(h)), l = (h, e, a) => e.has(h) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(h) : e.set(h, a), o = (h, e, a, i) => (It(h, e, "write to private field"), i ? i.call(h, a) : e.set(h, a), a), g = (h, e, a) => (It(h, e, "access private method"), a);
18
18
  var J = (h, e, a) => new Promise((i, n) => {
19
- var v = (c) => {
19
+ var E = (c) => {
20
20
  try {
21
21
  u(a.next(c));
22
- } catch (E) {
23
- n(E);
22
+ } catch (v) {
23
+ n(v);
24
24
  }
25
25
  }, p = (c) => {
26
26
  try {
27
27
  u(a.throw(c));
28
- } catch (E) {
29
- n(E);
28
+ } catch (v) {
29
+ n(v);
30
30
  }
31
- }, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(v, p);
31
+ }, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(E, p);
32
32
  u((a = a.apply(h, e)).next());
33
33
  });
34
- var ie = (h, e, a) => (e = h[ee("asyncIterator")]) ? e.call(h) : (h = h[ee("iterator")](), e = {}, a = (i, n) => (n = h[i]) && (e[i] = (v) => new Promise((p, u, c) => (v = n.call(h, v), c = v.done, Promise.resolve(v.value).then((E) => p({ value: E, done: c }), u)))), a("next"), a("return"), e);
35
- import { i as oe } from "../index-JqYHGoo6.js";
36
- import { d as I } from "../events-CsVF98U6.js";
37
- import { w as Ae, s as Pe } from "../scroll-7JSxRKFK.js";
34
+ var ie = (h, e, a) => (e = h[ee("asyncIterator")]) ? e.call(h) : (h = h[ee("iterator")](), e = {}, a = (i, n) => (n = h[i]) && (e[i] = (E) => new Promise((p, u, c) => (E = n.call(h, E), c = E.done, Promise.resolve(E.value).then((v) => p({ value: v, done: c }), u)))), a("next"), a("return"), e);
35
+ import { i as oe } from "../index-LReFyN6i.js";
36
+ import { d as q } from "../events-CsVF98U6.js";
37
+ import { w as Ae, s as Pe } from "../scroll-jcbHDexr.js";
38
38
  import "construct-style-sheets-polyfill";
39
- import { n as ye, c as It, s as ke } from "../url-IGj2LgDW.js";
39
+ import { a as ye, c as qt, s as ke } from "../url-DAl-mgbC.js";
40
40
  import { cssValueParser as we } from "../css-value-parser/index.js";
41
41
  import { c as he } from "../string-BlMQbe8b.js";
42
- import { c as Ce } from "../math-BOBiC4TN.js";
42
+ import { c as Re } from "../math-BOBiC4TN.js";
43
43
  class le extends HTMLElement {
44
44
  connectedCallback() {
45
45
  const e = {
@@ -52,20 +52,20 @@ class le extends HTMLElement {
52
52
  }
53
53
  }
54
54
  oe && !customElements.get("morph-announcer") && customElements.define("morph-announcer", le);
55
- var R, s, x, nt, Ut, ce, bt, rt;
55
+ var C, s, x, nt, Ut, ce, bt, rt;
56
56
  class Wt {
57
57
  constructor(e, a) {
58
58
  l(this, x);
59
- l(this, R);
59
+ l(this, C);
60
60
  l(this, s);
61
61
  l(this, bt, (e) => {
62
62
  e.preventDefault(), g(this, x, ce).call(this);
63
63
  });
64
64
  l(this, rt, () => {
65
65
  const e = t(this, s).hasAttribute("data-revalidate");
66
- t(this, R).prefetch(t(this, x, nt), e), t(this, s).removeEventListener("pointerenter", t(this, rt));
66
+ t(this, C).prefetch(t(this, x, nt), e), t(this, s).removeEventListener("pointerenter", t(this, rt));
67
67
  });
68
- o(this, R, a), o(this, s, e), t(this, s).addEventListener("click", t(this, bt)), this.checkCurrent(location.href.replace(location.origin, ""));
68
+ o(this, C, a), o(this, s, e), t(this, s).addEventListener("click", t(this, bt)), this.checkCurrent(location.href.replace(location.origin, ""));
69
69
  const i = g(this, x, Ut).call(this, t(this, s).getAttribute("data-pagination-set-link") || t(this, s).getAttribute("data-pagination-more-link") || t(this, s).getAttribute("data-pagination-next-link") || t(this, s).getAttribute("data-pagination-prev-link"));
70
70
  i && this.updatePagination(
71
71
  i.currentPage,
@@ -76,10 +76,10 @@ class Wt {
76
76
  return t(this, s);
77
77
  }
78
78
  checkCurrent(e) {
79
- var E, at;
80
- const a = t(this, R).normalizePath(e), i = t(this, R).normalizePath(t(this, x, nt));
81
- t(this, s).hasAttribute("data-include") && a.pathname.includes(i.pathname) ? t(this, s).classList.add("current") : i.pathname === a.pathname ? t(this, s).classList.add("current") : (E = t(this, s).getAttribute("data-associated-paths")) != null && E.split(",").find((k) => a.pathname.includes(k)) ? t(this, s).classList.add("current") : t(this, s).classList.remove("current"), a.path === i.path ? t(this, s).classList.add("exact") : t(this, s).classList.remove("exact");
82
- const [n, v] = (at = t(this, x, nt).split("#")[0]) == null ? void 0 : at.split("?"), p = new URLSearchParams(v), u = new URLSearchParams(location.search);
79
+ var v, at;
80
+ const a = t(this, C).normalizePath(e), i = t(this, C).normalizePath(t(this, x, nt));
81
+ t(this, s).hasAttribute("data-include") && a.pathname.includes(i.pathname) ? t(this, s).classList.add("current") : i.pathname === a.pathname ? t(this, s).classList.add("current") : (v = t(this, s).getAttribute("data-associated-paths")) != null && v.split(",").find((k) => a.pathname.includes(k)) ? t(this, s).classList.add("current") : t(this, s).classList.remove("current"), a.path === i.path ? t(this, s).classList.add("exact") : t(this, s).classList.remove("exact");
82
+ const [n, E] = (at = t(this, x, nt).split("#")[0]) == null ? void 0 : at.split("?"), p = new URLSearchParams(E), u = new URLSearchParams(location.search);
83
83
  let c = 0;
84
84
  for (const [k] of u)
85
85
  p.has(k) && u.get(k) === p.get(k) && c++;
@@ -93,8 +93,8 @@ class Wt {
93
93
  for (const k in t(this, s).dataset) {
94
94
  const st = he(k);
95
95
  if (st.startsWith("match-param-")) {
96
- const q = st.split("match-param-")[1], L = t(this, s).dataset[k], w = `param-${q}-matched`;
97
- u.has(q) && u.get(q) === L || !u.has(q) && (L === "" || L === "*" || L === "all" || L === "any" || L === "vse") ? t(this, s).classList.add(w) : t(this, s).classList.remove(w);
96
+ const I = st.split("match-param-")[1], L = t(this, s).dataset[k], w = `param-${I}-matched`;
97
+ u.has(I) && u.get(I) === L || !u.has(I) && (L === "" || L === "*" || L === "all" || L === "any" || L === "vse") ? t(this, s).classList.add(w) : t(this, s).classList.remove(w);
98
98
  }
99
99
  }
100
100
  }
@@ -111,17 +111,17 @@ class Wt {
111
111
  "[data-pagination-more-link-counter]"
112
112
  );
113
113
  n && (n.textContent = (i.totalPages - e).toString());
114
- const v = t(this, s).getAttribute("href"), p = new URL(v, window.location.origin);
114
+ const E = t(this, s).getAttribute("href"), p = new URL(E, window.location.origin);
115
115
  p.searchParams.set("page", (e + 1).toString());
116
116
  const u = p.href.replace(p.origin, "").toString();
117
117
  t(this, s).setAttribute("href", u), this.checkCurrent(u);
118
118
  } else
119
119
  t(this, s).style.display = "none";
120
120
  else if (t(this, s).hasAttribute("data-pagination-prev-link") || t(this, s).hasAttribute("data-pagination-next-link")) {
121
- const n = t(this, s).hasAttribute("data-pagination-prev-link"), v = t(this, s).getAttribute("href"), p = new URL(v, window.location.origin), u = e + (n ? -1 : 1);
121
+ const n = t(this, s).hasAttribute("data-pagination-prev-link"), E = t(this, s).getAttribute("href"), p = new URL(E, window.location.origin), u = e + (n ? -1 : 1);
122
122
  p.searchParams.set(
123
123
  "page",
124
- Ce(u, 1, i.totalPages).toString()
124
+ Re(u, 1, i.totalPages).toString()
125
125
  );
126
126
  const c = p.href.replace(p.origin, "").toString();
127
127
  t(this, s).setAttribute("href", c), n ? u < 1 ? (t(this, s).classList.add("pagination-disabled"), t(this, s).setAttribute("tabindex", "-1")) : (t(this, s).classList.remove("pagination-disabled"), t(this, s).removeAttribute("tabindex")) : u > i.totalPages ? (t(this, s).classList.add("pagination-disabled"), t(this, s).setAttribute("tabindex", "-1")) : (t(this, s).classList.remove("pagination-disabled"), t(this, s).removeAttribute("tabindex"));
@@ -131,9 +131,9 @@ class Wt {
131
131
  t(this, s).removeEventListener("click", t(this, bt)), t(this, s).removeEventListener("pointerenter", t(this, rt)), t(this, s).classList.remove("current", "exact", "pagination-current");
132
132
  }
133
133
  }
134
- R = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
134
+ C = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
135
135
  const e = new URL(t(this, s).href);
136
- return t(this, R).normalizePath(
136
+ return t(this, C).normalizePath(
137
137
  e.pathname + e.search + e.hash
138
138
  ).path;
139
139
  }, Ut = function(e) {
@@ -157,14 +157,14 @@ R = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
157
157
  var a;
158
158
  if (document.documentElement.classList.contains("click-disabled"))
159
159
  return;
160
- if (t(this, s).hasAttribute("data-back") && t(this, R).previousURL)
160
+ if (t(this, s).hasAttribute("data-back") && t(this, C).previousURL)
161
161
  history.back();
162
162
  else {
163
163
  const i = t(this, s).getAttribute(
164
164
  "data-history-action"
165
- ) || "push", n = t(this, s).hasAttribute("data-center-scroll"), v = getComputedStyle(t(this, s)).getPropertyValue("--offset-scroll").trim(), p = v ? we.parse(v) : void 0, u = t(this, s).hasAttribute("data-revalidate") || t(this, s).hasAttribute("data-pagination-more-link") || t(this, s).hasAttribute("data-pagination-set-link") || t(this, s).hasAttribute("data-pagination-next-link") || t(this, s).hasAttribute("data-pagination-prev-link"), c = t(this, s).hasAttribute(
165
+ ) || "push", n = t(this, s).hasAttribute("data-center-scroll"), E = getComputedStyle(t(this, s)).getPropertyValue("--offset-scroll").trim(), p = E ? we.parse(E) : void 0, u = t(this, s).hasAttribute("data-revalidate") || t(this, s).hasAttribute("data-pagination-more-link") || t(this, s).hasAttribute("data-pagination-set-link") || t(this, s).hasAttribute("data-pagination-next-link") || t(this, s).hasAttribute("data-pagination-prev-link"), c = t(this, s).hasAttribute(
166
166
  "data-keep-search-parameters"
167
- ), E = t(this, s).hasAttribute("data-keep-scroll-position") || t(this, s).hasAttribute("data-pagination-more-link"), at = t(this, s).getAttribute(
167
+ ), v = t(this, s).hasAttribute("data-keep-scroll-position") || t(this, s).hasAttribute("data-pagination-more-link"), at = t(this, s).getAttribute(
168
168
  "data-scroll-behaviour"
169
169
  ), k = ((a = t(this, s).getAttribute("data-submorph")) == null ? void 0 : a.split(",").map((w) => w.trim())) || t(this, s).hasAttribute("data-pagination-more-link") && [
170
170
  t(this, s).getAttribute("data-pagination-more-link")
@@ -175,38 +175,38 @@ R = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
175
175
  ] || t(this, s).hasAttribute("data-pagination-prev-link") && [
176
176
  t(this, s).getAttribute("data-pagination-prev-link")
177
177
  ] || void 0, st = t(this, s).hasAttribute("data-clear-state");
178
- let q = t(this, x, nt);
178
+ let I = t(this, x, nt);
179
179
  if (t(this, s).hasAttribute("data-toggle-params")) {
180
- const [w, wt] = t(this, x, nt).split("?"), d = new URLSearchParams(wt), B = new URLSearchParams(location.search), it = new URLSearchParams();
180
+ const [w, wt] = t(this, x, nt).split("?"), d = new URLSearchParams(wt), X = new URLSearchParams(location.search), it = new URLSearchParams();
181
181
  for (const [H] of d)
182
- (!B.has(H) || B.has(H) && B.get(H) !== d.get(H)) && it.append(H, d.get(H));
182
+ (!X.has(H) || X.has(H) && X.get(H) !== d.get(H)) && it.append(H, d.get(H));
183
183
  if (t(this, s).hasAttribute("data-merge-params"))
184
- for (const [H] of B)
185
- d.has(H) || it.append(H, B.get(H));
186
- q = `${w}?${it.toString()}`;
184
+ for (const [H] of X)
185
+ d.has(H) || it.append(H, X.get(H));
186
+ I = `${w}?${it.toString()}`;
187
187
  }
188
188
  const L = g(this, x, Ut).call(this, t(this, s).getAttribute("data-pagination-set-link") || t(this, s).getAttribute("data-pagination-more-link") || t(this, s).getAttribute("data-pagination-next-link") || t(this, s).getAttribute("data-pagination-prev-link"));
189
- L && (t(this, s).hasAttribute("data-pagination-set-link") ? t(this, R).links.forEach((w) => {
189
+ L && (t(this, s).hasAttribute("data-pagination-set-link") ? t(this, C).links.forEach((w) => {
190
190
  w.updatePagination(
191
191
  parseInt(t(this, s).getAttribute("data-value") || "1"),
192
192
  L.selector
193
193
  );
194
- }) : t(this, s).hasAttribute("data-pagination-prev-link") ? t(this, R).links.forEach((w) => {
194
+ }) : t(this, s).hasAttribute("data-pagination-prev-link") ? t(this, C).links.forEach((w) => {
195
195
  w.updatePagination(
196
196
  L.currentPage - 1,
197
197
  L.selector
198
198
  );
199
- }) : t(this, s).hasAttribute("data-pagination-next-link") ? t(this, R).links.forEach((w) => {
199
+ }) : t(this, s).hasAttribute("data-pagination-next-link") ? t(this, C).links.forEach((w) => {
200
200
  w.updatePagination(
201
201
  L.currentPage + 1,
202
202
  L.selector
203
203
  );
204
- }) : t(this, s).hasAttribute("data-pagination-more-link") && t(this, R).links.forEach((w) => {
204
+ }) : t(this, s).hasAttribute("data-pagination-more-link") && t(this, C).links.forEach((w) => {
205
205
  w.updatePagination(
206
206
  L.currentPage + 1,
207
207
  L.selector
208
208
  );
209
- })), t(this, R).navigate(q, {
209
+ })), t(this, C).navigate(I, {
210
210
  historyAction: i,
211
211
  centerScroll: n,
212
212
  offsetScroll: p,
@@ -214,7 +214,7 @@ R = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
214
214
  keepSearchParameters: c,
215
215
  submorph: k,
216
216
  clearState: st,
217
- keepScrollPosition: E,
217
+ keepScrollPosition: v,
218
218
  scrollBehaviour: at,
219
219
  submorphAppend: t(this, s).hasAttribute("data-pagination-more-link"),
220
220
  mergeParams: !!L || t(this, s).hasAttribute("data-merge-params") && !t(this, s).hasAttribute("data-toggle-params"),
@@ -223,45 +223,45 @@ R = new WeakMap(), s = new WeakMap(), x = new WeakSet(), nt = function() {
223
223
  });
224
224
  }
225
225
  }, bt = new WeakMap(), rt = new WeakMap();
226
- var U, ot, vt, Vt, Et;
227
- class Re {
226
+ var U, ot, Et, Vt, vt;
227
+ class Ce {
228
228
  constructor(e) {
229
- l(this, vt);
229
+ l(this, Et);
230
230
  l(this, U);
231
231
  l(this, ot, []);
232
- l(this, Et, () => {
233
- g(this, vt, Vt).call(this);
232
+ l(this, vt, () => {
233
+ g(this, Et, Vt).call(this);
234
234
  });
235
235
  o(this, U, e);
236
236
  for (const a in t(this, U).dataset) {
237
237
  const i = he(a);
238
238
  if (i.startsWith("param-")) {
239
- const n = i.split("param-")[1], v = t(this, U).dataset[a];
239
+ const n = i.split("param-")[1], E = t(this, U).dataset[a];
240
240
  t(this, ot).push({
241
241
  name: n,
242
- value: v
242
+ value: E
243
243
  });
244
244
  }
245
245
  }
246
246
  document.addEventListener(
247
247
  "morphURLParametersChange",
248
- t(this, Et)
249
- ), g(this, vt, Vt).call(this);
248
+ t(this, vt)
249
+ ), g(this, Et, Vt).call(this);
250
250
  }
251
251
  destroy() {
252
252
  document.removeEventListener(
253
253
  "morphURLParametersChange",
254
- t(this, Et)
254
+ t(this, vt)
255
255
  );
256
256
  }
257
257
  }
258
- U = new WeakMap(), ot = new WeakMap(), vt = new WeakSet(), Vt = function() {
258
+ U = new WeakMap(), ot = new WeakMap(), Et = new WeakSet(), Vt = function() {
259
259
  const e = new URLSearchParams(location.search);
260
260
  let a = !!t(this, ot).find((n) => e.has(n.name) && (e.get(n.name) === n.value || n.value === "*" || n.value === "all" || n.value === "any" || n.value === "vse" || e.get(n.name) === "*" || e.get(n.name) === "all" || e.get(n.name) === "any" || e.get(n.name) === "vse"));
261
261
  !a && t(this, U).hasAttribute("data-match-no-params") && (a = !t(this, ot).filter((n) => e.has(n.name)).length);
262
262
  const i = t(this, U).getAttribute("data-hide-class");
263
263
  a ? i ? t(this, U).classList.remove(i) : t(this, U).style.display = "" : i ? t(this, U).classList.add(i) : t(this, U).style.display = "none";
264
- }, Et = new WeakMap();
264
+ }, vt = new WeakMap();
265
265
  const xe = new DOMParser();
266
266
  var W, Q, T, V, Z, Y, ht, _, $, Lt, lt;
267
267
  class ne {
@@ -311,13 +311,14 @@ class ne {
311
311
  if (t(this, $) || u || c)
312
312
  return t(this, $);
313
313
  }
314
- return o(this, $, new Promise((v) => J(this, null, function* () {
314
+ return o(this, $, new Promise((E) => J(this, null, function* () {
315
315
  try {
316
316
  o(this, _, new AbortController());
317
317
  const u = yield (yield fetch(e, {
318
318
  signal: t(this, _).signal,
319
319
  headers: Ht({
320
320
  "X-MORPH": "true",
321
+ "X-MORPH-RAVALIDATE": i ? "true" : "false",
321
322
  "X-MORPH-CURRENT-PATH": encodeURIComponent(a),
322
323
  "X-MORPH-NEW-PATH": encodeURIComponent(e)
323
324
  }, t(this, Lt))
@@ -326,7 +327,7 @@ class ne {
326
327
  } catch (p) {
327
328
  console.warn(p);
328
329
  } finally {
329
- o(this, _, null), o(this, $, null), v();
330
+ o(this, _, null), o(this, $, null), E();
330
331
  }
331
332
  }))), t(this, $);
332
333
  });
@@ -383,7 +384,7 @@ class ne {
383
384
  }
384
385
  }
385
386
  W = new WeakMap(), Q = new WeakMap(), T = new WeakMap(), V = new WeakMap(), Z = new WeakMap(), Y = new WeakMap(), ht = new WeakMap(), _ = new WeakMap(), $ = new WeakMap(), Lt = new WeakMap(), lt = new WeakMap();
386
- var z, ct, P, j, b, tt, F, G, N, St, O, At, et, dt, ut, Pt, mt, yt, f, Ft, kt, pt, Ot, de, Bt, Xt, Kt, Yt, Tt, ft;
387
+ var z, ct, P, j, b, tt, O, G, N, St, F, At, et, dt, ut, Pt, mt, yt, f, Ot, kt, pt, Ft, de, Xt, Bt, Kt, Yt, Tt, ft;
387
388
  const gt = class gt {
388
389
  constructor(e) {
389
390
  l(this, f);
@@ -393,11 +394,11 @@ const gt = class gt {
393
394
  l(this, j);
394
395
  l(this, b, null);
395
396
  l(this, tt);
396
- l(this, F, []);
397
+ l(this, O, []);
397
398
  l(this, G, !1);
398
399
  l(this, N, null);
399
400
  l(this, St, !1);
400
- l(this, O, /* @__PURE__ */ new Map());
401
+ l(this, F, /* @__PURE__ */ new Map());
401
402
  l(this, At, []);
402
403
  l(this, et, null);
403
404
  l(this, dt, 0);
@@ -431,7 +432,7 @@ const gt = class gt {
431
432
  ), document.documentElement.classList.toggle(
432
433
  "scroll-x-backward",
433
434
  n < 0
434
- ), I(document, "morphScroll", {
435
+ ), q(document, "morphScroll", {
435
436
  detail: {
436
437
  left: e,
437
438
  top: a
@@ -445,19 +446,19 @@ const gt = class gt {
445
446
  trailingSlash: (e == null ? void 0 : e.trailingSlash) || !1,
446
447
  scrollSelector: e == null ? void 0 : e.scrollSelector,
447
448
  morphInsideScrollContainer: (e == null ? void 0 : e.morphInsideScrollContainer) || !1
448
- }), o(this, ct, g(this, f, Ot).call(this, document.body));
449
+ }), o(this, ct, g(this, f, Ft).call(this, document.body));
449
450
  const a = this.normalizePath(
450
451
  location.pathname + location.search + location.hash
451
452
  );
452
453
  o(this, b, a);
453
454
  const i = new ne(this, t(this, b).pathname);
454
- i.setInitialDocument(document), t(this, O).set(t(this, b).pathname, i), document.documentElement.setAttribute(
455
+ i.setInitialDocument(document), t(this, F).set(t(this, b).pathname, i), document.documentElement.setAttribute(
455
456
  "data-current-pathname",
456
457
  t(this, b).pathname
457
458
  ), document.documentElement.setAttribute(
458
459
  "data-current-leaf",
459
460
  a.leaf
460
- ), this.findLinks(), this.findParamsDependent(), history.scrollRestoration = "manual", addEventListener("popstate", t(this, Tt)), It({
461
+ ), this.findLinks(), this.findParamsDependent(), history.scrollRestoration = "manual", addEventListener("popstate", t(this, Tt)), qt({
461
462
  action: "replace",
462
463
  pathname: a.pathname,
463
464
  searchParameters: a.parameters,
@@ -485,14 +486,14 @@ const gt = class gt {
485
486
  return t(this, St) ? (e = window.scrollY, a = window.scrollX) : (e = t(this, N).scrollTop, a = t(this, N).scrollLeft), { top: e, left: a };
486
487
  }
487
488
  get isNavigating() {
488
- return !!t(this, F).length;
489
+ return !!t(this, O).length;
489
490
  }
490
491
  saveState(e) {
491
- const a = t(this, O).get(t(this, b).path);
492
+ const a = t(this, F).get(t(this, b).path);
492
493
  a && a.saveState(e);
493
494
  }
494
495
  getState() {
495
- const e = t(this, O).get(t(this, b).path);
496
+ const e = t(this, F).get(t(this, b).path);
496
497
  return e == null ? void 0 : e.clearState();
497
498
  }
498
499
  normalizePath(e, a) {
@@ -506,7 +507,7 @@ const gt = class gt {
506
507
  prefetch(e, a) {
507
508
  return J(this, null, function* () {
508
509
  var n;
509
- if (t(this, F).length)
510
+ if (t(this, O).length)
510
511
  return;
511
512
  e = ((n = this.pathnameModifier) == null ? void 0 : n.call(this, e)) || e;
512
513
  const i = g(this, f, pt).call(this, e);
@@ -527,56 +528,56 @@ const gt = class gt {
527
528
  historyAction: a = "push",
528
529
  centerScroll: i,
529
530
  offsetScroll: n,
530
- scrollBehaviour: v,
531
+ scrollBehaviour: E,
531
532
  revalidate: p,
532
533
  keepSearchParameters: u,
533
534
  submorph: c,
534
- submorphAppend: E,
535
+ submorphAppend: v,
535
536
  clearState: at,
536
537
  keepScrollPosition: k,
537
538
  mergeParams: st,
538
- removeParams: q,
539
+ removeParams: I,
539
540
  detail: L
540
541
  } = {}) {
541
- var B, it, H, $t;
542
- if (t(this, F).length)
542
+ var X, it, H, $t;
543
+ if (t(this, O).length)
543
544
  return;
544
545
  o(this, Pt, c), o(this, mt, p), o(this, yt, k);
545
- const wt = ((B = this.pathnameModifier) == null ? void 0 : B.call(this, e)) || e, d = this.normalizePath(wt, {
546
+ const wt = ((X = this.pathnameModifier) == null ? void 0 : X.call(this, e)) || e, d = this.normalizePath(wt, {
546
547
  mergeParams: st,
547
- removeParams: q
548
+ removeParams: I
548
549
  });
549
550
  if (!p && (((it = t(this, j)) == null ? void 0 : it.pathname) === d.pathname || t(this, b).pathname === d.pathname)) {
550
551
  k || g(this, f, Yt).call(this, d.hash || 0, {
551
552
  centerScroll: i,
552
553
  offsetScroll: n,
553
554
  behavior: "smooth"
554
- }), I(document, "morphSamePath", {
555
+ }), q(document, "morphSamePath", {
555
556
  detail: {
556
557
  detail: L
557
558
  }
558
- }), ((H = t(this, b)) == null ? void 0 : H.parameters) !== d.parameters && (o(this, tt, t(this, b)), o(this, b, d), It({
559
+ }), ((H = t(this, b)) == null ? void 0 : H.parameters) !== d.parameters && (o(this, tt, t(this, b)), o(this, b, d), qt({
559
560
  action: (($t = t(this, b)) == null ? void 0 : $t.hash) !== d.hash ? "replace" : a,
560
561
  pathname: d.pathname,
561
562
  searchParameters: d.parameters,
562
563
  hash: d.hash
563
- }), I(document, "morphURLParametersChange", {
564
+ }), q(document, "morphURLParametersChange", {
564
565
  detail: {
565
566
  newURL: t(this, b),
566
567
  previousURL: t(this, tt),
567
568
  detail: L
568
569
  }
569
- })), t(this, P).forEach((X) => {
570
- X.checkCurrent(d.path);
570
+ })), t(this, P).forEach((B) => {
571
+ B.checkCurrent(d.path);
571
572
  });
572
573
  return;
573
574
  } else
574
- t(this, P).forEach((X) => {
575
- X.checkCurrent(d.path);
575
+ t(this, P).forEach((B) => {
576
+ B.checkCurrent(d.path);
576
577
  });
577
578
  o(this, j, d);
578
579
  try {
579
- let X = !0;
580
+ let B = !0;
580
581
  if (this.preprocessor)
581
582
  try {
582
583
  yield new Promise((r, y) => {
@@ -590,9 +591,9 @@ const gt = class gt {
590
591
  });
591
592
  });
592
593
  } catch (r) {
593
- r ? console.error(r) : console.log("Route change canceled"), X = !1;
594
+ r ? console.error(r) : console.log("Route change canceled"), B = !1;
594
595
  }
595
- if (!X || t(this, j).pathname !== d.pathname) {
596
+ if (!B || t(this, j).pathname !== d.pathname) {
596
597
  t(this, P).forEach((r) => {
597
598
  r.checkCurrent(t(this, b).path);
598
599
  });
@@ -603,18 +604,18 @@ const gt = class gt {
603
604
  submorph: c,
604
605
  detail: L
605
606
  };
606
- c ? E || c.forEach((r) => {
607
+ c ? v || c.forEach((r) => {
607
608
  document.querySelectorAll(r).forEach((y) => {
608
609
  y.classList.add("out"), y.setAttribute("data-morph-out", "");
609
610
  });
610
611
  }) : t(this, ct).forEach((r) => {
611
612
  var y, M;
612
613
  (y = r.firstElementChild) == null || y.classList.add("out"), (M = r.firstElementChild) == null || M.setAttribute("data-morph-out", "");
613
- }), I(document, "morphNavigation", {
614
+ }), q(document, "morphNavigation", {
614
615
  detail: jt
615
616
  });
616
617
  const Mt = g(this, f, pt).call(this, t(this, b).pathname), A = g(this, f, pt).call(this, d.pathname);
617
- if (t(this, O).forEach((r) => {
618
+ if (t(this, F).forEach((r) => {
618
619
  r.pathname !== d.pathname && r.abort();
619
620
  }), yield A == null ? void 0 : A.fetch(wt, t(this, b).path, p), t(this, j).pathname !== d.pathname) {
620
621
  t(this, P).forEach((r) => {
@@ -623,24 +624,24 @@ const gt = class gt {
623
624
  return;
624
625
  }
625
626
  Mt.clearState(), Mt.saveScrollState(), Mt.saveDocumentState(), (!t(this, G) || p) && (A.clearScrollState(), A.clearDocumentState()), at && A.clearState(), A.cloneDocument(), t(this, et).textContent = A.title, document.body.appendChild(t(this, et));
626
- const Ct = zt(Ht({}, jt), {
627
+ const Rt = zt(Ht({}, jt), {
627
628
  document: A.document
628
629
  });
629
- E || Ct.document.querySelectorAll("[data-morph-out]").forEach((r) => {
630
+ v || Rt.document.querySelectorAll("[data-morph-out]").forEach((r) => {
630
631
  r.classList.remove("out");
631
- }), I(document, "morphStart", {
632
- detail: Ct
632
+ }), q(document, "morphStart", {
633
+ detail: Rt
633
634
  });
634
- const Gt = Array.from(document.head.children), Jt = Array.from(A.document.head.children), Qt = g(this, f, de).call(this, Gt, Jt), ue = g(this, f, Bt).call(this, Gt, Qt), Rt = g(this, f, Bt).call(this, Jt, Qt).filter((r) => !this.excludeHeadChild(r));
635
- Rt.forEach((r, y) => {
636
- r.tagName === "SCRIPT" && (Rt[y] = g(this, f, Ft).call(this, r));
637
- }), Rt.forEach((r) => {
635
+ const Gt = Array.from(document.head.children), Jt = Array.from(A.document.head.children), Qt = g(this, f, de).call(this, Gt, Jt), ue = g(this, f, Xt).call(this, Gt, Qt), Ct = g(this, f, Xt).call(this, Jt, Qt).filter((r) => !this.excludeHeadChild(r));
636
+ Ct.forEach((r, y) => {
637
+ r.tagName === "SCRIPT" && (Ct[y] = g(this, f, Ot).call(this, r));
638
+ }), Ct.forEach((r) => {
638
639
  document.head.appendChild(r);
639
640
  });
640
- const Nt = Rt.filter((r) => {
641
+ const Nt = Ct.filter((r) => {
641
642
  if (r.hasAttribute("data-no-waiting"))
642
643
  return !1;
643
- if (g(this, f, Xt).call(this, r))
644
+ if (g(this, f, Bt).call(this, r))
644
645
  return !0;
645
646
  });
646
647
  t(this, z).waitForHeadToLoad && Nt.length && (yield new Promise((r) => J(this, null, function* () {
@@ -664,17 +665,17 @@ const gt = class gt {
664
665
  }
665
666
  }))), yield Ae(10);
666
667
  const Zt = [];
667
- E || ue.forEach((r) => {
668
- r.hasAttribute("data-permanent") || (g(this, f, Xt).call(this, r) ? Zt.push(r) : r.remove());
668
+ v || ue.forEach((r) => {
669
+ r.hasAttribute("data-permanent") || (g(this, f, Bt).call(this, r) ? Zt.push(r) : r.remove());
669
670
  });
670
- const me = g(this, f, Ot).call(this, A.document.body);
671
+ const me = g(this, f, Ft).call(this, A.document.body);
671
672
  !t(this, z).morphInsideScrollContainer && !c && g(this, f, Kt).call(this, A.document), document.documentElement.setAttribute(
672
673
  "data-current-pathname",
673
674
  d.pathname
674
675
  ), document.documentElement.setAttribute(
675
676
  "data-current-leaf",
676
677
  d.leaf
677
- ), It({
678
+ ), qt({
678
679
  action: a,
679
680
  pathname: d.pathname,
680
681
  searchParameters: d.parameters || (u ? location.search : ""),
@@ -685,39 +686,39 @@ const gt = class gt {
685
686
  const M = me[y], fe = getComputedStyle(r).getPropertyValue("--morph-duration");
686
687
  let K = [], D = [];
687
688
  c ? (c.forEach((m) => {
688
- const S = r.querySelector(m), C = M.querySelector(m);
689
- S && C && (D.push(S), K.push(C));
689
+ const S = r.querySelector(m), R = M.querySelector(m);
690
+ S && R && (D.push(S), K.push(R));
690
691
  }), D.forEach((m) => {
691
692
  m.parentElement && Dt.push(m.parentElement);
692
693
  })) : (K.push(...M.childNodes), D.push(...r.childNodes), Dt.push(r));
693
694
  const xt = [];
694
- E || D.forEach((m) => {
695
+ v || D.forEach((m) => {
695
696
  m instanceof HTMLElement && (this.destroyOldLinks(m), m.classList.add("old"), m.querySelectorAll(
696
697
  "[data-morph-transfer]"
697
- ).forEach((C) => {
698
- const ge = C.getAttribute("data-morph-transfer");
698
+ ).forEach((R) => {
699
+ const ge = R.getAttribute("data-morph-transfer");
699
700
  xt.push({
700
- element: C,
701
+ element: R,
701
702
  selector: ge
702
703
  });
703
704
  }));
704
705
  }), K.forEach((m) => {
705
706
  m instanceof HTMLElement && (xt.forEach((S) => {
706
- const C = m.querySelector(S.selector);
707
- C && C.replaceWith(
707
+ const R = m.querySelector(S.selector);
708
+ R && R.replaceWith(
708
709
  A.document.importNode(S.element, !0)
709
710
  );
710
711
  }), this.findNewLinks(m), m.classList.add("new"));
711
- }), c ? E ? K.forEach((m, S) => {
712
+ }), c ? v ? K.forEach((m, S) => {
712
713
  D[S] instanceof HTMLElement && D[S].append(...m.childNodes);
713
714
  }) : K.forEach((m, S) => {
714
- var C;
715
- (C = D[S].parentElement) == null || C.insertBefore(
715
+ var R;
716
+ (R = D[S].parentElement) == null || R.insertBefore(
716
717
  m,
717
718
  D[S]
718
719
  );
719
720
  }) : r.prepend(...K), setTimeout(() => {
720
- E || D.forEach((m) => {
721
+ v || D.forEach((m) => {
721
722
  m instanceof HTMLElement && m.classList.add("old-idle");
722
723
  }), K.forEach((m) => {
723
724
  var S;
@@ -727,55 +728,55 @@ const gt = class gt {
727
728
  ), m.classList.add("new-idle"));
728
729
  });
729
730
  }, 0);
730
- const _t = zt(Ht({}, Ct), {
731
+ const _t = zt(Ht({}, Rt), {
731
732
  morphElement: r
732
733
  });
733
- I(document, "morphNewChildrenAdded", {
734
+ q(document, "morphNewChildrenAdded", {
734
735
  detail: _t
735
736
  });
736
737
  const pe = new Promise((m) => {
737
738
  setTimeout(
738
739
  () => {
739
- E || D.forEach((S) => {
740
+ v || D.forEach((S) => {
740
741
  S.remove();
741
742
  }), K.forEach((S) => {
742
- var C;
743
- S instanceof HTMLElement && ((C = S.parentElement) == null || C.style.removeProperty(
743
+ var R;
744
+ S instanceof HTMLElement && ((R = S.parentElement) == null || R.style.removeProperty(
744
745
  "--new-content-height"
745
746
  ), S.classList.remove("new-idle", "new"));
746
- }), E || I(document, "morphOldChildrenRemoved", {
747
+ }), v || q(document, "morphOldChildrenRemoved", {
747
748
  detail: _t
748
749
  }), m();
749
750
  },
750
751
  (parseFloat(fe) || 0) * 1e3 + 10
751
752
  );
752
753
  });
753
- t(this, F).push(pe);
754
+ t(this, O).push(pe);
754
755
  }), this.isPopstateNavigation ? document.documentElement.style.setProperty(
755
756
  "--new-document-scroll-position",
756
757
  (this.scrollValue.top - A.scrollState.y) * 1 + "px"
757
758
  ) : document.documentElement.style.setProperty(
758
759
  "--new-document-scroll-position",
759
760
  this.scrollValue.top + "px"
760
- ), I(document, "morphBeforeNavigationScroll", {
761
+ ), q(document, "morphBeforeNavigationScroll", {
761
762
  detail: A.scrollState
762
763
  }), d.hash ? (A.clearScrollState(), g(this, f, Yt).call(this, d.hash, {
763
764
  centerScroll: i,
764
765
  offsetScroll: n,
765
- behavior: v
766
- })) : t(this, G) ? A.restoreScrollPosition() : k || A.renewScrollPosition(), yield Promise.all(t(this, F)), E || Zt.forEach((r) => r.remove()), o(this, F, []), Dt.forEach((r) => {
766
+ behavior: E
767
+ })) : t(this, G) ? A.restoreScrollPosition() : k || A.renewScrollPosition(), yield Promise.all(t(this, O)), v || Zt.forEach((r) => r.remove()), o(this, O, []), Dt.forEach((r) => {
767
768
  r.querySelectorAll("script").forEach((M) => {
768
- M.replaceWith(g(this, f, Ft).call(this, M));
769
+ M.replaceWith(g(this, f, Ot).call(this, M));
769
770
  });
770
771
  }), t(this, P).forEach((r) => {
771
772
  r.checkCurrent(t(this, b).path);
772
- }), this.findParamsDependent(), I(document, "morphComplete", {
773
- detail: Ct
773
+ }), this.findParamsDependent(), q(document, "morphComplete", {
774
+ detail: Rt
774
775
  }), document.documentElement.style.removeProperty(
775
776
  "--new-document-scroll-position"
776
777
  ), window.dispatchEvent(new Event("resize"));
777
- } catch (X) {
778
- console.error(X);
778
+ } catch (B) {
779
+ console.error(B);
779
780
  }
780
781
  o(this, j, void 0);
781
782
  });
@@ -815,11 +816,11 @@ const gt = class gt {
815
816
  )
816
817
  ];
817
818
  t(this, At).forEach((a) => a.destroy()), o(this, At, e.map(
818
- (a) => new Re(a)
819
+ (a) => new Ce(a)
819
820
  ));
820
821
  }
821
822
  };
822
- z = new WeakMap(), ct = new WeakMap(), P = new WeakMap(), j = new WeakMap(), b = new WeakMap(), tt = new WeakMap(), F = new WeakMap(), G = new WeakMap(), N = new WeakMap(), St = new WeakMap(), O = new WeakMap(), At = new WeakMap(), et = new WeakMap(), dt = new WeakMap(), ut = new WeakMap(), Pt = new WeakMap(), mt = new WeakMap(), yt = new WeakMap(), f = new WeakSet(), Ft = function(e) {
823
+ z = new WeakMap(), ct = new WeakMap(), P = new WeakMap(), j = new WeakMap(), b = new WeakMap(), tt = new WeakMap(), O = new WeakMap(), G = new WeakMap(), N = new WeakMap(), St = new WeakMap(), F = new WeakMap(), At = new WeakMap(), et = new WeakMap(), dt = new WeakMap(), ut = new WeakMap(), Pt = new WeakMap(), mt = new WeakMap(), yt = new WeakMap(), f = new WeakSet(), Ot = function(e) {
823
824
  const a = document.createElement("script");
824
825
  for (let i = 0; i < e.attributes.length; i++) {
825
826
  const n = e.attributes[i];
@@ -828,9 +829,9 @@ z = new WeakMap(), ct = new WeakMap(), P = new WeakMap(), j = new WeakMap(), b =
828
829
  return e.hasAttribute("src") || (a.innerHTML = e.innerHTML), a;
829
830
  }, kt = new WeakMap(), pt = function(e) {
830
831
  const a = this.normalizePath(e);
831
- let i = t(this, O).get(a.pathname);
832
- return i || (i = new ne(this, a.pathname), t(this, O).set(a.pathname, i)), i;
833
- }, Ot = function(e) {
832
+ let i = t(this, F).get(a.pathname);
833
+ return i || (i = new ne(this, a.pathname), t(this, F).set(a.pathname, i)), i;
834
+ }, Ft = function(e) {
834
835
  const a = [...e.querySelectorAll("[data-morph]")];
835
836
  return a.length ? a : [e];
836
837
  }, de = function(e, a) {
@@ -839,13 +840,13 @@ z = new WeakMap(), ct = new WeakMap(), P = new WeakMap(), j = new WeakMap(), b =
839
840
  (n) => n.outerHTML === i.outerHTML
840
841
  )
841
842
  );
842
- }, Bt = function(e, a) {
843
+ }, Xt = function(e, a) {
843
844
  return e.filter(
844
845
  (i) => !a.find(
845
846
  (n) => n.outerHTML === i.outerHTML
846
847
  )
847
848
  );
848
- }, Xt = function(e) {
849
+ }, Bt = function(e) {
849
850
  return e.tagName === "SCRIPT" || e.tagName === "STYLE" || e.tagName === "LINK" && e.getAttribute("rel") === "stylesheet";
850
851
  }, Kt = function(e) {
851
852
  var a, i;