@uxland/primary-shell 7.41.2 → 7.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import c$x, { useState, useRef, useEffect } from "react";
2
- import r$R, { createRoot } from "react-dom/client";
2
+ import r$S, { createRoot } from "react-dom/client";
3
3
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function getDefaultExportFromCjs(X) {
5
5
  return X && X.__esModule && Object.prototype.hasOwnProperty.call(X, "default") ? X.default : X;
@@ -79,9 +79,9 @@ function require_Reflect() {
79
79
  } else {
80
80
  if (!It(it))
81
81
  throw new TypeError();
82
- if (!Ue(nt))
82
+ if (!Ve(nt))
83
83
  throw new TypeError();
84
- if (!Ue(At) && !Be(At) && !Xe(At))
84
+ if (!Ve(At) && !Be(At) && !Xe(At))
85
85
  throw new TypeError();
86
86
  return Xe(At) && (At = void 0), vt = kt(vt), ze(it, nt, vt, At);
87
87
  }
@@ -89,9 +89,9 @@ function require_Reflect() {
89
89
  J("decorate", Ae);
90
90
  function ye(it, nt) {
91
91
  function vt(At, Lt) {
92
- if (!Ue(At))
92
+ if (!Ve(At))
93
93
  throw new TypeError();
94
- if (!Be(Lt) && !Ut(Lt))
94
+ if (!Be(Lt) && !Vt(Lt))
95
95
  throw new TypeError();
96
96
  Qe(it, nt, At, Lt);
97
97
  }
@@ -99,51 +99,51 @@ function require_Reflect() {
99
99
  }
100
100
  J("metadata", ye);
101
101
  function Se(it, nt, vt, At) {
102
- if (!Ue(vt))
102
+ if (!Ve(vt))
103
103
  throw new TypeError();
104
104
  return Be(At) || (At = kt(At)), Qe(it, nt, vt, At);
105
105
  }
106
106
  J("defineMetadata", Se);
107
107
  function Pe(it, nt, vt) {
108
- if (!Ue(nt))
108
+ if (!Ve(nt))
109
109
  throw new TypeError();
110
110
  return Be(vt) || (vt = kt(vt)), We(it, nt, vt);
111
111
  }
112
112
  J("hasMetadata", Pe);
113
113
  function De(it, nt, vt) {
114
- if (!Ue(nt))
114
+ if (!Ve(nt))
115
115
  throw new TypeError();
116
116
  return Be(vt) || (vt = kt(vt)), Ge(it, nt, vt);
117
117
  }
118
118
  J("hasOwnMetadata", De);
119
119
  function Me(it, nt, vt) {
120
- if (!Ue(nt))
120
+ if (!Ve(nt))
121
121
  throw new TypeError();
122
122
  return Be(vt) || (vt = kt(vt)), Ke(it, nt, vt);
123
123
  }
124
124
  J("getMetadata", Me);
125
125
  function He(it, nt, vt) {
126
- if (!Ue(nt))
126
+ if (!Ve(nt))
127
127
  throw new TypeError();
128
128
  return Be(vt) || (vt = kt(vt)), ft(it, nt, vt);
129
129
  }
130
130
  J("getOwnMetadata", He);
131
131
  function Ie(it, nt) {
132
- if (!Ue(it))
132
+ if (!Ve(it))
133
133
  throw new TypeError();
134
134
  return Be(nt) || (nt = kt(nt)), Ze(it, nt);
135
135
  }
136
136
  J("getMetadataKeys", Ie);
137
137
  function Ce(it, nt) {
138
- if (!Ue(it))
138
+ if (!Ve(it))
139
139
  throw new TypeError();
140
140
  return Be(nt) || (nt = kt(nt)), Fe(it, nt);
141
141
  }
142
142
  J("getOwnMetadataKeys", Ce);
143
143
  function qe(it, nt, vt) {
144
- if (!Ue(nt))
144
+ if (!Ve(nt))
145
145
  throw new TypeError();
146
- if (Be(vt) || (vt = kt(vt)), !Ue(nt))
146
+ if (Be(vt) || (vt = kt(vt)), !Ve(nt))
147
147
  throw new TypeError();
148
148
  Be(vt) || (vt = kt(vt));
149
149
  var At = ds(
@@ -170,7 +170,7 @@ function require_Reflect() {
170
170
  for (var Lt = it.length - 1; Lt >= 0; --Lt) {
171
171
  var os = it[Lt], ls = os(nt, vt, At);
172
172
  if (!Be(ls) && !Xe(ls)) {
173
- if (!Ue(ls))
173
+ if (!Ve(ls))
174
174
  throw new TypeError();
175
175
  At = ls;
176
176
  }
@@ -248,7 +248,7 @@ function require_Reflect() {
248
248
  );
249
249
  return vt ? vt.OrdinaryOwnMetadataKeys(it, nt) : [];
250
250
  }
251
- function Ve(it) {
251
+ function Ue(it) {
252
252
  if (it === null)
253
253
  return 1;
254
254
  switch (typeof it) {
@@ -277,11 +277,11 @@ function require_Reflect() {
277
277
  function Je(it) {
278
278
  return typeof it == "symbol";
279
279
  }
280
- function Ue(it) {
280
+ function Ve(it) {
281
281
  return typeof it == "object" ? it !== null : typeof it == "function";
282
282
  }
283
283
  function Ye(it, nt) {
284
- switch (Ve(it)) {
284
+ switch (Ue(it)) {
285
285
  case 0:
286
286
  return it;
287
287
  case 1:
@@ -298,7 +298,7 @@ function require_Reflect() {
298
298
  var vt = "string", At = Yt(it, ne);
299
299
  if (At !== void 0) {
300
300
  var Lt = At.call(it, vt);
301
- if (Ue(Lt))
301
+ if (Ve(Lt))
302
302
  throw new TypeError();
303
303
  return Lt;
304
304
  }
@@ -310,13 +310,13 @@ function require_Reflect() {
310
310
  var os = it.toString;
311
311
  if (qt(os)) {
312
312
  var At = os.call(it);
313
- if (!Ue(At))
313
+ if (!Ve(At))
314
314
  return At;
315
315
  }
316
316
  var vt = it.valueOf;
317
317
  if (qt(vt)) {
318
318
  var At = vt.call(it);
319
- if (!Ue(At))
319
+ if (!Ve(At))
320
320
  return At;
321
321
  }
322
322
  }
@@ -341,8 +341,8 @@ function require_Reflect() {
341
341
  function Nt(it) {
342
342
  return typeof it == "function";
343
343
  }
344
- function Ut(it) {
345
- switch (Ve(it)) {
344
+ function Vt(it) {
345
+ switch (Ue(it)) {
346
346
  case 3:
347
347
  return !0;
348
348
  case 4:
@@ -367,7 +367,7 @@ function require_Reflect() {
367
367
  if (!qt(nt))
368
368
  throw new TypeError();
369
369
  var vt = nt.call(it);
370
- if (!Ue(vt))
370
+ if (!Ve(vt))
371
371
  throw new TypeError();
372
372
  return vt;
373
373
  }
@@ -467,7 +467,7 @@ function require_Reflect() {
467
467
  }
468
468
  function Mt() {
469
469
  var it;
470
- return !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Ft()), !Be(ve) && Ue(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
470
+ return !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Be(it) && (it = Ft()), !Be(ve) && Ve(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
471
471
  enumerable: !1,
472
472
  configurable: !1,
473
473
  writable: !1,
@@ -1571,16 +1571,16 @@ let y$k = class {
1571
1571
  throw new Error(`region ${this.name} doest not contain this view`);
1572
1572
  }
1573
1573
  };
1574
- const e$Y = "default", r$Q = "dynamic";
1574
+ const e$Y = "default", r$R = "dynamic";
1575
1575
  let y$j = class {
1576
1576
  constructor() {
1577
- this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$Q, []);
1577
+ this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$R, []);
1578
1578
  }
1579
1579
  registerAdapterFactory(W, J) {
1580
1580
  this.adapterRegistry.set(W, J);
1581
1581
  }
1582
1582
  get dynamicFactories() {
1583
- return this.adapterRegistry.get(r$Q);
1583
+ return this.adapterRegistry.get(r$R);
1584
1584
  }
1585
1585
  registerDynamicAdapterFactory(W) {
1586
1586
  this.dynamicFactories.indexOf(W) === -1 && this.dynamicFactories.push(W);
@@ -1643,7 +1643,7 @@ let i$X = class {
1643
1643
  }
1644
1644
  };
1645
1645
  const n$K = /* @__PURE__ */ new WeakMap();
1646
- function r$P(X, W) {
1646
+ function r$Q(X, W) {
1647
1647
  let J = W;
1648
1648
  for (; J; ) {
1649
1649
  if (n$K.get(J) === X) return !0;
@@ -1653,7 +1653,7 @@ function r$P(X, W) {
1653
1653
  }
1654
1654
  function d$x(X) {
1655
1655
  return (W) => {
1656
- if (r$P(X, W)) return W;
1656
+ if (r$Q(X, W)) return W;
1657
1657
  const J = X(W);
1658
1658
  return n$K.set(J, X), J;
1659
1659
  };
@@ -1682,7 +1682,7 @@ let o$16 = class {
1682
1682
  return this.cssText;
1683
1683
  }
1684
1684
  };
1685
- const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h = (X, W) => {
1685
+ const r$P = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h = (X, W) => {
1686
1686
  e$X ? X.adoptedStyleSheets = W.map(((J) => J instanceof CSSStyleSheet ? J : J.styleSheet)) : W.forEach(((J) => {
1687
1687
  const te = document.createElement("style"), re = t$A.litNonce;
1688
1688
  re !== void 0 && te.setAttribute("nonce", re), te.textContent = J.cssText, X.appendChild(te);
@@ -1690,7 +1690,7 @@ const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h
1690
1690
  }, c$v = e$X ? (X) => X : (X) => X instanceof CSSStyleSheet ? ((W) => {
1691
1691
  let J = "";
1692
1692
  for (const te of W.cssRules) J += te.cssText;
1693
- return r$O(J);
1693
+ return r$P(J);
1694
1694
  })(X) : X;
1695
1695
  /**
1696
1696
  * @license
@@ -1698,7 +1698,7 @@ const r$O = (X) => new o$16(typeof X == "string" ? X : X + "", void 0, s$J), S$h
1698
1698
  * SPDX-License-Identifier: BSD-3-Clause
1699
1699
  */
1700
1700
  var s$I;
1701
- const e$W = window, r$N = e$W.trustedTypes, h$u = r$N ? r$N.emptyScript : "", o$15 = e$W.reactiveElementPolyfillSupport, n$I = { toAttribute(X, W) {
1701
+ const e$W = window, r$O = e$W.trustedTypes, h$u = r$O ? r$O.emptyScript : "", o$15 = e$W.reactiveElementPolyfillSupport, n$I = { toAttribute(X, W) {
1702
1702
  switch (W) {
1703
1703
  case Boolean:
1704
1704
  X = X ? h$u : null;
@@ -1908,9 +1908,9 @@ u$v[d$w] = !0, u$v.elementProperties = /* @__PURE__ */ new Map(), u$v.elementSty
1908
1908
  * SPDX-License-Identifier: BSD-3-Clause
1909
1909
  */
1910
1910
  var t$z;
1911
- const i$W = window, s$H = i$W.trustedTypes, e$V = s$H ? s$H.createPolicy("lit-html", { createHTML: (X) => X }) : void 0, o$14 = "$lit$", n$H = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$H, h$t = `<${l$z}>`, r$M = document, u$u = () => r$M.createComment(""), d$v = (X) => X === null || typeof X != "object" && typeof X != "function", c$u = Array.isArray, v$n = (X) => c$u(X) || typeof X?.[Symbol.iterator] == "function", a$s = `[
1911
+ const i$W = window, s$H = i$W.trustedTypes, e$V = s$H ? s$H.createPolicy("lit-html", { createHTML: (X) => X }) : void 0, o$14 = "$lit$", n$H = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$H, h$t = `<${l$z}>`, r$N = document, u$u = () => r$N.createComment(""), d$v = (X) => X === null || typeof X != "object" && typeof X != "function", c$u = Array.isArray, v$o = (X) => c$u(X) || typeof X?.[Symbol.iterator] == "function", a$s = `[
1912
1912
  \f\r]`, f$s = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$g = /-->/g, m$h = />/g, p$f = RegExp(`>|${a$s}(?:([^\\s"'>=/]+)(${a$s}*=${a$s}*(?:[^
1913
- \f\r"'\`<>=]|("|')|))|$)`, "g"), g$n = /'/g, $$h = /"/g, y$i = /^(?:script|style|textarea|title)$/i, T$9 = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), E$b = /* @__PURE__ */ new WeakMap(), C$a = r$M.createTreeWalker(r$M, 129, null, !1);
1913
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), g$o = /'/g, $$h = /"/g, y$i = /^(?:script|style|textarea|title)$/i, T$9 = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), E$b = /* @__PURE__ */ new WeakMap(), C$a = r$N.createTreeWalker(r$N, 129, null, !1);
1914
1914
  function P$4(X, W) {
1915
1915
  if (!Array.isArray(X) || !X.hasOwnProperty("raw")) throw Error("invalid template strings array");
1916
1916
  return e$V !== void 0 ? e$V.createHTML(W) : W;
@@ -1921,7 +1921,7 @@ const V$4 = (X, W) => {
1921
1921
  for (let de = 0; de < J; de++) {
1922
1922
  const ce = X[de];
1923
1923
  let ue, he, pe = -1, fe = 0;
1924
- for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$s ? he[1] === "!--" ? ne = _$g : he[1] !== void 0 ? ne = m$h : he[2] !== void 0 ? (y$i.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$f) : he[3] !== void 0 && (ne = p$f) : ne === p$f ? he[0] === ">" ? (ne = re ?? f$s, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$f : he[3] === '"' ? $$h : g$n) : ne === $$h || ne === g$n ? ne = p$f : ne === _$g || ne === m$h ? ne = f$s : (ne = p$f, re = void 0);
1924
+ for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$s ? he[1] === "!--" ? ne = _$g : he[1] !== void 0 ? ne = m$h : he[2] !== void 0 ? (y$i.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$f) : he[3] !== void 0 && (ne = p$f) : ne === p$f ? he[0] === ">" ? (ne = re ?? f$s, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$f : he[3] === '"' ? $$h : g$o) : ne === $$h || ne === g$o ? ne = p$f : ne === _$g || ne === m$h ? ne = f$s : (ne = p$f, re = void 0);
1925
1925
  const be = ne === p$f && X[de + 1].startsWith("/>") ? " " : "";
1926
1926
  oe += ne === f$s ? ce + h$t : pe >= 0 ? (te.push(ue), ce.slice(0, pe) + o$14 + ce.slice(pe) + n$H + be) : ce + n$H + (pe === -2 ? (te.push(void 0), de) : be);
1927
1927
  }
@@ -1967,7 +1967,7 @@ let N$2 = class ki {
1967
1967
  }
1968
1968
  }
1969
1969
  static createElement(W, J) {
1970
- const te = r$M.createElement("template");
1970
+ const te = r$N.createElement("template");
1971
1971
  return te.innerHTML = W, te;
1972
1972
  }
1973
1973
  };
@@ -1990,23 +1990,23 @@ let M$6 = class {
1990
1990
  }
1991
1991
  u(W) {
1992
1992
  var J;
1993
- const { el: { content: te }, parts: re } = this._$AD, oe = ((J = W?.creationScope) !== null && J !== void 0 ? J : r$M).importNode(te, !0);
1993
+ const { el: { content: te }, parts: re } = this._$AD, oe = ((J = W?.creationScope) !== null && J !== void 0 ? J : r$N).importNode(te, !0);
1994
1994
  C$a.currentNode = oe;
1995
1995
  let ne = C$a.nextNode(), de = 0, ce = 0, ue = re[0];
1996
1996
  for (; ue !== void 0; ) {
1997
1997
  if (de === ue.index) {
1998
1998
  let he;
1999
- ue.type === 2 ? he = new R$6(ne, ne.nextSibling, this, W) : ue.type === 1 ? he = new ue.ctor(ne, ue.name, ue.strings, this, W) : ue.type === 6 && (he = new Z$1(ne, this, W)), this._$AV.push(he), ue = re[++ce];
1999
+ ue.type === 2 ? he = new R$7(ne, ne.nextSibling, this, W) : ue.type === 1 ? he = new ue.ctor(ne, ue.name, ue.strings, this, W) : ue.type === 6 && (he = new Z$1(ne, this, W)), this._$AV.push(he), ue = re[++ce];
2000
2000
  }
2001
2001
  de !== ue?.index && (ne = C$a.nextNode(), de++);
2002
2002
  }
2003
- return C$a.currentNode = r$M, oe;
2003
+ return C$a.currentNode = r$N, oe;
2004
2004
  }
2005
2005
  v(W) {
2006
2006
  let J = 0;
2007
2007
  for (const te of this._$AV) te !== void 0 && (te.strings !== void 0 ? (te._$AI(W, te, J), J += te.strings.length - 2) : te._$AI(W[J])), J++;
2008
2008
  }
2009
- }, R$6 = class Ai {
2009
+ }, R$7 = class Ai {
2010
2010
  constructor(W, J, te, re) {
2011
2011
  var oe;
2012
2012
  this.type = 2, this._$AH = A$2, this._$AN = void 0, this._$AA = W, this._$AB = J, this._$AM = te, this.options = re, this._$Cp = (oe = re?.isConnected) === null || oe === void 0 || oe;
@@ -2027,7 +2027,7 @@ let M$6 = class {
2027
2027
  return this._$AB;
2028
2028
  }
2029
2029
  _$AI(W, J = this) {
2030
- W = S$g(this, W, J), d$v(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$9 && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$n(W) ? this.T(W) : this._(W);
2030
+ W = S$g(this, W, J), d$v(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$9 && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$o(W) ? this.T(W) : this._(W);
2031
2031
  }
2032
2032
  k(W) {
2033
2033
  return this._$AA.parentNode.insertBefore(W, this._$AB);
@@ -2036,7 +2036,7 @@ let M$6 = class {
2036
2036
  this._$AH !== W && (this._$AR(), this._$AH = this.k(W));
2037
2037
  }
2038
2038
  _(W) {
2039
- this._$AH !== A$2 && d$v(this._$AH) ? this._$AA.nextSibling.data = W : this.$(r$M.createTextNode(W)), this._$AH = W;
2039
+ this._$AH !== A$2 && d$v(this._$AH) ? this._$AA.nextSibling.data = W : this.$(r$N.createTextNode(W)), this._$AH = W;
2040
2040
  }
2041
2041
  g(W) {
2042
2042
  var J;
@@ -2135,14 +2135,14 @@ let L$7 = class extends k$b {
2135
2135
  }
2136
2136
  };
2137
2137
  const B$5 = i$W.litHtmlPolyfillSupport;
2138
- B$5?.(N$2, R$6), ((t$z = i$W.litHtmlVersions) !== null && t$z !== void 0 ? t$z : i$W.litHtmlVersions = []).push("2.8.0");
2138
+ B$5?.(N$2, R$7), ((t$z = i$W.litHtmlVersions) !== null && t$z !== void 0 ? t$z : i$W.litHtmlVersions = []).push("2.8.0");
2139
2139
  const D$5 = (X, W, J) => {
2140
2140
  var te, re;
2141
2141
  const oe = (te = J?.renderBefore) !== null && te !== void 0 ? te : W;
2142
2142
  let ne = oe._$litPart$;
2143
2143
  if (ne === void 0) {
2144
2144
  const de = (re = J?.renderBefore) !== null && re !== void 0 ? re : null;
2145
- oe._$litPart$ = ne = new R$6(W.insertBefore(u$u(), de), de, void 0, J ?? {});
2145
+ oe._$litPart$ = ne = new R$7(W.insertBefore(u$u(), de), de, void 0, J ?? {});
2146
2146
  }
2147
2147
  return ne._$AI(X), ne;
2148
2148
  };
@@ -2241,7 +2241,66 @@ var nth = /* @__PURE__ */ _curry2(function(W, J) {
2241
2241
  }), prop = /* @__PURE__ */ _curry2(function(W, J) {
2242
2242
  return path([W], J);
2243
2243
  });
2244
- const u$s = (X) => (W) => pipe(prop(W.key), isNil)(X), q$4 = (X) => (W) => !u$s(X)(W) && isNil(X.shadowRoot.querySelector(`#${W.definition.targetId}`)), T$7 = (X) => (W) => {
2244
+ let R$6 = class {
2245
+ constructor() {
2246
+ this.viewsByRegion = {}, this.regions = {};
2247
+ }
2248
+ registerRegion(W, J) {
2249
+ this.regions[W] = [...this.regions[W] || [], J];
2250
+ }
2251
+ unregisterRegion(W, J) {
2252
+ this.regions[W] = this.getRegionsByName(W).filter((te) => te !== J);
2253
+ }
2254
+ registerView(W, J, te) {
2255
+ this.viewsByRegion[W] = [...this.viewsByRegion[W] || [], { key: J, view: te }];
2256
+ }
2257
+ getRegisteredViews(W) {
2258
+ return this.viewsByRegion[W] || [];
2259
+ }
2260
+ getRegionsByName(W) {
2261
+ return this.regions[W] || [];
2262
+ }
2263
+ clear() {
2264
+ this.viewsByRegion = {}, this.regions = {};
2265
+ }
2266
+ };
2267
+ const r$M = new R$6();
2268
+ let g$n = class Si {
2269
+ constructor() {
2270
+ this._regions = {};
2271
+ }
2272
+ add(W, J) {
2273
+ return a$u(!this.getRegion(W), "A region with the same name already exists"), this._regions[W] = J, r$M.registerRegion(W, J), this;
2274
+ }
2275
+ getRegion(W) {
2276
+ return this._regions[W];
2277
+ }
2278
+ remove(W, J) {
2279
+ let te, re;
2280
+ return typeof W == "string" && (te = this.getRegion(W), re = W, delete this._regions[W]), typeof W == "object" && (re = Object.keys(this._regions).find((oe) => this._regions[oe] === W), re && (te = W, J && W.removeViews(), delete this._regions[re])), re && te && r$M.unregisterRegion(re, te), te;
2281
+ }
2282
+ addViewToRegion(W, J, te) {
2283
+ const re = this.getRegion(W);
2284
+ return a$u(re, `Couldn't find a region with name: ${W}`), re.addView(J, te), this;
2285
+ }
2286
+ registerViewWithRegion(W, J, te) {
2287
+ return r$M.registerView(W, J, te), r$M.getRegionsByName(W).forEach((re) => re.addView(J, te)), this;
2288
+ }
2289
+ getRegisteredViews(W) {
2290
+ return r$M.getRegisteredViews(W);
2291
+ }
2292
+ clear() {
2293
+ return Object.keys(this._regions).forEach((W) => this.remove(W, !0)), this._regions = {}, this;
2294
+ }
2295
+ createRegionManager() {
2296
+ return new Si();
2297
+ }
2298
+ }, w$6 = class extends g$n {
2299
+ clear() {
2300
+ return super.clear(), r$M.clear(), this;
2301
+ }
2302
+ };
2303
+ const v$n = new w$6(), u$s = (X) => (W) => pipe(prop(W.key), isNil)(X), q$4 = (X) => (W) => !u$s(X)(W) && isNil(X.shadowRoot.querySelector(`#${W.definition.targetId}`)), T$7 = (X) => (W) => {
2245
2304
  const J = X[W.key];
2246
2305
  J.regionManager.remove(J);
2247
2306
  const te = J.adapter ? J.adapter.behaviors || [] : [];
@@ -2608,13 +2667,13 @@ const U$1 = (X, W) => {
2608
2667
  }
2609
2668
  return [N$1(X, oe + (X[J] || "<?>") + (W === 2 ? "</svg>" : W === 3 ? "</math>" : "")), te];
2610
2669
  };
2611
- let B$4 = class Si {
2670
+ let B$4 = class Ci {
2612
2671
  constructor({ strings: W, _$litType$: J }, te) {
2613
2672
  let re;
2614
2673
  this.parts = [];
2615
2674
  let oe = 0, ne = 0;
2616
2675
  const de = W.length - 1, ce = this.parts, [ue, he] = U$1(W, J);
2617
- if (this.el = Si.createElement(ue, te), I$2.currentNode = this.el.content, J === 2 || J === 3) {
2676
+ if (this.el = Ci.createElement(ue, te), I$2.currentNode = this.el.content, J === 2 || J === 3) {
2618
2677
  const pe = this.el.content.firstChild;
2619
2678
  pe.replaceWith(...pe.childNodes);
2620
2679
  }
@@ -2678,7 +2737,7 @@ let F$3 = class {
2678
2737
  let J = 0;
2679
2738
  for (const te of this._$AV) te !== void 0 && (te.strings !== void 0 ? (te._$AI(W, te, J), J += te.strings.length - 2) : te._$AI(W[J])), J++;
2680
2739
  }
2681
- }, et$1 = class Ci {
2740
+ }, et$1 = class Ei {
2682
2741
  get _$AU() {
2683
2742
  return this._$AM?._$AU ?? this.v;
2684
2743
  }
@@ -2724,7 +2783,7 @@ let F$3 = class {
2724
2783
  g$m(this._$AH) || (this._$AH = [], this._$AR());
2725
2784
  const J = this._$AH;
2726
2785
  let te, re = 0;
2727
- for (const oe of W) re === J.length ? J.push(te = new Ci(this.O(lt$1()), this.O(lt$1()), this, this.options)) : te = J[re], te._$AI(oe), re++;
2786
+ for (const oe of W) re === J.length ? J.push(te = new Ei(this.O(lt$1()), this.O(lt$1()), this, this.options)) : te = J[re], te._$AI(oe), re++;
2728
2787
  re < J.length && (this._$AR(te && te._$AB.nextSibling, re), J.length = re);
2729
2788
  }
2730
2789
  _$AR(W = this._$AA.nextSibling, J) {
@@ -2956,7 +3015,7 @@ let w$3 = class {
2956
3015
  clear() {
2957
3016
  this.viewsByRegion = {};
2958
3017
  }
2959
- }, n$z = class Ei {
3018
+ }, n$z = class Ti {
2960
3019
  constructor(W) {
2961
3020
  this._viewRegistry = W, this._regions = {};
2962
3021
  }
@@ -3006,7 +3065,7 @@ let w$3 = class {
3006
3065
  ), this._regions = {}, this;
3007
3066
  }
3008
3067
  createRegionManager() {
3009
- return new Ei(this._viewRegistry);
3068
+ return new Ti(this._viewRegistry);
3010
3069
  }
3011
3070
  }, c$q = class extends n$z {
3012
3071
  constructor(W) {
@@ -4817,8 +4876,8 @@ const resolveConfig = (X) => {
4817
4876
  method: "POST",
4818
4877
  body: _e,
4819
4878
  duplex: "half"
4820
- }), Ve;
4821
- if (utils$1.isFormData(_e) && (Ve = Fe.headers.get("content-type")) && Me.setContentType(Ve), Fe.body) {
4879
+ }), Ue;
4880
+ if (utils$1.isFormData(_e) && (Ue = Fe.headers.get("content-type")) && Me.setContentType(Ue), Fe.body) {
4822
4881
  const [Be, Xe] = progressEventDecorator(
4823
4882
  We,
4824
4883
  progressEventReducer(asyncDecorator(Pe))
@@ -4844,8 +4903,8 @@ const resolveConfig = (X) => {
4844
4903
  ["status", "statusText", "headers"].forEach((Je) => {
4845
4904
  Fe[Je] = ft[Je];
4846
4905
  });
4847
- const Ve = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Se && progressEventDecorator(
4848
- Ve,
4906
+ const Ue = utils$1.toFiniteNumber(ft.headers.get("content-length")), [Be, Xe] = Se && progressEventDecorator(
4907
+ Ue,
4849
4908
  progressEventReducer(asyncDecorator(Se), !0)
4850
4909
  ) || [];
4851
4910
  ft = new te(
@@ -4857,8 +4916,8 @@ const resolveConfig = (X) => {
4857
4916
  }
4858
4917
  De = De || "text";
4859
4918
  let Ze = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
4860
- return !Qe && ze && ze(), await new Promise((Fe, Ve) => {
4861
- settle(Fe, Ve, {
4919
+ return !Qe && ze && ze(), await new Promise((Fe, Ue) => {
4920
+ settle(Fe, Ue, {
4862
4921
  data: Ze,
4863
4922
  headers: AxiosHeaders$1.from(ft.headers),
4864
4923
  status: ft.status,
@@ -5131,7 +5190,7 @@ utils$1.forEach(["post", "put", "patch"], function(W) {
5131
5190
  }
5132
5191
  Axios$1.prototype[W] = J(), Axios$1.prototype[W + "Form"] = J(!0);
5133
5192
  });
5134
- let CancelToken$1 = class Ti {
5193
+ let CancelToken$1 = class Oi {
5135
5194
  constructor(W) {
5136
5195
  if (typeof W != "function")
5137
5196
  throw new TypeError("executor must be a function.");
@@ -5197,7 +5256,7 @@ let CancelToken$1 = class Ti {
5197
5256
  static source() {
5198
5257
  let W;
5199
5258
  return {
5200
- token: new Ti(function(re) {
5259
+ token: new Oi(function(re) {
5201
5260
  W = re;
5202
5261
  }),
5203
5262
  cancel: W
@@ -5920,7 +5979,7 @@ function peg$parse(X, W) {
5920
5979
  return __assign$4({ type: TYPE.pound }, _s());
5921
5980
  }, he = bs("argumentElement"), pe = "{", fe = us("{", !1), be = "}", me = us("}", !1), ge = function(Oe) {
5922
5981
  return __assign$4({ type: TYPE.argument, value: Oe }, _s());
5923
- }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, we = $s(["'", "/", "{", "}"], !1, !1), Ae = zi(), ye = bs("numberSkeletonTokenOption"), Se = "/", Pe = us("/", !1), De = function(Oe) {
5982
+ }, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, we = $s(["'", "/", "{", "}"], !1, !1), Ae = Ni(), ye = bs("numberSkeletonTokenOption"), Se = "/", Pe = us("/", !1), De = function(Oe) {
5924
5983
  return Oe;
5925
5984
  }, Me = bs("numberSkeletonToken"), He = function(Oe, je) {
5926
5985
  return { stem: Oe, options: je };
@@ -5934,15 +5993,15 @@ function peg$parse(X, W) {
5934
5993
  return vs.pop(), Oe.replace(/\s*$/, "");
5935
5994
  }, Ge = ",", Ke = us(",", !1), ft = "number", Qe = us("number", !1), Ze = function(Oe, je, tt) {
5936
5995
  return __assign$4({ type: je === "number" ? TYPE.number : je === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
5937
- }, Fe = "'", Ve = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ue = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5996
+ }, Fe = "'", Ue = us("'", !1), Be = /^[^']/, Xe = $s(["'"], !0, !1), Je = /^[^a-zA-Z'{}]/, Ve = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
5938
5997
  return __assign$4({ type: 1, pattern: Oe }, _s());
5939
5998
  }, _t = function() {
5940
5999
  return vs.push("dateOrTimeArgStyle"), !0;
5941
- }, kt = "date", It = us("date", !1), qt = "time", Nt = us("time", !1), Ut = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), St = function(Oe, je, tt, bt) {
6000
+ }, kt = "date", It = us("date", !1), qt = "time", Nt = us("time", !1), Vt = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), St = function(Oe, je, tt, bt) {
5942
6001
  return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function(wt, Pt) {
5943
- var es = Pt.id, Vt = Pt.value, fs = Pt.location;
6002
+ var es = Pt.id, Ut = Pt.value, fs = Pt.location;
5944
6003
  return es in wt && ai('Duplicate option "' + es + '" in plural element: "' + ni() + '"', Is()), wt[es] = {
5945
- value: Vt,
6004
+ value: Ut,
5946
6005
  location: fs
5947
6006
  }, wt;
5948
6007
  }, {}) }, _s());
@@ -5975,16 +6034,16 @@ function peg$parse(X, W) {
5975
6034
  }, ns = function(Oe, je) {
5976
6035
  return Oe + je.replace("''", "'");
5977
6036
  }, ps = function(Oe) {
5978
- return Oe !== "{" && !(xi() && Oe === "#") && !(or() && Oe === "}");
6037
+ return Oe !== "{" && !(xi() && Oe === "#") && !(nr() && Oe === "}");
5979
6038
  }, Cs = `
5980
6039
  `, Ds = us(`
5981
6040
  `, !1), Rs = function(Oe) {
5982
6041
  return Oe === "{" || Oe === "}" || xi() && Oe === "#";
5983
- }, Oi = bs("argNameOrNumber"), Di = bs("argNumber"), Ri = "0", qi = us("0", !1), Ii = function() {
6042
+ }, Di = bs("argNameOrNumber"), Ri = bs("argNumber"), qi = "0", Ii = us("0", !1), Li = function() {
5984
6043
  return 0;
5985
- }, Li = /^[1-9]/, Pi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Mi = function(Oe) {
6044
+ }, Pi = /^[1-9]/, Mi = $s([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = $s([["0", "9"]], !1, !1), Fi = function(Oe) {
5986
6045
  return parseInt(Oe.join(""), 10);
5987
- }, Fi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
6046
+ }, zi = bs("argName"), Ne = 0, Gt = 0, Es = [{ line: 1, column: 1 }], ms = 0, qs = [], yt = 0, Ts;
5988
6047
  if (W.startRule !== void 0) {
5989
6048
  if (!(W.startRule in te))
5990
6049
  throw new Error(`Can't start parsing from rule "` + W.startRule + '".');
@@ -5997,7 +6056,7 @@ function peg$parse(X, W) {
5997
6056
  return Os(Gt, Ne);
5998
6057
  }
5999
6058
  function ai(Oe, je) {
6000
- throw je = je !== void 0 ? je : Os(Gt, Ne), Hi(Oe, je);
6059
+ throw je = je !== void 0 ? je : Os(Gt, Ne), Bi(Oe, je);
6001
6060
  }
6002
6061
  function us(Oe, je) {
6003
6062
  return { type: "literal", text: Oe, ignoreCase: je };
@@ -6005,10 +6064,10 @@ function peg$parse(X, W) {
6005
6064
  function $s(Oe, je, tt) {
6006
6065
  return { type: "class", parts: Oe, inverted: je, ignoreCase: tt };
6007
6066
  }
6008
- function zi() {
6067
+ function Ni() {
6009
6068
  return { type: "any" };
6010
6069
  }
6011
- function Ni() {
6070
+ function Hi() {
6012
6071
  return { type: "end" };
6013
6072
  }
6014
6073
  function bs(Oe) {
@@ -6045,10 +6104,10 @@ function peg$parse(X, W) {
6045
6104
  function Ct(Oe) {
6046
6105
  Ne < ms || (Ne > ms && (ms = Ne, qs = []), qs.push(Oe));
6047
6106
  }
6048
- function Hi(Oe, je) {
6107
+ function Bi(Oe, je) {
6049
6108
  return new SyntaxError(Oe, [], "", je);
6050
6109
  }
6051
- function Bi(Oe, je, tt) {
6110
+ function Vi(Oe, je, tt) {
6052
6111
  return new SyntaxError(SyntaxError.buildMessage(Oe, je), Oe, je, tt);
6053
6112
  }
6054
6113
  function di() {
@@ -6063,7 +6122,7 @@ function peg$parse(X, W) {
6063
6122
  }
6064
6123
  function ci() {
6065
6124
  var Oe;
6066
- return Oe = Ui(), Oe === J && (Oe = ji(), Oe === J && (Oe = Xi(), Oe === J && (Oe = Ji(), Oe === J && (Oe = sr(), Oe === J && (Oe = Vi()))))), Oe;
6125
+ return Oe = Ui(), Oe === J && (Oe = Wi(), Oe === J && (Oe = Ji(), Oe === J && (Oe = sr(), Oe === J && (Oe = ir(), Oe === J && (Oe = ji()))))), Oe;
6067
6126
  }
6068
6127
  function Ps() {
6069
6128
  var Oe, je, tt;
@@ -6078,11 +6137,11 @@ function peg$parse(X, W) {
6078
6137
  var Oe, je;
6079
6138
  return Oe = Ne, je = Ps(), je !== J && (Gt = Oe, je = ne(je)), Oe = je, Oe;
6080
6139
  }
6081
- function Vi() {
6140
+ function ji() {
6082
6141
  var Oe, je;
6083
6142
  return Oe = Ne, X.charCodeAt(Ne) === 35 ? (je = de, Ne++) : (je = J, yt === 0 && Ct(ce)), je !== J && (Gt = Oe, je = ue()), Oe = je, Oe;
6084
6143
  }
6085
- function ji() {
6144
+ function Wi() {
6086
6145
  var Oe, je, tt, bt, wt, Pt;
6087
6146
  return yt++, Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 125 ? (Pt = be, Ne++) : (Pt = J, yt === 0 && Ct(me)), Pt !== J ? (Gt = Oe, je = ge(bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), yt--, Oe === J && (je = J, yt === 0 && Ct(he)), Oe;
6088
6147
  }
@@ -6112,7 +6171,7 @@ function peg$parse(X, W) {
6112
6171
  Ne = Oe, Oe = J;
6113
6172
  return yt--, Oe === J && (je = J, yt === 0 && Ct(Me)), Oe;
6114
6173
  }
6115
- function Wi() {
6174
+ function Gi() {
6116
6175
  var Oe, je, tt;
6117
6176
  if (Oe = Ne, je = [], tt = pi(), tt !== J)
6118
6177
  for (; tt !== J; )
@@ -6121,29 +6180,29 @@ function peg$parse(X, W) {
6121
6180
  je = J;
6122
6181
  return je !== J && (Gt = Oe, je = Ie(je)), Oe = je, Oe;
6123
6182
  }
6124
- function Gi() {
6183
+ function Zi() {
6125
6184
  var Oe, je, tt;
6126
- return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Wi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6185
+ return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Gi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6127
6186
  }
6128
- function Zi() {
6129
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss;
6130
- return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 6) === ft ? (Vt = ft, Ne += 6) : (Vt = J, yt === 0 && Ct(Qe)), Vt !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Gi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Vt, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6187
+ function Ki() {
6188
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss;
6189
+ return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 6) === ft ? (Ut = ft, Ne += 6) : (Ut = J, yt === 0 && Ct(Qe)), Ut !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Zi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6131
6190
  }
6132
6191
  function fi() {
6133
6192
  var Oe, je, tt, bt;
6134
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J) {
6193
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ue)), je !== J) {
6135
6194
  if (tt = [], bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe))), bt !== J)
6136
6195
  for (; bt !== J; )
6137
6196
  tt.push(bt), bt = xs(), bt === J && (Be.test(X.charAt(Ne)) ? (bt = X.charAt(Ne), Ne++) : (bt = J, yt === 0 && Ct(Xe)));
6138
6197
  else
6139
6198
  tt = J;
6140
- tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Fe, Ne++) : (bt = J, yt === 0 && Ct(Ve)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6199
+ tt !== J ? (X.charCodeAt(Ne) === 39 ? (bt = Fe, Ne++) : (bt = J, yt === 0 && Ct(Ue)), bt !== J ? (je = [je, tt, bt], Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6141
6200
  } else
6142
6201
  Ne = Oe, Oe = J;
6143
6202
  if (Oe === J)
6144
- if (Oe = [], je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ue))), je !== J)
6203
+ if (Oe = [], je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ve))), je !== J)
6145
6204
  for (; je !== J; )
6146
- Oe.push(je), je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ue)));
6205
+ Oe.push(je), je = xs(), je === J && (Je.test(X.charAt(Ne)) ? (je = X.charAt(Ne), Ne++) : (je = J, yt === 0 && Ct(Ve)));
6147
6206
  else
6148
6207
  Oe = J;
6149
6208
  return Oe;
@@ -6157,7 +6216,7 @@ function peg$parse(X, W) {
6157
6216
  Oe = J;
6158
6217
  return Oe;
6159
6218
  }
6160
- function Ki() {
6219
+ function Yi() {
6161
6220
  var Oe, je, tt, bt;
6162
6221
  if (Oe = Ne, je = Ne, tt = [], bt = fi(), bt === J && (bt = bi()), bt !== J)
6163
6222
  for (; bt !== J; )
@@ -6166,27 +6225,27 @@ function peg$parse(X, W) {
6166
6225
  tt = J;
6167
6226
  return tt !== J ? je = X.substring(je, Ne) : je = tt, je !== J && (Gt = Oe, je = ot(je)), Oe = je, Oe;
6168
6227
  }
6169
- function Yi() {
6170
- var Oe, je, tt;
6171
- return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Ki(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6172
- }
6173
6228
  function Qi() {
6174
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss;
6175
- return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 4) === kt ? (Vt = kt, Ne += 4) : (Vt = J, yt === 0 && Ct(It)), Vt === J && (X.substr(Ne, 4) === qt ? (Vt = qt, Ne += 4) : (Vt = J, yt === 0 && Ct(Nt))), Vt !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Yi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Vt, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6229
+ var Oe, je, tt;
6230
+ return Oe = Ne, X.substr(Ne, 2) === Ce ? (je = Ce, Ne += 2) : (je = J, yt === 0 && Ct(qe)), je !== J ? (tt = Yi(), tt !== J ? (Gt = Oe, je = Le(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe === J && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = J, je !== J ? (tt = Ps(), tt !== J ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)), Oe;
6176
6231
  }
6177
6232
  function Xi() {
6178
- var Oe;
6179
- return Oe = Zi(), Oe === J && (Oe = Qi()), Oe;
6233
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss;
6234
+ return Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J ? (tt = jt(), tt !== J ? (bt = As(), bt !== J ? (wt = jt(), wt !== J ? (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J ? (es = jt(), es !== J ? (X.substr(Ne, 4) === kt ? (Ut = kt, Ne += 4) : (Ut = J, yt === 0 && Ct(It)), Ut === J && (X.substr(Ne, 4) === qt ? (Ut = qt, Ne += 4) : (Ut = J, yt === 0 && Ct(Nt))), Ut !== J ? (fs = jt(), fs !== J ? (Wt = Ne, X.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = J, yt === 0 && Ct(Ke)), as !== J ? (Zt = jt(), Zt !== J ? (ss = Qi(), ss !== J ? (as = [as, Zt, ss], Wt = as) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J)) : (Ne = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (as = jt(), as !== J ? (X.charCodeAt(Ne) === 125 ? (Zt = be, Ne++) : (Zt = J, yt === 0 && Ct(me)), Zt !== J ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6180
6235
  }
6181
6236
  function Ji() {
6182
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs, ys, Fs;
6237
+ var Oe;
6238
+ return Oe = Ki(), Oe === J && (Oe = Xi()), Oe;
6239
+ }
6240
+ function sr() {
6241
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss, gs, ys, Fs;
6183
6242
  if (Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J)
6184
6243
  if (tt = jt(), tt !== J)
6185
6244
  if (bt = As(), bt !== J)
6186
6245
  if (wt = jt(), wt !== J)
6187
6246
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J)
6188
6247
  if (es = jt(), es !== J)
6189
- if (X.substr(Ne, 6) === Ut ? (Vt = Ut, Ne += 6) : (Vt = J, yt === 0 && Ct(rs)), Vt === J && (X.substr(Ne, 13) === Yt ? (Vt = Yt, Ne += 13) : (Vt = J, yt === 0 && Ct(gt))), Vt !== J)
6248
+ if (X.substr(Ne, 6) === Vt ? (Ut = Vt, Ne += 6) : (Ut = J, yt === 0 && Ct(rs)), Ut === J && (X.substr(Ne, 13) === Yt ? (Ut = Yt, Ne += 13) : (Ut = J, yt === 0 && Ct(gt))), Ut !== J)
6190
6249
  if (fs = jt(), fs !== J)
6191
6250
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Ct(Ke)), Wt !== J)
6192
6251
  if (as = jt(), as !== J)
@@ -6197,7 +6256,7 @@ function peg$parse(X, W) {
6197
6256
  gs.push(ys), ys = mi();
6198
6257
  else
6199
6258
  gs = J;
6200
- gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Fs = be, Ne++) : (Fs = J, yt === 0 && Ct(me)), Fs !== J ? (Gt = Oe, je = St(bt, Vt, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6259
+ gs !== J ? (ys = jt(), ys !== J ? (X.charCodeAt(Ne) === 125 ? (Fs = be, Ne++) : (Fs = J, yt === 0 && Ct(me)), Fs !== J ? (Gt = Oe, je = St(bt, Ut, Zt, gs), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6201
6260
  } else
6202
6261
  Ne = Oe, Oe = J;
6203
6262
  else
@@ -6224,15 +6283,15 @@ function peg$parse(X, W) {
6224
6283
  Ne = Oe, Oe = J;
6225
6284
  return Oe;
6226
6285
  }
6227
- function sr() {
6228
- var Oe, je, tt, bt, wt, Pt, es, Vt, fs, Wt, as, Zt, ss, gs;
6286
+ function ir() {
6287
+ var Oe, je, tt, bt, wt, Pt, es, Ut, fs, Wt, as, Zt, ss, gs;
6229
6288
  if (Oe = Ne, X.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = J, yt === 0 && Ct(fe)), je !== J)
6230
6289
  if (tt = jt(), tt !== J)
6231
6290
  if (bt = As(), bt !== J)
6232
6291
  if (wt = jt(), wt !== J)
6233
6292
  if (X.charCodeAt(Ne) === 44 ? (Pt = Ge, Ne++) : (Pt = J, yt === 0 && Ct(Ke)), Pt !== J)
6234
6293
  if (es = jt(), es !== J)
6235
- if (X.substr(Ne, 6) === $t ? (Vt = $t, Ne += 6) : (Vt = J, yt === 0 && Ct(Ft)), Vt !== J)
6294
+ if (X.substr(Ne, 6) === $t ? (Ut = $t, Ne += 6) : (Ut = J, yt === 0 && Ct(Ft)), Ut !== J)
6236
6295
  if (fs = jt(), fs !== J)
6237
6296
  if (X.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = J, yt === 0 && Ct(Ke)), Wt !== J)
6238
6297
  if (as = jt(), as !== J) {
@@ -6264,17 +6323,17 @@ function peg$parse(X, W) {
6264
6323
  Ne = Oe, Oe = J;
6265
6324
  return Oe;
6266
6325
  }
6267
- function ir() {
6326
+ function rr() {
6268
6327
  var Oe, je, tt, bt;
6269
6328
  return Oe = Ne, je = Ne, X.charCodeAt(Ne) === 61 ? (tt = zt, Ne++) : (tt = J, yt === 0 && Ct(cs)), tt !== J ? (bt = _i(), bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe === J && (Oe = Ms()), Oe;
6270
6329
  }
6271
6330
  function gi() {
6272
- var Oe, je, tt, bt, wt, Pt, es, Vt;
6273
- return Oe = Ne, je = jt(), je !== J ? (tt = Ms(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6331
+ var Oe, je, tt, bt, wt, Pt, es, Ut;
6332
+ return Oe = Ne, je = jt(), je !== J ? (tt = Ms(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ds(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Ut = be, Ne++) : (Ut = J, yt === 0 && Ct(me)), Ut !== J ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6274
6333
  }
6275
6334
  function mi() {
6276
- var Oe, je, tt, bt, wt, Pt, es, Vt;
6277
- return Oe = Ne, je = jt(), je !== J ? (tt = ir(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ks(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Vt = be, Ne++) : (Vt = J, yt === 0 && Ct(me)), Vt !== J ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6335
+ var Oe, je, tt, bt, wt, Pt, es, Ut;
6336
+ return Oe = Ne, je = jt(), je !== J ? (tt = rr(), tt !== J ? (bt = jt(), bt !== J ? (X.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = J, yt === 0 && Ct(fe)), wt !== J ? (Gt = Ne, Pt = ks(), Pt ? Pt = void 0 : Pt = J, Pt !== J ? (es = Ls(), es !== J ? (X.charCodeAt(Ne) === 125 ? (Ut = be, Ne++) : (Ut = J, yt === 0 && Ct(me)), Ut !== J ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), Oe;
6278
6337
  }
6279
6338
  function ws() {
6280
6339
  var Oe;
@@ -6300,11 +6359,11 @@ function peg$parse(X, W) {
6300
6359
  }
6301
6360
  function yi() {
6302
6361
  var Oe, je, tt, bt, wt, Pt;
6303
- if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ve)), je !== J)
6304
- if (tt = rr(), tt !== J) {
6362
+ if (Oe = Ne, X.charCodeAt(Ne) === 39 ? (je = Fe, Ne++) : (je = J, yt === 0 && Ct(Ue)), je !== J)
6363
+ if (tt = or(), tt !== J) {
6305
6364
  for (bt = Ne, wt = [], X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe))); Pt !== J; )
6306
6365
  wt.push(Pt), X.substr(Ne, 2) === Ot ? (Pt = Ot, Ne += 2) : (Pt = J, yt === 0 && Ct(Ht)), Pt === J && (Be.test(X.charAt(Ne)) ? (Pt = X.charAt(Ne), Ne++) : (Pt = J, yt === 0 && Ct(Xe)));
6307
- wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Fe, Ne++) : (wt = J, yt === 0 && Ct(Ve)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6366
+ wt !== J ? bt = X.substring(bt, Ne) : bt = wt, bt !== J ? (X.charCodeAt(Ne) === 39 ? (wt = Fe, Ne++) : (wt = J, yt === 0 && Ct(Ue)), wt === J && (wt = null), wt !== J ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J);
6308
6367
  } else
6309
6368
  Ne = Oe, Oe = J;
6310
6369
  else
@@ -6315,26 +6374,26 @@ function peg$parse(X, W) {
6315
6374
  var Oe, je, tt, bt;
6316
6375
  return Oe = Ne, je = Ne, X.length > Ne ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Ae)), tt !== J ? (Gt = Ne, bt = ps(tt), bt ? bt = void 0 : bt = J, bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je === J && (X.charCodeAt(Ne) === 10 ? (je = Cs, Ne++) : (je = J, yt === 0 && Ct(Ds))), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe;
6317
6376
  }
6318
- function rr() {
6377
+ function or() {
6319
6378
  var Oe, je, tt, bt;
6320
6379
  return Oe = Ne, je = Ne, X.length > Ne ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Ae)), tt !== J ? (Gt = Ne, bt = Rs(tt), bt ? bt = void 0 : bt = J, bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J)) : (Ne = je, je = J), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, Oe;
6321
6380
  }
6322
6381
  function As() {
6323
6382
  var Oe, je;
6324
- return yt++, Oe = Ne, je = wi(), je === J && (je = Ms()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Oi)), Oe;
6383
+ return yt++, Oe = Ne, je = wi(), je === J && (je = Ms()), je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Di)), Oe;
6325
6384
  }
6326
6385
  function wi() {
6327
6386
  var Oe, je, tt, bt, wt;
6328
- if (yt++, Oe = Ne, X.charCodeAt(Ne) === 48 ? (je = Ri, Ne++) : (je = J, yt === 0 && Ct(qi)), je !== J && (Gt = Oe, je = Ii()), Oe = je, Oe === J) {
6329
- if (Oe = Ne, je = Ne, Li.test(X.charAt(Ne)) ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Pi)), tt !== J) {
6387
+ if (yt++, Oe = Ne, X.charCodeAt(Ne) === 48 ? (je = qi, Ne++) : (je = J, yt === 0 && Ct(Ii)), je !== J && (Gt = Oe, je = Li()), Oe = je, Oe === J) {
6388
+ if (Oe = Ne, je = Ne, Pi.test(X.charAt(Ne)) ? (tt = X.charAt(Ne), Ne++) : (tt = J, yt === 0 && Ct(Mi)), tt !== J) {
6330
6389
  for (bt = [], ri.test(X.charAt(Ne)) ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(oi)); wt !== J; )
6331
6390
  bt.push(wt), ri.test(X.charAt(Ne)) ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(oi));
6332
6391
  bt !== J ? (tt = [tt, bt], je = tt) : (Ne = je, je = J);
6333
6392
  } else
6334
6393
  Ne = je, je = J;
6335
- je !== J && (Gt = Oe, je = Mi(je)), Oe = je;
6394
+ je !== J && (Gt = Oe, je = Fi(je)), Oe = je;
6336
6395
  }
6337
- return yt--, Oe === J && (je = J, yt === 0 && Ct(Di)), Oe;
6396
+ return yt--, Oe === J && (je = J, yt === 0 && Ct(Ri)), Oe;
6338
6397
  }
6339
6398
  function Ms() {
6340
6399
  var Oe, je, tt, bt, wt;
@@ -6343,10 +6402,10 @@ function peg$parse(X, W) {
6343
6402
  je.push(tt), tt = Ne, bt = Ne, yt++, wt = ws(), wt === J && (wt = vi()), yt--, wt === J ? bt = void 0 : (Ne = bt, bt = J), bt !== J ? (X.length > Ne ? (wt = X.charAt(Ne), Ne++) : (wt = J, yt === 0 && Ct(Ae)), wt !== J ? (bt = [bt, wt], tt = bt) : (Ne = tt, tt = J)) : (Ne = tt, tt = J);
6344
6403
  else
6345
6404
  je = J;
6346
- return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(Fi)), Oe;
6405
+ return je !== J ? Oe = X.substring(Oe, Ne) : Oe = je, yt--, Oe === J && (je = J, yt === 0 && Ct(zi)), Oe;
6347
6406
  }
6348
6407
  var vs = ["root"];
6349
- function or() {
6408
+ function nr() {
6350
6409
  return vs.length > 1;
6351
6410
  }
6352
6411
  function xi() {
@@ -6359,7 +6418,7 @@ function peg$parse(X, W) {
6359
6418
  }
6360
6419
  if (Ts = re(), Ts !== J && Ne === X.length)
6361
6420
  return Ts;
6362
- throw Ts !== J && Ne < X.length && Ct(Ni()), Bi(qs, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6421
+ throw Ts !== J && Ne < X.length && Ct(Hi()), Vi(qs, ms < X.length ? X.charAt(ms) : null, ms < X.length ? Os(ms, ms + 1) : Os(ms, ms));
6363
6422
  }
6364
6423
  var pegParse = peg$parse, __spreadArrays$2 = function() {
6365
6424
  for (var X = 0, W = 0, J = arguments.length; W < J; W++) X += arguments[W].length;
@@ -9692,7 +9751,7 @@ class ImportDataManagerImpl {
9692
9751
  async import(W, J) {
9693
9752
  this.currentImporterId = W, this.currentImportParams = J, this.selectedItems = {}, this.pluginTexts = {};
9694
9753
  try {
9695
- const { ImportDataManagerModal: te } = await import("./component-QbgEdy0I.js"), { confirmed: re } = await this.interactionService.confirm(
9754
+ const { ImportDataManagerModal: te } = await import("./component-BCUKIjBl.js"), { confirmed: re } = await this.interactionService.confirm(
9696
9755
  void 0,
9697
9756
  { component: te },
9698
9757
  {
@@ -16727,6 +16786,11 @@ let ExitShellHandler = class {
16727
16786
  const W = X && X.ecapEvent !== void 0 ? X : void 0;
16728
16787
  try {
16729
16788
  if (!await this.api.exitGuardManager.canExit()) return;
16789
+ const te = this.api.pluginBusyManager.getTasks();
16790
+ if (te.length > 0) {
16791
+ const { confirmed: re } = await this.askForClose(te);
16792
+ if (!re) return;
16793
+ }
16730
16794
  await Promise.race([
16731
16795
  disposePlugins(),
16732
16796
  // S'intenta executar un dispose normal
@@ -16740,6 +16804,18 @@ let ExitShellHandler = class {
16740
16804
  timeout(X) {
16741
16805
  return new Promise((W) => setTimeout(W, X));
16742
16806
  }
16807
+ askForClose(X) {
16808
+ return this.api.interactionService.confirm(
16809
+ { busyTasks: X },
16810
+ { component: PluginBusyList },
16811
+ {
16812
+ title: translate$1("actions.askExit"),
16813
+ state: "error",
16814
+ confirmButtonText: "Sí",
16815
+ cancelButtonText: "No"
16816
+ }
16817
+ );
16818
+ }
16743
16819
  emitClose(X) {
16744
16820
  X ? raiseCustomCloseEvent(X) : raiseCloseEvent();
16745
16821
  }
@@ -18358,17 +18434,17 @@ function flip(X) {
18358
18434
  }
18359
18435
  if (Me)
18360
18436
  for (var Ze = me ? 3 : 1, Fe = function(Je) {
18361
- var Ue = ye.find(function(Ye) {
18437
+ var Ve = ye.find(function(Ye) {
18362
18438
  var rt = De.get(Ye);
18363
18439
  if (rt)
18364
18440
  return rt.slice(0, Je).every(function(ot) {
18365
18441
  return ot;
18366
18442
  });
18367
18443
  });
18368
- if (Ue)
18369
- return He = Ue, "break";
18370
- }, Ve = Ze; Ve > 0; Ve--) {
18371
- var Be = Fe(Ve);
18444
+ if (Ve)
18445
+ return He = Ve, "break";
18446
+ }, Ue = Ze; Ue > 0; Ue--) {
18447
+ var Be = Fe(Ue);
18372
18448
  if (Be === "break") break;
18373
18449
  }
18374
18450
  W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
@@ -18486,10 +18562,10 @@ function preventOverflow(X) {
18486
18562
  };
18487
18563
  if (Pe) {
18488
18564
  if (oe) {
18489
- var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Fe = we === start ? De[Ge] : Me[Ge], Ve = we === start ? -Me[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18565
+ var Le, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ke = Pe[ye], ft = Ke + ve[ze], Qe = Ke - ve[We], Ze = be ? -Me[Ge] / 2 : 0, Fe = we === start ? De[Ge] : Me[Ge], Ue = we === start ? -Me[Ge] : -De[Ge], Be = W.elements.arrow, Xe = be && Be ? getLayoutRect(Be) : {
18490
18566
  width: 0,
18491
18567
  height: 0
18492
- }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ue = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ue - Ie.mainAxis : Fe - rt - Ue - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ve + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Ut = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Ut) : Qe);
18568
+ }, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Je[ze], Ye = Je[We], rt = within(0, De[Ge], Xe[Ge]), ot = Ae ? De[Ge] / 2 - Ze - rt - Ve - Ie.mainAxis : Fe - rt - Ve - Ie.mainAxis, _t = Ae ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Le = Ce?.[ye]) != null ? Le : 0, Nt = Ke + ot - qt - It, Vt = Ke + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Qe, Vt) : Qe);
18493
18569
  Pe[ye] = rs, qe[ye] = rs - Ke;
18494
18570
  }
18495
18571
  if (de) {
@@ -22155,7 +22231,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22155
22231
  "dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
22156
22232
  "dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
22157
22233
  // 'dss-input-group--no-label': Boolean(!component._label),
22158
- }, Ve = {
22234
+ }, Ue = {
22159
22235
  "dss-calendar": !0,
22160
22236
  "dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
22161
22237
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
@@ -22256,7 +22332,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
22256
22332
  role="listbox"
22257
22333
  aria-label="Datepicker Range Calendar"
22258
22334
  id="datepicker-range-calendar"
22259
- class="${Rt(Ve)}"
22335
+ class="${Rt(Ue)}"
22260
22336
  .selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
22261
22337
  .rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
22262
22338
  .rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
@@ -38669,7 +38745,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38669
38745
  "dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
38670
38746
  "dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
38671
38747
  // 'dss-input-group--no-label': Boolean(!component._label),
38672
- }, Ve = {
38748
+ }, Ue = {
38673
38749
  "dss-calendar": !0,
38674
38750
  "dss-calendar--visible": X.showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
38675
38751
  "dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
@@ -38811,7 +38887,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
38811
38887
  role="listbox"
38812
38888
  aria-label="Datepicker Range Calendar"
38813
38889
  id="datepicker-range-calendar"
38814
- class="${Rt(Ve)}"
38890
+ class="${Rt(Ue)}"
38815
38891
  .selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
38816
38892
  .rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
38817
38893
  .rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
@@ -43220,15 +43296,15 @@ var __defProp$d = Object.defineProperty, __decorateClass$d = (X, W, J, te) => {
43220
43296
  (ne = X[oe]) && (re = ne(W, J, re) || re);
43221
43297
  return re && __defProp$d(W, J, re), re;
43222
43298
  };
43223
- const Us = class Us extends h$q {
43299
+ const Vs = class Vs extends h$q {
43224
43300
  render() {
43225
43301
  return ke$1`${template$b(this)}`;
43226
43302
  }
43227
43303
  };
43228
- Us.styles = i$U`
43304
+ Vs.styles = i$U`
43229
43305
  ${r$L(styles$a)}
43230
43306
  `;
43231
- let PrimariaErrorView = Us;
43307
+ let PrimariaErrorView = Vs;
43232
43308
  __decorateClass$d([
43233
43309
  n$A()
43234
43310
  ], PrimariaErrorView.prototype, "error");
@@ -43305,7 +43381,7 @@ var __defProp$c = Object.defineProperty, __decorateClass$c = (X, W, J, te) => {
43305
43381
  (ne = X[oe]) && (re = ne(W, J, re) || re);
43306
43382
  return re && __defProp$c(W, J, re), re;
43307
43383
  };
43308
- const Vs = class Vs extends PrimariaRegionHost(h$q) {
43384
+ const Us = class Us extends PrimariaRegionHost(h$q) {
43309
43385
  constructor() {
43310
43386
  super(...arguments), this.menuOpened = !1;
43311
43387
  }
@@ -43339,10 +43415,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$q) {
43339
43415
  J = new MutationObserver(te), J.observe(W, { childList: !0 });
43340
43416
  }
43341
43417
  };
43342
- Vs.styles = i$U`
43418
+ Us.styles = i$U`
43343
43419
  ${r$L(styles$9)}
43344
43420
  `;
43345
- let PrimariaShellHeader = Vs;
43421
+ let PrimariaShellHeader = Us;
43346
43422
  __decorateClass$c([
43347
43423
  s$K({ targetId: "header-region-container", name: shellApi.regionManager.regions.shell.header })
43348
43424
  ], PrimariaShellHeader.prototype, "headerRegion");
@@ -44430,20 +44506,20 @@ function requireQuill() {
44430
44506
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
44431
44507
  }, ne = /* @__PURE__ */ (function() {
44432
44508
  function Qe(Ze, Fe) {
44433
- var Ve = [], Be = !0, Xe = !1, Je = void 0;
44509
+ var Ue = [], Be = !0, Xe = !1, Je = void 0;
44434
44510
  try {
44435
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
44511
+ for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
44436
44512
  ;
44437
44513
  } catch (rt) {
44438
44514
  Xe = !0, Je = rt;
44439
44515
  } finally {
44440
44516
  try {
44441
- !Be && Ue.return && Ue.return();
44517
+ !Be && Ve.return && Ve.return();
44442
44518
  } finally {
44443
44519
  if (Xe) throw Je;
44444
44520
  }
44445
44521
  }
44446
- return Ve;
44522
+ return Ue;
44447
44523
  }
44448
44524
  return function(Ze, Fe) {
44449
44525
  if (Array.isArray(Ze))
@@ -44454,13 +44530,13 @@ function requireQuill() {
44454
44530
  };
44455
44531
  })(), de = /* @__PURE__ */ (function() {
44456
44532
  function Qe(Ze, Fe) {
44457
- for (var Ve = 0; Ve < Fe.length; Ve++) {
44458
- var Be = Fe[Ve];
44533
+ for (var Ue = 0; Ue < Fe.length; Ue++) {
44534
+ var Be = Fe[Ue];
44459
44535
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
44460
44536
  }
44461
44537
  }
44462
- return function(Ze, Fe, Ve) {
44463
- return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
44538
+ return function(Ze, Fe, Ue) {
44539
+ return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
44464
44540
  };
44465
44541
  })();
44466
44542
  re(51);
@@ -44493,20 +44569,20 @@ function requireQuill() {
44493
44569
  }
44494
44570
  }, {
44495
44571
  key: "register",
44496
- value: function(Fe, Ve) {
44572
+ value: function(Fe, Ue) {
44497
44573
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
44498
44574
  if (typeof Fe != "string") {
44499
44575
  var Je = Fe.attrName || Fe.blotName;
44500
- typeof Je == "string" ? this.register("formats/" + Je, Fe, Ve) : Object.keys(Fe).forEach(function(Ue) {
44501
- Be.register(Ue, Fe[Ue], Ve);
44576
+ typeof Je == "string" ? this.register("formats/" + Je, Fe, Ue) : Object.keys(Fe).forEach(function(Ve) {
44577
+ Be.register(Ve, Fe[Ve], Ue);
44502
44578
  });
44503
44579
  } else
44504
- this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with", Ve), this.imports[Fe] = Ve, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && Ve.blotName !== "abstract" ? _e.default.register(Ve) : Fe.startsWith("modules") && typeof Ve.register == "function" && Ve.register();
44580
+ this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with", Ue), this.imports[Fe] = Ue, (Fe.startsWith("blots/") || Fe.startsWith("formats/")) && Ue.blotName !== "abstract" ? _e.default.register(Ue) : Fe.startsWith("modules") && typeof Ue.register == "function" && Ue.register();
44505
44581
  }
44506
44582
  }]);
44507
44583
  function Qe(Ze) {
44508
- var Fe = this, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44509
- if (qe(this, Qe), this.options = We(Ze, Ve), this.container = this.options.container, this.container == null)
44584
+ var Fe = this, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
44585
+ if (qe(this, Qe), this.options = We(Ze, Ue), this.container = this.options.container, this.container == null)
44510
44586
  return Le.error("Invalid Quill container", Ze);
44511
44587
  this.options.debug && Qe.debug(this.options.debug);
44512
44588
  var Be = this.container.innerHTML.trim();
@@ -44515,10 +44591,10 @@ function requireQuill() {
44515
44591
  whitelist: this.options.formats
44516
44592
  }), this.editor = new pe.default(this.scroll), this.selection = new Ae.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Je) {
44517
44593
  Je === be.default.events.TEXT_CHANGE && Fe.root.classList.toggle("ql-blank", Fe.editor.isBlank());
44518
- }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ue) {
44594
+ }), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ve) {
44519
44595
  var Ye = Fe.selection.lastRange, rt = Ye && Ye.length === 0 ? Ye.index : void 0;
44520
44596
  Ge.call(Fe, function() {
44521
- return Fe.editor.update(null, Ue, rt);
44597
+ return Fe.editor.update(null, Ve, rt);
44522
44598
  }, Je);
44523
44599
  });
44524
44600
  var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
@@ -44527,12 +44603,12 @@ function requireQuill() {
44527
44603
  return de(Qe, [{
44528
44604
  key: "addContainer",
44529
44605
  value: function(Fe) {
44530
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44606
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
44531
44607
  if (typeof Fe == "string") {
44532
44608
  var Be = Fe;
44533
44609
  Fe = document.createElement("div"), Fe.classList.add(Be);
44534
44610
  }
44535
- return this.container.insertBefore(Fe, Ve), Fe;
44611
+ return this.container.insertBefore(Fe, Ue), Fe;
44536
44612
  }
44537
44613
  }, {
44538
44614
  key: "blur",
@@ -44541,11 +44617,11 @@ function requireQuill() {
44541
44617
  }
44542
44618
  }, {
44543
44619
  key: "deleteText",
44544
- value: function(Fe, Ve, Be) {
44545
- var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44546
- return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44547
- return Xe.editor.deleteText(Fe, Ve);
44548
- }, Be, Fe, -1 * Ve);
44620
+ value: function(Fe, Ue, Be) {
44621
+ var Xe = this, Je = Ke(Fe, Ue, Be), Ve = ne(Je, 4);
44622
+ return Fe = Ve[0], Ue = Ve[1], Be = Ve[3], Ge.call(this, function() {
44623
+ return Xe.editor.deleteText(Fe, Ue);
44624
+ }, Be, Fe, -1 * Ue);
44549
44625
  }
44550
44626
  }, {
44551
44627
  key: "disable",
@@ -44566,43 +44642,43 @@ function requireQuill() {
44566
44642
  }
44567
44643
  }, {
44568
44644
  key: "format",
44569
- value: function(Fe, Ve) {
44645
+ value: function(Fe, Ue) {
44570
44646
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
44571
44647
  return Ge.call(this, function() {
44572
- var Je = Be.getSelection(!0), Ue = new ue.default();
44648
+ var Je = Be.getSelection(!0), Ve = new ue.default();
44573
44649
  if (Je == null)
44574
- return Ue;
44650
+ return Ve;
44575
44651
  if (_e.default.query(Fe, _e.default.Scope.BLOCK))
44576
- Ue = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ve));
44652
+ Ve = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ue));
44577
44653
  else {
44578
44654
  if (Je.length === 0)
44579
- return Be.selection.format(Fe, Ve), Ue;
44580
- Ue = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ve));
44655
+ return Be.selection.format(Fe, Ue), Ve;
44656
+ Ve = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ue));
44581
44657
  }
44582
- return Be.setSelection(Je, be.default.sources.SILENT), Ue;
44658
+ return Be.setSelection(Je, be.default.sources.SILENT), Ve;
44583
44659
  }, Xe);
44584
44660
  }
44585
44661
  }, {
44586
44662
  key: "formatLine",
44587
- value: function(Fe, Ve, Be, Xe, Je) {
44588
- var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44589
- return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44590
- return Ue.editor.formatLine(Fe, Ve, Ye);
44663
+ value: function(Fe, Ue, Be, Xe, Je) {
44664
+ var Ve = this, Ye = void 0, rt = Ke(Fe, Ue, Be, Xe, Je), ot = ne(rt, 4);
44665
+ return Fe = ot[0], Ue = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44666
+ return Ve.editor.formatLine(Fe, Ue, Ye);
44591
44667
  }, Je, Fe, 0);
44592
44668
  }
44593
44669
  }, {
44594
44670
  key: "formatText",
44595
- value: function(Fe, Ve, Be, Xe, Je) {
44596
- var Ue = this, Ye = void 0, rt = Ke(Fe, Ve, Be, Xe, Je), ot = ne(rt, 4);
44597
- return Fe = ot[0], Ve = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44598
- return Ue.editor.formatText(Fe, Ve, Ye);
44671
+ value: function(Fe, Ue, Be, Xe, Je) {
44672
+ var Ve = this, Ye = void 0, rt = Ke(Fe, Ue, Be, Xe, Je), ot = ne(rt, 4);
44673
+ return Fe = ot[0], Ue = ot[1], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44674
+ return Ve.editor.formatText(Fe, Ue, Ye);
44599
44675
  }, Je, Fe, 0);
44600
44676
  }
44601
44677
  }, {
44602
44678
  key: "getBounds",
44603
44679
  value: function(Fe) {
44604
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44605
- typeof Fe == "number" ? Be = this.selection.getBounds(Fe, Ve) : Be = this.selection.getBounds(Fe.index, Fe.length);
44680
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = void 0;
44681
+ typeof Fe == "number" ? Be = this.selection.getBounds(Fe, Ue) : Be = this.selection.getBounds(Fe.index, Fe.length);
44606
44682
  var Xe = this.container.getBoundingClientRect();
44607
44683
  return {
44608
44684
  bottom: Be.bottom - Xe.top,
@@ -44616,14 +44692,14 @@ function requireQuill() {
44616
44692
  }, {
44617
44693
  key: "getContents",
44618
44694
  value: function() {
44619
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44620
- return Fe = Xe[0], Ve = Xe[1], this.editor.getContents(Fe, Ve);
44695
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ue), Xe = ne(Be, 2);
44696
+ return Fe = Xe[0], Ue = Xe[1], this.editor.getContents(Fe, Ue);
44621
44697
  }
44622
44698
  }, {
44623
44699
  key: "getFormat",
44624
44700
  value: function() {
44625
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44626
- return typeof Fe == "number" ? this.editor.getFormat(Fe, Ve) : this.editor.getFormat(Fe.index, Fe.length);
44701
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
44702
+ return typeof Fe == "number" ? this.editor.getFormat(Fe, Ue) : this.editor.getFormat(Fe.index, Fe.length);
44627
44703
  }
44628
44704
  }, {
44629
44705
  key: "getIndex",
@@ -44648,8 +44724,8 @@ function requireQuill() {
44648
44724
  }, {
44649
44725
  key: "getLines",
44650
44726
  value: function() {
44651
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44652
- return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe, Ve);
44727
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
44728
+ return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe, Ue);
44653
44729
  }
44654
44730
  }, {
44655
44731
  key: "getModule",
@@ -44665,8 +44741,8 @@ function requireQuill() {
44665
44741
  }, {
44666
44742
  key: "getText",
44667
44743
  value: function() {
44668
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ve), Xe = ne(Be, 2);
44669
- return Fe = Xe[0], Ve = Xe[1], this.editor.getText(Fe, Ve);
44744
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Fe, Be = Ke(Fe, Ue), Xe = ne(Be, 2);
44745
+ return Fe = Xe[0], Ue = Xe[1], this.editor.getText(Fe, Ue);
44670
44746
  }
44671
44747
  }, {
44672
44748
  key: "hasFocus",
@@ -44675,19 +44751,19 @@ function requireQuill() {
44675
44751
  }
44676
44752
  }, {
44677
44753
  key: "insertEmbed",
44678
- value: function(Fe, Ve, Be) {
44754
+ value: function(Fe, Ue, Be) {
44679
44755
  var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
44680
44756
  return Ge.call(this, function() {
44681
- return Xe.editor.insertEmbed(Fe, Ve, Be);
44757
+ return Xe.editor.insertEmbed(Fe, Ue, Be);
44682
44758
  }, Je, Fe);
44683
44759
  }
44684
44760
  }, {
44685
44761
  key: "insertText",
44686
- value: function(Fe, Ve, Be, Xe, Je) {
44687
- var Ue = this, Ye = void 0, rt = Ke(Fe, 0, Be, Xe, Je), ot = ne(rt, 4);
44762
+ value: function(Fe, Ue, Be, Xe, Je) {
44763
+ var Ve = this, Ye = void 0, rt = Ke(Fe, 0, Be, Xe, Je), ot = ne(rt, 4);
44688
44764
  return Fe = ot[0], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
44689
- return Ue.editor.insertText(Fe, Ve, Ye);
44690
- }, Je, Fe, Ve.length);
44765
+ return Ve.editor.insertText(Fe, Ue, Ye);
44766
+ }, Je, Fe, Ue.length);
44691
44767
  }
44692
44768
  }, {
44693
44769
  key: "isEnabled",
@@ -44711,15 +44787,15 @@ function requireQuill() {
44711
44787
  }
44712
44788
  }, {
44713
44789
  key: "pasteHTML",
44714
- value: function(Fe, Ve, Be) {
44715
- this.clipboard.dangerouslyPasteHTML(Fe, Ve, Be);
44790
+ value: function(Fe, Ue, Be) {
44791
+ this.clipboard.dangerouslyPasteHTML(Fe, Ue, Be);
44716
44792
  }
44717
44793
  }, {
44718
44794
  key: "removeFormat",
44719
- value: function(Fe, Ve, Be) {
44720
- var Xe = this, Je = Ke(Fe, Ve, Be), Ue = ne(Je, 4);
44721
- return Fe = Ue[0], Ve = Ue[1], Be = Ue[3], Ge.call(this, function() {
44722
- return Xe.editor.removeFormat(Fe, Ve);
44795
+ value: function(Fe, Ue, Be) {
44796
+ var Xe = this, Je = Ke(Fe, Ue, Be), Ve = ne(Je, 4);
44797
+ return Fe = Ve[0], Ue = Ve[1], Be = Ve[3], Ge.call(this, function() {
44798
+ return Xe.editor.removeFormat(Fe, Ue);
44723
44799
  }, Be, Fe);
44724
44800
  }
44725
44801
  }, {
@@ -44730,44 +44806,44 @@ function requireQuill() {
44730
44806
  }, {
44731
44807
  key: "setContents",
44732
44808
  value: function(Fe) {
44733
- var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44809
+ var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44734
44810
  return Ge.call(this, function() {
44735
44811
  Fe = new ue.default(Fe);
44736
- var Xe = Ve.getLength(), Je = Ve.editor.deleteText(0, Xe), Ue = Ve.editor.applyDelta(Fe), Ye = Ue.ops[Ue.ops.length - 1];
44812
+ var Xe = Ue.getLength(), Je = Ue.editor.deleteText(0, Xe), Ve = Ue.editor.applyDelta(Fe), Ye = Ve.ops[Ve.ops.length - 1];
44737
44813
  Ye != null && typeof Ye.insert == "string" && Ye.insert[Ye.insert.length - 1] === `
44738
- ` && (Ve.editor.deleteText(Ve.getLength() - 1, 1), Ue.delete(1));
44739
- var rt = Je.compose(Ue);
44814
+ ` && (Ue.editor.deleteText(Ue.getLength() - 1, 1), Ve.delete(1));
44815
+ var rt = Je.compose(Ve);
44740
44816
  return rt;
44741
44817
  }, Be);
44742
44818
  }
44743
44819
  }, {
44744
44820
  key: "setSelection",
44745
- value: function(Fe, Ve, Be) {
44821
+ value: function(Fe, Ue, Be) {
44746
44822
  if (Fe == null)
44747
- this.selection.setRange(null, Ve || Qe.sources.API);
44823
+ this.selection.setRange(null, Ue || Qe.sources.API);
44748
44824
  else {
44749
- var Xe = Ke(Fe, Ve, Be), Je = ne(Xe, 4);
44750
- Fe = Je[0], Ve = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Fe, Ve), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44825
+ var Xe = Ke(Fe, Ue, Be), Je = ne(Xe, 4);
44826
+ Fe = Je[0], Ue = Je[1], Be = Je[3], this.selection.setRange(new we.Range(Fe, Ue), Be), Be !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
44751
44827
  }
44752
44828
  }
44753
44829
  }, {
44754
44830
  key: "setText",
44755
44831
  value: function(Fe) {
44756
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Fe);
44757
- return this.setContents(Be, Ve);
44832
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API, Be = new ue.default().insert(Fe);
44833
+ return this.setContents(Be, Ue);
44758
44834
  }
44759
44835
  }, {
44760
44836
  key: "update",
44761
44837
  value: function() {
44762
- var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ve = this.scroll.update(Fe);
44763
- return this.selection.update(Fe), Ve;
44838
+ var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER, Ue = this.scroll.update(Fe);
44839
+ return this.selection.update(Fe), Ue;
44764
44840
  }
44765
44841
  }, {
44766
44842
  key: "updateContents",
44767
44843
  value: function(Fe) {
44768
- var Ve = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44844
+ var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
44769
44845
  return Ge.call(this, function() {
44770
- return Fe = new ue.default(Fe), Ve.editor.applyDelta(Fe, Be);
44846
+ return Fe = new ue.default(Fe), Ue.editor.applyDelta(Fe, Be);
44771
44847
  }, Be, !0);
44772
44848
  }
44773
44849
  }]), Qe;
@@ -44805,9 +44881,9 @@ function requireQuill() {
44805
44881
  Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
44806
44882
  });
44807
44883
  });
44808
- var Ve = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = Ve.reduce(function(Xe, Je) {
44809
- var Ue = ze.import("modules/" + Je);
44810
- return Ue == null ? Le.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ue.DEFAULTS || {}, Xe;
44884
+ var Ue = Object.keys(Fe.modules).concat(Object.keys(Ze.modules)), Be = Ue.reduce(function(Xe, Je) {
44885
+ var Ve = ze.import("modules/" + Je);
44886
+ return Ve == null ? Le.error("Cannot load " + Je + " module. Are you sure you registered it?") : Xe[Je] = Ve.DEFAULTS || {}, Xe;
44811
44887
  }, {});
44812
44888
  return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
44813
44889
  container: Ze.modules.toolbar
@@ -44817,34 +44893,34 @@ function requireQuill() {
44817
44893
  return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
44818
44894
  }, {}), Ze;
44819
44895
  }
44820
- function Ge(Qe, Ze, Fe, Ve) {
44896
+ function Ge(Qe, Ze, Fe, Ue) {
44821
44897
  if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
44822
44898
  return new ue.default();
44823
44899
  var Be = Fe == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
44824
- if (Be != null && (Fe === !0 && (Fe = Be.index), Ve == null ? Be = ft(Be, Je, Ze) : Ve !== 0 && (Be = ft(Be, Fe, Ve, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44825
- var Ue, Ye = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44826
- if ((Ue = this.emitter).emit.apply(Ue, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44900
+ if (Be != null && (Fe === !0 && (Fe = Be.index), Ue == null ? Be = ft(Be, Je, Ze) : Ue !== 0 && (Be = ft(Be, Fe, Ue, Ze)), this.setSelection(Be, be.default.sources.SILENT)), Je.length() > 0) {
44901
+ var Ve, Ye = [be.default.events.TEXT_CHANGE, Je, Xe, Ze];
44902
+ if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ze !== be.default.sources.SILENT) {
44827
44903
  var rt;
44828
44904
  (rt = this.emitter).emit.apply(rt, Ye);
44829
44905
  }
44830
44906
  }
44831
44907
  return Je;
44832
44908
  }
44833
- function Ke(Qe, Ze, Fe, Ve, Be) {
44909
+ function Ke(Qe, Ze, Fe, Ue, Be) {
44834
44910
  var Xe = {};
44835
- return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ve, Ve = Fe, Fe = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ve, Ve = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : oe(Fe)) === "object" ? (Xe = Fe, Be = Ve) : typeof Fe == "string" && (Ve != null ? Xe[Fe] = Ve : Be = Fe), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44911
+ return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (Be = Ue, Ue = Fe, Fe = Ze, Ze = Qe.length, Qe = Qe.index) : (Ze = Qe.length, Qe = Qe.index) : typeof Ze != "number" && (Be = Ue, Ue = Fe, Fe = Ze, Ze = 0), (typeof Fe > "u" ? "undefined" : oe(Fe)) === "object" ? (Xe = Fe, Be = Ue) : typeof Fe == "string" && (Ue != null ? Xe[Fe] = Ue : Be = Fe), Be = Be || be.default.sources.API, [Qe, Ze, Xe, Be];
44836
44912
  }
44837
- function ft(Qe, Ze, Fe, Ve) {
44913
+ function ft(Qe, Ze, Fe, Ue) {
44838
44914
  if (Qe == null) return null;
44839
44915
  var Be = void 0, Xe = void 0;
44840
44916
  if (Ze instanceof ue.default) {
44841
44917
  var Je = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44842
- return Ze.transformPosition(ot, Ve !== be.default.sources.USER);
44843
- }), Ue = ne(Je, 2);
44844
- Be = Ue[0], Xe = Ue[1];
44918
+ return Ze.transformPosition(ot, Ue !== be.default.sources.USER);
44919
+ }), Ve = ne(Je, 2);
44920
+ Be = Ve[0], Xe = Ve[1];
44845
44921
  } else {
44846
44922
  var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
44847
- return ot < Ze || ot === Ze && Ve === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
44923
+ return ot < Ze || ot === Ze && Ue === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
44848
44924
  }), rt = ne(Ye, 2);
44849
44925
  Be = rt[0], Xe = rt[1];
44850
44926
  }
@@ -45375,20 +45451,20 @@ function requireQuill() {
45375
45451
  return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
45376
45452
  }, ne = /* @__PURE__ */ (function() {
45377
45453
  function Qe(Ze, Fe) {
45378
- var Ve = [], Be = !0, Xe = !1, Je = void 0;
45454
+ var Ue = [], Be = !0, Xe = !1, Je = void 0;
45379
45455
  try {
45380
- for (var Ue = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ue.next()).done) && (Ve.push(Ye.value), !(Fe && Ve.length === Fe)); Be = !0)
45456
+ for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
45381
45457
  ;
45382
45458
  } catch (rt) {
45383
45459
  Xe = !0, Je = rt;
45384
45460
  } finally {
45385
45461
  try {
45386
- !Be && Ue.return && Ue.return();
45462
+ !Be && Ve.return && Ve.return();
45387
45463
  } finally {
45388
45464
  if (Xe) throw Je;
45389
45465
  }
45390
45466
  }
45391
- return Ve;
45467
+ return Ue;
45392
45468
  }
45393
45469
  return function(Ze, Fe) {
45394
45470
  if (Array.isArray(Ze))
@@ -45399,13 +45475,13 @@ function requireQuill() {
45399
45475
  };
45400
45476
  })(), de = /* @__PURE__ */ (function() {
45401
45477
  function Qe(Ze, Fe) {
45402
- for (var Ve = 0; Ve < Fe.length; Ve++) {
45403
- var Be = Fe[Ve];
45478
+ for (var Ue = 0; Ue < Fe.length; Ue++) {
45479
+ var Be = Fe[Ue];
45404
45480
  Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
45405
45481
  }
45406
45482
  }
45407
- return function(Ze, Fe, Ve) {
45408
- return Fe && Qe(Ze.prototype, Fe), Ve && Qe(Ze, Ve), Ze;
45483
+ return function(Ze, Fe, Ue) {
45484
+ return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
45409
45485
  };
45410
45486
  })(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Ae = qe(we), ye = re(16), Se = qe(ye), Pe = re(21), De = qe(Pe), Me = re(11), He = qe(Me), Ie = re(3), Ce = qe(Ie);
45411
45487
  function qe(Qe) {
@@ -45425,50 +45501,50 @@ function requireQuill() {
45425
45501
  return de(Qe, [{
45426
45502
  key: "applyDelta",
45427
45503
  value: function(Fe) {
45428
- var Ve = this, Be = !1;
45504
+ var Ue = this, Be = !1;
45429
45505
  this.scroll.update();
45430
45506
  var Xe = this.scroll.length();
45431
- return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je, Ue) {
45432
- var Ye = Ue.retain || Ue.delete || Ue.insert.length || 1, rt = Ue.attributes || {};
45433
- if (Ue.insert != null) {
45434
- if (typeof Ue.insert == "string") {
45435
- var ot = Ue.insert;
45507
+ return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je, Ve) {
45508
+ var Ye = Ve.retain || Ve.delete || Ve.insert.length || 1, rt = Ve.attributes || {};
45509
+ if (Ve.insert != null) {
45510
+ if (typeof Ve.insert == "string") {
45511
+ var ot = Ve.insert;
45436
45512
  ot.endsWith(`
45437
45513
  `) && Be && (Be = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
45438
- `) && (Be = !0), Ve.scroll.insertAt(Je, ot);
45439
- var _t = Ve.scroll.line(Je), kt = ne(_t, 2), It = kt[0], qt = kt[1], Nt = (0, Ce.default)({}, (0, we.bubbleFormats)(It));
45514
+ `) && (Be = !0), Ue.scroll.insertAt(Je, ot);
45515
+ var _t = Ue.scroll.line(Je), kt = ne(_t, 2), It = kt[0], qt = kt[1], Nt = (0, Ce.default)({}, (0, we.bubbleFormats)(It));
45440
45516
  if (It instanceof Ae.default) {
45441
- var Ut = It.descendant(be.default.Leaf, qt), rs = ne(Ut, 1), Yt = rs[0];
45517
+ var Vt = It.descendant(be.default.Leaf, qt), rs = ne(Vt, 1), Yt = rs[0];
45442
45518
  Nt = (0, Ce.default)(Nt, (0, we.bubbleFormats)(Yt));
45443
45519
  }
45444
45520
  rt = pe.default.attributes.diff(Nt, rt) || {};
45445
- } else if (oe(Ue.insert) === "object") {
45446
- var gt = Object.keys(Ue.insert)[0];
45521
+ } else if (oe(Ve.insert) === "object") {
45522
+ var gt = Object.keys(Ve.insert)[0];
45447
45523
  if (gt == null) return Je;
45448
- Ve.scroll.insertAt(Je, gt, Ue.insert[gt]);
45524
+ Ue.scroll.insertAt(Je, gt, Ve.insert[gt]);
45449
45525
  }
45450
45526
  Xe += Ye;
45451
45527
  }
45452
45528
  return Object.keys(rt).forEach(function(mt) {
45453
- Ve.scroll.formatAt(Je, Ye, mt, rt[mt]);
45529
+ Ue.scroll.formatAt(Je, Ye, mt, rt[mt]);
45454
45530
  }), Je + Ye;
45455
- }, 0), Fe.reduce(function(Je, Ue) {
45456
- return typeof Ue.delete == "number" ? (Ve.scroll.deleteAt(Je, Ue.delete), Je) : Je + (Ue.retain || Ue.insert.length || 1);
45531
+ }, 0), Fe.reduce(function(Je, Ve) {
45532
+ return typeof Ve.delete == "number" ? (Ue.scroll.deleteAt(Je, Ve.delete), Je) : Je + (Ve.retain || Ve.insert.length || 1);
45457
45533
  }, 0), this.scroll.batchEnd(), this.update(Fe);
45458
45534
  }
45459
45535
  }, {
45460
45536
  key: "deleteText",
45461
- value: function(Fe, Ve) {
45462
- return this.scroll.deleteAt(Fe, Ve), this.update(new ue.default().retain(Fe).delete(Ve));
45537
+ value: function(Fe, Ue) {
45538
+ return this.scroll.deleteAt(Fe, Ue), this.update(new ue.default().retain(Fe).delete(Ue));
45463
45539
  }
45464
45540
  }, {
45465
45541
  key: "formatLine",
45466
- value: function(Fe, Ve) {
45542
+ value: function(Fe, Ue) {
45467
45543
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45468
45544
  return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
45469
45545
  if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[Je])) {
45470
- var Ue = Be.scroll.lines(Fe, Math.max(Ve, 1)), Ye = Ve;
45471
- Ue.forEach(function(rt) {
45546
+ var Ve = Be.scroll.lines(Fe, Math.max(Ue, 1)), Ye = Ue;
45547
+ Ve.forEach(function(rt) {
45472
45548
  var ot = rt.length();
45473
45549
  if (!(rt instanceof ge.default))
45474
45550
  rt.format(Je, Xe[Je]);
@@ -45479,40 +45555,40 @@ function requireQuill() {
45479
45555
  Ye -= ot;
45480
45556
  });
45481
45557
  }
45482
- }), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45558
+ }), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
45483
45559
  }
45484
45560
  }, {
45485
45561
  key: "formatText",
45486
- value: function(Fe, Ve) {
45562
+ value: function(Fe, Ue) {
45487
45563
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45488
45564
  return Object.keys(Xe).forEach(function(Je) {
45489
- Be.scroll.formatAt(Fe, Ve, Je, Xe[Je]);
45490
- }), this.update(new ue.default().retain(Fe).retain(Ve, (0, De.default)(Xe)));
45565
+ Be.scroll.formatAt(Fe, Ue, Je, Xe[Je]);
45566
+ }), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
45491
45567
  }
45492
45568
  }, {
45493
45569
  key: "getContents",
45494
- value: function(Fe, Ve) {
45495
- return this.delta.slice(Fe, Fe + Ve);
45570
+ value: function(Fe, Ue) {
45571
+ return this.delta.slice(Fe, Fe + Ue);
45496
45572
  }
45497
45573
  }, {
45498
45574
  key: "getDelta",
45499
45575
  value: function() {
45500
- return this.scroll.lines().reduce(function(Fe, Ve) {
45501
- return Fe.concat(Ve.delta());
45576
+ return this.scroll.lines().reduce(function(Fe, Ue) {
45577
+ return Fe.concat(Ue.delta());
45502
45578
  }, new ue.default());
45503
45579
  }
45504
45580
  }, {
45505
45581
  key: "getFormat",
45506
45582
  value: function(Fe) {
45507
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45508
- Ve === 0 ? this.scroll.path(Fe).forEach(function(Ue) {
45509
- var Ye = ne(Ue, 1), rt = Ye[0];
45583
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Be = [], Xe = [];
45584
+ Ue === 0 ? this.scroll.path(Fe).forEach(function(Ve) {
45585
+ var Ye = ne(Ve, 1), rt = Ye[0];
45510
45586
  rt instanceof Ae.default ? Be.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
45511
- }) : (Be = this.scroll.lines(Fe, Ve), Xe = this.scroll.descendants(be.default.Leaf, Fe, Ve));
45512
- var Je = [Be, Xe].map(function(Ue) {
45513
- if (Ue.length === 0) return {};
45514
- for (var Ye = (0, we.bubbleFormats)(Ue.shift()); Object.keys(Ye).length > 0; ) {
45515
- var rt = Ue.shift();
45587
+ }) : (Be = this.scroll.lines(Fe, Ue), Xe = this.scroll.descendants(be.default.Leaf, Fe, Ue));
45588
+ var Je = [Be, Xe].map(function(Ve) {
45589
+ if (Ve.length === 0) return {};
45590
+ for (var Ye = (0, we.bubbleFormats)(Ve.shift()); Object.keys(Ye).length > 0; ) {
45591
+ var rt = Ve.shift();
45516
45592
  if (rt == null) return Ye;
45517
45593
  Ye = Ke((0, we.bubbleFormats)(rt), Ye);
45518
45594
  }
@@ -45522,8 +45598,8 @@ function requireQuill() {
45522
45598
  }
45523
45599
  }, {
45524
45600
  key: "getText",
45525
- value: function(Fe, Ve) {
45526
- return this.getContents(Fe, Ve).filter(function(Be) {
45601
+ value: function(Fe, Ue) {
45602
+ return this.getContents(Fe, Ue).filter(function(Be) {
45527
45603
  return typeof Be.insert == "string";
45528
45604
  }).map(function(Be) {
45529
45605
  return Be.insert;
@@ -45531,18 +45607,18 @@ function requireQuill() {
45531
45607
  }
45532
45608
  }, {
45533
45609
  key: "insertEmbed",
45534
- value: function(Fe, Ve, Be) {
45535
- return this.scroll.insertAt(Fe, Ve, Be), this.update(new ue.default().retain(Fe).insert(Le({}, Ve, Be)));
45610
+ value: function(Fe, Ue, Be) {
45611
+ return this.scroll.insertAt(Fe, Ue, Be), this.update(new ue.default().retain(Fe).insert(Le({}, Ue, Be)));
45536
45612
  }
45537
45613
  }, {
45538
45614
  key: "insertText",
45539
- value: function(Fe, Ve) {
45615
+ value: function(Fe, Ue) {
45540
45616
  var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
45541
- return Ve = Ve.replace(/\r\n/g, `
45617
+ return Ue = Ue.replace(/\r\n/g, `
45542
45618
  `).replace(/\r/g, `
45543
- `), this.scroll.insertAt(Fe, Ve), Object.keys(Xe).forEach(function(Je) {
45544
- Be.scroll.formatAt(Fe, Ve.length, Je, Xe[Je]);
45545
- }), this.update(new ue.default().retain(Fe).insert(Ve, (0, De.default)(Xe)));
45619
+ `), this.scroll.insertAt(Fe, Ue), Object.keys(Xe).forEach(function(Je) {
45620
+ Be.scroll.formatAt(Fe, Ue.length, Je, Xe[Je]);
45621
+ }), this.update(new ue.default().retain(Fe).insert(Ue, (0, De.default)(Xe)));
45546
45622
  }
45547
45623
  }, {
45548
45624
  key: "isBlank",
@@ -45554,21 +45630,21 @@ function requireQuill() {
45554
45630
  }
45555
45631
  }, {
45556
45632
  key: "removeFormat",
45557
- value: function(Fe, Ve) {
45558
- var Be = this.getText(Fe, Ve), Xe = this.scroll.line(Fe + Ve), Je = ne(Xe, 2), Ue = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45559
- Ue != null && (Ue instanceof ge.default ? rt = Ue.newlineIndex(Ye) - Ye + 1 : rt = Ue.length() - Ye, ot = Ue.delta().slice(Ye, Ye + rt - 1).insert(`
45633
+ value: function(Fe, Ue) {
45634
+ var Be = this.getText(Fe, Ue), Xe = this.scroll.line(Fe + Ue), Je = ne(Xe, 2), Ve = Je[0], Ye = Je[1], rt = 0, ot = new ue.default();
45635
+ Ve != null && (Ve instanceof ge.default ? rt = Ve.newlineIndex(Ye) - Ye + 1 : rt = Ve.length() - Ye, ot = Ve.delta().slice(Ye, Ye + rt - 1).insert(`
45560
45636
  `));
45561
- var _t = this.getContents(Fe, Ve + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Fe).concat(kt);
45637
+ var _t = this.getContents(Fe, Ue + rt), kt = _t.diff(new ue.default().insert(Be).concat(ot)), It = new ue.default().retain(Fe).concat(kt);
45562
45638
  return this.applyDelta(It);
45563
45639
  }
45564
45640
  }, {
45565
45641
  key: "update",
45566
45642
  value: function(Fe) {
45567
- var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45568
- if (Ve.length === 1 && Ve[0].type === "characterData" && Ve[0].target.data.match(We) && be.default.find(Ve[0].target)) {
45569
- var Je = be.default.find(Ve[0].target), Ue = (0, we.bubbleFormats)(Je), Ye = Je.offset(this.scroll), rt = Ve[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ye).concat(ot.diff(_t, Be));
45643
+ var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Be = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Xe = this.delta;
45644
+ if (Ue.length === 1 && Ue[0].type === "characterData" && Ue[0].target.data.match(We) && be.default.find(Ue[0].target)) {
45645
+ var Je = be.default.find(Ue[0].target), Ve = (0, we.bubbleFormats)(Je), Ye = Je.offset(this.scroll), rt = Ue[0].oldValue.replace(_e.default.CONTENTS, ""), ot = new ue.default().insert(rt), _t = new ue.default().insert(Je.value()), kt = new ue.default().retain(Ye).concat(ot.diff(_t, Be));
45570
45646
  Fe = kt.reduce(function(It, qt) {
45571
- return qt.insert ? It.insert(qt.insert, Ue) : It.push(qt);
45647
+ return qt.insert ? It.insert(qt.insert, Ve) : It.push(qt);
45572
45648
  }, new ue.default()), this.delta = Xe.compose(Fe);
45573
45649
  } else
45574
45650
  this.delta = this.getDelta(), (!Fe || !(0, He.default)(Xe.compose(Fe), this.delta)) && (Fe = Xe.diff(this.delta, Be));
@@ -45577,15 +45653,15 @@ function requireQuill() {
45577
45653
  }]), Qe;
45578
45654
  })();
45579
45655
  function Ke(Qe, Ze) {
45580
- return Object.keys(Ze).reduce(function(Fe, Ve) {
45581
- return Qe[Ve] == null || (Ze[Ve] === Qe[Ve] ? Fe[Ve] = Ze[Ve] : Array.isArray(Ze[Ve]) ? Ze[Ve].indexOf(Qe[Ve]) < 0 && (Fe[Ve] = Ze[Ve].concat([Qe[Ve]])) : Fe[Ve] = [Ze[Ve], Qe[Ve]]), Fe;
45656
+ return Object.keys(Ze).reduce(function(Fe, Ue) {
45657
+ return Qe[Ue] == null || (Ze[Ue] === Qe[Ue] ? Fe[Ue] = Ze[Ue] : Array.isArray(Ze[Ue]) ? Ze[Ue].indexOf(Qe[Ue]) < 0 && (Fe[Ue] = Ze[Ue].concat([Qe[Ue]])) : Fe[Ue] = [Ze[Ue], Qe[Ue]]), Fe;
45582
45658
  }, {});
45583
45659
  }
45584
45660
  function ft(Qe) {
45585
45661
  return Qe.reduce(function(Ze, Fe) {
45586
45662
  if (Fe.insert === 1) {
45587
- var Ve = (0, De.default)(Fe.attributes);
45588
- return delete Ve.image, Ze.insert({ image: Fe.attributes.image }, Ve);
45663
+ var Ue = (0, De.default)(Fe.attributes);
45664
+ return delete Ue.image, Ze.insert({ image: Fe.attributes.image }, Ue);
45589
45665
  }
45590
45666
  if (Fe.attributes != null && (Fe.attributes.list === !0 || Fe.attributes.bullet === !0) && (Fe = (0, De.default)(Fe), Fe.attributes.list ? Fe.attributes.list = "ordered" : (Fe.attributes.list = "bullet", delete Fe.attributes.bullet)), typeof Fe.insert == "string") {
45591
45667
  var Be = Fe.insert.replace(/\r\n/g, `
@@ -45745,17 +45821,17 @@ function requireQuill() {
45745
45821
  var Fe = document.createRange();
45746
45822
  if (qe > 0) {
45747
45823
  Fe.setStart(ze, ft);
45748
- var Ve = this.scroll.leaf(Ce + qe), Be = oe(Ve, 2);
45824
+ var Ue = this.scroll.leaf(Ce + qe), Be = oe(Ue, 2);
45749
45825
  if (Ke = Be[0], ft = Be[1], Ke == null) return null;
45750
45826
  var Xe = Ke.position(ft, !0), Je = oe(Xe, 2);
45751
45827
  return ze = Je[0], ft = Je[1], Fe.setEnd(ze, ft), Fe.getBoundingClientRect();
45752
45828
  } else {
45753
- var Ue = "left", Ye = void 0;
45754
- return ze instanceof Text ? (ft < ze.data.length ? (Fe.setStart(ze, ft), Fe.setEnd(ze, ft + 1)) : (Fe.setStart(ze, ft - 1), Fe.setEnd(ze, ft), Ue = "right"), Ye = Fe.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ue = "right")), {
45829
+ var Ve = "left", Ye = void 0;
45830
+ return ze instanceof Text ? (ft < ze.data.length ? (Fe.setStart(ze, ft), Fe.setEnd(ze, ft + 1)) : (Fe.setStart(ze, ft - 1), Fe.setEnd(ze, ft), Ve = "right"), Ye = Fe.getBoundingClientRect()) : (Ye = Ke.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
45755
45831
  bottom: Ye.top + Ye.height,
45756
45832
  height: Ye.height,
45757
- left: Ye[Ue],
45758
- right: Ye[Ue],
45833
+ left: Ye[Ve],
45834
+ right: Ye[Ve],
45759
45835
  top: Ye.top,
45760
45836
  width: 0
45761
45837
  };
@@ -45788,8 +45864,8 @@ function requireQuill() {
45788
45864
  var qe = this, Le = [[Ce.start.node, Ce.start.offset]];
45789
45865
  Ce.native.collapsed || Le.push([Ce.end.node, Ce.end.offset]);
45790
45866
  var ze = Le.map(function(Ke) {
45791
- var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0), Ve = Fe.offset(qe.scroll);
45792
- return Ze === 0 ? Ve : Fe instanceof ce.default.Container ? Ve + Fe.length() : Ve + Fe.index(Qe, Ze);
45867
+ var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0), Ue = Fe.offset(qe.scroll);
45868
+ return Ze === 0 ? Ue : Fe instanceof ce.default.Container ? Ue + Fe.length() : Ue + Fe.index(Qe, Ze);
45793
45869
  }), We = Math.min(Math.max.apply(Math, Ae(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Ae(ze)));
45794
45870
  return new Pe(Ge, We - Ge);
45795
45871
  }
@@ -45820,8 +45896,8 @@ function requireQuill() {
45820
45896
  var qe = this, Le = Ce.collapsed ? [Ce.index] : [Ce.index, Ce.index + Ce.length], ze = [], We = this.scroll.length();
45821
45897
  return Le.forEach(function(Ge, Ke) {
45822
45898
  Ge = Math.min(We - 1, Ge);
45823
- var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0], Ve = Ze[1], Be = Fe.position(Ve, Ke !== 0), Xe = oe(Be, 2);
45824
- ft = Xe[0], Ve = Xe[1], ze.push(ft, Ve);
45899
+ var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0], Ue = Ze[1], Be = Fe.position(Ue, Ke !== 0), Xe = oe(Be, 2);
45900
+ ft = Xe[0], Ue = Xe[1], ze.push(ft, Ue);
45825
45901
  }), ze.length < 2 && (ze = ze.concat(ze)), ze;
45826
45902
  }
45827
45903
  }, {
@@ -46337,10 +46413,10 @@ function requireQuill() {
46337
46413
  Ie = new de();
46338
46414
  else if (oe(Me, ce))
46339
46415
  Ie = new ce(function(Ze, Fe) {
46340
- Me.then(function(Ve) {
46341
- Ze(De(Ve, He - 1));
46342
- }, function(Ve) {
46343
- Fe(De(Ve, He - 1));
46416
+ Me.then(function(Ue) {
46417
+ Ze(De(Ue, He - 1));
46418
+ }, function(Ue) {
46419
+ Fe(De(Ue, He - 1));
46344
46420
  });
46345
46421
  });
46346
46422
  else if (ue.__isArray(Me))
@@ -46361,8 +46437,8 @@ function requireQuill() {
46361
46437
  ye.push(Me), Se.push(Ie);
46362
46438
  }
46363
46439
  oe(Me, ne) && Me.forEach(function(Ze, Fe) {
46364
- var Ve = De(Fe, He - 1), Be = De(Ze, He - 1);
46365
- Ie.set(Ve, Be);
46440
+ var Ue = De(Fe, He - 1), Be = De(Ze, He - 1);
46441
+ Ie.set(Ue, Be);
46366
46442
  }), oe(Me, de) && Me.forEach(function(Ze) {
46367
46443
  var Fe = De(Ze, He - 1);
46368
46444
  Ie.add(Fe);
@@ -46523,8 +46599,8 @@ function requireQuill() {
46523
46599
  return;
46524
46600
  }
46525
46601
  if (Ke instanceof _e.default) {
46526
- var Ve = Ke.newlineIndex(Ke.length(), !0);
46527
- if (Ve > -1 && (Ke = Ke.split(Ve + 1), Ke === Fe)) {
46602
+ var Ue = Ke.newlineIndex(Ke.length(), !0);
46603
+ if (Ue > -1 && (Ke = Ke.split(Ue + 1), Ke === Fe)) {
46528
46604
  this.optimize();
46529
46605
  return;
46530
46606
  }
@@ -46590,8 +46666,8 @@ function requireQuill() {
46590
46666
  value: function() {
46591
46667
  var Le = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Qe) {
46592
46668
  var Ze = [], Fe = Qe;
46593
- return Ke.children.forEachAt(ft, Qe, function(Ve, Be, Xe) {
46594
- Me(Ve) ? Ze.push(Ve) : Ve instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ve, Be, Fe))), Fe -= Xe;
46669
+ return Ke.children.forEachAt(ft, Qe, function(Ue, Be, Xe) {
46670
+ Me(Ue) ? Ze.push(Ue) : Ue instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ue, Be, Fe))), Fe -= Xe;
46595
46671
  }), Ze;
46596
46672
  };
46597
46673
  return We(this, Le, ze);
@@ -46625,18 +46701,18 @@ function requireQuill() {
46625
46701
  Object.defineProperty(te, "__esModule", {
46626
46702
  value: !0
46627
46703
  }), te.SHORTKEY = te.default = void 0;
46628
- var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Ue) {
46629
- return typeof Ue;
46630
- } : function(Ue) {
46631
- return Ue && typeof Symbol == "function" && Ue.constructor === Symbol && Ue !== Symbol.prototype ? "symbol" : typeof Ue;
46704
+ var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(Ve) {
46705
+ return typeof Ve;
46706
+ } : function(Ve) {
46707
+ return Ve && typeof Symbol == "function" && Ve.constructor === Symbol && Ve !== Symbol.prototype ? "symbol" : typeof Ve;
46632
46708
  }, ne = /* @__PURE__ */ (function() {
46633
- function Ue(Ye, rt) {
46709
+ function Ve(Ye, rt) {
46634
46710
  var ot = [], _t = !0, kt = !1, It = void 0;
46635
46711
  try {
46636
46712
  for (var qt = Ye[Symbol.iterator](), Nt; !(_t = (Nt = qt.next()).done) && (ot.push(Nt.value), !(rt && ot.length === rt)); _t = !0)
46637
46713
  ;
46638
- } catch (Ut) {
46639
- kt = !0, It = Ut;
46714
+ } catch (Vt) {
46715
+ kt = !0, It = Vt;
46640
46716
  } finally {
46641
46717
  try {
46642
46718
  !_t && qt.return && qt.return();
@@ -46650,42 +46726,42 @@ function requireQuill() {
46650
46726
  if (Array.isArray(Ye))
46651
46727
  return Ye;
46652
46728
  if (Symbol.iterator in Object(Ye))
46653
- return Ue(Ye, rt);
46729
+ return Ve(Ye, rt);
46654
46730
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
46655
46731
  };
46656
46732
  })(), de = /* @__PURE__ */ (function() {
46657
- function Ue(Ye, rt) {
46733
+ function Ve(Ye, rt) {
46658
46734
  for (var ot = 0; ot < rt.length; ot++) {
46659
46735
  var _t = rt[ot];
46660
46736
  _t.enumerable = _t.enumerable || !1, _t.configurable = !0, "value" in _t && (_t.writable = !0), Object.defineProperty(Ye, _t.key, _t);
46661
46737
  }
46662
46738
  }
46663
46739
  return function(Ye, rt, ot) {
46664
- return rt && Ue(Ye.prototype, rt), ot && Ue(Ye, ot), Ye;
46740
+ return rt && Ve(Ye.prototype, rt), ot && Ve(Ye, ot), Ye;
46665
46741
  };
46666
46742
  })(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), we = re(0), Ae = Ie(we), ye = re(5), Se = Ie(ye), Pe = re(10), De = Ie(Pe), Me = re(9), He = Ie(Me);
46667
- function Ie(Ue) {
46668
- return Ue && Ue.__esModule ? Ue : { default: Ue };
46743
+ function Ie(Ve) {
46744
+ return Ve && Ve.__esModule ? Ve : { default: Ve };
46669
46745
  }
46670
- function Ce(Ue, Ye, rt) {
46671
- return Ye in Ue ? Object.defineProperty(Ue, Ye, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Ue[Ye] = rt, Ue;
46746
+ function Ce(Ve, Ye, rt) {
46747
+ return Ye in Ve ? Object.defineProperty(Ve, Ye, { value: rt, enumerable: !0, configurable: !0, writable: !0 }) : Ve[Ye] = rt, Ve;
46672
46748
  }
46673
- function qe(Ue, Ye) {
46674
- if (!(Ue instanceof Ye))
46749
+ function qe(Ve, Ye) {
46750
+ if (!(Ve instanceof Ye))
46675
46751
  throw new TypeError("Cannot call a class as a function");
46676
46752
  }
46677
- function Le(Ue, Ye) {
46678
- if (!Ue)
46753
+ function Le(Ve, Ye) {
46754
+ if (!Ve)
46679
46755
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
46680
- return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ue;
46756
+ return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ve;
46681
46757
  }
46682
- function ze(Ue, Ye) {
46758
+ function ze(Ve, Ye) {
46683
46759
  if (typeof Ye != "function" && Ye !== null)
46684
46760
  throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
46685
- Ue.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ye) : Ue.__proto__ = Ye);
46761
+ Ve.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Ye) : Ve.__proto__ = Ye);
46686
46762
  }
46687
- var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(Ue) {
46688
- ze(Ye, Ue), de(Ye, null, [{
46763
+ var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(Ve) {
46764
+ ze(Ye, Ve), de(Ye, null, [{
46689
46765
  key: "match",
46690
46766
  value: function(ot, _t) {
46691
46767
  return _t = Je(_t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(kt) {
@@ -46698,7 +46774,7 @@ function requireQuill() {
46698
46774
  var _t = Le(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
46699
46775
  return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
46700
46776
  kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
46701
- }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ve), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46777
+ }), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ue), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
46702
46778
  }), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ze)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ze)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Fe), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
46703
46779
  }
46704
46780
  return de(Ye, [{
@@ -46721,7 +46797,7 @@ function requireQuill() {
46721
46797
  if (It.length !== 0) {
46722
46798
  var qt = ot.quill.getSelection();
46723
46799
  if (!(qt == null || !ot.quill.hasFocus())) {
46724
- var Nt = ot.quill.getLine(qt.index), Ut = ne(Nt, 2), rs = Ut[0], Yt = Ut[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Ft = ne($t, 2), Mt = Ft[0], zt = Ft[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Mt instanceof Ae.default.Text ? Mt.value().slice(zt) : "", Kt = {
46800
+ var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], St = mt[1], $t = qt.length === 0 ? [xt, St] : ot.quill.getLeaf(qt.index + qt.length), Ft = ne($t, 2), Mt = Ft[0], zt = Ft[1], cs = xt instanceof Ae.default.Text ? xt.value().slice(0, St) : "", ds = Mt instanceof Ae.default.Text ? Mt.value().slice(zt) : "", Kt = {
46725
46801
  collapsed: qt.length === 0,
46726
46802
  empty: qt.length === 0 && rs.length() <= 1,
46727
46803
  format: ot.quill.getFormat(qt),
@@ -46870,8 +46946,8 @@ function requireQuill() {
46870
46946
  Nt = "ordered";
46871
46947
  }
46872
46948
  this.quill.insertText(Ye.index, " ", Se.default.sources.USER), this.quill.history.cutoff();
46873
- var Ut = new ge.default().retain(Ye.index - qt).delete(ot + 1).retain(It.length() - 2 - qt).retain(1, { list: Nt });
46874
- this.quill.updateContents(Ut, Se.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index - ot, Se.default.sources.SILENT);
46949
+ var Vt = new ge.default().retain(Ye.index - qt).delete(ot + 1).retain(It.length() - 2 - qt).retain(1, { list: Nt });
46950
+ this.quill.updateContents(Vt, Se.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(Ye.index - ot, Se.default.sources.SILENT);
46875
46951
  }
46876
46952
  },
46877
46953
  "code exit": {
@@ -46891,103 +46967,103 @@ function requireQuill() {
46891
46967
  "embed right shift": ft(Ke.keys.RIGHT, !0)
46892
46968
  }
46893
46969
  };
46894
- function ft(Ue, Ye) {
46895
- var rt, ot = Ue === Ke.keys.LEFT ? "prefix" : "suffix";
46970
+ function ft(Ve, Ye) {
46971
+ var rt, ot = Ve === Ke.keys.LEFT ? "prefix" : "suffix";
46896
46972
  return rt = {
46897
- key: Ue,
46973
+ key: Ve,
46898
46974
  shiftKey: Ye,
46899
46975
  altKey: null
46900
46976
  }, Ce(rt, ot, /^$/), Ce(rt, "handler", function(kt) {
46901
46977
  var It = kt.index;
46902
- Ue === Ke.keys.RIGHT && (It += kt.length + 1);
46903
- var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Ut = Nt[0];
46904
- return Ut instanceof Ae.default.Embed ? (Ue === Ke.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index - 1, Se.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Se.default.sources.USER), !1) : !0;
46978
+ Ve === Ke.keys.RIGHT && (It += kt.length + 1);
46979
+ var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Vt = Nt[0];
46980
+ return Vt instanceof Ae.default.Embed ? (Ve === Ke.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index - 1, Se.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Se.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Se.default.sources.USER), !1) : !0;
46905
46981
  }), rt;
46906
46982
  }
46907
- function Qe(Ue, Ye) {
46908
- if (!(Ue.index === 0 || this.quill.getLength() <= 1)) {
46909
- var rt = this.quill.getLine(Ue.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46983
+ function Qe(Ve, Ye) {
46984
+ if (!(Ve.index === 0 || this.quill.getLength() <= 1)) {
46985
+ var rt = this.quill.getLine(Ve.index), ot = ne(rt, 1), _t = ot[0], kt = {};
46910
46986
  if (Ye.offset === 0) {
46911
- var It = this.quill.getLine(Ue.index - 1), qt = ne(It, 1), Nt = qt[0];
46987
+ var It = this.quill.getLine(Ve.index - 1), qt = ne(It, 1), Nt = qt[0];
46912
46988
  if (Nt != null && Nt.length() > 1) {
46913
- var Ut = _t.formats(), rs = this.quill.getFormat(Ue.index - 1, 1);
46914
- kt = _e.default.attributes.diff(Ut, rs) || {};
46989
+ var Vt = _t.formats(), rs = this.quill.getFormat(Ve.index - 1, 1);
46990
+ kt = _e.default.attributes.diff(Vt, rs) || {};
46915
46991
  }
46916
46992
  }
46917
46993
  var Yt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ye.prefix) ? 2 : 1;
46918
- this.quill.deleteText(Ue.index - Yt, Yt, Se.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ue.index - Yt, Yt, kt, Se.default.sources.USER), this.quill.focus();
46994
+ this.quill.deleteText(Ve.index - Yt, Yt, Se.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ve.index - Yt, Yt, kt, Se.default.sources.USER), this.quill.focus();
46919
46995
  }
46920
46996
  }
46921
- function Ze(Ue, Ye) {
46997
+ function Ze(Ve, Ye) {
46922
46998
  var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
46923
- if (!(Ue.index >= this.quill.getLength() - rt)) {
46924
- var ot = {}, _t = 0, kt = this.quill.getLine(Ue.index), It = ne(kt, 1), qt = It[0];
46999
+ if (!(Ve.index >= this.quill.getLength() - rt)) {
47000
+ var ot = {}, _t = 0, kt = this.quill.getLine(Ve.index), It = ne(kt, 1), qt = It[0];
46925
47001
  if (Ye.offset >= qt.length() - 1) {
46926
- var Nt = this.quill.getLine(Ue.index + 1), Ut = ne(Nt, 1), rs = Ut[0];
47002
+ var Nt = this.quill.getLine(Ve.index + 1), Vt = ne(Nt, 1), rs = Vt[0];
46927
47003
  if (rs) {
46928
- var Yt = qt.formats(), gt = this.quill.getFormat(Ue.index, 1);
47004
+ var Yt = qt.formats(), gt = this.quill.getFormat(Ve.index, 1);
46929
47005
  ot = _e.default.attributes.diff(Yt, gt) || {}, _t = rs.length();
46930
47006
  }
46931
47007
  }
46932
- this.quill.deleteText(Ue.index, rt, Se.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ue.index + _t - 1, rt, ot, Se.default.sources.USER);
47008
+ this.quill.deleteText(Ve.index, rt, Se.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine(Ve.index + _t - 1, rt, ot, Se.default.sources.USER);
46933
47009
  }
46934
47010
  }
46935
- function Fe(Ue) {
46936
- var Ye = this.quill.getLines(Ue), rt = {};
47011
+ function Fe(Ve) {
47012
+ var Ye = this.quill.getLines(Ve), rt = {};
46937
47013
  if (Ye.length > 1) {
46938
47014
  var ot = Ye[0].formats(), _t = Ye[Ye.length - 1].formats();
46939
47015
  rt = _e.default.attributes.diff(_t, ot) || {};
46940
47016
  }
46941
- this.quill.deleteText(Ue, Se.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Ue.index, 1, rt, Se.default.sources.USER), this.quill.setSelection(Ue.index, Se.default.sources.SILENT), this.quill.focus();
47017
+ this.quill.deleteText(Ve, Se.default.sources.USER), Object.keys(rt).length > 0 && this.quill.formatLine(Ve.index, 1, rt, Se.default.sources.USER), this.quill.setSelection(Ve.index, Se.default.sources.SILENT), this.quill.focus();
46942
47018
  }
46943
- function Ve(Ue, Ye) {
47019
+ function Ue(Ve, Ye) {
46944
47020
  var rt = this;
46945
- Ue.length > 0 && this.quill.scroll.deleteAt(Ue.index, Ue.length);
47021
+ Ve.length > 0 && this.quill.scroll.deleteAt(Ve.index, Ve.length);
46946
47022
  var ot = Object.keys(Ye.format).reduce(function(_t, kt) {
46947
47023
  return Ae.default.query(kt, Ae.default.Scope.BLOCK) && !Array.isArray(Ye.format[kt]) && (_t[kt] = Ye.format[kt]), _t;
46948
47024
  }, {});
46949
- this.quill.insertText(Ue.index, `
46950
- `, ot, Se.default.sources.USER), this.quill.setSelection(Ue.index + 1, Se.default.sources.SILENT), this.quill.focus(), Object.keys(Ye.format).forEach(function(_t) {
47025
+ this.quill.insertText(Ve.index, `
47026
+ `, ot, Se.default.sources.USER), this.quill.setSelection(Ve.index + 1, Se.default.sources.SILENT), this.quill.focus(), Object.keys(Ye.format).forEach(function(_t) {
46951
47027
  ot[_t] == null && (Array.isArray(Ye.format[_t]) || _t !== "link" && rt.quill.format(_t, Ye.format[_t], Se.default.sources.USER));
46952
47028
  });
46953
47029
  }
46954
- function Be(Ue) {
47030
+ function Be(Ve) {
46955
47031
  return {
46956
47032
  key: Ke.keys.TAB,
46957
- shiftKey: !Ue,
47033
+ shiftKey: !Ve,
46958
47034
  format: { "code-block": !0 },
46959
47035
  handler: function(rt) {
46960
- var ot = Ae.default.query("code-block"), _t = rt.index, kt = rt.length, It = this.quill.scroll.descendant(ot, _t), qt = ne(It, 2), Nt = qt[0], Ut = qt[1];
47036
+ var ot = Ae.default.query("code-block"), _t = rt.index, kt = rt.length, It = this.quill.scroll.descendant(ot, _t), qt = ne(It, 2), Nt = qt[0], Vt = qt[1];
46961
47037
  if (Nt != null) {
46962
- var rs = this.quill.getIndex(Nt), Yt = Nt.newlineIndex(Ut, !0) + 1, gt = Nt.newlineIndex(rs + Ut + kt), mt = Nt.domNode.textContent.slice(Yt, gt).split(`
47038
+ var rs = this.quill.getIndex(Nt), Yt = Nt.newlineIndex(Vt, !0) + 1, gt = Nt.newlineIndex(rs + Vt + kt), mt = Nt.domNode.textContent.slice(Yt, gt).split(`
46963
47039
  `);
46964
- Ut = 0, mt.forEach(function(xt, St) {
46965
- Ue ? (Nt.insertAt(Yt + Ut, ot.TAB), Ut += ot.TAB.length, St === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Yt + Ut, ot.TAB.length), Ut -= ot.TAB.length, St === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Ut += xt.length + 1;
47040
+ Vt = 0, mt.forEach(function(xt, St) {
47041
+ Ve ? (Nt.insertAt(Yt + Vt, ot.TAB), Vt += ot.TAB.length, St === 0 ? _t += ot.TAB.length : kt += ot.TAB.length) : xt.startsWith(ot.TAB) && (Nt.deleteAt(Yt + Vt, ot.TAB.length), Vt -= ot.TAB.length, St === 0 ? _t -= ot.TAB.length : kt -= ot.TAB.length), Vt += xt.length + 1;
46966
47042
  }), this.quill.update(Se.default.sources.USER), this.quill.setSelection(_t, kt, Se.default.sources.SILENT);
46967
47043
  }
46968
47044
  }
46969
47045
  };
46970
47046
  }
46971
- function Xe(Ue) {
47047
+ function Xe(Ve) {
46972
47048
  return {
46973
- key: Ue[0].toUpperCase(),
47049
+ key: Ve[0].toUpperCase(),
46974
47050
  shortKey: !0,
46975
47051
  handler: function(rt, ot) {
46976
- this.quill.format(Ue, !ot.format[Ue], Se.default.sources.USER);
47052
+ this.quill.format(Ve, !ot.format[Ve], Se.default.sources.USER);
46977
47053
  }
46978
47054
  };
46979
47055
  }
46980
- function Je(Ue) {
46981
- if (typeof Ue == "string" || typeof Ue == "number")
46982
- return Je({ key: Ue });
46983
- if ((typeof Ue > "u" ? "undefined" : oe(Ue)) === "object" && (Ue = (0, ue.default)(Ue, !1)), typeof Ue.key == "string")
46984
- if (Ke.keys[Ue.key.toUpperCase()] != null)
46985
- Ue.key = Ke.keys[Ue.key.toUpperCase()];
46986
- else if (Ue.key.length === 1)
46987
- Ue.key = Ue.key.toUpperCase().charCodeAt(0);
47056
+ function Je(Ve) {
47057
+ if (typeof Ve == "string" || typeof Ve == "number")
47058
+ return Je({ key: Ve });
47059
+ if ((typeof Ve > "u" ? "undefined" : oe(Ve)) === "object" && (Ve = (0, ue.default)(Ve, !1)), typeof Ve.key == "string")
47060
+ if (Ke.keys[Ve.key.toUpperCase()] != null)
47061
+ Ve.key = Ke.keys[Ve.key.toUpperCase()];
47062
+ else if (Ve.key.length === 1)
47063
+ Ve.key = Ve.key.toUpperCase().charCodeAt(0);
46988
47064
  else
46989
47065
  return null;
46990
- return Ue.shortKey && (Ue[Ge] = Ue.shortKey, delete Ue.shortKey), Ue;
47066
+ return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
46991
47067
  }
46992
47068
  te.default = Ke, te.SHORTKEY = Ge;
46993
47069
  }),
@@ -47848,8 +47924,8 @@ function requireQuill() {
47848
47924
  throw new TypeError("unexpected type: " + qe.type);
47849
47925
  return Ce.setStart(Ge, 0), Ce.setEnd(Ke, Ke.length), { range: Ce, mode: "all" };
47850
47926
  }
47851
- var Ze = We(), Fe = void 0, Ve = void 0, Be = Ke.length - Se(Ke);
47852
- return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be), Ve = Be - (We() - Ze), qe.extend(Ke, Ve)) : (qe.extend(Ke, Be), Ve = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + ye(Ge), qe.extend(Ge, Fe)), Ce.setStart(Ge, Fe), Ce.setEnd(Ke, Ve), {
47927
+ var Ze = We(), Fe = void 0, Ue = void 0, Be = Ke.length - Se(Ke);
47928
+ return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be), Ue = Be - (We() - Ze), qe.extend(Ke, Ue)) : (qe.extend(Ke, Be), Ue = Be - We(), qe.extend(Ge, 0), Fe = We() - Ze + ye(Ge), qe.extend(Ge, Fe)), Ce.setStart(Ge, Fe), Ce.setEnd(Ke, Ue), {
47853
47929
  mode: ft ? "right" : "left",
47854
47930
  range: Ce
47855
47931
  };
@@ -48314,92 +48390,92 @@ function requireQuill() {
48314
48390
  value: !0
48315
48391
  }), te.default = te.BaseTooltip = void 0;
48316
48392
  var oe = /* @__PURE__ */ (function() {
48317
- function Ve(Be, Xe) {
48393
+ function Ue(Be, Xe) {
48318
48394
  for (var Je = 0; Je < Xe.length; Je++) {
48319
- var Ue = Xe[Je];
48320
- Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Be, Ue.key, Ue);
48395
+ var Ve = Xe[Je];
48396
+ Ve.enumerable = Ve.enumerable || !1, Ve.configurable = !0, "value" in Ve && (Ve.writable = !0), Object.defineProperty(Be, Ve.key, Ve);
48321
48397
  }
48322
48398
  }
48323
48399
  return function(Be, Xe, Je) {
48324
- return Xe && Ve(Be.prototype, Xe), Je && Ve(Be, Je), Be;
48400
+ return Xe && Ue(Be.prototype, Xe), Je && Ue(Be, Je), Be;
48325
48401
  };
48326
- })(), ne = function Ve(Be, Xe, Je) {
48402
+ })(), ne = function Ue(Be, Xe, Je) {
48327
48403
  Be === null && (Be = Function.prototype);
48328
- var Ue = Object.getOwnPropertyDescriptor(Be, Xe);
48329
- if (Ue === void 0) {
48404
+ var Ve = Object.getOwnPropertyDescriptor(Be, Xe);
48405
+ if (Ve === void 0) {
48330
48406
  var Ye = Object.getPrototypeOf(Be);
48331
- return Ye === null ? void 0 : Ve(Ye, Xe, Je);
48407
+ return Ye === null ? void 0 : Ue(Ye, Xe, Je);
48332
48408
  } else {
48333
- if ("value" in Ue)
48334
- return Ue.value;
48335
- var rt = Ue.get;
48409
+ if ("value" in Ve)
48410
+ return Ve.value;
48411
+ var rt = Ve.get;
48336
48412
  return rt === void 0 ? void 0 : rt.call(Je);
48337
48413
  }
48338
48414
  }, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), we = He(_e), Ae = re(61), ye = He(Ae), Se = re(28), Pe = He(Se), De = re(62), Me = He(De);
48339
- function He(Ve) {
48340
- return Ve && Ve.__esModule ? Ve : { default: Ve };
48415
+ function He(Ue) {
48416
+ return Ue && Ue.__esModule ? Ue : { default: Ue };
48341
48417
  }
48342
- function Ie(Ve, Be) {
48343
- if (!(Ve instanceof Be))
48418
+ function Ie(Ue, Be) {
48419
+ if (!(Ue instanceof Be))
48344
48420
  throw new TypeError("Cannot call a class as a function");
48345
48421
  }
48346
- function Ce(Ve, Be) {
48347
- if (!Ve)
48422
+ function Ce(Ue, Be) {
48423
+ if (!Ue)
48348
48424
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
48349
- return Be && (typeof Be == "object" || typeof Be == "function") ? Be : Ve;
48425
+ return Be && (typeof Be == "object" || typeof Be == "function") ? Be : Ue;
48350
48426
  }
48351
- function qe(Ve, Be) {
48427
+ function qe(Ue, Be) {
48352
48428
  if (typeof Be != "function" && Be !== null)
48353
48429
  throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
48354
- Ve.prototype = Object.create(Be && Be.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Be) : Ve.__proto__ = Be);
48430
+ Ue.prototype = Object.create(Be && Be.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Be && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Be) : Ue.__proto__ = Be);
48355
48431
  }
48356
- var Le = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Ve) {
48357
- qe(Be, Ve);
48432
+ var Le = [!1, "center", "right", "justify"], ze = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Ue) {
48433
+ qe(Be, Ue);
48358
48434
  function Be(Xe, Je) {
48359
48435
  Ie(this, Be);
48360
- var Ue = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ye = function rt(ot) {
48436
+ var Ve = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ye = function rt(ot) {
48361
48437
  if (!document.body.contains(Xe.root))
48362
48438
  return document.body.removeEventListener("click", rt);
48363
- Ue.tooltip != null && !Ue.tooltip.root.contains(ot.target) && document.activeElement !== Ue.tooltip.textbox && !Ue.quill.hasFocus() && Ue.tooltip.hide(), Ue.pickers != null && Ue.pickers.forEach(function(_t) {
48439
+ Ve.tooltip != null && !Ve.tooltip.root.contains(ot.target) && document.activeElement !== Ve.tooltip.textbox && !Ve.quill.hasFocus() && Ve.tooltip.hide(), Ve.pickers != null && Ve.pickers.forEach(function(_t) {
48364
48440
  _t.container.contains(ot.target) || _t.close();
48365
48441
  });
48366
48442
  };
48367
- return Xe.emitter.listenDOM("click", document.body, Ye), Ue;
48443
+ return Xe.emitter.listenDOM("click", document.body, Ye), Ve;
48368
48444
  }
48369
48445
  return oe(Be, [{
48370
48446
  key: "addModule",
48371
48447
  value: function(Je) {
48372
- var Ue = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
48373
- return Je === "toolbar" && this.extendToolbar(Ue), Ue;
48448
+ var Ve = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
48449
+ return Je === "toolbar" && this.extendToolbar(Ve), Ve;
48374
48450
  }
48375
48451
  }, {
48376
48452
  key: "buildButtons",
48377
- value: function(Je, Ue) {
48453
+ value: function(Je, Ve) {
48378
48454
  Je.forEach(function(Ye) {
48379
48455
  var rt = Ye.getAttribute("class") || "";
48380
48456
  rt.split(/\s+/).forEach(function(ot) {
48381
- if (ot.startsWith("ql-") && (ot = ot.slice(3), Ue[ot] != null))
48457
+ if (ot.startsWith("ql-") && (ot = ot.slice(3), Ve[ot] != null))
48382
48458
  if (ot === "direction")
48383
- Ye.innerHTML = Ue[ot][""] + Ue[ot].rtl;
48384
- else if (typeof Ue[ot] == "string")
48385
- Ye.innerHTML = Ue[ot];
48459
+ Ye.innerHTML = Ve[ot][""] + Ve[ot].rtl;
48460
+ else if (typeof Ve[ot] == "string")
48461
+ Ye.innerHTML = Ve[ot];
48386
48462
  else {
48387
48463
  var _t = Ye.value || "";
48388
- _t != null && Ue[ot][_t] && (Ye.innerHTML = Ue[ot][_t]);
48464
+ _t != null && Ve[ot][_t] && (Ye.innerHTML = Ve[ot][_t]);
48389
48465
  }
48390
48466
  });
48391
48467
  });
48392
48468
  }
48393
48469
  }, {
48394
48470
  key: "buildPickers",
48395
- value: function(Je, Ue) {
48471
+ value: function(Je, Ve) {
48396
48472
  var Ye = this;
48397
48473
  this.pickers = Je.map(function(ot) {
48398
48474
  if (ot.classList.contains("ql-align"))
48399
- return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ue.align);
48475
+ return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ve.align);
48400
48476
  if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
48401
48477
  var _t = ot.classList.contains("ql-background") ? "background" : "color";
48402
- return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ue[_t]);
48478
+ return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
48403
48479
  } else
48404
48480
  return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Fe(ot, We) : ot.classList.contains("ql-header") ? Fe(ot, Ge) : ot.classList.contains("ql-size") && Fe(ot, Ke)), new Pe.default(ot);
48405
48481
  });
@@ -48424,9 +48500,9 @@ function requireQuill() {
48424
48500
  Xe == null && (Xe = document.createElement("input"), Xe.setAttribute("type", "file"), Xe.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), Xe.classList.add("ql-image"), Xe.addEventListener("change", function() {
48425
48501
  if (Xe.files != null && Xe.files[0] != null) {
48426
48502
  var Je = new FileReader();
48427
- Je.onload = function(Ue) {
48503
+ Je.onload = function(Ve) {
48428
48504
  var Ye = Be.quill.getSelection(!0);
48429
- Be.quill.updateContents(new he.default().retain(Ye.index).delete(Ye.length).insert({ image: Ue.target.result }), fe.default.sources.USER), Be.quill.setSelection(Ye.index + 1, fe.default.sources.SILENT), Xe.value = "";
48505
+ Be.quill.updateContents(new he.default().retain(Ye.index).delete(Ye.length).insert({ image: Ve.target.result }), fe.default.sources.USER), Be.quill.setSelection(Ye.index + 1, fe.default.sources.SILENT), Xe.value = "";
48430
48506
  }, Je.readAsDataURL(Xe.files[0]);
48431
48507
  }
48432
48508
  }), this.container.appendChild(Xe)), Xe.click();
@@ -48438,19 +48514,19 @@ function requireQuill() {
48438
48514
  }
48439
48515
  }
48440
48516
  });
48441
- var Qe = (function(Ve) {
48442
- qe(Be, Ve);
48517
+ var Qe = (function(Ue) {
48518
+ qe(Be, Ue);
48443
48519
  function Be(Xe, Je) {
48444
48520
  Ie(this, Be);
48445
- var Ue = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je));
48446
- return Ue.textbox = Ue.root.querySelector('input[type="text"]'), Ue.listen(), Ue;
48521
+ var Ve = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je));
48522
+ return Ve.textbox = Ve.root.querySelector('input[type="text"]'), Ve.listen(), Ve;
48447
48523
  }
48448
48524
  return oe(Be, [{
48449
48525
  key: "listen",
48450
48526
  value: function() {
48451
48527
  var Je = this;
48452
- this.textbox.addEventListener("keydown", function(Ue) {
48453
- me.default.match(Ue, "enter") ? (Je.save(), Ue.preventDefault()) : me.default.match(Ue, "escape") && (Je.cancel(), Ue.preventDefault());
48528
+ this.textbox.addEventListener("keydown", function(Ve) {
48529
+ me.default.match(Ve, "enter") ? (Je.save(), Ve.preventDefault()) : me.default.match(Ve, "escape") && (Je.cancel(), Ve.preventDefault());
48454
48530
  });
48455
48531
  }
48456
48532
  }, {
@@ -48461,8 +48537,8 @@ function requireQuill() {
48461
48537
  }, {
48462
48538
  key: "edit",
48463
48539
  value: function() {
48464
- var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
48465
- this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Ue != null ? this.textbox.value = Ue : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
48540
+ var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link", Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
48541
+ this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"), Ve != null ? this.textbox.value = Ve : Je !== this.root.getAttribute("data-mode") && (this.textbox.value = ""), this.position(this.quill.getBounds(this.quill.selection.savedRange)), this.textbox.select(), this.textbox.setAttribute("placeholder", this.textbox.getAttribute("data-" + Je) || ""), this.root.setAttribute("data-mode", Je);
48466
48542
  }
48467
48543
  }, {
48468
48544
  key: "restoreFocus",
@@ -48476,8 +48552,8 @@ function requireQuill() {
48476
48552
  var Je = this.textbox.value;
48477
48553
  switch (this.root.getAttribute("data-mode")) {
48478
48554
  case "link": {
48479
- var Ue = this.quill.root.scrollTop;
48480
- this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Ue;
48555
+ var Ve = this.quill.root.scrollTop;
48556
+ this.linkRange ? (this.quill.formatText(this.linkRange, "link", Je, fe.default.sources.USER), delete this.linkRange) : (this.restoreFocus(), this.quill.format("link", Je, fe.default.sources.USER)), this.quill.root.scrollTop = Ve;
48481
48557
  break;
48482
48558
  }
48483
48559
  case "video":
@@ -48497,15 +48573,15 @@ function requireQuill() {
48497
48573
  }
48498
48574
  }]), Be;
48499
48575
  })(Me.default);
48500
- function Ze(Ve) {
48501
- var Be = Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ve.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48502
- return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = Ve.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : Ve;
48576
+ function Ze(Ue) {
48577
+ var Be = Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
48578
+ return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be = Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Be[1] || "https") + "://player.vimeo.com/video/" + Be[2] + "/" : Ue;
48503
48579
  }
48504
- function Fe(Ve, Be) {
48580
+ function Fe(Ue, Be) {
48505
48581
  var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
48506
48582
  Be.forEach(function(Je) {
48507
- var Ue = document.createElement("option");
48508
- Je === Xe ? Ue.setAttribute("selected", "selected") : Ue.setAttribute("value", Je), Ve.appendChild(Ue);
48583
+ var Ve = document.createElement("option");
48584
+ Je === Xe ? Ve.setAttribute("selected", "selected") : Ve.setAttribute("value", Je), Ue.appendChild(Ve);
48509
48585
  });
48510
48586
  }
48511
48587
  te.BaseTooltip = Qe, te.default = ft;
@@ -48941,37 +49017,37 @@ function requireQuill() {
48941
49017
  Ce[He + 1] = 0, qe[He + 1] = 0;
48942
49018
  for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Me; Ze++) {
48943
49019
  for (var Fe = -Ze + Ge; Fe <= Ze - Ke; Fe += 2) {
48944
- var Ve = He + Fe, Be;
48945
- Fe == -Ze || Fe != Ze && Ce[Ve - 1] < Ce[Ve + 1] ? Be = Ce[Ve + 1] : Be = Ce[Ve - 1] + 1;
49020
+ var Ue = He + Fe, Be;
49021
+ Fe == -Ze || Fe != Ze && Ce[Ue - 1] < Ce[Ue + 1] ? Be = Ce[Ue + 1] : Be = Ce[Ue - 1] + 1;
48946
49022
  for (var Xe = Be - Fe; Be < Pe && Xe < De && ye.charAt(Be) == Se.charAt(Xe); )
48947
49023
  Be++, Xe++;
48948
- if (Ce[Ve] = Be, Be > Pe)
49024
+ if (Ce[Ue] = Be, Be > Pe)
48949
49025
  Ke += 2;
48950
49026
  else if (Xe > De)
48951
49027
  Ge += 2;
48952
49028
  else if (We) {
48953
49029
  var Je = He + ze - Fe;
48954
49030
  if (Je >= 0 && Je < Ie && qe[Je] != -1) {
48955
- var Ue = Pe - qe[Je];
48956
- if (Be >= Ue)
49031
+ var Ve = Pe - qe[Je];
49032
+ if (Be >= Ve)
48957
49033
  return he(ye, Se, Be, Xe);
48958
49034
  }
48959
49035
  }
48960
49036
  }
48961
49037
  for (var Ye = -Ze + ft; Ye <= Ze - Qe; Ye += 2) {
48962
- var Je = He + Ye, Ue;
48963
- Ye == -Ze || Ye != Ze && qe[Je - 1] < qe[Je + 1] ? Ue = qe[Je + 1] : Ue = qe[Je - 1] + 1;
48964
- for (var rt = Ue - Ye; Ue < Pe && rt < De && ye.charAt(Pe - Ue - 1) == Se.charAt(De - rt - 1); )
48965
- Ue++, rt++;
48966
- if (qe[Je] = Ue, Ue > Pe)
49038
+ var Je = He + Ye, Ve;
49039
+ Ye == -Ze || Ye != Ze && qe[Je - 1] < qe[Je + 1] ? Ve = qe[Je + 1] : Ve = qe[Je - 1] + 1;
49040
+ for (var rt = Ve - Ye; Ve < Pe && rt < De && ye.charAt(Pe - Ve - 1) == Se.charAt(De - rt - 1); )
49041
+ Ve++, rt++;
49042
+ if (qe[Je] = Ve, Ve > Pe)
48967
49043
  Qe += 2;
48968
49044
  else if (rt > De)
48969
49045
  ft += 2;
48970
49046
  else if (!We) {
48971
- var Ve = He + ze - Ye;
48972
- if (Ve >= 0 && Ve < Ie && Ce[Ve] != -1) {
48973
- var Be = Ce[Ve], Xe = He + Be - Ve;
48974
- if (Ue = Pe - Ue, Be >= Ue)
49047
+ var Ue = He + ze - Ye;
49048
+ if (Ue >= 0 && Ue < Ie && Ce[Ue] != -1) {
49049
+ var Be = Ce[Ue], Xe = He + Be - Ue;
49050
+ if (Ve = Pe - Ve, Be >= Ve)
48975
49051
  return he(ye, Se, Be, Xe);
48976
49052
  }
48977
49053
  }
@@ -49002,7 +49078,7 @@ function requireQuill() {
49002
49078
  if (Pe.length < 4 || De.length * 2 < Pe.length)
49003
49079
  return null;
49004
49080
  function Me(Ke, ft, Qe) {
49005
- for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -1, Ve = "", Be, Xe, Je, Ue; (Fe = ft.indexOf(Ze, Fe + 1)) != -1; ) {
49081
+ for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -1, Ue = "", Be, Xe, Je, Ve; (Fe = ft.indexOf(Ze, Fe + 1)) != -1; ) {
49006
49082
  var Ye = pe(
49007
49083
  Ke.substring(Qe),
49008
49084
  ft.substring(Fe)
@@ -49010,14 +49086,14 @@ function requireQuill() {
49010
49086
  Ke.substring(0, Qe),
49011
49087
  ft.substring(0, Fe)
49012
49088
  );
49013
- Ve.length < rt + Ye && (Ve = ft.substring(Fe - rt, Fe) + ft.substring(Fe, Fe + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Fe - rt), Ue = ft.substring(Fe + Ye));
49089
+ Ue.length < rt + Ye && (Ue = ft.substring(Fe - rt, Fe) + ft.substring(Fe, Fe + Ye), Be = Ke.substring(0, Qe - rt), Xe = Ke.substring(Qe + Ye), Je = ft.substring(0, Fe - rt), Ve = ft.substring(Fe + Ye));
49014
49090
  }
49015
- return Ve.length * 2 >= Ke.length ? [
49091
+ return Ue.length * 2 >= Ke.length ? [
49016
49092
  Be,
49017
49093
  Xe,
49018
49094
  Je,
49019
- Ue,
49020
- Ve
49095
+ Ve,
49096
+ Ue
49021
49097
  ] : null;
49022
49098
  }
49023
49099
  var He = Me(
@@ -49320,18 +49396,18 @@ function requireQuill() {
49320
49396
  throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
49321
49397
  gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
49322
49398
  }
49323
- var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Ut], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
49399
+ var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
49324
49400
  return gt[mt.keyName] = mt, gt;
49325
49401
  }, {}), Fe = [ye.AlignStyle, Se.BackgroundStyle, Me.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ce.SizeStyle].reduce(function(gt, mt) {
49326
49402
  return gt[mt.keyName] = mt, gt;
49327
- }, {}), Ve = (function(gt) {
49403
+ }, {}), Ue = (function(gt) {
49328
49404
  Ge(mt, gt);
49329
49405
  function mt(xt, St) {
49330
49406
  ze(this, mt);
49331
49407
  var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, St));
49332
49408
  return $t.quill.root.addEventListener("paste", $t.onPaste.bind($t)), $t.container = $t.quill.addContainer("ql-clipboard"), $t.container.setAttribute("contenteditable", !0), $t.container.setAttribute("tabindex", -1), $t.matchers = [], Qe.concat($t.options.matchers).forEach(function(Ft) {
49333
49409
  var Mt = ne(Ft, 2), zt = Mt[0], cs = Mt[1];
49334
- !St.matchVisual && cs === Ut || $t.addMatcher(zt, cs);
49410
+ !St.matchVisual && cs === Vt || $t.addMatcher(zt, cs);
49335
49411
  }), $t;
49336
49412
  }
49337
49413
  return de(mt, [{
@@ -49398,7 +49474,7 @@ function requireQuill() {
49398
49474
  }
49399
49475
  }]), mt;
49400
49476
  })(Ae.default);
49401
- Ve.DEFAULTS = {
49477
+ Ue.DEFAULTS = {
49402
49478
  matchers: [],
49403
49479
  matchVisual: !0
49404
49480
  };
@@ -49422,7 +49498,7 @@ function requireQuill() {
49422
49498
  }
49423
49499
  return xt.slice(-1 * mt.length) === mt;
49424
49500
  }
49425
- function Ue(gt) {
49501
+ function Ve(gt) {
49426
49502
  if (gt.childNodes.length === 0) return !1;
49427
49503
  var mt = Xe(gt);
49428
49504
  return ["block", "list-item"].indexOf(mt.display) > -1;
@@ -49477,11 +49553,11 @@ function requireQuill() {
49477
49553
  }
49478
49554
  function Nt(gt, mt) {
49479
49555
  return Je(mt, `
49480
- `) || (Ue(gt) || mt.length() > 0 && gt.nextSibling && Ue(gt.nextSibling)) && mt.insert(`
49556
+ `) || (Ve(gt) || mt.length() > 0 && gt.nextSibling && Ve(gt.nextSibling)) && mt.insert(`
49481
49557
  `), mt;
49482
49558
  }
49483
- function Ut(gt, mt) {
49484
- if (Ue(gt) && gt.nextElementSibling != null && !Je(mt, `
49559
+ function Vt(gt, mt) {
49560
+ if (Ve(gt) && gt.nextElementSibling != null && !Je(mt, `
49485
49561
 
49486
49562
  `)) {
49487
49563
  var xt = gt.offsetHeight + parseFloat(Xe(gt).marginTop) + parseFloat(Xe(gt).marginBottom);
@@ -49504,11 +49580,11 @@ function requireQuill() {
49504
49580
  var St = function(Ft, Mt) {
49505
49581
  return Mt = Mt.replace(/[^\u00a0]/g, ""), Mt.length < 1 && Ft ? " " : Mt;
49506
49582
  };
49507
- xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null && Ue(gt.parentNode) || gt.previousSibling != null && Ue(gt.previousSibling)) && (xt = xt.replace(/^\s+/, St.bind(St, !1))), (gt.nextSibling == null && Ue(gt.parentNode) || gt.nextSibling != null && Ue(gt.nextSibling)) && (xt = xt.replace(/\s+$/, St.bind(St, !1)));
49583
+ xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null && Ve(gt.parentNode) || gt.previousSibling != null && Ve(gt.previousSibling)) && (xt = xt.replace(/^\s+/, St.bind(St, !1))), (gt.nextSibling == null && Ve(gt.parentNode) || gt.nextSibling != null && Ve(gt.nextSibling)) && (xt = xt.replace(/\s+$/, St.bind(St, !1)));
49508
49584
  }
49509
49585
  return mt.insert(xt);
49510
49586
  }
49511
- te.default = Ve, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Ut, te.matchText = Yt;
49587
+ te.default = Ue, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Vt, te.matchText = Yt;
49512
49588
  }),
49513
49589
  /* 57 */
49514
49590
  /***/
@@ -49665,8 +49741,8 @@ function requireQuill() {
49665
49741
  }), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Fe) {
49666
49742
  Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Fe);
49667
49743
  }), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
49668
- var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ve = Fe[0];
49669
- Ge.update(Ve);
49744
+ var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ue = Fe[0];
49745
+ Ge.update(Ue);
49670
49746
  }), Ge;
49671
49747
  }
49672
49748
  return ne(Le, [{
@@ -49701,7 +49777,7 @@ function requireQuill() {
49701
49777
  } else
49702
49778
  We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
49703
49779
  Ge.quill.focus();
49704
- var Ve = Ge.quill.selection.getRange(), Be = oe(Ve, 1), Xe = Be[0];
49780
+ var Ue = Ge.quill.selection.getRange(), Be = oe(Ue, 1), Xe = Be[0];
49705
49781
  if (Ge.handlers[Ke] != null)
49706
49782
  Ge.handlers[Ke].call(Ge, Ze);
49707
49783
  else if (he.default.query(Ke).prototype instanceof he.default.Embed) {
@@ -49726,8 +49802,8 @@ function requireQuill() {
49726
49802
  else if (Ge[Qe] == null)
49727
49803
  Fe = Ze.querySelector("option[selected]");
49728
49804
  else if (!Array.isArray(Ge[Qe])) {
49729
- var Ve = Ge[Qe];
49730
- typeof Ve == "string" && (Ve = Ve.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ve + '"]');
49805
+ var Ue = Ge[Qe];
49806
+ typeof Ue == "string" && (Ue = Ue.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ue + '"]');
49731
49807
  }
49732
49808
  Fe == null ? (Ze.value = "", Ze.selectedIndex = -1) : Fe.selected = !0;
49733
49809
  } else if (We == null)
@@ -50151,7 +50227,7 @@ function requireQuill() {
50151
50227
  Object.defineProperty(te, "__esModule", {
50152
50228
  value: !0
50153
50229
  });
50154
- var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Me = re(27), He = $t(Me), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Fe = $t(Ze), Ve = re(75), Be = $t(Ve), Xe = re(76), Je = $t(Xe), Ue = re(58), Ye = $t(Ue), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Ut = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50230
+ var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Ae = re(41), ye = re(57), Se = $t(ye), Pe = re(69), De = $t(Pe), Me = re(27), He = $t(Me), Ie = re(70), Ce = $t(Ie), qe = re(71), Le = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ke = $t(Ge), ft = re(74), Qe = $t(ft), Ze = re(13), Fe = $t(Ze), Ue = re(75), Be = $t(Ue), Xe = re(76), Je = $t(Xe), Ve = re(58), Ye = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Vt = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
50155
50231
  function $t(Ft) {
50156
50232
  return Ft && Ft.__esModule ? Ft : { default: Ft };
50157
50233
  }
@@ -50198,7 +50274,7 @@ function requireQuill() {
50198
50274
  "themes/snow": St.default,
50199
50275
  "ui/icons": ot.default,
50200
50276
  "ui/picker": kt.default,
50201
- "ui/icon-picker": Ut.default,
50277
+ "ui/icon-picker": Vt.default,
50202
50278
  "ui/color-picker": qt.default,
50203
50279
  "ui/tooltip": Yt.default
50204
50280
  }, !0), te.default = ne.default;
@@ -51612,6 +51688,42 @@ class PrimariaRegion extends PrimariaRegionHost(h$q) {
51612
51688
  re.connectedCallback && re.connectedCallback.call(this);
51613
51689
  }
51614
51690
  }
51691
+ /**
51692
+ * Mixin hook fired after `createRegions` finishes.
51693
+ *
51694
+ * Hydrates the freshly-created region with every view that has already been
51695
+ * registered for this region name via `regionManager.registerViewWithRegion`.
51696
+ * `registerViewWithRegion` only forwards to regions that exist at the moment
51697
+ * of the call, so a plugin that registers once at `initialize` would lose
51698
+ * its view every time the region is destroyed and re-created (e.g. when a
51699
+ * drawer that hosts the region is closed and reopened). Pulling from the
51700
+ * registry here makes injection transparent: any plugin can register once
51701
+ * and any region with that name auto-populates.
51702
+ */
51703
+ regionsCreated(W) {
51704
+ if (!this.region || !this.name) return;
51705
+ const J = v$n.getRegisteredViews(this.name) ?? [];
51706
+ for (const { key: te, view: re } of J)
51707
+ this.region.containsView(te) || this.region.addView(te, re).catch((oe) => {
51708
+ console.warn(`primaria-region(${this.name}): failed to addView "${te}"`, oe);
51709
+ });
51710
+ }
51711
+ /**
51712
+ * Called when the component is removed from the DOM.
51713
+ *
51714
+ * The base mixin's `disconnectedCallback` removes the region from the manager
51715
+ * but does NOT clear `this.region`, so on a later reconnect the mixin's
51716
+ * `createRegions` sees `isNil(this.region) === false` and skips re-creating
51717
+ * the region. That breaks the "drawer opens, closes, opens again" flow:
51718
+ * the second open would render the host but never receive the plugin's
51719
+ * view. Clear the reference (and drop the orphan container) so the next
51720
+ * connect rebuilds everything from scratch.
51721
+ */
51722
+ disconnectedCallback() {
51723
+ super.disconnectedCallback(), this.region = void 0;
51724
+ const W = `${this.name}-container`;
51725
+ this.querySelector(`#${W}`)?.remove();
51726
+ }
51615
51727
  /**
51616
51728
  * Called before the component updates.
51617
51729
  * Updates the region definition if the name changes.
@@ -52372,7 +52484,7 @@ class i extends HTMLElement {
52372
52484
  const W = document.createElement("div");
52373
52485
  W.style.minHeight = "1px", W.style.width = "100%", W.style.height = this.fullHeight ? "100%" : "auto";
52374
52486
  const J = document.createElement("style");
52375
- J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$R.createRoot(W), this.renderReact();
52487
+ J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$S.createRoot(W), this.renderReact();
52376
52488
  }
52377
52489
  disconnectedCallback() {
52378
52490
  this.reactRoot && this.reactRoot.unmount();
@@ -52419,4 +52531,4 @@ export {
52419
52531
  l as y,
52420
52532
  PrimariaInteractionService as z
52421
52533
  };
52422
- //# sourceMappingURL=index-CNpXjSPp.js.map
52534
+ //# sourceMappingURL=index-td5IxyX5.js.map