@myissue/vue-website-page-builder 3.0.32 → 3.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  var zg = Object.defineProperty;
2
- var tc = (r) => {
2
+ var rc = (r) => {
3
3
  throw TypeError(r);
4
4
  };
5
5
  var _g = (r, e, t) => e in r ? zg(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
6
- var be = (r, e, t) => _g(r, typeof e != "symbol" ? e + "" : e, t), rc = (r, e, t) => e.has(r) || tc("Cannot " + t);
7
- var Ei = (r, e, t) => (rc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), an = (r, e, t) => e.has(r) ? tc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
- var Ce = (r, e, t) => (rc(r, e, "access private method"), t);
9
- import * as oc from "vue";
10
- import { effectScope as lu, ref as x, markRaw as Cr, hasInjectionContext as Fg, inject as re, getCurrentInstance as Jl, toRaw as et, reactive as du, isRef as In, isReactive as Yl, toRef as va, nextTick as Me, watch as pe, unref as T, getCurrentScope as jg, onScopeDispose as Hg, toRefs as nc, computed as L, watchEffect as ot, onMounted as Se, cloneVNode as Vg, h as Ee, Fragment as ve, defineComponent as he, provide as He, onUnmounted as xt, shallowRef as cu, Teleport as Yo, normalizeClass as X, createBlock as xe, openBlock as S, createVNode as R, withCtx as z, withKeys as pu, withModifiers as Po, createElementVNode as g, renderSlot as qt, createElementBlock as O, createCommentVNode as $, toDisplayString as F, Transition as Dt, onBeforeUnmount as Qs, customRef as Ug, onBeforeMount as Wg, withDirectives as at, vModelText as Xl, createTextVNode as De, resolveDynamicComponent as uu, renderList as Le, vModelSelect as Rt, vShow as qg, createStaticVNode as Kg } from "vue";
6
+ var be = (r, e, t) => _g(r, typeof e != "symbol" ? e + "" : e, t), oc = (r, e, t) => e.has(r) || rc("Cannot " + t);
7
+ var Ei = (r, e, t) => (oc(r, e, "read from private field"), t ? t.call(r) : e.get(r)), an = (r, e, t) => e.has(r) ? rc("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
+ var Ce = (r, e, t) => (oc(r, e, "access private method"), t);
9
+ import * as nc from "vue";
10
+ import { effectScope as du, ref as x, markRaw as Cr, hasInjectionContext as Fg, inject as re, getCurrentInstance as Jl, toRaw as et, reactive as cu, isRef as In, isReactive as Yl, toRef as va, nextTick as Me, watch as pe, unref as T, getCurrentScope as jg, onScopeDispose as Hg, toRefs as ic, computed as L, watchEffect as ot, onMounted as Se, cloneVNode as Vg, h as Ee, Fragment as ve, defineComponent as he, provide as He, onUnmounted as xt, shallowRef as pu, Teleport as Yo, normalizeClass as X, createBlock as xe, openBlock as S, createVNode as R, withCtx as z, withKeys as uu, withModifiers as Po, createElementVNode as g, renderSlot as qt, createElementBlock as O, createCommentVNode as $, toDisplayString as F, Transition as Dt, onBeforeUnmount as Qs, customRef as Ug, onBeforeMount as Wg, withDirectives as at, vModelText as Xl, createTextVNode as De, resolveDynamicComponent as mu, renderList as Le, vModelSelect as Rt, vShow as qg, createStaticVNode as Kg } from "vue";
11
11
  function Mi(r, e, t) {
12
12
  return Array.isArray(r) ? (r.length = Math.max(r.length, e), r.splice(e, 1, t), t) : (r[e] = t, t);
13
13
  }
@@ -19,9 +19,9 @@ function xa(r, e) {
19
19
  delete r[e];
20
20
  }
21
21
  function Gg() {
22
- return mu().__VUE_DEVTOOLS_GLOBAL_HOOK__;
22
+ return hu().__VUE_DEVTOOLS_GLOBAL_HOOK__;
23
23
  }
24
- function mu() {
24
+ function hu() {
25
25
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
26
26
  }
27
27
  const Jg = typeof Proxy == "function", Yg = "devtools-plugin:setup", Xg = "plugin:settings:set";
@@ -95,8 +95,8 @@ class ef {
95
95
  t.resolve(await this.target[t.method](...t.args));
96
96
  }
97
97
  }
98
- function hu(r, e) {
99
- const t = r, o = mu(), n = Gg(), i = Jg && t.enableEarlyProxy;
98
+ function gu(r, e) {
99
+ const t = r, o = hu(), n = Gg(), i = Jg && t.enableEarlyProxy;
100
100
  if (n && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
101
101
  n.emit(Yg, r, e);
102
102
  else {
@@ -114,7 +114,7 @@ function hu(r, e) {
114
114
  * @license MIT
115
115
  */
116
116
  let hn;
117
- const Dn = (r) => hn = r, gu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
117
+ const Dn = (r) => hn = r, fu = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
118
118
  /* istanbul ignore next */
119
119
  Symbol()
120
120
  );
@@ -125,19 +125,19 @@ var Gt;
125
125
  (function(r) {
126
126
  r.direct = "direct", r.patchObject = "patch object", r.patchFunction = "patch function";
127
127
  })(Gt || (Gt = {}));
128
- const Er = typeof window < "u", ic = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
128
+ const Er = typeof window < "u", sc = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
129
129
  function tf(r, { autoBom: e = !1 } = {}) {
130
130
  return e && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type) ? new Blob(["\uFEFF", r], { type: r.type }) : r;
131
131
  }
132
132
  function Ql(r, e, t) {
133
133
  const o = new XMLHttpRequest();
134
134
  o.open("GET", r), o.responseType = "blob", o.onload = function() {
135
- yu(o.response, e, t);
135
+ wu(o.response, e, t);
136
136
  }, o.onerror = function() {
137
137
  console.error("could not download file");
138
138
  }, o.send();
139
139
  }
140
- function fu(r) {
140
+ function bu(r) {
141
141
  const e = new XMLHttpRequest();
142
142
  e.open("HEAD", r, !1);
143
143
  try {
@@ -154,9 +154,9 @@ function Ui(r) {
154
154
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), r.dispatchEvent(t);
155
155
  }
156
156
  }
157
- const Wi = typeof navigator == "object" ? navigator : { userAgent: "" }, bu = /Macintosh/.test(Wi.userAgent) && /AppleWebKit/.test(Wi.userAgent) && !/Safari/.test(Wi.userAgent), yu = Er ? (
157
+ const Wi = typeof navigator == "object" ? navigator : { userAgent: "" }, yu = /Macintosh/.test(Wi.userAgent) && /AppleWebKit/.test(Wi.userAgent) && !/Safari/.test(Wi.userAgent), wu = Er ? (
158
158
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
159
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !bu ? rf : (
159
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !yu ? rf : (
160
160
  // Use msSaveOrOpenBlob as a second approach
161
161
  "msSaveOrOpenBlob" in Wi ? of : (
162
162
  // Fallback to using FileReader and a popup
@@ -167,7 +167,7 @@ const Wi = typeof navigator == "object" ? navigator : { userAgent: "" }, bu = /M
167
167
  };
168
168
  function rf(r, e = "download", t) {
169
169
  const o = document.createElement("a");
170
- o.download = e, o.rel = "noopener", typeof r == "string" ? (o.href = r, o.origin !== location.origin ? fu(o.href) ? Ql(r, e, t) : (o.target = "_blank", Ui(o)) : Ui(o)) : (o.href = URL.createObjectURL(r), setTimeout(function() {
170
+ o.download = e, o.rel = "noopener", typeof r == "string" ? (o.href = r, o.origin !== location.origin ? bu(o.href) ? Ql(r, e, t) : (o.target = "_blank", Ui(o)) : Ui(o)) : (o.href = URL.createObjectURL(r), setTimeout(function() {
171
171
  URL.revokeObjectURL(o.href);
172
172
  }, 4e4), setTimeout(function() {
173
173
  Ui(o);
@@ -175,7 +175,7 @@ function rf(r, e = "download", t) {
175
175
  }
176
176
  function of(r, e = "download", t) {
177
177
  if (typeof r == "string")
178
- if (fu(r))
178
+ if (bu(r))
179
179
  Ql(r, e, t);
180
180
  else {
181
181
  const o = document.createElement("a");
@@ -189,8 +189,8 @@ function of(r, e = "download", t) {
189
189
  function nf(r, e, t, o) {
190
190
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof r == "string")
191
191
  return Ql(r, e, t);
192
- const n = r.type === "application/octet-stream", i = /constructor/i.test(String(ic.HTMLElement)) || "safari" in ic, s = /CriOS\/[\d]+/.test(navigator.userAgent);
193
- if ((s || n && i || bu) && typeof FileReader < "u") {
192
+ const n = r.type === "application/octet-stream", i = /constructor/i.test(String(sc.HTMLElement)) || "safari" in sc, s = /CriOS\/[\d]+/.test(navigator.userAgent);
193
+ if ((s || n && i || yu) && typeof FileReader < "u") {
194
194
  const a = new FileReader();
195
195
  a.onloadend = function() {
196
196
  let l = a.result;
@@ -212,36 +212,36 @@ function Fe(r, e) {
212
212
  function Zl(r) {
213
213
  return "_a" in r && "install" in r;
214
214
  }
215
- function wu() {
215
+ function vu() {
216
216
  if (!("clipboard" in navigator))
217
217
  return Fe("Your browser doesn't support the Clipboard API", "error"), !0;
218
218
  }
219
- function vu(r) {
219
+ function xu(r) {
220
220
  return r instanceof Error && r.message.toLowerCase().includes("document is not focused") ? (Fe('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
221
221
  }
222
222
  async function sf(r) {
223
- if (!wu())
223
+ if (!vu())
224
224
  try {
225
225
  await navigator.clipboard.writeText(JSON.stringify(r.state.value)), Fe("Global state copied to clipboard.");
226
226
  } catch (e) {
227
- if (vu(e))
227
+ if (xu(e))
228
228
  return;
229
229
  Fe("Failed to serialize the state. Check the console for more details.", "error"), console.error(e);
230
230
  }
231
231
  }
232
232
  async function af(r) {
233
- if (!wu())
233
+ if (!vu())
234
234
  try {
235
- xu(r, JSON.parse(await navigator.clipboard.readText())), Fe("Global state pasted from clipboard.");
235
+ ku(r, JSON.parse(await navigator.clipboard.readText())), Fe("Global state pasted from clipboard.");
236
236
  } catch (e) {
237
- if (vu(e))
237
+ if (xu(e))
238
238
  return;
239
239
  Fe("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(e);
240
240
  }
241
241
  }
242
242
  async function lf(r) {
243
243
  try {
244
- yu(new Blob([JSON.stringify(r.state.value)], {
244
+ wu(new Blob([JSON.stringify(r.state.value)], {
245
245
  type: "text/plain;charset=utf-8"
246
246
  }), "pinia-state.json");
247
247
  } catch (e) {
@@ -270,12 +270,12 @@ async function cf(r) {
270
270
  if (!t)
271
271
  return;
272
272
  const { text: o, file: n } = t;
273
- xu(r, JSON.parse(o)), Fe(`Global state imported from "${n.name}".`);
273
+ ku(r, JSON.parse(o)), Fe(`Global state imported from "${n.name}".`);
274
274
  } catch (e) {
275
275
  Fe("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(e);
276
276
  }
277
277
  }
278
- function xu(r, e) {
278
+ function ku(r, e) {
279
279
  for (const t in e) {
280
280
  const o = r.state.value[t];
281
281
  o ? Object.assign(o, e[t]) : r.state.value[t] = e[t];
@@ -288,11 +288,11 @@ function It(r) {
288
288
  }
289
289
  };
290
290
  }
291
- const ku = "🍍 Pinia (root)", qi = "_root";
291
+ const Su = "🍍 Pinia (root)", qi = "_root";
292
292
  function pf(r) {
293
293
  return Zl(r) ? {
294
294
  id: qi,
295
- label: ku
295
+ label: Su
296
296
  } : {
297
297
  id: r.$id,
298
298
  label: r.$id
@@ -362,7 +362,7 @@ function hf(r) {
362
362
  let Io = !0;
363
363
  const Ki = [], Gr = "pinia:mutations", tt = "pinia", { assign: gf } = Object, ts = (r) => "🍍 " + r;
364
364
  function ff(r, e) {
365
- hu({
365
+ gu({
366
366
  id: "dev.esm.pinia",
367
367
  label: "Pinia 🍍",
368
368
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -462,7 +462,7 @@ function ff(r, e) {
462
462
  }), t.on.getInspectorTree((o) => {
463
463
  if (o.app === r && o.inspectorId === tt) {
464
464
  let n = [e];
465
- n = n.concat(Array.from(e._s.values())), o.rootNodes = (o.filter ? n.filter((i) => "$id" in i ? i.$id.toLowerCase().includes(o.filter.toLowerCase()) : ku.toLowerCase().includes(o.filter.toLowerCase())) : n).map(pf);
465
+ n = n.concat(Array.from(e._s.values())), o.rootNodes = (o.filter ? n.filter((i) => "$id" in i ? i.$id.toLowerCase().includes(o.filter.toLowerCase()) : Su.toLowerCase().includes(o.filter.toLowerCase())) : n).map(pf);
466
466
  }
467
467
  }), globalThis.$pinia = e, t.on.getInspectorState((o) => {
468
468
  if (o.app === r && o.inspectorId === tt) {
@@ -495,7 +495,7 @@ Only state can be modified.`);
495
495
  });
496
496
  }
497
497
  function bf(r, e) {
498
- Ki.includes(ts(e.$id)) || Ki.push(ts(e.$id)), hu({
498
+ Ki.includes(ts(e.$id)) || Ki.push(ts(e.$id)), gu({
499
499
  id: "dev.esm.pinia",
500
500
  label: "Pinia 🍍",
501
501
  logo: "https://pinia.vuejs.org/logo.svg",
@@ -518,7 +518,7 @@ function bf(r, e) {
518
518
  }, (t) => {
519
519
  const o = typeof t.now == "function" ? t.now.bind(t) : Date.now;
520
520
  e.$onAction(({ after: s, onError: a, name: l, args: d }) => {
521
- const c = Su++;
521
+ const c = Cu++;
522
522
  t.addTimelineEvent({
523
523
  layerId: Gr,
524
524
  event: {
@@ -624,12 +624,12 @@ function bf(r, e) {
624
624
  }, t.notifyComponentUpdate(), t.sendInspectorTree(tt), t.sendInspectorState(tt), t.getSettings().logStoreChanges && Fe(`"${e.$id}" store installed 🆕`);
625
625
  });
626
626
  }
627
- let Su = 0, Mr;
628
- function sc(r, e, t) {
627
+ let Cu = 0, Mr;
628
+ function ac(r, e, t) {
629
629
  const o = e.reduce((n, i) => (n[i] = et(r)[i], n), {});
630
630
  for (const n in o)
631
631
  r[n] = function() {
632
- const i = Su, s = t ? new Proxy(r, {
632
+ const i = Cu, s = t ? new Proxy(r, {
633
633
  get(...l) {
634
634
  return Mr = i, Reflect.get(...l);
635
635
  },
@@ -645,10 +645,10 @@ function sc(r, e, t) {
645
645
  function yf({ app: r, store: e, options: t }) {
646
646
  if (!e.$id.startsWith("__hot:")) {
647
647
  if (e._isOptionsAPI = !!t.state, !e._p._testing) {
648
- sc(e, Object.keys(t.actions), e._isOptionsAPI);
648
+ ac(e, Object.keys(t.actions), e._isOptionsAPI);
649
649
  const o = e._hotUpdate;
650
650
  et(e)._hotUpdate = function(n) {
651
- o.apply(this, arguments), sc(e, Object.keys(n._hmrPayload.actions), !!e._isOptionsAPI);
651
+ o.apply(this, arguments), ac(e, Object.keys(n._hmrPayload.actions), !!e._isOptionsAPI);
652
652
  };
653
653
  }
654
654
  bf(
@@ -659,11 +659,11 @@ function yf({ app: r, store: e, options: t }) {
659
659
  }
660
660
  }
661
661
  function wf() {
662
- const r = lu(!0), e = r.run(() => x({}));
662
+ const r = du(!0), e = r.run(() => x({}));
663
663
  let t = [], o = [];
664
664
  const n = Cr({
665
665
  install(i) {
666
- Dn(n), n._a = i, i.provide(gu, n), i.config.globalProperties.$pinia = n, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Er && ff(i, n), o.forEach((s) => t.push(s)), o = [];
666
+ Dn(n), n._a = i, i.provide(fu, n), i.config.globalProperties.$pinia = n, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Er && ff(i, n), o.forEach((s) => t.push(s)), o = [];
667
667
  },
668
668
  use(i) {
669
669
  return this._a ? t.push(i) : o.push(i), this;
@@ -678,19 +678,19 @@ function wf() {
678
678
  });
679
679
  return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Er && typeof Proxy < "u" && n.use(yf), n;
680
680
  }
681
- function Cu(r, e) {
681
+ function Eu(r, e) {
682
682
  for (const t in e) {
683
683
  const o = e[t];
684
684
  if (!(t in r))
685
685
  continue;
686
686
  const n = r[t];
687
- co(n) && co(o) && !In(o) && !Yl(o) ? r[t] = Cu(n, o) : r[t] = o;
687
+ co(n) && co(o) && !In(o) && !Yl(o) ? r[t] = Eu(n, o) : r[t] = o;
688
688
  }
689
689
  return r;
690
690
  }
691
- const Eu = () => {
691
+ const Mu = () => {
692
692
  };
693
- function ac(r, e, t, o = Eu) {
693
+ function lc(r, e, t, o = Mu) {
694
694
  r.push(e);
695
695
  const n = () => {
696
696
  const i = r.indexOf(e);
@@ -703,7 +703,7 @@ function Co(r, ...e) {
703
703
  t(...e);
704
704
  });
705
705
  }
706
- const vf = (r) => r(), lc = Symbol(), ka = Symbol();
706
+ const vf = (r) => r(), dc = Symbol(), ka = Symbol();
707
707
  function il(r, e) {
708
708
  r instanceof Map && e instanceof Map ? e.forEach((t, o) => r.set(o, t)) : r instanceof Set && e instanceof Set && e.forEach(r.add, r);
709
709
  for (const t in e) {
@@ -722,18 +722,18 @@ function kf(r) {
722
722
  return !co(r) || !r.hasOwnProperty(xf);
723
723
  }
724
724
  const { assign: Et } = Object;
725
- function dc(r) {
725
+ function cc(r) {
726
726
  return !!(In(r) && r.effect);
727
727
  }
728
- function cc(r, e, t, o) {
728
+ function pc(r, e, t, o) {
729
729
  const { state: n, actions: i, getters: s } = e, a = t.state.value[r];
730
730
  let l;
731
731
  function d() {
732
732
  !a && (process.env.NODE_ENV === "production" || !o) && (t.state.value[r] = n ? n() : {});
733
733
  const c = process.env.NODE_ENV !== "production" && o ? (
734
734
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
735
- nc(x(n ? n() : {}).value)
736
- ) : nc(t.state.value[r]);
735
+ ic(x(n ? n() : {}).value)
736
+ ) : ic(t.state.value[r]);
737
737
  return Et(c, i, Object.keys(s || {}).reduce((p, u) => (process.env.NODE_ENV !== "production" && u in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${u}" in store "${r}".`), p[u] = Cr(L(() => {
738
738
  Dn(t);
739
739
  const m = t._s.get(r);
@@ -782,13 +782,13 @@ function sl(r, e, t = {}, o, n, i) {
782
782
  /* istanbul ignore next */
783
783
  process.env.NODE_ENV !== "production" ? () => {
784
784
  throw new Error(`🍍: Store "${r}" is built using the setup syntax and does not implement $reset().`);
785
- } : Eu
785
+ } : Mu
786
786
  );
787
787
  function C() {
788
788
  s.stop(), p = [], u = [], o._s.delete(r);
789
789
  }
790
790
  const y = (P, v = "") => {
791
- if (lc in P)
791
+ if (dc in P)
792
792
  return P[ka] = v, P;
793
793
  const I = function() {
794
794
  Dn(o);
@@ -814,7 +814,7 @@ function sl(r, e, t = {}, o, n, i) {
814
814
  }
815
815
  return ge instanceof Promise ? ge.then((se) => (Co(ne, se), se)).catch((se) => (Co(Y, se), Promise.reject(se))) : (Co(ne, ge), ge);
816
816
  };
817
- return I[lc] = !0, I[ka] = v, I;
817
+ return I[dc] = !0, I[ka] = v, I;
818
818
  }, M = /* @__PURE__ */ Cr({
819
819
  actions: {},
820
820
  getters: {},
@@ -824,11 +824,11 @@ function sl(r, e, t = {}, o, n, i) {
824
824
  _p: o,
825
825
  // _s: scope,
826
826
  $id: r,
827
- $onAction: ac.bind(null, u),
827
+ $onAction: lc.bind(null, u),
828
828
  $patch: w,
829
829
  $reset: E,
830
830
  $subscribe(P, v = {}) {
831
- const I = ac(p, P, v.detached, () => q()), q = s.run(() => pe(() => o.state.value[r], (ne) => {
831
+ const I = lc(p, P, v.detached, () => q()), q = s.run(() => pe(() => o.state.value[r], (ne) => {
832
832
  (v.flush === "sync" ? c : d) && P({
833
833
  storeId: r,
834
834
  type: Gt.direct,
@@ -838,7 +838,7 @@ function sl(r, e, t = {}, o, n, i) {
838
838
  return I;
839
839
  },
840
840
  $dispose: C
841
- }, A = du(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Er ? Et(
841
+ }, A = cu(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Er ? Et(
842
842
  {
843
843
  _hmrPayload: M,
844
844
  _customProperties: Cr(/* @__PURE__ */ new Set())
@@ -849,15 +849,15 @@ function sl(r, e, t = {}, o, n, i) {
849
849
  // setupStore
850
850
  ) : k);
851
851
  o._s.set(r, A);
852
- const _ = (o._a && o._a.runWithContext || vf)(() => o._e.run(() => (s = lu()).run(() => e({ action: y }))));
852
+ const _ = (o._a && o._a.runWithContext || vf)(() => o._e.run(() => (s = du()).run(() => e({ action: y }))));
853
853
  for (const P in _) {
854
854
  const v = _[P];
855
- if (In(v) && !dc(v) || Yl(v))
855
+ if (In(v) && !cc(v) || Yl(v))
856
856
  process.env.NODE_ENV !== "production" && n ? Mi(f.value, P, va(_, P)) : i || (h && kf(v) && (In(v) ? v.value = h[P] : il(v, h[P])), o.state.value[r][P] = v), process.env.NODE_ENV !== "production" && M.state.push(P);
857
857
  else if (typeof v == "function") {
858
858
  const I = process.env.NODE_ENV !== "production" && n ? v : y(v, P);
859
859
  _[P] = I, process.env.NODE_ENV !== "production" && (M.actions[P] = v), a.actions[P] = v;
860
- } else process.env.NODE_ENV !== "production" && dc(v) && (M.getters[P] = i ? (
860
+ } else process.env.NODE_ENV !== "production" && cc(v) && (M.getters[P] = i ? (
861
861
  // @ts-expect-error
862
862
  t.getters[P]
863
863
  ) : v, Er && (_._getters || // @ts-expect-error: same
@@ -876,7 +876,7 @@ function sl(r, e, t = {}, o, n, i) {
876
876
  A._hotUpdating = !0, P._hmrPayload.state.forEach((v) => {
877
877
  if (v in A.$state) {
878
878
  const I = P.$state[v], q = A.$state[v];
879
- typeof I == "object" && co(I) && co(q) ? Cu(I, q) : P.$state[v] = q;
879
+ typeof I == "object" && co(I) && co(q) ? Eu(I, q) : P.$state[v] = q;
880
880
  }
881
881
  Mi(A, v, va(P.$state, v));
882
882
  }), Object.keys(A.$state).forEach((v) => {
@@ -941,14 +941,14 @@ function Sf(r, e, t) {
941
941
  const d = Fg();
942
942
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
943
943
  // pinia instance with getActivePinia()
944
- (process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ? re(gu, null) : null), a && Dn(a), process.env.NODE_ENV !== "production" && !hn)
944
+ (process.env.NODE_ENV === "test" && hn && hn._testing ? null : a) || (d ? re(fu, null) : null), a && Dn(a), process.env.NODE_ENV !== "production" && !hn)
945
945
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
946
946
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
947
947
  This will fail in production.`);
948
- a = hn, a._s.has(o) || (i ? sl(o, e, n, a) : cc(o, n, a), process.env.NODE_ENV !== "production" && (s._pinia = a));
948
+ a = hn, a._s.has(o) || (i ? sl(o, e, n, a) : pc(o, n, a), process.env.NODE_ENV !== "production" && (s._pinia = a));
949
949
  const c = a._s.get(o);
950
950
  if (process.env.NODE_ENV !== "production" && l) {
951
- const p = "__hot:" + o, u = i ? sl(p, e, n, a, !0) : cc(p, Et({}, n), a, !0);
951
+ const p = "__hot:" + o, u = i ? sl(p, e, n, a, !0) : pc(p, Et({}, n), a, !0);
952
952
  l._hotUpdate(u), delete a.state.value[p], a._s.delete(p);
953
953
  }
954
954
  if (process.env.NODE_ENV !== "production" && Er) {
@@ -1996,22 +1996,22 @@ for (let r = 0; r < 256; ++r)
1996
1996
  function Mf(r, e = 0) {
1997
1997
  return qe[r[e + 0]] + qe[r[e + 1]] + qe[r[e + 2]] + qe[r[e + 3]] + "-" + qe[r[e + 4]] + qe[r[e + 5]] + "-" + qe[r[e + 6]] + qe[r[e + 7]] + "-" + qe[r[e + 8]] + qe[r[e + 9]] + "-" + qe[r[e + 10]] + qe[r[e + 11]] + qe[r[e + 12]] + qe[r[e + 13]] + qe[r[e + 14]] + qe[r[e + 15]];
1998
1998
  }
1999
- const Tf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pc = {
1999
+ const Tf = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), uc = {
2000
2000
  randomUUID: Tf
2001
2001
  };
2002
- function uc(r, e, t) {
2003
- if (pc.randomUUID && !r)
2004
- return pc.randomUUID();
2002
+ function mc(r, e, t) {
2003
+ if (uc.randomUUID && !r)
2004
+ return uc.randomUUID();
2005
2005
  r = r || {};
2006
2006
  const o = r.random || (r.rng || Ef)();
2007
2007
  return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Mf(o);
2008
2008
  }
2009
- const Mu = function(e = 200) {
2009
+ const Tu = function(e = 200) {
2010
2010
  return new Promise((t) => {
2011
2011
  setTimeout(t, e);
2012
2012
  });
2013
2013
  };
2014
- var ue, Ie, Tu, Ou, Js, Ys, Xs, Pu, Au;
2014
+ var ue, Ie, Ou, Pu, Js, Ys, Xs, Au, Bu;
2015
2015
  class Qe {
2016
2016
  constructor(e) {
2017
2017
  an(this, ue);
@@ -2132,7 +2132,7 @@ class Qe {
2132
2132
  "SECTION",
2133
2133
  "ASIDE",
2134
2134
  "FOOTER"
2135
- ], this.showRunningMethodLogs = !1, this.delay = Mu();
2135
+ ], this.showRunningMethodLogs = !1, this.delay = Tu();
2136
2136
  }
2137
2137
  cloneCompObjForDOMInsertion(e) {
2138
2138
  this.showRunningMethodLogs && console.log("cloneCompObjForDOMInsertion");
@@ -2149,11 +2149,11 @@ class Qe {
2149
2149
  }
2150
2150
  const n = new DOMParser().parseFromString(t.html_code || "", "text/html");
2151
2151
  n.querySelectorAll("*").forEach((a) => {
2152
- Ce(this, ue, Tu).call(this, a);
2152
+ Ce(this, ue, Ou).call(this, a);
2153
2153
  });
2154
2154
  const s = n.querySelector("section");
2155
- return s && (s.dataset.componentid = uc(), s.querySelectorAll("img").forEach((l) => {
2156
- l.setAttribute("data-image", uc());
2155
+ return s && (s.dataset.componentid = mc(), s.querySelectorAll("img").forEach((l) => {
2156
+ l.setAttribute("data-image", mc());
2157
2157
  }), t.id = s.dataset.componentid, t.html_code = s.outerHTML), t;
2158
2158
  }
2159
2159
  removeHoveredAndSelected() {
@@ -2428,10 +2428,10 @@ class Qe {
2428
2428
  this.getElement.value.closest("a") !== null && this.pageBuilderStateStore.setHyperlinkAbility(!1);
2429
2429
  const i = (s = this.getElement.value) == null ? void 0 : s.tagName.toUpperCase();
2430
2430
  if (i !== "P" && i !== "H1" && i !== "H2" && i !== "H3" && i !== "H4" && i !== "H5" && i !== "H6" && this.pageBuilderStateStore.setHyperlinkAbility(!1), e === void 0) {
2431
- Ce(this, ue, Au).call(this);
2431
+ Ce(this, ue, Bu).call(this);
2432
2432
  return;
2433
2433
  }
2434
- Ce(this, ue, Pu).call(this, e, t || null, o || !1);
2434
+ Ce(this, ue, Au).call(this, e, t || null, o || !1);
2435
2435
  }
2436
2436
  handlePageBuilderMethods() {
2437
2437
  this.pageBuilderStateStore.setParentElement(null), this.pageBuilderStateStore.setRestoredElement(null), this.handleHyperlink(void 0, null, !1), this.handleOpacity(void 0), this.handleBackgroundOpacity(void 0), this.showBasePrimaryImage(), this.handleBorderStyle(void 0), this.handleBorderWidth(void 0), this.handleBorderColor(void 0), this.handleBorderRadiusGlobal(void 0), this.handleBorderRadiusTopLeft(void 0), this.handleBorderRadiusTopRight(void 0), this.handleBorderRadiusBottomleft(void 0), this.handleBorderRadiusBottomRight(void 0), this.handleFontSize(void 0), this.handleFontWeight(void 0), this.handleFontFamily(void 0), this.handleFontStyle(void 0), this.handleVerticalPadding(void 0), this.handleHorizontalPadding(void 0), this.handleVerticalMargin(void 0), this.handleHorizontalMargin(void 0), this.handleBackgroundColor(void 0), this.handleTextColor(void 0), this.currentClasses();
@@ -2472,15 +2472,15 @@ ue = new WeakSet(), Ie = function(e, t, o) {
2472
2472
  });
2473
2473
  let i = n || "none"(this.pageBuilderStateStore)[o](i);
2474
2474
  return typeof e == "string" && e !== "none" ? (i && ((s = this.getElement.value) != null && s.classList.contains(i)) && ((a = this.getElement.value) == null || a.classList.remove(i)), (l = this.getElement.value) == null || l.classList.add(e), i = e) : typeof e == "string" && e === "none" && i && ((d = this.getElement.value) == null || d.classList.remove(i), i = e), this.pageBuilderStateStore[o](i), this.pageBuilderStateStore.setElement(this.getElement.value), n;
2475
- }, Tu = function(e) {
2476
- Ce(this, ue, Ou).call(this, e), this.showRunningMethodLogs && console.log("#applyHelperCSSToElements"), e.tagName === "IMG" && e.classList.add("smooth-transition"), e.tagName === "DIV" && e.classList.length;
2477
2475
  }, Ou = function(e) {
2476
+ Ce(this, ue, Pu).call(this, e), this.showRunningMethodLogs && console.log("#applyHelperCSSToElements"), e.tagName === "IMG" && e.classList.add("smooth-transition"), e.tagName === "DIV" && e.classList.length;
2477
+ }, Pu = function(e) {
2478
2478
  var t;
2479
2479
  if (this.showRunningMethodLogs && console.log("#wrapElementInDivIfExcluded"), this.headerTags.includes(e.tagName) && (e.previousElementSibling && e.previousElementSibling.tagName === "IMG" || e.nextElementSibling && e.nextElementSibling.tagName === "IMG")) {
2480
2480
  const o = document.createElement("div");
2481
2481
  (t = e.parentNode) == null || t.insertBefore(o, e), o.appendChild(e);
2482
2482
  }
2483
- }, Js = new WeakMap(), Ys = new WeakMap(), Xs = new WeakMap(), Pu = function(e, t, o) {
2483
+ }, Js = new WeakMap(), Ys = new WeakMap(), Xs = new WeakMap(), Au = function(e, t, o) {
2484
2484
  if (this.showRunningMethodLogs && console.log("#addHyperlinkToElement"), !this.getElement.value || !(this.getElement.value instanceof HTMLElement) || typeof this.getElement.value.closest != "function")
2485
2485
  return;
2486
2486
  const n = this.getElement.value.closest("a"), i = this.getElement.value.querySelector("a");
@@ -2505,7 +2505,7 @@ ue = new WeakSet(), Ie = function(e, t, o) {
2505
2505
  const l = this.getElement.value.textContent || "", d = document.createTextNode(l);
2506
2506
  this.getElement.value.textContent = "", this.getElement.value.appendChild(d), this.pageBuilderStateStore.setHyberlinkEnable(!1), this.pageBuilderStateStore.setElementContainsHyperlink(!1);
2507
2507
  }
2508
- }, Au = function() {
2508
+ }, Bu = function() {
2509
2509
  if (this.showRunningMethodLogs && console.log("#checkForHyperlink"), !this.getElement.value) return;
2510
2510
  const e = this.getElement.value.querySelector("a");
2511
2511
  if (e !== null) {
@@ -2521,7 +2521,7 @@ const Of = function(r) {
2521
2521
  }, r));
2522
2522
  }, Ca = function(r) {
2523
2523
  return typeof r == "object" && !Array.isArray(r) && r !== null;
2524
- }, Bu = function() {
2524
+ }, Lu = function() {
2525
2525
  const e = x(!1), t = x(!1), o = x(!1), n = x(null), i = x(null), s = x(!1), a = x(null), l = x(null), d = x(null), c = x(null), p = x(null);
2526
2526
  return {
2527
2527
  isSuccess: e,
@@ -2608,7 +2608,7 @@ const Of = function(r) {
2608
2608
  isLoading: Af,
2609
2609
  isError: Bf,
2610
2610
  error: Lf
2611
- } = Bu(), {
2611
+ } = Lu(), {
2612
2612
  handleData: Nf,
2613
2613
  fetchedData: If,
2614
2614
  isError: Df,
@@ -2616,7 +2616,7 @@ const Of = function(r) {
2616
2616
  errors: $f,
2617
2617
  isLoading: zf,
2618
2618
  isSuccess: _f
2619
- } = Bu(), Lu = /* @__PURE__ */ Sf("pageBuilderState", {
2619
+ } = Lu(), ed = /* @__PURE__ */ Sf("pageBuilderState", {
2620
2620
  state: () => ({
2621
2621
  // Core Page Builder State
2622
2622
  pageBuilderLogo: null,
@@ -3096,7 +3096,7 @@ function Ff(r, e, t) {
3096
3096
  return n.value || (o.value = i), e == null ? void 0 : e(i);
3097
3097
  }];
3098
3098
  }
3099
- function ed(r) {
3099
+ function td(r) {
3100
3100
  typeof queueMicrotask == "function" ? queueMicrotask(r) : Promise.resolve().then(r).catch((e) => setTimeout(() => {
3101
3101
  throw e;
3102
3102
  }));
@@ -3116,7 +3116,7 @@ function Zn() {
3116
3116
  e.add(() => clearTimeout(o));
3117
3117
  }, microTask(...t) {
3118
3118
  let o = { current: !0 };
3119
- return ed(() => {
3119
+ return td(() => {
3120
3120
  o.current && t[0]();
3121
3121
  }), e.add(() => {
3122
3122
  o.current = !1;
@@ -3139,10 +3139,10 @@ function Zn() {
3139
3139
  } };
3140
3140
  return e;
3141
3141
  }
3142
- var mc;
3142
+ var hc;
3143
3143
  let jf = Symbol("headlessui.useid"), Hf = 0;
3144
- const bt = (mc = oc.useId) != null ? mc : function() {
3145
- return oc.inject(jf, () => `${++Hf}`)();
3144
+ const bt = (hc = nc.useId) != null ? hc : function() {
3145
+ return nc.inject(jf, () => `${++Hf}`)();
3146
3146
  };
3147
3147
  function W(r) {
3148
3148
  var e;
@@ -3158,10 +3158,10 @@ function ze(r, e, ...t) {
3158
3158
  let o = new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((n) => `"${n}"`).join(", ")}.`);
3159
3159
  throw Error.captureStackTrace && Error.captureStackTrace(o, ze), o;
3160
3160
  }
3161
- var Vf = Object.defineProperty, Uf = (r, e, t) => e in r ? Vf(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, hc = (r, e, t) => (Uf(r, typeof e != "symbol" ? e + "" : e, t), t);
3161
+ var Vf = Object.defineProperty, Uf = (r, e, t) => e in r ? Vf(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, gc = (r, e, t) => (Uf(r, typeof e != "symbol" ? e + "" : e, t), t);
3162
3162
  let Wf = class {
3163
3163
  constructor() {
3164
- hc(this, "current", this.detect()), hc(this, "currentId", 0);
3164
+ gc(this, "current", this.detect()), gc(this, "currentId", 0);
3165
3165
  }
3166
3166
  set(e) {
3167
3167
  this.current !== e && (this.currentId = 0, this.current = e);
@@ -3230,7 +3230,7 @@ function Jf(r) {
3230
3230
  var e, t;
3231
3231
  return (t = (e = r == null ? void 0 : r.matches) == null ? void 0 : e.call(r, Gf)) != null ? t : !1;
3232
3232
  }
3233
- function td(r, e = (t) => t) {
3233
+ function rd(r, e = (t) => t) {
3234
3234
  return r.slice().sort((t, o) => {
3235
3235
  let n = e(t), i = e(o);
3236
3236
  if (n === null || i === null) return 0;
@@ -3243,7 +3243,7 @@ function Yf(r, e) {
3243
3243
  }
3244
3244
  function vn(r, e, { sorted: t = !0, relativeTo: o = null, skipElements: n = [] } = {}) {
3245
3245
  var i;
3246
- let s = (i = Array.isArray(r) ? r.length > 0 ? r[0].ownerDocument : document : r == null ? void 0 : r.ownerDocument) != null ? i : document, a = Array.isArray(r) ? t ? td(r) : r : Iu(r);
3246
+ let s = (i = Array.isArray(r) ? r.length > 0 ? r[0].ownerDocument : document : r == null ? void 0 : r.ownerDocument) != null ? i : document, a = Array.isArray(r) ? t ? rd(r) : r : Iu(r);
3247
3247
  n.length > 0 && a.length > 1 && (a = a.filter((h) => !n.includes(h))), o = o ?? s.activeElement;
3248
3248
  let l = (() => {
3249
3249
  if (e & 5) return 1;
@@ -3287,7 +3287,7 @@ function $u(r, e, t) {
3287
3287
  window.addEventListener(r, e, t), o(() => window.removeEventListener(r, e, t));
3288
3288
  });
3289
3289
  }
3290
- function rd(r, e, t = L(() => !0)) {
3290
+ function od(r, e, t = L(() => !0)) {
3291
3291
  function o(i, s) {
3292
3292
  if (!t.value || i.defaultPrevented) return;
3293
3293
  let a = s(i);
@@ -3313,30 +3313,30 @@ function rd(r, e, t = L(() => !0)) {
3313
3313
  Qf() || n.value && (o(i, () => n.value), n.value = null);
3314
3314
  }, !0), Pi("touchend", (i) => o(i, () => i.target instanceof HTMLElement ? i.target : null), !0), $u("blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3315
3315
  }
3316
- function gc(r, e) {
3316
+ function fc(r, e) {
3317
3317
  if (r) return r;
3318
3318
  let t = e ?? "button";
3319
3319
  if (typeof t == "string" && t.toLowerCase() === "button") return "button";
3320
3320
  }
3321
3321
  function zu(r, e) {
3322
- let t = x(gc(r.value.type, r.value.as));
3322
+ let t = x(fc(r.value.type, r.value.as));
3323
3323
  return Se(() => {
3324
- t.value = gc(r.value.type, r.value.as);
3324
+ t.value = fc(r.value.type, r.value.as);
3325
3325
  }), ot(() => {
3326
3326
  var o;
3327
3327
  t.value || W(e) && W(e) instanceof HTMLButtonElement && !((o = W(e)) != null && o.hasAttribute("type")) && (t.value = "button");
3328
3328
  }), t;
3329
3329
  }
3330
- function fc(r) {
3330
+ function bc(r) {
3331
3331
  return [r.screenX, r.screenY];
3332
3332
  }
3333
3333
  function _u() {
3334
3334
  let r = x([-1, -1]);
3335
3335
  return { wasMoved(e) {
3336
- let t = fc(e);
3336
+ let t = bc(e);
3337
3337
  return r.value[0] === t[0] && r.value[1] === t[1] ? !1 : (r.value = t, !0);
3338
3338
  }, update(e) {
3339
- r.value = fc(e);
3339
+ r.value = bc(e);
3340
3340
  } };
3341
3341
  }
3342
3342
  function Zf({ container: r, accept: e, walk: t, enabled: o }) {
@@ -3366,7 +3366,7 @@ function Ae({ visible: r = !0, features: e = 0, ourProps: t, theirProps: o, ...n
3366
3366
  }
3367
3367
  function Ea({ props: r, attrs: e, slots: t, slot: o, name: n }) {
3368
3368
  var i, s;
3369
- let { as: a, ...l } = od(r, ["unmount", "static"]), d = (i = t.default) == null ? void 0 : i.call(t, o), c = {};
3369
+ let { as: a, ...l } = nd(r, ["unmount", "static"]), d = (i = t.default) == null ? void 0 : i.call(t, o), c = {};
3370
3370
  if (o) {
3371
3371
  let p = !1, u = [];
3372
3372
  for (let [m, h] of Object.entries(o)) typeof h == "boolean" && (p = !0), h === !0 && u.push(m);
@@ -3410,7 +3410,7 @@ function e0(r) {
3410
3410
  for (let t in e) e[t] === void 0 && delete e[t];
3411
3411
  return e;
3412
3412
  }
3413
- function od(r, e = []) {
3413
+ function nd(r, e = []) {
3414
3414
  let t = Object.assign({}, r);
3415
3415
  for (let o of e) o in t && delete t[o];
3416
3416
  return t;
@@ -3433,7 +3433,7 @@ function r0() {
3433
3433
  function ti() {
3434
3434
  return re(Hu, null);
3435
3435
  }
3436
- function nd(r) {
3436
+ function id(r) {
3437
3437
  He(Hu, r);
3438
3438
  }
3439
3439
  var ie = ((r) => (r.Space = " ", r.Enter = "Enter", r.Escape = "Escape", r.Backspace = "Backspace", r.Delete = "Delete", r.ArrowLeft = "ArrowLeft", r.ArrowUp = "ArrowUp", r.ArrowRight = "ArrowRight", r.ArrowDown = "ArrowDown", r.Home = "Home", r.End = "End", r.PageUp = "PageUp", r.PageDown = "PageDown", r.Tab = "Tab", r))(ie || {});
@@ -3559,7 +3559,7 @@ let ln = Object.assign(he({ name: "FocusTrap", props: { as: { type: [Object, Str
3559
3559
  function s0(r) {
3560
3560
  let e = x(Yr.slice());
3561
3561
  return pe([r], ([t], [o]) => {
3562
- o === !0 && t === !1 ? ed(() => {
3562
+ o === !0 && t === !1 ? td(() => {
3563
3563
  e.value.splice(0);
3564
3564
  }) : o === !1 && t === !0 && (e.value = Yr.slice());
3565
3565
  }, { flush: "post" }), () => {
@@ -3584,7 +3584,7 @@ function l0({ ownerDocument: r, container: e, initialFocus: t }, o) {
3584
3584
  pe([e, t, o], (s, a) => {
3585
3585
  if (s.every((d, c) => (a == null ? void 0 : a[c]) === d) || !o.value) return;
3586
3586
  let l = W(e);
3587
- l && ed(() => {
3587
+ l && td(() => {
3588
3588
  var d, c;
3589
3589
  if (!i.value) return;
3590
3590
  let p = W(t), u = (d = r.value) == null ? void 0 : d.activeElement;
@@ -3619,7 +3619,7 @@ function Yu(r, e) {
3619
3619
  return !1;
3620
3620
  }
3621
3621
  function c0(r) {
3622
- let e = cu(r.getSnapshot());
3622
+ let e = pu(r.getSnapshot());
3623
3623
  return xt(r.subscribe(() => {
3624
3624
  e.value = r.getSnapshot();
3625
3625
  })), e;
@@ -3737,7 +3737,7 @@ function f0(r, e, t) {
3737
3737
  }, { immediate: !0 }), n;
3738
3738
  }
3739
3739
  let Ma = /* @__PURE__ */ new Map(), dn = /* @__PURE__ */ new Map();
3740
- function bc(r, e = x(!0)) {
3740
+ function yc(r, e = x(!0)) {
3741
3741
  ot((t) => {
3742
3742
  var o;
3743
3743
  if (!e.value) return;
@@ -3839,13 +3839,13 @@ function C0(r) {
3839
3839
  var e;
3840
3840
  return (e = cl.get(r)) != null ? e : 0;
3841
3841
  }
3842
- function yc(r, e) {
3842
+ function wc(r, e) {
3843
3843
  let t = e(C0(r));
3844
3844
  return t <= 0 ? cl.delete(r) : cl.set(r, t), t;
3845
3845
  }
3846
3846
  let em = he({ name: "Portal", props: { as: { type: [Object, String], default: "div" } }, setup(r, { slots: e, attrs: t }) {
3847
3847
  let o = x(null), n = L(() => _r(o)), i = y0(), s = re(tm, null), a = x(i === !0 || s == null ? S0(o.value) : s.resolveTarget());
3848
- a.value && yc(a.value, (u) => u + 1);
3848
+ a.value && wc(a.value, (u) => u + 1);
3849
3849
  let l = x(!1);
3850
3850
  Se(() => {
3851
3851
  l.value = !0;
@@ -3860,7 +3860,7 @@ let em = he({ name: "Portal", props: { as: { type: [Object, String], default: "d
3860
3860
  }), xt(() => {
3861
3861
  var u, m;
3862
3862
  let h = (u = n.value) == null ? void 0 : u.getElementById("headlessui-portal-root");
3863
- !h || a.value !== h || yc(a.value, (f) => f - 1) || a.value.children.length > 0 || (m = a.value.parentElement) == null || m.removeChild(a.value);
3863
+ !h || a.value !== h || wc(a.value, (f) => f - 1) || a.value.children.length > 0 || (m = a.value.parentElement) == null || m.removeChild(a.value);
3864
3864
  }), () => {
3865
3865
  if (!l.value || a.value === null) return null;
3866
3866
  let u = { ref: o, "data-headlessui-portal": "" };
@@ -3885,7 +3885,7 @@ function E0() {
3885
3885
  } })];
3886
3886
  }
3887
3887
  let tm = Symbol("PortalGroupContext"), M0 = he({ name: "PortalGroup", props: { as: { type: [Object, String], default: "template" }, target: { type: Object, default: null } }, setup(r, { attrs: e, slots: t }) {
3888
- let o = du({ resolveTarget() {
3888
+ let o = cu({ resolveTarget() {
3889
3889
  return r.target;
3890
3890
  } });
3891
3891
  return He(tm, o), () => {
@@ -3919,12 +3919,12 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
3919
3919
  var oe, ce, Ne;
3920
3920
  return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("body > *")) != null ? ce : []).find((Te) => Te.id === "headlessui-portal-root" ? !1 : Te.contains(W(A)) && Te instanceof HTMLElement)) != null ? Ne : null;
3921
3921
  });
3922
- bc(I, v);
3922
+ yc(I, v);
3923
3923
  let q = L(() => E.value ? !0 : w.value), ne = L(() => {
3924
3924
  var oe, ce, Ne;
3925
3925
  return (Ne = Array.from((ce = (oe = f.value) == null ? void 0 : oe.querySelectorAll("[data-headlessui-portal]")) != null ? ce : []).find((Te) => Te.contains(W(A)) && Te instanceof HTMLElement)) != null ? Ne : null;
3926
3926
  });
3927
- bc(ne, q), v0({ type: "Dialog", enabled: L(() => b.value === 0), element: h, onUpdate: (oe, ce) => {
3927
+ yc(ne, q), v0({ type: "Dialog", enabled: L(() => b.value === 0), element: h, onUpdate: (oe, ce) => {
3928
3928
  if (ce === "Dialog") return ze(oe, { [dl.Add]: () => p.value += 1, [dl.Remove]: () => p.value -= 1 });
3929
3929
  } });
3930
3930
  let Y = k0({ name: "DialogDescription", slot: L(() => ({ open: m.value })) }), Z = x(null), le = { titleId: Z, panelRef: x(null), dialogState: b, setTitleId(oe) {
@@ -3934,7 +3934,7 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
3934
3934
  } };
3935
3935
  He(ul, le);
3936
3936
  let ge = L(() => !(!w.value || E.value));
3937
- rd(k, (oe, ce) => {
3937
+ od(k, (oe, ce) => {
3938
3938
  oe.preventDefault(), le.close(), Me(() => ce == null ? void 0 : ce.focus());
3939
3939
  }, ge);
3940
3940
  let se = L(() => !(E.value || b.value !== 0));
@@ -3960,7 +3960,7 @@ let Ai = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", oi = he({ name: "Dialog", inher
3960
3960
  let { open: oe, initialFocus: ce, ...Ne } = r, Te = { ...t, ref: h, id: a, role: c.value, "aria-modal": b.value === 0 ? !0 : void 0, "aria-labelledby": Z.value, "aria-describedby": Y.value }, it = { open: b.value === 0 };
3961
3961
  return Ee(ll, { force: !0 }, () => [Ee(em, () => Ee(M0, { target: h.value }, () => Ee(ll, { force: !1 }, () => Ee(ln, { initialFocus: ce, containers: k, features: w.value ? ze(_.value, { parent: ln.features.RestoreFocus, leaf: ln.features.All & ~ln.features.FocusLock }) : ln.features.None }, () => Ee(M, {}, () => Ae({ ourProps: Te, theirProps: { ...Ne, ...t }, slot: it, attrs: t, slots: o, visible: b.value === 0, features: $r.RenderStrategy | $r.Static, name: "Dialog" })))))), Ee(j)]);
3962
3962
  };
3963
- } }), id = he({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
3963
+ } }), sd = he({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
3964
3964
  var o;
3965
3965
  let n = (o = r.id) != null ? o : `headlessui-dialog-overlay-${bt()}`, i = ri("DialogOverlay");
3966
3966
  function s(a) {
@@ -3992,7 +3992,7 @@ let rm = he({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
3992
3992
  let { ...l } = r, d = { id: i, ref: s.panelRef, onClick: a };
3993
3993
  return Ae({ ourProps: d, theirProps: l, slot: { open: s.dialogState.value === 0 }, attrs: e, slots: t, name: "DialogPanel" });
3994
3994
  };
3995
- } }), sd = he({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
3995
+ } }), ad = he({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
3996
3996
  var o;
3997
3997
  let n = (o = r.id) != null ? o : `headlessui-dialog-title-${bt()}`, i = ri("DialogTitle");
3998
3998
  return Se(() => {
@@ -4001,15 +4001,15 @@ let rm = he({ name: "DialogPanel", props: { as: { type: [Object, String], defaul
4001
4001
  let { ...s } = r;
4002
4002
  return Ae({ ourProps: { id: n }, theirProps: s, slot: { open: i.dialogState.value === 0 }, attrs: e, slots: t, name: "DialogTitle" });
4003
4003
  };
4004
- } }), wc = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
4005
- function vc(r) {
4004
+ } }), vc = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
4005
+ function xc(r) {
4006
4006
  var e, t;
4007
4007
  let o = (e = r.innerText) != null ? e : "", n = r.cloneNode(!0);
4008
4008
  if (!(n instanceof HTMLElement)) return o;
4009
4009
  let i = !1;
4010
4010
  for (let a of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]')) a.remove(), i = !0;
4011
4011
  let s = i ? (t = n.innerText) != null ? t : "" : o;
4012
- return wc.test(s) && (s = s.replace(wc, "")), s;
4012
+ return vc.test(s) && (s = s.replace(vc, "")), s;
4013
4013
  }
4014
4014
  function O0(r) {
4015
4015
  let e = r.getAttribute("aria-label");
@@ -4020,13 +4020,13 @@ function O0(r) {
4020
4020
  let i = document.getElementById(n);
4021
4021
  if (i) {
4022
4022
  let s = i.getAttribute("aria-label");
4023
- return typeof s == "string" ? s.trim() : vc(i).trim();
4023
+ return typeof s == "string" ? s.trim() : xc(i).trim();
4024
4024
  }
4025
4025
  return null;
4026
4026
  }).filter(Boolean);
4027
4027
  if (o.length > 0) return o.join(", ");
4028
4028
  }
4029
- return vc(r).trim();
4029
+ return xc(r).trim();
4030
4030
  }
4031
4031
  function om(r) {
4032
4032
  let e = x(""), t = x("");
@@ -4058,7 +4058,7 @@ function ni(r) {
4058
4058
  let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], default: () => P0 }, horizontal: { type: [Boolean], default: !1 }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, multiple: { type: [Boolean], default: !1 } }, inheritAttrs: !1, setup(r, { slots: e, attrs: t, emit: o }) {
4059
4059
  let n = x(1), i = x(null), s = x(null), a = x(null), l = x([]), d = x(""), c = x(null), p = x(1);
4060
4060
  function u(C = (y) => y) {
4061
- let y = c.value !== null ? l.value[c.value] : null, M = td(C(l.value.slice()), (A) => W(A.dataRef.domRef)), k = y ? M.indexOf(y) : null;
4061
+ let y = c.value !== null ? l.value[c.value] : null, M = rd(C(l.value.slice()), (A) => W(A.dataRef.domRef)), k = y ? M.indexOf(y) : null;
4062
4062
  return k === -1 && (k = null), { options: M, activeOptionIndex: k };
4063
4063
  }
4064
4064
  let m = L(() => r.multiple ? 1 : 0), [h, f] = Ff(L(() => r.modelValue), (C) => o("update:modelValue", C), L(() => r.defaultValue)), b = L(() => h.value === void 0 ? ze(m.value, { 1: [], 0: void 0 }) : h.value), w = { listboxState: n, value: b, mode: m, compare(C, y) {
@@ -4100,10 +4100,10 @@ let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
4100
4100
  return k === -1 ? y.push(M) : y.splice(k, 1), y;
4101
4101
  } }));
4102
4102
  } };
4103
- rd([s, a], (C, y) => {
4103
+ od([s, a], (C, y) => {
4104
4104
  var M;
4105
4105
  w.closeListbox(), ea(y, Zs.Loose) || (C.preventDefault(), (M = W(s)) == null || M.focus());
4106
- }, L(() => n.value === 0)), He(nm, w), nd(L(() => ze(n.value, { 0: Be.Open, 1: Be.Closed })));
4106
+ }, L(() => n.value === 0)), He(nm, w), id(L(() => ze(n.value, { 0: Be.Open, 1: Be.Closed })));
4107
4107
  let E = L(() => {
4108
4108
  var C;
4109
4109
  return (C = W(s)) == null ? void 0 : C.closest("form");
@@ -4121,7 +4121,7 @@ let ii = he({ name: "Listbox", emits: { "update:modelValue": (r) => !0 }, props:
4121
4121
  }, { immediate: !0 });
4122
4122
  }), () => {
4123
4123
  let { name: C, modelValue: y, disabled: M, form: k, ...A } = r, j = { open: n.value === 0, disabled: M, value: b.value };
4124
- return Ee(ve, [...C != null && b.value != null ? Uu({ [C]: b.value }).map(([_, P]) => Ee(is, e0({ features: Rn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: k, disabled: M, name: _, value: P }))) : [], Ae({ ourProps: {}, theirProps: { ...t, ...od(A, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: j, slots: e, attrs: t, name: "Listbox" })]);
4124
+ return Ee(ve, [...C != null && b.value != null ? Uu({ [C]: b.value }).map(([_, P]) => Ee(is, e0({ features: Rn.Hidden, key: _, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: k, disabled: M, name: _, value: P }))) : [], Ae({ ourProps: {}, theirProps: { ...t, ...nd(A, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: j, slots: e, attrs: t, name: "Listbox" })]);
4125
4125
  };
4126
4126
  } });
4127
4127
  he({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(r, { attrs: e, slots: t }) {
@@ -4295,7 +4295,7 @@ function ta(r) {
4295
4295
  let $0 = he({ name: "Menu", props: { as: { type: [Object, String], default: "template" } }, setup(r, { slots: e, attrs: t }) {
4296
4296
  let o = x(1), n = x(null), i = x(null), s = x([]), a = x(""), l = x(null), d = x(1);
4297
4297
  function c(u = (m) => m) {
4298
- let m = l.value !== null ? s.value[l.value] : null, h = td(u(s.value.slice()), (b) => W(b.dataRef.domRef)), f = m ? h.indexOf(m) : null;
4298
+ let m = l.value !== null ? s.value[l.value] : null, h = rd(u(s.value.slice()), (b) => W(b.dataRef.domRef)), f = m ? h.indexOf(m) : null;
4299
4299
  return f === -1 && (f = null), { items: h, activeItemIndex: f };
4300
4300
  }
4301
4301
  let p = { menuState: o, buttonRef: n, itemsRef: i, items: s, searchQuery: a, activeItemIndex: l, activationTrigger: d, closeMenu: () => {
@@ -4320,10 +4320,10 @@ let $0 = he({ name: "Menu", props: { as: { type: [Object, String], default: "tem
4320
4320
  });
4321
4321
  s.value = m.items, l.value = m.activeItemIndex, d.value = 1;
4322
4322
  } };
4323
- return rd([n, i], (u, m) => {
4323
+ return od([n, i], (u, m) => {
4324
4324
  var h;
4325
4325
  p.closeMenu(), ea(m, Zs.Loose) || (u.preventDefault(), (h = W(n)) == null || h.focus());
4326
- }, L(() => o.value === 0)), He(im, p), nd(L(() => ze(o.value, { 0: Be.Open, 1: Be.Closed }))), () => {
4326
+ }, L(() => o.value === 0)), He(im, p), id(L(() => ze(o.value, { 0: Be.Open, 1: Be.Closed }))), () => {
4327
4327
  let u = { open: o.value === 0, close: p.closeMenu };
4328
4328
  return Ae({ ourProps: {}, theirProps: r, slot: u, slots: e, attrs: t, name: "Menu" });
4329
4329
  };
@@ -4486,7 +4486,7 @@ function j0(r, e) {
4486
4486
  });
4487
4487
  return i !== 0 ? t.setTimeout(() => e("finished"), i + s) : e("finished"), t.add(() => e("cancelled")), t.dispose;
4488
4488
  }
4489
- function xc(r, e, t, o, n, i) {
4489
+ function kc(r, e, t, o, n, i) {
4490
4490
  let s = Zn(), a = i !== void 0 ? F0(i) : () => {
4491
4491
  };
4492
4492
  return Bi(r, ...n), Ta(r, ...e, ...t), s.nextFrame(() => {
@@ -4496,22 +4496,22 @@ function xc(r, e, t, o, n, i) {
4496
4496
  function qr(r = "") {
4497
4497
  return r.split(/\s+/).filter((e) => e.length > 1);
4498
4498
  }
4499
- let ad = Symbol("TransitionContext");
4499
+ let ld = Symbol("TransitionContext");
4500
4500
  var H0 = ((r) => (r.Visible = "visible", r.Hidden = "hidden", r))(H0 || {});
4501
4501
  function V0() {
4502
- return re(ad, null) !== null;
4502
+ return re(ld, null) !== null;
4503
4503
  }
4504
4504
  function U0() {
4505
- let r = re(ad, null);
4505
+ let r = re(ld, null);
4506
4506
  if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
4507
4507
  return r;
4508
4508
  }
4509
4509
  function W0() {
4510
- let r = re(ld, null);
4510
+ let r = re(dd, null);
4511
4511
  if (r === null) throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");
4512
4512
  return r;
4513
4513
  }
4514
- let ld = Symbol("NestingContext");
4514
+ let dd = Symbol("NestingContext");
4515
4515
  function ra(r) {
4516
4516
  return "children" in r ? ra(r.children) : r.value.filter(({ state: e }) => e === "visible").length > 0;
4517
4517
  }
@@ -4575,9 +4575,9 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
4575
4575
  });
4576
4576
  function I(q) {
4577
4577
  let ne = w.value && !m.value, Y = W(c);
4578
- !Y || !(Y instanceof HTMLElement) || ne || (C.value = !0, u.value && s(), u.value || l(), q(u.value ? xc(Y, M, k, A, j, (Z) => {
4578
+ !Y || !(Y instanceof HTMLElement) || ne || (C.value = !0, u.value && s(), u.value || l(), q(u.value ? kc(Y, M, k, A, j, (Z) => {
4579
4579
  C.value = !1, Z === ml.Finished && a();
4580
- }) : xc(Y, _, P, v, j, (Z) => {
4580
+ }) : kc(Y, _, P, v, j, (Z) => {
4581
4581
  C.value = !1, Z === ml.Finished && (ra(y) || (b.value = "hidden", f(E), d()));
4582
4582
  })));
4583
4583
  }
@@ -4585,7 +4585,7 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
4585
4585
  pe([u], (q, ne, Y) => {
4586
4586
  I(Y), w.value = !1;
4587
4587
  }, { immediate: !0 });
4588
- }), He(ld, y), nd(L(() => ze(b.value, { visible: Be.Open, hidden: Be.Closed }) | i.value)), () => {
4588
+ }), He(dd, y), id(L(() => ze(b.value, { visible: Be.Open, hidden: Be.Closed }) | i.value)), () => {
4589
4589
  let { appear: q, show: ne, enter: Y, enterFrom: Z, enterTo: le, entered: ge, leave: se, leaveFrom: ae, leaveTo: oe, ...ce } = r, Ne = { ref: c }, Te = { ...ce, ...m.value && u.value && ei.isServer ? { class: X([t.class, ce.class, ...M, ...k]) } : {} };
4590
4590
  return Ae({ theirProps: Te, ourProps: Ne, slot: {}, slots: o, attrs: t, features: am, visible: b.value === "visible", name: "TransitionChild" });
4591
4591
  };
@@ -4601,8 +4601,8 @@ let am = $r.RenderStrategy, ur = he({ props: { as: { type: [Object, String], def
4601
4601
  ot(() => {
4602
4602
  l.value = !1, i.value ? s.value = "visible" : ra(a) || (s.value = "hidden");
4603
4603
  });
4604
- }), He(ld, a), He(ad, d), () => {
4605
- let c = od(r, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), p = { unmount: r.unmount };
4604
+ }), He(dd, a), He(ld, d), () => {
4605
+ let c = nd(r, ["show", "appear", "unmount", "onBeforeEnter", "onBeforeLeave", "onAfterEnter", "onAfterLeave"]), p = { unmount: r.unmount };
4606
4606
  return Ae({ ourProps: { ...p, as: "template" }, theirProps: {}, slot: {}, slots: { ...o, default: () => [Ee(q0, { onBeforeEnter: () => e("beforeEnter"), onAfterEnter: () => e("afterEnter"), onBeforeLeave: () => e("beforeLeave"), onAfterLeave: () => e("afterLeave"), ...t, ...p, ...c }, o.default)] }, attrs: {}, features: am, visible: s.value === "visible", name: "Transition" });
4607
4607
  };
4608
4608
  } });
@@ -4620,11 +4620,11 @@ const K0 = { class: "font-sans flex items-end justify-center pb-20 text-center s
4620
4620
  },
4621
4621
  emits: ["firstPageBuilderPreviewModalButton"],
4622
4622
  setup(r, { emit: e }) {
4623
- const t = re("internalPinia"), o = e, n = async function() {
4624
- o("firstPageBuilderPreviewModalButton"), s.setIsLoading(!0), await Mu(), s.setIsLoading(!1);
4625
- }, i = function() {
4626
- n();
4627
- }, s = Lu(t), a = L(() => s.getPageBuilderLogo);
4623
+ const t = re("internalPinia"), o = ed(t), n = e, i = async function() {
4624
+ n("firstPageBuilderPreviewModalButton"), o.setIsLoading(!0), await Tu(), o.setIsLoading(!1);
4625
+ }, s = function() {
4626
+ i();
4627
+ }, a = L(() => o.getPageBuilderLogo);
4628
4628
  return (l, d) => (S(), xe(Yo, { to: "body" }, [
4629
4629
  R(T(Xo), {
4630
4630
  show: r.show,
@@ -4632,8 +4632,8 @@ const K0 = { class: "font-sans flex items-end justify-center pb-20 text-center s
4632
4632
  }, {
4633
4633
  default: z(() => [
4634
4634
  R(T(oi), {
4635
- onClose: n,
4636
- onKeydown: pu(Po(i, ["prevent"]), ["escape"]),
4635
+ onClose: i,
4636
+ onKeydown: uu(Po(s, ["prevent"]), ["escape"]),
4637
4637
  as: "div",
4638
4638
  class: "fixed z-30 inset-0 overflow-y-auto focus:outline-none",
4639
4639
  tabindex: "0"
@@ -4650,7 +4650,7 @@ const K0 = { class: "font-sans flex items-end justify-center pb-20 text-center s
4650
4650
  "leave-to": "opacity-100"
4651
4651
  }, {
4652
4652
  default: z(() => [
4653
- R(T(id), { class: "fixed inset-0 bg-opacity-75 transition-opacity" })
4653
+ R(T(sd), { class: "fixed inset-0 bg-opacity-75 transition-opacity" })
4654
4654
  ]),
4655
4655
  _: 1
4656
4656
  }),
@@ -4685,7 +4685,7 @@ const K0 = { class: "font-sans flex items-end justify-center pb-20 text-center s
4685
4685
  ], -1)
4686
4686
  ]))),
4687
4687
  g("div", {
4688
- onClick: n,
4688
+ onClick: i,
4689
4689
  class: "flex items-center justify-center gap-1 cursor-pointer"
4690
4690
  }, d[2] || (d[2] = [
4691
4691
  g("span", { class: "myPrimaryParagraph font-medium" }, " Close Preview ", -1),
@@ -4776,7 +4776,7 @@ const K0 = { class: "font-sans flex items-end justify-center pb-20 text-center s
4776
4776
  "leave-to": "opacity-0"
4777
4777
  }, {
4778
4778
  default: z(() => [
4779
- R(T(id), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4779
+ R(T(sd), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
4780
4780
  ]),
4781
4781
  _: 1
4782
4782
  }),
@@ -6217,7 +6217,7 @@ class zn {
6217
6217
  @internal
6218
6218
  */
6219
6219
  static resolveCached(e, t) {
6220
- let o = kc.get(e);
6220
+ let o = Sc.get(e);
6221
6221
  if (o)
6222
6222
  for (let i = 0; i < o.elts.length; i++) {
6223
6223
  let s = o.elts[i];
@@ -6225,7 +6225,7 @@ class zn {
6225
6225
  return s;
6226
6226
  }
6227
6227
  else
6228
- kc.set(e, o = new H1());
6228
+ Sc.set(e, o = new H1());
6229
6229
  let n = o.elts[o.i] = zn.resolve(e, t);
6230
6230
  return o.i = (o.i + 1) % V1, n;
6231
6231
  }
@@ -6235,7 +6235,7 @@ class H1 {
6235
6235
  this.elts = [], this.i = 0;
6236
6236
  }
6237
6237
  }
6238
- const V1 = 12, kc = /* @__PURE__ */ new WeakMap();
6238
+ const V1 = 12, Sc = /* @__PURE__ */ new WeakMap();
6239
6239
  class ds {
6240
6240
  /**
6241
6241
  Construct a node range. `$from` and `$to` should point into the
@@ -6896,14 +6896,14 @@ function K1(r) {
6896
6896
  break;
6897
6897
  return e;
6898
6898
  }
6899
- function Sc(r) {
6899
+ function Cc(r) {
6900
6900
  /\D/.test(r.next) && r.err("Expected number, got '" + r.next + "'");
6901
6901
  let e = Number(r.next);
6902
6902
  return r.pos++, e;
6903
6903
  }
6904
6904
  function G1(r, e) {
6905
- let t = Sc(r), o = t;
6906
- return r.eat(",") && (r.next != "}" ? o = Sc(r) : o = -1), r.eat("}") || r.err("Unclosed braced range"), { type: "range", min: t, max: o, expr: e };
6905
+ let t = Cc(r), o = t;
6906
+ return r.eat(",") && (r.next != "}" ? o = Cc(r) : o = -1), r.eat("}") || r.err("Unclosed braced range"), { type: "range", min: t, max: o, expr: e };
6907
6907
  }
6908
6908
  function J1(r, e) {
6909
6909
  let t = r.nodeTypes, o = t[e];
@@ -6984,7 +6984,7 @@ function X1(r) {
6984
6984
  function vm(r, e) {
6985
6985
  return e - r;
6986
6986
  }
6987
- function Cc(r, e) {
6987
+ function Ec(r, e) {
6988
6988
  let t = [];
6989
6989
  return o(e), t.sort(vm);
6990
6990
  function o(n) {
@@ -7000,7 +7000,7 @@ function Cc(r, e) {
7000
7000
  }
7001
7001
  function Q1(r) {
7002
7002
  let e = /* @__PURE__ */ Object.create(null);
7003
- return t(Cc(r, 0));
7003
+ return t(Ec(r, 0));
7004
7004
  function t(o) {
7005
7005
  let n = [];
7006
7006
  o.forEach((s) => {
@@ -7010,7 +7010,7 @@ function Q1(r) {
7010
7010
  let d;
7011
7011
  for (let c = 0; c < n.length; c++)
7012
7012
  n[c][0] == a && (d = n[c][1]);
7013
- Cc(r, l).forEach((c) => {
7013
+ Ec(r, l).forEach((c) => {
7014
7014
  d || n.push([a, d = []]), d.indexOf(c) == -1 && d.push(c);
7015
7015
  });
7016
7016
  });
@@ -7074,7 +7074,7 @@ function Cm(r, e) {
7074
7074
  t[o] = new tb(r, o, e[o]);
7075
7075
  return t;
7076
7076
  }
7077
- let Ec = class Em {
7077
+ let Mc = class Em {
7078
7078
  /**
7079
7079
  @internal
7080
7080
  */
@@ -7333,7 +7333,7 @@ class Mm {
7333
7333
  let t = this.spec = {};
7334
7334
  for (let n in e)
7335
7335
  t[n] = e[n];
7336
- t.nodes = Ke.from(e.nodes), t.marks = Ke.from(e.marks || {}), this.nodes = Ec.compile(this.spec.nodes, this), this.marks = oa.compile(this.spec.marks, this);
7336
+ t.nodes = Ke.from(e.nodes), t.marks = Ke.from(e.marks || {}), this.nodes = Mc.compile(this.spec.nodes, this), this.marks = oa.compile(this.spec.marks, this);
7337
7337
  let o = /* @__PURE__ */ Object.create(null);
7338
7338
  for (let n in this.nodes) {
7339
7339
  if (n in this.marks)
@@ -7346,11 +7346,11 @@ class Mm {
7346
7346
  throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
7347
7347
  this.linebreakReplacement = i;
7348
7348
  }
7349
- i.markSet = a == "_" ? null : a ? Mc(this, a.split(" ")) : a == "" || !i.inlineContent ? [] : null;
7349
+ i.markSet = a == "_" ? null : a ? Tc(this, a.split(" ")) : a == "" || !i.inlineContent ? [] : null;
7350
7350
  }
7351
7351
  for (let n in this.marks) {
7352
7352
  let i = this.marks[n], s = i.spec.excludes;
7353
- i.excluded = s == null ? [i] : s == "" ? [] : Mc(this, s.split(" "));
7353
+ i.excluded = s == null ? [i] : s == "" ? [] : Tc(this, s.split(" "));
7354
7354
  }
7355
7355
  this.nodeFromJSON = this.nodeFromJSON.bind(this), this.markFromJSON = this.markFromJSON.bind(this), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
7356
7356
  }
@@ -7363,7 +7363,7 @@ class Mm {
7363
7363
  node(e, t = null, o, n) {
7364
7364
  if (typeof e == "string")
7365
7365
  e = this.nodeType(e);
7366
- else if (e instanceof Ec) {
7366
+ else if (e instanceof Mc) {
7367
7367
  if (e.schema != this)
7368
7368
  throw new RangeError("Node type from different schema used (" + e.name + ")");
7369
7369
  } else throw new RangeError("Invalid node type: " + e);
@@ -7407,7 +7407,7 @@ class Mm {
7407
7407
  return t;
7408
7408
  }
7409
7409
  }
7410
- function Mc(r, e) {
7410
+ function Tc(r, e) {
7411
7411
  let t = [];
7412
7412
  for (let o = 0; o < e.length; o++) {
7413
7413
  let n = e[o], i = r.marks[n], s = i;
@@ -7455,7 +7455,7 @@ let kn = class bl {
7455
7455
  Parse a document from the content of a DOM node.
7456
7456
  */
7457
7457
  parse(e, t = {}) {
7458
- let o = new Oc(this, t, !1);
7458
+ let o = new Pc(this, t, !1);
7459
7459
  return o.addAll(e, we.none, t.from, t.to), o.finish();
7460
7460
  }
7461
7461
  /**
@@ -7467,7 +7467,7 @@ let kn = class bl {
7467
7467
  the left of the input and the end of nodes at the end.
7468
7468
  */
7469
7469
  parseSlice(e, t = {}) {
7470
- let o = new Oc(this, t, !0);
7470
+ let o = new Pc(this, t, !0);
7471
7471
  return o.addAll(e, we.none, t.from, t.to), H.maxOpen(o.finish());
7472
7472
  }
7473
7473
  /**
@@ -7524,13 +7524,13 @@ let kn = class bl {
7524
7524
  for (let n in e.marks) {
7525
7525
  let i = e.marks[n].spec.parseDOM;
7526
7526
  i && i.forEach((s) => {
7527
- o(s = Pc(s)), s.mark || s.ignore || s.clearMark || (s.mark = n);
7527
+ o(s = Ac(s)), s.mark || s.ignore || s.clearMark || (s.mark = n);
7528
7528
  });
7529
7529
  }
7530
7530
  for (let n in e.nodes) {
7531
7531
  let i = e.nodes[n].spec.parseDOM;
7532
7532
  i && i.forEach((s) => {
7533
- o(s = Pc(s)), s.node || s.ignore || s.mark || (s.node = n);
7533
+ o(s = Ac(s)), s.node || s.ignore || s.mark || (s.node = n);
7534
7534
  });
7535
7535
  }
7536
7536
  return t;
@@ -7585,7 +7585,7 @@ const Tm = {
7585
7585
  style: !0,
7586
7586
  title: !0
7587
7587
  }, Om = { ol: !0, ul: !0 }, _n = 1, yl = 2, Gi = 4;
7588
- function Tc(r, e, t) {
7588
+ function Oc(r, e, t) {
7589
7589
  return e != null ? (e ? _n : 0) | (e === "full" ? yl : 0) : r && r.whitespace == "pre" ? _n | yl : t & -5;
7590
7590
  }
7591
7591
  class Ni {
@@ -7621,10 +7621,10 @@ class Ni {
7621
7621
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Tm.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
7622
7622
  }
7623
7623
  }
7624
- class Oc {
7624
+ class Pc {
7625
7625
  constructor(e, t, o) {
7626
7626
  this.parser = e, this.options = t, this.isOpen = o, this.open = 0, this.localPreserveWS = !1;
7627
- let n = t.topNode, i, s = Tc(null, t.preserveWhitespace, 0) | (o ? Gi : 0);
7627
+ let n = t.topNode, i, s = Oc(null, t.preserveWhitespace, 0) | (o ? Gi : 0);
7628
7628
  n ? i = new Ni(n.type, n.attrs, we.none, !0, t.topMatch || n.type.contentMatch, s) : o ? i = new Ni(null, null, we.none, !0, null, s) : i = new Ni(e.schema.topNodeType, null, we.none, !0, null, s), this.nodes = [i], this.find = t.findPositions, this.needsBlock = !1;
7629
7629
  }
7630
7630
  get top() {
@@ -7782,7 +7782,7 @@ class Oc {
7782
7782
  i.match && (i.match = i.match.matchType(e.type));
7783
7783
  let s = we.none;
7784
7784
  for (let a of n.concat(e.marks))
7785
- (i.type ? i.type.allowsMarkType(a.type) : Ac(a.type, e.type)) && (s = a.addToSet(s));
7785
+ (i.type ? i.type.allowsMarkType(a.type) : Bc(a.type, e.type)) && (s = a.addToSet(s));
7786
7786
  return i.content.push(e.mark(s)), !0;
7787
7787
  }
7788
7788
  return !1;
@@ -7798,10 +7798,10 @@ class Oc {
7798
7798
  this.closeExtra();
7799
7799
  let s = this.top;
7800
7800
  s.match = s.match && s.match.matchType(e);
7801
- let a = Tc(e, i, s.options);
7801
+ let a = Oc(e, i, s.options);
7802
7802
  s.options & Gi && s.content.length == 0 && (a |= Gi);
7803
7803
  let l = we.none;
7804
- return o = o.filter((d) => (s.type ? s.type.allowsMarkType(d.type) : Ac(d.type, e)) ? (l = d.addToSet(l), !1) : !0), this.nodes.push(new Ni(e, t, l, n, null, a)), this.open++, o;
7804
+ return o = o.filter((d) => (s.type ? s.type.allowsMarkType(d.type) : Bc(d.type, e)) ? (l = d.addToSet(l), !1) : !0), this.nodes.push(new Ni(e, t, l, n, null, a)), this.open++, o;
7805
7805
  }
7806
7806
  // Make sure all nodes above this.open are finished and added to
7807
7807
  // their parents
@@ -7904,13 +7904,13 @@ function ib(r) {
7904
7904
  function sb(r, e) {
7905
7905
  return (r.matches || r.msMatchesSelector || r.webkitMatchesSelector || r.mozMatchesSelector).call(r, e);
7906
7906
  }
7907
- function Pc(r) {
7907
+ function Ac(r) {
7908
7908
  let e = {};
7909
7909
  for (let t in r)
7910
7910
  e[t] = r[t];
7911
7911
  return e;
7912
7912
  }
7913
- function Ac(r, e) {
7913
+ function Bc(r, e) {
7914
7914
  let t = e.schema.nodes;
7915
7915
  for (let o in t) {
7916
7916
  let n = t[o];
@@ -8022,17 +8022,17 @@ class bo {
8022
8022
  This can be useful as a base to build a custom serializer from.
8023
8023
  */
8024
8024
  static nodesFromSchema(e) {
8025
- let t = Bc(e.nodes);
8025
+ let t = Lc(e.nodes);
8026
8026
  return t.text || (t.text = (o) => o.text), t;
8027
8027
  }
8028
8028
  /**
8029
8029
  Gather the serializers in a schema's mark specs into an object.
8030
8030
  */
8031
8031
  static marksFromSchema(e) {
8032
- return Bc(e.marks);
8032
+ return Lc(e.marks);
8033
8033
  }
8034
8034
  }
8035
- function Bc(r) {
8035
+ function Lc(r) {
8036
8036
  let e = {};
8037
8037
  for (let t in r) {
8038
8038
  let o = r[t].spec.toDOM;
@@ -8043,10 +8043,10 @@ function Bc(r) {
8043
8043
  function Pa(r) {
8044
8044
  return r.document || window.document;
8045
8045
  }
8046
- const Lc = /* @__PURE__ */ new WeakMap();
8046
+ const Nc = /* @__PURE__ */ new WeakMap();
8047
8047
  function ab(r) {
8048
- let e = Lc.get(r);
8049
- return e === void 0 && Lc.set(r, e = lb(r)), e;
8048
+ let e = Nc.get(r);
8049
+ return e === void 0 && Nc.set(r, e = lb(r)), e;
8050
8050
  }
8051
8051
  function lb(r) {
8052
8052
  let e = null;
@@ -8108,7 +8108,7 @@ const Pm = 65535, Am = Math.pow(2, 16);
8108
8108
  function db(r, e) {
8109
8109
  return r + e * Am;
8110
8110
  }
8111
- function Nc(r) {
8111
+ function Ic(r) {
8112
8112
  return r & Pm;
8113
8113
  }
8114
8114
  function cb(r) {
@@ -8165,7 +8165,7 @@ class yt {
8165
8165
  @internal
8166
8166
  */
8167
8167
  recover(e) {
8168
- let t = 0, o = Nc(e);
8168
+ let t = 0, o = Ic(e);
8169
8169
  if (!this.inverted)
8170
8170
  for (let n = 0; n < o; n++)
8171
8171
  t += this.ranges[n * 3 + 2] - this.ranges[n * 3 + 1];
@@ -8202,7 +8202,7 @@ class yt {
8202
8202
  @internal
8203
8203
  */
8204
8204
  touches(e, t) {
8205
- let o = 0, n = Nc(t), i = this.inverted ? 2 : 1, s = this.inverted ? 1 : 2;
8205
+ let o = 0, n = Ic(t), i = this.inverted ? 2 : 1, s = this.inverted ? 1 : 2;
8206
8206
  for (let a = 0; a < this.ranges.length; a += 3) {
8207
8207
  let l = this.ranges[a] - (this.inverted ? o : 0);
8208
8208
  if (l > e)
@@ -8431,11 +8431,11 @@ class Re {
8431
8431
  }
8432
8432
  }
8433
8433
  }
8434
- function dd(r, e, t) {
8434
+ function cd(r, e, t) {
8435
8435
  let o = [];
8436
8436
  for (let n = 0; n < r.childCount; n++) {
8437
8437
  let i = r.child(n);
8438
- i.content.size && (i = i.copy(dd(i.content, e, i))), i.isInline && (i = e(i, t, n)), o.push(i);
8438
+ i.content.size && (i = i.copy(cd(i.content, e, i))), i.isInline && (i = e(i, t, n)), o.push(i);
8439
8439
  }
8440
8440
  return N.fromArray(o);
8441
8441
  }
@@ -8447,7 +8447,7 @@ class Pr extends nt {
8447
8447
  super(), this.from = e, this.to = t, this.mark = o;
8448
8448
  }
8449
8449
  apply(e) {
8450
- let t = e.slice(this.from, this.to), o = e.resolve(this.from), n = o.node(o.sharedDepth(this.to)), i = new H(dd(t.content, (s, a) => !s.isAtom || !a.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), n), t.openStart, t.openEnd);
8450
+ let t = e.slice(this.from, this.to), o = e.resolve(this.from), n = o.node(o.sharedDepth(this.to)), i = new H(cd(t.content, (s, a) => !s.isAtom || !a.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), n), t.openStart, t.openEnd);
8451
8451
  return Re.fromReplace(e, this.from, this.to, i);
8452
8452
  }
8453
8453
  invert() {
@@ -8486,7 +8486,7 @@ class Kt extends nt {
8486
8486
  super(), this.from = e, this.to = t, this.mark = o;
8487
8487
  }
8488
8488
  apply(e) {
8489
- let t = e.slice(this.from, this.to), o = new H(dd(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
8489
+ let t = e.slice(this.from, this.to), o = new H(cd(t.content, (n) => n.mark(this.mark.removeFromSet(n.marks)), e), t.openStart, t.openEnd);
8490
8490
  return Re.fromReplace(e, this.from, this.to, o);
8491
8491
  }
8492
8492
  invert() {
@@ -8759,7 +8759,7 @@ function ub(r, e, t, o) {
8759
8759
  }
8760
8760
  }), n.forEach((s) => r.step(new Kt(s.from, s.to, s.style)));
8761
8761
  }
8762
- function cd(r, e, t, o = t.contentMatch, n = !0) {
8762
+ function pd(r, e, t, o = t.contentMatch, n = !0) {
8763
8763
  let i = r.doc.nodeAt(e), s = [], a = e + 1;
8764
8764
  for (let l = 0; l < i.childCount; l++) {
8765
8765
  let d = i.child(l), c = a + d.nodeSize, p = o.matchType(d.type);
@@ -8807,11 +8807,11 @@ function hb(r, e, t) {
8807
8807
  f || n.after(h + 1) < n.end(h) ? (f = !0, u = N.from(n.node(h).copy(u)), m++) : d++;
8808
8808
  r.step(new Ve(l, d, s, a, new H(c.append(u), p, m), c.size - p, !0));
8809
8809
  }
8810
- function pd(r, e, t = null, o = r) {
8810
+ function ud(r, e, t = null, o = r) {
8811
8811
  let n = gb(r, e), i = n && fb(o, e);
8812
- return i ? n.map(Ic).concat({ type: e, attrs: t }).concat(i.map(Ic)) : null;
8812
+ return i ? n.map(Dc).concat({ type: e, attrs: t }).concat(i.map(Dc)) : null;
8813
8813
  }
8814
- function Ic(r) {
8814
+ function Dc(r) {
8815
8815
  return { type: r, attrs: null };
8816
8816
  }
8817
8817
  function gb(r, e) {
@@ -8855,7 +8855,7 @@ function yb(r, e, t, o, n) {
8855
8855
  let m = o.whitespace == "pre", h = !!o.contentMatch.matchType(o.schema.linebreakReplacement);
8856
8856
  m && !h ? d = !1 : !m && h && (d = !0);
8857
8857
  }
8858
- d === !1 && Dm(r, s, a, i), cd(r, r.mapping.slice(i).map(a, 1), o, void 0, d === null);
8858
+ d === !1 && Dm(r, s, a, i), pd(r, r.mapping.slice(i).map(a, 1), o, void 0, d === null);
8859
8859
  let c = r.mapping.slice(i), p = c.map(a, 1), u = c.map(a + s.nodeSize, 1);
8860
8860
  return r.step(new Ve(p, u, p + 1, u - 1, new H(N.from(o.create(l, null, s.marks)), 0, 0), 1, !0)), d === !0 && Im(r, s, a, i), !1;
8861
8861
  }
@@ -8962,7 +8962,7 @@ function Sb(r, e, t) {
8962
8962
  let c = r.doc.resolve(e + t);
8963
8963
  Dm(r, c.node(), c.before(), a);
8964
8964
  }
8965
- s.inlineContent && cd(r, e + t - 1, s, i.node().contentMatchAt(i.index()), o == null);
8965
+ s.inlineContent && pd(r, e + t - 1, s, i.node().contentMatchAt(i.index()), o == null);
8966
8966
  let l = r.mapping.slice(a), d = l.map(e - t);
8967
8967
  if (r.step(new je(d, l.map(e + t, -1), H.empty, !0)), o === !0) {
8968
8968
  let c = r.doc.resolve(d);
@@ -9594,7 +9594,7 @@ class Hm {
9594
9594
  third argument.
9595
9595
  */
9596
9596
  clearIncompatible(e, t, o) {
9597
- return cd(this, e, t, o), this;
9597
+ return pd(this, e, t, o), this;
9598
9598
  }
9599
9599
  }
9600
9600
  const Na = /* @__PURE__ */ Object.create(null);
@@ -9670,7 +9670,7 @@ class Q {
9670
9670
  let i = e.steps.length, s = this.ranges;
9671
9671
  for (let a = 0; a < s.length; a++) {
9672
9672
  let { $from: l, $to: d } = s[a], c = e.mapping.slice(i);
9673
- e.replaceRange(c.map(l.pos), c.map(d.pos), a ? H.empty : t), a == 0 && $c(e, i, (o ? o.isInline : n && n.isTextblock) ? -1 : 1);
9673
+ e.replaceRange(c.map(l.pos), c.map(d.pos), a ? H.empty : t), a == 0 && zc(e, i, (o ? o.isInline : n && n.isTextblock) ? -1 : 1);
9674
9674
  }
9675
9675
  }
9676
9676
  /**
@@ -9681,7 +9681,7 @@ class Q {
9681
9681
  let o = e.steps.length, n = this.ranges;
9682
9682
  for (let i = 0; i < n.length; i++) {
9683
9683
  let { $from: s, $to: a } = n[i], l = e.mapping.slice(o), d = l.map(s.pos), c = l.map(a.pos);
9684
- i ? e.deleteRange(d, c) : (e.replaceRangeWith(d, c, t), $c(e, o, t.isInline ? -1 : 1));
9684
+ i ? e.deleteRange(d, c) : (e.replaceRangeWith(d, c, t), zc(e, o, t.isInline ? -1 : 1));
9685
9685
  }
9686
9686
  }
9687
9687
  /**
@@ -9771,16 +9771,16 @@ class Bb {
9771
9771
  this.$from = e, this.$to = t;
9772
9772
  }
9773
9773
  }
9774
- let Dc = !1;
9775
- function Rc(r) {
9776
- !Dc && !r.parent.inlineContent && (Dc = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r.parent.type.name + ")"));
9774
+ let Rc = !1;
9775
+ function $c(r) {
9776
+ !Rc && !r.parent.inlineContent && (Rc = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r.parent.type.name + ")"));
9777
9777
  }
9778
9778
  class J extends Q {
9779
9779
  /**
9780
9780
  Construct a text selection between the given points.
9781
9781
  */
9782
9782
  constructor(e, t = e) {
9783
- Rc(e), Rc(t), super(e, t);
9783
+ $c(e), $c(t), super(e, t);
9784
9784
  }
9785
9785
  /**
9786
9786
  Returns a resolved position if this is a cursor selection (an
@@ -9881,7 +9881,7 @@ class K extends Q {
9881
9881
  return { type: "node", anchor: this.anchor };
9882
9882
  }
9883
9883
  getBookmark() {
9884
- return new ud(this.anchor);
9884
+ return new md(this.anchor);
9885
9885
  }
9886
9886
  /**
9887
9887
  @internal
@@ -9907,13 +9907,13 @@ class K extends Q {
9907
9907
  }
9908
9908
  K.prototype.visible = !1;
9909
9909
  Q.jsonID("node", K);
9910
- class ud {
9910
+ class md {
9911
9911
  constructor(e) {
9912
9912
  this.anchor = e;
9913
9913
  }
9914
9914
  map(e) {
9915
9915
  let { deleted: t, pos: o } = e.mapResult(this.anchor);
9916
- return t ? new sa(o, o) : new ud(o);
9916
+ return t ? new sa(o, o) : new md(o);
9917
9917
  }
9918
9918
  resolve(e) {
9919
9919
  let t = e.resolve(this.anchor), o = t.nodeAfter;
@@ -9980,7 +9980,7 @@ function Ao(r, e, t, o, n, i = !1) {
9980
9980
  }
9981
9981
  return null;
9982
9982
  }
9983
- function $c(r, e, t) {
9983
+ function zc(r, e, t) {
9984
9984
  let o = r.steps.length - 1;
9985
9985
  if (o < e)
9986
9986
  return;
@@ -9992,7 +9992,7 @@ function $c(r, e, t) {
9992
9992
  s == null && (s = c);
9993
9993
  }), r.setSelection(Q.near(r.doc.resolve(s), t));
9994
9994
  }
9995
- const zc = 1, _c = 2, Fc = 4;
9995
+ const _c = 1, Fc = 2, jc = 4;
9996
9996
  class Nb extends Hm {
9997
9997
  /**
9998
9998
  @internal
@@ -10016,19 +10016,19 @@ class Nb extends Hm {
10016
10016
  setSelection(e) {
10017
10017
  if (e.$from.doc != this.doc)
10018
10018
  throw new RangeError("Selection passed to setSelection must point at the current document");
10019
- return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | zc) & -3, this.storedMarks = null, this;
10019
+ return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | _c) & -3, this.storedMarks = null, this;
10020
10020
  }
10021
10021
  /**
10022
10022
  Whether the selection was explicitly updated by this transaction.
10023
10023
  */
10024
10024
  get selectionSet() {
10025
- return (this.updated & zc) > 0;
10025
+ return (this.updated & _c) > 0;
10026
10026
  }
10027
10027
  /**
10028
10028
  Set the current stored marks.
10029
10029
  */
10030
10030
  setStoredMarks(e) {
10031
- return this.storedMarks = e, this.updated |= _c, this;
10031
+ return this.storedMarks = e, this.updated |= Fc, this;
10032
10032
  }
10033
10033
  /**
10034
10034
  Make sure the current stored marks or, if that is null, the marks
@@ -10054,7 +10054,7 @@ class Nb extends Hm {
10054
10054
  Whether the stored marks were explicitly set for this transaction.
10055
10055
  */
10056
10056
  get storedMarksSet() {
10057
- return (this.updated & _c) > 0;
10057
+ return (this.updated & Fc) > 0;
10058
10058
  }
10059
10059
  /**
10060
10060
  @internal
@@ -10135,21 +10135,21 @@ class Nb extends Hm {
10135
10135
  when updated to the state produced by this transaction.
10136
10136
  */
10137
10137
  scrollIntoView() {
10138
- return this.updated |= Fc, this;
10138
+ return this.updated |= jc, this;
10139
10139
  }
10140
10140
  /**
10141
10141
  True when this transaction has had `scrollIntoView` called on it.
10142
10142
  */
10143
10143
  get scrolledIntoView() {
10144
- return (this.updated & Fc) > 0;
10144
+ return (this.updated & jc) > 0;
10145
10145
  }
10146
10146
  }
10147
- function jc(r, e) {
10147
+ function Hc(r, e) {
10148
10148
  return !e || !r ? r : r.bind(e);
10149
10149
  }
10150
10150
  class yn {
10151
10151
  constructor(e, t, o) {
10152
- this.name = e, this.init = jc(t.init, o), this.apply = jc(t.apply, o);
10152
+ this.name = e, this.init = Hc(t.init, o), this.apply = Hc(t.apply, o);
10153
10153
  }
10154
10154
  }
10155
10155
  const Ib = [
@@ -10421,9 +10421,9 @@ const sr = function(r, e, t) {
10421
10421
  }, Db = function() {
10422
10422
  xl = null;
10423
10423
  }, mo = function(r, e, t, o) {
10424
- return t && (Hc(r, e, t, o, -1) || Hc(r, e, t, o, 1));
10424
+ return t && (Vc(r, e, t, o, -1) || Vc(r, e, t, o, 1));
10425
10425
  }, Rb = /^(img|br|input|textarea|hr)$/i;
10426
- function Hc(r, e, t, o, n) {
10426
+ function Vc(r, e, t, o, n) {
10427
10427
  for (; ; ) {
10428
10428
  if (r == t && e == o)
10429
10429
  return !0;
@@ -10514,9 +10514,9 @@ function jb(r, e, t) {
10514
10514
  return { node: o.startContainer, offset: Math.min(Ot(o.startContainer), o.startOffset) };
10515
10515
  }
10516
10516
  }
10517
- const Yt = typeof navigator < "u" ? navigator : null, Vc = typeof document < "u" ? document : null, jr = Yt && Yt.userAgent || "", kl = /Edge\/(\d+)/.exec(jr), Wm = /MSIE \d/.exec(jr), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jr), ht = !!(Wm || Sl || kl), Ir = Wm ? document.documentMode : Sl ? +Sl[1] : kl ? +kl[1] : 0, zt = !ht && /gecko\/(\d+)/i.test(jr);
10517
+ const Yt = typeof navigator < "u" ? navigator : null, Uc = typeof document < "u" ? document : null, jr = Yt && Yt.userAgent || "", kl = /Edge\/(\d+)/.exec(jr), Wm = /MSIE \d/.exec(jr), Sl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jr), ht = !!(Wm || Sl || kl), Ir = Wm ? document.documentMode : Sl ? +Sl[1] : kl ? +kl[1] : 0, zt = !ht && /gecko\/(\d+)/i.test(jr);
10518
10518
  zt && +(/Firefox\/(\d+)/.exec(jr) || [0, 0])[1];
10519
- const Cl = !ht && /Chrome\/(\d+)/.exec(jr), rt = !!Cl, qm = Cl ? +Cl[1] : 0, lt = !ht && !!Yt && /Apple Computer/.test(Yt.vendor), Ho = lt && (/Mobile\/\w+/.test(jr) || !!Yt && Yt.maxTouchPoints > 2), Tt = Ho || (Yt ? /Mac/.test(Yt.platform) : !1), Hb = Yt ? /Win/.test(Yt.platform) : !1, lr = /Android \d/.test(jr), ci = !!Vc && "webkitFontSmoothing" in Vc.documentElement.style, Vb = ci ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
10519
+ const Cl = !ht && /Chrome\/(\d+)/.exec(jr), rt = !!Cl, qm = Cl ? +Cl[1] : 0, lt = !ht && !!Yt && /Apple Computer/.test(Yt.vendor), Ho = lt && (/Mobile\/\w+/.test(jr) || !!Yt && Yt.maxTouchPoints > 2), Tt = Ho || (Yt ? /Mac/.test(Yt.platform) : !1), Hb = Yt ? /Win/.test(Yt.platform) : !1, lr = /Android \d/.test(jr), ci = !!Uc && "webkitFontSmoothing" in Uc.documentElement.style, Vb = ci ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
10520
10520
  function Ub(r) {
10521
10521
  let e = r.defaultView && r.defaultView.visualViewport;
10522
10522
  return e ? {
@@ -10543,7 +10543,7 @@ function Wb(r) {
10543
10543
  bottom: e.top + r.clientHeight * o
10544
10544
  };
10545
10545
  }
10546
- function Uc(r, e, t) {
10546
+ function Wc(r, e, t) {
10547
10547
  let o = r.someProp("scrollThreshold") || 0, n = r.someProp("scrollMargin") || 5, i = r.dom.ownerDocument;
10548
10548
  for (let s = t || r.dom; s; ) {
10549
10549
  if (s.nodeType != 1) {
@@ -10642,12 +10642,12 @@ function Jb(r, e) {
10642
10642
  for (let n = 0; n < t; n++) {
10643
10643
  o.setEnd(r, n + 1), o.setStart(r, n);
10644
10644
  let i = yr(o, 1);
10645
- if (i.top != i.bottom && md(e, i))
10645
+ if (i.top != i.bottom && hd(e, i))
10646
10646
  return { node: r, offset: n + (e.left >= (i.left + i.right) / 2 ? 1 : 0) };
10647
10647
  }
10648
10648
  return { node: r, offset: 0 };
10649
10649
  }
10650
- function md(r, e) {
10650
+ function hd(r, e) {
10651
10651
  return r.left >= e.left - 1 && r.left <= e.right + 1 && r.top >= e.top - 1 && r.top <= e.bottom + 1;
10652
10652
  }
10653
10653
  function Yb(r, e) {
@@ -10684,7 +10684,7 @@ function Ym(r, e, t) {
10684
10684
  let a = s.getClientRects();
10685
10685
  for (let l = 0; l < a.length; l++) {
10686
10686
  let d = a[l];
10687
- if (md(e, d))
10687
+ if (hd(e, d))
10688
10688
  return Ym(s, e, d);
10689
10689
  }
10690
10690
  }
@@ -10699,7 +10699,7 @@ function Zb(r, e) {
10699
10699
  let s = (r.root.elementFromPoint ? r.root : t).elementFromPoint(e.left, e.top), a;
10700
10700
  if (!s || !r.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
10701
10701
  let d = r.dom.getBoundingClientRect();
10702
- if (!md(e, d) || (s = Ym(r.dom, e, d), !s))
10702
+ if (!hd(e, d) || (s = Ym(r.dom, e, d), !s))
10703
10703
  return null;
10704
10704
  }
10705
10705
  if (lt)
@@ -10717,17 +10717,17 @@ function Zb(r, e) {
10717
10717
  let l = r.docView.nearestDesc(s, !0);
10718
10718
  return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
10719
10719
  }
10720
- function Wc(r) {
10720
+ function qc(r) {
10721
10721
  return r.top < r.bottom || r.left < r.right;
10722
10722
  }
10723
10723
  function yr(r, e) {
10724
10724
  let t = r.getClientRects();
10725
10725
  if (t.length) {
10726
10726
  let o = t[e < 0 ? 0 : t.length - 1];
10727
- if (Wc(o))
10727
+ if (qc(o))
10728
10728
  return o;
10729
10729
  }
10730
- return Array.prototype.find.call(t, Wc) || r.getBoundingClientRect();
10730
+ return Array.prototype.find.call(t, qc) || r.getBoundingClientRect();
10731
10731
  }
10732
10732
  const ey = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
10733
10733
  function Xm(r, e, t) {
@@ -10846,11 +10846,11 @@ function oy(r, e, t) {
10846
10846
  return u != null && (a.caretBidiLevel = u), b;
10847
10847
  }) : o.pos == o.start() || o.pos == o.end();
10848
10848
  }
10849
- let qc = null, Kc = null, Gc = !1;
10849
+ let Kc = null, Gc = null, Jc = !1;
10850
10850
  function ny(r, e, t) {
10851
- return qc == e && Kc == t ? Gc : (qc = e, Kc = t, Gc = t == "up" || t == "down" ? ty(r, e, t) : oy(r, e, t));
10851
+ return Kc == e && Gc == t ? Jc : (Kc = e, Gc = t, Jc = t == "up" || t == "down" ? ty(r, e, t) : oy(r, e, t));
10852
10852
  }
10853
- const At = 0, Jc = 1, eo = 2, Xt = 3;
10853
+ const At = 0, Yc = 1, eo = 2, Xt = 3;
10854
10854
  class pi {
10855
10855
  constructor(e, t, o, n) {
10856
10856
  this.parent = e, this.children = t, this.dom = o, this.contentDOM = n, this.dirty = At, o.pmViewDesc = this;
@@ -11166,7 +11166,7 @@ class pi {
11166
11166
  if (o == s ? e <= s && t >= o : e < s && t > o) {
11167
11167
  let a = o + i.border, l = s - i.border;
11168
11168
  if (e >= a && t <= l) {
11169
- this.dirty = e == o || t == s ? eo : Jc, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = Xt : i.markDirty(e - a, t - a);
11169
+ this.dirty = e == o || t == s ? eo : Yc, e == a && t == l && (i.contentLost || i.dom.parentNode != this.contentDOM) ? i.dirty = Xt : i.markDirty(e - a, t - a);
11170
11170
  return;
11171
11171
  } else
11172
11172
  i.dirty = i.dom == i.contentDOM && i.dom.parentNode == this.contentDOM && !i.children.length ? eo : Xt;
@@ -11178,7 +11178,7 @@ class pi {
11178
11178
  markParentsDirty() {
11179
11179
  let e = 1;
11180
11180
  for (let t = this.parent; t; t = t.parent, e++) {
11181
- let o = e == 1 ? eo : Jc;
11181
+ let o = e == 1 ? eo : Yc;
11182
11182
  t.dirty < o && (t.dirty = o);
11183
11183
  }
11184
11184
  }
@@ -11411,7 +11411,7 @@ class Dr extends pi {
11411
11411
  return this.node.isAtom;
11412
11412
  }
11413
11413
  }
11414
- function Yc(r, e, t, o, n) {
11414
+ function Xc(r, e, t, o, n) {
11415
11415
  oh(o, e, r);
11416
11416
  let i = new Dr(void 0, r, e, t, o, o, o, n, 0);
11417
11417
  return i.contentDOM && i.updateChildren(n, 0), i;
@@ -11513,7 +11513,7 @@ function th(r, e, t) {
11513
11513
  let s = e[i], a = s.dom;
11514
11514
  if (a.parentNode == r) {
11515
11515
  for (; a != o; )
11516
- o = Xc(o), n = !0;
11516
+ o = Qc(o), n = !0;
11517
11517
  o = o.nextSibling;
11518
11518
  } else
11519
11519
  n = !0, r.insertBefore(a, o);
@@ -11523,7 +11523,7 @@ function th(r, e, t) {
11523
11523
  }
11524
11524
  }
11525
11525
  for (; o; )
11526
- o = Xc(o), n = !0;
11526
+ o = Qc(o), n = !0;
11527
11527
  n && t.trackWrites == r && (t.trackWrites = null);
11528
11528
  }
11529
11529
  const Sn = function(r) {
@@ -11594,7 +11594,7 @@ function ps(r, e) {
11594
11594
  return !1;
11595
11595
  return !0;
11596
11596
  }
11597
- function Xc(r) {
11597
+ function Qc(r) {
11598
11598
  let e = r.nextSibling;
11599
11599
  return r.parentNode.removeChild(r), e;
11600
11600
  }
@@ -11864,7 +11864,7 @@ function Ml(r, e, t, o, n) {
11864
11864
  }
11865
11865
  return i;
11866
11866
  }
11867
- function hd(r, e = null) {
11867
+ function gd(r, e = null) {
11868
11868
  let t = r.domSelectionRange(), o = r.state.doc;
11869
11869
  if (!t.focusNode)
11870
11870
  return null;
@@ -11898,7 +11898,7 @@ function hd(r, e = null) {
11898
11898
  let c = o.resolve(l);
11899
11899
  if (!d) {
11900
11900
  let p = e == "pointer" || r.state.selection.head < a.pos && !i ? 1 : -1;
11901
- d = gd(r, c, a, p);
11901
+ d = fd(r, c, a, p);
11902
11902
  }
11903
11903
  return d;
11904
11904
  }
@@ -11919,13 +11919,13 @@ function pr(r, e = !1) {
11919
11919
  gy(r);
11920
11920
  else {
11921
11921
  let { anchor: o, head: n } = t, i, s;
11922
- Qc && !(t instanceof J) && (t.$from.parent.inlineContent || (i = Zc(r, t.from)), !t.empty && !t.$from.parent.inlineContent && (s = Zc(r, t.to))), r.docView.setSelection(o, n, r, e), Qc && (i && ep(i), s && ep(s)), t.visible ? r.dom.classList.remove("ProseMirror-hideselection") : (r.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && hy(r));
11922
+ Zc && !(t instanceof J) && (t.$from.parent.inlineContent || (i = ep(r, t.from)), !t.empty && !t.$from.parent.inlineContent && (s = ep(r, t.to))), r.docView.setSelection(o, n, r, e), Zc && (i && tp(i), s && tp(s)), t.visible ? r.dom.classList.remove("ProseMirror-hideselection") : (r.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && hy(r));
11923
11923
  }
11924
11924
  r.domObserver.setCurSelection(), r.domObserver.connectSelection();
11925
11925
  }
11926
11926
  }
11927
- const Qc = lt || rt && qm < 63;
11928
- function Zc(r, e) {
11927
+ const Zc = lt || rt && qm < 63;
11928
+ function ep(r, e) {
11929
11929
  let { node: t, offset: o } = r.docView.domFromPos(e, 0), n = o < t.childNodes.length ? t.childNodes[o] : null, i = o ? t.childNodes[o - 1] : null;
11930
11930
  if (lt && n && n.contentEditable == "false")
11931
11931
  return $a(n);
@@ -11939,7 +11939,7 @@ function Zc(r, e) {
11939
11939
  function $a(r) {
11940
11940
  return r.contentEditable = "true", lt && r.draggable && (r.draggable = !1, r.wasDraggable = !0), r;
11941
11941
  }
11942
- function ep(r) {
11942
+ function tp(r) {
11943
11943
  r.contentEditable = "false", r.wasDraggable && (r.draggable = !0, r.wasDraggable = null);
11944
11944
  }
11945
11945
  function hy(r) {
@@ -11962,17 +11962,17 @@ function gy(r) {
11962
11962
  function ih(r, e) {
11963
11963
  if (e instanceof K) {
11964
11964
  let t = r.docView.descAt(e.from);
11965
- t != r.lastSelectedViewDesc && (tp(r), t && t.selectNode(), r.lastSelectedViewDesc = t);
11965
+ t != r.lastSelectedViewDesc && (rp(r), t && t.selectNode(), r.lastSelectedViewDesc = t);
11966
11966
  } else
11967
- tp(r);
11967
+ rp(r);
11968
11968
  }
11969
- function tp(r) {
11969
+ function rp(r) {
11970
11970
  r.lastSelectedViewDesc && (r.lastSelectedViewDesc.parent && r.lastSelectedViewDesc.deselectNode(), r.lastSelectedViewDesc = void 0);
11971
11971
  }
11972
- function gd(r, e, t, o) {
11972
+ function fd(r, e, t, o) {
11973
11973
  return r.someProp("createSelectionBetween", (n) => n(r, e, t)) || J.between(e, t, o);
11974
11974
  }
11975
- function rp(r) {
11975
+ function op(r) {
11976
11976
  return r.editable && !r.hasFocus() ? !1 : sh(r);
11977
11977
  }
11978
11978
  function sh(r) {
@@ -11996,7 +11996,7 @@ function Tl(r, e) {
11996
11996
  function wr(r, e) {
11997
11997
  return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()), !0;
11998
11998
  }
11999
- function op(r, e, t) {
11999
+ function np(r, e, t) {
12000
12000
  let o = r.state.selection;
12001
12001
  if (o instanceof J)
12002
12002
  if (t.indexOf("s") > -1) {
@@ -12150,7 +12150,7 @@ function Ol(r, e, t) {
12150
12150
  r.state == n && pr(r);
12151
12151
  }, 50);
12152
12152
  }
12153
- function np(r, e) {
12153
+ function ip(r, e) {
12154
12154
  let t = r.state.doc.resolve(e);
12155
12155
  if (!(rt || Hb) && t.parent.inlineContent) {
12156
12156
  let n = r.coordsAtPos(e);
@@ -12167,7 +12167,7 @@ function np(r, e) {
12167
12167
  }
12168
12168
  return getComputedStyle(r.dom).direction == "rtl" ? "rtl" : "ltr";
12169
12169
  }
12170
- function ip(r, e, t) {
12170
+ function sp(r, e, t) {
12171
12171
  let o = r.state.selection;
12172
12172
  if (o instanceof J && !o.empty || t.indexOf("s") > -1 || Tt && t.indexOf("m") > -1)
12173
12173
  return !1;
@@ -12183,7 +12183,7 @@ function ip(r, e, t) {
12183
12183
  }
12184
12184
  return !1;
12185
12185
  }
12186
- function sp(r, e) {
12186
+ function ap(r, e) {
12187
12187
  if (!(r.state.selection instanceof J))
12188
12188
  return !0;
12189
12189
  let { $head: t, $anchor: o, empty: n } = r.state.selection;
@@ -12200,7 +12200,7 @@ function sp(r, e) {
12200
12200
  }
12201
12201
  return !1;
12202
12202
  }
12203
- function ap(r, e, t) {
12203
+ function lp(r, e, t) {
12204
12204
  r.domObserver.stop(), e.contentEditable = t, r.domObserver.start();
12205
12205
  }
12206
12206
  function xy(r) {
@@ -12209,7 +12209,7 @@ function xy(r) {
12209
12209
  let { focusNode: e, focusOffset: t } = r.domSelectionRange();
12210
12210
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
12211
12211
  let o = e.firstChild;
12212
- ap(r, o, "true"), setTimeout(() => ap(r, o, "false"), 20);
12212
+ lp(r, o, "true"), setTimeout(() => lp(r, o, "false"), 20);
12213
12213
  }
12214
12214
  return !1;
12215
12215
  }
@@ -12220,28 +12220,28 @@ function ky(r) {
12220
12220
  function Sy(r, e) {
12221
12221
  let t = e.keyCode, o = ky(e);
12222
12222
  if (t == 8 || Tt && t == 72 && o == "c")
12223
- return sp(r, -1) || To(r, -1);
12223
+ return ap(r, -1) || To(r, -1);
12224
12224
  if (t == 46 && !e.shiftKey || Tt && t == 68 && o == "c")
12225
- return sp(r, 1) || To(r, 1);
12225
+ return ap(r, 1) || To(r, 1);
12226
12226
  if (t == 13 || t == 27)
12227
12227
  return !0;
12228
12228
  if (t == 37 || Tt && t == 66 && o == "c") {
12229
- let n = t == 37 ? np(r, r.state.selection.from) == "ltr" ? -1 : 1 : -1;
12230
- return op(r, n, o) || To(r, n);
12229
+ let n = t == 37 ? ip(r, r.state.selection.from) == "ltr" ? -1 : 1 : -1;
12230
+ return np(r, n, o) || To(r, n);
12231
12231
  } else if (t == 39 || Tt && t == 70 && o == "c") {
12232
- let n = t == 39 ? np(r, r.state.selection.from) == "ltr" ? 1 : -1 : 1;
12233
- return op(r, n, o) || To(r, n);
12232
+ let n = t == 39 ? ip(r, r.state.selection.from) == "ltr" ? 1 : -1 : 1;
12233
+ return np(r, n, o) || To(r, n);
12234
12234
  } else {
12235
12235
  if (t == 38 || Tt && t == 80 && o == "c")
12236
- return ip(r, -1, o) || To(r, -1);
12236
+ return sp(r, -1, o) || To(r, -1);
12237
12237
  if (t == 40 || Tt && t == 78 && o == "c")
12238
- return xy(r) || ip(r, 1, o) || To(r, 1);
12238
+ return xy(r) || sp(r, 1, o) || To(r, 1);
12239
12239
  if (o == (Tt ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
12240
12240
  return !0;
12241
12241
  }
12242
12242
  return !1;
12243
12243
  }
12244
- function fd(r, e) {
12244
+ function bd(r, e) {
12245
12245
  r.someProp("transformCopied", (m) => {
12246
12246
  e = m(e, r);
12247
12247
  });
@@ -12311,14 +12311,14 @@ function lh(r, e, t, o, n) {
12311
12311
  return u.nodeName == "BR" && !u.nextSibling && u.parentNode && !Cy.test(u.parentNode.nodeName) ? { ignore: !0 } : null;
12312
12312
  }
12313
12313
  })), c)
12314
- a = Py(lp(a, +c[1], +c[2]), c[4]);
12314
+ a = Py(dp(a, +c[1], +c[2]), c[4]);
12315
12315
  else if (a = H.maxOpen(Ey(a.content, n), !0), a.openStart || a.openEnd) {
12316
12316
  let p = 0, u = 0;
12317
12317
  for (let m = a.content.firstChild; p < a.openStart && !m.type.spec.isolating; p++, m = m.firstChild)
12318
12318
  ;
12319
12319
  for (let m = a.content.lastChild; u < a.openEnd && !m.type.spec.isolating; u++, m = m.lastChild)
12320
12320
  ;
12321
- a = lp(a, p, u);
12321
+ a = dp(a, p, u);
12322
12322
  }
12323
12323
  return r.someProp("transformPasted", (p) => {
12324
12324
  a = p(a, r);
@@ -12372,7 +12372,7 @@ function Pl(r, e, t, o, n, i) {
12372
12372
  let s = e < 0 ? r.firstChild : r.lastChild, a = s.content;
12373
12373
  return r.childCount > 1 && (i = 0), n < o - 1 && (a = Pl(a, e, t, o, n + 1, i)), n >= t && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= n).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(N.empty, !0))), r.replaceChild(e < 0 ? 0 : r.childCount - 1, s.copy(a));
12374
12374
  }
12375
- function lp(r, e, t) {
12375
+ function dp(r, e, t) {
12376
12376
  return e < r.openStart && (r = new H(Pl(r.content, -1, e, r.openStart, 0, r.openEnd), e, r.openEnd)), t < r.openEnd && (r = new H(Pl(r.content, 1, t, r.openEnd, 0, 0), r.openStart, t)), r;
12377
12377
  }
12378
12378
  const uh = {
@@ -12386,9 +12386,9 @@ const uh = {
12386
12386
  td: ["table", "tbody", "tr"],
12387
12387
  th: ["table", "tbody", "tr"]
12388
12388
  };
12389
- let dp = null;
12389
+ let cp = null;
12390
12390
  function mh() {
12391
- return dp || (dp = document.implementation.createHTMLDocument("title"));
12391
+ return cp || (cp = document.implementation.createHTMLDocument("title"));
12392
12392
  }
12393
12393
  let za = null;
12394
12394
  function My(r) {
@@ -12439,7 +12439,7 @@ function Ly(r) {
12439
12439
  for (let e in dt) {
12440
12440
  let t = dt[e];
12441
12441
  r.dom.addEventListener(e, r.input.eventHandlers[e] = (o) => {
12442
- Iy(r, o) && !bd(r, o) && (r.editable || !(o.type in ct)) && t(r, o);
12442
+ Iy(r, o) && !yd(r, o) && (r.editable || !(o.type in ct)) && t(r, o);
12443
12443
  }, Ay[e] ? { passive: !0 } : void 0);
12444
12444
  }
12445
12445
  lt && r.dom.addEventListener("input", () => null), Al(r);
@@ -12456,10 +12456,10 @@ function Ny(r) {
12456
12456
  function Al(r) {
12457
12457
  r.someProp("handleDOMEvents", (e) => {
12458
12458
  for (let t in e)
12459
- r.input.eventHandlers[t] || r.dom.addEventListener(t, r.input.eventHandlers[t] = (o) => bd(r, o));
12459
+ r.input.eventHandlers[t] || r.dom.addEventListener(t, r.input.eventHandlers[t] = (o) => yd(r, o));
12460
12460
  });
12461
12461
  }
12462
- function bd(r, e) {
12462
+ function yd(r, e) {
12463
12463
  return r.someProp("handleDOMEvents", (t) => {
12464
12464
  let o = t[e.type];
12465
12465
  return o ? o(r, e) || e.defaultPrevented : !1;
@@ -12476,7 +12476,7 @@ function Iy(r, e) {
12476
12476
  return !0;
12477
12477
  }
12478
12478
  function Dy(r, e) {
12479
- !bd(r, e) && dt[e.type] && (r.editable || !(e.type in ct)) && dt[e.type](r, e);
12479
+ !yd(r, e) && dt[e.type] && (r.editable || !(e.type in ct)) && dt[e.type](r, e);
12480
12480
  }
12481
12481
  ct.keydown = (r, e) => {
12482
12482
  let t = e;
@@ -12512,7 +12512,7 @@ function Ry(r, e) {
12512
12512
  let t = e.x - r.clientX, o = e.y - r.clientY;
12513
12513
  return t * t + o * o < 100;
12514
12514
  }
12515
- function yd(r, e, t, o, n) {
12515
+ function wd(r, e, t, o, n) {
12516
12516
  if (o == -1)
12517
12517
  return !1;
12518
12518
  let i = r.state.doc.resolve(o);
@@ -12549,13 +12549,13 @@ function zy(r, e) {
12549
12549
  return n != null ? (_o(r, K.create(r.state.doc, n)), !0) : !1;
12550
12550
  }
12551
12551
  function _y(r, e, t, o, n) {
12552
- return yd(r, "handleClickOn", e, t, o) || r.someProp("handleClick", (i) => i(r, e, o)) || (n ? zy(r, t) : $y(r, t));
12552
+ return wd(r, "handleClickOn", e, t, o) || r.someProp("handleClick", (i) => i(r, e, o)) || (n ? zy(r, t) : $y(r, t));
12553
12553
  }
12554
12554
  function Fy(r, e, t, o) {
12555
- return yd(r, "handleDoubleClickOn", e, t, o) || r.someProp("handleDoubleClick", (n) => n(r, e, o));
12555
+ return wd(r, "handleDoubleClickOn", e, t, o) || r.someProp("handleDoubleClick", (n) => n(r, e, o));
12556
12556
  }
12557
12557
  function jy(r, e, t, o) {
12558
- return yd(r, "handleTripleClickOn", e, t, o) || r.someProp("handleTripleClick", (n) => n(r, e, o)) || Hy(r, t, o);
12558
+ return wd(r, "handleTripleClickOn", e, t, o) || r.someProp("handleTripleClick", (n) => n(r, e, o)) || Hy(r, t, o);
12559
12559
  }
12560
12560
  function Hy(r, e, t) {
12561
12561
  if (t.button != 0)
@@ -12575,14 +12575,14 @@ function Hy(r, e, t) {
12575
12575
  return !0;
12576
12576
  }
12577
12577
  }
12578
- function wd(r) {
12578
+ function vd(r) {
12579
12579
  return ms(r);
12580
12580
  }
12581
12581
  const hh = Tt ? "metaKey" : "ctrlKey";
12582
12582
  dt.mousedown = (r, e) => {
12583
12583
  let t = e;
12584
12584
  r.input.shiftKey = t.shiftKey;
12585
- let o = wd(r), n = Date.now(), i = "singleClick";
12585
+ let o = vd(r), n = Date.now(), i = "singleClick";
12586
12586
  n - r.input.lastClick.time < 500 && Ry(t, r.input.lastClick) && !t[hh] && r.input.lastClick.button == t.button && (r.input.lastClick.type == "singleClick" ? i = "doubleClick" : r.input.lastClick.type == "doubleClick" && (i = "tripleClick")), r.input.lastClick = { time: n, x: t.clientX, y: t.clientY, type: i, button: t.button };
12587
12587
  let s = r.posAtCoords(da(t));
12588
12588
  s && (i == "singleClick" ? (r.input.mouseDown && r.input.mouseDown.done(), r.input.mouseDown = new Vy(r, s, t, !!o)) : (i == "doubleClick" ? Fy : jy)(r, s.pos, s.inside, t) ? t.preventDefault() : Br(r, "pointer"));
@@ -12634,12 +12634,12 @@ class Vy {
12634
12634
  }
12635
12635
  }
12636
12636
  dt.touchstart = (r) => {
12637
- r.input.lastTouch = Date.now(), wd(r), Br(r, "pointer");
12637
+ r.input.lastTouch = Date.now(), vd(r), Br(r, "pointer");
12638
12638
  };
12639
12639
  dt.touchmove = (r) => {
12640
12640
  r.input.lastTouch = Date.now(), Br(r, "pointer");
12641
12641
  };
12642
- dt.contextmenu = (r) => wd(r);
12642
+ dt.contextmenu = (r) => vd(r);
12643
12643
  function gh(r, e) {
12644
12644
  return r.composing ? !0 : lt && Math.abs(e.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
12645
12645
  }
@@ -12704,7 +12704,7 @@ function qy() {
12704
12704
  function ms(r, e = !1) {
12705
12705
  if (!(lr && r.domObserver.flushingSoon >= 0)) {
12706
12706
  if (r.domObserver.forceFlush(), bh(r), e || r.docView && r.docView.dirty) {
12707
- let t = hd(r), o = r.state.selection;
12707
+ let t = gd(r), o = r.state.selection;
12708
12708
  return t && !t.eq(o) ? r.dispatch(r.state.tr.setSelection(t)) : (r.markCursor || e) && !o.$from.node(o.$from.sharedDepth(o.to)).inlineContent ? r.dispatch(r.state.tr.deleteSelection()) : r.updateState(r.state), !0;
12709
12709
  }
12710
12710
  return !1;
@@ -12725,7 +12725,7 @@ dt.copy = ct.cut = (r, e) => {
12725
12725
  let t = e, o = r.state.selection, n = t.type == "cut";
12726
12726
  if (o.empty)
12727
12727
  return;
12728
- let i = Hn ? null : t.clipboardData, s = o.content(), { dom: a, text: l } = fd(r, s);
12728
+ let i = Hn ? null : t.clipboardData, s = o.content(), { dom: a, text: l } = bd(r, s);
12729
12729
  i ? (t.preventDefault(), i.clearData(), i.setData("text/html", a.innerHTML), i.setData("text/plain", l)) : Ky(r, a), n && r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
12730
12730
  };
12731
12731
  function Gy(r) {
@@ -12787,7 +12787,7 @@ dt.dragstart = (r, e) => {
12787
12787
  p && p.node.type.spec.draggable && p != r.docView && (s = K.create(r.state.doc, p.posBefore));
12788
12788
  }
12789
12789
  }
12790
- let a = (s || r.state.selection).content(), { dom: l, text: d, slice: c } = fd(r, a);
12790
+ let a = (s || r.state.selection).content(), { dom: l, text: d, slice: c } = bd(r, a);
12791
12791
  (!t.dataTransfer.files.length || !rt || qm > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Hn ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Hn || t.dataTransfer.setData("text/plain", d), r.dragging = new wh(c, vh(r, t), s);
12792
12792
  };
12793
12793
  dt.dragend = (r) => {
@@ -12831,7 +12831,7 @@ ct.drop = (r, e) => {
12831
12831
  d.setSelection(new K(m));
12832
12832
  else {
12833
12833
  let h = d.mapping.map(l);
12834
- d.mapping.maps[d.mapping.maps.length - 1].forEach((f, b, w, E) => h = E), d.setSelection(gd(r, m, d.doc.resolve(h)));
12834
+ d.mapping.maps[d.mapping.maps.length - 1].forEach((f, b, w, E) => h = E), d.setSelection(fd(r, m, d.doc.resolve(h)));
12835
12835
  }
12836
12836
  r.focus(), r.dispatch(d.setMeta("uiEvent", "drop"));
12837
12837
  };
@@ -12907,7 +12907,7 @@ class Rr {
12907
12907
  destroy() {
12908
12908
  }
12909
12909
  }
12910
- class vd {
12910
+ class xd {
12911
12911
  constructor(e, t) {
12912
12912
  this.attrs = e, this.spec = t || io;
12913
12913
  }
@@ -12923,7 +12923,7 @@ class vd {
12923
12923
  return n == t.from && !(i = e.child(o)).isText && n + i.nodeSize == t.to;
12924
12924
  }
12925
12925
  eq(e) {
12926
- return this == e || e instanceof vd && Un(this.attrs, e.attrs) && Un(this.spec, e.spec);
12926
+ return this == e || e instanceof xd && Un(this.attrs, e.attrs) && Un(this.spec, e.spec);
12927
12927
  }
12928
12928
  destroy() {
12929
12929
  }
@@ -12977,7 +12977,7 @@ class Pt {
12977
12977
  node, will receive the given attributes.
12978
12978
  */
12979
12979
  static node(e, t, o, n) {
12980
- return new Pt(e, t, new vd(o, n));
12980
+ return new Pt(e, t, new xd(o, n));
12981
12981
  }
12982
12982
  /**
12983
12983
  The spec provided when creating this decoration. Can be useful
@@ -13152,7 +13152,7 @@ class $e {
13152
13152
  @internal
13153
13153
  */
13154
13154
  locals(e) {
13155
- return xd(this.localsInner(e));
13155
+ return kd(this.localsInner(e));
13156
13156
  }
13157
13157
  /**
13158
13158
  @internal
@@ -13172,7 +13172,7 @@ class $e {
13172
13172
  }
13173
13173
  }
13174
13174
  $e.empty = new $e([], []);
13175
- $e.removeOverlap = xd;
13175
+ $e.removeOverlap = kd;
13176
13176
  const Ze = $e.empty;
13177
13177
  class kr {
13178
13178
  constructor(e) {
@@ -13213,7 +13213,7 @@ class kr {
13213
13213
  t.push(i[s]);
13214
13214
  }
13215
13215
  }
13216
- return t ? xd(o ? t : t.sort(so)) : Bo;
13216
+ return t ? kd(o ? t : t.sort(so)) : Bo;
13217
13217
  }
13218
13218
  // Create a group for the given array of decoration sets, or return
13219
13219
  // a single set when possible.
@@ -13336,7 +13336,7 @@ function gs(r, e, t, o) {
13336
13336
  function so(r, e) {
13337
13337
  return r.from - e.from || r.to - e.to;
13338
13338
  }
13339
- function xd(r) {
13339
+ function kd(r) {
13340
13340
  let e = r;
13341
13341
  for (let t = 0; t < e.length - 1; t++) {
13342
13342
  let o = e[t];
@@ -13344,17 +13344,17 @@ function xd(r) {
13344
13344
  for (let n = t + 1; n < e.length; n++) {
13345
13345
  let i = e[n];
13346
13346
  if (i.from == o.from) {
13347
- i.to != o.to && (e == r && (e = r.slice()), e[n] = i.copy(i.from, o.to), cp(e, n + 1, i.copy(o.to, i.to)));
13347
+ i.to != o.to && (e == r && (e = r.slice()), e[n] = i.copy(i.from, o.to), pp(e, n + 1, i.copy(o.to, i.to)));
13348
13348
  continue;
13349
13349
  } else {
13350
- i.from < o.to && (e == r && (e = r.slice()), e[t] = o.copy(o.from, i.from), cp(e, n, o.copy(i.from, o.to)));
13350
+ i.from < o.to && (e == r && (e = r.slice()), e[t] = o.copy(o.from, i.from), pp(e, n, o.copy(i.from, o.to)));
13351
13351
  break;
13352
13352
  }
13353
13353
  }
13354
13354
  }
13355
13355
  return e;
13356
13356
  }
13357
- function cp(r, e, t) {
13357
+ function pp(r, e, t) {
13358
13358
  for (; e < r.length && so(t, r[e]) > 0; )
13359
13359
  e++;
13360
13360
  r.splice(e, 0, t);
@@ -13431,7 +13431,7 @@ class rw {
13431
13431
  this.suppressingSelectionUpdates = !0, setTimeout(() => this.suppressingSelectionUpdates = !1, 50);
13432
13432
  }
13433
13433
  onSelectionChange() {
13434
- if (rp(this.view)) {
13434
+ if (op(this.view)) {
13435
13435
  if (this.suppressingSelectionUpdates)
13436
13436
  return pr(this.view);
13437
13437
  if (ht && Ir <= 11 && !this.view.state.selection.empty) {
@@ -13475,7 +13475,7 @@ class rw {
13475
13475
  return;
13476
13476
  let t = this.pendingRecords();
13477
13477
  t.length && (this.queue = []);
13478
- let o = e.domSelectionRange(), n = !this.suppressingSelectionUpdates && !this.currentSelection.eq(o) && rp(e) && !this.ignoreSelectionChange(o), i = -1, s = -1, a = !1, l = [];
13478
+ let o = e.domSelectionRange(), n = !this.suppressingSelectionUpdates && !this.currentSelection.eq(o) && op(e) && !this.ignoreSelectionChange(o), i = -1, s = -1, a = !1, l = [];
13479
13479
  if (e.editable)
13480
13480
  for (let c = 0; c < t.length; c++) {
13481
13481
  let p = this.registerMutation(t[c], l);
@@ -13495,7 +13495,7 @@ class rw {
13495
13495
  }
13496
13496
  }
13497
13497
  let d = null;
13498
- i < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && aa(o) && (d = hd(e)) && d.eq(Q.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pr(e), this.currentSelection.set(o), e.scrollToSelection()) : (i > -1 || n) && (i > -1 && (e.docView.markDirty(i, s), ow(e)), this.handleDOMChange(i, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(o) || pr(e), this.currentSelection.set(o));
13498
+ i < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && aa(o) && (d = gd(e)) && d.eq(Q.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pr(e), this.currentSelection.set(o), e.scrollToSelection()) : (i > -1 || n) && (i > -1 && (e.docView.markDirty(i, s), ow(e)), this.handleDOMChange(i, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(o) || pr(e), this.currentSelection.set(o));
13499
13499
  }
13500
13500
  registerMutation(e, t) {
13501
13501
  if (t.indexOf(e.target) > -1)
@@ -13530,15 +13530,15 @@ class rw {
13530
13530
  });
13531
13531
  }
13532
13532
  }
13533
- let pp = /* @__PURE__ */ new WeakMap(), up = !1;
13533
+ let up = /* @__PURE__ */ new WeakMap(), mp = !1;
13534
13534
  function ow(r) {
13535
- if (!pp.has(r) && (pp.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
13536
- if (r.requiresGeckoHackNode = zt, up)
13535
+ if (!up.has(r) && (up.set(r, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace) !== -1)) {
13536
+ if (r.requiresGeckoHackNode = zt, mp)
13537
13537
  return;
13538
- console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), up = !0;
13538
+ console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), mp = !0;
13539
13539
  }
13540
13540
  }
13541
- function mp(r, e) {
13541
+ function hp(r, e) {
13542
13542
  let t = e.startContainer, o = e.startOffset, n = e.endContainer, i = e.endOffset, s = r.domAtPos(r.state.selection.anchor);
13543
13543
  return mo(s.node, s.offset, n, i) && ([t, o, n, i] = [n, i, t, o]), { anchorNode: t, anchorOffset: o, focusNode: n, focusOffset: i };
13544
13544
  }
@@ -13546,13 +13546,13 @@ function nw(r, e) {
13546
13546
  if (e.getComposedRanges) {
13547
13547
  let n = e.getComposedRanges(r.root)[0];
13548
13548
  if (n)
13549
- return mp(r, n);
13549
+ return hp(r, n);
13550
13550
  }
13551
13551
  let t;
13552
13552
  function o(n) {
13553
13553
  n.preventDefault(), n.stopImmediatePropagation(), t = n.getTargetRanges()[0];
13554
13554
  }
13555
- return r.dom.addEventListener("beforeinput", o, !0), document.execCommand("indent"), r.dom.removeEventListener("beforeinput", o, !0), t ? mp(r, t) : null;
13555
+ return r.dom.addEventListener("beforeinput", o, !0), document.execCommand("indent"), r.dom.removeEventListener("beforeinput", o, !0), t ? hp(r, t) : null;
13556
13556
  }
13557
13557
  function iw(r, e) {
13558
13558
  for (let t = e.parentNode; t && t != r.dom; t = t.parentNode) {
@@ -13609,7 +13609,7 @@ const lw = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
13609
13609
  function dw(r, e, t, o, n) {
13610
13610
  let i = r.input.compositionPendingChanges || (r.composing ? r.input.compositionID : 0);
13611
13611
  if (r.input.compositionPendingChanges = 0, e < 0) {
13612
- let _ = r.input.lastSelectionTime > Date.now() - 50 ? r.input.lastSelectionOrigin : null, P = hd(r, _);
13612
+ let _ = r.input.lastSelectionTime > Date.now() - 50 ? r.input.lastSelectionOrigin : null, P = gd(r, _);
13613
13613
  if (P && !r.state.selection.eq(P)) {
13614
13614
  if (rt && lr && r.input.lastKeyCode === 13 && Date.now() - 100 < r.input.lastKeyCodeTime && r.someProp("handleKeyDown", (I) => I(r, Xr(13, "Enter"))))
13615
13615
  return;
@@ -13632,7 +13632,7 @@ function dw(r, e, t, o, n) {
13632
13632
  h = { start: l.from, endA: l.to, endB: l.to };
13633
13633
  else {
13634
13634
  if (d.sel) {
13635
- let _ = hp(r, r.state.doc, d.sel);
13635
+ let _ = gp(r, r.state.doc, d.sel);
13636
13636
  if (_ && !_.eq(r.state.selection)) {
13637
13637
  let P = r.state.tr.setSelection(_);
13638
13638
  i && P.setMeta("composition", i), r.dispatch(P);
@@ -13672,13 +13672,13 @@ function dw(r, e, t, o, n) {
13672
13672
  }
13673
13673
  }
13674
13674
  if (k || (k = r.state.tr.replace(y, M, d.doc.slice(h.start - d.from, h.endB - d.from))), d.sel) {
13675
- let _ = hp(r, k.doc, d.sel);
13675
+ let _ = gp(r, k.doc, d.sel);
13676
13676
  _ && !(rt && r.composing && _.empty && (h.start != h.endB || r.input.lastChromeDelete < Date.now() - 100) && (_.head == y || _.head == k.mapping.map(M) - 1) || ht && _.empty && _.head == y) && k.setSelection(_);
13677
13677
  }
13678
13678
  A && k.ensureMarks(A), i && k.setMeta("composition", i), r.dispatch(k.scrollIntoView());
13679
13679
  }
13680
- function hp(r, e, t) {
13681
- return Math.max(t.anchor, t.head) > e.content.size ? null : gd(r, e.resolve(t.anchor), e.resolve(t.head));
13680
+ function gp(r, e, t) {
13681
+ return Math.max(t.anchor, t.head) > e.content.size ? null : fd(r, e.resolve(t.anchor), e.resolve(t.head));
13682
13682
  }
13683
13683
  function cw(r, e) {
13684
13684
  let t = r.firstChild.marks, o = e.firstChild.marks, n = t, i = o, s, a, l;
@@ -13737,14 +13737,14 @@ function uw(r, e, t, o, n) {
13737
13737
  }
13738
13738
  if (s < i && r.size < e.size) {
13739
13739
  let l = o <= i && o >= s ? i - o : 0;
13740
- i -= l, i && i < e.size && gp(e.textBetween(i - 1, i + 1)) && (i += l ? 1 : -1), a = i + (a - s), s = i;
13740
+ i -= l, i && i < e.size && fp(e.textBetween(i - 1, i + 1)) && (i += l ? 1 : -1), a = i + (a - s), s = i;
13741
13741
  } else if (a < i) {
13742
13742
  let l = o <= i && o >= a ? i - o : 0;
13743
- i -= l, i && i < r.size && gp(r.textBetween(i - 1, i + 1)) && (i += l ? 1 : -1), s = i + (s - a), a = i;
13743
+ i -= l, i && i < r.size && fp(r.textBetween(i - 1, i + 1)) && (i += l ? 1 : -1), s = i + (s - a), a = i;
13744
13744
  }
13745
13745
  return { start: i, endA: s, endB: a };
13746
13746
  }
13747
- function gp(r) {
13747
+ function fp(r) {
13748
13748
  if (r.length != 2)
13749
13749
  return !1;
13750
13750
  let e = r.charCodeAt(0), t = r.charCodeAt(1);
@@ -13759,7 +13759,7 @@ class mw {
13759
13759
  added to the document.
13760
13760
  */
13761
13761
  constructor(e, t) {
13762
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new By(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(vp), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = yp(this), bp(this), this.nodeViews = wp(this), this.docView = Yc(this.state.doc, fp(this), _a(this), this.dom, this), this.domObserver = new rw(this, (o, n, i, s) => dw(this, o, n, i, s)), this.domObserver.start(), Ly(this), this.updatePluginViews();
13762
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new By(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(xp), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = wp(this), yp(this), this.nodeViews = vp(this), this.docView = Xc(this.state.doc, bp(this), _a(this), this.dom, this), this.domObserver = new rw(this, (o, n, i, s) => dw(this, o, n, i, s)), this.domObserver.start(), Ly(this), this.updatePluginViews();
13763
13763
  }
13764
13764
  /**
13765
13765
  Holds `true` when a
@@ -13789,7 +13789,7 @@ class mw {
13789
13789
  update(e) {
13790
13790
  e.handleDOMEvents != this._props.handleDOMEvents && Al(this);
13791
13791
  let t = this._props;
13792
- this._props = e, e.plugins && (e.plugins.forEach(vp), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
13792
+ this._props = e, e.plugins && (e.plugins.forEach(xp), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
13793
13793
  }
13794
13794
  /**
13795
13795
  Update the view by updating existing props object with the object
@@ -13818,11 +13818,11 @@ class mw {
13818
13818
  e.storedMarks && this.composing && (bh(this), s = !0), this.state = e;
13819
13819
  let a = n.plugins != e.plugins || this._props.plugins != t.plugins;
13820
13820
  if (a || this._props.plugins != t.plugins || this._props.nodeViews != t.nodeViews) {
13821
- let m = wp(this);
13821
+ let m = vp(this);
13822
13822
  gw(m, this.nodeViews) && (this.nodeViews = m, i = !0);
13823
13823
  }
13824
- (a || t.handleDOMEvents != this._props.handleDOMEvents) && Al(this), this.editable = yp(this), bp(this);
13825
- let l = _a(this), d = fp(this), c = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", p = i || !this.docView.matchesNode(e.doc, d, l);
13824
+ (a || t.handleDOMEvents != this._props.handleDOMEvents) && Al(this), this.editable = wp(this), yp(this);
13825
+ let l = _a(this), d = bp(this), c = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", p = i || !this.docView.matchesNode(e.doc, d, l);
13826
13826
  (p || !e.selection.eq(n.selection)) && (s = !0);
13827
13827
  let u = c == "preserve" && s && this.dom.style.overflowAnchor == null && qb(this);
13828
13828
  if (s) {
@@ -13830,7 +13830,7 @@ class mw {
13830
13830
  let m = p && (ht || rt) && !this.composing && !n.selection.empty && !e.selection.empty && hw(n.selection, e.selection);
13831
13831
  if (p) {
13832
13832
  let h = rt ? this.trackWrites = this.domSelectionRange().focusNode : null;
13833
- this.composing && (this.input.compositionNode = Wy(this)), (i || !this.docView.update(e.doc, d, l, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = Yc(e.doc, d, l, this.dom, this)), h && !this.trackWrites && (m = !0);
13833
+ this.composing && (this.input.compositionNode = Wy(this)), (i || !this.docView.update(e.doc, d, l, this)) && (this.docView.updateOuterDeco(d), this.docView.destroy(), this.docView = Xc(e.doc, d, l, this.dom, this)), h && !this.trackWrites && (m = !0);
13834
13834
  }
13835
13835
  m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && fy(this)) ? pr(this, m) : (ih(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
13836
13836
  }
@@ -13844,9 +13844,9 @@ class mw {
13844
13844
  if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
13845
13845
  if (!this.someProp("handleScrollToSelection", (t) => t(this))) if (this.state.selection instanceof K) {
13846
13846
  let t = this.docView.domAfterPos(this.state.selection.from);
13847
- t.nodeType == 1 && Uc(this, t.getBoundingClientRect(), e);
13847
+ t.nodeType == 1 && Wc(this, t.getBoundingClientRect(), e);
13848
13848
  } else
13849
- Uc(this, this.coordsAtPos(this.state.selection.head, 1), e);
13849
+ Wc(this, this.coordsAtPos(this.state.selection.head, 1), e);
13850
13850
  }
13851
13851
  }
13852
13852
  destroyPluginViews() {
@@ -14045,7 +14045,7 @@ class mw {
14045
14045
  [`transformCopied`](https://prosemirror.net/docs/ref/#view.EditorProps.transformCopied)).
14046
14046
  */
14047
14047
  serializeForClipboard(e) {
14048
- return fd(this, e);
14048
+ return bd(this, e);
14049
14049
  }
14050
14050
  /**
14051
14051
  Removes the editor from the DOM and destroys all [node
@@ -14095,7 +14095,7 @@ class mw {
14095
14095
  return this.root.getSelection();
14096
14096
  }
14097
14097
  }
14098
- function fp(r) {
14098
+ function bp(r) {
14099
14099
  let e = /* @__PURE__ */ Object.create(null);
14100
14100
  return e.class = "ProseMirror", e.contenteditable = String(r.editable), r.someProp("attributes", (t) => {
14101
14101
  if (typeof t == "function" && (t = t(r.state)), t)
@@ -14103,21 +14103,21 @@ function fp(r) {
14103
14103
  o == "class" ? e.class += " " + t[o] : o == "style" ? e.style = (e.style ? e.style + ";" : "") + t[o] : !e[o] && o != "contenteditable" && o != "nodeName" && (e[o] = String(t[o]));
14104
14104
  }), e.translate || (e.translate = "no"), [Pt.node(0, r.state.doc.content.size, e)];
14105
14105
  }
14106
- function bp(r) {
14106
+ function yp(r) {
14107
14107
  if (r.markCursor) {
14108
14108
  let e = document.createElement("img");
14109
14109
  e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), r.cursorWrapper = { dom: e, deco: Pt.widget(r.state.selection.from, e, { raw: !0, marks: r.markCursor }) };
14110
14110
  } else
14111
14111
  r.cursorWrapper = null;
14112
14112
  }
14113
- function yp(r) {
14113
+ function wp(r) {
14114
14114
  return !r.someProp("editable", (e) => e(r.state) === !1);
14115
14115
  }
14116
14116
  function hw(r, e) {
14117
14117
  let t = Math.min(r.$anchor.sharedDepth(r.head), e.$anchor.sharedDepth(e.head));
14118
14118
  return r.$anchor.start(t) != e.$anchor.start(t);
14119
14119
  }
14120
- function wp(r) {
14120
+ function vp(r) {
14121
14121
  let e = /* @__PURE__ */ Object.create(null);
14122
14122
  function t(o) {
14123
14123
  for (let n in o)
@@ -14136,7 +14136,7 @@ function gw(r, e) {
14136
14136
  o++;
14137
14137
  return t != o;
14138
14138
  }
14139
- function vp(r) {
14139
+ function xp(r) {
14140
14140
  if (r.spec.state || r.spec.filterTransaction || r.spec.appendTransaction)
14141
14141
  throw new RangeError("Plugins passed directly to the view must not have a state component");
14142
14142
  }
@@ -14284,7 +14284,7 @@ function Ch(r) {
14284
14284
  return !1;
14285
14285
  };
14286
14286
  }
14287
- const kd = (r, e) => r.selection.empty ? !1 : (e && e(r.tr.deleteSelection().scrollIntoView()), !0);
14287
+ const Sd = (r, e) => r.selection.empty ? !1 : (e && e(r.tr.deleteSelection().scrollIntoView()), !0);
14288
14288
  function Eh(r, e) {
14289
14289
  let { $cursor: t } = r.selection;
14290
14290
  return !t || (e ? !e.endOfTextblock("backward", r) : t.parentOffset > 0) ? null : t;
@@ -14293,7 +14293,7 @@ const Mh = (r, e, t) => {
14293
14293
  let o = Eh(r, t);
14294
14294
  if (!o)
14295
14295
  return !1;
14296
- let n = Sd(o);
14296
+ let n = Cd(o);
14297
14297
  if (!n) {
14298
14298
  let s = o.blockRange(), a = s && Qo(s);
14299
14299
  return a == null ? !1 : (e && e(r.tr.lift(s, a).scrollIntoView()), !0);
@@ -14319,13 +14319,13 @@ const Mh = (r, e, t) => {
14319
14319
  let o = Eh(r, t);
14320
14320
  if (!o)
14321
14321
  return !1;
14322
- let n = Sd(o);
14322
+ let n = Cd(o);
14323
14323
  return n ? Th(r, n, e) : !1;
14324
14324
  }, Ew = (r, e, t) => {
14325
14325
  let o = Ph(r, t);
14326
14326
  if (!o)
14327
14327
  return !1;
14328
- let n = Cd(o);
14328
+ let n = Ed(o);
14329
14329
  return n ? Th(r, n, e) : !1;
14330
14330
  };
14331
14331
  function Th(r, e, t) {
@@ -14372,12 +14372,12 @@ const Oh = (r, e, t) => {
14372
14372
  if (o.parent.isTextblock) {
14373
14373
  if (t ? !t.endOfTextblock("backward", r) : o.parentOffset > 0)
14374
14374
  return !1;
14375
- i = Sd(o);
14375
+ i = Cd(o);
14376
14376
  }
14377
14377
  let s = i && i.nodeBefore;
14378
14378
  return !s || !K.isSelectable(s) ? !1 : (e && e(r.tr.setSelection(K.create(r.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
14379
14379
  };
14380
- function Sd(r) {
14380
+ function Cd(r) {
14381
14381
  if (!r.parent.type.spec.isolating)
14382
14382
  for (let e = r.depth - 1; e >= 0; e--) {
14383
14383
  if (r.index(e) > 0)
@@ -14395,7 +14395,7 @@ const Ah = (r, e, t) => {
14395
14395
  let o = Ph(r, t);
14396
14396
  if (!o)
14397
14397
  return !1;
14398
- let n = Cd(o);
14398
+ let n = Ed(o);
14399
14399
  if (!n)
14400
14400
  return !1;
14401
14401
  let i = n.nodeAfter;
@@ -14419,12 +14419,12 @@ const Ah = (r, e, t) => {
14419
14419
  if (o.parent.isTextblock) {
14420
14420
  if (t ? !t.endOfTextblock("forward", r) : o.parentOffset < o.parent.content.size)
14421
14421
  return !1;
14422
- i = Cd(o);
14422
+ i = Ed(o);
14423
14423
  }
14424
14424
  let s = i && i.nodeAfter;
14425
14425
  return !s || !K.isSelectable(s) ? !1 : (e && e(r.tr.setSelection(K.create(r.doc, i.pos)).scrollIntoView()), !0);
14426
14426
  };
14427
- function Cd(r) {
14427
+ function Ed(r) {
14428
14428
  if (!r.parent.type.spec.isolating)
14429
14429
  for (let e = r.depth - 1; e >= 0; e--) {
14430
14430
  let t = r.node(e);
@@ -14465,7 +14465,7 @@ const Mw = (r, e) => {
14465
14465
  return !t.parent.type.spec.code || !t.sameParent(o) ? !1 : (e && e(r.tr.insertText(`
14466
14466
  `).scrollIntoView()), !0);
14467
14467
  };
14468
- function Ed(r) {
14468
+ function Md(r) {
14469
14469
  for (let e = 0; e < r.edgeCount; e++) {
14470
14470
  let { type: t } = r.edge(e);
14471
14471
  if (t.isTextblock && !t.hasRequiredAttrs())
@@ -14477,7 +14477,7 @@ const Pw = (r, e) => {
14477
14477
  let { $head: t, $anchor: o } = r.selection;
14478
14478
  if (!t.parent.type.spec.code || !t.sameParent(o))
14479
14479
  return !1;
14480
- let n = t.node(-1), i = t.indexAfter(-1), s = Ed(n.contentMatchAt(i));
14480
+ let n = t.node(-1), i = t.indexAfter(-1), s = Md(n.contentMatchAt(i));
14481
14481
  if (!s || !n.canReplaceWith(i, i, s))
14482
14482
  return !1;
14483
14483
  if (e) {
@@ -14489,7 +14489,7 @@ const Pw = (r, e) => {
14489
14489
  let t = r.selection, { $from: o, $to: n } = t;
14490
14490
  if (t instanceof vt || o.parent.inlineContent || n.parent.inlineContent)
14491
14491
  return !1;
14492
- let i = Ed(n.parent.contentMatchAt(n.indexAfter()));
14492
+ let i = Md(n.parent.contentMatchAt(n.indexAfter()));
14493
14493
  if (!i || !i.isTextblock)
14494
14494
  return !1;
14495
14495
  if (e) {
@@ -14519,7 +14519,7 @@ function Aw(r) {
14519
14519
  let i = [], s, a, l = !1, d = !1;
14520
14520
  for (let m = o.depth; ; m--)
14521
14521
  if (o.node(m).isBlock) {
14522
- l = o.end(m) == o.pos + (o.depth - m), d = o.start(m) == o.pos - (o.depth - m), a = Ed(o.node(m - 1).contentMatchAt(o.indexAfter(m - 1))), i.unshift(l && a ? { type: a } : null), s = m;
14522
+ l = o.end(m) == o.pos + (o.depth - m), d = o.start(m) == o.pos - (o.depth - m), a = Md(o.node(m - 1).contentMatchAt(o.indexAfter(m - 1))), i.unshift(l && a ? { type: a } : null), s = m;
14523
14523
  break;
14524
14524
  } else {
14525
14525
  if (m == 1)
@@ -14599,11 +14599,11 @@ function Rh(r) {
14599
14599
  const Iw = Rh(-1), Dw = Rh(1);
14600
14600
  function Rw(r, e = null) {
14601
14601
  return function(t, o) {
14602
- let { $from: n, $to: i } = t.selection, s = n.blockRange(i), a = s && pd(s, r, e);
14602
+ let { $from: n, $to: i } = t.selection, s = n.blockRange(i), a = s && ud(s, r, e);
14603
14603
  return a ? (o && o(t.tr.wrap(s, a).scrollIntoView()), !0) : !1;
14604
14604
  };
14605
14605
  }
14606
- function xp(r, e = null) {
14606
+ function kp(r, e = null) {
14607
14607
  return function(t, o) {
14608
14608
  let n = !1;
14609
14609
  for (let i = 0; i < t.selection.ranges.length && !n; i++) {
@@ -14633,7 +14633,7 @@ function xp(r, e = null) {
14633
14633
  return !0;
14634
14634
  };
14635
14635
  }
14636
- function Md(...r) {
14636
+ function Td(...r) {
14637
14637
  return function(e, t, o) {
14638
14638
  for (let n = 0; n < r.length; n++)
14639
14639
  if (r[n](e, t, o))
@@ -14641,9 +14641,9 @@ function Md(...r) {
14641
14641
  return !1;
14642
14642
  };
14643
14643
  }
14644
- Md(kd, Mh, Oh);
14645
- Md(kd, Ah, Bh);
14646
- Md(Lh, Nh, Ih, Bw);
14644
+ Td(Sd, Mh, Oh);
14645
+ Td(Sd, Ah, Bh);
14646
+ Td(Lh, Nh, Ih, Bw);
14647
14647
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
14648
14648
  function $w(r, e = null) {
14649
14649
  return function(t, o) {
@@ -14662,7 +14662,7 @@ function zw(r, e, t, o = null) {
14662
14662
  let l = s.resolve(e.start - 2);
14663
14663
  i = new ds(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new ds(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), n = !0;
14664
14664
  }
14665
- let a = pd(i, t, o, e);
14665
+ let a = ud(i, t, o, e);
14666
14666
  return a ? (r && _w(r, e, a, n, t), !0) : !1;
14667
14667
  }
14668
14668
  function _w(r, e, t, o, n) {
@@ -14953,7 +14953,7 @@ function Ww(r = {}) {
14953
14953
  function qw(r) {
14954
14954
  return typeof r != "string" ? r : r.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(r) : r === "true" ? !0 : r === "false" ? !1 : r;
14955
14955
  }
14956
- function kp(r, e) {
14956
+ function Sp(r, e) {
14957
14957
  return "style" in r ? r : {
14958
14958
  ...r,
14959
14959
  getAttrs: (t) => {
@@ -14971,7 +14971,7 @@ function kp(r, e) {
14971
14971
  }
14972
14972
  };
14973
14973
  }
14974
- function Sp(r) {
14974
+ function Cp(r) {
14975
14975
  return Object.fromEntries(
14976
14976
  // @ts-ignore
14977
14977
  Object.entries(r).filter(([e, t]) => e === "attrs" && Ww(t) ? !1 : t != null)
@@ -14991,7 +14991,7 @@ function Kw(r, e) {
14991
14991
  ...w,
14992
14992
  ...C ? C(d) : {}
14993
14993
  };
14994
- }, {}), m = Sp({
14994
+ }, {}), m = Cp({
14995
14995
  ...u,
14996
14996
  content: te(V(d, "content", p)),
14997
14997
  marks: te(V(d, "marks", p)),
@@ -15010,7 +15010,7 @@ function Kw(r, e) {
15010
15010
  return [w.name, { default: (E = w == null ? void 0 : w.attribute) === null || E === void 0 ? void 0 : E.default }];
15011
15011
  }))
15012
15012
  }), h = te(V(d, "parseHTML", p));
15013
- h && (m.parseDOM = h.map((w) => kp(w, c)));
15013
+ h && (m.parseDOM = h.map((w) => Sp(w, c)));
15014
15014
  const f = V(d, "renderHTML", p);
15015
15015
  f && (m.toDOM = (w) => f({
15016
15016
  node: w,
@@ -15030,7 +15030,7 @@ function Kw(r, e) {
15030
15030
  ...b,
15031
15031
  ...E ? E(d) : {}
15032
15032
  };
15033
- }, {}), m = Sp({
15033
+ }, {}), m = Cp({
15034
15034
  ...u,
15035
15035
  inclusive: te(V(d, "inclusive", p)),
15036
15036
  excludes: te(V(d, "excludes", p)),
@@ -15042,7 +15042,7 @@ function Kw(r, e) {
15042
15042
  return [b.name, { default: (w = b == null ? void 0 : b.attribute) === null || w === void 0 ? void 0 : w.default }];
15043
15043
  }))
15044
15044
  }), h = te(V(d, "parseHTML", p));
15045
- h && (m.parseDOM = h.map((b) => kp(b, c)));
15045
+ h && (m.parseDOM = h.map((b) => Sp(b, c)));
15046
15046
  const f = V(d, "renderHTML", p);
15047
15047
  return f && (m.toDOM = (b) => f({
15048
15048
  mark: b,
@@ -15058,10 +15058,10 @@ function Kw(r, e) {
15058
15058
  function Va(r, e) {
15059
15059
  return e.nodes[r] || e.marks[r] || null;
15060
15060
  }
15061
- function Cp(r, e) {
15061
+ function Ep(r, e) {
15062
15062
  return Array.isArray(e) ? e.some((t) => (typeof t == "string" ? t : t.name) === r.name) : e;
15063
15063
  }
15064
- function Td(r, e) {
15064
+ function Od(r, e) {
15065
15065
  const t = bo.fromSchema(e).serializeFragment(r), n = document.implementation.createHTMLDocument().createElement("div");
15066
15066
  return n.appendChild(t), n.innerHTML;
15067
15067
  }
@@ -15079,7 +15079,7 @@ const Gw = (r, e = 500) => {
15079
15079
  t += n.isAtom && !n.isText ? c : c.slice(0, Math.max(0, o - i));
15080
15080
  }), t;
15081
15081
  };
15082
- function Od(r) {
15082
+ function Pd(r) {
15083
15083
  return Object.prototype.toString.call(r) === "[object RegExp]";
15084
15084
  }
15085
15085
  class ma {
@@ -15088,7 +15088,7 @@ class ma {
15088
15088
  }
15089
15089
  }
15090
15090
  const Jw = (r, e) => {
15091
- if (Od(e))
15091
+ if (Pd(e))
15092
15092
  return e.exec(r);
15093
15093
  const t = e(r);
15094
15094
  if (!t)
@@ -15153,7 +15153,7 @@ function Yw(r) {
15153
15153
  const l = n.getMeta("applyInputRules");
15154
15154
  return !!l && setTimeout(() => {
15155
15155
  let { text: c } = l;
15156
- typeof c == "string" ? c = c : c = Td(N.from(c), s.schema);
15156
+ typeof c == "string" ? c = c : c = Od(N.from(c), s.schema);
15157
15157
  const { from: p } = l, u = p + c.length;
15158
15158
  Ii({
15159
15159
  editor: e,
@@ -15279,7 +15279,7 @@ class Zw {
15279
15279
  }
15280
15280
  }
15281
15281
  const ev = (r, e, t) => {
15282
- if (Od(e))
15282
+ if (Pd(e))
15283
15283
  return [...r.matchAll(e)];
15284
15284
  const o = e(r, t);
15285
15285
  return o ? o.map((n) => {
@@ -15394,7 +15394,7 @@ function ov(r) {
15394
15394
  return;
15395
15395
  if (E) {
15396
15396
  let { text: M } = w;
15397
- typeof M == "string" ? M = M : M = Td(N.from(M), m.schema);
15397
+ typeof M == "string" ? M = M : M = Od(N.from(M), m.schema);
15398
15398
  const { from: k } = w, A = k + M.length, j = rv(M);
15399
15399
  return l({
15400
15400
  rule: c,
@@ -15500,9 +15500,9 @@ class Ro {
15500
15500
  const p = Sw(c);
15501
15501
  l.push(p);
15502
15502
  const u = V(s, "addInputRules", a);
15503
- Cp(s, e.options.enableInputRules) && u && o.push(...u());
15503
+ Ep(s, e.options.enableInputRules) && u && o.push(...u());
15504
15504
  const m = V(s, "addPasteRules", a);
15505
- Cp(s, e.options.enablePasteRules) && m && n.push(...m());
15505
+ Ep(s, e.options.enablePasteRules) && m && n.push(...m());
15506
15506
  const h = V(s, "addProseMirrorPlugins", a);
15507
15507
  if (h) {
15508
15508
  const f = h();
@@ -15639,7 +15639,7 @@ function _h(r, e, t) {
15639
15639
  l.isText && (a += (u = l == null ? void 0 : l.text) === null || u === void 0 ? void 0 : u.slice(Math.max(o, d) - d, n - d));
15640
15640
  }), a;
15641
15641
  }
15642
- function Pd(r) {
15642
+ function Ad(r) {
15643
15643
  return Object.fromEntries(Object.entries(r.nodes).filter(([, e]) => e.spec.toText).map(([e, t]) => [e, t.spec.toText]));
15644
15644
  }
15645
15645
  const iv = Xe.create({
@@ -15655,7 +15655,7 @@ const iv = Xe.create({
15655
15655
  key: new pt("clipboardTextSerializer"),
15656
15656
  props: {
15657
15657
  clipboardTextSerializer: () => {
15658
- const { editor: r } = this, { state: e, schema: t } = r, { doc: o, selection: n } = e, { ranges: i } = n, s = Math.min(...i.map((c) => c.$from.pos)), a = Math.max(...i.map((c) => c.$to.pos)), l = Pd(t);
15658
+ const { editor: r } = this, { state: e, schema: t } = r, { doc: o, selection: n } = e, { ranges: i } = n, s = Math.min(...i.map((c) => c.$from.pos)), a = Math.max(...i.map((c) => c.$to.pos)), l = Ad(t);
15659
15659
  return _h(o, { from: s, to: a }, {
15660
15660
  ...this.options.blockSeparator !== void 0 ? { blockSeparator: this.options.blockSeparator } : {},
15661
15661
  textSerializers: l
@@ -15718,10 +15718,10 @@ const iv = Xe.create({
15718
15718
  }, hv = (r) => ({ tr: e, dispatch: t }) => {
15719
15719
  const { from: o, to: n } = r;
15720
15720
  return t && e.delete(o, n), !0;
15721
- }, gv = () => ({ state: r, dispatch: e }) => kd(r, e), fv = () => ({ commands: r }) => r.keyboardShortcut("Enter"), bv = () => ({ state: r, dispatch: e }) => Pw(r, e);
15721
+ }, gv = () => ({ state: r, dispatch: e }) => Sd(r, e), fv = () => ({ commands: r }) => r.keyboardShortcut("Enter"), bv = () => ({ state: r, dispatch: e }) => Pw(r, e);
15722
15722
  function bs(r, e, t = { strict: !0 }) {
15723
15723
  const o = Object.keys(e);
15724
- return o.length ? o.every((n) => t.strict ? e[n] === r[n] : Od(e[n]) ? e[n].test(r[n]) : e[n] === r[n]) : !0;
15724
+ return o.length ? o.every((n) => t.strict ? e[n] === r[n] : Pd(e[n]) ? e[n].test(r[n]) : e[n] === r[n]) : !0;
15725
15725
  }
15726
15726
  function Fh(r, e, t = {}) {
15727
15727
  return r.find((o) => o.type === e && bs(
@@ -15730,10 +15730,10 @@ function Fh(r, e, t = {}) {
15730
15730
  t
15731
15731
  ));
15732
15732
  }
15733
- function Ep(r, e, t = {}) {
15733
+ function Mp(r, e, t = {}) {
15734
15734
  return !!Fh(r, e, t);
15735
15735
  }
15736
- function Ad(r, e, t) {
15736
+ function Bd(r, e, t) {
15737
15737
  var o;
15738
15738
  if (!r || !e)
15739
15739
  return;
@@ -15741,9 +15741,9 @@ function Ad(r, e, t) {
15741
15741
  if ((!n.node || !n.node.marks.some((c) => c.type === e)) && (n = r.parent.childBefore(r.parentOffset)), !n.node || !n.node.marks.some((c) => c.type === e) || (t = t || ((o = n.node.marks[0]) === null || o === void 0 ? void 0 : o.attrs), !Fh([...n.node.marks], e, t)))
15742
15742
  return;
15743
15743
  let s = n.index, a = r.start() + n.offset, l = s + 1, d = a + n.node.nodeSize;
15744
- for (; s > 0 && Ep([...r.parent.child(s - 1).marks], e, t); )
15744
+ for (; s > 0 && Mp([...r.parent.child(s - 1).marks], e, t); )
15745
15745
  s -= 1, a -= r.parent.child(s).nodeSize;
15746
- for (; l < r.parent.childCount && Ep([...r.parent.child(l).marks], e, t); )
15746
+ for (; l < r.parent.childCount && Mp([...r.parent.child(l).marks], e, t); )
15747
15747
  d += r.parent.child(l).nodeSize, l += 1;
15748
15748
  return {
15749
15749
  from: a,
@@ -15761,7 +15761,7 @@ function Hr(r, e) {
15761
15761
  const yv = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
15762
15762
  const i = Hr(r, o.schema), { doc: s, selection: a } = t, { $from: l, from: d, to: c } = a;
15763
15763
  if (n) {
15764
- const p = Ad(l, i, e);
15764
+ const p = Bd(l, i, e);
15765
15765
  if (p && p.from <= d && p.to >= c) {
15766
15766
  const u = J.create(s, p.from, p.to);
15767
15767
  t.setSelection(u);
@@ -15775,7 +15775,7 @@ const yv = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
15775
15775
  return !0;
15776
15776
  return !1;
15777
15777
  };
15778
- function Bd(r) {
15778
+ function Ld(r) {
15779
15779
  return r instanceof J;
15780
15780
  }
15781
15781
  function dr(r = 0, e = 0, t = 0) {
@@ -15795,7 +15795,7 @@ function jh(r, e = null) {
15795
15795
  function vv() {
15796
15796
  return navigator.platform === "Android" || /android/i.test(navigator.userAgent);
15797
15797
  }
15798
- function Ld() {
15798
+ function Nd() {
15799
15799
  return [
15800
15800
  "iPad Simulator",
15801
15801
  "iPhone Simulator",
@@ -15811,13 +15811,13 @@ const xv = (r = null, e = {}) => ({ editor: t, view: o, tr: n, dispatch: i }) =>
15811
15811
  ...e
15812
15812
  };
15813
15813
  const s = () => {
15814
- (Ld() || vv()) && o.dom.focus(), requestAnimationFrame(() => {
15814
+ (Nd() || vv()) && o.dom.focus(), requestAnimationFrame(() => {
15815
15815
  t.isDestroyed || (o.focus(), e != null && e.scrollIntoView && t.commands.scrollIntoView());
15816
15816
  });
15817
15817
  };
15818
15818
  if (o.hasFocus() && r === null || r === !1)
15819
15819
  return !0;
15820
- if (i && r === null && !Bd(t.state.selection))
15820
+ if (i && r === null && !Ld(t.state.selection))
15821
15821
  return s(), !0;
15822
15822
  const a = jh(n.doc, r) || t.state.selection, l = t.state.selection.eq(a);
15823
15823
  return i && (l || n.setSelection(a), l && n.storedMarks && n.setStoredMarks(n.storedMarks), s()), !0;
@@ -15980,7 +15980,7 @@ function Dv(r) {
15980
15980
  else if (/^s(hift)?$/i.test(l))
15981
15981
  i = !0;
15982
15982
  else if (/^mod$/i.test(l))
15983
- Ld() || Vh() ? s = !0 : n = !0;
15983
+ Nd() || Vh() ? s = !0 : n = !0;
15984
15984
  else
15985
15985
  throw new Error(`Unrecognized modifier name: ${l}`);
15986
15986
  }
@@ -16028,7 +16028,7 @@ const $v = (r, e = {}) => ({ state: t, dispatch: o }) => {
16028
16028
  function ga(r, e) {
16029
16029
  return e.nodes[r] ? "node" : e.marks[r] ? "mark" : null;
16030
16030
  }
16031
- function Mp(r, e) {
16031
+ function Tp(r, e) {
16032
16032
  const t = typeof e == "string" ? [e] : e;
16033
16033
  return Object.keys(r).reduce((o, n) => (t.includes(n) || (o[n] = r[n]), o), {});
16034
16034
  }
@@ -16037,8 +16037,8 @@ const jv = (r, e) => ({ tr: t, state: o, dispatch: n }) => {
16037
16037
  const a = ga(typeof r == "string" ? r : r.name, o.schema);
16038
16038
  return a ? (a === "node" && (i = We(r, o.schema)), a === "mark" && (s = Hr(r, o.schema)), n && t.selection.ranges.forEach((l) => {
16039
16039
  o.doc.nodesBetween(l.$from.pos, l.$to.pos, (d, c) => {
16040
- i && i === d.type && t.setNodeMarkup(c, void 0, Mp(d.attrs, e)), s && d.marks.length && d.marks.forEach((p) => {
16041
- s === p.type && t.addMark(c, c + d.nodeSize, s.create(Mp(p.attrs, e)));
16040
+ i && i === d.type && t.setNodeMarkup(c, void 0, Tp(d.attrs, e)), s && d.marks.length && d.marks.forEach((p) => {
16041
+ s === p.type && t.addMark(c, c + d.nodeSize, s.create(Tp(p.attrs, e)));
16042
16042
  });
16043
16043
  });
16044
16044
  }), !0) : !1;
@@ -16115,7 +16115,7 @@ function Zv(r, e) {
16115
16115
  };
16116
16116
  }
16117
16117
  }
16118
- function Nd(r) {
16118
+ function Id(r) {
16119
16119
  return (e) => Zv(e.$from, r);
16120
16120
  }
16121
16121
  function Wh(r, e) {
@@ -16177,10 +16177,10 @@ function o2(r) {
16177
16177
  });
16178
16178
  }), r2(o);
16179
16179
  }
16180
- function Id(r, e, t) {
16180
+ function Dd(r, e, t) {
16181
16181
  const o = [];
16182
16182
  return r === e ? t.resolve(r).marks().forEach((n) => {
16183
- const i = t.resolve(r), s = Ad(i, n.type);
16183
+ const i = t.resolve(r), s = Bd(i, n.type);
16184
16184
  s && o.push({
16185
16185
  mark: n,
16186
16186
  ...s
@@ -16228,7 +16228,7 @@ function n2(r, e, t = {}) {
16228
16228
  const o = ga(e, r.schema);
16229
16229
  return o === "node" ? Wn(r, e, t) : o === "mark" ? Nl(r, e, t) : !1;
16230
16230
  }
16231
- function Tp(r, e) {
16231
+ function Op(r, e) {
16232
16232
  const { nodeExtensions: t } = ua(e), o = t.find((s) => s.name === r);
16233
16233
  if (!o)
16234
16234
  return !1;
@@ -16239,7 +16239,7 @@ function Tp(r, e) {
16239
16239
  }, i = te(V(o, "group", n));
16240
16240
  return typeof i != "string" ? !1 : i.split(" ").includes("list");
16241
16241
  }
16242
- function Dd(r, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
16242
+ function Rd(r, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
16243
16243
  var o;
16244
16244
  if (t) {
16245
16245
  if (r.type.name === "hardBreak")
@@ -16256,7 +16256,7 @@ function Dd(r, { checkChildren: e = !0, ignoreWhitespace: t = !1 } = {}) {
16256
16256
  if (e) {
16257
16257
  let n = !0;
16258
16258
  return r.content.forEach((i) => {
16259
- n !== !1 && (Dd(i, { ignoreWhitespace: t, checkChildren: e }) || (n = !1));
16259
+ n !== !1 && (Rd(i, { ignoreWhitespace: t, checkChildren: e }) || (n = !1));
16260
16260
  }), n;
16261
16261
  }
16262
16262
  return !1;
@@ -16284,7 +16284,7 @@ function i2(r, e, t) {
16284
16284
  var o;
16285
16285
  const { selection: n } = e;
16286
16286
  let i = null;
16287
- if (Bd(n) && (i = n.$cursor), i) {
16287
+ if (Ld(n) && (i = n.$cursor), i) {
16288
16288
  const a = (o = r.storedMarks) !== null && o !== void 0 ? o : i.marks();
16289
16289
  return !!t.isInSet(a) || !a.some((l) => l.type.excludes(t));
16290
16290
  }
@@ -16328,7 +16328,7 @@ const s2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
16328
16328
  }, a2 = (r, e) => ({ tr: t }) => (t.setMeta(r, e), !0), l2 = (r, e = {}) => ({ state: t, dispatch: o, chain: n }) => {
16329
16329
  const i = We(r, t.schema);
16330
16330
  let s;
16331
- return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), i.isTextblock ? n().command(({ commands: a }) => xp(i, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => xp(i, { ...s, ...e })(a, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
16331
+ return t.selection.$anchor.sameParent(t.selection.$head) && (s = t.selection.$anchor.parent.attrs), i.isTextblock ? n().command(({ commands: a }) => kp(i, { ...s, ...e })(t) ? !0 : a.clearNodes()).command(({ state: a }) => kp(i, { ...s, ...e })(a, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
16332
16332
  }, d2 = (r) => ({ tr: e, dispatch: t }) => {
16333
16333
  if (t) {
16334
16334
  const { doc: o } = e, n = dr(r, 0, o.content.size), i = K.create(o, n);
@@ -16345,7 +16345,7 @@ const s2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n }) => {
16345
16345
  const o = We(r, e.schema);
16346
16346
  return Vw(o)(e, t);
16347
16347
  };
16348
- function Op(r, e) {
16348
+ function Pp(r, e) {
16349
16349
  const t = r.storedMarks || r.selection.$to.parentOffset && r.selection.$from.marks();
16350
16350
  if (t) {
16351
16351
  const o = t.filter((n) => e == null ? void 0 : e.includes(n.type.name));
@@ -16355,7 +16355,7 @@ function Op(r, e) {
16355
16355
  const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, editor: n }) => {
16356
16356
  const { selection: i, doc: s } = e, { $from: a, $to: l } = i, d = n.extensionManager.attributes, c = Xi(d, a.node().type.name, a.node().attrs);
16357
16357
  if (i instanceof K && i.node.isBlock)
16358
- return !a.parentOffset || !cr(s, a.pos) ? !1 : (o && (r && Op(t, n.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
16358
+ return !a.parentOffset || !cr(s, a.pos) ? !1 : (o && (r && Pp(t, n.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
16359
16359
  if (!a.parent.isBlock)
16360
16360
  return !1;
16361
16361
  const p = l.parentOffset === l.parent.content.size, u = a.depth === 0 ? void 0 : Xv(a.node(-1).contentMatchAt(a.indexAfter(-1)));
@@ -16375,7 +16375,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
16375
16375
  const f = e.mapping.map(a.before()), b = e.doc.resolve(f);
16376
16376
  a.node(-1).canReplaceWith(b.index(), b.index() + 1, u) && e.setNodeMarkup(e.mapping.map(a.before()), u);
16377
16377
  }
16378
- r && Op(t, n.extensionManager.splittableMarks), e.scrollIntoView();
16378
+ r && Pp(t, n.extensionManager.splittableMarks), e.scrollIntoView();
16379
16379
  }
16380
16380
  return h;
16381
16381
  }, m2 = (r, e = {}) => ({ tr: t, state: o, dispatch: n, editor: i }) => {
@@ -16434,7 +16434,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
16434
16434
  }
16435
16435
  return !0;
16436
16436
  }, Ua = (r, e) => {
16437
- const t = Nd((s) => s.type === e)(r.selection);
16437
+ const t = Id((s) => s.type === e)(r.selection);
16438
16438
  if (!t)
16439
16439
  return !0;
16440
16440
  const o = r.doc.resolve(Math.max(0, t.pos - 1)).before(t.depth);
@@ -16443,7 +16443,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
16443
16443
  const n = r.doc.nodeAt(o);
16444
16444
  return t.node.type === (n == null ? void 0 : n.type) && Fr(r.doc, t.pos) && r.join(t.pos), !0;
16445
16445
  }, Wa = (r, e) => {
16446
- const t = Nd((s) => s.type === e)(r.selection);
16446
+ const t = Id((s) => s.type === e)(r.selection);
16447
16447
  if (!t)
16448
16448
  return !0;
16449
16449
  const o = r.doc.resolve(t.start).after(t.depth);
@@ -16455,11 +16455,11 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
16455
16455
  const { extensions: p, splittableMarks: u } = n.extensionManager, m = We(r, s.schema), h = We(e, s.schema), { selection: f, storedMarks: b } = s, { $from: w, $to: E } = f, C = w.blockRange(E), y = b || f.$to.parentOffset && f.$from.marks();
16456
16456
  if (!C)
16457
16457
  return !1;
16458
- const M = Nd((k) => Tp(k.type.name, p))(f);
16458
+ const M = Id((k) => Op(k.type.name, p))(f);
16459
16459
  if (C.depth >= 1 && M && C.depth - M.depth <= 1) {
16460
16460
  if (M.node.type === m)
16461
16461
  return d.liftListItem(h);
16462
- if (Tp(M.node.type.name, p) && m.validContent(M.node.content) && a)
16462
+ if (Op(M.node.type.name, p) && m.validContent(M.node.content) && a)
16463
16463
  return l().command(() => (i.setNodeMarkup(M.pos, m), !0)).command(() => Ua(i, m)).command(() => Wa(i, m)).run();
16464
16464
  }
16465
16465
  return !t || !y || !a ? l().command(() => c().wrapInList(m, o) ? !0 : d.clearNodes()).wrapInList(m, o).command(() => Ua(i, m)).command(() => Wa(i, m)).run() : l().command(() => {
@@ -16508,7 +16508,7 @@ const u2 = ({ keepMarks: r = !0 } = {}) => ({ tr: e, state: t, dispatch: o, edit
16508
16508
  return !0;
16509
16509
  if (c && s) {
16510
16510
  let { from: u, to: m } = a;
16511
- const h = (i = d.marks().find((b) => b.type === l)) === null || i === void 0 ? void 0 : i.attrs, f = Ad(d, l, h);
16511
+ const h = (i = d.marks().find((b) => b.type === l)) === null || i === void 0 ? void 0 : i.attrs, f = Bd(d, l, h);
16512
16512
  f && (u = f.from, m = f.to), t.removeMark(u, m, l);
16513
16513
  } else
16514
16514
  p.forEach((u) => {
@@ -16721,7 +16721,7 @@ const E2 = Xe.create({
16721
16721
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
16722
16722
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
16723
16723
  };
16724
- return Ld() || Vh() ? i : n;
16724
+ return Nd() || Vh() ? i : n;
16725
16725
  },
16726
16726
  addProseMirrorPlugins() {
16727
16727
  return [
@@ -16739,7 +16739,7 @@ const E2 = Xe.create({
16739
16739
  if (!o || n)
16740
16740
  return;
16741
16741
  const { empty: i, from: s, to: a } = e.selection, l = Q.atStart(e.doc).from, d = Q.atEnd(e.doc).to;
16742
- if (i || !(s === l && a === d) || !Dd(t.doc))
16742
+ if (i || !(s === l && a === d) || !Rd(t.doc))
16743
16743
  return;
16744
16744
  const u = t.tr, m = ca({
16745
16745
  state: t,
@@ -17272,7 +17272,7 @@ let D2 = class extends Uw {
17272
17272
  * Get the document as HTML.
17273
17273
  */
17274
17274
  getHTML() {
17275
- return Td(this.state.doc.content, this.schema);
17275
+ return Od(this.state.doc.content, this.schema);
17276
17276
  }
17277
17277
  /**
17278
17278
  * Get the document as text.
@@ -17284,7 +17284,7 @@ let D2 = class extends Uw {
17284
17284
  return Wh(this.state.doc, {
17285
17285
  blockSeparator: t,
17286
17286
  textSerializers: {
17287
- ...Pd(this.schema),
17287
+ ...Ad(this.schema),
17288
17288
  ...o
17289
17289
  }
17290
17290
  });
@@ -17293,7 +17293,7 @@ let D2 = class extends Uw {
17293
17293
  * Check if there is no content.
17294
17294
  */
17295
17295
  get isEmpty() {
17296
- return Dd(this.state.doc);
17296
+ return Rd(this.state.doc);
17297
17297
  }
17298
17298
  /**
17299
17299
  * Get the number of characters for the current document.
@@ -17346,7 +17346,7 @@ function Uo(r) {
17346
17346
  const { tr: i } = e, s = o[o.length - 1], a = o[0];
17347
17347
  if (s) {
17348
17348
  const l = a.search(/\S/), d = t.from + a.indexOf(s), c = d + s.length;
17349
- if (Id(t.from, t.to, e.doc).filter((m) => m.mark.type.excluded.find((f) => f === r.type && f !== m.mark.type)).filter((m) => m.to > d).length)
17349
+ if (Dd(t.from, t.to, e.doc).filter((m) => m.mark.type.excluded.find((f) => f === r.type && f !== m.mark.type)).filter((m) => m.to > d).length)
17350
17350
  return null;
17351
17351
  c < t.to && i.delete(c, t.to), d > t.from && i.delete(t.from + l, d);
17352
17352
  const u = t.from + l + s.length;
@@ -17391,7 +17391,7 @@ function qn(r) {
17391
17391
  return new ma({
17392
17392
  find: r.find,
17393
17393
  handler: ({ state: e, range: t, match: o, chain: n }) => {
17394
- const i = te(r.getAttributes, void 0, o) || {}, s = e.tr.delete(t.from, t.to), l = s.doc.resolve(t.from).blockRange(), d = l && pd(l, r.type, i);
17394
+ const i = te(r.getAttributes, void 0, o) || {}, s = e.tr.delete(t.from, t.to), l = s.doc.resolve(t.from).blockRange(), d = l && ud(l, r.type, i);
17395
17395
  if (!d)
17396
17396
  return null;
17397
17397
  if (s.wrap(l, d), r.keepMarks && r.editor) {
@@ -17456,16 +17456,16 @@ function go(r) {
17456
17456
  let d = t.to;
17457
17457
  if (a) {
17458
17458
  const c = l.search(/\S/), p = t.from + l.indexOf(a), u = p + a.length;
17459
- if (Id(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((b) => b === r.type && b !== h.mark.type)).filter((h) => h.to > p).length)
17459
+ if (Dd(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((b) => b === r.type && b !== h.mark.type)).filter((h) => h.to > p).length)
17460
17460
  return null;
17461
17461
  u < t.to && s.delete(u, t.to), p > t.from && s.delete(t.from + c, p), d = t.from + c + a.length, s.addMark(t.from + c, d, r.type.create(i || {})), s.removeStoredMark(r.type);
17462
17462
  }
17463
17463
  }
17464
17464
  });
17465
17465
  }
17466
- var gt = "top", Lt = "bottom", Nt = "right", ft = "left", Rd = "auto", ui = [gt, Lt, Nt, ft], Wo = "start", Kn = "end", $2 = "clippingParents", Jh = "viewport", un = "popper", z2 = "reference", Pp = /* @__PURE__ */ ui.reduce(function(r, e) {
17466
+ var gt = "top", Lt = "bottom", Nt = "right", ft = "left", $d = "auto", ui = [gt, Lt, Nt, ft], Wo = "start", Kn = "end", $2 = "clippingParents", Jh = "viewport", un = "popper", z2 = "reference", Ap = /* @__PURE__ */ ui.reduce(function(r, e) {
17467
17467
  return r.concat([e + "-" + Wo, e + "-" + Kn]);
17468
- }, []), Yh = /* @__PURE__ */ [].concat(ui, [Rd]).reduce(function(r, e) {
17468
+ }, []), Yh = /* @__PURE__ */ [].concat(ui, [$d]).reduce(function(r, e) {
17469
17469
  return r.concat([e, e + "-" + Wo, e + "-" + Kn]);
17470
17470
  }, []), _2 = "beforeRead", F2 = "read", j2 = "afterRead", H2 = "beforeMain", V2 = "main", U2 = "afterMain", W2 = "beforeWrite", q2 = "write", K2 = "afterWrite", G2 = [_2, F2, j2, H2, V2, U2, W2, q2, K2];
17471
17471
  function Qt(r) {
@@ -17488,7 +17488,7 @@ function Bt(r) {
17488
17488
  var e = kt(r).HTMLElement;
17489
17489
  return r instanceof e || r instanceof HTMLElement;
17490
17490
  }
17491
- function $d(r) {
17491
+ function zd(r) {
17492
17492
  if (typeof ShadowRoot > "u")
17493
17493
  return !1;
17494
17494
  var e = kt(r).ShadowRoot;
@@ -17565,7 +17565,7 @@ function Ko(r, e, t) {
17565
17565
  y: c
17566
17566
  };
17567
17567
  }
17568
- function zd(r) {
17568
+ function _d(r) {
17569
17569
  var e = Ko(r), t = r.offsetWidth, o = r.offsetHeight;
17570
17570
  return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - o) <= 1 && (o = e.height), {
17571
17571
  x: r.offsetLeft,
@@ -17578,7 +17578,7 @@ function Zh(r, e) {
17578
17578
  var t = e.getRootNode && e.getRootNode();
17579
17579
  if (r.contains(e))
17580
17580
  return !0;
17581
- if (t && $d(t)) {
17581
+ if (t && zd(t)) {
17582
17582
  var o = e;
17583
17583
  do {
17584
17584
  if (o && r.isSameNode(o))
@@ -17607,12 +17607,12 @@ function fa(r) {
17607
17607
  // $FlowFixMe[prop-missing]
17608
17608
  r.assignedSlot || // step into the shadow DOM of the parent of a slotted node
17609
17609
  r.parentNode || // DOM Element detected
17610
- ($d(r) ? r.host : null) || // ShadowRoot detected
17610
+ (zd(r) ? r.host : null) || // ShadowRoot detected
17611
17611
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
17612
17612
  Vr(r)
17613
17613
  );
17614
17614
  }
17615
- function Ap(r) {
17615
+ function Bp(r) {
17616
17616
  return !Bt(r) || // https://github.com/popperjs/popper-core/issues/837
17617
17617
  hr(r).position === "fixed" ? null : r.offsetParent;
17618
17618
  }
@@ -17624,7 +17624,7 @@ function Q2(r) {
17624
17624
  return null;
17625
17625
  }
17626
17626
  var n = fa(r);
17627
- for ($d(n) && (n = n.host); Bt(n) && ["html", "body"].indexOf(Qt(n)) < 0; ) {
17627
+ for (zd(n) && (n = n.host); Bt(n) && ["html", "body"].indexOf(Qt(n)) < 0; ) {
17628
17628
  var i = hr(n);
17629
17629
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
17630
17630
  return n;
@@ -17633,11 +17633,11 @@ function Q2(r) {
17633
17633
  return null;
17634
17634
  }
17635
17635
  function mi(r) {
17636
- for (var e = kt(r), t = Ap(r); t && X2(t) && hr(t).position === "static"; )
17637
- t = Ap(t);
17636
+ for (var e = kt(r), t = Bp(r); t && X2(t) && hr(t).position === "static"; )
17637
+ t = Bp(t);
17638
17638
  return t && (Qt(t) === "html" || Qt(t) === "body" && hr(t).position === "static") ? e : t || Q2(r) || e;
17639
17639
  }
17640
- function _d(r) {
17640
+ function Fd(r) {
17641
17641
  return ["top", "bottom"].indexOf(r) >= 0 ? "x" : "y";
17642
17642
  }
17643
17643
  function En(r, e, t) {
@@ -17669,9 +17669,9 @@ var ex = function(e, t) {
17669
17669
  })) : e, tg(typeof e != "number" ? e : rg(e, ui));
17670
17670
  };
17671
17671
  function tx(r) {
17672
- var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Jt(t.placement), l = _d(a), d = [ft, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
17672
+ var e, t = r.state, o = r.name, n = r.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Jt(t.placement), l = Fd(a), d = [ft, Nt].indexOf(a) >= 0, c = d ? "height" : "width";
17673
17673
  if (!(!i || !s)) {
17674
- var p = ex(n.padding, t), u = zd(i), m = l === "y" ? gt : ft, h = l === "y" ? Lt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = mi(i), E = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, C = f / 2 - b / 2, y = p[m], M = E - u[c] - p[h], k = E / 2 - u[c] / 2 + C, A = En(y, k, M), j = l;
17674
+ var p = ex(n.padding, t), u = _d(i), m = l === "y" ? gt : ft, h = l === "y" ? Lt : Nt, f = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], b = s[l] - t.rects.reference[l], w = mi(i), E = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, C = f / 2 - b / 2, y = p[m], M = E - u[c] - p[h], k = E / 2 - u[c] / 2 + C, A = En(y, k, M), j = l;
17675
17675
  t.modifiersData[o] = (e = {}, e[j] = A, e.centerOffset = A - k, e);
17676
17676
  }
17677
17677
  }
@@ -17704,7 +17704,7 @@ function ix(r, e) {
17704
17704
  y: qo(o * n) / n || 0
17705
17705
  };
17706
17706
  }
17707
- function Bp(r) {
17707
+ function Lp(r) {
17708
17708
  var e, t = r.popper, o = r.popperRect, n = r.placement, i = r.variation, s = r.offsets, a = r.position, l = r.gpuAcceleration, d = r.adaptive, c = r.roundOffsets, p = r.isFixed, u = s.x, m = u === void 0 ? 0 : u, h = s.y, f = h === void 0 ? 0 : h, b = typeof c == "function" ? c({
17709
17709
  x: m,
17710
17710
  y: f
@@ -17757,12 +17757,12 @@ function sx(r) {
17757
17757
  gpuAcceleration: n,
17758
17758
  isFixed: e.options.strategy === "fixed"
17759
17759
  };
17760
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Bp(Object.assign({}, d, {
17760
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Lp(Object.assign({}, d, {
17761
17761
  offsets: e.modifiersData.popperOffsets,
17762
17762
  position: e.options.strategy,
17763
17763
  adaptive: s,
17764
17764
  roundOffsets: l
17765
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Bp(Object.assign({}, d, {
17765
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Lp(Object.assign({}, d, {
17766
17766
  offsets: e.modifiersData.arrow,
17767
17767
  position: "absolute",
17768
17768
  adaptive: !1,
@@ -17815,20 +17815,20 @@ var px = {
17815
17815
  start: "end",
17816
17816
  end: "start"
17817
17817
  };
17818
- function Lp(r) {
17818
+ function Np(r) {
17819
17819
  return r.replace(/start|end/g, function(e) {
17820
17820
  return px[e];
17821
17821
  });
17822
17822
  }
17823
- function Fd(r) {
17823
+ function jd(r) {
17824
17824
  var e = kt(r), t = e.pageXOffset, o = e.pageYOffset;
17825
17825
  return {
17826
17826
  scrollLeft: t,
17827
17827
  scrollTop: o
17828
17828
  };
17829
17829
  }
17830
- function jd(r) {
17831
- return Ko(Vr(r)).left + Fd(r).scrollLeft;
17830
+ function Hd(r) {
17831
+ return Ko(Vr(r)).left + jd(r).scrollLeft;
17832
17832
  }
17833
17833
  function ux(r, e) {
17834
17834
  var t = kt(r), o = Vr(r), n = t.visualViewport, i = o.clientWidth, s = o.clientHeight, a = 0, l = 0;
@@ -17840,12 +17840,12 @@ function ux(r, e) {
17840
17840
  return {
17841
17841
  width: i,
17842
17842
  height: s,
17843
- x: a + jd(r),
17843
+ x: a + Hd(r),
17844
17844
  y: l
17845
17845
  };
17846
17846
  }
17847
17847
  function mx(r) {
17848
- var e, t = Vr(r), o = Fd(r), n = (e = r.ownerDocument) == null ? void 0 : e.body, i = ao(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), s = ao(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -o.scrollLeft + jd(r), l = -o.scrollTop;
17848
+ var e, t = Vr(r), o = jd(r), n = (e = r.ownerDocument) == null ? void 0 : e.body, i = ao(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), s = ao(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), a = -o.scrollLeft + Hd(r), l = -o.scrollTop;
17849
17849
  return hr(n || t).direction === "rtl" && (a += ao(t.clientWidth, n ? n.clientWidth : 0) - i), {
17850
17850
  width: i,
17851
17851
  height: s,
@@ -17853,17 +17853,17 @@ function mx(r) {
17853
17853
  y: l
17854
17854
  };
17855
17855
  }
17856
- function Hd(r) {
17856
+ function Vd(r) {
17857
17857
  var e = hr(r), t = e.overflow, o = e.overflowX, n = e.overflowY;
17858
17858
  return /auto|scroll|overlay|hidden/.test(t + n + o);
17859
17859
  }
17860
17860
  function og(r) {
17861
- return ["html", "body", "#document"].indexOf(Qt(r)) >= 0 ? r.ownerDocument.body : Bt(r) && Hd(r) ? r : og(fa(r));
17861
+ return ["html", "body", "#document"].indexOf(Qt(r)) >= 0 ? r.ownerDocument.body : Bt(r) && Vd(r) ? r : og(fa(r));
17862
17862
  }
17863
17863
  function Mn(r, e) {
17864
17864
  var t;
17865
17865
  e === void 0 && (e = []);
17866
- var o = og(r), n = o === ((t = r.ownerDocument) == null ? void 0 : t.body), i = kt(o), s = n ? [i].concat(i.visualViewport || [], Hd(o) ? o : []) : o, a = e.concat(s);
17866
+ var o = og(r), n = o === ((t = r.ownerDocument) == null ? void 0 : t.body), i = kt(o), s = n ? [i].concat(i.visualViewport || [], Vd(o) ? o : []) : o, a = e.concat(s);
17867
17867
  return n ? a : (
17868
17868
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
17869
17869
  a.concat(Mn(fa(s)))
@@ -17881,7 +17881,7 @@ function hx(r, e) {
17881
17881
  var t = Ko(r, !1, e === "fixed");
17882
17882
  return t.top = t.top + r.clientTop, t.left = t.left + r.clientLeft, t.bottom = t.top + r.clientHeight, t.right = t.left + r.clientWidth, t.width = r.clientWidth, t.height = r.clientHeight, t.x = t.left, t.y = t.top, t;
17883
17883
  }
17884
- function Np(r, e, t) {
17884
+ function Ip(r, e, t) {
17885
17885
  return e === Jh ? $l(ux(r, t)) : fo(e) ? hx(e, t) : $l(mx(Vr(r)));
17886
17886
  }
17887
17887
  function gx(r) {
@@ -17892,9 +17892,9 @@ function gx(r) {
17892
17892
  }
17893
17893
  function fx(r, e, t, o) {
17894
17894
  var n = e === "clippingParents" ? gx(r) : [].concat(e), i = [].concat(n, [t]), s = i[0], a = i.reduce(function(l, d) {
17895
- var c = Np(r, d, o);
17895
+ var c = Ip(r, d, o);
17896
17896
  return l.top = ao(c.top, l.top), l.right = ws(c.right, l.right), l.bottom = ws(c.bottom, l.bottom), l.left = ao(c.left, l.left), l;
17897
- }, Np(r, s, o));
17897
+ }, Ip(r, s, o));
17898
17898
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
17899
17899
  }
17900
17900
  function ng(r) {
@@ -17930,7 +17930,7 @@ function ng(r) {
17930
17930
  y: e.y
17931
17931
  };
17932
17932
  }
17933
- var d = n ? _d(n) : null;
17933
+ var d = n ? Fd(n) : null;
17934
17934
  if (d != null) {
17935
17935
  var c = d === "y" ? "height" : "width";
17936
17936
  switch (i) {
@@ -17967,7 +17967,7 @@ function Gn(r, e) {
17967
17967
  }
17968
17968
  function bx(r, e) {
17969
17969
  e === void 0 && (e = {});
17970
- var t = e, o = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? Yh : l, c = Go(o), p = c ? a ? Pp : Pp.filter(function(h) {
17970
+ var t = e, o = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, a = t.flipVariations, l = t.allowedAutoPlacements, d = l === void 0 ? Yh : l, c = Go(o), p = c ? a ? Ap : Ap.filter(function(h) {
17971
17971
  return Go(h) === c;
17972
17972
  }) : ui, u = p.filter(function(h) {
17973
17973
  return d.indexOf(h) >= 0;
@@ -17986,16 +17986,16 @@ function bx(r, e) {
17986
17986
  });
17987
17987
  }
17988
17988
  function yx(r) {
17989
- if (Jt(r) === Rd)
17989
+ if (Jt(r) === $d)
17990
17990
  return [];
17991
17991
  var e = Qi(r);
17992
- return [Lp(r), e, Lp(e)];
17992
+ return [Np(r), e, Np(e)];
17993
17993
  }
17994
17994
  function wx(r) {
17995
17995
  var e = r.state, t = r.options, o = r.name;
17996
17996
  if (!e.modifiersData[o]._skip) {
17997
17997
  for (var n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, a = s === void 0 ? !0 : s, l = t.fallbackPlacements, d = t.padding, c = t.boundary, p = t.rootBoundary, u = t.altBoundary, m = t.flipVariations, h = m === void 0 ? !0 : m, f = t.allowedAutoPlacements, b = e.options.placement, w = Jt(b), E = w === b, C = l || (E || !h ? [Qi(b)] : yx(b)), y = [b].concat(C).reduce(function(Te, it) {
17998
- return Te.concat(Jt(it) === Rd ? bx(e, {
17998
+ return Te.concat(Jt(it) === $d ? bx(e, {
17999
17999
  placement: it,
18000
18000
  boundary: c,
18001
18001
  rootBoundary: p,
@@ -18049,7 +18049,7 @@ const vx = {
18049
18049
  _skip: !1
18050
18050
  }
18051
18051
  };
18052
- function Ip(r, e, t) {
18052
+ function Dp(r, e, t) {
18053
18053
  return t === void 0 && (t = {
18054
18054
  x: 0,
18055
18055
  y: 0
@@ -18060,7 +18060,7 @@ function Ip(r, e, t) {
18060
18060
  left: r.left - e.width - t.x
18061
18061
  };
18062
18062
  }
18063
- function Dp(r) {
18063
+ function Rp(r) {
18064
18064
  return [gt, Nt, Lt, ft].some(function(e) {
18065
18065
  return r[e] >= 0;
18066
18066
  });
@@ -18070,7 +18070,7 @@ function xx(r) {
18070
18070
  elementContext: "reference"
18071
18071
  }), a = Gn(e, {
18072
18072
  altBoundary: !0
18073
- }), l = Ip(s, o), d = Ip(a, n, i), c = Dp(l), p = Dp(d);
18073
+ }), l = Dp(s, o), d = Dp(a, n, i), c = Rp(l), p = Rp(d);
18074
18074
  e.modifiersData[t] = {
18075
18075
  referenceClippingOffsets: l,
18076
18076
  popperEscapeOffsets: d,
@@ -18137,7 +18137,7 @@ function Px(r) {
18137
18137
  rootBoundary: d,
18138
18138
  padding: p,
18139
18139
  altBoundary: c
18140
- }), w = Jt(e.placement), E = Go(e.placement), C = !E, y = _d(w), M = Ox(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, j = e.rects.popper, _ = typeof f == "function" ? f(Object.assign({}, e.rects, {
18140
+ }), w = Jt(e.placement), E = Go(e.placement), C = !E, y = Fd(w), M = Ox(y), k = e.modifiersData.popperOffsets, A = e.rects.reference, j = e.rects.popper, _ = typeof f == "function" ? f(Object.assign({}, e.rects, {
18141
18141
  placement: e.placement
18142
18142
  })) : f, P = typeof _ == "number" ? {
18143
18143
  mainAxis: _,
@@ -18151,7 +18151,7 @@ function Px(r) {
18151
18151
  };
18152
18152
  if (k) {
18153
18153
  if (i) {
18154
- var q, ne = y === "y" ? gt : ft, Y = y === "y" ? Lt : Nt, Z = y === "y" ? "height" : "width", le = k[y], ge = le + b[ne], se = le - b[Y], ae = m ? -j[Z] / 2 : 0, oe = E === Wo ? A[Z] : j[Z], ce = E === Wo ? -j[Z] : -A[Z], Ne = e.elements.arrow, Te = m && Ne ? zd(Ne) : {
18154
+ var q, ne = y === "y" ? gt : ft, Y = y === "y" ? Lt : Nt, Z = y === "y" ? "height" : "width", le = k[y], ge = le + b[ne], se = le - b[Y], ae = m ? -j[Z] / 2 : 0, oe = E === Wo ? A[Z] : j[Z], ce = E === Wo ? -j[Z] : -A[Z], Ne = e.elements.arrow, Te = m && Ne ? _d(Ne) : {
18155
18155
  width: 0,
18156
18156
  height: 0
18157
18157
  }, it = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eg(), ut = it[ne], yo = it[Y], Zt = En(0, A[Z], Te[Z]), wo = C ? A[Z] / 2 - ae - Zt - ut - P.mainAxis : oe - Zt - ut - P.mainAxis, gr = C ? -A[Z] / 2 + ae + Zt + yo + P.mainAxis : ce + Zt + yo + P.mainAxis, vo = e.elements.arrow && mi(e.elements.arrow), hi = vo ? y === "y" ? vo.clientTop || 0 : vo.clientLeft || 0 : 0, tn = (q = v == null ? void 0 : v[y]) != null ? q : 0, gi = le + wo - tn - hi, fi = le + gr - tn, rn = En(m ? ws(ge, gi) : ge, le, m ? ao(se, fi) : se);
@@ -18178,7 +18178,7 @@ function Bx(r) {
18178
18178
  };
18179
18179
  }
18180
18180
  function Lx(r) {
18181
- return r === kt(r) || !Bt(r) ? Fd(r) : Bx(r);
18181
+ return r === kt(r) || !Bt(r) ? jd(r) : Bx(r);
18182
18182
  }
18183
18183
  function Nx(r) {
18184
18184
  var e = r.getBoundingClientRect(), t = qo(e.width) / r.offsetWidth || 1, o = qo(e.height) / r.offsetHeight || 1;
@@ -18194,7 +18194,7 @@ function Ix(r, e, t) {
18194
18194
  y: 0
18195
18195
  };
18196
18196
  return (o || !o && !t) && ((Qt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
18197
- Hd(i)) && (a = Lx(e)), Bt(e) ? (l = Ko(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = jd(i))), {
18197
+ Vd(i)) && (a = Lx(e)), Bt(e) ? (l = Ko(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = Hd(i))), {
18198
18198
  x: s.left + a.scrollLeft - l.x,
18199
18199
  y: s.top + a.scrollTop - l.y,
18200
18200
  width: s.width,
@@ -18250,12 +18250,12 @@ function zx(r) {
18250
18250
  return e[t];
18251
18251
  });
18252
18252
  }
18253
- var Rp = {
18253
+ var $p = {
18254
18254
  placement: "bottom",
18255
18255
  modifiers: [],
18256
18256
  strategy: "absolute"
18257
18257
  };
18258
- function $p() {
18258
+ function zp() {
18259
18259
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++)
18260
18260
  e[t] = arguments[t];
18261
18261
  return !e.some(function(o) {
@@ -18264,13 +18264,13 @@ function $p() {
18264
18264
  }
18265
18265
  function _x(r) {
18266
18266
  r === void 0 && (r = {});
18267
- var e = r, t = e.defaultModifiers, o = t === void 0 ? [] : t, n = e.defaultOptions, i = n === void 0 ? Rp : n;
18267
+ var e = r, t = e.defaultModifiers, o = t === void 0 ? [] : t, n = e.defaultOptions, i = n === void 0 ? $p : n;
18268
18268
  return function(a, l, d) {
18269
18269
  d === void 0 && (d = i);
18270
18270
  var c = {
18271
18271
  placement: "bottom",
18272
18272
  orderedModifiers: [],
18273
- options: Object.assign({}, Rp, i),
18273
+ options: Object.assign({}, $p, i),
18274
18274
  modifiersData: {},
18275
18275
  elements: {
18276
18276
  reference: a,
@@ -18299,10 +18299,10 @@ function _x(r) {
18299
18299
  forceUpdate: function() {
18300
18300
  if (!u) {
18301
18301
  var w = c.elements, E = w.reference, C = w.popper;
18302
- if ($p(E, C)) {
18302
+ if (zp(E, C)) {
18303
18303
  c.rects = {
18304
18304
  reference: Ix(E, mi(C), c.options.strategy === "fixed"),
18305
- popper: zd(C)
18305
+ popper: _d(C)
18306
18306
  }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
18307
18307
  return c.modifiersData[P.name] = Object.assign({}, P.data);
18308
18308
  });
@@ -18333,7 +18333,7 @@ function _x(r) {
18333
18333
  f(), u = !0;
18334
18334
  }
18335
18335
  };
18336
- if (!$p(a, l))
18336
+ if (!zp(a, l))
18337
18337
  return m;
18338
18338
  m.setOptions(d).then(function(b) {
18339
18339
  !u && d.onFirstUpdate && d.onFirstUpdate(b);
@@ -18379,14 +18379,14 @@ function qa(r, e, t) {
18379
18379
  }
18380
18380
  return r;
18381
18381
  }
18382
- function Vd(r, e) {
18382
+ function Ud(r, e) {
18383
18383
  var t = {}.toString.call(r);
18384
18384
  return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
18385
18385
  }
18386
18386
  function dg(r, e) {
18387
18387
  return typeof r == "function" ? r.apply(void 0, e) : r;
18388
18388
  }
18389
- function zp(r, e) {
18389
+ function _p(r, e) {
18390
18390
  if (e === 0)
18391
18391
  return r;
18392
18392
  var t;
@@ -18408,7 +18408,7 @@ function qx(r) {
18408
18408
  function Lo(r) {
18409
18409
  return [].concat(r);
18410
18410
  }
18411
- function _p(r, e) {
18411
+ function Fp(r, e) {
18412
18412
  r.indexOf(e) === -1 && r.push(e);
18413
18413
  }
18414
18414
  function Kx(r) {
@@ -18422,7 +18422,7 @@ function Gx(r) {
18422
18422
  function vs(r) {
18423
18423
  return [].slice.call(r);
18424
18424
  }
18425
- function Fp(r) {
18425
+ function jp(r) {
18426
18426
  return Object.keys(r).reduce(function(e, t) {
18427
18427
  return r[t] !== void 0 && (e[t] = r[t]), e;
18428
18428
  }, {});
@@ -18432,14 +18432,14 @@ function Tn() {
18432
18432
  }
18433
18433
  function Jn(r) {
18434
18434
  return ["Element", "Fragment"].some(function(e) {
18435
- return Vd(r, e);
18435
+ return Ud(r, e);
18436
18436
  });
18437
18437
  }
18438
18438
  function Jx(r) {
18439
- return Vd(r, "NodeList");
18439
+ return Ud(r, "NodeList");
18440
18440
  }
18441
18441
  function Yx(r) {
18442
- return Vd(r, "MouseEvent");
18442
+ return Ud(r, "MouseEvent");
18443
18443
  }
18444
18444
  function Xx(r) {
18445
18445
  return !!(r && r._tippy && r._tippy.reference === r);
@@ -18452,7 +18452,7 @@ function Ka(r, e) {
18452
18452
  t && (t.style.transitionDuration = e + "ms");
18453
18453
  });
18454
18454
  }
18455
- function jp(r, e) {
18455
+ function Hp(r, e) {
18456
18456
  r.forEach(function(t) {
18457
18457
  t && t.setAttribute("data-state", e);
18458
18458
  });
@@ -18477,7 +18477,7 @@ function Ga(r, e, t) {
18477
18477
  r[o](n, t);
18478
18478
  });
18479
18479
  }
18480
- function Hp(r, e) {
18480
+ function Vp(r, e) {
18481
18481
  for (var t = e; t; ) {
18482
18482
  var o;
18483
18483
  if (r.contains(t))
@@ -18488,13 +18488,13 @@ function Hp(r, e) {
18488
18488
  }
18489
18489
  var Vt = {
18490
18490
  isTouch: !1
18491
- }, Vp = 0;
18491
+ }, Up = 0;
18492
18492
  function t5() {
18493
18493
  Vt.isTouch || (Vt.isTouch = !0, window.performance && document.addEventListener("mousemove", cg));
18494
18494
  }
18495
18495
  function cg() {
18496
18496
  var r = performance.now();
18497
- r - Vp < 20 && (Vt.isTouch = !1, document.removeEventListener("mousemove", cg)), Vp = r;
18497
+ r - Up < 20 && (Vt.isTouch = !1, document.removeEventListener("mousemove", cg)), Up = r;
18498
18498
  }
18499
18499
  function r5() {
18500
18500
  var r = document.activeElement;
@@ -18514,15 +18514,15 @@ function Oo(r) {
18514
18514
  var e = r === "destroy" ? "n already-" : " ";
18515
18515
  return [r + "() was called on a" + e + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
18516
18516
  }
18517
- function Up(r) {
18517
+ function Wp(r) {
18518
18518
  var e = /[ \t]{2,}/g, t = /^[ \t]*/gm;
18519
18519
  return r.replace(e, " ").replace(t, "").trim();
18520
18520
  }
18521
18521
  function s5(r) {
18522
- return Up(`
18522
+ return Wp(`
18523
18523
  %ctippy.js
18524
18524
 
18525
- %c` + Up(r) + `
18525
+ %c` + Wp(r) + `
18526
18526
 
18527
18527
  %c👷‍ This is a development-only message. It will be removed in production.
18528
18528
  `);
@@ -18659,7 +18659,7 @@ function u5(r, e) {
18659
18659
  }, {});
18660
18660
  return o;
18661
18661
  }
18662
- function Wp(r, e) {
18662
+ function qp(r, e) {
18663
18663
  var t = Object.assign({}, e, {
18664
18664
  content: dg(e.content, [r])
18665
18665
  }, e.ignoreAttributes ? {} : u5(r, e.plugins));
@@ -18687,11 +18687,11 @@ var m5 = function() {
18687
18687
  function _l(r, e) {
18688
18688
  r[m5()] = e;
18689
18689
  }
18690
- function qp(r) {
18690
+ function Kp(r) {
18691
18691
  var e = Tn();
18692
18692
  return r === !0 ? e.className = sg : (e.className = ag, Jn(r) ? e.appendChild(r) : _l(e, r)), e;
18693
18693
  }
18694
- function Kp(r, e) {
18694
+ function Gp(r, e) {
18695
18695
  Jn(e.content) ? (_l(r, ""), r.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? _l(r, e.content) : r.textContent = e.content);
18696
18696
  }
18697
18697
  function Fl(r) {
@@ -18713,10 +18713,10 @@ function gg(r) {
18713
18713
  var e = Tn(), t = Tn();
18714
18714
  t.className = Hx, t.setAttribute("data-state", "hidden"), t.setAttribute("tabindex", "-1");
18715
18715
  var o = Tn();
18716
- o.className = ig, o.setAttribute("data-state", "hidden"), Kp(o, r.props), e.appendChild(t), t.appendChild(o), n(r.props, r.props);
18716
+ o.className = ig, o.setAttribute("data-state", "hidden"), Gp(o, r.props), e.appendChild(t), t.appendChild(o), n(r.props, r.props);
18717
18717
  function n(i, s) {
18718
18718
  var a = Fl(e), l = a.box, d = a.content, c = a.arrow;
18719
- s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) && Kp(d, r.props), s.arrow ? c ? i.arrow !== s.arrow && (l.removeChild(c), l.appendChild(qp(s.arrow))) : l.appendChild(qp(s.arrow)) : c && l.removeChild(c);
18719
+ s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i.content !== s.content || i.allowHTML !== s.allowHTML) && Gp(d, r.props), s.arrow ? c ? i.arrow !== s.arrow && (l.removeChild(c), l.appendChild(Kp(s.arrow))) : l.appendChild(Kp(s.arrow)) : c && l.removeChild(c);
18720
18720
  }
18721
18721
  return {
18722
18722
  popper: e,
@@ -18726,7 +18726,7 @@ function gg(r) {
18726
18726
  gg.$$tippy = !0;
18727
18727
  var h5 = 1, _i = [], Ja = [];
18728
18728
  function g5(r, e) {
18729
- var t = Wp(r, Object.assign({}, wt, mg(Fp(e)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, u, m = [], h = zp(gi, t.interactiveDebounce), f, b = h5++, w = null, E = Kx(t.plugins), C = {
18729
+ var t = qp(r, Object.assign({}, wt, mg(jp(e)))), o, n, i, s = !1, a = !1, l = !1, d = !1, c, p, u, m = [], h = _p(gi, t.interactiveDebounce), f, b = h5++, w = null, E = Kx(t.plugins), C = {
18730
18730
  // Is the instance currently enabled?
18731
18731
  isEnabled: !0,
18732
18732
  // Is the tippy currently showing and not transitioning out?
@@ -18836,9 +18836,9 @@ function g5(r, e) {
18836
18836
  function ce(B) {
18837
18837
  if (!(Vt.isTouch && (l || B.type === "mousedown"))) {
18838
18838
  var U = B.composedPath && B.composedPath()[0] || B.target;
18839
- if (!(y.props.interactive && Hp(k, U))) {
18839
+ if (!(y.props.interactive && Vp(k, U))) {
18840
18840
  if (Lo(y.props.triggerTarget || r).some(function(G) {
18841
- return Hp(G, U);
18841
+ return Vp(G, U);
18842
18842
  })) {
18843
18843
  if (Vt.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
18844
18844
  return;
@@ -18963,7 +18963,7 @@ function g5(r, e) {
18963
18963
  var B = y.props, U = B.popperOptions, G = B.placement, me = B.offset, de = B.getReferenceClientRect, st = B.moveTransition, St = I() ? Fl(k).arrow : null, xo = de ? {
18964
18964
  getBoundingClientRect: de,
18965
18965
  contextElement: de.contextElement || q()
18966
- } : r, ec = {
18966
+ } : r, tc = {
18967
18967
  name: "$$tippy",
18968
18968
  enabled: !0,
18969
18969
  phase: "beforeWrite",
@@ -19002,7 +19002,7 @@ function g5(r, e) {
19002
19002
  options: {
19003
19003
  adaptive: !st
19004
19004
  }
19005
- }, ec];
19005
+ }, tc];
19006
19006
  I() && St && Wr.push({
19007
19007
  name: "arrow",
19008
19008
  options: {
@@ -19064,10 +19064,10 @@ function g5(r, e) {
19064
19064
  function xi(B) {
19065
19065
  if (process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("setProps")), !y.state.isDestroyed) {
19066
19066
  ge("onBeforeUpdate", [y, B]), hi();
19067
- var U = y.props, G = Wp(r, Object.assign({}, U, Fp(B), {
19067
+ var U = y.props, G = qp(r, Object.assign({}, U, jp(B), {
19068
19068
  ignoreAttributes: !0
19069
19069
  }));
19070
- y.props = G, vo(), U.interactiveDebounce !== G.interactiveDebounce && (oe(), h = zp(gi, G.interactiveDebounce)), U.triggerTarget && !G.triggerTarget ? Lo(U.triggerTarget).forEach(function(me) {
19070
+ y.props = G, vo(), U.interactiveDebounce !== G.interactiveDebounce && (oe(), h = _p(gi, G.interactiveDebounce)), U.triggerTarget && !G.triggerTarget ? Lo(U.triggerTarget).forEach(function(me) {
19071
19071
  me.removeAttribute("aria-expanded");
19072
19072
  }) : G.triggerTarget && r.removeAttribute("aria-expanded"), ae(), le(), A && A(U, G), y.popperInstance && (bi(), fr().forEach(function(me) {
19073
19073
  requestAnimationFrame(me._tippy.popperInstance.forceUpdate);
@@ -19092,9 +19092,9 @@ function g5(r, e) {
19092
19092
  if (!(!y.state.isVisible || d)) {
19093
19093
  if (d = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, I() && y.props.animation) {
19094
19094
  var ya = Y(), Si = ya.box, ko = ya.content;
19095
- Ka([Si, ko], de), jp([Si, ko], "visible");
19095
+ Ka([Si, ko], de), Hp([Si, ko], "visible");
19096
19096
  }
19097
- se(), ae(), _p(Ja, y), (Wr = y.popperInstance) == null || Wr.forceUpdate(), ge("onMount", [y]), y.props.animation && I() && Zt(de, function() {
19097
+ se(), ae(), Fp(Ja, y), (Wr = y.popperInstance) == null || Wr.forceUpdate(), ge("onMount", [y]), y.props.animation && I() && Zt(de, function() {
19098
19098
  y.state.isShown = !0, ge("onShown", [y]);
19099
19099
  });
19100
19100
  }
@@ -19107,13 +19107,13 @@ function g5(r, e) {
19107
19107
  if (!(B || U || G) && (ge("onHide", [y], !1), y.props.onHide(y) !== !1)) {
19108
19108
  if (y.state.isVisible = !1, y.state.isShown = !1, d = !1, s = !1, I() && (k.style.visibility = "hidden"), oe(), ut(), le(!0), I()) {
19109
19109
  var de = Y(), st = de.box, St = de.content;
19110
- y.props.animation && (Ka([st, St], me), jp([st, St], "hidden"));
19110
+ y.props.animation && (Ka([st, St], me), Hp([st, St], "hidden"));
19111
19111
  }
19112
19112
  se(), ae(), y.props.animation ? I() && yo(me, y.unmount) : y.unmount();
19113
19113
  }
19114
19114
  }
19115
19115
  function Ig(B) {
19116
- process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("hideWithInteractivity")), ne().addEventListener("mousemove", h), _p(_i, h), h(B);
19116
+ process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("hideWithInteractivity")), ne().addEventListener("mousemove", h), Fp(_i, h), h(B);
19117
19117
  }
19118
19118
  function Dg() {
19119
19119
  process.env.NODE_ENV !== "production" && ar(y.state.isDestroyed, Oo("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (yi(), fr().forEach(function(B) {
@@ -19174,7 +19174,7 @@ Zo.setDefaultProps({
19174
19174
  class f5 {
19175
19175
  constructor({ editor: e, element: t, view: o, tippyOptions: n = {}, updateDelay: i = 250, shouldShow: s }) {
19176
19176
  this.preventHide = !1, this.shouldShow = ({ view: a, state: l, from: d, to: c }) => {
19177
- const { doc: p, selection: u } = l, { empty: m } = u, h = !p.textBetween(d, c).length && Bd(l.selection), f = this.element.contains(document.activeElement);
19177
+ const { doc: p, selection: u } = l, { empty: m } = u, h = !p.textBetween(d, c).length && Ld(l.selection), f = this.element.contains(document.activeElement);
19178
19178
  return !(!(a.hasFocus() || f) || m || h || !this.editor.isEditable);
19179
19179
  }, this.mousedownHandler = () => {
19180
19180
  this.preventHide = !0;
@@ -19295,7 +19295,7 @@ Xe.create({
19295
19295
  });
19296
19296
  class b5 {
19297
19297
  getTextContent(e) {
19298
- return Wh(e, { textSerializers: Pd(this.editor.schema) });
19298
+ return Wh(e, { textSerializers: Ad(this.editor.schema) });
19299
19299
  }
19300
19300
  constructor({ editor: e, element: t, view: o, tippyOptions: n = {}, shouldShow: i }) {
19301
19301
  this.preventHide = !1, this.shouldShow = ({ view: s, state: a }) => {
@@ -19431,7 +19431,7 @@ he({
19431
19431
  };
19432
19432
  }
19433
19433
  });
19434
- function Gp(r) {
19434
+ function Jp(r) {
19435
19435
  return Ug((e, t) => ({
19436
19436
  get() {
19437
19437
  return e(), r;
@@ -19447,7 +19447,7 @@ function Gp(r) {
19447
19447
  }
19448
19448
  class y5 extends D2 {
19449
19449
  constructor(e = {}) {
19450
- return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Gp(this.view.state), this.reactiveExtensionStorage = Gp(this.extensionStorage), this.on("beforeTransaction", ({ nextState: t }) => {
19450
+ return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = Jp(this.view.state), this.reactiveExtensionStorage = Jp(this.extensionStorage), this.on("beforeTransaction", ({ nextState: t }) => {
19451
19451
  this.reactiveState.value = t, this.reactiveExtensionStorage.value = this.extensionStorage;
19452
19452
  }), Cr(this);
19453
19453
  }
@@ -19594,7 +19594,7 @@ he({
19594
19594
  }
19595
19595
  });
19596
19596
  const v5 = (r = {}) => {
19597
- const e = cu();
19597
+ const e = pu();
19598
19598
  return Se(() => {
19599
19599
  e.value = new y5(r);
19600
19600
  }), Qs(() => {
@@ -19706,7 +19706,7 @@ const v5 = (r = {}) => {
19706
19706
  })
19707
19707
  ];
19708
19708
  }
19709
- }), O5 = "listItem", Jp = "textStyle", Yp = /^\s*([-+*])\s$/, P5 = _t.create({
19709
+ }), O5 = "listItem", Yp = "textStyle", Xp = /^\s*([-+*])\s$/, P5 = _t.create({
19710
19710
  name: "bulletList",
19711
19711
  addOptions() {
19712
19712
  return {
@@ -19730,7 +19730,7 @@ const v5 = (r = {}) => {
19730
19730
  },
19731
19731
  addCommands() {
19732
19732
  return {
19733
- toggleBulletList: () => ({ commands: r, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(O5, this.editor.getAttributes(Jp)).run() : r.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
19733
+ toggleBulletList: () => ({ commands: r, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(O5, this.editor.getAttributes(Yp)).run() : r.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
19734
19734
  };
19735
19735
  },
19736
19736
  addKeyboardShortcuts() {
@@ -19740,15 +19740,15 @@ const v5 = (r = {}) => {
19740
19740
  },
19741
19741
  addInputRules() {
19742
19742
  let r = qn({
19743
- find: Yp,
19743
+ find: Xp,
19744
19744
  type: this.type
19745
19745
  });
19746
19746
  return (this.options.keepMarks || this.options.keepAttributes) && (r = qn({
19747
- find: Yp,
19747
+ find: Xp,
19748
19748
  type: this.type,
19749
19749
  keepMarks: this.options.keepMarks,
19750
19750
  keepAttributes: this.options.keepAttributes,
19751
- getAttributes: () => this.editor.getAttributes(Jp),
19751
+ getAttributes: () => this.editor.getAttributes(Yp),
19752
19752
  editor: this.editor
19753
19753
  })), [
19754
19754
  r
@@ -20060,7 +20060,7 @@ class Pe extends Q {
20060
20060
  @internal
20061
20061
  */
20062
20062
  getBookmark() {
20063
- return new Ud(this.anchor);
20063
+ return new Wd(this.anchor);
20064
20064
  }
20065
20065
  /**
20066
20066
  @internal
@@ -20116,12 +20116,12 @@ class Pe extends Q {
20116
20116
  Pe.prototype.visible = !1;
20117
20117
  Pe.findFrom = Pe.findGapCursorFrom;
20118
20118
  Q.jsonID("gapcursor", Pe);
20119
- class Ud {
20119
+ class Wd {
20120
20120
  constructor(e) {
20121
20121
  this.pos = e;
20122
20122
  }
20123
20123
  map(e) {
20124
- return new Ud(e.map(this.pos));
20124
+ return new Wd(e.map(this.pos));
20125
20125
  }
20126
20126
  resolve(e) {
20127
20127
  let t = e.resolve(this.pos);
@@ -20584,9 +20584,9 @@ function e3(r, e, t, o) {
20584
20584
  if (t.steps.length == 0)
20585
20585
  return r;
20586
20586
  if (s && s.getMeta(lo))
20587
- return s.getMeta(lo).redo ? new vr(r.done.addTransform(t, void 0, o, Zi(e)), r.undone, Xp(t.mapping.maps), r.prevTime, r.prevComposition) : new vr(r.done, r.undone.addTransform(t, void 0, o, Zi(e)), null, r.prevTime, r.prevComposition);
20587
+ return s.getMeta(lo).redo ? new vr(r.done.addTransform(t, void 0, o, Zi(e)), r.undone, Qp(t.mapping.maps), r.prevTime, r.prevComposition) : new vr(r.done, r.undone.addTransform(t, void 0, o, Zi(e)), null, r.prevTime, r.prevComposition);
20588
20588
  if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
20589
- let a = t.getMeta("composition"), l = r.prevTime == 0 || !s && r.prevComposition != a && (r.prevTime < (t.time || 0) - o.newGroupDelay || !t3(t, r.prevRanges)), d = s ? Ya(r.prevRanges, t.mapping) : Xp(t.mapping.maps);
20589
+ let a = t.getMeta("composition"), l = r.prevTime == 0 || !s && r.prevComposition != a && (r.prevTime < (t.time || 0) - o.newGroupDelay || !t3(t, r.prevRanges)), d = s ? Ya(r.prevRanges, t.mapping) : Qp(t.mapping.maps);
20590
20590
  return new vr(r.done.addTransform(t, l ? e.selection.getBookmark() : void 0, o, Zi(e)), $t.empty, d, t.time, a ?? r.prevComposition);
20591
20591
  } else return (i = t.getMeta("rebased")) ? new vr(r.done.rebased(t, i), r.undone.rebased(t, i), Ya(r.prevRanges, t.mapping), r.prevTime, r.prevComposition) : new vr(r.done.addMaps(t.mapping.maps), r.undone.addMaps(t.mapping.maps), Ya(r.prevRanges, t.mapping), r.prevTime, r.prevComposition);
20592
20592
  }
@@ -20601,7 +20601,7 @@ function t3(r, e) {
20601
20601
  o <= e[i + 1] && n >= e[i] && (t = !0);
20602
20602
  }), t;
20603
20603
  }
20604
- function Xp(r) {
20604
+ function Qp(r) {
20605
20605
  let e = [];
20606
20606
  for (let t = r.length - 1; t >= 0 && e.length == 0; t--)
20607
20607
  r[t].forEach((o, n, i, s) => e.push(i, s));
@@ -20624,11 +20624,11 @@ function r3(r, e, t) {
20624
20624
  let s = i.selection.resolve(i.transform.doc), a = (t ? r.done : r.undone).addTransform(i.transform, e.selection.getBookmark(), n, o), l = new vr(t ? a : i.remaining, t ? i.remaining : a, null, 0, -1);
20625
20625
  return i.transform.setSelection(s).setMeta(lo, { redo: t, historyState: l });
20626
20626
  }
20627
- let Xa = !1, Qp = null;
20627
+ let Xa = !1, Zp = null;
20628
20628
  function Zi(r) {
20629
20629
  let e = r.plugins;
20630
- if (Qp != e) {
20631
- Xa = !1, Qp = e;
20630
+ if (Zp != e) {
20631
+ Xa = !1, Zp = e;
20632
20632
  for (let t = 0; t < e.length; t++)
20633
20633
  if (e[t].spec.historyPreserveItems) {
20634
20634
  Xa = !0;
@@ -20847,7 +20847,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), i3 = Xe.create({
20847
20847
  "Shift-Tab": () => this.editor.commands.liftListItem(this.name)
20848
20848
  };
20849
20849
  }
20850
- }), m3 = "listItem", Zp = "textStyle", eu = /^(\d+)\.\s$/, h3 = _t.create({
20850
+ }), m3 = "listItem", eu = "textStyle", tu = /^(\d+)\.\s$/, h3 = _t.create({
20851
20851
  name: "orderedList",
20852
20852
  addOptions() {
20853
20853
  return {
@@ -20886,7 +20886,7 @@ const vg = wg(!1, !0), xg = wg(!0, !0), i3 = Xe.create({
20886
20886
  },
20887
20887
  addCommands() {
20888
20888
  return {
20889
- toggleOrderedList: () => ({ commands: r, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(m3, this.editor.getAttributes(Zp)).run() : r.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
20889
+ toggleOrderedList: () => ({ commands: r, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(m3, this.editor.getAttributes(eu)).run() : r.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
20890
20890
  };
20891
20891
  },
20892
20892
  addKeyboardShortcuts() {
@@ -20896,17 +20896,17 @@ const vg = wg(!1, !0), xg = wg(!0, !0), i3 = Xe.create({
20896
20896
  },
20897
20897
  addInputRules() {
20898
20898
  let r = qn({
20899
- find: eu,
20899
+ find: tu,
20900
20900
  type: this.type,
20901
20901
  getAttributes: (e) => ({ start: +e[1] }),
20902
20902
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
20903
20903
  });
20904
20904
  return (this.options.keepMarks || this.options.keepAttributes) && (r = qn({
20905
- find: eu,
20905
+ find: tu,
20906
20906
  type: this.type,
20907
20907
  keepMarks: this.options.keepMarks,
20908
20908
  keepAttributes: this.options.keepAttributes,
20909
- getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(Zp) }),
20909
+ getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(eu) }),
20910
20910
  joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
20911
20911
  editor: this.editor
20912
20912
  })), [
@@ -21151,7 +21151,7 @@ mt.prototype = {
21151
21151
  return n.j[r] = s, s;
21152
21152
  }
21153
21153
  };
21154
- const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Oe = (r, e, t, o, n) => r.tr(e, t, o, n), tu = (r, e, t, o, n) => r.ts(e, t, o, n), D = (r, e, t, o, n) => r.tt(e, t, o, n), ir = "WORD", Wl = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", Xn = "LOCALHOST", ql = "TLD", Kl = "UTLD", es = "SCHEME", No = "SLASH_SCHEME", Wd = "NUM", Gl = "WS", qd = "NL", Pn = "OPENBRACE", An = "CLOSEBRACE", ks = "OPENBRACKET", Ss = "CLOSEBRACKET", Cs = "OPENPAREN", Es = "CLOSEPAREN", Ms = "OPENANGLEBRACKET", Ts = "CLOSEANGLEBRACKET", Os = "FULLWIDTHLEFTPAREN", Ps = "FULLWIDTHRIGHTPAREN", As = "LEFTCORNERBRACKET", Bs = "RIGHTCORNERBRACKET", Ls = "LEFTWHITECORNERBRACKET", Ns = "RIGHTWHITECORNERBRACKET", Is = "FULLWIDTHLESSTHAN", Ds = "FULLWIDTHGREATERTHAN", Rs = "AMPERSAND", $s = "APOSTROPHE", zs = "ASTERISK", xr = "AT", _s = "BACKSLASH", Fs = "BACKTICK", js = "CARET", Sr = "COLON", Kd = "COMMA", Hs = "DOLLAR", jt = "DOT", Vs = "EQUALS", Gd = "EXCLAMATION", Mt = "HYPHEN", Bn = "PERCENT", Us = "PIPE", Ws = "PLUS", qs = "POUND", Ln = "QUERY", Jd = "QUOTE", Eg = "FULLWIDTHMIDDLEDOT", Yd = "SEMI", Ht = "SLASH", Nn = "TILDE", Ks = "UNDERSCORE", Mg = "EMOJI", Gs = "SYM";
21154
+ const ee = (r, e, t, o, n) => r.ta(e, t, o, n), Oe = (r, e, t, o, n) => r.tr(e, t, o, n), ru = (r, e, t, o, n) => r.ts(e, t, o, n), D = (r, e, t, o, n) => r.tt(e, t, o, n), ir = "WORD", Wl = "UWORD", Sg = "ASCIINUMERICAL", Cg = "ALPHANUMERICAL", Xn = "LOCALHOST", ql = "TLD", Kl = "UTLD", es = "SCHEME", No = "SLASH_SCHEME", qd = "NUM", Gl = "WS", Kd = "NL", Pn = "OPENBRACE", An = "CLOSEBRACE", ks = "OPENBRACKET", Ss = "CLOSEBRACKET", Cs = "OPENPAREN", Es = "CLOSEPAREN", Ms = "OPENANGLEBRACKET", Ts = "CLOSEANGLEBRACKET", Os = "FULLWIDTHLEFTPAREN", Ps = "FULLWIDTHRIGHTPAREN", As = "LEFTCORNERBRACKET", Bs = "RIGHTCORNERBRACKET", Ls = "LEFTWHITECORNERBRACKET", Ns = "RIGHTWHITECORNERBRACKET", Is = "FULLWIDTHLESSTHAN", Ds = "FULLWIDTHGREATERTHAN", Rs = "AMPERSAND", $s = "APOSTROPHE", zs = "ASTERISK", xr = "AT", _s = "BACKSLASH", Fs = "BACKTICK", js = "CARET", Sr = "COLON", Gd = "COMMA", Hs = "DOLLAR", jt = "DOT", Vs = "EQUALS", Jd = "EXCLAMATION", Mt = "HYPHEN", Bn = "PERCENT", Us = "PIPE", Ws = "PLUS", qs = "POUND", Ln = "QUERY", Yd = "QUOTE", Eg = "FULLWIDTHMIDDLEDOT", Xd = "SEMI", Ht = "SLASH", Nn = "TILDE", Ks = "UNDERSCORE", Mg = "EMOJI", Gs = "SYM";
21155
21155
  var Tg = /* @__PURE__ */ Object.freeze({
21156
21156
  __proto__: null,
21157
21157
  ALPHANUMERICAL: Cg,
@@ -21168,12 +21168,12 @@ var Tg = /* @__PURE__ */ Object.freeze({
21168
21168
  CLOSEBRACKET: Ss,
21169
21169
  CLOSEPAREN: Es,
21170
21170
  COLON: Sr,
21171
- COMMA: Kd,
21171
+ COMMA: Gd,
21172
21172
  DOLLAR: Hs,
21173
21173
  DOT: jt,
21174
21174
  EMOJI: Mg,
21175
21175
  EQUALS: Vs,
21176
- EXCLAMATION: Gd,
21176
+ EXCLAMATION: Jd,
21177
21177
  FULLWIDTHGREATERTHAN: Ds,
21178
21178
  FULLWIDTHLEFTPAREN: Os,
21179
21179
  FULLWIDTHLESSTHAN: Is,
@@ -21183,8 +21183,8 @@ var Tg = /* @__PURE__ */ Object.freeze({
21183
21183
  LEFTCORNERBRACKET: As,
21184
21184
  LEFTWHITECORNERBRACKET: Ls,
21185
21185
  LOCALHOST: Xn,
21186
- NL: qd,
21187
- NUM: Wd,
21186
+ NL: Kd,
21187
+ NUM: qd,
21188
21188
  OPENANGLEBRACKET: Ms,
21189
21189
  OPENBRACE: Pn,
21190
21190
  OPENBRACKET: ks,
@@ -21194,11 +21194,11 @@ var Tg = /* @__PURE__ */ Object.freeze({
21194
21194
  PLUS: Ws,
21195
21195
  POUND: qs,
21196
21196
  QUERY: Ln,
21197
- QUOTE: Jd,
21197
+ QUOTE: Yd,
21198
21198
  RIGHTCORNERBRACKET: Bs,
21199
21199
  RIGHTWHITECORNERBRACKET: Ns,
21200
21200
  SCHEME: es,
21201
- SEMI: Yd,
21201
+ SEMI: Xd,
21202
21202
  SLASH: Ht,
21203
21203
  SLASH_SCHEME: No,
21204
21204
  SYM: Gs,
@@ -21210,15 +21210,15 @@ var Tg = /* @__PURE__ */ Object.freeze({
21210
21210
  WORD: ir,
21211
21211
  WS: Gl
21212
21212
  });
21213
- const or = /[a-z]/, mn = new RegExp("\\p{L}", "u"), Za = new RegExp("\\p{Emoji}", "u"), nr = /\d/, el = /\s/, ru = "\r", tl = `
21213
+ const or = /[a-z]/, mn = new RegExp("\\p{L}", "u"), Za = new RegExp("\\p{Emoji}", "u"), nr = /\d/, el = /\s/, ou = "\r", tl = `
21214
21214
  `, T3 = "️", O3 = "‍", rl = "";
21215
21215
  let ji = null, Hi = null;
21216
21216
  function P3(r = []) {
21217
21217
  const e = {};
21218
21218
  mt.groups = e;
21219
21219
  const t = new mt();
21220
- ji == null && (ji = ou(x3)), Hi == null && (Hi = ou(k3)), D(t, "'", $s), D(t, "{", Pn), D(t, "}", An), D(t, "[", ks), D(t, "]", Ss), D(t, "(", Cs), D(t, ")", Es), D(t, "<", Ms), D(t, ">", Ts), D(t, "(", Os), D(t, ")", Ps), D(t, "「", As), D(t, "」", Bs), D(t, "『", Ls), D(t, "』", Ns), D(t, "<", Is), D(t, ">", Ds), D(t, "&", Rs), D(t, "*", zs), D(t, "@", xr), D(t, "`", Fs), D(t, "^", js), D(t, ":", Sr), D(t, ",", Kd), D(t, "$", Hs), D(t, ".", jt), D(t, "=", Vs), D(t, "!", Gd), D(t, "-", Mt), D(t, "%", Bn), D(t, "|", Us), D(t, "+", Ws), D(t, "#", qs), D(t, "?", Ln), D(t, '"', Jd), D(t, "/", Ht), D(t, ";", Yd), D(t, "~", Nn), D(t, "_", Ks), D(t, "\\", _s), D(t, "・", Eg);
21221
- const o = Oe(t, nr, Wd, {
21220
+ ji == null && (ji = nu(x3)), Hi == null && (Hi = nu(k3)), D(t, "'", $s), D(t, "{", Pn), D(t, "}", An), D(t, "[", ks), D(t, "]", Ss), D(t, "(", Cs), D(t, ")", Es), D(t, "<", Ms), D(t, ">", Ts), D(t, "(", Os), D(t, ")", Ps), D(t, "「", As), D(t, "」", Bs), D(t, "『", Ls), D(t, "』", Ns), D(t, "<", Is), D(t, ">", Ds), D(t, "&", Rs), D(t, "*", zs), D(t, "@", xr), D(t, "`", Fs), D(t, "^", js), D(t, ":", Sr), D(t, ",", Gd), D(t, "$", Hs), D(t, ".", jt), D(t, "=", Vs), D(t, "!", Jd), D(t, "-", Mt), D(t, "%", Bn), D(t, "|", Us), D(t, "+", Ws), D(t, "#", qs), D(t, "?", Ln), D(t, '"', Yd), D(t, "/", Ht), D(t, ";", Xd), D(t, "~", Nn), D(t, "_", Ks), D(t, "\\", _s), D(t, "・", Eg);
21221
+ const o = Oe(t, nr, qd, {
21222
21222
  [jl]: !0
21223
21223
  });
21224
21224
  Oe(o, nr, o);
@@ -21234,14 +21234,14 @@ function P3(r = []) {
21234
21234
  [Vl]: !0
21235
21235
  });
21236
21236
  Oe(a, or), Oe(a, nr, i), Oe(a, mn, a), Oe(i, nr, i), Oe(i, or), Oe(i, mn, i);
21237
- const l = D(t, tl, qd, {
21237
+ const l = D(t, tl, Kd, {
21238
21238
  [Qa]: !0
21239
- }), d = D(t, ru, Gl, {
21239
+ }), d = D(t, ou, Gl, {
21240
21240
  [Qa]: !0
21241
21241
  }), c = Oe(t, el, Gl, {
21242
21242
  [Qa]: !0
21243
21243
  });
21244
- D(t, rl, c), D(d, tl, l), D(d, rl, c), Oe(d, el, c), D(c, ru), D(c, tl), Oe(c, el, c), D(c, rl, c);
21244
+ D(t, rl, c), D(d, tl, l), D(d, rl, c), Oe(d, el, c), D(c, ou), D(c, tl), Oe(c, el, c), D(c, rl, c);
21245
21245
  const p = Oe(t, Za, Mg, {
21246
21246
  [kg]: !0
21247
21247
  });
@@ -21272,9 +21272,9 @@ function P3(r = []) {
21272
21272
  } : {
21273
21273
  [C3]: !0
21274
21274
  };
21275
- b.indexOf("-") >= 0 ? E[Ul] = !0 : or.test(b) ? nr.test(b) ? E[On] = !0 : E[Hl] = !0 : E[jl] = !0, tu(t, b, b, E);
21275
+ b.indexOf("-") >= 0 ? E[Ul] = !0 : or.test(b) ? nr.test(b) ? E[On] = !0 : E[Hl] = !0 : E[jl] = !0, ru(t, b, b, E);
21276
21276
  }
21277
- return tu(t, "localhost", Xn, {
21277
+ return ru(t, "localhost", Xn, {
21278
21278
  ascii: !0
21279
21279
  }), t.jd = new mt(Gs), {
21280
21280
  start: t,
@@ -21321,7 +21321,7 @@ function br(r, e, t, o, n) {
21321
21321
  }
21322
21322
  return i = new mt(t), i.jr = n.slice(), r.j[e[s - 1]] = i, i;
21323
21323
  }
21324
- function ou(r) {
21324
+ function nu(r) {
21325
21325
  const e = [], t = [];
21326
21326
  let o = 0, n = "0123456789";
21327
21327
  for (; o < r.length; ) {
@@ -21341,8 +21341,8 @@ function ou(r) {
21341
21341
  const Qn = {
21342
21342
  defaultProtocol: "http",
21343
21343
  events: null,
21344
- format: nu,
21345
- formatHref: nu,
21344
+ format: iu,
21345
+ formatHref: iu,
21346
21346
  nl2br: !1,
21347
21347
  tagName: "a",
21348
21348
  target: null,
@@ -21354,15 +21354,15 @@ const Qn = {
21354
21354
  ignoreTags: [],
21355
21355
  render: null
21356
21356
  };
21357
- function Xd(r, e = null) {
21357
+ function Qd(r, e = null) {
21358
21358
  let t = Jo({}, Qn);
21359
- r && (t = Jo(t, r instanceof Xd ? r.o : r));
21359
+ r && (t = Jo(t, r instanceof Qd ? r.o : r));
21360
21360
  const o = t.ignoreTags, n = [];
21361
21361
  for (let i = 0; i < o.length; i++)
21362
21362
  n.push(o[i].toUpperCase());
21363
21363
  this.o = t, e && (this.defaultRender = e), this.ignoreTags = n;
21364
21364
  }
21365
- Xd.prototype = {
21365
+ Qd.prototype = {
21366
21366
  o: Qn,
21367
21367
  /**
21368
21368
  * @type string[]
@@ -21424,7 +21424,7 @@ Xd.prototype = {
21424
21424
  return (this.get("render", null, r) || this.defaultRender)(e, r.t, r);
21425
21425
  }
21426
21426
  };
21427
- function nu(r) {
21427
+ function iu(r) {
21428
21428
  return r;
21429
21429
  }
21430
21430
  function Pg(r, e) {
@@ -21544,12 +21544,12 @@ function ba(r, e) {
21544
21544
  t.prototype[o] = e[o];
21545
21545
  return t.t = r, t;
21546
21546
  }
21547
- const iu = ba("email", {
21547
+ const su = ba("email", {
21548
21548
  isLink: !0,
21549
21549
  toHref() {
21550
21550
  return "mailto:" + this.toString();
21551
21551
  }
21552
- }), su = ba("text"), B3 = ba("nl"), Vi = ba("url", {
21552
+ }), au = ba("text"), B3 = ba("nl"), Vi = ba("url", {
21553
21553
  isLink: !0,
21554
21554
  /**
21555
21555
  Lowercases relevant parts of the domain and adds the protocol if
@@ -21573,7 +21573,7 @@ const iu = ba("email", {
21573
21573
  function L3({
21574
21574
  groups: r
21575
21575
  }) {
21576
- const e = r.domain.concat([Rs, zs, xr, _s, Fs, js, Hs, Vs, Mt, Wd, Bn, Us, Ws, qs, Ht, Gs, Nn, Ks]), t = [$s, Sr, Kd, jt, Gd, Bn, Ln, Jd, Yd, Ms, Ts, Pn, An, Ss, ks, Cs, Es, Os, Ps, As, Bs, Ls, Ns, Is, Ds], o = [Rs, $s, zs, _s, Fs, js, Hs, Vs, Mt, Pn, An, Bn, Us, Ws, qs, Ln, Ht, Gs, Nn, Ks], n = Ct(), i = D(n, Nn);
21576
+ const e = r.domain.concat([Rs, zs, xr, _s, Fs, js, Hs, Vs, Mt, qd, Bn, Us, Ws, qs, Ht, Gs, Nn, Ks]), t = [$s, Sr, Gd, jt, Jd, Bn, Ln, Yd, Xd, Ms, Ts, Pn, An, Ss, ks, Cs, Es, Os, Ps, As, Bs, Ls, Ns, Is, Ds], o = [Rs, $s, zs, _s, Fs, js, Hs, Vs, Mt, Pn, An, Bn, Us, Ws, qs, Ln, Ht, Gs, Nn, Ks], n = Ct(), i = D(n, Nn);
21577
21577
  ee(i, o, i), ee(i, r.domain, i);
21578
21578
  const s = Ct(), a = Ct(), l = Ct();
21579
21579
  ee(n, r.domain, s), ee(n, r.scheme, a), ee(n, r.slashscheme, l), ee(s, o, i), ee(s, r.domain, s);
@@ -21585,12 +21585,12 @@ function L3({
21585
21585
  ee(d, r.domain, p), ee(p, r.domain, p);
21586
21586
  const u = D(p, jt);
21587
21587
  ee(u, r.domain, p);
21588
- const m = Ct(iu);
21588
+ const m = Ct(su);
21589
21589
  ee(u, r.tld, m), ee(u, r.utld, m), D(d, Xn, m);
21590
21590
  const h = D(p, Mt);
21591
21591
  D(h, Mt, h), ee(h, r.domain, p), ee(m, r.domain, p), D(m, jt, u), D(m, Mt, h);
21592
21592
  const f = D(m, Sr);
21593
- ee(f, r.numeric, iu);
21593
+ ee(f, r.numeric, su);
21594
21594
  const b = D(s, Mt), w = D(s, jt);
21595
21595
  D(b, Mt, b), ee(b, r.domain, s), ee(w, o, i), ee(w, r.domain, s);
21596
21596
  const E = Ct(Vi);
@@ -21627,7 +21627,7 @@ function L3({
21627
21627
  const le = Ct();
21628
21628
  ee(Y, t), ee(Z, e, Z), ee(Z, t, le), ee(le, e, Z), ee(le, t, le), D(Z, ne, M), D(le, ne, M);
21629
21629
  }
21630
- return D(n, Xn, E), D(n, qd, B3), {
21630
+ return D(n, Xn, E), D(n, Kd, B3), {
21631
21631
  start: n,
21632
21632
  tokens: Tg
21633
21633
  };
@@ -21643,12 +21643,12 @@ function N3(r, e, t) {
21643
21643
  if (u < 0)
21644
21644
  n -= c, n < o && (s.push(t[n]), n++);
21645
21645
  else {
21646
- s.length > 0 && (i.push(ol(su, e, s)), s = []), n -= u, c -= u;
21646
+ s.length > 0 && (i.push(ol(au, e, s)), s = []), n -= u, c -= u;
21647
21647
  const m = p.t, h = t.slice(n - c, n);
21648
21648
  i.push(ol(m, e, h));
21649
21649
  }
21650
21650
  }
21651
- return s.length > 0 && i.push(ol(su, e, s)), i;
21651
+ return s.length > 0 && i.push(ol(au, e, s)), i;
21652
21652
  }
21653
21653
  function ol(r, e, t) {
21654
21654
  const o = t[0].s, n = t[t.length - 1].e, i = e.slice(o, n);
@@ -21666,7 +21666,7 @@ const I3 = typeof console < "u" && console && console.warn || (() => {
21666
21666
  function R3() {
21667
21667
  return mt.groups = {}, ke.scanner = null, ke.parser = null, ke.tokenQueue = [], ke.pluginQueue = [], ke.customSchemes = [], ke.initialized = !1, ke;
21668
21668
  }
21669
- function au(r, e = !1) {
21669
+ function lu(r, e = !1) {
21670
21670
  if (ke.initialized && I3(`linkifyjs: already initialized - will not register custom scheme "${r}" ${D3}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(r))
21671
21671
  throw new Error(`linkifyjs: incorrect scheme format.
21672
21672
  1. Must only contain digits, lowercase ASCII letters or "-"
@@ -21688,17 +21688,17 @@ function $3() {
21688
21688
  });
21689
21689
  return ke.initialized = !0, ke;
21690
21690
  }
21691
- function Qd(r) {
21691
+ function Zd(r) {
21692
21692
  return ke.initialized || $3(), N3(ke.parser.start, r, Og(ke.scanner.start, r));
21693
21693
  }
21694
- Qd.scan = Og;
21694
+ Zd.scan = Og;
21695
21695
  function Ag(r, e = null, t = null) {
21696
21696
  if (e && typeof e == "object") {
21697
21697
  if (t)
21698
21698
  throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);
21699
21699
  t = e, e = null;
21700
21700
  }
21701
- const o = new Xd(t), n = Qd(r), i = [];
21701
+ const o = new Qd(t), n = Zd(r), i = [];
21702
21702
  for (let s = 0; s < n.length; s++) {
21703
21703
  const a = n[s];
21704
21704
  a.isLink && (!e || a.t === e) && o.check(a) && i.push(a.toFormattedObject(o));
@@ -21726,7 +21726,7 @@ function _3(r) {
21726
21726
  const h = m[m.length - 1], f = p.pos + u.lastIndexOf(h);
21727
21727
  if (!h)
21728
21728
  return !1;
21729
- const b = Qd(h).map((w) => w.toObject(r.defaultProtocol));
21729
+ const b = Zd(h).map((w) => w.toObject(r.defaultProtocol));
21730
21730
  if (!z3(b))
21731
21731
  return !1;
21732
21732
  b.filter((w) => w.isLink).map((w) => ({
@@ -21734,7 +21734,7 @@ function _3(r) {
21734
21734
  from: f + w.start + 1,
21735
21735
  to: f + w.end + 1
21736
21736
  })).filter((w) => o.schema.marks.code ? !o.doc.rangeHasMark(w.from, w.to, o.schema.marks.code) : !0).filter((w) => r.validate(w.value)).filter((w) => r.shouldAutoLink(w.value)).forEach((w) => {
21737
- Id(w.from, w.to, o.doc).some((E) => E.mark.type === r.type) || s.addMark(w.from, w.to, r.type.create({
21737
+ Dd(w.from, w.to, o.doc).some((E) => E.mark.type === r.type) || s.addMark(w.from, w.to, r.type.create({
21738
21738
  href: w.href
21739
21739
  }));
21740
21740
  });
@@ -21815,10 +21815,10 @@ const V3 = mr.create({
21815
21815
  onCreate() {
21816
21816
  this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((r) => {
21817
21817
  if (typeof r == "string") {
21818
- au(r);
21818
+ lu(r);
21819
21819
  return;
21820
21820
  }
21821
- au(r.scheme, r.optionalSlashes);
21821
+ lu(r.scheme, r.optionalSlashes);
21822
21822
  });
21823
21823
  },
21824
21824
  onDestroy() {
@@ -22172,7 +22172,7 @@ const V3 = mr.create({
22172
22172
  ])
22173
22173
  ]));
22174
22174
  }
22175
- }, Zd = (r, e) => {
22175
+ }, ec = (r, e) => {
22176
22176
  const t = r.__vccOpts || r;
22177
22177
  for (const [o, n] of e)
22178
22178
  t[o] = n;
@@ -22181,7 +22181,7 @@ const V3 = mr.create({
22181
22181
  function a4(r, e) {
22182
22182
  return S(), O("div", null, "NoneCustomMediaLibraryComponent here for the page builder to add media if needed");
22183
22183
  }
22184
- const l4 = /* @__PURE__ */ Zd(s4, [["render", a4]]), d4 = { class: "flex items-end justify-center text-center sm:block sm:p-0" }, c4 = { class: "font-sans relative max-h-[65rem] my-2 inline-block align-bottom bg-white rounded-2xl text-left overflow-hidden shadow-xl transform transition-all sm:align-middle sm:max-w-7xl sm:w-full w-[96%]" }, p4 = { class: "flex gap-2 justify-between items-center border-b border-gray-200 p-4 mb-2" }, u4 = { class: "p-4" }, m4 = {
22184
+ const l4 = /* @__PURE__ */ ec(s4, [["render", a4]]), d4 = { class: "flex items-end justify-center text-center sm:block sm:p-0" }, c4 = { class: "font-sans relative max-h-[65rem] my-2 inline-block align-bottom bg-white rounded-2xl text-left overflow-hidden shadow-xl transform transition-all sm:align-middle sm:max-w-7xl sm:w-full w-[96%]" }, p4 = { class: "flex gap-2 justify-between items-center border-b border-gray-200 p-4 mb-2" }, u4 = { class: "p-4" }, m4 = {
22185
22185
  key: 0,
22186
22186
  class: "w-full"
22187
22187
  }, h4 = { key: 1 }, g4 = {
@@ -22250,7 +22250,7 @@ const l4 = /* @__PURE__ */ Zd(s4, [["render", a4]]), d4 = { class: "flex items-e
22250
22250
  "leave-to": "opacity-0"
22251
22251
  }, {
22252
22252
  default: z(() => [
22253
- R(T(id), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
22253
+ R(T(sd), { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" })
22254
22254
  ]),
22255
22255
  _: 1
22256
22256
  }),
@@ -22270,7 +22270,7 @@ const l4 = /* @__PURE__ */ Zd(s4, [["render", a4]]), d4 = { class: "flex items-e
22270
22270
  default: z(() => [
22271
22271
  g("div", c4, [
22272
22272
  g("div", p4, [
22273
- R(T(sd), {
22273
+ R(T(ad), {
22274
22274
  as: "h3",
22275
22275
  class: "tertiaryHeader my-0 py-0"
22276
22276
  }, {
@@ -22292,7 +22292,7 @@ const l4 = /* @__PURE__ */ Zd(s4, [["render", a4]]), d4 = { class: "flex items-e
22292
22292
  ]),
22293
22293
  g("div", u4, [
22294
22294
  r.customMediaComponent ? (S(), O("div", m4, [
22295
- (S(), xe(uu(r.customMediaComponent)))
22295
+ (S(), xe(mu(r.customMediaComponent)))
22296
22296
  ])) : (S(), O("div", h4, [
22297
22297
  R(l4)
22298
22298
  ]))
@@ -22778,7 +22778,7 @@ class="border-2 border-gray-600 flex items-centre justify-start rounded-md font-
22778
22778
  title: "Link",
22779
22779
  icon: `
22780
22780
  <span class="material-symbols-outlined">
22781
- horizontal_rule
22781
+ link
22782
22782
  </span>
22783
22783
  `
22784
22784
  }
@@ -23209,62 +23209,60 @@ function J4() {
23209
23209
  const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4" }, Z4 = ["onClick"], ek = { class: "max-h-72 cursor-pointer object-contain bg-white mx-auto" }, tk = ["innerHTML"], rk = { class: "myPrimaryParagraph text-sm font-normal" }, ok = { class: "myPrimaryParagraph text-xs font-normal pt-2" }, nk = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4" }, ik = ["onClick"], sk = { class: "overflow-hidden whitespace-pre-line flex-1 h-auto border-b border-gray-200 lg:py-10 py-8 px-2" }, ak = ["innerHTML"], lk = { class: "p-3" }, dk = { class: "myPrimaryParagraph text-sm font-normal" }, ck = /* @__PURE__ */ he({
23210
23210
  __name: "NoneCustomSearchComponent",
23211
23211
  setup(r) {
23212
- const e = re("pageBuilderStateStore"), { closeAddComponentModal: t } = J4(), o = new Qe(e);
23213
- x({});
23214
- const n = function(a) {
23215
- o.addComponent(a), t();
23216
- }, i = function(a) {
23212
+ const e = re("internalPinia"), { closeAddComponentModal: t } = J4(), o = ed(e), n = new Qe(o), i = function(l) {
23213
+ n.addComponent(l), t();
23214
+ }, s = function(l) {
23217
23215
  return {
23218
23216
  id: null,
23219
23217
  // Generate ID when needed in PageBuilderClass
23220
- html_code: a.html_code,
23221
- title: a.title
23218
+ html_code: l.html_code,
23219
+ title: l.title
23222
23220
  };
23223
- }, s = (a) => K4(a);
23224
- return (a, l) => (S(), O("div", Y4, [
23221
+ }, a = (l) => K4(l);
23222
+ return (l, d) => (S(), O("div", Y4, [
23225
23223
  g("div", X4, [
23226
- l[0] || (l[0] = g("h3", { class: "myQuaternaryHeader mb-4" }, "Helper Components", -1)),
23224
+ d[0] || (d[0] = g("h3", { class: "myQuaternaryHeader mb-4" }, "Helper Components", -1)),
23227
23225
  g("div", Q4, [
23228
- (S(!0), O(ve, null, Le(T(W4), (d) => (S(), O("div", {
23229
- key: d.title,
23226
+ (S(!0), O(ve, null, Le(T(W4), (c) => (S(), O("div", {
23227
+ key: c.title,
23230
23228
  class: "border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer p-4",
23231
- onClick: (c) => n(d)
23229
+ onClick: (p) => i(c)
23232
23230
  }, [
23233
23231
  g("div", ek, [
23234
23232
  g("div", {
23235
23233
  class: "mr-2",
23236
- innerHTML: d.icon
23234
+ innerHTML: c.icon
23237
23235
  }, null, 8, tk),
23238
- g("h4", rk, F(d.title), 1)
23236
+ g("h4", rk, F(c.title), 1)
23239
23237
  ]),
23240
- g("div", ok, " Click to add " + F(d.title.toLowerCase()) + " component ", 1)
23238
+ g("div", ok, " Click to add " + F(c.title.toLowerCase()) + " component ", 1)
23241
23239
  ], 8, Z4))), 128))
23242
23240
  ])
23243
23241
  ]),
23244
23242
  g("div", null, [
23245
- l[2] || (l[2] = g("h3", { class: "myQuaternaryHeader mb-4" }, "Layout Components", -1)),
23243
+ d[2] || (d[2] = g("h3", { class: "myQuaternaryHeader mb-4" }, "Layout Components", -1)),
23246
23244
  g("div", nk, [
23247
- (S(!0), O(ve, null, Le(T(G4)[0].components.data, (d) => (S(), O("div", {
23248
- key: d.title,
23245
+ (S(!0), O(ve, null, Le(T(G4)[0].components.data, (c) => (S(), O("div", {
23246
+ key: c.title,
23249
23247
  class: "border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer",
23250
- onClick: (c) => n(i(d))
23248
+ onClick: (p) => i(s(c))
23251
23249
  }, [
23252
23250
  g("div", sk, [
23253
23251
  g("div", {
23254
23252
  class: "max-h-72 cursor-pointer bg-white mx-auto flex items-center justify-center",
23255
- innerHTML: s(d.title)
23253
+ innerHTML: a(c.title)
23256
23254
  }, null, 8, ak)
23257
23255
  ]),
23258
23256
  g("div", lk, [
23259
- g("h4", dk, F(d.title), 1),
23260
- l[1] || (l[1] = g("div", { class: "myPrimaryParagraph text-xs font-normal pt-2" }, "Click to add component", -1))
23257
+ g("h4", dk, F(c.title), 1),
23258
+ d[1] || (d[1] = g("div", { class: "myPrimaryParagraph text-xs font-normal pt-2" }, "Click to add component", -1))
23261
23259
  ])
23262
23260
  ], 8, ik))), 128))
23263
23261
  ])
23264
23262
  ])
23265
23263
  ]));
23266
23264
  }
23267
- }), pk = /* @__PURE__ */ Zd(ck, [["__scopeId", "data-v-22a91b92"]]), uk = { class: "font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle" }, mk = { class: "flex items-center border-b border-gray-200 p-4 mb-2" }, hk = { class: "flex-1" }, gk = { class: "tertiaryHeader my-0 py-0" }, fk = { class: "p-4" }, bk = {
23265
+ }), pk = /* @__PURE__ */ ec(ck, [["__scopeId", "data-v-49dc60c4"]]), uk = { class: "font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle" }, mk = { class: "flex items-center border-b border-gray-200 p-4 mb-2" }, hk = { class: "flex-1" }, gk = { class: "tertiaryHeader my-0 py-0" }, fk = { class: "p-4" }, bk = {
23268
23266
  key: 0,
23269
23267
  class: "border border-gray-200 rounded-lg p-4"
23270
23268
  }, yk = { key: 1 }, wk = { class: "bg-slate-50 px-2 py-4 flex sm:justify-end justify-center" }, vk = { class: "sm:w-3/6 w-full px-2 my-2 flex gap-2 justify-end" }, xk = {
@@ -23313,7 +23311,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
23313
23311
  ]),
23314
23312
  g("div", fk, [
23315
23313
  r.CustomSearchComponent ? (S(), O("div", bk, [
23316
- (S(), xe(uu(r.CustomSearchComponent)))
23314
+ (S(), xe(mu(r.CustomSearchComponent)))
23317
23315
  ])) : (S(), O("div", yk, [
23318
23316
  R(pk)
23319
23317
  ]))
@@ -23377,7 +23375,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
23377
23375
  g("div", Ek, [
23378
23376
  g("div", Mk, [
23379
23377
  g("div", Tk, [
23380
- R(T(sd), { class: "myTertiaryHeader my-0" }, {
23378
+ R(T(ad), { class: "myTertiaryHeader my-0" }, {
23381
23379
  default: z(() => [
23382
23380
  De(F(r.title), 1)
23383
23381
  ]),
@@ -23458,7 +23456,7 @@ const Y4 = { class: "p-4" }, X4 = { class: "mb-8" }, Q4 = { class: "grid grid-co
23458
23456
  g("div", Ik, [
23459
23457
  g("div", Dk, [
23460
23458
  g("div", Rk, [
23461
- R(T(sd), { class: "myTertiaryHeader my-0" }, {
23459
+ R(T(ad), { class: "myTertiaryHeader my-0" }, {
23462
23460
  default: z(() => [
23463
23461
  De(F(r.title), 1)
23464
23462
  ]),
@@ -23913,7 +23911,7 @@ function D6(r, e, t, o, n, i) {
23913
23911
  ], 2)
23914
23912
  ], 2);
23915
23913
  }
23916
- const en = /* @__PURE__ */ Zd(B6, [["render", D6]]), R6 = { class: "flex flex-row flex-wrap gap-2 mt-2 mb-4" }, $6 = ["onClick"], z6 = { class: "flex items-center gap-1" }, _6 = { class: "mr-1" }, F6 = { class: "flex gap-2 item-center flex-col" }, j6 = { class: "flex gap-2 item-center" }, H6 = { class: "mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0" }, V6 = {
23914
+ const en = /* @__PURE__ */ ec(B6, [["render", D6]]), R6 = { class: "flex flex-row flex-wrap gap-2 mt-2 mb-4" }, $6 = ["onClick"], z6 = { class: "flex items-center gap-1" }, _6 = { class: "mr-1" }, F6 = { class: "flex gap-2 item-center flex-col" }, j6 = { class: "flex gap-2 item-center" }, H6 = { class: "mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0" }, V6 = {
23917
23915
  __name: "ClassEditor",
23918
23916
  setup(r) {
23919
23917
  const e = re("pageBuilderStateStore"), t = new Qe(e), o = x(null), n = L(() => e.getCurrentClasses);
@@ -23952,7 +23950,7 @@ const en = /* @__PURE__ */ Zd(B6, [["render", D6]]), R6 = { class: "flex flex-ro
23952
23950
  "onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
23953
23951
  type: "text",
23954
23952
  placeholder: "Type class",
23955
- onKeydown: l[1] || (l[1] = pu((d) => s(), ["enter"])),
23953
+ onKeydown: l[1] || (l[1] = uu((d) => s(), ["enter"])),
23956
23954
  autocomplete: "off",
23957
23955
  class: "myPrimaryInput border-none rounded-r-none ml-0 w-full"
23958
23956
  }, null, 544), [
@@ -24761,7 +24759,7 @@ const en = /* @__PURE__ */ Zd(B6, [["render", D6]]), R6 = { class: "flex flex-ro
24761
24759
  }
24762
24760
  },
24763
24761
  setup(r) {
24764
- const e = "v3.0.32", t = r, o = wf(), n = Lu(o);
24762
+ const e = "v3.0.33", t = r, o = wf(), n = ed(o);
24765
24763
  t.PageBuilderLogo && n.setPageBuilderLogo(t.PageBuilderLogo);
24766
24764
  const i = L(() => n.getPageBuilderLogo);
24767
24765
  t.resourceData && n.setCurrentResourceData(t.resourceData), t.userForPageBuilder && n.setCurrentUser(t.userForPageBuilder), n.setUpdateOrCreate(t.updateOrCreate);
@@ -24955,7 +24953,7 @@ const en = /* @__PURE__ */ Zd(B6, [["render", D6]]), R6 = { class: "flex flex-ro
24955
24953
  }, v[27] || (v[27] = [
24956
24954
  g("div", { class: "flex items-center justify-center gap-2" }, [
24957
24955
  g("span", { class: "lg:block hidden" }, [
24958
- g("div", null, "Add new Elements")
24956
+ g("div", null, "Add new Components")
24959
24957
  ]),
24960
24958
  g("span", { class: "h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0" }, [
24961
24959
  g("span", { class: "myMediumIcon material-symbols-outlined" }, " interests ")
@@ -25020,7 +25018,7 @@ const en = /* @__PURE__ */ Zd(B6, [["render", D6]]), R6 = { class: "flex flex-ro
25020
25018
  }),
25021
25019
  class: "hover:bg-gray-100 rounded-lg border border-gray-200 p-12 text-center hover:border-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 my-12 mx-8 cursor-pointer"
25022
25020
  }, v[30] || (v[30] = [
25023
- Kg('<div class="flex items-center justify-center gap-2 font-medium cursor-pointer"><span class="lg:block hidden"><div>Add new Elements</div></span></div><div class="mt-6 flex items-center gap-2 justify-center"><button type="button" class="myPrimaryButton flex items-center gap-2 justify-center"><span class="myMediumIcon material-symbols-outlined"> interests </span> Add new Elements </button></div>', 2)
25021
+ Kg('<div class="flex items-center justify-center gap-2 font-medium cursor-pointer"><span class="lg:block hidden"><div>Add new Components</div></span></div><div class="mt-6 flex items-center gap-2 justify-center"><button type="button" class="myPrimaryButton flex items-center gap-2 justify-center"><span class="myMediumIcon material-symbols-outlined"> interests </span> Add new Components </button></div>', 2)
25024
25022
  ]))
25025
25023
  ])
25026
25024
  ]),
@@ -25045,5 +25043,5 @@ export {
25045
25043
  dm as Preview,
25046
25044
  wf as createPinia,
25047
25045
  J4 as usePageBuilderModal,
25048
- Lu as usePageBuilderStateStore
25046
+ ed as usePageBuilderStateStore
25049
25047
  };