golden-logic-ui 1.0.638 → 1.0.640

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.
@@ -702,8 +702,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
702
702
  const Te = Iu(() => {
703
703
  const Gt = [], Ft = new RegExp(R.value, "ig");
704
704
  for (const Be of O.value) {
705
- const He = String(Be.name);
706
- (R.value.length < 1 || He.match(Ft)) && Gt.length < i.maxItem && Gt.push(Be);
705
+ const We = String(Be.name);
706
+ (R.value.length < 1 || We.match(Ft)) && Gt.length < i.maxItem && Gt.push(Be);
707
707
  }
708
708
  return Gt;
709
709
  });
@@ -725,8 +725,8 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
725
725
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
726
726
  /[xy]/g,
727
727
  function(Be) {
728
- const He = (Gt + Math.random() * 16) % 16 | 0;
729
- return Gt = Math.floor(Gt / 16), (Be === "x" ? He : He & 3 | 8).toString(16);
728
+ const We = (Gt + Math.random() * 16) % 16 | 0;
729
+ return Gt = Math.floor(Gt / 16), (Be === "x" ? We : We & 3 | 8).toString(16);
730
730
  }
731
731
  );
732
732
  }
@@ -814,7 +814,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
814
814
  Te.value.length === 0 && (m.value = []);
815
815
  }), Lu(m, (Gt) => {
816
816
  if (Xe(Gt)) {
817
- w.value = Gt.map((He) => He.id);
817
+ w.value = Gt.map((We) => We.id);
818
818
  const Ft = Array.isArray(w.value) ? w.value : [], Be = Array.isArray(i.modelValue) ? i.modelValue : [];
819
819
  JSON.stringify(Ft) !== JSON.stringify(Be) && c("update:modelValue", w.value);
820
820
  }
@@ -831,7 +831,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
831
831
  },
832
832
  { immediate: !0, deep: !0 }
833
833
  ), (Gt, Ft) => {
834
- var Be, He;
834
+ var Be, We;
835
835
  return ke(), $e(Qo, null, [
836
836
  u.show ? (ke(), $e("div", {
837
837
  key: 0,
@@ -871,7 +871,7 @@ const _xe = /* @__PURE__ */ Ti(ble, [["render", wle]]), xle = { class: "bg-white
871
871
  onClick: _t,
872
872
  type: "button",
873
873
  class: "ltr:rounded-tr-lg rtl:!rounded-tl-lg px-4 py-0 text-sm font-medium text-gray-900 bg-transparent border border-gray-900 hover:bg-gray-900 hover:text-white focus:z-10 focus:bg-gray-900 focus:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700"
874
- }, Rt(((He = u.language) == null ? void 0 : He.deselect_all) ?? "Deselect all"), 1)
874
+ }, Rt(((We = u.language) == null ? void 0 : We.deselect_all) ?? "Deselect all"), 1)
875
875
  ]),
876
876
  Z("div", {
877
877
  ref_key: "myDivDropDown",
@@ -3248,30 +3248,29 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3248
3248
  setup(u, { emit: o }) {
3249
3249
  const i = u, c = o;
3250
3250
  Mo(null);
3251
- const h = Mo({}), m = Mo(!1), O = Mo(0), w = Mo(!1), T = Mo(""), P = Mo(""), R = Mo(!1), F = Mo(1), H = Mo(null), K = Mo(1), he = Mo([]), Me = Mo([]), we = Mo(null), Te = Mo(null), et = (He) => {
3252
- console.log("Tab key pressed!", He.key), He.key === "Tab" && (He.preventDefault(), console.log("Tab key pressed!"), te());
3253
- }, le = async (He = "down", Bt = !1) => {
3251
+ const h = Mo({}), m = Mo(!1), O = Mo(0), w = Mo(!1), T = Mo(""), P = Mo(""), R = Mo(!1), F = Mo(1), H = Mo(null), K = Mo(1), he = Mo([]), Me = Mo([]), we = Mo(null), Te = Mo(null), et = (We) => {
3252
+ console.log("Tab key pressed!", We.key), We.key === "Tab" && (We.preventDefault(), console.log("Tab key pressed!"), te());
3253
+ }, le = async (We = "down", Bt = !1) => {
3254
3254
  if (!R.value) {
3255
3255
  R.value = !0;
3256
3256
  try {
3257
- const ot = He === "up" ? Math.max(F.value - 1, K) : F.value, { data: Jt } = await axios.get(i.api_url, {
3257
+ const ot = We === "up" ? Math.max(F.value - 1, K) : F.value, { data: Jt } = await axios.get(i.api_url, {
3258
3258
  params: { search: T.value, page: ot, per_page: 20 }
3259
3259
  });
3260
3260
  let Ge = io(Jt.data);
3261
- He === "down" && (he.value.push(...Ge), F.value++, H.value = Jt.last_page), H.value || (H.value = Jt.last_page), K.value || (K.value = 1), h.value = _t(), Bt && (T.value = "", he.value = []);
3261
+ We === "down" && (he.value.push(...Ge), F.value++, H.value = Jt.last_page), H.value || (H.value = Jt.last_page), K.value || (K.value = 1), h.value = _t(), Bt && (T.value = "", he.value = []);
3262
3262
  } catch (ot) {
3263
3263
  console.error("Error fetching data:", ot);
3264
3264
  }
3265
3265
  R.value = !1;
3266
3266
  }
3267
- }, Xe = (He) => {
3268
- if (!He.target) return;
3269
- const Bt = He.target.scrollTop, ot = He.target.scrollHeight - He.target.clientHeight <= Bt + 10, Jt = Bt <= 10;
3267
+ }, Xe = (We) => {
3268
+ if (!We.target) return;
3269
+ const Bt = We.target.scrollTop, ot = We.target.scrollHeight - We.target.clientHeight <= Bt + 10, Jt = Bt <= 10;
3270
3270
  ot && F.value <= H.value && le("down"), Jt && F.value > K.value;
3271
- }, qt = (He) => {
3272
- console.log("Tab key pressed!", He.target.id, He.target), He.key === "Tab" && !He.target.classList.contains("showOptions") && (Be(), O.value = 0, w.value = !1), He.key === "Enter" && He.target.form && (console.log("Enter key pressed! enter ", He.target.id), He.preventDefault());
3273
- }, at = (He) => {
3274
- He.target && He.target.classList.contains("showOptions") && (w.value || te());
3271
+ }, qt = (We) => {
3272
+ }, at = (We) => {
3273
+ We.target && (document.activeElement.classList.contains("showOptions" + P.value) ? w.value || te() : console.log("Focus changed!", We.target));
3275
3274
  }, te = () => {
3276
3275
  if (!i.show) {
3277
3276
  if (w.value) {
@@ -3279,20 +3278,20 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3279
3278
  return;
3280
3279
  }
3281
3280
  T.value = "", w.value = !0, i.api_url && he.value.length === 0 && le("down"), zF(() => {
3282
- var He = document.getElementById(
3281
+ var We = document.getElementById(
3283
3282
  `${i.field_name}search${P.value}`
3284
3283
  );
3285
- He && He.focus();
3284
+ We && We.focus();
3286
3285
  });
3287
3286
  }
3288
3287
  }, _t = () => Oe(h.value) ? typeof h.value == "object" ? he.value.find(
3289
- (He) => String(He.id) === String(h.value.id)
3288
+ (We) => String(We.id) === String(h.value.id)
3290
3289
  ) || {} : he.value.find(
3291
- (He) => String(He.id) === String(h.value)
3290
+ (We) => String(We.id) === String(h.value)
3292
3291
  ) || {} : i.modelValue ? typeof i.modelValue == "object" ? he.value.find(
3293
- (He) => String(He.id) === String(i.modelValue.id)
3292
+ (We) => String(We.id) === String(i.modelValue.id)
3294
3293
  ) || {} : he.value.find(
3295
- (He) => String(He.id) === String(i.modelValue)
3294
+ (We) => String(We.id) === String(i.modelValue)
3296
3295
  ) || {} : {};
3297
3296
  Fh(() => {
3298
3297
  P.value = je(), i.show || (document.body.addEventListener("click", Yn), document.addEventListener("keydown", qt), document.addEventListener("focusin", at));
@@ -3300,61 +3299,61 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3300
3299
  document.body.removeEventListener("click", Yn), document.removeEventListener("keydown", qt), document.removeEventListener("focusin", at);
3301
3300
  });
3302
3301
  function rn() {
3303
- const He = [], Bt = T.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ot = new RegExp(Bt, "ig");
3302
+ const We = [], Bt = T.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ot = new RegExp(Bt, "ig");
3304
3303
  for (const Jt of Me.value) {
3305
3304
  const Ge = String(Jt.name);
3306
- (T.value.length < 1 || Ge.match(ot)) && He.length < i.maxItem && He.push(Jt);
3305
+ (T.value.length < 1 || Ge.match(ot)) && We.length < i.maxItem && We.push(Jt);
3307
3306
  }
3308
- return He;
3307
+ return We;
3309
3308
  }
3310
- function dn(He) {
3309
+ function dn(We) {
3311
3310
  if ([
3312
3311
  "ArrowLeft",
3313
3312
  "ArrowUp",
3314
3313
  "ArrowRight",
3315
3314
  "ArrowDown",
3316
3315
  "Enter"
3317
- ].includes(He.key)) {
3318
- if (["ArrowUp", "ArrowDown"].includes(He.key) && He.preventDefault(), He.key === "ArrowDown" && i.posts === "")
3316
+ ].includes(We.key)) {
3317
+ if (["ArrowUp", "ArrowDown"].includes(We.key) && We.preventDefault(), We.key === "ArrowDown" && i.posts === "")
3319
3318
  return;
3320
- Q(He.key);
3319
+ Q(We.key);
3321
3320
  }
3322
3321
  }
3323
3322
  function je() {
3324
- let He = (/* @__PURE__ */ new Date()).getTime();
3323
+ let We = (/* @__PURE__ */ new Date()).getTime();
3325
3324
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
3326
3325
  /[xy]/g,
3327
3326
  function(ot) {
3328
- const Jt = (He + Math.random() * 16) % 16 | 0;
3329
- return He = Math.floor(He / 16), (ot === "x" ? Jt : Jt & 3 | 8).toString(16);
3327
+ const Jt = (We + Math.random() * 16) % 16 | 0;
3328
+ return We = Math.floor(We / 16), (ot === "x" ? Jt : Jt & 3 | 8).toString(16);
3330
3329
  }
3331
3330
  );
3332
3331
  }
3333
- function Oe(He) {
3334
- return He && typeof He == "object" && Object.keys(He).length > 0;
3332
+ function Oe(We) {
3333
+ return We && typeof We == "object" && Object.keys(We).length > 0;
3335
3334
  }
3336
- function Yn(He) {
3337
- He.target.id != i.field_name + "search" + P.value && He.target.id != i.field_name && !He.target.classList.contains("showOptions") && (Be(), O.value = 0, w.value = !1);
3335
+ function Yn(We) {
3336
+ We.target.id != i.field_name + "search" + P.value && We.target.id != i.field_name && !We.target.classList.contains("showOptions") && (Be(), O.value = 0, w.value = !1);
3338
3337
  }
3339
- function ut(He) {
3340
- const Bt = `${He}${P.value}`, ot = document.getElementById(Bt);
3338
+ function ut(We) {
3339
+ const Bt = `${We}${P.value}`, ot = document.getElementById(Bt);
3341
3340
  ot && ot.scrollIntoView();
3342
3341
  }
3343
- function kt(He) {
3344
- const Bt = `${He}${P.value}`, ot = document.getElementById(Bt);
3342
+ function kt(We) {
3343
+ const Bt = `${We}${P.value}`, ot = document.getElementById(Bt);
3345
3344
  ot && ot.click();
3346
3345
  }
3347
- function Q(He) {
3348
- He === "ArrowDown" && O.value < he.value.length && (O.value++, ut(O.value)), He === "ArrowUp" && O.value > 1 && (O.value--, ut(O.value)), He === "Enter" && kt(O.value);
3346
+ function Q(We) {
3347
+ We === "ArrowDown" && O.value < he.value.length && (O.value++, ut(O.value)), We === "ArrowUp" && O.value > 1 && (O.value--, ut(O.value)), We === "Enter" && kt(O.value);
3349
3348
  }
3350
- function io(He) {
3351
- return He.map((Bt, ot) => typeof Bt == "object" ? Bt : { id: Bt, name: Bt });
3349
+ function io(We) {
3350
+ return We.map((Bt, ot) => typeof Bt == "object" ? Bt : { id: Bt, name: Bt });
3352
3351
  }
3353
3352
  function It() {
3354
- return i.options.map((He, Bt) => typeof He == "object" ? He : { id: He, name: He });
3353
+ return i.options.map((We, Bt) => typeof We == "object" ? We : { id: We, name: We });
3355
3354
  }
3356
- function Gt(He) {
3357
- m.value = !0, h.value = He, w.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
3355
+ function Gt(We) {
3356
+ m.value = !0, h.value = We, w.value = !1, c("update:modelValue", h.value.id), c("selected", h.value), c("selectionChanged", h.value);
3358
3357
  }
3359
3358
  function Ft() {
3360
3359
  i.show || (h.value = {}, T.value = "", c("update:modelValue", ""), te());
@@ -3362,14 +3361,14 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3362
3361
  function Be() {
3363
3362
  (!h.value || !h.value.id) && (h.value = {}, T.value = ""), c("selected", h.value);
3364
3363
  }
3365
- return Lu(T, (He) => {
3364
+ return Lu(T, (We) => {
3366
3365
  i.api_url ? (F.value = 1, H.value = null, K.value = 1, he.value = [], le("down")) : he.value = rn(), he.value.length === 0 && (h.value = {});
3367
- }), Lu(h, (He) => {
3368
- Oe(He) && He && He.id !== i.modelValue && c("update:modelValue", He.id);
3366
+ }), Lu(h, (We) => {
3367
+ Oe(We) && We && We.id !== i.modelValue && c("update:modelValue", We.id);
3369
3368
  }), Lu(
3370
3369
  () => i.modelValue,
3371
- (He) => {
3372
- He ? (h.value = i.modelValue, i.api_url && m.value == !1 ? (T.value = h.value, le("down", !0)) : h.value = _t()) : h.value = {};
3370
+ (We) => {
3371
+ We ? (h.value = i.modelValue, i.api_url && m.value == !1 ? (T.value = h.value, le("down", !0)) : h.value = _t()) : h.value = {};
3373
3372
  },
3374
3373
  { immediate: !0, deep: !0 }
3375
3374
  ), Lu(
@@ -3378,7 +3377,7 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3378
3377
  i.api_url || (he.value = Me.value = It()), h.value = _t();
3379
3378
  },
3380
3379
  { immediate: !0, deep: !0 }
3381
- ), (He, Bt) => {
3380
+ ), (We, Bt) => {
3382
3381
  var ot, Jt, Ge;
3383
3382
  return ke(), $e(Qo, null, [
3384
3383
  u.show ? (ke(), $e("div", {
@@ -3419,7 +3418,8 @@ const Qxe = /* @__PURE__ */ Ti(wue, [["render", Yue], ["__scopeId", "data-v-bb11
3419
3418
  Z("input", {
3420
3419
  class: wn([{
3421
3420
  "gl-input-form": u.error_message == "",
3422
- "gl-input-form-invalid": u.error_message !== ""
3421
+ "gl-input-form-invalid": u.error_message !== "",
3422
+ [`showOptions${P.value}`]: !0
3423
3423
  }, "pr-2 showOptions"]),
3424
3424
  onClick: Bt[0] || (Bt[0] = (ht) => te()),
3425
3425
  onKeydown: et,
@@ -3753,7 +3753,7 @@ function ihe() {
3753
3753
  return e.apply(null, a);
3754
3754
  };
3755
3755
  }
3756
- const He = (e) => (n) => !e(n), Bt = (e) => () => {
3756
+ const We = (e) => (n) => !e(n), Bt = (e) => () => {
3757
3757
  throw new Error(e);
3758
3758
  }, ot = (e) => e(), Jt = (e) => {
3759
3759
  e();
@@ -6794,7 +6794,7 @@ function ihe() {
6794
6794
  return !0;
6795
6795
  }
6796
6796
  return !0;
6797
- }, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => vh(e) && dm(e, n), F2 = pn, n5 = vh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5, He(o5)), Z2 = He(Hg("white-space", "pre pre-line pre-wrap")), ig = jt, ly = As, Ek = kr.nodeIndex, cy = Pn, ag = (e) => e ? e.createRange() : kr.DOM.createRng(), uy = (e) => le(e) && /[\r\n\t ]/.test(e), V2 = (e) => !!e.setStart && !!e.setEnd, dy = (e) => {
6797
+ }, e5 = (e) => Q2(e) ? !Co(Fr(e.getElementsByTagName("*")), (n, s) => n || Ck(s), !1) : !1, t5 = (e) => _0(e) || e5(e), Tk = (e, n) => vh(e) && dm(e, n), F2 = pn, n5 = vh, _k = Hg("display", "block table"), o5 = Hg("float", "left right"), fb = kk(F2, n5, We(o5)), Z2 = We(Hg("white-space", "pre pre-line pre-wrap")), ig = jt, ly = As, Ek = kr.nodeIndex, cy = Pn, ag = (e) => e ? e.createRange() : kr.DOM.createRng(), uy = (e) => le(e) && /[\r\n\t ]/.test(e), V2 = (e) => !!e.setStart && !!e.setEnd, dy = (e) => {
6798
6798
  const n = e.startContainer, s = e.startOffset;
6799
6799
  if (uy(e.toString()) && Z2(n.parentNode) && jt(n)) {
6800
6800
  const a = n.data;
@@ -6906,7 +6906,7 @@ function ihe() {
6906
6906
  }
6907
6907
  s.push(Rk(a));
6908
6908
  let v = Tc(e, a);
6909
- return v = sa(v, He(Kf)), s = s.concat(bi(v, (C) => Rk(C))), s.reverse().join("/") + "," + p;
6909
+ return v = sa(v, We(Kf)), s = s.concat(bi(v, (C) => Rk(C))), s.reverse().join("/") + "," + p;
6910
6910
  }, a5 = (e, n, s) => {
6911
6911
  let a = mb(e);
6912
6912
  return a = sa(a, (d, p) => !gu(d) || !gu(a[p - 1])), a = sa(a, du([n])), a[s];
@@ -16693,7 +16693,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
16693
16693
  W.setStartAfter(a), W.setEndAfter(s);
16694
16694
  const X = W.extractContents();
16695
16695
  if (d === "LI" && $j(X, "LI")) {
16696
- const G = vn(Je(B.children, Re.fromDom), He(Ba("br")));
16696
+ const G = vn(Je(B.children, Re.fromDom), We(Ba("br")));
16697
16697
  B = X.firstChild, p.insertAfter(X, s), Se(G, (re) => Gh(Re.fromDom(B), re)), $ && B.setAttribute("style", $);
16698
16698
  } else
16699
16699
  p.insertAfter(X, s), p.insertAfter(B, s);
@@ -17762,7 +17762,7 @@ Input object: ` + Zv(e.input), VA = (e, n) => LW(e, zo(n, bS)), YW = It(PL), OS
17762
17762
  return v(C, gI).orThunk(() => v(W, hp)).orThunk(() => v(B, hp));
17763
17763
  }, cq = (e, n, s, a) => {
17764
17764
  const d = (p, v) => {
17765
- const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = vn(p.dom.childNodes, He(C));
17765
+ const C = (B) => pn(B) && B.classList.contains("mce-drag-container"), $ = vn(p.dom.childNodes, We(C));
17766
17766
  return v.fold(() => w_($, s, a, !0), (B) => {
17767
17767
  const W = vn($, (X) => X !== B.dom);
17768
17768
  return w_(W, s, a, !0);
@@ -20954,7 +20954,7 @@ function lhe() {
20954
20954
  const io = Array.prototype.slice, It = Array.prototype.indexOf, Gt = Array.prototype.push, Ft = (t, r) => It.call(t, r), Be = (t, r) => {
20955
20955
  const l = Ft(t, r);
20956
20956
  return l === -1 ? Q.none() : Q.some(l);
20957
- }, He = (t, r) => Ft(t, r) > -1, Bt = (t, r) => {
20957
+ }, We = (t, r) => Ft(t, r) > -1, Bt = (t, r) => {
20958
20958
  for (let l = 0, f = t.length; l < f; l++) {
20959
20959
  const b = t[l];
20960
20960
  if (r(b, l))
@@ -21045,7 +21045,7 @@ function lhe() {
21045
21045
  }, yo = (t) => {
21046
21046
  const r = io.call(t, 0);
21047
21047
  return r.reverse(), r;
21048
- }, vn = (t, r) => mo(t, (l) => !He(r, l)), Ps = (t, r) => {
21048
+ }, vn = (t, r) => mo(t, (l) => !We(r, l)), Ps = (t, r) => {
21049
21049
  const l = {};
21050
21050
  for (let f = 0, b = t.length; f < b; f++) {
21051
21051
  const x = t[f];
@@ -22015,7 +22015,7 @@ function lhe() {
22015
22015
  ` + $o(t.errors).join(`
22016
22016
  `) + `
22017
22017
 
22018
- Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => zO(t, r), Yi = au, As = lu, c0 = (t) => Ug((r) => He(t, r) ? Eo.value(r) : Eo.error(`Unsupported value: "${r}", choose one of "${t.join(", ")}".`)), Pt = (t) => Yi(t, t, Fc(), cu()), Ds = (t, r) => Yi(t, t, Fc(), r), u0 = (t) => Ds(t, Jh), Wi = (t) => Ds(t, pn), va = (t, r) => Yi(t, t, Fc(), c0(r)), hu = (t) => Ds(t, z1), H1 = (t, r) => Yi(t, t, jm(), Gf((l) => fi.serror("The field: " + t + " is forbidden. " + r))), tf = (t, r) => Yi(t, t, Fc(), fo(r)), U1 = (t, r) => Yi(t, t, Fc(), l0(r)), gc = (t, r) => Yi(t, t, Fc(), Zc(r)), $s = (t) => Yi(t, t, jm(), cu()), xd = (t, r) => Yi(t, t, jm(), r), Wg = (t) => xd(t, Jh), ti = (t) => xd(t, pn), d0 = (t, r) => xd(t, c0(r)), ah = (t) => xd(t, z1), jg = (t, r) => xd(t, Zc(r)), Ai = (t, r) => xd(t, fo(r)), Ki = (t, r) => xd(t, il(r)), rt = (t, r) => Yi(t, t, Yh(r), cu()), _r = (t, r, l) => Yi(t, t, Yh(r), l), W1 = (t, r) => _r(t, r, Jh), xr = (t, r) => _r(t, r, pn), al = (t, r, l) => _r(t, r, c0(l)), wa = (t, r) => _r(t, r, uu), zs = (t, r) => _r(t, r, z1), A = (t, r) => _r(t, r, du), I = (t, r, l) => _r(t, r, Zc(l)), ee = (t, r, l) => _r(t, r, fo(l)), Qe = { generate: (t) => {
22018
+ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => zO(t, r), Yi = au, As = lu, c0 = (t) => Ug((r) => We(t, r) ? Eo.value(r) : Eo.error(`Unsupported value: "${r}", choose one of "${t.join(", ")}".`)), Pt = (t) => Yi(t, t, Fc(), cu()), Ds = (t, r) => Yi(t, t, Fc(), r), u0 = (t) => Ds(t, Jh), Wi = (t) => Ds(t, pn), va = (t, r) => Yi(t, t, Fc(), c0(r)), hu = (t) => Ds(t, z1), H1 = (t, r) => Yi(t, t, jm(), Gf((l) => fi.serror("The field: " + t + " is forbidden. " + r))), tf = (t, r) => Yi(t, t, Fc(), fo(r)), U1 = (t, r) => Yi(t, t, Fc(), l0(r)), gc = (t, r) => Yi(t, t, Fc(), Zc(r)), $s = (t) => Yi(t, t, jm(), cu()), xd = (t, r) => Yi(t, t, jm(), r), Wg = (t) => xd(t, Jh), ti = (t) => xd(t, pn), d0 = (t, r) => xd(t, c0(r)), ah = (t) => xd(t, z1), jg = (t, r) => xd(t, Zc(r)), Ai = (t, r) => xd(t, fo(r)), Ki = (t, r) => xd(t, il(r)), rt = (t, r) => Yi(t, t, Yh(r), cu()), _r = (t, r, l) => Yi(t, t, Yh(r), l), W1 = (t, r) => _r(t, r, Jh), xr = (t, r) => _r(t, r, pn), al = (t, r, l) => _r(t, r, c0(l)), wa = (t, r) => _r(t, r, uu), zs = (t, r) => _r(t, r, z1), A = (t, r) => _r(t, r, du), I = (t, r, l) => _r(t, r, Zc(l)), ee = (t, r, l) => _r(t, r, fo(l)), Qe = { generate: (t) => {
22019
22019
  if (!R(t))
22020
22020
  throw new Error("cases must be an array");
22021
22021
  if (t.length === 0)
@@ -22047,7 +22047,7 @@ Input object: ` + Ro(t.input), Gi = (t, r) => ef(t, Bo(r, fo)), qm = (t, r) => z
22047
22047
  if (r.length !== oe.length)
22048
22048
  throw new Error("Wrong number of arguments to match. Expected: " + r.join(",") + `
22049
22049
  Actual: ` + oe.join(","));
22050
- if (!Fn(r, (pe) => He(oe, pe)))
22050
+ if (!Fn(r, (pe) => We(oe, pe)))
22051
22051
  throw new Error("Not all branches were specified when using match. Specified: " + oe.join(", ") + `
22052
22052
  Required: ` + r.join(", "));
22053
22053
  return j[S].apply(null, D);
@@ -22104,7 +22104,7 @@ Required: ` + r.join(", "));
22104
22104
  }, tn = (t, r) => {
22105
22105
  const l = {};
22106
22106
  return Fs(t, (f, b) => {
22107
- He(r, b) || (l[b] = f);
22107
+ We(r, b) || (l[b] = f);
22108
22108
  }), l;
22109
22109
  }, Rn = (t, r) => ({ [t]: r }), ko = (t) => {
22110
22110
  const r = {};
@@ -22336,7 +22336,7 @@ Required: ` + r.join(", "));
22336
22336
  }, E2 = (t, r, l) => {
22337
22337
  const f = mo(kr(t, r), (b) => b !== l);
22338
22338
  return f.length > 0 ? un(t, r, f.join(" ")) : ce(t, r), !1;
22339
- }, y0 = (t) => t.dom.classList !== void 0, og = (t) => kr(t, "class"), $2 = (t, r) => I4(t, "class", r), af = (t, r) => E2(t, "class", r), sp = (t, r) => He(og(t), r) ? af(t, r) : $2(t, r), mi = (t, r) => {
22339
+ }, y0 = (t) => t.dom.classList !== void 0, og = (t) => kr(t, "class"), $2 = (t, r) => I4(t, "class", r), af = (t, r) => E2(t, "class", r), sp = (t, r) => We(og(t), r) ? af(t, r) : $2(t, r), mi = (t, r) => {
22340
22340
  y0(t) ? t.dom.classList.add(r) : $2(t, r);
22341
22341
  }, uk = (t) => {
22342
22342
  (y0(t) ? t.dom.classList : og(t)).length === 0 && ce(t, "class");
@@ -22650,7 +22650,7 @@ Required: ` + r.join(", "));
22650
22650
  },
22651
22651
  write: () => {
22652
22652
  const b = (/* @__PURE__ */ new Date()).getTime();
22653
- He([
22653
+ We([
22654
22654
  "mousemove",
22655
22655
  "mouseover",
22656
22656
  "mouseout",
@@ -22659,7 +22659,7 @@ Required: ` + r.join(", "));
22659
22659
  event: t,
22660
22660
  time: b - f,
22661
22661
  target: r.dom,
22662
- sequence: Ge(l, (x) => He([
22662
+ sequence: Ge(l, (x) => We([
22663
22663
  "cut",
22664
22664
  "stopped",
22665
22665
  "response"
@@ -23028,24 +23028,24 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
23028
23028
  toSet: x,
23029
23029
  toRemove: S
23030
23030
  } = mb(t.attributes, b), E = () => {
23031
- ht(S, (Ue) => ce(r, Ue)), co(r, x);
23031
+ ht(S, (He) => ce(r, He)), co(r, x);
23032
23032
  }, D = dc(r), {
23033
23033
  toSet: L,
23034
23034
  toRemove: V
23035
23035
  } = mb(t.styles, D), j = () => {
23036
- ht(V, (Ue) => Uo(r, Ue)), ws(r, L);
23036
+ ht(V, (He) => Uo(r, He)), ws(r, L);
23037
23037
  }, oe = Q4(r), ae = vn(oe, t.classes), pe = vn(t.classes, oe), xe = () => {
23038
23038
  v0(r, pe), Ku(r, ae);
23039
- }, qe = (Ue) => {
23040
- ji(r, Ue);
23039
+ }, qe = (He) => {
23040
+ ji(r, He);
23041
23041
  }, ve = () => {
23042
- const Ue = t.domChildren;
23043
- Ak(r, Ue);
23044
- }, We = () => {
23045
- const Ue = r, ct = t.value.getOrUndefined();
23046
- ct !== Cd(Ue) && bp(Ue, ct ?? "");
23042
+ const He = t.domChildren;
23043
+ Ak(r, He);
23044
+ }, Ue = () => {
23045
+ const He = r, ct = t.value.getOrUndefined();
23046
+ ct !== Cd(He) && bp(He, ct ?? "");
23047
23047
  };
23048
- return E(), xe(), j(), t.innerHtml.fold(ve, qe), We(), r;
23048
+ return E(), xe(), j(), t.innerHtml.fold(ve, qe), Ue(), r;
23049
23049
  }, gb = (t) => {
23050
23050
  const r = Ot.fromTag(t.tag);
23051
23051
  co(r, t.attributes), v0(r, t.classes), ws(r, t.styles), t.innerHtml.each((f) => ji(r, f));
@@ -23079,7 +23079,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
23079
23079
  const f = { "alloy.base.behaviour": St(t) };
23080
23080
  return ag(l, t.eventOrder, r, f).getOrDie();
23081
23081
  }, c5 = (t, r) => {
23082
- const l = () => Ue, f = In(J4), b = jt(hm(t)), x = l5(t), S = t5(x), E = Tk(x), D = Mk(b, S, E), L = Tc(D, r), V = hy(b, S, E), j = In(b.components), oe = (ct) => {
23082
+ const l = () => He, f = In(J4), b = jt(hm(t)), x = l5(t), S = t5(x), E = Tk(x), D = Mk(b, S, E), L = Tc(D, r), V = hy(b, S, E), j = In(b.components), oe = (ct) => {
23083
23083
  f.set(ct);
23084
23084
  }, ae = () => {
23085
23085
  f.set(_0(l));
@@ -23091,13 +23091,13 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
23091
23091
  return (we(pt[ct.name()]) ? pt[ct.name()] : () => {
23092
23092
  throw new Error("Could not find " + ct.name() + " in " + JSON.stringify(t, null, 2));
23093
23093
  })();
23094
- }, qe = (ct) => we(E[ct.name()]), ve = () => b.apis, We = (ct) => E[ct]().map((pt) => pt.state.readState()).getOr("not enabled"), Ue = {
23094
+ }, qe = (ct) => we(E[ct.name()]), ve = () => b.apis, Ue = (ct) => E[ct]().map((pt) => pt.state.readState()).getOr("not enabled"), He = {
23095
23095
  uid: t.uid,
23096
23096
  getSystem: f.get,
23097
23097
  config: xe,
23098
23098
  hasConfigured: qe,
23099
23099
  spec: t,
23100
- readState: We,
23100
+ readState: Ue,
23101
23101
  getApis: ve,
23102
23102
  connect: oe,
23103
23103
  disconnect: ae,
@@ -23106,7 +23106,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
23106
23106
  components: j.get,
23107
23107
  events: V
23108
23108
  };
23109
- return Ue;
23109
+ return He;
23110
23110
  }, Bk = (t, r) => {
23111
23111
  const l = Xt(t, "components").getOr([]);
23112
23112
  return r.fold(() => Ge(l, xl), (f) => Ge(l, (b, x) => H2(b, Al(f, x))));
@@ -23308,7 +23308,7 @@ The behaviours that can trigger it are: ` + JSON.stringify(Ge(r, (l) => l.name),
23308
23308
  cl,
23309
23309
  da,
23310
23310
  Za
23311
- ], Xk = (t, r) => r.universal ? t : mo(t, (l) => He(r.channels, l));
23311
+ ], Xk = (t, r) => r.universal ? t : mo(t, (l) => We(r.channels, l));
23312
23312
  var g5 = /* @__PURE__ */ Object.freeze({
23313
23313
  __proto__: null,
23314
23314
  events: (t) => nr([Et(Gu(), (r, l) => {
@@ -23410,12 +23410,12 @@ Receiver: ` + Ju(r.element), L, x.data);
23410
23410
  y: f,
23411
23411
  right: b,
23412
23412
  bottom: x
23413
- } = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x, pe = oe && ae, xe = D <= b && D >= l, qe = L <= x && L >= f, ve = xe && qe, We = Math.min(V, S >= l ? b - S : D - l), Ue = Math.min(j, E >= f ? x - E : L - f);
23413
+ } = r, { x: S, y: E, right: D, bottom: L, width: V, height: j } = t, oe = S >= l && S <= b, ae = E >= f && E <= x, pe = oe && ae, xe = D <= b && D >= l, qe = L <= x && L >= f, ve = xe && qe, Ue = Math.min(V, S >= l ? b - S : D - l), He = Math.min(j, E >= f ? x - E : L - f);
23414
23414
  return {
23415
23415
  originInBounds: pe,
23416
23416
  sizeInBounds: ve,
23417
- visibleW: We,
23418
- visibleH: Ue
23417
+ visibleW: Ue,
23418
+ visibleH: He
23419
23419
  };
23420
23420
  }, w5 = (t, r) => {
23421
23421
  const {
@@ -23432,9 +23432,9 @@ Receiver: ` + Ju(r.element), L, x.data);
23432
23432
  maxHeight: x
23433
23433
  };
23434
23434
  }, Yk = (t, r, l, f) => {
23435
- const b = t.bubble, x = b.offset, S = Uk(f, t.restriction, x), E = t.x + x.left, D = t.y + x.top, L = Gr(E, D, r, l), { originInBounds: V, sizeInBounds: j, visibleW: oe, visibleH: ae } = dw(L, S), pe = V && j, xe = pe ? L : w5(L, S), qe = xe.width > 0 && xe.height > 0, { maxWidth: ve, maxHeight: We } = Gk(t.direction, xe, f), Ue = {
23435
+ const b = t.bubble, x = b.offset, S = Uk(f, t.restriction, x), E = t.x + x.left, D = t.y + x.top, L = Gr(E, D, r, l), { originInBounds: V, sizeInBounds: j, visibleW: oe, visibleH: ae } = dw(L, S), pe = V && j, xe = pe ? L : w5(L, S), qe = xe.width > 0 && xe.height > 0, { maxWidth: ve, maxHeight: Ue } = Gk(t.direction, xe, f), He = {
23436
23436
  rect: xe,
23437
- maxHeight: We,
23437
+ maxHeight: Ue,
23438
23438
  maxWidth: ve,
23439
23439
  direction: t.direction,
23440
23440
  placement: t.placement,
@@ -23445,11 +23445,11 @@ Receiver: ` + Ju(r.element), L, x.data);
23445
23445
  layout: t.label,
23446
23446
  testY: D
23447
23447
  };
23448
- return pe || t.alwaysFit ? gm.fit(Ue) : gm.nofit(Ue, oe, ae, qe);
23448
+ return pe || t.alwaysFit ? gm.fit(He) : gm.nofit(He, oe, ae, qe);
23449
23449
  }, x5 = (t, r, l, f, b, x) => {
23450
23450
  const S = f.width, E = f.height, D = (V, j, oe, ae, pe) => {
23451
23451
  const xe = V(l, f, b, t, x), qe = Yk(xe, S, E, x);
23452
- return qe.fold(te(qe), (ve, We, Ue, ct) => (pe === ct ? Ue > ae || We > oe : !pe && ct) ? qe : gm.nofit(j, oe, ae, pe));
23452
+ return qe.fold(te(qe), (ve, Ue, He, ct) => (pe === ct ? He > ae || Ue > oe : !pe && ct) ? qe : gm.nofit(j, oe, ae, pe));
23453
23453
  };
23454
23454
  return Xo(r, (V, j) => {
23455
23455
  const oe = dn(D, j);
@@ -23502,7 +23502,7 @@ Receiver: ` + Ju(r.element), L, x.data);
23502
23502
  const x = (L) => {
23503
23503
  var V;
23504
23504
  const j = (V = L.raw.pseudoElement) !== null && V !== void 0 ? V : "";
23505
- return Jo(L.target, t) && Ce(j) && He(Sy, L.raw.propertyName);
23505
+ return Jo(L.target, t) && Ce(j) && We(Sy, L.raw.propertyName);
23506
23506
  }, S = (L) => {
23507
23507
  if (he(L) || x(L)) {
23508
23508
  l.clear(), f.clear();
@@ -24144,7 +24144,7 @@ Receiver: ` + Ju(r.element), L, x.data);
24144
24144
  }, SC = (t, r, l) => {
24145
24145
  const f = t.components(), b = Se(r, (E) => Q2(E).toArray());
24146
24146
  ht(f, (E) => {
24147
- He(b, E) || Uy(E);
24147
+ We(b, E) || Uy(E);
24148
24148
  });
24149
24149
  const x = l(r), S = vn(f, x);
24150
24150
  ht(S, (E) => {
@@ -24707,7 +24707,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
24707
24707
  "select"
24708
24708
  ], Yw = (t, r, l) => {
24709
24709
  (r.disabled() ? iv : Jw)(t, r);
24710
- }, Kw = (t, r) => r.useNative === !0 && He(q0, Ss(t.element)), qC = (t) => q(t.element, "disabled"), GC = (t) => {
24710
+ }, Kw = (t, r) => r.useNative === !0 && We(q0, Ss(t.element)), qC = (t) => q(t.element, "disabled"), GC = (t) => {
24711
24711
  un(t.element, "disabled", "disabled");
24712
24712
  }, tE = (t) => {
24713
24713
  ce(t.element, "disabled");
@@ -24838,7 +24838,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
24838
24838
  return Ne(f, l);
24839
24839
  }, Un = (t) => (r) => {
24840
24840
  const l = r.raw;
24841
- return He(t, l.which);
24841
+ return We(t, l.which);
24842
24842
  }, pr = (t) => (r) => Fn(t, (l) => l(r)), Jl = (t) => t.raw.shiftKey === !0, Og = (t) => t.raw.ctrlKey === !0, Md = je(Jl), ms = (t, r) => ({
24843
24843
  matches: t,
24844
24844
  classification: r
@@ -24879,7 +24879,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
24879
24879
  const Bd = (t, r, l, f, b) => {
24880
24880
  const x = () => t.concat([
24881
24881
  rt("focusManager", ka()),
24882
- _r("focusInside", "onFocus", Ug((L) => He([
24882
+ _r("focusInside", "onFocus", Ug((L) => We([
24883
24883
  "onFocus",
24884
24884
  "onEnterOrSpace",
24885
24885
  "onApi"
@@ -24927,26 +24927,26 @@ Components: ` + JSON.stringify(r.components, null, 2));
24927
24927
  rt("firstTabstop", 0),
24928
24928
  rt("useTabstopAt", kt),
24929
24929
  $s("visibilitySelector")
24930
- ].concat([t]), l = (ve, We) => {
24931
- const Ue = ve.visibilitySelector.bind((ct) => _d(We, ct)).getOr(We);
24932
- return ei(Ue) > 0;
24933
- }, f = (ve, We) => {
24934
- const Ue = Oc(ve.element, We.selector), ct = mo(Ue, (pt) => l(We, pt));
24935
- return Q.from(ct[We.firstTabstop]);
24936
- }, b = (ve, We) => We.focusManager.get(ve).bind((Ue) => _d(Ue, We.selector)), x = (ve, We) => l(ve, We) && ve.useTabstopAt(We), S = (ve, We, Ue) => {
24937
- f(ve, We).each((ct) => {
24938
- We.focusManager.set(ve, ct);
24930
+ ].concat([t]), l = (ve, Ue) => {
24931
+ const He = ve.visibilitySelector.bind((ct) => _d(Ue, ct)).getOr(Ue);
24932
+ return ei(He) > 0;
24933
+ }, f = (ve, Ue) => {
24934
+ const He = Oc(ve.element, Ue.selector), ct = mo(He, (pt) => l(Ue, pt));
24935
+ return Q.from(ct[Ue.firstTabstop]);
24936
+ }, b = (ve, Ue) => Ue.focusManager.get(ve).bind((He) => _d(He, Ue.selector)), x = (ve, Ue) => l(ve, Ue) && ve.useTabstopAt(Ue), S = (ve, Ue, He) => {
24937
+ f(ve, Ue).each((ct) => {
24938
+ Ue.focusManager.set(ve, ct);
24939
24939
  });
24940
- }, E = (ve, We, Ue, ct, pt) => pt(We, Ue, (mn) => x(ct, mn)).fold(() => ct.cyclic ? Q.some(!0) : Q.none(), (mn) => (ct.focusManager.set(ve, mn), Q.some(!0))), D = (ve, We, Ue, ct) => {
24941
- const pt = Oc(ve.element, Ue.selector);
24942
- return b(ve, Ue).bind((mn) => ze(pt, dn(Jo, mn)).bind((xt) => E(ve, pt, xt, Ue, ct)));
24943
- }, L = (ve, We, Ue) => {
24944
- const ct = Ue.cyclic ? Mt : Cn;
24945
- return D(ve, We, Ue, ct);
24946
- }, V = (ve, We, Ue) => {
24947
- const ct = Ue.cyclic ? qs : Gs;
24948
- return D(ve, We, Ue, ct);
24949
- }, j = (ve) => Qu(ve).bind(Sc).exists((We) => Jo(We, ve)), oe = (ve, We, Ue) => b(ve, Ue).filter((ct) => !Ue.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(ve, We, Ue)), ae = (ve, We, Ue) => Ue.onEnter.bind((ct) => ct(ve, We)), pe = (ve, We, Ue) => Ue.onEscape.bind((ct) => ct(ve, We)), xe = te([
24940
+ }, E = (ve, Ue, He, ct, pt) => pt(Ue, He, (mn) => x(ct, mn)).fold(() => ct.cyclic ? Q.some(!0) : Q.none(), (mn) => (ct.focusManager.set(ve, mn), Q.some(!0))), D = (ve, Ue, He, ct) => {
24941
+ const pt = Oc(ve.element, He.selector);
24942
+ return b(ve, He).bind((mn) => ze(pt, dn(Jo, mn)).bind((xt) => E(ve, pt, xt, He, ct)));
24943
+ }, L = (ve, Ue, He) => {
24944
+ const ct = He.cyclic ? Mt : Cn;
24945
+ return D(ve, Ue, He, ct);
24946
+ }, V = (ve, Ue, He) => {
24947
+ const ct = He.cyclic ? qs : Gs;
24948
+ return D(ve, Ue, He, ct);
24949
+ }, j = (ve) => Qu(ve).bind(Sc).exists((Ue) => Jo(Ue, ve)), oe = (ve, Ue, He) => b(ve, He).filter((ct) => !He.useTabstopAt(ct)).bind((ct) => (j(ct) ? L : V)(ve, Ue, He)), ae = (ve, Ue, He) => He.onEnter.bind((ct) => ct(ve, Ue)), pe = (ve, Ue, He) => He.onEscape.bind((ct) => ct(ve, Ue)), xe = te([
24950
24950
  ms(pr([
24951
24951
  Jl,
24952
24952
  Un(nt)
@@ -25843,7 +25843,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25843
25843
  }), pe = (Wt, On) => {
25844
25844
  const vo = ae(Wt);
25845
25845
  Fs(vo, (Zo, eo) => {
25846
- const Ao = He(On, eo);
25846
+ const Ao = We(On, eo);
25847
25847
  un(Zo.element, "aria-expanded", Ao);
25848
25848
  });
25849
25849
  }, xe = (Wt, On, vo) => Q.from(vo[0]).bind((Zo) => On.lookupMenu(Zo).bind((eo) => {
@@ -25866,7 +25866,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25866
25866
  return b.setMenuBuilt(On, Zo), Zo;
25867
25867
  } else
25868
25868
  return vo.menu;
25869
- }, We = (Wt, On, vo = qe.HighlightSubmenu) => {
25869
+ }, Ue = (Wt, On, vo = qe.HighlightSubmenu) => {
25870
25870
  if (On.hasConfigured(zn) && zn.isDisabled(On))
25871
25871
  return Q.some(On);
25872
25872
  {
@@ -25876,13 +25876,13 @@ Components: ` + JSON.stringify(r.components, null, 2));
25876
25876
  return Ve(or.element) || wo.append(Wt, pu(or)), t.onOpenSubmenu(Wt, On, or, yo(eo)), vo === qe.HighlightSubmenu ? (ue.highlightFirst(or), xe(Wt, b, eo)) : (ue.dehighlightAll(or), Q.some(On));
25877
25877
  }))));
25878
25878
  }
25879
- }, Ue = (Wt, On) => {
25879
+ }, He = (Wt, On) => {
25880
25880
  const vo = S(On);
25881
25881
  return b.collapse(vo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo).map((eo) => (t.onCollapseMenu(Wt, On, eo), eo))));
25882
25882
  }, ct = (Wt, On) => {
25883
25883
  const vo = S(On);
25884
25884
  return b.refresh(vo).bind((Zo) => (pe(Wt, Zo), xe(Wt, b, Zo)));
25885
- }, pt = (Wt, On) => X0(On.element) ? Q.none() : We(Wt, On, qe.HighlightSubmenu), mn = (Wt, On) => X0(On.element) ? Q.none() : Ue(Wt, On), Sn = (Wt, On) => Ue(Wt, On).orThunk(() => t.onEscape(Wt, On).map(() => Wt)), xt = (Wt) => (On, vo) => _d(vo.getSource(), `.${t.markers.item}`).bind((Zo) => On.getSystem().getByDom(Zo).toOptional().bind((eo) => Wt(On, eo).map(kt))), En = nr([
25885
+ }, pt = (Wt, On) => X0(On.element) ? Q.none() : Ue(Wt, On, qe.HighlightSubmenu), mn = (Wt, On) => X0(On.element) ? Q.none() : He(Wt, On), Sn = (Wt, On) => He(Wt, On).orThunk(() => t.onEscape(Wt, On).map(() => Wt)), xt = (Wt) => (On, vo) => _d(vo.getSource(), `.${t.markers.item}`).bind((Zo) => On.getSystem().getByDom(Zo).toOptional().bind((eo) => Wt(On, eo).map(kt))), En = nr([
25886
25886
  Et(RE(), (Wt, On) => {
25887
25887
  const vo = On.event.item;
25888
25888
  b.lookupItem(S(vo)).each(() => {
@@ -25895,7 +25895,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
25895
25895
  om((Wt, On) => {
25896
25896
  const vo = On.event.target;
25897
25897
  Wt.getSystem().getByDom(vo).each((Zo) => {
25898
- S(Zo).indexOf("collapse-item") === 0 && Ue(Wt, Zo), We(Wt, Zo, qe.HighlightSubmenu).fold(() => {
25898
+ S(Zo).indexOf("collapse-item") === 0 && He(Wt, Zo), Ue(Wt, Zo, qe.HighlightSubmenu).fold(() => {
25899
25899
  t.onExecute(Wt, Zo);
25900
25900
  }, le);
25901
25901
  });
@@ -25913,11 +25913,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
25913
25913
  }),
25914
25914
  ...t.navigateOnHover ? [Et(EE(), (Wt, On) => {
25915
25915
  const vo = On.event.item;
25916
- ct(Wt, vo), We(Wt, vo, qe.HighlightParent), t.onHover(Wt, vo);
25916
+ ct(Wt, vo), Ue(Wt, vo, qe.HighlightParent), t.onHover(Wt, vo);
25917
25917
  })] : []
25918
25918
  ]), fn = (Wt) => ue.getHighlighted(Wt).bind(ue.getHighlighted), Bn = (Wt) => {
25919
25919
  fn(Wt).each((On) => {
25920
- Ue(Wt, On);
25920
+ He(Wt, On);
25921
25921
  });
25922
25922
  }, cs = (Wt) => {
25923
25923
  b.getPrimary().each((On) => {
@@ -26422,7 +26422,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26422
26422
  "visible",
26423
26423
  "hidden",
26424
26424
  "clip"
26425
- ], o6 = (t) => yr(t).length > 0 && !He(n6, t), KE = (t) => {
26425
+ ], o6 = (t) => yr(t).length > 0 && !We(n6, t), KE = (t) => {
26426
26426
  if (So(t)) {
26427
26427
  const r = Nt(t, "overflow-x"), l = Nt(t, "overflow-y");
26428
26428
  return o6(r) || o6(l);
@@ -26668,7 +26668,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26668
26668
  }),
26669
26669
  Et(Gu(), (S, E) => {
26670
26670
  const D = E;
26671
- D.universal || He(D.channels, _T) && l(S);
26671
+ D.universal || We(D.channels, _T) && l(S);
26672
26672
  }),
26673
26673
  sf((S) => {
26674
26674
  l(S);
@@ -26892,7 +26892,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26892
26892
  HTMLFormElement: j,
26893
26893
  DOMParser: oe,
26894
26894
  trustedTypes: ae
26895
- } = t, pe = D.prototype, xe = Ov(pe, "cloneNode"), qe = Ov(pe, "remove"), ve = Ov(pe, "nextSibling"), We = Ov(pe, "childNodes"), Ue = Ov(pe, "parentNode");
26895
+ } = t, pe = D.prototype, xe = Ov(pe, "cloneNode"), qe = Ov(pe, "remove"), ve = Ov(pe, "nextSibling"), Ue = Ov(pe, "childNodes"), He = Ov(pe, "parentNode");
26896
26896
  if (typeof S == "function") {
26897
26897
  const ys = l.createElement("template");
26898
26898
  ys.content && ys.content.ownerDocument && (l = ys.content.ownerDocument);
@@ -26907,7 +26907,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26907
26907
  importNode: fn
26908
26908
  } = f;
26909
26909
  let Bn = {};
26910
- r.isSupported = typeof o$ == "function" && typeof Ue == "function" && mn && mn.createHTMLDocument !== void 0;
26910
+ r.isSupported = typeof o$ == "function" && typeof He == "function" && mn && mn.createHTMLDocument !== void 0;
26911
26911
  const {
26912
26912
  MUSTACHE_EXPR: cs,
26913
26913
  ERB_EXPR: Dr,
@@ -26987,7 +26987,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26987
26987
  od && od(vt), o4 = vt;
26988
26988
  }
26989
26989
  }, fte = $r({}, ["mi", "mo", "mn", "ms", "mtext"]), mte = $r({}, ["annotation-xml"]), Sae = $r({}, ["title", "style", "font", "a", "script"]), gte = $r({}, [...Cx, ...Tx, ...c6]), pte = $r({}, [..._x, ...AT]), kae = function(vt) {
26990
- let ro = Ue(vt);
26990
+ let ro = He(vt);
26991
26991
  (!ro || !ro.tagName) && (ro = {
26992
26992
  namespaceURI: n4,
26993
26993
  tagName: "template"
@@ -26999,7 +26999,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
26999
26999
  element: vt
27000
27000
  });
27001
27001
  try {
27002
- Ue(vt).removeChild(vt);
27002
+ He(vt).removeChild(vt);
27003
27003
  } catch {
27004
27004
  qe(vt);
27005
27005
  }
@@ -27080,7 +27080,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
27080
27080
  if (!Vd[us] && Ste(us) && (ci.tagNameCheck instanceof RegExp && sd(ci.tagNameCheck, us) || ci.tagNameCheck instanceof Function && ci.tagNameCheck(us)))
27081
27081
  return !1;
27082
27082
  if (RY && !t4[us]) {
27083
- const qa = Ue(vt) || vt.parentNode, Ud = We(vt) || vt.childNodes;
27083
+ const qa = He(vt) || vt.parentNode, Ud = Ue(vt) || vt.childNodes;
27084
27084
  if (Ud && qa) {
27085
27085
  const Mu = Ud.length;
27086
27086
  for (let Lf = Mu - 1; Lf >= 0; --Lf) {
@@ -27471,7 +27471,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
27471
27471
  return {
27472
27472
  open: (j, oe, ae) => {
27473
27473
  const pe = () => {
27474
- const Ue = (Sn) => {
27474
+ const He = (Sn) => {
27475
27475
  wo.remove(Sn, qe), ve();
27476
27476
  }, ct = (Sn, xt) => {
27477
27477
  Jr(Sn.element).length === 0 ? pt(Sn, xt) : mn(Sn, xt);
@@ -27483,11 +27483,11 @@ Components: ` + JSON.stringify(r.components, null, 2));
27483
27483
  f.on((Sn) => {
27484
27484
  oe();
27485
27485
  const xt = ae();
27486
- Ue(Sn), ct(Sn, xt);
27486
+ He(Sn), ct(Sn, xt);
27487
27487
  });
27488
27488
  }, xe = () => !i1(t) || !b.header.isPositionedAtTop(), qe = xl(LT.sketch({
27489
27489
  text: j.text,
27490
- level: He([
27490
+ level: We([
27491
27491
  "success",
27492
27492
  "error",
27493
27493
  "warning",
@@ -27501,12 +27501,12 @@ Components: ` + JSON.stringify(r.components, null, 2));
27501
27501
  backstageProvider: b.providers
27502
27502
  }));
27503
27503
  if (f.isSet()) {
27504
- const Ue = pu(qe);
27504
+ const He = pu(qe);
27505
27505
  f.on((ct) => {
27506
- wo.append(ct, Ue), ni.reposition(ct), qe.hasConfigured(mr) && mr.refresh(ct), E(ct.components());
27506
+ wo.append(ct, He), ni.reposition(ct), qe.hasConfigured(mr) && mr.refresh(ct), E(ct.components());
27507
27507
  });
27508
27508
  } else {
27509
- const Ue = xl(ni.sketch({
27509
+ const He = xl(ni.sketch({
27510
27510
  dom: {
27511
27511
  tag: "div",
27512
27512
  classes: ["tox-notifications-container"],
@@ -27548,27 +27548,27 @@ Components: ` + JSON.stringify(r.components, null, 2));
27548
27548
  ...b.anchors.banner(),
27549
27549
  overrides: pt
27550
27550
  };
27551
- f.set(Ue), l.add(Ue), ni.showWithinBounds(Ue, ct, { anchor: mn }, S);
27551
+ f.set(He), l.add(He), ni.showWithinBounds(He, ct, { anchor: mn }, S);
27552
27552
  }
27553
27553
  Te(j.timeout) && j.timeout > 0 && fT.setEditorTimeout(t, () => {
27554
27554
  pe();
27555
27555
  }, j.timeout);
27556
27556
  const ve = () => {
27557
- f.on((Ue) => {
27558
- ni.reposition(Ue), Ue.hasConfigured(mr) && mr.refresh(Ue), E(Ue.components());
27557
+ f.on((He) => {
27558
+ ni.reposition(He), He.hasConfigured(mr) && mr.refresh(He), E(He.components());
27559
27559
  });
27560
27560
  };
27561
27561
  return {
27562
27562
  close: pe,
27563
27563
  reposition: ve,
27564
- text: (Ue) => {
27565
- LT.updateText(qe, Ue);
27564
+ text: (He) => {
27565
+ LT.updateText(qe, He);
27566
27566
  },
27567
27567
  settings: j,
27568
27568
  getEl: () => qe.element.dom,
27569
27569
  progressBar: {
27570
- value: (Ue) => {
27571
- LT.updateProgress(qe, Ue);
27570
+ value: (He) => {
27571
+ LT.updateProgress(qe, He);
27572
27572
  }
27573
27573
  }
27574
27574
  };
@@ -28186,7 +28186,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
28186
28186
  return;
28187
28187
  }
28188
28188
  const { contextType: f, shouldDisable: b } = t();
28189
- f === "mode" && !He(a7, l) || zn.set(r, b);
28189
+ f === "mode" && !We(a7, l) || zn.set(r, b);
28190
28190
  }
28191
28191
  }
28192
28192
  }
@@ -28431,7 +28431,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
28431
28431
  case "cardimage":
28432
28432
  return u7(l.src, l.classes, l.alt);
28433
28433
  case "cardtext":
28434
- const b = l.name.exists((x) => He(r.cardText.highlightOn, x)) ? Q.from(r.cardText.matchText).getOr("") : "";
28434
+ const b = l.name.exists((x) => We(r.cardText.highlightOn, x)) ? Q.from(r.cardText.matchText).getOr("") : "";
28435
28435
  return V$(f7(l.text, b), l.classes);
28436
28436
  }
28437
28437
  }), uz = (t, r, l, f) => {
@@ -29654,8 +29654,8 @@ Components: ` + JSON.stringify(r.components, null, 2));
29654
29654
  fireDismissalEventInstead: {},
29655
29655
  inlineBehaviours: Yt([Po("dismissAutocompleter", [
29656
29656
  Et(nm(), () => j()),
29657
- Et(qO(), (ve, We) => {
29658
- as(We.event.target, "id").each((Ue) => un(Ot.fromDom(t.getBody()), "aria-activedescendant", Ue));
29657
+ Et(qO(), (ve, Ue) => {
29658
+ as(Ue.event.target, "id").each((He) => un(Ot.fromDom(t.getBody()), "aria-activedescendant", He));
29659
29659
  })
29660
29660
  ])]),
29661
29661
  lazySink: r.getSink
@@ -29663,15 +29663,15 @@ Components: ` + JSON.stringify(r.components, null, 2));
29663
29663
  if (E()) {
29664
29664
  ni.hide(S), t.dom.remove(l, !1);
29665
29665
  const ve = Ot.fromDom(t.getBody());
29666
- as(ve, "aria-owns").filter((We) => We === l).each(() => {
29666
+ as(ve, "aria-owns").filter((Ue) => Ue === l).each(() => {
29667
29667
  ce(ve, "aria-owns"), ce(ve, "aria-activedescendant");
29668
29668
  });
29669
29669
  }
29670
29670
  }, V = () => ni.getContent(S).bind((ve) => Ko(ve.components(), 0)), j = () => t.execCommand("mceAutocompleterClose"), oe = (ve) => {
29671
- const We = rs(ve, (Ue) => Q.from(Ue.columns)).getOr(1);
29672
- return Se(ve, (Ue) => {
29673
- const ct = Ue.items;
29674
- return vH(ct, Ue.matchText, (pt, mn) => {
29671
+ const Ue = rs(ve, (He) => Q.from(He.columns)).getOr(1);
29672
+ return Se(ve, (He) => {
29673
+ const ct = He.items;
29674
+ return vH(ct, He.matchText, (pt, mn) => {
29675
29675
  const Sn = {
29676
29676
  hide: () => j(),
29677
29677
  reload: (xt) => {
@@ -29679,26 +29679,26 @@ Components: ` + JSON.stringify(r.components, null, 2));
29679
29679
  }
29680
29680
  };
29681
29681
  t.execCommand("mceAutocompleterRefreshActiveRange"), x.get().each((xt) => {
29682
- f.set(!0), Ue.onAction(Sn, xt, pt, mn), f.set(!1);
29682
+ f.set(!0), He.onAction(Sn, xt, pt, mn), f.set(!1);
29683
29683
  });
29684
- }, We, yf.BUBBLE_TO_SANDBOX, r, Ue.highlightOn);
29684
+ }, Ue, yf.BUBBLE_TO_SANDBOX, r, He.highlightOn);
29685
29685
  });
29686
- }, ae = (ve, We) => {
29687
- const Ue = rs(ve, (ct) => Q.from(ct.columns)).getOr(1);
29686
+ }, ae = (ve, Ue) => {
29687
+ const He = rs(ve, (ct) => Q.from(ct.columns)).getOr(1);
29688
29688
  ni.showMenuAt(S, {
29689
29689
  anchor: {
29690
29690
  type: "selection",
29691
29691
  getSelection: () => x.get().map(xH),
29692
29692
  root: Ot.fromDom(t.getBody())
29693
29693
  }
29694
- }, wH(x$("autocompleter-value", !0, We, Ue, { menuType: "normal" }), Ue, a3.ContentFocus, "normal")), V().each(ue.highlightFirst);
29694
+ }, wH(x$("autocompleter-value", !0, Ue, He, { menuType: "normal" }), He, a3.ContentFocus, "normal")), V().each(ue.highlightFirst);
29695
29695
  }, pe = (ve) => {
29696
- const We = oe(ve);
29697
- We.length > 0 ? (ae(ve, We), un(Ot.fromDom(t.getBody()), "aria-owns", l), t.inline || xe()) : L();
29696
+ const Ue = oe(ve);
29697
+ Ue.length > 0 ? (ae(ve, Ue), un(Ot.fromDom(t.getBody()), "aria-owns", l), t.inline || xe()) : L();
29698
29698
  }, xe = () => {
29699
29699
  t.dom.get(l) && t.dom.remove(l, !1);
29700
- const ve = t.getDoc().documentElement, We = t.selection.getNode(), Ue = cb(S.element);
29701
- ws(Ue, {
29700
+ const ve = t.getDoc().documentElement, Ue = t.selection.getNode(), He = cb(S.element);
29701
+ ws(He, {
29702
29702
  border: "0",
29703
29703
  clip: "rect(0 0 0 0)",
29704
29704
  height: "1px",
@@ -29707,9 +29707,9 @@ Components: ` + JSON.stringify(r.components, null, 2));
29707
29707
  padding: "0",
29708
29708
  position: "absolute",
29709
29709
  width: "1px",
29710
- top: `${We.offsetTop}px`,
29711
- left: `${We.offsetLeft}px`
29712
- }), t.dom.add(ve, Ue.dom), Er(Ue, '[role="menu"]').each((ct) => {
29710
+ top: `${Ue.offsetTop}px`,
29711
+ left: `${Ue.offsetLeft}px`
29712
+ }), t.dom.add(ve, He.dom), Er(He, '[role="menu"]').each((ct) => {
29713
29713
  Uo(ct, "position"), Uo(ct, "max-height");
29714
29714
  });
29715
29715
  };
@@ -29778,7 +29778,7 @@ Components: ` + JSON.stringify(r.components, null, 2));
29778
29778
  }
29779
29779
  ]);
29780
29780
  return { fireIfReady: (L, V) => Xt(E, V).bind((j) => j(L)) };
29781
- }, Xx = (t) => t.raw.which === Ie[0] && !He([
29781
+ }, Xx = (t) => t.raw.which === Ie[0] && !We([
29782
29782
  "input",
29783
29783
  "textarea"
29784
29784
  ], Ss(t.target)) && !_m(t.target, '[contenteditable="true"]'), CH = (t, r) => {
@@ -29970,27 +29970,27 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
29970
29970
  rt("eventOrder", {})
29971
29971
  ]
29972
29972
  }), OP = (t) => {
29973
- const r = (ve) => oi(t.element).fold(kt, (We) => Jo(ve, We)), l = Np(), f = (ve, We) => l.find(r, ve, We), b = CH(t.element, {
29974
- triggerEvent: (ve, We) => L2(ve, We.target, (Ue) => $H(f, ve, We, Ue))
29973
+ const r = (ve) => oi(t.element).fold(kt, (Ue) => Jo(ve, Ue)), l = Np(), f = (ve, Ue) => l.find(r, ve, Ue), b = CH(t.element, {
29974
+ triggerEvent: (ve, Ue) => L2(ve, Ue.target, (He) => $H(f, ve, Ue, He))
29975
29975
  }), x = {
29976
29976
  debugInfo: te("real"),
29977
- triggerEvent: (ve, We, Ue) => {
29978
- L2(ve, We, (ct) => dB(f, ve, Ue, We, ct));
29977
+ triggerEvent: (ve, Ue, He) => {
29978
+ L2(ve, Ue, (ct) => dB(f, ve, He, Ue, ct));
29979
29979
  },
29980
- triggerFocus: (ve, We) => {
29980
+ triggerFocus: (ve, Ue) => {
29981
29981
  fp(ve).fold(() => {
29982
29982
  bu(ve);
29983
- }, (Ue) => {
29983
+ }, (He) => {
29984
29984
  L2(hh(), ve, (ct) => (EH(f, hh(), {
29985
- originator: We,
29985
+ originator: Ue,
29986
29986
  kill: le,
29987
29987
  prevent: le,
29988
29988
  target: ve
29989
29989
  }, ve, ct), !1));
29990
29990
  });
29991
29991
  },
29992
- triggerEscape: (ve, We) => {
29993
- x.triggerEvent("keydown", ve.element, We.event);
29992
+ triggerEscape: (ve, Ue) => {
29993
+ x.triggerEvent("keydown", ve.element, Ue.event);
29994
29994
  },
29995
29995
  getByUid: (ve) => xe(ve),
29996
29996
  getByDom: (ve) => qe(ve),
@@ -30011,11 +30011,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30011
30011
  broadcast: (ve) => {
30012
30012
  oe(ve);
30013
30013
  },
30014
- broadcastOn: (ve, We) => {
30015
- ae(ve, We);
30014
+ broadcastOn: (ve, Ue) => {
30015
+ ae(ve, Ue);
30016
30016
  },
30017
- broadcastEvent: (ve, We) => {
30018
- pe(ve, We);
30017
+ broadcastEvent: (ve, Ue) => {
30018
+ pe(ve, Ue);
30019
30019
  },
30020
30020
  isConnected: kt
30021
30021
  }, S = (ve) => {
@@ -30029,9 +30029,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30029
30029
  }, V = () => {
30030
30030
  b.unbind(), Ic(t.element);
30031
30031
  }, j = (ve) => {
30032
- const We = l.filter(Gu());
30033
- ht(We, (Ue) => {
30034
- const ct = Ue.descHandler;
30032
+ const Ue = l.filter(Gu());
30033
+ ht(Ue, (He) => {
30034
+ const ct = He.descHandler;
30035
30035
  ig(ct)(ve);
30036
30036
  });
30037
30037
  }, oe = (ve) => {
@@ -30039,18 +30039,18 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30039
30039
  universal: !0,
30040
30040
  data: ve
30041
30041
  });
30042
- }, ae = (ve, We) => {
30042
+ }, ae = (ve, Ue) => {
30043
30043
  j({
30044
30044
  universal: !1,
30045
30045
  channels: ve,
30046
- data: We
30046
+ data: Ue
30047
30047
  });
30048
- }, pe = (ve, We) => {
30049
- const Ue = l.filter(ve);
30050
- return bP(Ue, We);
30048
+ }, pe = (ve, Ue) => {
30049
+ const He = l.filter(ve);
30050
+ return bP(He, Ue);
30051
30051
  }, xe = (ve) => l.getById(ve).fold(() => Eo.error(new Error('Could not find component with uid: "' + ve + '" in system.')), Eo.value), qe = (ve) => {
30052
- const We = fp(ve).getOr("not found");
30053
- return xe(We);
30052
+ const Ue = fp(ve).getOr("not found");
30053
+ return xe(Ue);
30054
30054
  };
30055
30055
  return S(t), {
30056
30056
  root: t,
@@ -30197,8 +30197,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30197
30197
  "-": " "
30198
30198
  }, En = pt.replace(/\_| \- |\-/g, (fn) => xt[fn]);
30199
30199
  return `<div data-mce-tooltip="${En}" class="tox-collection__item${qe}" tabindex="-1" data-collection-item-value="${DH.encodeAllRaw(ct.value)}" aria-label="${En}">${Sn}${mn}</div>`;
30200
- }), We = t.columns !== "auto" && t.columns > 1 ? Jt(ve, t.columns) : [ve], Ue = Ge(We, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
30201
- ji(ae.element, Ue.join(""));
30200
+ }), Ue = t.columns !== "auto" && t.columns > 1 ? Jt(ve, t.columns) : [ve], He = Ge(Ue, (ct) => `<div class="tox-collection__group">${ct.join("")}</div>`);
30201
+ ji(ae.element, He.join(""));
30202
30202
  }, D = S((ae, pe, xe, qe) => {
30203
30203
  pe.stop(), r.checkUiComponentContext("mode:design").shouldDisable || r.isDisabled() || Vn(ae, wg, {
30204
30204
  name: t.name,
@@ -30319,7 +30319,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30319
30319
  "textarea"
30320
30320
  ], wB = (t) => {
30321
30321
  const r = Ss(t);
30322
- return He(LH, r);
30322
+ return We(LH, r);
30323
30323
  }, vP = (t, r) => {
30324
30324
  const l = r.getRoot(t).getOr(t.element);
30325
30325
  Yr(l, r.invalidClass), r.notify.each((f) => {
@@ -30943,9 +30943,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30943
30943
  });
30944
30944
  }, Sn = t.mouseIsDown.get();
30945
30945
  t.mouseIsDown.set(!1), Sn && mn();
30946
- }, We = (pt, mn) => {
30947
- mn.stop(), t.mouseIsDown.set(!0), t.onDragStart(pt, b(pt));
30948
30946
  }, Ue = (pt, mn) => {
30947
+ mn.stop(), t.mouseIsDown.set(!0), t.onDragStart(pt, b(pt));
30948
+ }, He = (pt, mn) => {
30949
30949
  mn.stop(), t.onDragEnd(pt, b(pt)), ve(pt);
30950
30950
  }, ct = (pt) => {
30951
30951
  gr(pt, t, "spectrum").map(Xn.focusIn);
@@ -30980,12 +30980,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
30980
30980
  const En = x(pt);
30981
30981
  t.onInit(pt, xt, En, V.value.get());
30982
30982
  }),
30983
- Et(hs(), We),
30984
- Et(la(), Ue),
30983
+ Et(hs(), Ue),
30984
+ Et(la(), He),
30985
30985
  Et(kc(), (pt, mn) => {
30986
- ct(pt), We(pt, mn);
30986
+ ct(pt), Ue(pt, mn);
30987
30987
  }),
30988
- Et(ch(), Ue)
30988
+ Et(ch(), He)
30989
30989
  ]),
30990
30990
  apis: {
30991
30991
  resetToMin: xe,
@@ -31104,39 +31104,39 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
31104
31104
  }, E = (xe, qe, ve) => xg.config({
31105
31105
  invalidClass: r("invalid"),
31106
31106
  notify: {
31107
- onValidate: (We) => {
31108
- Vn(We, JP, { type: xe });
31107
+ onValidate: (Ue) => {
31108
+ Vn(Ue, JP, { type: xe });
31109
31109
  },
31110
- onValid: (We) => {
31111
- S(!1, ve), Vn(We, Qv, {
31110
+ onValid: (Ue) => {
31111
+ S(!1, ve), Vn(Ue, Qv, {
31112
31112
  type: xe,
31113
- value: kn.getValue(We)
31113
+ value: kn.getValue(Ue)
31114
31114
  });
31115
31115
  },
31116
- onInvalid: (We) => {
31117
- S(!0, ve), Vn(We, uN, {
31116
+ onInvalid: (Ue) => {
31117
+ S(!0, ve), Vn(Ue, uN, {
31118
31118
  type: xe,
31119
- value: kn.getValue(We)
31119
+ value: kn.getValue(Ue)
31120
31120
  });
31121
31121
  }
31122
31122
  },
31123
31123
  validator: {
31124
- validate: (We) => {
31125
- const Ue = kn.getValue(We), ct = qe(Ue) ? Eo.value(!0) : Eo.error(t("aria.input.invalid"));
31124
+ validate: (Ue) => {
31125
+ const He = kn.getValue(Ue), ct = qe(He) ? Eo.value(!0) : Eo.error(t("aria.input.invalid"));
31126
31126
  return nc.pure(ct);
31127
31127
  },
31128
31128
  validateOnLoad: !1
31129
31129
  }
31130
- }), D = (xe, qe, ve, We, Ue) => {
31130
+ }), D = (xe, qe, ve, Ue, He) => {
31131
31131
  const ct = In(xU), pt = t(eA + "range"), mn = Es.parts.label({
31132
31132
  dom: { tag: "label" },
31133
31133
  components: [Qr(ve)]
31134
31134
  }), Sn = Es.parts.field({
31135
- data: Ue,
31135
+ data: He,
31136
31136
  factory: vf,
31137
31137
  inputAttributes: {
31138
31138
  type: "text",
31139
- "aria-label": We,
31139
+ "aria-label": Ue,
31140
31140
  ...qe === "hex" ? { "aria-live": "polite" } : {}
31141
31141
  },
31142
31142
  inputClasses: [r("textfield")],
@@ -31190,15 +31190,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
31190
31190
  };
31191
31191
  }, L = (xe, qe) => {
31192
31192
  const ve = Fx(qe);
31193
- return gO.getField(xe, "hex").each((We) => {
31194
- po.isFocused(We) || kn.setValue(xe, { hex: ve.value });
31193
+ return gO.getField(xe, "hex").each((Ue) => {
31194
+ po.isFocused(Ue) || kn.setValue(xe, { hex: ve.value });
31195
31195
  }), ve;
31196
31196
  }, V = (xe, qe) => {
31197
- const ve = qe.red, We = qe.green, Ue = qe.blue;
31197
+ const ve = qe.red, Ue = qe.green, He = qe.blue;
31198
31198
  kn.setValue(xe, {
31199
31199
  red: ve,
31200
- green: We,
31201
- blue: Ue
31200
+ green: Ue,
31201
+ blue: He
31202
31202
  });
31203
31203
  }, j = Qs({
31204
31204
  dom: {
@@ -31222,23 +31222,23 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
31222
31222
  }, qe = (Qn, Wt) => {
31223
31223
  const On = Zx(Wt);
31224
31224
  V(Qn, On), ct(On);
31225
- }, ve = (Qn) => xe[Qn].get(), We = (Qn, Wt) => {
31225
+ }, ve = (Qn) => xe[Qn].get(), Ue = (Qn, Wt) => {
31226
31226
  xe[Qn].set(Wt);
31227
- }, Ue = () => ve("red").bind((Qn) => ve("green").bind((Wt) => ve("blue").map((On) => lO(Qn, Wt, On, 1)))), ct = (Qn) => {
31227
+ }, He = () => ve("red").bind((Qn) => ve("green").bind((Wt) => ve("blue").map((On) => lO(Qn, Wt, On, 1)))), ct = (Qn) => {
31228
31228
  const Wt = Qn.red, On = Qn.green, vo = Qn.blue;
31229
- We("red", Q.some(Wt)), We("green", Q.some(On)), We("blue", Q.some(vo));
31229
+ Ue("red", Q.some(Wt)), Ue("green", Q.some(On)), Ue("blue", Q.some(vo));
31230
31230
  }, pt = (Qn, Wt) => {
31231
31231
  const On = Wt.event;
31232
- On.type !== "hex" ? We(On.type, Q.none()) : f(Qn);
31232
+ On.type !== "hex" ? Ue(On.type, Q.none()) : f(Qn);
31233
31233
  }, mn = (Qn, Wt) => {
31234
31234
  l(Qn);
31235
31235
  const On = W$(Wt);
31236
- We("hex", Q.some(On.value));
31236
+ Ue("hex", Q.some(On.value));
31237
31237
  const vo = Zx(On);
31238
31238
  V(Qn, vo), ct(vo), Vn(Qn, YP, { hex: On }), oe(Qn, On);
31239
31239
  }, Sn = (Qn, Wt, On) => {
31240
31240
  const vo = parseInt(On, 10);
31241
- We(Wt, Q.some(vo)), Ue().each((Zo) => {
31241
+ Ue(Wt, Q.some(vo)), He().each((Zo) => {
31242
31242
  const eo = L(Qn, Zo);
31243
31243
  Vn(Qn, YP, { hex: eo }), oe(Qn, eo);
31244
31244
  });
@@ -31397,15 +31397,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
31397
31397
  oe.getOpt(xt).each((Bn) => {
31398
31398
  Ah.setValue(Bn, V(fn));
31399
31399
  });
31400
- }, We = (xt, En) => {
31400
+ }, Ue = (xt, En) => {
31401
31401
  ae.getOpt(xt).each((fn) => {
31402
31402
  D.setThumb(fn, En);
31403
31403
  });
31404
- }, Ue = (xt, En) => {
31404
+ }, He = (xt, En) => {
31405
31405
  const fn = Zx(xt);
31406
31406
  j.paletteRgba.set(fn), j.paletteHue.set(En);
31407
31407
  }, ct = (xt, En, fn, Bn) => {
31408
- Ue(En, fn), ht(Bn, (cs) => {
31408
+ He(En, fn), ht(Bn, (cs) => {
31409
31409
  cs(xt, En, fn);
31410
31410
  });
31411
31411
  }, pt = () => {
@@ -31427,7 +31427,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
31427
31427
  const xt = [
31428
31428
  xe,
31429
31429
  ve,
31430
- We
31430
+ Ue
31431
31431
  ];
31432
31432
  return (En, fn) => {
31433
31433
  const Bn = fn.event.hex, cs = Pz(Bn);
@@ -32110,8 +32110,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
32110
32110
  ...t.listRole === "listbox" ? {} : {
32111
32111
  onHighlightItem: rB,
32112
32112
  onCollapseMenu: (xe, qe, ve) => {
32113
- ue.getHighlighted(ve).each((We) => {
32114
- rB(xe, ve, We);
32113
+ ue.getHighlighted(ve).each((Ue) => {
32114
+ rB(xe, ve, Ue);
32115
32115
  });
32116
32116
  },
32117
32117
  onDehighlightItem: pH
@@ -32526,16 +32526,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
32526
32526
  ...S.toArray(),
32527
32527
  zr.config({}),
32528
32528
  Po("size-input-events", [
32529
- Et(dh(), (We, Ue) => {
32530
- Vn(We, f, { isField1: ve });
32529
+ Et(dh(), (Ue, He) => {
32530
+ Vn(Ue, f, { isField1: ve });
32531
32531
  }),
32532
- Et(tm(), (We, Ue) => {
32533
- t.name.each((ct) => Vn(We, Su, { name: ct }));
32532
+ Et(tm(), (Ue, He) => {
32533
+ t.name.each((ct) => Vn(Ue, Su, { name: ct }));
32534
32534
  })
32535
32535
  ]),
32536
- ...t.onEnter.map((We) => Xn.config({
32536
+ ...t.onEnter.map((Ue) => Xn.config({
32537
32537
  mode: "special",
32538
- onEnter: We
32538
+ onEnter: Ue
32539
32539
  })).toArray()
32540
32540
  ]),
32541
32541
  selectOnFocus: !1
@@ -32551,12 +32551,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
32551
32551
  ])), pe = ad.parts.field2(V([
32552
32552
  Es.parts.label(oe("Height")),
32553
32553
  j(!1)
32554
- ])), xe = In(le), qe = Fi(t.onSetup, t.getApi, (ve, We) => [
32554
+ ])), xe = In(le), qe = Fi(t.onSetup, t.getApi, (ve, Ue) => [
32555
32555
  Sf({
32556
32556
  onSetup: ve,
32557
- getApi: We
32557
+ getApi: Ue
32558
32558
  }, xe),
32559
- El({ getApi: We }, xe)
32559
+ El({ getApi: Ue }, xe)
32560
32560
  ]).getOr([]);
32561
32561
  return ad.sketch({
32562
32562
  dom: {
@@ -32581,10 +32581,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
32581
32581
  field2Name: "height",
32582
32582
  locked: !0,
32583
32583
  markers: { lockClass: "tox-locked" },
32584
- onLockedChange: (ve, We, Ue) => {
32584
+ onLockedChange: (ve, Ue, He) => {
32585
32585
  bA(kn.getValue(ve)).each((ct) => {
32586
32586
  l(ct).each((pt) => {
32587
- kn.setValue(We, KU(pt));
32587
+ kn.setValue(Ue, KU(pt));
32588
32588
  });
32589
32589
  });
32590
32590
  },
@@ -32601,12 +32601,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
32601
32601
  }),
32602
32602
  na(() => r.checkUiComponentContext("mode:design")),
32603
32603
  Po("size-input-events", [
32604
- Et(f, (ve, We) => {
32605
- const Ue = We.event.isField1, ct = Ue ? ad.getField1(ve) : ad.getField2(ve), pt = Ue ? ad.getField2(ve) : ad.getField1(ve), mn = ct.map(kn.getValue).getOr(""), Sn = pt.map(kn.getValue).getOr("");
32604
+ Et(f, (ve, Ue) => {
32605
+ const He = Ue.event.isField1, ct = He ? ad.getField1(ve) : ad.getField2(ve), pt = He ? ad.getField2(ve) : ad.getField1(ve), mn = ct.map(kn.getValue).getOr(""), Sn = pt.map(kn.getValue).getOr("");
32606
32606
  l = IN(mn, Sn);
32607
32607
  }),
32608
32608
  Et(OB, (ve) => {
32609
- t.onInput.each((We) => We(ve));
32609
+ t.onInput.each((Ue) => Ue(ve));
32610
32610
  }),
32611
32611
  ...qe
32612
32612
  ])
@@ -33357,7 +33357,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33357
33357
  r3(t, S(j), j, pe, f, xe, Ha.HighlightMenuAndItem).get(le);
33358
33358
  }
33359
33359
  }, x = A6(t), S = (j) => (oe) => oe.map((ae) => {
33360
- const pe = Ka(ae.menus), xe = Se(pe, (ve) => mo(ve.items, (We) => We.type === "item"));
33360
+ const pe = Ka(ae.menus), xe = Se(pe, (ve) => mo(ve.items, (Ue) => Ue.type === "item"));
33361
33361
  return kn.getState(j).update(Ge(xe, (ve) => ve.data)), ae;
33362
33362
  }), E = (j) => Os.getCurrent(j), D = "typeaheadevents", L = [
33363
33363
  po.config({}),
@@ -33388,11 +33388,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33388
33388
  const xe = E(ae).bind((ve) => ue.getHighlighted(ve).map(kn.getValue));
33389
33389
  t.previewing.set(!0);
33390
33390
  const qe = (ve) => {
33391
- E(ae).each((We) => {
33391
+ E(ae).each((Ue) => {
33392
33392
  xe.fold(() => {
33393
- t.model.selectsOver && ue.highlightFirst(We);
33394
- }, (Ue) => {
33395
- ue.highlightBy(We, (ct) => kn.getValue(ct).value === Ue.value), ue.getHighlighted(We).orThunk(() => (ue.highlightFirst(We), Q.none()));
33393
+ t.model.selectsOver && ue.highlightFirst(Ue);
33394
+ }, (He) => {
33395
+ ue.highlightBy(Ue, (ct) => kn.getValue(ct).value === He.value), ue.getHighlighted(Ue).orThunk(() => (ue.highlightFirst(Ue), Q.none()));
33396
33396
  });
33397
33397
  });
33398
33398
  };
@@ -33642,12 +33642,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33642
33642
  }) : r === "submit" ? qo(l, Jx) : r === "cancel" ? qo(l, Lp) : console.error("Unknown button type: ", r);
33643
33643
  }, cL = (t, r) => r === "menu", _W = (t, r) => r === "custom" || r === "cancel" || r === "submit", uL = (t, r) => r === "togglebutton", EW = (t, r, l) => {
33644
33644
  var f, b;
33645
- const x = t.icon.map((Ue) => p1(Ue, r.icons)).map(Qs), S = (Ue) => {
33646
- Vn(Ue, wg, {
33645
+ const x = t.icon.map((He) => p1(He, r.icons)).map(Qs), S = (He) => {
33646
+ Vn(He, wg, {
33647
33647
  name: t.name,
33648
33648
  value: {
33649
33649
  setIcon: (ct) => {
33650
- x.map((pt) => pt.getOpt(Ue).each((mn) => {
33650
+ x.map((pt) => pt.getOpt(He).each((mn) => {
33651
33651
  wo.set(mn, [p1(ct, r.icons)]);
33652
33652
  }));
33653
33653
  }
@@ -33658,7 +33658,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33658
33658
  name: (f = t.name) !== null && f !== void 0 ? f : "",
33659
33659
  tooltip: t.tooltip,
33660
33660
  enabled: (b = t.enabled) !== null && b !== void 0 ? b : !1
33661
- }, L = D.tooltip.or(t.text).map((Ue) => ({ "aria-label": r.translate(Ue) })).getOr({}), V = Z3(E ?? "secondary"), j = t.icon.isSome() && t.text.isSome(), oe = {
33661
+ }, L = D.tooltip.or(t.text).map((He) => ({ "aria-label": r.translate(He) })).getOr({}), V = Z3(E ?? "secondary"), j = t.icon.isSome() && t.text.isSome(), oe = {
33662
33662
  tag: "button",
33663
33663
  classes: [
33664
33664
  ...V.concat(t.icon.isSome() ? ["tox-button--icon"] : []),
@@ -33670,10 +33670,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33670
33670
  ...Me(l) ? { "data-mce-name": l } : {}
33671
33671
  }
33672
33672
  }, ae = [], pe = r.translate(t.text.getOr("")), xe = Qr(pe), ve = [
33673
- ...Ev([x.map((Ue) => Ue.asSpec())]),
33673
+ ...Ev([x.map((He) => He.asSpec())]),
33674
33674
  ...t.text.isSome() ? [xe] : []
33675
- ], We = F3(D, Q.some(S), ae, oe, ve, t.tooltip, r);
33676
- return Ta.sketch(We);
33675
+ ], Ue = F3(D, Q.some(S), ae, oe, ve, t.tooltip, r);
33676
+ return Ta.sketch(Ue);
33677
33677
  }, z3 = (t, r, l) => {
33678
33678
  if (cL(t, r)) {
33679
33679
  const f = () => S, b = t, x = {
@@ -33740,11 +33740,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33740
33740
  ]) : L;
33741
33741
  });
33742
33742
  }, fL = Pn("aria-invalid"), RW = (t, r, l, f) => {
33743
- const b = r.shared.providers, x = (We) => {
33744
- const Ue = kn.getValue(We);
33745
- l.addToHistory(Ue.value, t.filetype);
33743
+ const b = r.shared.providers, x = (Ue) => {
33744
+ const He = kn.getValue(Ue);
33745
+ l.addToHistory(He.value, t.filetype);
33746
33746
  }, S = {
33747
- ...f.map((We) => ({ initialData: We })).getOr({}),
33747
+ ...f.map((Ue) => ({ initialData: Ue })).getOr({}),
33748
33748
  dismissOnBlur: !0,
33749
33749
  inputClasses: ["tox-textfield"],
33750
33750
  sandboxClasses: ["tox-dialog__popups"],
@@ -33754,33 +33754,33 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33754
33754
  },
33755
33755
  minChars: 0,
33756
33756
  responseTime: 0,
33757
- fetch: (We) => {
33758
- const Ue = RA(t.filetype, We, l), ct = Fv(Ue, yf.BUBBLE_TO_SANDBOX, r, {
33757
+ fetch: (Ue) => {
33758
+ const He = RA(t.filetype, Ue, l), ct = Fv(He, yf.BUBBLE_TO_SANDBOX, r, {
33759
33759
  isHorizontalMenu: !1,
33760
33760
  search: Q.none()
33761
33761
  });
33762
33762
  return nc.pure(ct);
33763
33763
  },
33764
- getHotspot: (We) => pe.getOpt(We),
33765
- onSetValue: (We, Ue) => {
33766
- We.hasConfigured(xg) && xg.run(We).get(le);
33764
+ getHotspot: (Ue) => pe.getOpt(Ue),
33765
+ onSetValue: (Ue, He) => {
33766
+ Ue.hasConfigured(xg) && xg.run(Ue).get(le);
33767
33767
  },
33768
33768
  typeaheadBehaviours: Yt([
33769
- ...l.getValidationHandler().map((We) => xg.config({
33770
- getRoot: (Ue) => Ra(Ue.element),
33769
+ ...l.getValidationHandler().map((Ue) => xg.config({
33770
+ getRoot: (He) => Ra(He.element),
33771
33771
  invalidClass: "tox-control-wrap--status-invalid",
33772
33772
  notify: {
33773
- onInvalid: (Ue, ct) => {
33774
- V.getOpt(Ue).each((pt) => {
33773
+ onInvalid: (He, ct) => {
33774
+ V.getOpt(He).each((pt) => {
33775
33775
  un(pt.element, "title", b.translate(ct));
33776
33776
  });
33777
33777
  }
33778
33778
  },
33779
33779
  validator: {
33780
- validate: (Ue) => {
33781
- const ct = kn.getValue(Ue);
33780
+ validate: (He) => {
33781
+ const ct = kn.getValue(He);
33782
33782
  return iL.nu((pt) => {
33783
- We({
33783
+ Ue({
33784
33784
  type: t.filetype,
33785
33785
  url: ct.value
33786
33786
  }, (mn) => {
@@ -33800,15 +33800,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33800
33800
  zn.config({ disabled: () => !t.enabled || b.checkUiComponentContext(t.context).shouldDisable }),
33801
33801
  zr.config({}),
33802
33802
  Po("urlinput-events", [
33803
- Et(qu(), (We) => {
33804
- const Ue = Cd(We.element), ct = Ue.trim();
33805
- ct !== Ue && bp(We.element, ct), t.filetype === "file" && Vn(We, Su, { name: t.name });
33803
+ Et(qu(), (Ue) => {
33804
+ const He = Cd(Ue.element), ct = He.trim();
33805
+ ct !== He && bp(Ue.element, ct), t.filetype === "file" && Vn(Ue, Su, { name: t.name });
33806
33806
  }),
33807
- Et(tm(), (We) => {
33808
- Vn(We, Su, { name: t.name }), x(We);
33807
+ Et(tm(), (Ue) => {
33808
+ Vn(Ue, Su, { name: t.name }), x(Ue);
33809
33809
  }),
33810
- Et(f0(), (We) => {
33811
- Vn(We, Su, { name: t.name }), x(We);
33810
+ Et(f0(), (Ue) => {
33811
+ Vn(Ue, Su, { name: t.name }), x(Ue);
33812
33812
  })
33813
33813
  ])
33814
33814
  ]),
@@ -33820,32 +33820,32 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33820
33820
  ]
33821
33821
  },
33822
33822
  model: {
33823
- getDisplayText: (We) => We.value,
33823
+ getDisplayText: (Ue) => Ue.value,
33824
33824
  selectsOver: !1,
33825
33825
  populateFromBrowse: !1
33826
33826
  },
33827
33827
  markers: { openClass: "tox-textfield--popup-open" },
33828
33828
  lazySink: r.shared.getSink,
33829
33829
  parts: { menu: Dx(!1, 1, "normal") },
33830
- onExecute: (We, Ue, ct) => {
33831
- Vn(Ue, Jx, {});
33830
+ onExecute: (Ue, He, ct) => {
33831
+ Vn(He, Jx, {});
33832
33832
  },
33833
- onItemExecute: (We, Ue, ct, pt) => {
33834
- x(We), Vn(We, Su, { name: t.name });
33833
+ onItemExecute: (Ue, He, ct, pt) => {
33834
+ x(Ue), Vn(Ue, Su, { name: t.name });
33835
33835
  }
33836
33836
  }, E = Es.parts.field({
33837
33837
  ...S,
33838
33838
  factory: CW
33839
- }), D = t.label.map((We) => vg(We, b)), V = Qs(((We, Ue, ct = We, pt = We) => Ld(ct, {
33839
+ }), D = t.label.map((Ue) => vg(Ue, b)), V = Qs(((Ue, He, ct = Ue, pt = Ue) => Ld(ct, {
33840
33840
  tag: "div",
33841
33841
  classes: [
33842
33842
  "tox-icon",
33843
- "tox-control-wrap__status-icon-" + We
33843
+ "tox-control-wrap__status-icon-" + Ue
33844
33844
  ],
33845
33845
  attributes: {
33846
33846
  title: b.translate(pt),
33847
33847
  "aria-live": "polite",
33848
- ...Ue.fold(() => ({}), (mn) => ({ id: mn }))
33848
+ ...He.fold(() => ({}), (mn) => ({ id: mn }))
33849
33849
  }
33850
33850
  }, b.icons))("invalid", Q.some(fL), "warning")), j = Qs({
33851
33851
  dom: {
@@ -33872,7 +33872,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33872
33872
  primary: !1,
33873
33873
  buttonType: Q.none(),
33874
33874
  borderless: !0
33875
- }, (We) => qo(We, ae), b, [], ["tox-browse-url"])), qe = () => ({
33875
+ }, (Ue) => qo(Ue, ae), b, [], ["tox-browse-url"])), qe = () => ({
33876
33876
  dom: {
33877
33877
  tag: "div",
33878
33878
  classes: ["tox-form__controls-h-stack"]
@@ -33881,15 +33881,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33881
33881
  [pe.asSpec()],
33882
33882
  oe.map(() => xe.asSpec()).toArray()
33883
33883
  ])
33884
- }), ve = (We) => {
33885
- Os.getCurrent(We).each((Ue) => {
33886
- const ct = kn.getValue(Ue), pt = {
33884
+ }), ve = (Ue) => {
33885
+ Os.getCurrent(Ue).each((He) => {
33886
+ const ct = kn.getValue(He), pt = {
33887
33887
  fieldname: t.name,
33888
33888
  ...ct
33889
33889
  };
33890
33890
  oe.each((mn) => {
33891
33891
  mn(pt).get((Sn) => {
33892
- kn.setValue(Ue, Sn), Vn(We, Su, { name: t.name });
33892
+ kn.setValue(He, Sn), Vn(Ue, Su, { name: t.name });
33893
33893
  });
33894
33894
  });
33895
33895
  });
@@ -33900,11 +33900,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
33900
33900
  fieldBehaviours: Yt([
33901
33901
  zn.config({
33902
33902
  disabled: () => !t.enabled || b.checkUiComponentContext(t.context).shouldDisable,
33903
- onDisabled: (We) => {
33904
- Es.getField(We).each(zn.disable), xe.getOpt(We).each(zn.disable);
33903
+ onDisabled: (Ue) => {
33904
+ Es.getField(Ue).each(zn.disable), xe.getOpt(Ue).each(zn.disable);
33905
33905
  },
33906
- onEnabled: (We) => {
33907
- Es.getField(We).each(zn.enable), xe.getOpt(We).each(zn.enable);
33906
+ onEnabled: (Ue) => {
33907
+ Es.getField(Ue).each(zn.enable), xe.getOpt(Ue).each(zn.enable);
33908
33908
  }
33909
33909
  }),
33910
33910
  na(() => b.checkUiComponentContext(t.context)),
@@ -34459,7 +34459,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
34459
34459
  return FE(t) ? FA.concat(l) : l;
34460
34460
  }).getOr(FA), XW = (t) => {
34461
34461
  const r = is(t);
34462
- return r.length === 1 && He(r, "title");
34462
+ return r.length === 1 && We(r, "title");
34463
34463
  }, RL = (t, r, l) => ({
34464
34464
  ...t,
34465
34465
  type: "formatter",
@@ -34636,9 +34636,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
34636
34636
  contextType: "disabled",
34637
34637
  shouldDisable: !0
34638
34638
  };
34639
- const [We, Ue = ""] = ve.split(":"), ct = r.ui.registry.getAll().contexts, pt = Xt(ct, We).fold(() => Xt(ct, "mode").map((mn) => mn("design")).getOr(!1), (mn) => Ue.charAt(0) === "!" ? !mn(Ue.slice(1)) : mn(Ue));
34639
+ const [Ue, He = ""] = ve.split(":"), ct = r.ui.registry.getAll().contexts, pt = Xt(ct, Ue).fold(() => Xt(ct, "mode").map((mn) => mn("design")).getOr(!1), (mn) => He.charAt(0) === "!" ? !mn(He.slice(1)) : mn(He));
34640
34640
  return {
34641
- contextType: We,
34641
+ contextType: Ue,
34642
34642
  shouldDisable: !pt
34643
34643
  };
34644
34644
  }
@@ -34698,7 +34698,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
34698
34698
  });
34699
34699
  }, xe = (xt) => f(XO(), Jk(xt)), qe = (xt) => {
34700
34700
  b(Om(), {}), f(m0(), Jk(xt));
34701
- }, ve = Wr(Ot.fromDom(t.getElement())), We = hw(ve, "scroll", (xt) => {
34701
+ }, ve = Wr(Ot.fromDom(t.getElement())), Ue = hw(ve, "scroll", (xt) => {
34702
34702
  requestAnimationFrame(() => {
34703
34703
  const En = t.getContainer();
34704
34704
  if (En != null) {
@@ -34709,25 +34709,25 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
34709
34709
  Bt(Bn, (cs) => Jo(cs, xt.target)) && (t.dispatch("ElementScroll", { target: xt.target.dom }), f(ep(), xt));
34710
34710
  }
34711
34711
  });
34712
- }), Ue = () => b(Om(), {}), ct = (xt) => {
34712
+ }), He = () => b(Om(), {}), ct = (xt) => {
34713
34713
  xt.state && b(mg(), { target: Ot.fromDom(t.getContainer()) });
34714
34714
  }, pt = (xt) => {
34715
34715
  b(mg(), { target: Ot.fromDom(xt.relatedTarget.getContainer()) });
34716
34716
  }, mn = (xt) => t.dispatch("focusin", xt), Sn = (xt) => t.dispatch("focusout", xt);
34717
34717
  t.on("PostRender", () => {
34718
- t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor", Ue), t.on("AfterProgressState", ct), t.on("DismissPopups", pt), ht([
34718
+ t.on("click", oe), t.on("tap", oe), t.on("mouseup", ae), t.on("mousedown", pe), t.on("ScrollWindow", xe), t.on("ResizeWindow", qe), t.on("ResizeEditor", He), t.on("AfterProgressState", ct), t.on("DismissPopups", pt), ht([
34719
34719
  r,
34720
34720
  ...l
34721
34721
  ], (xt) => {
34722
34722
  xt.element.dom.addEventListener("focusin", mn), xt.element.dom.addEventListener("focusout", Sn);
34723
34723
  });
34724
34724
  }), t.on("remove", () => {
34725
- t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor", Ue), t.off("AfterProgressState", ct), t.off("DismissPopups", pt), ht([
34725
+ t.off("click", oe), t.off("tap", oe), t.off("mouseup", ae), t.off("mousedown", pe), t.off("ScrollWindow", xe), t.off("ResizeWindow", qe), t.off("ResizeEditor", He), t.off("AfterProgressState", ct), t.off("DismissPopups", pt), ht([
34726
34726
  r,
34727
34727
  ...l
34728
34728
  ], (xt) => {
34729
34729
  xt.element.dom.removeEventListener("focusin", mn), xt.element.dom.removeEventListener("focusout", Sn);
34730
- }), V.unbind(), E.unbind(), D.unbind(), L.unbind(), j.unbind(), We.unbind();
34730
+ }), V.unbind(), E.unbind(), D.unbind(), L.unbind(), j.unbind(), Ue.unbind();
34731
34731
  }), t.on("detach", () => {
34732
34732
  ht([
34733
34733
  r,
@@ -34842,7 +34842,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
34842
34842
  const ve = L - b + D + oe;
34843
34843
  sh(x.left, ve, l);
34844
34844
  }
34845
- }, e_ = (t, r) => He(mr.getModes(t), r), t_ = (t) => {
34845
+ }, e_ = (t, r) => We(mr.getModes(t), r), t_ = (t) => {
34846
34846
  const r = (f) => Bc(f) + (parseInt(Nt(f, "margin-top"), 10) || 0) + (parseInt(Nt(f, "margin-bottom"), 10) || 0), l = t.element;
34847
34847
  Ra(l).each((f) => {
34848
34848
  const b = "padding-" + mr.getModes(t)[0];
@@ -35108,8 +35108,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
35108
35108
  }));
35109
35109
  return Ub(o9, Sj, b, xS, l);
35110
35110
  }, xS = (t, r) => {
35111
- const l = (xe) => jw(t), f = (xe, qe) => gr(xe, t, qe), b = (xe, qe) => (ve, We) => gr(ve, t, We).map((Ue) => xe(Ue, We)).getOr(qe), x = (xe) => (qe, ve) => {
35112
- ht(ve, (We) => xe(qe, We));
35111
+ const l = (xe) => jw(t), f = (xe, qe) => gr(xe, t, qe), b = (xe, qe) => (ve, Ue) => gr(ve, t, Ue).map((He) => xe(He, Ue)).getOr(qe), x = (xe) => (qe, ve) => {
35112
+ ht(ve, (Ue) => xe(qe, Ue));
35113
35113
  }, S = (xe, qe) => go(xe.element, "aria-hidden") !== "true", E = (xe, qe) => {
35114
35114
  if (!S(xe)) {
35115
35115
  const ve = xe.element;
@@ -36038,15 +36038,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
36038
36038
  hu("onHide")
36039
36039
  ]), sX = (t) => Vr("view", oX, t), S9 = (t, r) => {
36040
36040
  var l, f;
36041
- const b = t.type === "togglebutton", x = t.icon.map((Ue) => p1(Ue, r.icons)).map(Qs), E = (Ue) => {
36041
+ const b = t.type === "togglebutton", x = t.icon.map((He) => p1(He, r.icons)).map(Qs), E = (He) => {
36042
36042
  const ct = (xt) => {
36043
- x.map((En) => En.getOpt(Ue).each((fn) => {
36043
+ x.map((En) => En.getOpt(He).each((fn) => {
36044
36044
  wo.set(fn, [p1(xt, r.icons)]);
36045
36045
  }));
36046
36046
  }, pt = (xt) => {
36047
- const En = Ue.element;
36047
+ const En = He.element;
36048
36048
  xt ? (mi(En, "tox-button--enabled"), un(En, "aria-pressed", !0)) : (Yr(En, "tox-button--enabled"), ce(En, "aria-pressed"));
36049
- }, mn = () => ql(Ue.element, "tox-button--enabled"), Sn = () => bu(Ue.element);
36049
+ }, mn = () => ql(He.element, "tox-button--enabled"), Sn = () => bu(He.element);
36050
36050
  if (b)
36051
36051
  return t.onAction({
36052
36052
  setIcon: ct,
@@ -36065,15 +36065,15 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
36065
36065
  icon: t.icon,
36066
36066
  enabled: !0,
36067
36067
  borderless: t.borderless
36068
- }, L = Z3((f = t.buttonType) !== null && f !== void 0 ? f : "secondary"), V = b ? t.text.map(r.translate) : Q.some(r.translate(t.text)), j = V.map(Qr), oe = D.tooltip.or(V).map((Ue) => ({ "aria-label": r.translate(Ue) })).getOr({}), ae = x.map((Ue) => Ue.asSpec()), pe = Ev([
36068
+ }, L = Z3((f = t.buttonType) !== null && f !== void 0 ? f : "secondary"), V = b ? t.text.map(r.translate) : Q.some(r.translate(t.text)), j = V.map(Qr), oe = D.tooltip.or(V).map((He) => ({ "aria-label": r.translate(He) })).getOr({}), ae = x.map((He) => He.asSpec()), pe = Ev([
36069
36069
  ae,
36070
36070
  j
36071
36071
  ]), xe = t.icon.isSome() && j.isSome(), qe = {
36072
36072
  tag: "button",
36073
36073
  classes: L.concat(...t.icon.isSome() && !xe ? ["tox-button--icon"] : []).concat(...xe ? ["tox-button--icon-and-text"] : []).concat(...t.borderless ? ["tox-button--naked"] : []).concat(...t.type === "togglebutton" && t.active ? ["tox-button--enabled"] : []),
36074
36074
  attributes: oe
36075
- }, ve = [], We = F3(D, Q.some(E), ve, qe, pe, t.tooltip, r);
36076
- return Ta.sketch(We);
36075
+ }, ve = [], Ue = F3(D, Q.some(E), ve, qe, pe, t.tooltip, r);
36076
+ return Ta.sketch(Ue);
36077
36077
  }, k9 = (t, r) => S9(t, r), rX = (t, r) => ({
36078
36078
  dom: {
36079
36079
  tag: "div",
@@ -36944,19 +36944,19 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
36944
36944
  pageDown: te(34)
36945
36945
  }, LX = (t, r, l, f) => {
36946
36946
  let b = Q.none();
36947
- const x = (Ue) => Ue.map((ct) => kn.getValue(ct)).getOr(""), S = uO(t, "NodeChange SwitchMode DisabledStateChange", (Ue) => {
36948
- const ct = Ue.getComponent();
36947
+ const x = (He) => He.map((ct) => kn.getValue(ct)).getOr(""), S = uO(t, "NodeChange SwitchMode DisabledStateChange", (He) => {
36948
+ const ct = He.getComponent();
36949
36949
  b = Q.some(ct), l.updateInputValue(ct), zn.set(ct, !t.selection.isEditable() || pT(t));
36950
- }), E = (Ue) => ({ getComponent: te(Ue) }), D = In(le), L = Pn("custom-number-input-events"), V = (Ue, ct, pt) => {
36951
- const mn = x(b), Sn = l.getNewValue(mn, Ue), xt = mn.length - `${Sn}`.length, En = b.map((Bn) => Bn.element.dom.selectionStart - xt), fn = b.map((Bn) => Bn.element.dom.selectionEnd - xt);
36950
+ }), E = (He) => ({ getComponent: te(He) }), D = In(le), L = Pn("custom-number-input-events"), V = (He, ct, pt) => {
36951
+ const mn = x(b), Sn = l.getNewValue(mn, He), xt = mn.length - `${Sn}`.length, En = b.map((Bn) => Bn.element.dom.selectionStart - xt), fn = b.map((Bn) => Bn.element.dom.selectionEnd - xt);
36952
36952
  l.onAction(Sn, pt), b.each((Bn) => {
36953
36953
  kn.setValue(Bn, Sn), ct && (En.each((cs) => Bn.element.dom.selectionStart = cs), fn.each((cs) => Bn.element.dom.selectionEnd = cs));
36954
36954
  });
36955
- }, j = (Ue, ct) => V((pt, mn) => pt - mn, Ue, ct), oe = (Ue, ct) => V((pt, mn) => pt + mn, Ue, ct), ae = (Ue) => Ra(Ue.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))), pe = (Ue) => uf(Ue.element) ? (Sc(Ue.element).each((ct) => bu(ct)), Q.some(!0)) : Q.none(), xe = (Ue, ct, pt, mn) => {
36955
+ }, j = (He, ct) => V((pt, mn) => pt - mn, He, ct), oe = (He, ct) => V((pt, mn) => pt + mn, He, ct), ae = (He) => Ra(He.element).fold(Q.none, (ct) => (bu(ct), Q.some(!0))), pe = (He) => uf(He.element) ? (Sc(He.element).each((ct) => bu(ct)), Q.some(!0)) : Q.none(), xe = (He, ct, pt, mn) => {
36956
36956
  const Sn = In(le), xt = r.shared.providers.translate(pt), En = Pn("altExecuting"), fn = uO(t, "NodeChange SwitchMode DisabledStateChange", (cs) => {
36957
36957
  zn.set(cs.getComponent(), !t.selection.isEditable() || pT(t));
36958
36958
  }), Bn = (cs) => {
36959
- zn.isDisabled(cs) || Ue(!0);
36959
+ zn.isDisabled(cs) || He(!0);
36960
36960
  };
36961
36961
  return Ta.sketch({
36962
36962
  dom: {
@@ -36978,7 +36978,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
36978
36978
  }, Sn),
36979
36979
  El({ getApi: E }, Sn),
36980
36980
  Et(La(), (cs, Dr) => {
36981
- (Dr.event.raw.keyCode === Y9.space() || Dr.event.raw.keyCode === Y9.enter()) && (zn.isDisabled(cs) || Ue(!1));
36981
+ (Dr.event.raw.keyCode === Y9.space() || Dr.event.raw.keyCode === Y9.enter()) && (zn.isDisabled(cs) || He(!1));
36982
36982
  }),
36983
36983
  Et(Yg(), Bn),
36984
36984
  Et(la(), Bn)
@@ -37008,7 +37008,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37008
37008
  ]
37009
37009
  }
37010
37010
  });
37011
- }, qe = Qs(xe((Ue) => j(!1, Ue), "minus", "Decrease font size", [])), ve = Qs(xe((Ue) => oe(!1, Ue), "plus", "Increase font size", [])), We = Qs({
37011
+ }, qe = Qs(xe((He) => j(!1, He), "minus", "Decrease font size", [])), ve = Qs(xe((He) => oe(!1, He), "plus", "Increase font size", [])), Ue = Qs({
37012
37012
  dom: {
37013
37013
  tag: "div",
37014
37014
  classes: ["tox-input-wrapper"]
@@ -37024,24 +37024,24 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37024
37024
  El({ getApi: E }, D)
37025
37025
  ]),
37026
37026
  Po("input-update-display-text", [
37027
- Et(Fd, (Ue, ct) => {
37028
- kn.setValue(Ue, ct.event.text);
37027
+ Et(Fd, (He, ct) => {
37028
+ kn.setValue(He, ct.event.text);
37029
37029
  }),
37030
- Et(ok(), (Ue) => {
37031
- l.onAction(kn.getValue(Ue));
37030
+ Et(ok(), (He) => {
37031
+ l.onAction(kn.getValue(He));
37032
37032
  }),
37033
- Et(tm(), (Ue) => {
37034
- l.onAction(kn.getValue(Ue));
37033
+ Et(tm(), (He) => {
37034
+ l.onAction(kn.getValue(He));
37035
37035
  })
37036
37036
  ]),
37037
37037
  Xn.config({
37038
37038
  mode: "special",
37039
- onEnter: (Ue) => (V(_t, !0, !0), Q.some(!0)),
37039
+ onEnter: (He) => (V(_t, !0, !0), Q.some(!0)),
37040
37040
  onEscape: ae,
37041
- onUp: (Ue) => (oe(!0, !1), Q.some(!0)),
37042
- onDown: (Ue) => (j(!0, !1), Q.some(!0)),
37043
- onLeft: (Ue, ct) => (ct.cut(), Q.none()),
37044
- onRight: (Ue, ct) => (ct.cut(), Q.none())
37041
+ onUp: (He) => (oe(!0, !1), Q.some(!0)),
37042
+ onDown: (He) => (j(!0, !1), Q.some(!0)),
37043
+ onLeft: (He, ct) => (ct.cut(), Q.none()),
37044
+ onRight: (He, ct) => (ct.cut(), Q.none())
37045
37045
  })
37046
37046
  ])
37047
37047
  })],
@@ -37053,12 +37053,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37053
37053
  onSpace: pe,
37054
37054
  onEscape: ae
37055
37055
  }),
37056
- Po("input-wrapper-events", [Et(uh(), (Ue) => {
37056
+ Po("input-wrapper-events", [Et(uh(), (He) => {
37057
37057
  ht([
37058
37058
  qe,
37059
37059
  ve
37060
37060
  ], (ct) => {
37061
- const pt = Ot.fromDom(ct.get(Ue).element.dom);
37061
+ const pt = Ot.fromDom(ct.get(He).element.dom);
37062
37062
  uf(pt) && Ri(pt);
37063
37063
  });
37064
37064
  })])
@@ -37072,7 +37072,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37072
37072
  },
37073
37073
  components: [
37074
37074
  qe.asSpec(),
37075
- We.asSpec(),
37075
+ Ue.asSpec(),
37076
37076
  ve.asSpec()
37077
37077
  ],
37078
37078
  behaviours: Yt([
@@ -37082,7 +37082,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37082
37082
  focusInside: Ll.OnEnterOrSpaceMode,
37083
37083
  cycles: !1,
37084
37084
  selector: "button, .tox-input-wrapper",
37085
- onEscape: (Ue) => uf(Ue.element) ? Q.none() : (bu(Ue.element), Q.some(!0))
37085
+ onEscape: (He) => uf(He.element) ? Q.none() : (bu(He.element), Q.some(!0))
37086
37086
  })
37087
37087
  ])
37088
37088
  };
@@ -37820,8 +37820,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37820
37820
  }), t.addCommand("ToggleView", (xe, qe) => {
37821
37821
  if (Ar.toggleView(D, qe)) {
37822
37822
  const ve = D.element;
37823
- x.mothership.broadcastOn([mg()], { target: ve }), ht(S, (We) => {
37824
- We.broadcastOn([mg()], { target: ve });
37823
+ x.mothership.broadcastOn([mg()], { target: ve }), ht(S, (Ue) => {
37824
+ Ue.broadcastOn([mg()], { target: ve });
37825
37825
  }), F(Ar.whichView(D)) && (t.focus(), t.nodeChanged(), Ar.refreshToolbar(D)), _z(t);
37826
37826
  }
37827
37827
  }), t.addQueryValueHandler("ToggleView", () => {
@@ -37858,10 +37858,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37858
37858
  const r = LE(t), l = px(t), f = r1(t);
37859
37859
  return bI(r).map((b) => x_(b, l, f));
37860
37860
  }, gq = (t) => BD(t).getOr(LE(t)), { ToolbarLocation: ND, ToolbarMode: OI } = iV, pq = 40, yI = (t, r, l, f, b) => {
37861
- const { mainUi: x, uiMotherships: S } = l, E = mx.DOM, D = bf(t), L = i1(t), V = r1(t).or(BD(t)), j = f.shared.header, oe = j.isPositionedAtTop, ae = 150, pe = bv(t), xe = pe === OI.sliding || pe === OI.floating, qe = In(!1), ve = () => qe.get() && !t.removed, We = (Qn) => xe ? Qn.fold(te(0), (Wt) => Wt.components().length > 1 ? ei(Wt.components()[1].element) : 0) : 0, Ue = (Qn) => {
37861
+ const { mainUi: x, uiMotherships: S } = l, E = mx.DOM, D = bf(t), L = i1(t), V = r1(t).or(BD(t)), j = f.shared.header, oe = j.isPositionedAtTop, ae = 150, pe = bv(t), xe = pe === OI.sliding || pe === OI.floating, qe = In(!1), ve = () => qe.get() && !t.removed, Ue = (Qn) => xe ? Qn.fold(te(0), (Wt) => Wt.components().length > 1 ? ei(Wt.components()[1].element) : 0) : 0, He = (Qn) => {
37862
37862
  switch (OT(t)) {
37863
37863
  case ND.auto:
37864
- const Wt = Ar.getToolbar(x.outerContainer), On = We(Wt), vo = ei(Qn.element) - On, Zo = xi(r);
37864
+ const Wt = Ar.getToolbar(x.outerContainer), On = Ue(Wt), vo = ei(Qn.element) - On, Zo = xi(r);
37865
37865
  if (Zo.y > vo)
37866
37866
  return "top";
37867
37867
  {
@@ -37887,7 +37887,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37887
37887
  });
37888
37888
  }, mn = (Qn, Wt) => {
37889
37889
  b.on((On) => {
37890
- const vo = Ar.getToolbar(x.outerContainer), Zo = We(vo), eo = xi(r), Ao = Sn(t, x.outerContainer.element), dr = () => Ao.fold(() => eo.x, (ac) => {
37890
+ const vo = Ar.getToolbar(x.outerContainer), Zo = Ue(vo), eo = xi(r), Ao = Sn(t, x.outerContainer.element), dr = () => Ao.fold(() => eo.x, (ac) => {
37891
37891
  const zd = xi(ac);
37892
37892
  return Jo(ac, wt()) ? eo.x : eo.x - zd.x;
37893
37893
  }), or = () => Ao.fold(() => oe() ? Math.max(eo.y - ei(On.element) + Zo, 0) : eo.bottom, (ac) => {
@@ -37924,7 +37924,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
37924
37924
  }
37925
37925
  L && b.on(Qn), xt();
37926
37926
  }, Bn = () => D || !L || !ve() ? !1 : b.get().exists((Qn) => {
37927
- const Wt = j.getDockingMode(), On = Ue(Qn);
37927
+ const Wt = j.getDockingMode(), On = He(Qn);
37928
37928
  return On !== Wt ? (ct(On), !0) : !1;
37929
37929
  });
37930
37930
  return {
@@ -38563,18 +38563,18 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
38563
38563
  })
38564
38564
  ])
38565
38565
  ])
38566
- }), We = Hn(() => Aq(r, (fn) => {
38566
+ }), Ue = Hn(() => Aq(r, (fn) => {
38567
38567
  const Bn = pt([fn]);
38568
38568
  Vn(V, QD, { forwardContents: ve(Bn) });
38569
- })), Ue = (fn, Bn) => v_(t, {
38569
+ })), He = (fn, Bn) => v_(t, {
38570
38570
  buttons: fn,
38571
38571
  toolbar: Bn.items,
38572
38572
  allowToolbarGroups: !1
38573
38573
  }, f.backstage, Q.some(["form:"])), ct = (fn, Bn) => _q.buildInitGroups(fn, Bn), pt = (fn) => {
38574
- const { buttons: Bn } = t.ui.registry.getAll(), cs = We(), Dr = {
38574
+ const { buttons: Bn } = t.ui.registry.getAll(), cs = Ue(), Dr = {
38575
38575
  ...Bn,
38576
38576
  ...cs.formNavigators
38577
- }, Bs = bv(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(Ge(fn, (Wt) => Wt.type === "contexttoolbar" ? Ue(Dr, Ix(Wt)) : ct(Wt, x.providers)));
38577
+ }, Bs = bv(t) === Nd.scrolling ? Nd.scrolling : Nd.default, Qn = Je(Ge(fn, (Wt) => Wt.type === "contexttoolbar" ? He(Dr, Ix(Wt)) : ct(Wt, x.providers)));
38578
38578
  return kS({
38579
38579
  type: Bs,
38580
38580
  uid: Pn("context-toolbar"),
@@ -38610,7 +38610,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
38610
38610
  if (ql(V.element, A_))
38611
38611
  En.throttle();
38612
38612
  else {
38613
- const fn = We();
38613
+ const fn = Ue();
38614
38614
  UD(fn, t).fold(xe, (Bn) => {
38615
38615
  Sn(Bn.toolbars, Q.some(Bn.elem));
38616
38616
  });
@@ -38618,7 +38618,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
38618
38618
  }, 17);
38619
38619
  t.on("init", () => {
38620
38620
  t.on("remove", xe), t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress", qe), t.on("click keyup focus SetContent", En.throttle), t.on(xI, xe), t.on(Oq, (fn) => {
38621
- const Bn = We();
38621
+ const Bn = Ue();
38622
38622
  Xt(Bn.lookupTable, fn.toolbarKey).each((cs) => {
38623
38623
  Sn([cs], jn(fn.target !== t, fn.target)), ID(V);
38624
38624
  });
@@ -39810,17 +39810,17 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
39810
39810
  Uo(Sn.element, "display");
39811
39811
  const cs = Hl(Ot.fromDom(t.getBody())).dom.innerHeight, Dr = En(Bn), Bs = fn(Bn, cs);
39812
39812
  (Dr || Bs) && an(Sn.element, "display", "none");
39813
- }, We = (Sn, xt, En, fn) => {
39813
+ }, Ue = (Sn, xt, En, fn) => {
39814
39814
  const Bn = En(xt);
39815
39815
  w1.snapTo(Sn, Bn), ve(Sn, xt, (Bs) => Bs[fn] < 0, (Bs, Qn) => Bs[fn] > Qn);
39816
- }, Ue = (Sn) => We(xe, Sn, E, "top"), ct = () => x.get().each(Ue), pt = (Sn) => We(qe, Sn, L, "bottom"), mn = () => S.get().each(pt);
39816
+ }, He = (Sn) => Ue(xe, Sn, E, "top"), ct = () => x.get().each(He), pt = (Sn) => Ue(qe, Sn, L, "bottom"), mn = () => S.get().each(pt);
39817
39817
  if (qr().deviceType.isTouch()) {
39818
39818
  const Sn = (xt) => Ge(xt, Ot.fromDom);
39819
39819
  t.on("TableSelectionChange", (xt) => {
39820
39820
  b.get() || (Sp(r, xe), Sp(r, qe), b.set(!0));
39821
39821
  const En = Ot.fromDom(xt.start), fn = Ot.fromDom(xt.finish);
39822
39822
  x.set(En), S.set(fn), Q.from(xt.otherCells).each((Bn) => {
39823
- l.set(Sn(Bn.upOrLeftCells)), f.set(Sn(Bn.downOrRightCells)), Ue(En), pt(fn);
39823
+ l.set(Sn(Bn.upOrLeftCells)), f.set(Sn(Bn.downOrRightCells)), He(En), pt(fn);
39824
39824
  });
39825
39825
  }), t.on("ResizeEditor ResizeWindow ScrollContent", () => {
39826
39826
  ct(), mn();
@@ -40123,9 +40123,9 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
40123
40123
  tag: "div",
40124
40124
  classes: ["tox-bottom-anchorbar"]
40125
40125
  }
40126
- }), ve = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), We = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"), Ue = () => Eo.fromOption(x.popupUi.get().map((eo) => eo.sink), "(popup) UI has not been rendered"), ct = x.lazyGetInOuterOrDie("anchor bar", xe.getOpt), pt = x.lazyGetInOuterOrDie("bottom anchor bar", qe.getOpt), mn = x.lazyGetInOuterOrDie("toolbar", Ar.getToolbar), Sn = x.lazyGetInOuterOrDie("throbber", Ar.getThrobber), xt = K3({
40127
- popup: Ue,
40128
- dialog: We
40126
+ }), ve = () => x.mainUi.get().map((eo) => eo.outerContainer).bind(Ar.getHeader), Ue = () => Eo.fromOption(x.dialogUi.get().map((eo) => eo.sink), "UI has not been rendered"), He = () => Eo.fromOption(x.popupUi.get().map((eo) => eo.sink), "(popup) UI has not been rendered"), ct = x.lazyGetInOuterOrDie("anchor bar", xe.getOpt), pt = x.lazyGetInOuterOrDie("bottom anchor bar", qe.getOpt), mn = x.lazyGetInOuterOrDie("toolbar", Ar.getToolbar), Sn = x.lazyGetInOuterOrDie("throbber", Ar.getThrobber), xt = K3({
40127
+ popup: He,
40128
+ dialog: Ue
40129
40129
  }, t, ct, pt), En = () => {
40130
40130
  const eo = { attributes: { [ww]: ae ? df.BottomToTop : df.TopToBottom } }, Ao = Ar.parts.menubar({
40131
40131
  dom: {
@@ -40858,7 +40858,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
40858
40858
  const x = b;
40859
40859
  if (!x.universal) {
40860
40860
  const S = t.channel;
40861
- He(x.channels, S) && l(f, x.data);
40861
+ We(x.channels, S) && l(f, x.data);
40862
40862
  }
40863
40863
  }),
40864
40864
  fr((f, b) => {
@@ -41748,7 +41748,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41748
41748
  xe.getSystem().isConnected() && pe(xe);
41749
41749
  }, ae = {
41750
41750
  getData: () => {
41751
- const pe = t.getRoot(), xe = pe.getSystem().isConnected() ? t.getFormWrapper() : pe, qe = kn.getValue(xe), ve = Bo(l, (We) => We.get());
41751
+ const pe = t.getRoot(), xe = pe.getSystem().isConnected() ? t.getFormWrapper() : pe, qe = kn.getValue(xe), ve = Bo(l, (Ue) => Ue.get());
41752
41752
  return {
41753
41753
  ...qe,
41754
41754
  ...ve
@@ -41756,8 +41756,8 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41756
41756
  },
41757
41757
  setData: (pe) => {
41758
41758
  f((xe) => {
41759
- const qe = ae.getData(), ve = wr(qe, pe), We = Wp(t, ve), Ue = t.getFormWrapper();
41760
- kn.setValue(Ue, We), Fs(l, (ct, pt) => {
41759
+ const qe = ae.getData(), ve = wr(qe, pe), Ue = Wp(t, ve), He = t.getFormWrapper();
41760
+ kn.setValue(He, Ue), Fs(l, (ct, pt) => {
41761
41761
  zo(ve, pt) && ct.set(ve[pt]);
41762
41762
  });
41763
41763
  });
@@ -41783,17 +41783,17 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41783
41783
  showTab: (pe) => {
41784
41784
  f((xe) => {
41785
41785
  const qe = t.getBody();
41786
- hn.getState(qe).get().exists((We) => We.isTabPanel()) && Os.getCurrent(qe).each((We) => {
41787
- jo.showTab(We, pe);
41786
+ hn.getState(qe).get().exists((Ue) => Ue.isTabPanel()) && Os.getCurrent(qe).each((Ue) => {
41787
+ jo.showTab(Ue, pe);
41788
41788
  });
41789
41789
  });
41790
41790
  },
41791
41791
  redial: (pe) => {
41792
41792
  f((xe) => {
41793
- const qe = t.getId(), ve = r(pe), We = ln(ve.internalDialog.buttons, l);
41793
+ const qe = t.getId(), ve = r(pe), Ue = ln(ve.internalDialog.buttons, l);
41794
41794
  xe.getSystem().broadcastOn([`${lS}-${qe}`], ve), xe.getSystem().broadcastOn([`${wN}-${qe}`], ve.internalDialog), xe.getSystem().broadcastOn([`${xN}-${qe}`], ve.internalDialog), xe.getSystem().broadcastOn([`${SN}-${qe}`], {
41795
41795
  ...ve.internalDialog,
41796
- buttons: We
41796
+ buttons: Ue
41797
41797
  }), ae.setData(ve.initialData);
41798
41798
  });
41799
41799
  },
@@ -41806,10 +41806,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41806
41806
  };
41807
41807
  return ae;
41808
41808
  }, MQ = (t, r, l) => {
41809
- const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (Ue) => VS(ve, Ue), D = Pu(S.get()).toArray(), L = (Ue, ct) => (S.set(ct.internalDialog.size), FS(ct.internalDialog.size, Ue), Q.some(ct)), V = Xa({
41809
+ const f = Pn("dialog"), b = t.internalDialog, x = $O(b.title, f, l), S = In(b.size), E = (He) => VS(ve, He), D = Pu(S.get()).toArray(), L = (He, ct) => (S.set(ct.internalDialog.size), FS(ct.internalDialog.size, He), Q.some(ct)), V = Xa({
41810
41810
  body: b.body,
41811
41811
  initialData: b.initialData
41812
- }, f, l, E), j = ln(b.buttons), oe = sn(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)), pe = Ci(() => We, PO(() => qe, l.shared.providers, r), l.shared.getSink), xe = {
41812
+ }, f, l, E), j = ln(b.buttons), oe = sn(j), ae = jn(j.length !== 0, bR({ buttons: j }, f, l)), pe = Ci(() => Ue, PO(() => qe, l.shared.providers, r), l.shared.getSink), xe = {
41813
41813
  id: f,
41814
41814
  header: x,
41815
41815
  body: V,
@@ -41822,7 +41822,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41822
41822
  })],
41823
41823
  extraStyles: {}
41824
41824
  }, qe = mt(xe, pe, l), ve = (() => {
41825
- const Ue = () => {
41825
+ const He = () => {
41826
41826
  const pt = ja.getBody(qe);
41827
41827
  return Os.getCurrent(pt).getOr(pt);
41828
41828
  }, ct = () => {
@@ -41833,13 +41833,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41833
41833
  getRoot: te(qe),
41834
41834
  getBody: () => ja.getBody(qe),
41835
41835
  getFooter: () => ja.getFooter(qe),
41836
- getFormWrapper: Ue,
41836
+ getFormWrapper: He,
41837
41837
  toggleFullscreen: ct
41838
41838
  };
41839
- })(), We = OR(ve, r.redial, oe);
41839
+ })(), Ue = OR(ve, r.redial, oe);
41840
41840
  return {
41841
41841
  dialog: qe,
41842
- instanceApi: We
41842
+ instanceApi: Ue
41843
41843
  };
41844
41844
  }, yR = (t, r, l, f = !1, b) => {
41845
41845
  const x = Pn("dialog"), S = Pn("dialog-label"), E = Pn("dialog-content"), D = t.internalDialog, L = (En) => VS(Sn, En), V = In(D.size), j = Pu(V.get()).toArray(), oe = (En, fn) => (V.set(fn.internalDialog.size), FS(fn.internalDialog.size, En), b(), Q.some(fn)), ae = Qs(T1({
@@ -41848,7 +41848,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41848
41848
  }, x, S, l.shared.providers)), pe = Qs(Li({
41849
41849
  body: D.body,
41850
41850
  initialData: D.initialData
41851
- }, x, E, l, f, L)), xe = ln(D.buttons), qe = sn(xe), ve = jn(xe.length !== 0, Qs(RQ({ buttons: xe }, x, l))), We = Ci(() => xt, {
41851
+ }, x, E, l, f, L)), xe = ln(D.buttons), qe = sn(xe), ve = jn(xe.length !== 0, Qs(RQ({ buttons: xe }, x, l))), Ue = Ci(() => xt, {
41852
41852
  onBlock: (En) => {
41853
41853
  Rh.block(pt, (fn, Bn) => {
41854
41854
  const cs = ae.getOpt(pt).map((Dr) => ei(Dr.element));
@@ -41859,12 +41859,12 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41859
41859
  Rh.unblock(pt);
41860
41860
  },
41861
41861
  onClose: () => r.closeWindow()
41862
- }, l.shared.getSink), Ue = "tox-dialog-inline", ct = qr().os, pt = xl({
41862
+ }, l.shared.getSink), He = "tox-dialog-inline", ct = qr().os, pt = xl({
41863
41863
  dom: {
41864
41864
  tag: "div",
41865
41865
  classes: [
41866
41866
  "tox-dialog",
41867
- Ue,
41867
+ He,
41868
41868
  ...j
41869
41869
  ],
41870
41870
  attributes: {
@@ -41896,7 +41896,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41896
41896
  initialData: t
41897
41897
  }),
41898
41898
  po.config({}),
41899
- Po("execute-on-form", We.concat([
41899
+ Po("execute-on-form", Ue.concat([
41900
41900
  ng(dh(), (En, fn) => {
41901
41901
  Xn.focusIn(En);
41902
41902
  }),
@@ -41990,16 +41990,16 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
41990
41990
  break;
41991
41991
  }
41992
41992
  }, fa = (t, r, l, f) => {
41993
- const b = Pn("dialog"), x = $O(t.title, b, f), S = ml(t), E = t.buttons.bind((Ue) => Ue.length === 0 ? Q.none() : Q.some(bR({ buttons: Ue }, b, f))), D = Ms(() => We, PO(() => ve, f.shared.providers, r)), L = {
41994
- ...t.height.fold(() => ({}), (Ue) => ({
41995
- height: Ue + "px",
41996
- "max-height": Ue + "px"
41993
+ const b = Pn("dialog"), x = $O(t.title, b, f), S = ml(t), E = t.buttons.bind((He) => He.length === 0 ? Q.none() : Q.some(bR({ buttons: He }, b, f))), D = Ms(() => Ue, PO(() => ve, f.shared.providers, r)), L = {
41994
+ ...t.height.fold(() => ({}), (He) => ({
41995
+ height: He + "px",
41996
+ "max-height": He + "px"
41997
41997
  })),
41998
- ...t.width.fold(() => ({}), (Ue) => ({
41999
- width: Ue + "px",
42000
- "max-width": Ue + "px"
41998
+ ...t.width.fold(() => ({}), (He) => ({
41999
+ width: He + "px",
42000
+ "max-width": He + "px"
42001
42001
  }))
42002
- }, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), oe = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (Ue, ct) => Q.some(ct), xe = [
42002
+ }, V = t.width.isNone() && t.height.isNone() ? ["tox-dialog--width-lg"] : [], j = new K_(t.url, { base_uri: new K_(window.location.href) }), oe = `${j.protocol}://${j.host}${j.port ? ":" + j.port : ""}`, ae = Wl(), pe = (He, ct) => Q.some(ct), xe = [
42003
42003
  hn.config({
42004
42004
  channel: `${lS}-${b}`,
42005
42005
  updateState: pe,
@@ -42007,21 +42007,21 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42007
42007
  }),
42008
42008
  Po("messages", [
42009
42009
  fr(() => {
42010
- const Ue = Kl(Ot.fromDom(window), "message", (ct) => {
42010
+ const He = Kl(Ot.fromDom(window), "message", (ct) => {
42011
42011
  if (j.isSameOrigin(new K_(ct.raw.origin))) {
42012
42012
  const pt = ct.raw.data;
42013
- gt(pt) ? Yo(l, We, pt) : oo(pt) && t.onMessage(We, pt);
42013
+ gt(pt) ? Yo(l, Ue, pt) : oo(pt) && t.onMessage(Ue, pt);
42014
42014
  }
42015
42015
  });
42016
- ae.set(Ue);
42016
+ ae.set(He);
42017
42017
  }),
42018
42018
  sf(ae.clear)
42019
42019
  ]),
42020
42020
  Hc.config({
42021
42021
  channels: {
42022
42022
  [iA]: {
42023
- onReceive: (Ue, ct) => {
42024
- Er(Ue.element, "iframe").each((pt) => {
42023
+ onReceive: (He, ct) => {
42024
+ Er(He.element, "iframe").each((pt) => {
42025
42025
  const mn = pt.dom.contentWindow;
42026
42026
  Me(mn) && mn.postMessage(ct, oe);
42027
42027
  });
@@ -42037,10 +42037,10 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42037
42037
  extraClasses: V,
42038
42038
  extraBehaviours: xe,
42039
42039
  extraStyles: L
42040
- }, D, f), We = PY(ve);
42040
+ }, D, f), Ue = PY(ve);
42041
42041
  return {
42042
42042
  dialog: ve,
42043
- instanceApi: We
42043
+ instanceApi: Ue
42044
42044
  };
42045
42045
  }, Au = (t) => {
42046
42046
  const r = t.shared;
@@ -42148,18 +42148,18 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42148
42148
  return D(pe, qe);
42149
42149
  }, S = (pe, xe) => E(pe, xe), E = (pe, xe) => {
42150
42150
  const qe = (ve) => {
42151
- const We = fa(ve, {
42151
+ const Ue = fa(ve, {
42152
42152
  closeWindow: () => {
42153
- ja.hide(We.dialog), xe(We.instanceApi);
42153
+ ja.hide(Ue.dialog), xe(Ue.instanceApi);
42154
42154
  }
42155
42155
  }, r, t.backstages.dialog);
42156
- return ja.show(We.dialog), We.instanceApi;
42156
+ return ja.show(Ue.dialog), Ue.instanceApi;
42157
42157
  };
42158
42158
  return Ye.openUrl(qe, pe);
42159
42159
  }, D = (pe, xe) => {
42160
- const qe = (ve, We, Ue) => {
42161
- const ct = We, mn = MQ({
42162
- dataValidator: Ue,
42160
+ const qe = (ve, Ue, He) => {
42161
+ const ct = Ue, mn = MQ({
42162
+ dataValidator: He,
42163
42163
  initialData: ct,
42164
42164
  internalDialog: ve
42165
42165
  }, {
@@ -42172,11 +42172,11 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42172
42172
  };
42173
42173
  return Ye.open(qe, pe);
42174
42174
  }, L = (pe, xe, qe, ve) => {
42175
- const We = (Ue, ct, pt) => {
42175
+ const Ue = (He, ct, pt) => {
42176
42176
  const mn = ld(ct, pt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
42177
42177
  dataValidator: pt,
42178
42178
  initialData: mn,
42179
- internalDialog: Ue
42179
+ internalDialog: He
42180
42180
  }, fn = () => Sn.on((Bs) => {
42181
42181
  ni.reposition(Bs), (!l || !xt) && mr.refresh(Bs);
42182
42182
  }), Bn = yR(En, {
@@ -42207,13 +42207,13 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42207
42207
  };
42208
42208
  return ni.showWithinBounds(cs, pu(Bn.dialog), { anchor: xe }, Dr), (!l || !xt) && (mr.refresh(cs), r.on("ResizeEditor", fn)), Bn.instanceApi.setData(mn), Xn.focusIn(Bn.dialog), Bn.instanceApi;
42209
42209
  };
42210
- return Ye.open(We, pe);
42210
+ return Ye.open(Ue, pe);
42211
42211
  }, V = (pe, xe, qe, ve) => {
42212
- const We = (Ue, ct, pt) => {
42212
+ const Ue = (He, ct, pt) => {
42213
42213
  const mn = ld(ct, pt), Sn = Is(), xt = t.backstages.popup.shared.header.isPositionedAtTop(), En = {
42214
42214
  dataValidator: pt,
42215
42215
  initialData: mn,
42216
- internalDialog: Ue
42216
+ internalDialog: He
42217
42217
  }, fn = () => Sn.on((Bs) => {
42218
42218
  ni.reposition(Bs), mr.refresh(Bs);
42219
42219
  }), Bn = yR(En, {
@@ -42265,7 +42265,7 @@ The conflicting element is` + (Ve(j.element) ? " " : " not ") + "already in the
42265
42265
  });
42266
42266
  return ni.showWithinBounds(cs, pu(Bn.dialog), { anchor: xe }, Dr), mr.refresh(cs), r.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow", fn), Bn.instanceApi.setData(mn), Xn.focusIn(Bn.dialog), Bn.instanceApi;
42267
42267
  };
42268
- return Ye.open(We, pe);
42268
+ return Ye.open(Ue, pe);
42269
42269
  };
42270
42270
  return {
42271
42271
  open: x,
@@ -42432,7 +42432,7 @@ function che() {
42432
42432
  const N = g[k];
42433
42433
  y(N, k);
42434
42434
  }
42435
- }, He = (g, y) => {
42435
+ }, We = (g, y) => {
42436
42436
  for (let k = g.length - 1; k >= 0; k--) {
42437
42437
  const _ = g[k];
42438
42438
  y(_, k);
@@ -42454,7 +42454,7 @@ function che() {
42454
42454
  y(z, _) && k.push(z);
42455
42455
  }
42456
42456
  return k;
42457
- }, Jt = (g, y, k) => (He(g, (_, N) => {
42457
+ }, Jt = (g, y, k) => (We(g, (_, N) => {
42458
42458
  k = y(k, _, N);
42459
42459
  }), k), Ge = (g, y, k) => (Be(g, (_, N) => {
42460
42460
  k = y(k, _, N);
@@ -46747,7 +46747,7 @@ function uhe() {
46747
46747
  }, Gt = (M, U) => It(je(M, U)), Ft = (M) => {
46748
46748
  const U = qt.call(M, 0);
46749
46749
  return U.reverse(), U;
46750
- }, Be = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), He = (M) => Be(M, 0), Bt = (M) => Be(M, M.length - 1), ot = (M, U) => {
46750
+ }, Be = (M, U) => U >= 0 && U < M.length ? Xe.some(M[U]) : Xe.none(), We = (M) => Be(M, 0), Bt = (M) => Be(M, M.length - 1), ot = (M, U) => {
46751
46751
  const ne = [], Ee = F(U) ? (Fe) => dn(ne, (zt) => U(zt, Fe)) : (Fe) => rn(ne, Fe);
46752
46752
  for (let Fe = 0, zt = M.length; Fe < zt; Fe++) {
46753
46753
  const to = M[Fe];
@@ -47066,7 +47066,7 @@ function uhe() {
47066
47066
  for (let U = 1; U < M.length; U++)
47067
47067
  ls(M[U - 1], M[U]);
47068
47068
  }, tr = (M, U) => {
47069
- ht(Bt(M), He(U), ls);
47069
+ ht(Bt(M), We(U), ls);
47070
47070
  }, ri = (M, U) => {
47071
47071
  const ne = {
47072
47072
  list: Se.fromTag(U, M),
@@ -47112,10 +47112,10 @@ function uhe() {
47112
47112
  const Ee = kt(U, (Fe, zt, to) => nu(zt) ? to === 0 ? (ne = Xe.some(zt), Fe) : ia(M, Fe, zt) : zt.depth > Fe.length ? Zr(M, Fe, zt) : ia(M, Fe, zt), []);
47113
47113
  return ne.each((Fe) => {
47114
47114
  const zt = Se.fromHtml(`<!--${Fe.content}-->`);
47115
- He(Ee).each((to) => {
47115
+ We(Ee).each((to) => {
47116
47116
  yr(to.list, zt);
47117
47117
  });
47118
- }), He(Ee).map((Fe) => Fe.list);
47118
+ }), We(Ee).map((Fe) => Fe.list);
47119
47119
  }, Vs = (M, U) => {
47120
47120
  switch (M) {
47121
47121
  case "Indent":
@@ -47203,7 +47203,7 @@ function uhe() {
47203
47203
  }, ou = (M, U) => {
47204
47204
  const ne = Vh(U);
47205
47205
  return Hi(M.contentDocument, ne).toArray();
47206
- }, Qm = (M, U) => Gt(ut(U, be), (ne) => He(ne).exists(be) ? ou(M, ne) : Yp(M, ne)), Hh = (M, U) => {
47206
+ }, Qm = (M, U) => Gt(ut(U, be), (ne) => We(ne).exists(be) ? ou(M, ne) : Yp(M, ne)), Hh = (M, U) => {
47207
47207
  Oe(Yn(M, tt), (ne) => Vs(U, ne));
47208
47208
  }, Lg = (M) => {
47209
47209
  const U = je(Tn(M), Se.fromDom);
@@ -47925,7 +47925,7 @@ function dhe() {
47925
47925
  processor: "boolean",
47926
47926
  default: !1
47927
47927
  });
47928
- }, It = Q("link_assume_external_targets"), Gt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"), He = Q("link_default_protocol"), Bt = Q("link_target_list"), ot = Q("link_rel_list"), Jt = Q("link_class_list"), Ge = Q("link_title"), ht = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), ss = Object.keys, mo = Object.hasOwnProperty, xo = (se, _e) => {
47928
+ }, It = Q("link_assume_external_targets"), Gt = Q("link_context_toolbar"), Ft = Q("link_list"), Be = Q("link_default_target"), We = Q("link_default_protocol"), Bt = Q("link_target_list"), ot = Q("link_rel_list"), Jt = Q("link_class_list"), Ge = Q("link_title"), ht = Q("allow_unsafe_link_target"), Y = Q("link_quicklink"), ss = Object.keys, mo = Object.hasOwnProperty, xo = (se, _e) => {
47929
47929
  const Ve = ss(se);
47930
47930
  for (let wt = 0, en = Ve.length; wt < en; wt++) {
47931
47931
  const Tn = Ve[wt], un = se[Tn];
@@ -48155,7 +48155,7 @@ function dhe() {
48155
48155
  }) : et.none();
48156
48156
  }, To = { preprocess: (se, _e) => Oe([
48157
48157
  bt,
48158
- Wn(It(se), He(se))
48158
+ Wn(It(se), We(se))
48159
48159
  ], (Ve) => Ve(_e)).fold(() => Promise.resolve(_e), (Ve) => new Promise((wt) => {
48160
48160
  dt(se, Ve.message, (en) => {
48161
48161
  wt(en ? Ve.preprocess(_e) : _e);
@@ -48694,7 +48694,7 @@ function hhe() {
48694
48694
  throw console.error($n, q), new Error($n);
48695
48695
  }
48696
48696
  return ot(st.childNodes[0]);
48697
- }, He = (q, ce) => {
48697
+ }, We = (q, ce) => {
48698
48698
  const st = (ce || document).createElement(q);
48699
48699
  return ot(st);
48700
48700
  }, Bt = (q, ce) => {
@@ -48706,7 +48706,7 @@ function hhe() {
48706
48706
  return { dom: q };
48707
48707
  }, Ge = {
48708
48708
  fromHtml: Be,
48709
- fromTag: He,
48709
+ fromTag: We,
48710
48710
  fromText: Bt,
48711
48711
  fromDom: ot,
48712
48712
  fromPoint: (q, ce, De) => Xe.from(q.dom.elementFromPoint(ce, De)).map(ot)
@@ -49598,7 +49598,7 @@ function fhe() {
49598
49598
  }, bt = (Ce = Pe.toLowerCase().split(".").pop()) !== null && Ce !== void 0 ? Ce : "";
49599
49599
  return Te(dt, bt).getOr("");
49600
49600
  };
49601
- var He = tinymce.util.Tools.resolve("tinymce.html.Node"), Bt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
49601
+ var We = tinymce.util.Tools.resolve("tinymce.html.Node"), Bt = tinymce.util.Tools.resolve("tinymce.html.Serializer");
49602
49602
  const ot = (Pe, Ce = {}) => Q({
49603
49603
  forced_root_block: !1,
49604
49604
  validate: !1,
@@ -49637,7 +49637,7 @@ function fhe() {
49637
49637
  Dt.attr("poster", Ce.poster), Dt.attr("src", null);
49638
49638
  for (let Le = Wn; Le < 2; Le++)
49639
49639
  if (Ce[Y[Le]]) {
49640
- const Lt = new He("source", 1);
49640
+ const Lt = new We("source", 1);
49641
49641
  Lt.attr("src", Ce[Y[Le]]), Lt.attr("type", Ce[Y[Le] + "mime"] || null), Dt.append(Lt);
49642
49642
  }
49643
49643
  break;
@@ -49648,7 +49648,7 @@ function fhe() {
49648
49648
  const Ae = Dt.getAll("img").length > 0;
49649
49649
  if (Ce.poster && !Ae) {
49650
49650
  Dt.attr("src", Ce.poster);
49651
- const Le = new He("img", 1);
49651
+ const Le = new We("img", 1);
49652
49652
  Le.attr("src", Ce.poster), Le.attr("width", Ce.width), Le.attr("height", Ce.height), Dt.append(Le);
49653
49653
  }
49654
49654
  break;
@@ -50039,7 +50039,7 @@ function fhe() {
50039
50039
  for (; Wn.firstChild; )
50040
50040
  dt.append(Wn.firstChild);
50041
50041
  }, xs = (Pe, Ce) => {
50042
- const dt = Ce.name, bt = new He("img", 1);
50042
+ const dt = Ce.name, bt = new We("img", 1);
50043
50043
  return er(Pe, Ce, bt), Fi(Ce, bt, {}), bt.attr({
50044
50044
  style: Ce.attr("style"),
50045
50045
  src: Ei.transparentSrc,
@@ -50048,14 +50048,14 @@ function fhe() {
50048
50048
  }), bt;
50049
50049
  }, jn = (Pe, Ce) => {
50050
50050
  var dt;
50051
- const bt = Ce.name, Wn = new He("span", 1);
50051
+ const bt = Ce.name, Wn = new We("span", 1);
50052
50052
  Wn.attr({
50053
50053
  contentEditable: "false",
50054
50054
  style: Ce.attr("style"),
50055
50055
  "data-mce-object": bt,
50056
50056
  class: "mce-preview-object mce-object-" + bt
50057
50057
  }), er(Pe, Ce, Wn);
50058
- const ao = Pe.dom.parseStyle((dt = Ce.attr("style")) !== null && dt !== void 0 ? dt : ""), To = new He(bt, 1);
50058
+ const ao = Pe.dom.parseStyle((dt = Ce.attr("style")) !== null && dt !== void 0 ? dt : ""), To = new We(bt, 1);
50059
50059
  if (Fi(Ce, To, ao), To.attr({
50060
50060
  src: Ce.attr("src"),
50061
50061
  style: Ce.attr("style"),
@@ -50082,7 +50082,7 @@ function fhe() {
50082
50082
  const Ot = Wn.attr("data-mce-html");
50083
50083
  T(Ot) && $i(Pe, bt, To, unescape(Ot));
50084
50084
  }
50085
- const js = new He("span", 1);
50085
+ const js = new We("span", 1);
50086
50086
  return js.attr("class", "mce-shim"), Wn.append(To), Wn.append(js), Wn;
50087
50087
  }, er = (Pe, Ce, dt) => {
50088
50088
  var bt;
@@ -50093,7 +50093,7 @@ function fhe() {
50093
50093
  let Ae = Wn[ao].value;
50094
50094
  Ot !== "width" && Ot !== "height" && Ot !== "style" && !Mr(Ot, "data-mce-") && ((Ot === "data" || Ot === "src") && (Ae = Pe.convertURL(Ae, Ot)), dt.attr("data-mce-p-" + Ot, Ae));
50095
50095
  }
50096
- const To = Bt({ inner: !0 }, Pe.schema), js = new He("div", 1);
50096
+ const To = Bt({ inner: !0 }, Pe.schema), js = new We("div", 1);
50097
50097
  F(Ce.children(), (Ot) => js.append(Ot));
50098
50098
  const Dt = To.serialize(js);
50099
50099
  Dt && (dt.attr("data-mce-html", escape(Dt)), dt.empty());
@@ -50133,7 +50133,7 @@ function fhe() {
50133
50133
  const Ot = ao[Dt];
50134
50134
  if (!Ot.parent)
50135
50135
  continue;
50136
- const Ae = Ot.attr(To), Le = new He(Ae, 1);
50136
+ const Ae = Ot.attr(To), Le = new We(Ae, 1);
50137
50137
  if (Ae !== "audio") {
50138
50138
  const Nn = Ot.attr("class");
50139
50139
  Nn && Nn.indexOf("mce-preview-object") !== -1 && Ot.firstChild ? Le.attr({
@@ -50322,7 +50322,7 @@ function mhe() {
50322
50322
  if (rn.call(A, I))
50323
50323
  return !1;
50324
50324
  return !0;
50325
- }, Be = Array.prototype.indexOf, He = Array.prototype.push, Bt = (A, I) => Be.call(A, I), ot = (A, I) => Bt(A, I) > -1, Jt = (A, I) => {
50325
+ }, Be = Array.prototype.indexOf, We = Array.prototype.push, Bt = (A, I) => Be.call(A, I), ot = (A, I) => Bt(A, I) > -1, Jt = (A, I) => {
50326
50326
  for (let ee = 0, me = A.length; ee < me; ee++) {
50327
50327
  const Qe = A[ee];
50328
50328
  if (I(Qe, ee))
@@ -50386,7 +50386,7 @@ function mhe() {
50386
50386
  for (let ee = 0, me = A.length; ee < me; ++ee) {
50387
50387
  if (!w(A[ee]))
50388
50388
  throw new Error("Arr.flatten item " + ee + " was not an array, input: " + A);
50389
- He.apply(I, A[ee]);
50389
+ We.apply(I, A[ee]);
50390
50390
  }
50391
50391
  return I;
50392
50392
  }, Se = (A, I) => Je(ht(A, I)), Fn = (A, I) => {
@@ -52577,16 +52577,16 @@ function phe() {
52577
52577
  }, Ft = (Ne, ze) => {
52578
52578
  const Je = kt(Ne, ze).join("").replace(/\s/g, "");
52579
52579
  return io(Je);
52580
- }, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), He = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), Bt = (Ne) => Be(Ne, It), ot = (Ne) => ({
52580
+ }, Be = (Ne, ze) => () => ze(Ne.getBody(), Ne.schema), We = (Ne, ze) => () => ze(Ne.selection.getRng().cloneContents(), Ne.schema), Bt = (Ne) => Be(Ne, It), ot = (Ne) => ({
52581
52581
  body: {
52582
52582
  getWordCount: Bt(Ne),
52583
52583
  getCharacterCount: Be(Ne, Gt),
52584
52584
  getCharacterCountWithoutSpaces: Be(Ne, Ft)
52585
52585
  },
52586
52586
  selection: {
52587
- getWordCount: He(Ne, It),
52588
- getCharacterCount: He(Ne, Gt),
52589
- getCharacterCountWithoutSpaces: He(Ne, Ft)
52587
+ getWordCount: We(Ne, It),
52588
+ getCharacterCount: We(Ne, Gt),
52589
+ getCharacterCountWithoutSpaces: We(Ne, Ft)
52590
52590
  },
52591
52591
  getCount: Bt(Ne)
52592
52592
  }), Jt = (Ne, ze) => {
@@ -52826,7 +52826,7 @@ function bhe() {
52826
52826
  return $t;
52827
52827
  }
52828
52828
  return rn.none();
52829
- }, Be = (fe, be, tt) => fe.isSome() && be.isSome() ? rn.some(tt(fe.getOrDie(), be.getOrDie())) : rn.none(), He = (fe) => {
52829
+ }, Be = (fe, be, tt) => fe.isSome() && be.isSome() ? rn.some(tt(fe.getOrDie(), be.getOrDie())) : rn.none(), We = (fe) => {
52830
52830
  const be = u(rn.none()), tt = () => be.get().each(fe);
52831
52831
  return {
52832
52832
  clear: () => {
@@ -52838,8 +52838,8 @@ function bhe() {
52838
52838
  tt(), be.set(rn.some(tr));
52839
52839
  }
52840
52840
  };
52841
- }, Bt = () => He((fe) => fe.unbind()), ot = () => {
52842
- const fe = He(et);
52841
+ }, Bt = () => We((fe) => fe.unbind()), ot = () => {
52842
+ const fe = We(et);
52843
52843
  return {
52844
52844
  ...fe,
52845
52845
  on: (tt) => fe.get().each(tt)
@@ -53440,37 +53440,37 @@ var Gte = {}, Yte;
53440
53440
  function yhe() {
53441
53441
  return Yte || (Yte = 1, function() {
53442
53442
  var u = tinymce.util.Tools.resolve("tinymce.PluginManager");
53443
- const o = (Be, He, Bt) => {
53444
- const ot = He === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
53443
+ const o = (Be, We, Bt) => {
53444
+ const ot = We === "UL" ? "InsertUnorderedList" : "InsertOrderedList";
53445
53445
  Be.execCommand(ot, !1, Bt === !1 ? null : { "list-style-type": Bt });
53446
53446
  }, i = (Be) => {
53447
- Be.addCommand("ApplyUnorderedListStyle", (He, Bt) => {
53447
+ Be.addCommand("ApplyUnorderedListStyle", (We, Bt) => {
53448
53448
  o(Be, "UL", Bt["list-style-type"]);
53449
- }), Be.addCommand("ApplyOrderedListStyle", (He, Bt) => {
53449
+ }), Be.addCommand("ApplyOrderedListStyle", (We, Bt) => {
53450
53450
  o(Be, "OL", Bt["list-style-type"]);
53451
53451
  });
53452
- }, c = (Be) => (He) => He.options.get(Be), h = (Be) => {
53453
- const He = Be.options.register;
53454
- He("advlist_number_styles", {
53452
+ }, c = (Be) => (We) => We.options.get(Be), h = (Be) => {
53453
+ const We = Be.options.register;
53454
+ We("advlist_number_styles", {
53455
53455
  processor: "string[]",
53456
53456
  default: "default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman".split(",")
53457
- }), He("advlist_bullet_styles", {
53457
+ }), We("advlist_bullet_styles", {
53458
53458
  processor: "string[]",
53459
53459
  default: "default,circle,square".split(",")
53460
53460
  });
53461
53461
  }, m = c("advlist_number_styles"), O = c("advlist_bullet_styles"), w = (Be) => Be == null, T = (Be) => !w(Be);
53462
53462
  class P {
53463
- constructor(He, Bt) {
53464
- this.tag = He, this.value = Bt;
53463
+ constructor(We, Bt) {
53464
+ this.tag = We, this.value = Bt;
53465
53465
  }
53466
- static some(He) {
53467
- return new P(!0, He);
53466
+ static some(We) {
53467
+ return new P(!0, We);
53468
53468
  }
53469
53469
  static none() {
53470
53470
  return P.singletonNone;
53471
53471
  }
53472
- fold(He, Bt) {
53473
- return this.tag ? Bt(this.value) : He();
53472
+ fold(We, Bt) {
53473
+ return this.tag ? Bt(this.value) : We();
53474
53474
  }
53475
53475
  isSome() {
53476
53476
  return this.tag;
@@ -53478,40 +53478,40 @@ function yhe() {
53478
53478
  isNone() {
53479
53479
  return !this.tag;
53480
53480
  }
53481
- map(He) {
53482
- return this.tag ? P.some(He(this.value)) : P.none();
53481
+ map(We) {
53482
+ return this.tag ? P.some(We(this.value)) : P.none();
53483
53483
  }
53484
- bind(He) {
53485
- return this.tag ? He(this.value) : P.none();
53484
+ bind(We) {
53485
+ return this.tag ? We(this.value) : P.none();
53486
53486
  }
53487
- exists(He) {
53488
- return this.tag && He(this.value);
53487
+ exists(We) {
53488
+ return this.tag && We(this.value);
53489
53489
  }
53490
- forall(He) {
53491
- return !this.tag || He(this.value);
53490
+ forall(We) {
53491
+ return !this.tag || We(this.value);
53492
53492
  }
53493
- filter(He) {
53494
- return !this.tag || He(this.value) ? this : P.none();
53493
+ filter(We) {
53494
+ return !this.tag || We(this.value) ? this : P.none();
53495
53495
  }
53496
- getOr(He) {
53497
- return this.tag ? this.value : He;
53496
+ getOr(We) {
53497
+ return this.tag ? this.value : We;
53498
53498
  }
53499
- or(He) {
53500
- return this.tag ? this : He;
53499
+ or(We) {
53500
+ return this.tag ? this : We;
53501
53501
  }
53502
- getOrThunk(He) {
53503
- return this.tag ? this.value : He();
53502
+ getOrThunk(We) {
53503
+ return this.tag ? this.value : We();
53504
53504
  }
53505
- orThunk(He) {
53506
- return this.tag ? this : He();
53505
+ orThunk(We) {
53506
+ return this.tag ? this : We();
53507
53507
  }
53508
- getOrDie(He) {
53508
+ getOrDie(We) {
53509
53509
  if (this.tag)
53510
53510
  return this.value;
53511
- throw new Error(He ?? "Called getOrDie on None");
53511
+ throw new Error(We ?? "Called getOrDie on None");
53512
53512
  }
53513
- static from(He) {
53514
- return T(He) ? P.some(He) : P.none();
53513
+ static from(We) {
53514
+ return T(We) ? P.some(We) : P.none();
53515
53515
  }
53516
53516
  getOrNull() {
53517
53517
  return this.tag ? this.value : null;
@@ -53519,8 +53519,8 @@ function yhe() {
53519
53519
  getOrUndefined() {
53520
53520
  return this.value;
53521
53521
  }
53522
- each(He) {
53523
- this.tag && He(this.value);
53522
+ each(We) {
53523
+ this.tag && We(this.value);
53524
53524
  }
53525
53525
  toArray() {
53526
53526
  return this.tag ? [this.value] : [];
@@ -53530,58 +53530,58 @@ function yhe() {
53530
53530
  }
53531
53531
  }
53532
53532
  P.singletonNone = new P(!1);
53533
- const R = Array.prototype.indexOf, F = (Be, He) => R.call(Be, He), H = (Be, He) => F(Be, He) > -1, K = (Be, He, Bt) => {
53533
+ const R = Array.prototype.indexOf, F = (Be, We) => R.call(Be, We), H = (Be, We) => F(Be, We) > -1, K = (Be, We, Bt) => {
53534
53534
  for (let ot = 0, Jt = Be.length; ot < Jt; ot++) {
53535
53535
  const Ge = Be[ot];
53536
- if (He(Ge, ot))
53536
+ if (We(Ge, ot))
53537
53537
  return P.some(Ge);
53538
53538
  if (Bt(Ge, ot))
53539
53539
  break;
53540
53540
  }
53541
53541
  return P.none();
53542
- }, he = Object.keys, Me = (Be, He) => {
53542
+ }, he = Object.keys, Me = (Be, We) => {
53543
53543
  const Bt = he(Be);
53544
53544
  for (let ot = 0, Jt = Bt.length; ot < Jt; ot++) {
53545
53545
  const Ge = Bt[ot], ht = Be[Ge];
53546
- He(ht, Ge);
53546
+ We(ht, Ge);
53547
53547
  }
53548
- }, we = (Be, He) => Te(Be, (Bt, ot) => ({
53548
+ }, we = (Be, We) => Te(Be, (Bt, ot) => ({
53549
53549
  k: ot,
53550
- v: He(Bt, ot)
53551
- })), Te = (Be, He) => {
53550
+ v: We(Bt, ot)
53551
+ })), Te = (Be, We) => {
53552
53552
  const Bt = {};
53553
53553
  return Me(Be, (ot, Jt) => {
53554
- const Ge = He(ot, Jt);
53554
+ const Ge = We(ot, Jt);
53555
53555
  Bt[Ge.k] = Ge.v;
53556
53556
  }), Bt;
53557
53557
  };
53558
53558
  var et = tinymce.util.Tools.resolve("tinymce.util.Tools");
53559
- const le = (Be) => /\btox\-/.test(Be.className), Xe = (Be, He) => Be.dom.isChildOf(He, Be.getBody()), qt = (Be) => (He) => T(He) && Be.test(He.nodeName), at = qt(/^(OL|UL|DL)$/), te = qt(/^(TH|TD)$/), _t = (Be, He, Bt) => K(He, (ot) => at(ot) && !le(ot), te).exists((ot) => ot.nodeName === Bt && Xe(Be, ot)), rn = (Be) => {
53560
- const He = Be.dom.getParent(Be.selection.getNode(), "ol,ul"), Bt = Be.dom.getStyle(He, "listStyleType");
53559
+ const le = (Be) => /\btox\-/.test(Be.className), Xe = (Be, We) => Be.dom.isChildOf(We, Be.getBody()), qt = (Be) => (We) => T(We) && Be.test(We.nodeName), at = qt(/^(OL|UL|DL)$/), te = qt(/^(TH|TD)$/), _t = (Be, We, Bt) => K(We, (ot) => at(ot) && !le(ot), te).exists((ot) => ot.nodeName === Bt && Xe(Be, ot)), rn = (Be) => {
53560
+ const We = Be.dom.getParent(Be.selection.getNode(), "ol,ul"), Bt = Be.dom.getStyle(We, "listStyleType");
53561
53561
  return P.from(Bt);
53562
- }, dn = (Be, He) => He !== null && !Be.dom.isEditable(He), je = (Be, He) => {
53563
- const Bt = Be.dom.getParent(He, "ol,ul,dl");
53562
+ }, dn = (Be, We) => We !== null && !Be.dom.isEditable(We), je = (Be, We) => {
53563
+ const Bt = Be.dom.getParent(We, "ol,ul,dl");
53564
53564
  return dn(Be, Bt) || !Be.selection.isEditable();
53565
- }, Oe = (Be, He) => {
53565
+ }, Oe = (Be, We) => {
53566
53566
  const Bt = Be.selection.getNode();
53567
- return He({
53567
+ return We({
53568
53568
  parents: Be.dom.getParents(Bt),
53569
53569
  element: Bt
53570
- }), Be.on("NodeChange", He), () => Be.off("NodeChange", He);
53571
- }, Yn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (He) => He.toUpperCase()), ut = (Be) => w(Be) || Be === "default" ? "" : Be, kt = (Be, He) => (Bt) => {
53570
+ }), Be.on("NodeChange", We), () => Be.off("NodeChange", We);
53571
+ }, Yn = (Be) => Be.replace(/\-/g, " ").replace(/\b\w/g, (We) => We.toUpperCase()), ut = (Be) => w(Be) || Be === "default" ? "" : Be, kt = (Be, We) => (Bt) => {
53572
53572
  const ot = (Ge, ht) => {
53573
53573
  const Y = Ge.selection.getStart(!0);
53574
- Bt.setActive(_t(Ge, ht, He)), Bt.setEnabled(!je(Ge, Y));
53574
+ Bt.setActive(_t(Ge, ht, We)), Bt.setEnabled(!je(Ge, Y));
53575
53575
  };
53576
53576
  return Oe(Be, (Ge) => ot(Be, Ge.parents));
53577
- }, Q = (Be, He, Bt, ot, Jt, Ge) => {
53577
+ }, Q = (Be, We, Bt, ot, Jt, Ge) => {
53578
53578
  const ht = {
53579
53579
  "lower-latin": "lower-alpha",
53580
53580
  "upper-latin": "upper-alpha",
53581
53581
  "lower-alpha": "lower-latin",
53582
53582
  "upper-alpha": "upper-latin"
53583
53583
  }, Y = we(ht, (ss) => H(Ge, ss));
53584
- Be.ui.registry.addSplitButton(He, {
53584
+ Be.ui.registry.addSplitButton(We, {
53585
53585
  tooltip: Bt,
53586
53586
  icon: Jt === "OL" ? "ordered-list" : "unordered-list",
53587
53587
  presets: "listpreview",
@@ -53605,16 +53605,16 @@ function yhe() {
53605
53605
  select: (ss) => rn(Be).exists((xo) => ss === xo || ht[xo] === ss && !Y[ss]),
53606
53606
  onSetup: kt(Be, Jt)
53607
53607
  });
53608
- }, io = (Be, He, Bt, ot, Jt, Ge) => {
53609
- Be.ui.registry.addToggleButton(He, {
53608
+ }, io = (Be, We, Bt, ot, Jt, Ge) => {
53609
+ Be.ui.registry.addToggleButton(We, {
53610
53610
  active: !1,
53611
53611
  tooltip: Bt,
53612
53612
  icon: Jt === "OL" ? "ordered-list" : "unordered-list",
53613
53613
  onSetup: kt(Be, Jt),
53614
53614
  onAction: () => Be.queryCommandState(ot) || Ge === "" ? Be.execCommand(ot) : o(Be, Jt, Ge)
53615
53615
  });
53616
- }, It = (Be, He, Bt, ot, Jt, Ge) => {
53617
- Ge.length > 1 ? Q(Be, He, Bt, ot, Jt, Ge) : io(Be, He, Bt, ot, Jt, ut(Ge[0]));
53616
+ }, It = (Be, We, Bt, ot, Jt, Ge) => {
53617
+ Ge.length > 1 ? Q(Be, We, Bt, ot, Jt, Ge) : io(Be, We, Bt, ot, Jt, ut(Ge[0]));
53618
53618
  }, Gt = (Be) => {
53619
53619
  It(Be, "numlist", "Numbered list", "InsertOrderedList", "OL", m(Be)), It(Be, "bullist", "Bullet list", "InsertUnorderedList", "UL", O(Be));
53620
53620
  };
@@ -54505,7 +54505,7 @@ function xhe() {
54505
54505
  }, Ft = Gt, Be = (ot) => {
54506
54506
  const Jt = io(ot, 0);
54507
54507
  Me(Jt) && It(ot, Jt);
54508
- }, He = (ot) => {
54508
+ }, We = (ot) => {
54509
54509
  ot.on("keydown", (Jt) => {
54510
54510
  Jt.keyCode === 13 && !Jt.isDefaultPrevented() && Be(ot);
54511
54511
  }), ot.on("keyup", (Jt) => {
@@ -54514,7 +54514,7 @@ function xhe() {
54514
54514
  };
54515
54515
  var Bt = () => {
54516
54516
  u.add("autolink", (ot) => {
54517
- c(ot), He(ot);
54517
+ c(ot), We(ot);
54518
54518
  });
54519
54519
  };
54520
54520
  Bt();
@@ -55865,7 +55865,7 @@ function She() {
55865
55865
  ze = Fn;
55866
55866
  }
55867
55867
  };
55868
- }, He = (Ne, ze) => {
55868
+ }, We = (Ne, ze) => {
55869
55869
  let Je = null;
55870
55870
  const Se = () => {
55871
55871
  P(Je) || (clearTimeout(Je), Je = null);
@@ -55916,7 +55916,7 @@ function She() {
55916
55916
  const Fs = Ge(Rr, is);
55917
55917
  rs.setData({ results: Fs });
55918
55918
  });
55919
- }, ur = He((rs) => {
55919
+ }, ur = We((rs) => {
55920
55920
  const is = rs.getData().pattern;
55921
55921
  Ps(rs, is);
55922
55922
  }, 40), Ko = ze.length === 1 ? Fn() : yo(), Us = {
@@ -66367,21 +66367,21 @@ function nge(u) {
66367
66367
  throw new RangeError(`Unrecognized record size: ${ut}`);
66368
66368
  let io = T[je], It, Gt, Ft = Oe - qt;
66369
66369
  if (Yn - Oe <= h && (Gt = we(w.pos - at, rn))) {
66370
- let Be = new Uint16Array(Gt.size - Gt.skip), He = w.pos - Gt.size, Bt = Be.length;
66371
- for (; w.pos > He; )
66370
+ let Be = new Uint16Array(Gt.size - Gt.skip), We = w.pos - Gt.size, Bt = Be.length;
66371
+ for (; w.pos > We; )
66372
66372
  Bt = Te(Gt.start, Be, Bt);
66373
66373
  It = new O2(Be, Yn - Gt.start, c), Ft = Gt.start - qt;
66374
66374
  } else {
66375
66375
  let Be = w.pos - ut;
66376
66376
  w.next();
66377
- let He = [], Bt = [], ot = je >= O ? je : -1, Jt = 0, Ge = Yn;
66377
+ let We = [], Bt = [], ot = je >= O ? je : -1, Jt = 0, Ge = Yn;
66378
66378
  for (; w.pos > Be; )
66379
- ot >= 0 && w.id == ot && w.size >= 0 ? (w.end <= Ge - h && (he(He, Bt, Oe, Jt, w.end, Ge, ot, kt, Q), Jt = He.length, Ge = w.end), w.next()) : dn > 2500 ? H(Oe, Be, He, Bt) : F(Oe, Be, He, Bt, ot, dn + 1);
66380
- if (ot >= 0 && Jt > 0 && Jt < He.length && he(He, Bt, Oe, Jt, Oe, Ge, ot, kt, Q), He.reverse(), Bt.reverse(), ot > -1 && Jt > 0) {
66379
+ ot >= 0 && w.id == ot && w.size >= 0 ? (w.end <= Ge - h && (he(We, Bt, Oe, Jt, w.end, Ge, ot, kt, Q), Jt = We.length, Ge = w.end), w.next()) : dn > 2500 ? H(Oe, Be, We, Bt) : F(Oe, Be, We, Bt, ot, dn + 1);
66380
+ if (ot >= 0 && Jt > 0 && Jt < We.length && he(We, Bt, Oe, Jt, Oe, Ge, ot, kt, Q), We.reverse(), Bt.reverse(), ot > -1 && Jt > 0) {
66381
66381
  let ht = K(io, Q);
66382
- It = EJ(io, He, Bt, 0, He.length, 0, Yn - Oe, ht, ht);
66382
+ It = EJ(io, We, Bt, 0, We.length, 0, Yn - Oe, ht, ht);
66383
66383
  } else
66384
- It = Me(io, He, Bt, Yn - Oe, kt - Yn, Q);
66384
+ It = Me(io, We, Bt, Yn - Oe, kt - Yn, Q);
66385
66385
  }
66386
66386
  te.push(It), _t.push(Ft);
66387
66387
  }