@uxland/primary-shell 7.41.3 → 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.
- package/dist/{component-D15ByiOA.js → component-BCUKIjBl.js} +2 -2
- package/dist/{component-D15ByiOA.js.map → component-BCUKIjBl.js.map} +1 -1
- package/dist/{index-DSWQpDr0.js → index-td5IxyX5.js} +569 -474
- package/dist/index-td5IxyX5.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +42 -42
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/shared-components/primaria-region/primaria-region.d.ts +25 -0
- package/package.json +1 -1
- package/src/UI/shared-components/primaria-region/primaria-region.ts +42 -1
- package/dist/index-DSWQpDr0.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c$x, { useState, useRef, useEffect } from "react";
|
|
2
|
-
import r$
|
|
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 (!
|
|
82
|
+
if (!Ve(nt))
|
|
83
83
|
throw new TypeError();
|
|
84
|
-
if (!
|
|
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 (!
|
|
92
|
+
if (!Ve(At))
|
|
93
93
|
throw new TypeError();
|
|
94
|
-
if (!Be(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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
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 (!
|
|
144
|
+
if (!Ve(nt))
|
|
145
145
|
throw new TypeError();
|
|
146
|
-
if (Be(vt) || (vt = kt(vt)), !
|
|
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 (!
|
|
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
|
|
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
|
|
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 (
|
|
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 (
|
|
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 (!
|
|
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 (!
|
|
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
|
|
345
|
-
switch (
|
|
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 (!
|
|
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) &&
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}),
|
|
4821
|
-
if (utils$1.isFormData(_e) && (
|
|
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
|
|
4848
|
-
|
|
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,
|
|
4861
|
-
settle(Fe,
|
|
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
|
|
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
|
|
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 =
|
|
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 = "'",
|
|
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),
|
|
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,
|
|
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:
|
|
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 === "#") && !(
|
|
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
|
-
},
|
|
6042
|
+
}, Di = bs("argNameOrNumber"), Ri = bs("argNumber"), qi = "0", Ii = us("0", !1), Li = function() {
|
|
5984
6043
|
return 0;
|
|
5985
|
-
},
|
|
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
|
-
},
|
|
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),
|
|
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
|
|
6067
|
+
function Ni() {
|
|
6009
6068
|
return { type: "any" };
|
|
6010
6069
|
}
|
|
6011
|
-
function
|
|
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
|
|
6107
|
+
function Bi(Oe, je) {
|
|
6049
6108
|
return new SyntaxError(Oe, [], "", je);
|
|
6050
6109
|
}
|
|
6051
|
-
function
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
6129
|
-
var Oe, je, tt, bt, wt, Pt, es,
|
|
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 ? (
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
6175
|
-
return Oe = Ne, X.
|
|
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 =
|
|
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
|
|
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) ===
|
|
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,
|
|
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
|
|
6228
|
-
var Oe, je, tt, bt, wt, Pt, es,
|
|
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 ? (
|
|
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
|
|
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,
|
|
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 ? (
|
|
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,
|
|
6277
|
-
return Oe = Ne, je = jt(), je !== J ? (tt =
|
|
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(
|
|
6304
|
-
if (tt =
|
|
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(
|
|
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
|
|
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(
|
|
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 =
|
|
6329
|
-
if (Oe = Ne, je = Ne,
|
|
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 =
|
|
6394
|
+
je !== J && (Gt = Oe, je = Fi(je)), Oe = je;
|
|
6336
6395
|
}
|
|
6337
|
-
return yt--, Oe === J && (je = J, yt === 0 && Ct(
|
|
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(
|
|
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
|
|
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(
|
|
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-
|
|
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
|
{
|
|
@@ -18375,17 +18434,17 @@ function flip(X) {
|
|
|
18375
18434
|
}
|
|
18376
18435
|
if (Me)
|
|
18377
18436
|
for (var Ze = me ? 3 : 1, Fe = function(Je) {
|
|
18378
|
-
var
|
|
18437
|
+
var Ve = ye.find(function(Ye) {
|
|
18379
18438
|
var rt = De.get(Ye);
|
|
18380
18439
|
if (rt)
|
|
18381
18440
|
return rt.slice(0, Je).every(function(ot) {
|
|
18382
18441
|
return ot;
|
|
18383
18442
|
});
|
|
18384
18443
|
});
|
|
18385
|
-
if (
|
|
18386
|
-
return He =
|
|
18387
|
-
},
|
|
18388
|
-
var Be = Fe(
|
|
18444
|
+
if (Ve)
|
|
18445
|
+
return He = Ve, "break";
|
|
18446
|
+
}, Ue = Ze; Ue > 0; Ue--) {
|
|
18447
|
+
var Be = Fe(Ue);
|
|
18389
18448
|
if (Be === "break") break;
|
|
18390
18449
|
}
|
|
18391
18450
|
W.placement !== He && (W.modifiersData[te]._skip = !0, W.placement = He, W.reset = !0);
|
|
@@ -18503,10 +18562,10 @@ function preventOverflow(X) {
|
|
|
18503
18562
|
};
|
|
18504
18563
|
if (Pe) {
|
|
18505
18564
|
if (oe) {
|
|
18506
|
-
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],
|
|
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) : {
|
|
18507
18566
|
width: 0,
|
|
18508
18567
|
height: 0
|
|
18509
|
-
}, Je = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(),
|
|
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);
|
|
18510
18569
|
Pe[ye] = rs, qe[ye] = rs - Ke;
|
|
18511
18570
|
}
|
|
18512
18571
|
if (de) {
|
|
@@ -22172,7 +22231,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
|
|
|
22172
22231
|
"dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
|
|
22173
22232
|
"dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
|
|
22174
22233
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
22175
|
-
},
|
|
22234
|
+
}, Ue = {
|
|
22176
22235
|
"dss-calendar": !0,
|
|
22177
22236
|
"dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
|
|
22178
22237
|
"dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
|
|
@@ -22273,7 +22332,7 @@ const P$1 = er`dss-calendar${tr(f$n())}`, s$r = er`dss-icon${tr(f$n())}`, r$y =
|
|
|
22273
22332
|
role="listbox"
|
|
22274
22333
|
aria-label="Datepicker Range Calendar"
|
|
22275
22334
|
id="datepicker-range-calendar"
|
|
22276
|
-
class="${Rt(
|
|
22335
|
+
class="${Rt(Ue)}"
|
|
22277
22336
|
.selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
|
|
22278
22337
|
.rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
|
|
22279
22338
|
.rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
|
|
@@ -38686,7 +38745,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38686
38745
|
"dss-input-group--focused": ((Se = X._inputRangeEnd) == null ? void 0 : Se.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
|
|
38687
38746
|
"dss-input-group--read-only": (Pe = X._inputRangeEnd) == null ? void 0 : Pe.readOnly
|
|
38688
38747
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
38689
|
-
},
|
|
38748
|
+
}, Ue = {
|
|
38690
38749
|
"dss-calendar": !0,
|
|
38691
38750
|
"dss-calendar--visible": X.showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Me = X._inputRangeEnd) != null && Me.readOnly),
|
|
38692
38751
|
"dss-calendar--disabled": ((He = X._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = X._inputRangeEnd) == null ? void 0 : Ie.disabled),
|
|
@@ -38828,7 +38887,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38828
38887
|
role="listbox"
|
|
38829
38888
|
aria-label="Datepicker Range Calendar"
|
|
38830
38889
|
id="datepicker-range-calendar"
|
|
38831
|
-
class="${Rt(
|
|
38890
|
+
class="${Rt(Ue)}"
|
|
38832
38891
|
.selectedDate="${(Le = X._inputRangeStart) == null ? void 0 : Le.value}"
|
|
38833
38892
|
.rangeStartDate="${(ze = X._inputRangeStart) == null ? void 0 : ze.value}"
|
|
38834
38893
|
.rangeEndDate="${(We = X._inputRangeEnd) == null ? void 0 : We.value}"
|
|
@@ -43237,15 +43296,15 @@ var __defProp$d = Object.defineProperty, __decorateClass$d = (X, W, J, te) => {
|
|
|
43237
43296
|
(ne = X[oe]) && (re = ne(W, J, re) || re);
|
|
43238
43297
|
return re && __defProp$d(W, J, re), re;
|
|
43239
43298
|
};
|
|
43240
|
-
const
|
|
43299
|
+
const Vs = class Vs extends h$q {
|
|
43241
43300
|
render() {
|
|
43242
43301
|
return ke$1`${template$b(this)}`;
|
|
43243
43302
|
}
|
|
43244
43303
|
};
|
|
43245
|
-
|
|
43304
|
+
Vs.styles = i$U`
|
|
43246
43305
|
${r$L(styles$a)}
|
|
43247
43306
|
`;
|
|
43248
|
-
let PrimariaErrorView =
|
|
43307
|
+
let PrimariaErrorView = Vs;
|
|
43249
43308
|
__decorateClass$d([
|
|
43250
43309
|
n$A()
|
|
43251
43310
|
], PrimariaErrorView.prototype, "error");
|
|
@@ -43322,7 +43381,7 @@ var __defProp$c = Object.defineProperty, __decorateClass$c = (X, W, J, te) => {
|
|
|
43322
43381
|
(ne = X[oe]) && (re = ne(W, J, re) || re);
|
|
43323
43382
|
return re && __defProp$c(W, J, re), re;
|
|
43324
43383
|
};
|
|
43325
|
-
const
|
|
43384
|
+
const Us = class Us extends PrimariaRegionHost(h$q) {
|
|
43326
43385
|
constructor() {
|
|
43327
43386
|
super(...arguments), this.menuOpened = !1;
|
|
43328
43387
|
}
|
|
@@ -43356,10 +43415,10 @@ const Vs = class Vs extends PrimariaRegionHost(h$q) {
|
|
|
43356
43415
|
J = new MutationObserver(te), J.observe(W, { childList: !0 });
|
|
43357
43416
|
}
|
|
43358
43417
|
};
|
|
43359
|
-
|
|
43418
|
+
Us.styles = i$U`
|
|
43360
43419
|
${r$L(styles$9)}
|
|
43361
43420
|
`;
|
|
43362
|
-
let PrimariaShellHeader =
|
|
43421
|
+
let PrimariaShellHeader = Us;
|
|
43363
43422
|
__decorateClass$c([
|
|
43364
43423
|
s$K({ targetId: "header-region-container", name: shellApi.regionManager.regions.shell.header })
|
|
43365
43424
|
], PrimariaShellHeader.prototype, "headerRegion");
|
|
@@ -44447,20 +44506,20 @@ function requireQuill() {
|
|
|
44447
44506
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
44448
44507
|
}, ne = /* @__PURE__ */ (function() {
|
|
44449
44508
|
function Qe(Ze, Fe) {
|
|
44450
|
-
var
|
|
44509
|
+
var Ue = [], Be = !0, Xe = !1, Je = void 0;
|
|
44451
44510
|
try {
|
|
44452
|
-
for (var
|
|
44511
|
+
for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
|
|
44453
44512
|
;
|
|
44454
44513
|
} catch (rt) {
|
|
44455
44514
|
Xe = !0, Je = rt;
|
|
44456
44515
|
} finally {
|
|
44457
44516
|
try {
|
|
44458
|
-
!Be &&
|
|
44517
|
+
!Be && Ve.return && Ve.return();
|
|
44459
44518
|
} finally {
|
|
44460
44519
|
if (Xe) throw Je;
|
|
44461
44520
|
}
|
|
44462
44521
|
}
|
|
44463
|
-
return
|
|
44522
|
+
return Ue;
|
|
44464
44523
|
}
|
|
44465
44524
|
return function(Ze, Fe) {
|
|
44466
44525
|
if (Array.isArray(Ze))
|
|
@@ -44471,13 +44530,13 @@ function requireQuill() {
|
|
|
44471
44530
|
};
|
|
44472
44531
|
})(), de = /* @__PURE__ */ (function() {
|
|
44473
44532
|
function Qe(Ze, Fe) {
|
|
44474
|
-
for (var
|
|
44475
|
-
var Be = Fe[
|
|
44533
|
+
for (var Ue = 0; Ue < Fe.length; Ue++) {
|
|
44534
|
+
var Be = Fe[Ue];
|
|
44476
44535
|
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
|
|
44477
44536
|
}
|
|
44478
44537
|
}
|
|
44479
|
-
return function(Ze, Fe,
|
|
44480
|
-
return Fe && Qe(Ze.prototype, Fe),
|
|
44538
|
+
return function(Ze, Fe, Ue) {
|
|
44539
|
+
return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
|
|
44481
44540
|
};
|
|
44482
44541
|
})();
|
|
44483
44542
|
re(51);
|
|
@@ -44510,20 +44569,20 @@ function requireQuill() {
|
|
|
44510
44569
|
}
|
|
44511
44570
|
}, {
|
|
44512
44571
|
key: "register",
|
|
44513
|
-
value: function(Fe,
|
|
44572
|
+
value: function(Fe, Ue) {
|
|
44514
44573
|
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
44515
44574
|
if (typeof Fe != "string") {
|
|
44516
44575
|
var Je = Fe.attrName || Fe.blotName;
|
|
44517
|
-
typeof Je == "string" ? this.register("formats/" + Je, Fe,
|
|
44518
|
-
Be.register(
|
|
44576
|
+
typeof Je == "string" ? this.register("formats/" + Je, Fe, Ue) : Object.keys(Fe).forEach(function(Ve) {
|
|
44577
|
+
Be.register(Ve, Fe[Ve], Ue);
|
|
44519
44578
|
});
|
|
44520
44579
|
} else
|
|
44521
|
-
this.imports[Fe] != null && !Xe && Le.warn("Overwriting " + Fe + " with",
|
|
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();
|
|
44522
44581
|
}
|
|
44523
44582
|
}]);
|
|
44524
44583
|
function Qe(Ze) {
|
|
44525
|
-
var Fe = this,
|
|
44526
|
-
if (qe(this, Qe), this.options = We(Ze,
|
|
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)
|
|
44527
44586
|
return Le.error("Invalid Quill container", Ze);
|
|
44528
44587
|
this.options.debug && Qe.debug(this.options.debug);
|
|
44529
44588
|
var Be = this.container.innerHTML.trim();
|
|
@@ -44532,10 +44591,10 @@ function requireQuill() {
|
|
|
44532
44591
|
whitelist: this.options.formats
|
|
44533
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) {
|
|
44534
44593
|
Je === be.default.events.TEXT_CHANGE && Fe.root.classList.toggle("ql-blank", Fe.editor.isBlank());
|
|
44535
|
-
}), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je,
|
|
44594
|
+
}), this.emitter.on(be.default.events.SCROLL_UPDATE, function(Je, Ve) {
|
|
44536
44595
|
var Ye = Fe.selection.lastRange, rt = Ye && Ye.length === 0 ? Ye.index : void 0;
|
|
44537
44596
|
Ge.call(Fe, function() {
|
|
44538
|
-
return Fe.editor.update(null,
|
|
44597
|
+
return Fe.editor.update(null, Ve, rt);
|
|
44539
44598
|
}, Je);
|
|
44540
44599
|
});
|
|
44541
44600
|
var Xe = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + Be + "<p><br></p></div>");
|
|
@@ -44544,12 +44603,12 @@ function requireQuill() {
|
|
|
44544
44603
|
return de(Qe, [{
|
|
44545
44604
|
key: "addContainer",
|
|
44546
44605
|
value: function(Fe) {
|
|
44547
|
-
var
|
|
44606
|
+
var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
44548
44607
|
if (typeof Fe == "string") {
|
|
44549
44608
|
var Be = Fe;
|
|
44550
44609
|
Fe = document.createElement("div"), Fe.classList.add(Be);
|
|
44551
44610
|
}
|
|
44552
|
-
return this.container.insertBefore(Fe,
|
|
44611
|
+
return this.container.insertBefore(Fe, Ue), Fe;
|
|
44553
44612
|
}
|
|
44554
44613
|
}, {
|
|
44555
44614
|
key: "blur",
|
|
@@ -44558,11 +44617,11 @@ function requireQuill() {
|
|
|
44558
44617
|
}
|
|
44559
44618
|
}, {
|
|
44560
44619
|
key: "deleteText",
|
|
44561
|
-
value: function(Fe,
|
|
44562
|
-
var Xe = this, Je = Ke(Fe,
|
|
44563
|
-
return Fe =
|
|
44564
|
-
return Xe.editor.deleteText(Fe,
|
|
44565
|
-
}, Be, Fe, -1 *
|
|
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);
|
|
44566
44625
|
}
|
|
44567
44626
|
}, {
|
|
44568
44627
|
key: "disable",
|
|
@@ -44583,43 +44642,43 @@ function requireQuill() {
|
|
|
44583
44642
|
}
|
|
44584
44643
|
}, {
|
|
44585
44644
|
key: "format",
|
|
44586
|
-
value: function(Fe,
|
|
44645
|
+
value: function(Fe, Ue) {
|
|
44587
44646
|
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : be.default.sources.API;
|
|
44588
44647
|
return Ge.call(this, function() {
|
|
44589
|
-
var Je = Be.getSelection(!0),
|
|
44648
|
+
var Je = Be.getSelection(!0), Ve = new ue.default();
|
|
44590
44649
|
if (Je == null)
|
|
44591
|
-
return
|
|
44650
|
+
return Ve;
|
|
44592
44651
|
if (_e.default.query(Fe, _e.default.Scope.BLOCK))
|
|
44593
|
-
|
|
44652
|
+
Ve = Be.editor.formatLine(Je.index, Je.length, Ce({}, Fe, Ue));
|
|
44594
44653
|
else {
|
|
44595
44654
|
if (Je.length === 0)
|
|
44596
|
-
return Be.selection.format(Fe,
|
|
44597
|
-
|
|
44655
|
+
return Be.selection.format(Fe, Ue), Ve;
|
|
44656
|
+
Ve = Be.editor.formatText(Je.index, Je.length, Ce({}, Fe, Ue));
|
|
44598
44657
|
}
|
|
44599
|
-
return Be.setSelection(Je, be.default.sources.SILENT),
|
|
44658
|
+
return Be.setSelection(Je, be.default.sources.SILENT), Ve;
|
|
44600
44659
|
}, Xe);
|
|
44601
44660
|
}
|
|
44602
44661
|
}, {
|
|
44603
44662
|
key: "formatLine",
|
|
44604
|
-
value: function(Fe,
|
|
44605
|
-
var
|
|
44606
|
-
return Fe = ot[0],
|
|
44607
|
-
return
|
|
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);
|
|
44608
44667
|
}, Je, Fe, 0);
|
|
44609
44668
|
}
|
|
44610
44669
|
}, {
|
|
44611
44670
|
key: "formatText",
|
|
44612
|
-
value: function(Fe,
|
|
44613
|
-
var
|
|
44614
|
-
return Fe = ot[0],
|
|
44615
|
-
return
|
|
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);
|
|
44616
44675
|
}, Je, Fe, 0);
|
|
44617
44676
|
}
|
|
44618
44677
|
}, {
|
|
44619
44678
|
key: "getBounds",
|
|
44620
44679
|
value: function(Fe) {
|
|
44621
|
-
var
|
|
44622
|
-
typeof Fe == "number" ? Be = this.selection.getBounds(Fe,
|
|
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);
|
|
44623
44682
|
var Xe = this.container.getBoundingClientRect();
|
|
44624
44683
|
return {
|
|
44625
44684
|
bottom: Be.bottom - Xe.top,
|
|
@@ -44633,14 +44692,14 @@ function requireQuill() {
|
|
|
44633
44692
|
}, {
|
|
44634
44693
|
key: "getContents",
|
|
44635
44694
|
value: function() {
|
|
44636
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
44637
|
-
return Fe = Xe[0],
|
|
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);
|
|
44638
44697
|
}
|
|
44639
44698
|
}, {
|
|
44640
44699
|
key: "getFormat",
|
|
44641
44700
|
value: function() {
|
|
44642
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0),
|
|
44643
|
-
return typeof Fe == "number" ? this.editor.getFormat(Fe,
|
|
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);
|
|
44644
44703
|
}
|
|
44645
44704
|
}, {
|
|
44646
44705
|
key: "getIndex",
|
|
@@ -44665,8 +44724,8 @@ function requireQuill() {
|
|
|
44665
44724
|
}, {
|
|
44666
44725
|
key: "getLines",
|
|
44667
44726
|
value: function() {
|
|
44668
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
44669
|
-
return typeof Fe != "number" ? this.scroll.lines(Fe.index, Fe.length) : this.scroll.lines(Fe,
|
|
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);
|
|
44670
44729
|
}
|
|
44671
44730
|
}, {
|
|
44672
44731
|
key: "getModule",
|
|
@@ -44682,8 +44741,8 @@ function requireQuill() {
|
|
|
44682
44741
|
}, {
|
|
44683
44742
|
key: "getText",
|
|
44684
44743
|
value: function() {
|
|
44685
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
44686
|
-
return Fe = Xe[0],
|
|
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);
|
|
44687
44746
|
}
|
|
44688
44747
|
}, {
|
|
44689
44748
|
key: "hasFocus",
|
|
@@ -44692,19 +44751,19 @@ function requireQuill() {
|
|
|
44692
44751
|
}
|
|
44693
44752
|
}, {
|
|
44694
44753
|
key: "insertEmbed",
|
|
44695
|
-
value: function(Fe,
|
|
44754
|
+
value: function(Fe, Ue, Be) {
|
|
44696
44755
|
var Xe = this, Je = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Qe.sources.API;
|
|
44697
44756
|
return Ge.call(this, function() {
|
|
44698
|
-
return Xe.editor.insertEmbed(Fe,
|
|
44757
|
+
return Xe.editor.insertEmbed(Fe, Ue, Be);
|
|
44699
44758
|
}, Je, Fe);
|
|
44700
44759
|
}
|
|
44701
44760
|
}, {
|
|
44702
44761
|
key: "insertText",
|
|
44703
|
-
value: function(Fe,
|
|
44704
|
-
var
|
|
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);
|
|
44705
44764
|
return Fe = ot[0], Ye = ot[2], Je = ot[3], Ge.call(this, function() {
|
|
44706
|
-
return
|
|
44707
|
-
}, Je, Fe,
|
|
44765
|
+
return Ve.editor.insertText(Fe, Ue, Ye);
|
|
44766
|
+
}, Je, Fe, Ue.length);
|
|
44708
44767
|
}
|
|
44709
44768
|
}, {
|
|
44710
44769
|
key: "isEnabled",
|
|
@@ -44728,15 +44787,15 @@ function requireQuill() {
|
|
|
44728
44787
|
}
|
|
44729
44788
|
}, {
|
|
44730
44789
|
key: "pasteHTML",
|
|
44731
|
-
value: function(Fe,
|
|
44732
|
-
this.clipboard.dangerouslyPasteHTML(Fe,
|
|
44790
|
+
value: function(Fe, Ue, Be) {
|
|
44791
|
+
this.clipboard.dangerouslyPasteHTML(Fe, Ue, Be);
|
|
44733
44792
|
}
|
|
44734
44793
|
}, {
|
|
44735
44794
|
key: "removeFormat",
|
|
44736
|
-
value: function(Fe,
|
|
44737
|
-
var Xe = this, Je = Ke(Fe,
|
|
44738
|
-
return Fe =
|
|
44739
|
-
return Xe.editor.removeFormat(Fe,
|
|
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);
|
|
44740
44799
|
}, Be, Fe);
|
|
44741
44800
|
}
|
|
44742
44801
|
}, {
|
|
@@ -44747,44 +44806,44 @@ function requireQuill() {
|
|
|
44747
44806
|
}, {
|
|
44748
44807
|
key: "setContents",
|
|
44749
44808
|
value: function(Fe) {
|
|
44750
|
-
var
|
|
44809
|
+
var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
|
|
44751
44810
|
return Ge.call(this, function() {
|
|
44752
44811
|
Fe = new ue.default(Fe);
|
|
44753
|
-
var Xe =
|
|
44812
|
+
var Xe = Ue.getLength(), Je = Ue.editor.deleteText(0, Xe), Ve = Ue.editor.applyDelta(Fe), Ye = Ve.ops[Ve.ops.length - 1];
|
|
44754
44813
|
Ye != null && typeof Ye.insert == "string" && Ye.insert[Ye.insert.length - 1] === `
|
|
44755
|
-
` && (
|
|
44756
|
-
var rt = Je.compose(
|
|
44814
|
+
` && (Ue.editor.deleteText(Ue.getLength() - 1, 1), Ve.delete(1));
|
|
44815
|
+
var rt = Je.compose(Ve);
|
|
44757
44816
|
return rt;
|
|
44758
44817
|
}, Be);
|
|
44759
44818
|
}
|
|
44760
44819
|
}, {
|
|
44761
44820
|
key: "setSelection",
|
|
44762
|
-
value: function(Fe,
|
|
44821
|
+
value: function(Fe, Ue, Be) {
|
|
44763
44822
|
if (Fe == null)
|
|
44764
|
-
this.selection.setRange(null,
|
|
44823
|
+
this.selection.setRange(null, Ue || Qe.sources.API);
|
|
44765
44824
|
else {
|
|
44766
|
-
var Xe = Ke(Fe,
|
|
44767
|
-
Fe = Je[0],
|
|
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);
|
|
44768
44827
|
}
|
|
44769
44828
|
}
|
|
44770
44829
|
}, {
|
|
44771
44830
|
key: "setText",
|
|
44772
44831
|
value: function(Fe) {
|
|
44773
|
-
var
|
|
44774
|
-
return this.setContents(Be,
|
|
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);
|
|
44775
44834
|
}
|
|
44776
44835
|
}, {
|
|
44777
44836
|
key: "update",
|
|
44778
44837
|
value: function() {
|
|
44779
|
-
var Fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : be.default.sources.USER,
|
|
44780
|
-
return this.selection.update(Fe),
|
|
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;
|
|
44781
44840
|
}
|
|
44782
44841
|
}, {
|
|
44783
44842
|
key: "updateContents",
|
|
44784
44843
|
value: function(Fe) {
|
|
44785
|
-
var
|
|
44844
|
+
var Ue = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : be.default.sources.API;
|
|
44786
44845
|
return Ge.call(this, function() {
|
|
44787
|
-
return Fe = new ue.default(Fe),
|
|
44846
|
+
return Fe = new ue.default(Fe), Ue.editor.applyDelta(Fe, Be);
|
|
44788
44847
|
}, Be, !0);
|
|
44789
44848
|
}
|
|
44790
44849
|
}]), Qe;
|
|
@@ -44822,9 +44881,9 @@ function requireQuill() {
|
|
|
44822
44881
|
Xe.modules[Je] === !0 && (Xe.modules[Je] = {});
|
|
44823
44882
|
});
|
|
44824
44883
|
});
|
|
44825
|
-
var
|
|
44826
|
-
var
|
|
44827
|
-
return
|
|
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;
|
|
44828
44887
|
}, {});
|
|
44829
44888
|
return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
|
|
44830
44889
|
container: Ze.modules.toolbar
|
|
@@ -44834,34 +44893,34 @@ function requireQuill() {
|
|
|
44834
44893
|
return Ze.modules[Je] && (Xe[Je] = Ze.modules[Je]), Xe;
|
|
44835
44894
|
}, {}), Ze;
|
|
44836
44895
|
}
|
|
44837
|
-
function Ge(Qe, Ze, Fe,
|
|
44896
|
+
function Ge(Qe, Ze, Fe, Ue) {
|
|
44838
44897
|
if (this.options.strict && !this.isEnabled() && Ze === be.default.sources.USER)
|
|
44839
44898
|
return new ue.default();
|
|
44840
44899
|
var Be = Fe == null ? null : this.getSelection(), Xe = this.editor.delta, Je = Qe();
|
|
44841
|
-
if (Be != null && (Fe === !0 && (Fe = Be.index),
|
|
44842
|
-
var
|
|
44843
|
-
if ((
|
|
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) {
|
|
44844
44903
|
var rt;
|
|
44845
44904
|
(rt = this.emitter).emit.apply(rt, Ye);
|
|
44846
44905
|
}
|
|
44847
44906
|
}
|
|
44848
44907
|
return Je;
|
|
44849
44908
|
}
|
|
44850
|
-
function Ke(Qe, Ze, Fe,
|
|
44909
|
+
function Ke(Qe, Ze, Fe, Ue, Be) {
|
|
44851
44910
|
var Xe = {};
|
|
44852
|
-
return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ze != "number" ? (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];
|
|
44853
44912
|
}
|
|
44854
|
-
function ft(Qe, Ze, Fe,
|
|
44913
|
+
function ft(Qe, Ze, Fe, Ue) {
|
|
44855
44914
|
if (Qe == null) return null;
|
|
44856
44915
|
var Be = void 0, Xe = void 0;
|
|
44857
44916
|
if (Ze instanceof ue.default) {
|
|
44858
44917
|
var Je = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44859
|
-
return Ze.transformPosition(ot,
|
|
44860
|
-
}),
|
|
44861
|
-
Be =
|
|
44918
|
+
return Ze.transformPosition(ot, Ue !== be.default.sources.USER);
|
|
44919
|
+
}), Ve = ne(Je, 2);
|
|
44920
|
+
Be = Ve[0], Xe = Ve[1];
|
|
44862
44921
|
} else {
|
|
44863
44922
|
var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44864
|
-
return ot < Ze || ot === Ze &&
|
|
44923
|
+
return ot < Ze || ot === Ze && Ue === be.default.sources.USER ? ot : Fe >= 0 ? ot + Fe : Math.max(Ze, ot + Fe);
|
|
44865
44924
|
}), rt = ne(Ye, 2);
|
|
44866
44925
|
Be = rt[0], Xe = rt[1];
|
|
44867
44926
|
}
|
|
@@ -45392,20 +45451,20 @@ function requireQuill() {
|
|
|
45392
45451
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
45393
45452
|
}, ne = /* @__PURE__ */ (function() {
|
|
45394
45453
|
function Qe(Ze, Fe) {
|
|
45395
|
-
var
|
|
45454
|
+
var Ue = [], Be = !0, Xe = !1, Je = void 0;
|
|
45396
45455
|
try {
|
|
45397
|
-
for (var
|
|
45456
|
+
for (var Ve = Ze[Symbol.iterator](), Ye; !(Be = (Ye = Ve.next()).done) && (Ue.push(Ye.value), !(Fe && Ue.length === Fe)); Be = !0)
|
|
45398
45457
|
;
|
|
45399
45458
|
} catch (rt) {
|
|
45400
45459
|
Xe = !0, Je = rt;
|
|
45401
45460
|
} finally {
|
|
45402
45461
|
try {
|
|
45403
|
-
!Be &&
|
|
45462
|
+
!Be && Ve.return && Ve.return();
|
|
45404
45463
|
} finally {
|
|
45405
45464
|
if (Xe) throw Je;
|
|
45406
45465
|
}
|
|
45407
45466
|
}
|
|
45408
|
-
return
|
|
45467
|
+
return Ue;
|
|
45409
45468
|
}
|
|
45410
45469
|
return function(Ze, Fe) {
|
|
45411
45470
|
if (Array.isArray(Ze))
|
|
@@ -45416,13 +45475,13 @@ function requireQuill() {
|
|
|
45416
45475
|
};
|
|
45417
45476
|
})(), de = /* @__PURE__ */ (function() {
|
|
45418
45477
|
function Qe(Ze, Fe) {
|
|
45419
|
-
for (var
|
|
45420
|
-
var Be = Fe[
|
|
45478
|
+
for (var Ue = 0; Ue < Fe.length; Ue++) {
|
|
45479
|
+
var Be = Fe[Ue];
|
|
45421
45480
|
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ze, Be.key, Be);
|
|
45422
45481
|
}
|
|
45423
45482
|
}
|
|
45424
|
-
return function(Ze, Fe,
|
|
45425
|
-
return Fe && Qe(Ze.prototype, Fe),
|
|
45483
|
+
return function(Ze, Fe, Ue) {
|
|
45484
|
+
return Fe && Qe(Ze.prototype, Fe), Ue && Qe(Ze, Ue), Ze;
|
|
45426
45485
|
};
|
|
45427
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);
|
|
45428
45487
|
function qe(Qe) {
|
|
@@ -45442,50 +45501,50 @@ function requireQuill() {
|
|
|
45442
45501
|
return de(Qe, [{
|
|
45443
45502
|
key: "applyDelta",
|
|
45444
45503
|
value: function(Fe) {
|
|
45445
|
-
var
|
|
45504
|
+
var Ue = this, Be = !1;
|
|
45446
45505
|
this.scroll.update();
|
|
45447
45506
|
var Xe = this.scroll.length();
|
|
45448
|
-
return this.scroll.batchStart(), Fe = ft(Fe), Fe.reduce(function(Je,
|
|
45449
|
-
var Ye =
|
|
45450
|
-
if (
|
|
45451
|
-
if (typeof
|
|
45452
|
-
var ot =
|
|
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;
|
|
45453
45512
|
ot.endsWith(`
|
|
45454
45513
|
`) && Be && (Be = !1, ot = ot.slice(0, -1)), Je >= Xe && !ot.endsWith(`
|
|
45455
|
-
`) && (Be = !0),
|
|
45456
|
-
var _t =
|
|
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));
|
|
45457
45516
|
if (It instanceof Ae.default) {
|
|
45458
|
-
var
|
|
45517
|
+
var Vt = It.descendant(be.default.Leaf, qt), rs = ne(Vt, 1), Yt = rs[0];
|
|
45459
45518
|
Nt = (0, Ce.default)(Nt, (0, we.bubbleFormats)(Yt));
|
|
45460
45519
|
}
|
|
45461
45520
|
rt = pe.default.attributes.diff(Nt, rt) || {};
|
|
45462
|
-
} else if (oe(
|
|
45463
|
-
var gt = Object.keys(
|
|
45521
|
+
} else if (oe(Ve.insert) === "object") {
|
|
45522
|
+
var gt = Object.keys(Ve.insert)[0];
|
|
45464
45523
|
if (gt == null) return Je;
|
|
45465
|
-
|
|
45524
|
+
Ue.scroll.insertAt(Je, gt, Ve.insert[gt]);
|
|
45466
45525
|
}
|
|
45467
45526
|
Xe += Ye;
|
|
45468
45527
|
}
|
|
45469
45528
|
return Object.keys(rt).forEach(function(mt) {
|
|
45470
|
-
|
|
45529
|
+
Ue.scroll.formatAt(Je, Ye, mt, rt[mt]);
|
|
45471
45530
|
}), Je + Ye;
|
|
45472
|
-
}, 0), Fe.reduce(function(Je,
|
|
45473
|
-
return typeof
|
|
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);
|
|
45474
45533
|
}, 0), this.scroll.batchEnd(), this.update(Fe);
|
|
45475
45534
|
}
|
|
45476
45535
|
}, {
|
|
45477
45536
|
key: "deleteText",
|
|
45478
|
-
value: function(Fe,
|
|
45479
|
-
return this.scroll.deleteAt(Fe,
|
|
45537
|
+
value: function(Fe, Ue) {
|
|
45538
|
+
return this.scroll.deleteAt(Fe, Ue), this.update(new ue.default().retain(Fe).delete(Ue));
|
|
45480
45539
|
}
|
|
45481
45540
|
}, {
|
|
45482
45541
|
key: "formatLine",
|
|
45483
|
-
value: function(Fe,
|
|
45542
|
+
value: function(Fe, Ue) {
|
|
45484
45543
|
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45485
45544
|
return this.scroll.update(), Object.keys(Xe).forEach(function(Je) {
|
|
45486
45545
|
if (!(Be.scroll.whitelist != null && !Be.scroll.whitelist[Je])) {
|
|
45487
|
-
var
|
|
45488
|
-
|
|
45546
|
+
var Ve = Be.scroll.lines(Fe, Math.max(Ue, 1)), Ye = Ue;
|
|
45547
|
+
Ve.forEach(function(rt) {
|
|
45489
45548
|
var ot = rt.length();
|
|
45490
45549
|
if (!(rt instanceof ge.default))
|
|
45491
45550
|
rt.format(Je, Xe[Je]);
|
|
@@ -45496,40 +45555,40 @@ function requireQuill() {
|
|
|
45496
45555
|
Ye -= ot;
|
|
45497
45556
|
});
|
|
45498
45557
|
}
|
|
45499
|
-
}), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(
|
|
45558
|
+
}), this.scroll.optimize(), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
|
|
45500
45559
|
}
|
|
45501
45560
|
}, {
|
|
45502
45561
|
key: "formatText",
|
|
45503
|
-
value: function(Fe,
|
|
45562
|
+
value: function(Fe, Ue) {
|
|
45504
45563
|
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45505
45564
|
return Object.keys(Xe).forEach(function(Je) {
|
|
45506
|
-
Be.scroll.formatAt(Fe,
|
|
45507
|
-
}), this.update(new ue.default().retain(Fe).retain(
|
|
45565
|
+
Be.scroll.formatAt(Fe, Ue, Je, Xe[Je]);
|
|
45566
|
+
}), this.update(new ue.default().retain(Fe).retain(Ue, (0, De.default)(Xe)));
|
|
45508
45567
|
}
|
|
45509
45568
|
}, {
|
|
45510
45569
|
key: "getContents",
|
|
45511
|
-
value: function(Fe,
|
|
45512
|
-
return this.delta.slice(Fe, Fe +
|
|
45570
|
+
value: function(Fe, Ue) {
|
|
45571
|
+
return this.delta.slice(Fe, Fe + Ue);
|
|
45513
45572
|
}
|
|
45514
45573
|
}, {
|
|
45515
45574
|
key: "getDelta",
|
|
45516
45575
|
value: function() {
|
|
45517
|
-
return this.scroll.lines().reduce(function(Fe,
|
|
45518
|
-
return Fe.concat(
|
|
45576
|
+
return this.scroll.lines().reduce(function(Fe, Ue) {
|
|
45577
|
+
return Fe.concat(Ue.delta());
|
|
45519
45578
|
}, new ue.default());
|
|
45520
45579
|
}
|
|
45521
45580
|
}, {
|
|
45522
45581
|
key: "getFormat",
|
|
45523
45582
|
value: function(Fe) {
|
|
45524
|
-
var
|
|
45525
|
-
|
|
45526
|
-
var Ye = ne(
|
|
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];
|
|
45527
45586
|
rt instanceof Ae.default ? Be.push(rt) : rt instanceof be.default.Leaf && Xe.push(rt);
|
|
45528
|
-
}) : (Be = this.scroll.lines(Fe,
|
|
45529
|
-
var Je = [Be, Xe].map(function(
|
|
45530
|
-
if (
|
|
45531
|
-
for (var Ye = (0, we.bubbleFormats)(
|
|
45532
|
-
var rt =
|
|
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();
|
|
45533
45592
|
if (rt == null) return Ye;
|
|
45534
45593
|
Ye = Ke((0, we.bubbleFormats)(rt), Ye);
|
|
45535
45594
|
}
|
|
@@ -45539,8 +45598,8 @@ function requireQuill() {
|
|
|
45539
45598
|
}
|
|
45540
45599
|
}, {
|
|
45541
45600
|
key: "getText",
|
|
45542
|
-
value: function(Fe,
|
|
45543
|
-
return this.getContents(Fe,
|
|
45601
|
+
value: function(Fe, Ue) {
|
|
45602
|
+
return this.getContents(Fe, Ue).filter(function(Be) {
|
|
45544
45603
|
return typeof Be.insert == "string";
|
|
45545
45604
|
}).map(function(Be) {
|
|
45546
45605
|
return Be.insert;
|
|
@@ -45548,18 +45607,18 @@ function requireQuill() {
|
|
|
45548
45607
|
}
|
|
45549
45608
|
}, {
|
|
45550
45609
|
key: "insertEmbed",
|
|
45551
|
-
value: function(Fe,
|
|
45552
|
-
return this.scroll.insertAt(Fe,
|
|
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)));
|
|
45553
45612
|
}
|
|
45554
45613
|
}, {
|
|
45555
45614
|
key: "insertText",
|
|
45556
|
-
value: function(Fe,
|
|
45615
|
+
value: function(Fe, Ue) {
|
|
45557
45616
|
var Be = this, Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
45558
|
-
return
|
|
45617
|
+
return Ue = Ue.replace(/\r\n/g, `
|
|
45559
45618
|
`).replace(/\r/g, `
|
|
45560
|
-
`), this.scroll.insertAt(Fe,
|
|
45561
|
-
Be.scroll.formatAt(Fe,
|
|
45562
|
-
}), this.update(new ue.default().retain(Fe).insert(
|
|
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)));
|
|
45563
45622
|
}
|
|
45564
45623
|
}, {
|
|
45565
45624
|
key: "isBlank",
|
|
@@ -45571,21 +45630,21 @@ function requireQuill() {
|
|
|
45571
45630
|
}
|
|
45572
45631
|
}, {
|
|
45573
45632
|
key: "removeFormat",
|
|
45574
|
-
value: function(Fe,
|
|
45575
|
-
var Be = this.getText(Fe,
|
|
45576
|
-
|
|
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(`
|
|
45577
45636
|
`));
|
|
45578
|
-
var _t = this.getContents(Fe,
|
|
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);
|
|
45579
45638
|
return this.applyDelta(It);
|
|
45580
45639
|
}
|
|
45581
45640
|
}, {
|
|
45582
45641
|
key: "update",
|
|
45583
45642
|
value: function(Fe) {
|
|
45584
|
-
var
|
|
45585
|
-
if (
|
|
45586
|
-
var Je = be.default.find(
|
|
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));
|
|
45587
45646
|
Fe = kt.reduce(function(It, qt) {
|
|
45588
|
-
return qt.insert ? It.insert(qt.insert,
|
|
45647
|
+
return qt.insert ? It.insert(qt.insert, Ve) : It.push(qt);
|
|
45589
45648
|
}, new ue.default()), this.delta = Xe.compose(Fe);
|
|
45590
45649
|
} else
|
|
45591
45650
|
this.delta = this.getDelta(), (!Fe || !(0, He.default)(Xe.compose(Fe), this.delta)) && (Fe = Xe.diff(this.delta, Be));
|
|
@@ -45594,15 +45653,15 @@ function requireQuill() {
|
|
|
45594
45653
|
}]), Qe;
|
|
45595
45654
|
})();
|
|
45596
45655
|
function Ke(Qe, Ze) {
|
|
45597
|
-
return Object.keys(Ze).reduce(function(Fe,
|
|
45598
|
-
return Qe[
|
|
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;
|
|
45599
45658
|
}, {});
|
|
45600
45659
|
}
|
|
45601
45660
|
function ft(Qe) {
|
|
45602
45661
|
return Qe.reduce(function(Ze, Fe) {
|
|
45603
45662
|
if (Fe.insert === 1) {
|
|
45604
|
-
var
|
|
45605
|
-
return delete
|
|
45663
|
+
var Ue = (0, De.default)(Fe.attributes);
|
|
45664
|
+
return delete Ue.image, Ze.insert({ image: Fe.attributes.image }, Ue);
|
|
45606
45665
|
}
|
|
45607
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") {
|
|
45608
45667
|
var Be = Fe.insert.replace(/\r\n/g, `
|
|
@@ -45762,17 +45821,17 @@ function requireQuill() {
|
|
|
45762
45821
|
var Fe = document.createRange();
|
|
45763
45822
|
if (qe > 0) {
|
|
45764
45823
|
Fe.setStart(ze, ft);
|
|
45765
|
-
var
|
|
45824
|
+
var Ue = this.scroll.leaf(Ce + qe), Be = oe(Ue, 2);
|
|
45766
45825
|
if (Ke = Be[0], ft = Be[1], Ke == null) return null;
|
|
45767
45826
|
var Xe = Ke.position(ft, !0), Je = oe(Xe, 2);
|
|
45768
45827
|
return ze = Je[0], ft = Je[1], Fe.setEnd(ze, ft), Fe.getBoundingClientRect();
|
|
45769
45828
|
} else {
|
|
45770
|
-
var
|
|
45771
|
-
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),
|
|
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")), {
|
|
45772
45831
|
bottom: Ye.top + Ye.height,
|
|
45773
45832
|
height: Ye.height,
|
|
45774
|
-
left: Ye[
|
|
45775
|
-
right: Ye[
|
|
45833
|
+
left: Ye[Ve],
|
|
45834
|
+
right: Ye[Ve],
|
|
45776
45835
|
top: Ye.top,
|
|
45777
45836
|
width: 0
|
|
45778
45837
|
};
|
|
@@ -45805,8 +45864,8 @@ function requireQuill() {
|
|
|
45805
45864
|
var qe = this, Le = [[Ce.start.node, Ce.start.offset]];
|
|
45806
45865
|
Ce.native.collapsed || Le.push([Ce.end.node, Ce.end.offset]);
|
|
45807
45866
|
var ze = Le.map(function(Ke) {
|
|
45808
|
-
var ft = oe(Ke, 2), Qe = ft[0], Ze = ft[1], Fe = ce.default.find(Qe, !0),
|
|
45809
|
-
return Ze === 0 ?
|
|
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);
|
|
45810
45869
|
}), We = Math.min(Math.max.apply(Math, Ae(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Ae(ze)));
|
|
45811
45870
|
return new Pe(Ge, We - Ge);
|
|
45812
45871
|
}
|
|
@@ -45837,8 +45896,8 @@ function requireQuill() {
|
|
|
45837
45896
|
var qe = this, Le = Ce.collapsed ? [Ce.index] : [Ce.index, Ce.index + Ce.length], ze = [], We = this.scroll.length();
|
|
45838
45897
|
return Le.forEach(function(Ge, Ke) {
|
|
45839
45898
|
Ge = Math.min(We - 1, Ge);
|
|
45840
|
-
var ft = void 0, Qe = qe.scroll.leaf(Ge), Ze = oe(Qe, 2), Fe = Ze[0],
|
|
45841
|
-
ft = Xe[0],
|
|
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);
|
|
45842
45901
|
}), ze.length < 2 && (ze = ze.concat(ze)), ze;
|
|
45843
45902
|
}
|
|
45844
45903
|
}, {
|
|
@@ -46354,10 +46413,10 @@ function requireQuill() {
|
|
|
46354
46413
|
Ie = new de();
|
|
46355
46414
|
else if (oe(Me, ce))
|
|
46356
46415
|
Ie = new ce(function(Ze, Fe) {
|
|
46357
|
-
Me.then(function(
|
|
46358
|
-
Ze(De(
|
|
46359
|
-
}, function(
|
|
46360
|
-
Fe(De(
|
|
46416
|
+
Me.then(function(Ue) {
|
|
46417
|
+
Ze(De(Ue, He - 1));
|
|
46418
|
+
}, function(Ue) {
|
|
46419
|
+
Fe(De(Ue, He - 1));
|
|
46361
46420
|
});
|
|
46362
46421
|
});
|
|
46363
46422
|
else if (ue.__isArray(Me))
|
|
@@ -46378,8 +46437,8 @@ function requireQuill() {
|
|
|
46378
46437
|
ye.push(Me), Se.push(Ie);
|
|
46379
46438
|
}
|
|
46380
46439
|
oe(Me, ne) && Me.forEach(function(Ze, Fe) {
|
|
46381
|
-
var
|
|
46382
|
-
Ie.set(
|
|
46440
|
+
var Ue = De(Fe, He - 1), Be = De(Ze, He - 1);
|
|
46441
|
+
Ie.set(Ue, Be);
|
|
46383
46442
|
}), oe(Me, de) && Me.forEach(function(Ze) {
|
|
46384
46443
|
var Fe = De(Ze, He - 1);
|
|
46385
46444
|
Ie.add(Fe);
|
|
@@ -46540,8 +46599,8 @@ function requireQuill() {
|
|
|
46540
46599
|
return;
|
|
46541
46600
|
}
|
|
46542
46601
|
if (Ke instanceof _e.default) {
|
|
46543
|
-
var
|
|
46544
|
-
if (
|
|
46602
|
+
var Ue = Ke.newlineIndex(Ke.length(), !0);
|
|
46603
|
+
if (Ue > -1 && (Ke = Ke.split(Ue + 1), Ke === Fe)) {
|
|
46545
46604
|
this.optimize();
|
|
46546
46605
|
return;
|
|
46547
46606
|
}
|
|
@@ -46607,8 +46666,8 @@ function requireQuill() {
|
|
|
46607
46666
|
value: function() {
|
|
46608
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) {
|
|
46609
46668
|
var Ze = [], Fe = Qe;
|
|
46610
|
-
return Ke.children.forEachAt(ft, Qe, function(
|
|
46611
|
-
Me(
|
|
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;
|
|
46612
46671
|
}), Ze;
|
|
46613
46672
|
};
|
|
46614
46673
|
return We(this, Le, ze);
|
|
@@ -46642,18 +46701,18 @@ function requireQuill() {
|
|
|
46642
46701
|
Object.defineProperty(te, "__esModule", {
|
|
46643
46702
|
value: !0
|
|
46644
46703
|
}), te.SHORTKEY = te.default = void 0;
|
|
46645
|
-
var oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
46646
|
-
return typeof
|
|
46647
|
-
} : function(
|
|
46648
|
-
return
|
|
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;
|
|
46649
46708
|
}, ne = /* @__PURE__ */ (function() {
|
|
46650
|
-
function
|
|
46709
|
+
function Ve(Ye, rt) {
|
|
46651
46710
|
var ot = [], _t = !0, kt = !1, It = void 0;
|
|
46652
46711
|
try {
|
|
46653
46712
|
for (var qt = Ye[Symbol.iterator](), Nt; !(_t = (Nt = qt.next()).done) && (ot.push(Nt.value), !(rt && ot.length === rt)); _t = !0)
|
|
46654
46713
|
;
|
|
46655
|
-
} catch (
|
|
46656
|
-
kt = !0, It =
|
|
46714
|
+
} catch (Vt) {
|
|
46715
|
+
kt = !0, It = Vt;
|
|
46657
46716
|
} finally {
|
|
46658
46717
|
try {
|
|
46659
46718
|
!_t && qt.return && qt.return();
|
|
@@ -46667,42 +46726,42 @@ function requireQuill() {
|
|
|
46667
46726
|
if (Array.isArray(Ye))
|
|
46668
46727
|
return Ye;
|
|
46669
46728
|
if (Symbol.iterator in Object(Ye))
|
|
46670
|
-
return
|
|
46729
|
+
return Ve(Ye, rt);
|
|
46671
46730
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
46672
46731
|
};
|
|
46673
46732
|
})(), de = /* @__PURE__ */ (function() {
|
|
46674
|
-
function
|
|
46733
|
+
function Ve(Ye, rt) {
|
|
46675
46734
|
for (var ot = 0; ot < rt.length; ot++) {
|
|
46676
46735
|
var _t = rt[ot];
|
|
46677
46736
|
_t.enumerable = _t.enumerable || !1, _t.configurable = !0, "value" in _t && (_t.writable = !0), Object.defineProperty(Ye, _t.key, _t);
|
|
46678
46737
|
}
|
|
46679
46738
|
}
|
|
46680
46739
|
return function(Ye, rt, ot) {
|
|
46681
|
-
return rt &&
|
|
46740
|
+
return rt && Ve(Ye.prototype, rt), ot && Ve(Ye, ot), Ye;
|
|
46682
46741
|
};
|
|
46683
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);
|
|
46684
|
-
function Ie(
|
|
46685
|
-
return
|
|
46743
|
+
function Ie(Ve) {
|
|
46744
|
+
return Ve && Ve.__esModule ? Ve : { default: Ve };
|
|
46686
46745
|
}
|
|
46687
|
-
function Ce(
|
|
46688
|
-
return Ye in
|
|
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;
|
|
46689
46748
|
}
|
|
46690
|
-
function qe(
|
|
46691
|
-
if (!(
|
|
46749
|
+
function qe(Ve, Ye) {
|
|
46750
|
+
if (!(Ve instanceof Ye))
|
|
46692
46751
|
throw new TypeError("Cannot call a class as a function");
|
|
46693
46752
|
}
|
|
46694
|
-
function Le(
|
|
46695
|
-
if (!
|
|
46753
|
+
function Le(Ve, Ye) {
|
|
46754
|
+
if (!Ve)
|
|
46696
46755
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46697
|
-
return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye :
|
|
46756
|
+
return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Ve;
|
|
46698
46757
|
}
|
|
46699
|
-
function ze(
|
|
46758
|
+
function ze(Ve, Ye) {
|
|
46700
46759
|
if (typeof Ye != "function" && Ye !== null)
|
|
46701
46760
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
|
|
46702
|
-
|
|
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);
|
|
46703
46762
|
}
|
|
46704
|
-
var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ke = (function(
|
|
46705
|
-
ze(Ye,
|
|
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, [{
|
|
46706
46765
|
key: "match",
|
|
46707
46766
|
value: function(ot, _t) {
|
|
46708
46767
|
return _t = Je(_t), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(kt) {
|
|
@@ -46715,7 +46774,7 @@ function requireQuill() {
|
|
|
46715
46774
|
var _t = Le(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
|
|
46716
46775
|
return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
|
|
46717
46776
|
kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
|
|
46718
|
-
}), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null },
|
|
46777
|
+
}), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ue), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
46719
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;
|
|
46720
46779
|
}
|
|
46721
46780
|
return de(Ye, [{
|
|
@@ -46738,7 +46797,7 @@ function requireQuill() {
|
|
|
46738
46797
|
if (It.length !== 0) {
|
|
46739
46798
|
var qt = ot.quill.getSelection();
|
|
46740
46799
|
if (!(qt == null || !ot.quill.hasFocus())) {
|
|
46741
|
-
var Nt = ot.quill.getLine(qt.index),
|
|
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 = {
|
|
46742
46801
|
collapsed: qt.length === 0,
|
|
46743
46802
|
empty: qt.length === 0 && rs.length() <= 1,
|
|
46744
46803
|
format: ot.quill.getFormat(qt),
|
|
@@ -46887,8 +46946,8 @@ function requireQuill() {
|
|
|
46887
46946
|
Nt = "ordered";
|
|
46888
46947
|
}
|
|
46889
46948
|
this.quill.insertText(Ye.index, " ", Se.default.sources.USER), this.quill.history.cutoff();
|
|
46890
|
-
var
|
|
46891
|
-
this.quill.updateContents(
|
|
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);
|
|
46892
46951
|
}
|
|
46893
46952
|
},
|
|
46894
46953
|
"code exit": {
|
|
@@ -46908,103 +46967,103 @@ function requireQuill() {
|
|
|
46908
46967
|
"embed right shift": ft(Ke.keys.RIGHT, !0)
|
|
46909
46968
|
}
|
|
46910
46969
|
};
|
|
46911
|
-
function ft(
|
|
46912
|
-
var rt, ot =
|
|
46970
|
+
function ft(Ve, Ye) {
|
|
46971
|
+
var rt, ot = Ve === Ke.keys.LEFT ? "prefix" : "suffix";
|
|
46913
46972
|
return rt = {
|
|
46914
|
-
key:
|
|
46973
|
+
key: Ve,
|
|
46915
46974
|
shiftKey: Ye,
|
|
46916
46975
|
altKey: null
|
|
46917
46976
|
}, Ce(rt, ot, /^$/), Ce(rt, "handler", function(kt) {
|
|
46918
46977
|
var It = kt.index;
|
|
46919
|
-
|
|
46920
|
-
var qt = this.quill.getLeaf(It), Nt = ne(qt, 1),
|
|
46921
|
-
return
|
|
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;
|
|
46922
46981
|
}), rt;
|
|
46923
46982
|
}
|
|
46924
|
-
function Qe(
|
|
46925
|
-
if (!(
|
|
46926
|
-
var rt = this.quill.getLine(
|
|
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 = {};
|
|
46927
46986
|
if (Ye.offset === 0) {
|
|
46928
|
-
var It = this.quill.getLine(
|
|
46987
|
+
var It = this.quill.getLine(Ve.index - 1), qt = ne(It, 1), Nt = qt[0];
|
|
46929
46988
|
if (Nt != null && Nt.length() > 1) {
|
|
46930
|
-
var
|
|
46931
|
-
kt = _e.default.attributes.diff(
|
|
46989
|
+
var Vt = _t.formats(), rs = this.quill.getFormat(Ve.index - 1, 1);
|
|
46990
|
+
kt = _e.default.attributes.diff(Vt, rs) || {};
|
|
46932
46991
|
}
|
|
46933
46992
|
}
|
|
46934
46993
|
var Yt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ye.prefix) ? 2 : 1;
|
|
46935
|
-
this.quill.deleteText(
|
|
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();
|
|
46936
46995
|
}
|
|
46937
46996
|
}
|
|
46938
|
-
function Ze(
|
|
46997
|
+
function Ze(Ve, Ye) {
|
|
46939
46998
|
var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
|
|
46940
|
-
if (!(
|
|
46941
|
-
var ot = {}, _t = 0, kt = this.quill.getLine(
|
|
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];
|
|
46942
47001
|
if (Ye.offset >= qt.length() - 1) {
|
|
46943
|
-
var Nt = this.quill.getLine(
|
|
47002
|
+
var Nt = this.quill.getLine(Ve.index + 1), Vt = ne(Nt, 1), rs = Vt[0];
|
|
46944
47003
|
if (rs) {
|
|
46945
|
-
var Yt = qt.formats(), gt = this.quill.getFormat(
|
|
47004
|
+
var Yt = qt.formats(), gt = this.quill.getFormat(Ve.index, 1);
|
|
46946
47005
|
ot = _e.default.attributes.diff(Yt, gt) || {}, _t = rs.length();
|
|
46947
47006
|
}
|
|
46948
47007
|
}
|
|
46949
|
-
this.quill.deleteText(
|
|
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);
|
|
46950
47009
|
}
|
|
46951
47010
|
}
|
|
46952
|
-
function Fe(
|
|
46953
|
-
var Ye = this.quill.getLines(
|
|
47011
|
+
function Fe(Ve) {
|
|
47012
|
+
var Ye = this.quill.getLines(Ve), rt = {};
|
|
46954
47013
|
if (Ye.length > 1) {
|
|
46955
47014
|
var ot = Ye[0].formats(), _t = Ye[Ye.length - 1].formats();
|
|
46956
47015
|
rt = _e.default.attributes.diff(_t, ot) || {};
|
|
46957
47016
|
}
|
|
46958
|
-
this.quill.deleteText(
|
|
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();
|
|
46959
47018
|
}
|
|
46960
|
-
function Ve
|
|
47019
|
+
function Ue(Ve, Ye) {
|
|
46961
47020
|
var rt = this;
|
|
46962
|
-
|
|
47021
|
+
Ve.length > 0 && this.quill.scroll.deleteAt(Ve.index, Ve.length);
|
|
46963
47022
|
var ot = Object.keys(Ye.format).reduce(function(_t, kt) {
|
|
46964
47023
|
return Ae.default.query(kt, Ae.default.Scope.BLOCK) && !Array.isArray(Ye.format[kt]) && (_t[kt] = Ye.format[kt]), _t;
|
|
46965
47024
|
}, {});
|
|
46966
|
-
this.quill.insertText(
|
|
46967
|
-
`, ot, Se.default.sources.USER), this.quill.setSelection(
|
|
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) {
|
|
46968
47027
|
ot[_t] == null && (Array.isArray(Ye.format[_t]) || _t !== "link" && rt.quill.format(_t, Ye.format[_t], Se.default.sources.USER));
|
|
46969
47028
|
});
|
|
46970
47029
|
}
|
|
46971
|
-
function Be(
|
|
47030
|
+
function Be(Ve) {
|
|
46972
47031
|
return {
|
|
46973
47032
|
key: Ke.keys.TAB,
|
|
46974
|
-
shiftKey: !
|
|
47033
|
+
shiftKey: !Ve,
|
|
46975
47034
|
format: { "code-block": !0 },
|
|
46976
47035
|
handler: function(rt) {
|
|
46977
|
-
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],
|
|
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];
|
|
46978
47037
|
if (Nt != null) {
|
|
46979
|
-
var rs = this.quill.getIndex(Nt), Yt = Nt.newlineIndex(
|
|
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(`
|
|
46980
47039
|
`);
|
|
46981
|
-
|
|
46982
|
-
|
|
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;
|
|
46983
47042
|
}), this.quill.update(Se.default.sources.USER), this.quill.setSelection(_t, kt, Se.default.sources.SILENT);
|
|
46984
47043
|
}
|
|
46985
47044
|
}
|
|
46986
47045
|
};
|
|
46987
47046
|
}
|
|
46988
|
-
function Xe(
|
|
47047
|
+
function Xe(Ve) {
|
|
46989
47048
|
return {
|
|
46990
|
-
key:
|
|
47049
|
+
key: Ve[0].toUpperCase(),
|
|
46991
47050
|
shortKey: !0,
|
|
46992
47051
|
handler: function(rt, ot) {
|
|
46993
|
-
this.quill.format(
|
|
47052
|
+
this.quill.format(Ve, !ot.format[Ve], Se.default.sources.USER);
|
|
46994
47053
|
}
|
|
46995
47054
|
};
|
|
46996
47055
|
}
|
|
46997
|
-
function Je(
|
|
46998
|
-
if (typeof
|
|
46999
|
-
return Je({ key:
|
|
47000
|
-
if ((typeof
|
|
47001
|
-
if (Ke.keys[
|
|
47002
|
-
|
|
47003
|
-
else if (
|
|
47004
|
-
|
|
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);
|
|
47005
47064
|
else
|
|
47006
47065
|
return null;
|
|
47007
|
-
return
|
|
47066
|
+
return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
|
|
47008
47067
|
}
|
|
47009
47068
|
te.default = Ke, te.SHORTKEY = Ge;
|
|
47010
47069
|
}),
|
|
@@ -47865,8 +47924,8 @@ function requireQuill() {
|
|
|
47865
47924
|
throw new TypeError("unexpected type: " + qe.type);
|
|
47866
47925
|
return Ce.setStart(Ge, 0), Ce.setEnd(Ke, Ke.length), { range: Ce, mode: "all" };
|
|
47867
47926
|
}
|
|
47868
|
-
var Ze = We(), Fe = void 0,
|
|
47869
|
-
return ft ? (qe.extend(Ge, 0), Fe = We() + ye(Ge), qe.extend(Ke, Be),
|
|
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), {
|
|
47870
47929
|
mode: ft ? "right" : "left",
|
|
47871
47930
|
range: Ce
|
|
47872
47931
|
};
|
|
@@ -48331,92 +48390,92 @@ function requireQuill() {
|
|
|
48331
48390
|
value: !0
|
|
48332
48391
|
}), te.default = te.BaseTooltip = void 0;
|
|
48333
48392
|
var oe = /* @__PURE__ */ (function() {
|
|
48334
|
-
function
|
|
48393
|
+
function Ue(Be, Xe) {
|
|
48335
48394
|
for (var Je = 0; Je < Xe.length; Je++) {
|
|
48336
|
-
var
|
|
48337
|
-
|
|
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);
|
|
48338
48397
|
}
|
|
48339
48398
|
}
|
|
48340
48399
|
return function(Be, Xe, Je) {
|
|
48341
|
-
return Xe &&
|
|
48400
|
+
return Xe && Ue(Be.prototype, Xe), Je && Ue(Be, Je), Be;
|
|
48342
48401
|
};
|
|
48343
|
-
})(), ne = function
|
|
48402
|
+
})(), ne = function Ue(Be, Xe, Je) {
|
|
48344
48403
|
Be === null && (Be = Function.prototype);
|
|
48345
|
-
var
|
|
48346
|
-
if (
|
|
48404
|
+
var Ve = Object.getOwnPropertyDescriptor(Be, Xe);
|
|
48405
|
+
if (Ve === void 0) {
|
|
48347
48406
|
var Ye = Object.getPrototypeOf(Be);
|
|
48348
|
-
return Ye === null ? void 0 :
|
|
48407
|
+
return Ye === null ? void 0 : Ue(Ye, Xe, Je);
|
|
48349
48408
|
} else {
|
|
48350
|
-
if ("value" in
|
|
48351
|
-
return
|
|
48352
|
-
var rt =
|
|
48409
|
+
if ("value" in Ve)
|
|
48410
|
+
return Ve.value;
|
|
48411
|
+
var rt = Ve.get;
|
|
48353
48412
|
return rt === void 0 ? void 0 : rt.call(Je);
|
|
48354
48413
|
}
|
|
48355
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);
|
|
48356
|
-
function He(
|
|
48357
|
-
return
|
|
48415
|
+
function He(Ue) {
|
|
48416
|
+
return Ue && Ue.__esModule ? Ue : { default: Ue };
|
|
48358
48417
|
}
|
|
48359
|
-
function Ie(
|
|
48360
|
-
if (!(
|
|
48418
|
+
function Ie(Ue, Be) {
|
|
48419
|
+
if (!(Ue instanceof Be))
|
|
48361
48420
|
throw new TypeError("Cannot call a class as a function");
|
|
48362
48421
|
}
|
|
48363
|
-
function Ce(
|
|
48364
|
-
if (!
|
|
48422
|
+
function Ce(Ue, Be) {
|
|
48423
|
+
if (!Ue)
|
|
48365
48424
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48366
|
-
return Be && (typeof Be == "object" || typeof Be == "function") ? Be :
|
|
48425
|
+
return Be && (typeof Be == "object" || typeof Be == "function") ? Be : Ue;
|
|
48367
48426
|
}
|
|
48368
|
-
function qe(
|
|
48427
|
+
function qe(Ue, Be) {
|
|
48369
48428
|
if (typeof Be != "function" && Be !== null)
|
|
48370
48429
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Be);
|
|
48371
|
-
|
|
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);
|
|
48372
48431
|
}
|
|
48373
|
-
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(
|
|
48374
|
-
qe(Be,
|
|
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);
|
|
48375
48434
|
function Be(Xe, Je) {
|
|
48376
48435
|
Ie(this, Be);
|
|
48377
|
-
var
|
|
48436
|
+
var Ve = Ce(this, (Be.__proto__ || Object.getPrototypeOf(Be)).call(this, Xe, Je)), Ye = function rt(ot) {
|
|
48378
48437
|
if (!document.body.contains(Xe.root))
|
|
48379
48438
|
return document.body.removeEventListener("click", rt);
|
|
48380
|
-
|
|
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) {
|
|
48381
48440
|
_t.container.contains(ot.target) || _t.close();
|
|
48382
48441
|
});
|
|
48383
48442
|
};
|
|
48384
|
-
return Xe.emitter.listenDOM("click", document.body, Ye),
|
|
48443
|
+
return Xe.emitter.listenDOM("click", document.body, Ye), Ve;
|
|
48385
48444
|
}
|
|
48386
48445
|
return oe(Be, [{
|
|
48387
48446
|
key: "addModule",
|
|
48388
48447
|
value: function(Je) {
|
|
48389
|
-
var
|
|
48390
|
-
return Je === "toolbar" && this.extendToolbar(
|
|
48448
|
+
var Ve = ne(Be.prototype.__proto__ || Object.getPrototypeOf(Be.prototype), "addModule", this).call(this, Je);
|
|
48449
|
+
return Je === "toolbar" && this.extendToolbar(Ve), Ve;
|
|
48391
48450
|
}
|
|
48392
48451
|
}, {
|
|
48393
48452
|
key: "buildButtons",
|
|
48394
|
-
value: function(Je,
|
|
48453
|
+
value: function(Je, Ve) {
|
|
48395
48454
|
Je.forEach(function(Ye) {
|
|
48396
48455
|
var rt = Ye.getAttribute("class") || "";
|
|
48397
48456
|
rt.split(/\s+/).forEach(function(ot) {
|
|
48398
|
-
if (ot.startsWith("ql-") && (ot = ot.slice(3),
|
|
48457
|
+
if (ot.startsWith("ql-") && (ot = ot.slice(3), Ve[ot] != null))
|
|
48399
48458
|
if (ot === "direction")
|
|
48400
|
-
Ye.innerHTML =
|
|
48401
|
-
else if (typeof
|
|
48402
|
-
Ye.innerHTML =
|
|
48459
|
+
Ye.innerHTML = Ve[ot][""] + Ve[ot].rtl;
|
|
48460
|
+
else if (typeof Ve[ot] == "string")
|
|
48461
|
+
Ye.innerHTML = Ve[ot];
|
|
48403
48462
|
else {
|
|
48404
48463
|
var _t = Ye.value || "";
|
|
48405
|
-
_t != null &&
|
|
48464
|
+
_t != null && Ve[ot][_t] && (Ye.innerHTML = Ve[ot][_t]);
|
|
48406
48465
|
}
|
|
48407
48466
|
});
|
|
48408
48467
|
});
|
|
48409
48468
|
}
|
|
48410
48469
|
}, {
|
|
48411
48470
|
key: "buildPickers",
|
|
48412
|
-
value: function(Je,
|
|
48471
|
+
value: function(Je, Ve) {
|
|
48413
48472
|
var Ye = this;
|
|
48414
48473
|
this.pickers = Je.map(function(ot) {
|
|
48415
48474
|
if (ot.classList.contains("ql-align"))
|
|
48416
|
-
return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot,
|
|
48475
|
+
return ot.querySelector("option") == null && Fe(ot, Le), new ye.default(ot, Ve.align);
|
|
48417
48476
|
if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
|
|
48418
48477
|
var _t = ot.classList.contains("ql-background") ? "background" : "color";
|
|
48419
|
-
return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot,
|
|
48478
|
+
return ot.querySelector("option") == null && Fe(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
|
|
48420
48479
|
} else
|
|
48421
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);
|
|
48422
48481
|
});
|
|
@@ -48441,9 +48500,9 @@ function requireQuill() {
|
|
|
48441
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() {
|
|
48442
48501
|
if (Xe.files != null && Xe.files[0] != null) {
|
|
48443
48502
|
var Je = new FileReader();
|
|
48444
|
-
Je.onload = function(
|
|
48503
|
+
Je.onload = function(Ve) {
|
|
48445
48504
|
var Ye = Be.quill.getSelection(!0);
|
|
48446
|
-
Be.quill.updateContents(new he.default().retain(Ye.index).delete(Ye.length).insert({ image:
|
|
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 = "";
|
|
48447
48506
|
}, Je.readAsDataURL(Xe.files[0]);
|
|
48448
48507
|
}
|
|
48449
48508
|
}), this.container.appendChild(Xe)), Xe.click();
|
|
@@ -48455,19 +48514,19 @@ function requireQuill() {
|
|
|
48455
48514
|
}
|
|
48456
48515
|
}
|
|
48457
48516
|
});
|
|
48458
|
-
var Qe = (function(
|
|
48459
|
-
qe(Be,
|
|
48517
|
+
var Qe = (function(Ue) {
|
|
48518
|
+
qe(Be, Ue);
|
|
48460
48519
|
function Be(Xe, Je) {
|
|
48461
48520
|
Ie(this, Be);
|
|
48462
|
-
var
|
|
48463
|
-
return
|
|
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;
|
|
48464
48523
|
}
|
|
48465
48524
|
return oe(Be, [{
|
|
48466
48525
|
key: "listen",
|
|
48467
48526
|
value: function() {
|
|
48468
48527
|
var Je = this;
|
|
48469
|
-
this.textbox.addEventListener("keydown", function(
|
|
48470
|
-
me.default.match(
|
|
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());
|
|
48471
48530
|
});
|
|
48472
48531
|
}
|
|
48473
48532
|
}, {
|
|
@@ -48478,8 +48537,8 @@ function requireQuill() {
|
|
|
48478
48537
|
}, {
|
|
48479
48538
|
key: "edit",
|
|
48480
48539
|
value: function() {
|
|
48481
|
-
var Je = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "link",
|
|
48482
|
-
this.root.classList.remove("ql-hidden"), this.root.classList.add("ql-editing"),
|
|
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);
|
|
48483
48542
|
}
|
|
48484
48543
|
}, {
|
|
48485
48544
|
key: "restoreFocus",
|
|
@@ -48493,8 +48552,8 @@ function requireQuill() {
|
|
|
48493
48552
|
var Je = this.textbox.value;
|
|
48494
48553
|
switch (this.root.getAttribute("data-mode")) {
|
|
48495
48554
|
case "link": {
|
|
48496
|
-
var
|
|
48497
|
-
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 =
|
|
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;
|
|
48498
48557
|
break;
|
|
48499
48558
|
}
|
|
48500
48559
|
case "video":
|
|
@@ -48514,15 +48573,15 @@ function requireQuill() {
|
|
|
48514
48573
|
}
|
|
48515
48574
|
}]), Be;
|
|
48516
48575
|
})(Me.default);
|
|
48517
|
-
function Ze(
|
|
48518
|
-
var Be =
|
|
48519
|
-
return Be ? (Be[1] || "https") + "://www.youtube.com/embed/" + Be[2] + "?showinfo=0" : (Be =
|
|
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;
|
|
48520
48579
|
}
|
|
48521
|
-
function Fe(
|
|
48580
|
+
function Fe(Ue, Be) {
|
|
48522
48581
|
var Xe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
48523
48582
|
Be.forEach(function(Je) {
|
|
48524
|
-
var
|
|
48525
|
-
Je === Xe ?
|
|
48583
|
+
var Ve = document.createElement("option");
|
|
48584
|
+
Je === Xe ? Ve.setAttribute("selected", "selected") : Ve.setAttribute("value", Je), Ue.appendChild(Ve);
|
|
48526
48585
|
});
|
|
48527
48586
|
}
|
|
48528
48587
|
te.BaseTooltip = Qe, te.default = ft;
|
|
@@ -48958,37 +49017,37 @@ function requireQuill() {
|
|
|
48958
49017
|
Ce[He + 1] = 0, qe[He + 1] = 0;
|
|
48959
49018
|
for (var ze = Pe - De, We = ze % 2 != 0, Ge = 0, Ke = 0, ft = 0, Qe = 0, Ze = 0; Ze < Me; Ze++) {
|
|
48960
49019
|
for (var Fe = -Ze + Ge; Fe <= Ze - Ke; Fe += 2) {
|
|
48961
|
-
var
|
|
48962
|
-
Fe == -Ze || Fe != Ze && Ce[
|
|
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;
|
|
48963
49022
|
for (var Xe = Be - Fe; Be < Pe && Xe < De && ye.charAt(Be) == Se.charAt(Xe); )
|
|
48964
49023
|
Be++, Xe++;
|
|
48965
|
-
if (Ce[
|
|
49024
|
+
if (Ce[Ue] = Be, Be > Pe)
|
|
48966
49025
|
Ke += 2;
|
|
48967
49026
|
else if (Xe > De)
|
|
48968
49027
|
Ge += 2;
|
|
48969
49028
|
else if (We) {
|
|
48970
49029
|
var Je = He + ze - Fe;
|
|
48971
49030
|
if (Je >= 0 && Je < Ie && qe[Je] != -1) {
|
|
48972
|
-
var
|
|
48973
|
-
if (Be >=
|
|
49031
|
+
var Ve = Pe - qe[Je];
|
|
49032
|
+
if (Be >= Ve)
|
|
48974
49033
|
return he(ye, Se, Be, Xe);
|
|
48975
49034
|
}
|
|
48976
49035
|
}
|
|
48977
49036
|
}
|
|
48978
49037
|
for (var Ye = -Ze + ft; Ye <= Ze - Qe; Ye += 2) {
|
|
48979
|
-
var Je = He + Ye,
|
|
48980
|
-
Ye == -Ze || Ye != Ze && qe[Je - 1] < qe[Je + 1] ?
|
|
48981
|
-
for (var rt =
|
|
48982
|
-
|
|
48983
|
-
if (qe[Je] =
|
|
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)
|
|
48984
49043
|
Qe += 2;
|
|
48985
49044
|
else if (rt > De)
|
|
48986
49045
|
ft += 2;
|
|
48987
49046
|
else if (!We) {
|
|
48988
|
-
var
|
|
48989
|
-
if (
|
|
48990
|
-
var Be = Ce[
|
|
48991
|
-
if (
|
|
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)
|
|
48992
49051
|
return he(ye, Se, Be, Xe);
|
|
48993
49052
|
}
|
|
48994
49053
|
}
|
|
@@ -49019,7 +49078,7 @@ function requireQuill() {
|
|
|
49019
49078
|
if (Pe.length < 4 || De.length * 2 < Pe.length)
|
|
49020
49079
|
return null;
|
|
49021
49080
|
function Me(Ke, ft, Qe) {
|
|
49022
|
-
for (var Ze = Ke.substring(Qe, Qe + Math.floor(Ke.length / 4)), Fe = -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; ) {
|
|
49023
49082
|
var Ye = pe(
|
|
49024
49083
|
Ke.substring(Qe),
|
|
49025
49084
|
ft.substring(Fe)
|
|
@@ -49027,14 +49086,14 @@ function requireQuill() {
|
|
|
49027
49086
|
Ke.substring(0, Qe),
|
|
49028
49087
|
ft.substring(0, Fe)
|
|
49029
49088
|
);
|
|
49030
|
-
|
|
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));
|
|
49031
49090
|
}
|
|
49032
|
-
return
|
|
49091
|
+
return Ue.length * 2 >= Ke.length ? [
|
|
49033
49092
|
Be,
|
|
49034
49093
|
Xe,
|
|
49035
49094
|
Je,
|
|
49036
|
-
|
|
49037
|
-
|
|
49095
|
+
Ve,
|
|
49096
|
+
Ue
|
|
49038
49097
|
] : null;
|
|
49039
49098
|
}
|
|
49040
49099
|
var He = Me(
|
|
@@ -49337,18 +49396,18 @@ function requireQuill() {
|
|
|
49337
49396
|
throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
|
|
49338
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);
|
|
49339
49398
|
}
|
|
49340
|
-
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,
|
|
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) {
|
|
49341
49400
|
return gt[mt.keyName] = mt, gt;
|
|
49342
49401
|
}, {}), Fe = [ye.AlignStyle, Se.BackgroundStyle, Me.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ce.SizeStyle].reduce(function(gt, mt) {
|
|
49343
49402
|
return gt[mt.keyName] = mt, gt;
|
|
49344
|
-
}, {}),
|
|
49403
|
+
}, {}), Ue = (function(gt) {
|
|
49345
49404
|
Ge(mt, gt);
|
|
49346
49405
|
function mt(xt, St) {
|
|
49347
49406
|
ze(this, mt);
|
|
49348
49407
|
var $t = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, St));
|
|
49349
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) {
|
|
49350
49409
|
var Mt = ne(Ft, 2), zt = Mt[0], cs = Mt[1];
|
|
49351
|
-
!St.matchVisual && cs ===
|
|
49410
|
+
!St.matchVisual && cs === Vt || $t.addMatcher(zt, cs);
|
|
49352
49411
|
}), $t;
|
|
49353
49412
|
}
|
|
49354
49413
|
return de(mt, [{
|
|
@@ -49415,7 +49474,7 @@ function requireQuill() {
|
|
|
49415
49474
|
}
|
|
49416
49475
|
}]), mt;
|
|
49417
49476
|
})(Ae.default);
|
|
49418
|
-
|
|
49477
|
+
Ue.DEFAULTS = {
|
|
49419
49478
|
matchers: [],
|
|
49420
49479
|
matchVisual: !0
|
|
49421
49480
|
};
|
|
@@ -49439,7 +49498,7 @@ function requireQuill() {
|
|
|
49439
49498
|
}
|
|
49440
49499
|
return xt.slice(-1 * mt.length) === mt;
|
|
49441
49500
|
}
|
|
49442
|
-
function
|
|
49501
|
+
function Ve(gt) {
|
|
49443
49502
|
if (gt.childNodes.length === 0) return !1;
|
|
49444
49503
|
var mt = Xe(gt);
|
|
49445
49504
|
return ["block", "list-item"].indexOf(mt.display) > -1;
|
|
@@ -49494,11 +49553,11 @@ function requireQuill() {
|
|
|
49494
49553
|
}
|
|
49495
49554
|
function Nt(gt, mt) {
|
|
49496
49555
|
return Je(mt, `
|
|
49497
|
-
`) || (
|
|
49556
|
+
`) || (Ve(gt) || mt.length() > 0 && gt.nextSibling && Ve(gt.nextSibling)) && mt.insert(`
|
|
49498
49557
|
`), mt;
|
|
49499
49558
|
}
|
|
49500
|
-
function
|
|
49501
|
-
if (
|
|
49559
|
+
function Vt(gt, mt) {
|
|
49560
|
+
if (Ve(gt) && gt.nextElementSibling != null && !Je(mt, `
|
|
49502
49561
|
|
|
49503
49562
|
`)) {
|
|
49504
49563
|
var xt = gt.offsetHeight + parseFloat(Xe(gt).marginTop) + parseFloat(Xe(gt).marginBottom);
|
|
@@ -49521,11 +49580,11 @@ function requireQuill() {
|
|
|
49521
49580
|
var St = function(Ft, Mt) {
|
|
49522
49581
|
return Mt = Mt.replace(/[^\u00a0]/g, ""), Mt.length < 1 && Ft ? " " : Mt;
|
|
49523
49582
|
};
|
|
49524
|
-
xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, St.bind(St, !0)), (gt.previousSibling == null &&
|
|
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)));
|
|
49525
49584
|
}
|
|
49526
49585
|
return mt.insert(xt);
|
|
49527
49586
|
}
|
|
49528
|
-
te.default =
|
|
49587
|
+
te.default = Ue, te.matchAttributor = ot, te.matchBlot = _t, te.matchNewline = Nt, te.matchSpacing = Vt, te.matchText = Yt;
|
|
49529
49588
|
}),
|
|
49530
49589
|
/* 57 */
|
|
49531
49590
|
/***/
|
|
@@ -49682,8 +49741,8 @@ function requireQuill() {
|
|
|
49682
49741
|
}), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ze, Fe) {
|
|
49683
49742
|
Ze === fe.default.events.SELECTION_CHANGE && Ge.update(Fe);
|
|
49684
49743
|
}), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
|
|
49685
|
-
var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1),
|
|
49686
|
-
Ge.update(
|
|
49744
|
+
var Ze = Ge.quill.selection.getRange(), Fe = oe(Ze, 1), Ue = Fe[0];
|
|
49745
|
+
Ge.update(Ue);
|
|
49687
49746
|
}), Ge;
|
|
49688
49747
|
}
|
|
49689
49748
|
return ne(Le, [{
|
|
@@ -49718,7 +49777,7 @@ function requireQuill() {
|
|
|
49718
49777
|
} else
|
|
49719
49778
|
We.classList.contains("ql-active") ? Ze = !1 : Ze = We.value || !We.hasAttribute("value"), Qe.preventDefault();
|
|
49720
49779
|
Ge.quill.focus();
|
|
49721
|
-
var
|
|
49780
|
+
var Ue = Ge.quill.selection.getRange(), Be = oe(Ue, 1), Xe = Be[0];
|
|
49722
49781
|
if (Ge.handlers[Ke] != null)
|
|
49723
49782
|
Ge.handlers[Ke].call(Ge, Ze);
|
|
49724
49783
|
else if (he.default.query(Ke).prototype instanceof he.default.Embed) {
|
|
@@ -49743,8 +49802,8 @@ function requireQuill() {
|
|
|
49743
49802
|
else if (Ge[Qe] == null)
|
|
49744
49803
|
Fe = Ze.querySelector("option[selected]");
|
|
49745
49804
|
else if (!Array.isArray(Ge[Qe])) {
|
|
49746
|
-
var
|
|
49747
|
-
typeof
|
|
49805
|
+
var Ue = Ge[Qe];
|
|
49806
|
+
typeof Ue == "string" && (Ue = Ue.replace(/\"/g, '\\"')), Fe = Ze.querySelector('option[value="' + Ue + '"]');
|
|
49748
49807
|
}
|
|
49749
49808
|
Fe == null ? (Ze.value = "", Ze.selectedIndex = -1) : Fe.selected = !0;
|
|
49750
49809
|
} else if (We == null)
|
|
@@ -50168,7 +50227,7 @@ function requireQuill() {
|
|
|
50168
50227
|
Object.defineProperty(te, "__esModule", {
|
|
50169
50228
|
value: !0
|
|
50170
50229
|
});
|
|
50171
|
-
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),
|
|
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);
|
|
50172
50231
|
function $t(Ft) {
|
|
50173
50232
|
return Ft && Ft.__esModule ? Ft : { default: Ft };
|
|
50174
50233
|
}
|
|
@@ -50215,7 +50274,7 @@ function requireQuill() {
|
|
|
50215
50274
|
"themes/snow": St.default,
|
|
50216
50275
|
"ui/icons": ot.default,
|
|
50217
50276
|
"ui/picker": kt.default,
|
|
50218
|
-
"ui/icon-picker":
|
|
50277
|
+
"ui/icon-picker": Vt.default,
|
|
50219
50278
|
"ui/color-picker": qt.default,
|
|
50220
50279
|
"ui/tooltip": Yt.default
|
|
50221
50280
|
}, !0), te.default = ne.default;
|
|
@@ -51629,6 +51688,42 @@ class PrimariaRegion extends PrimariaRegionHost(h$q) {
|
|
|
51629
51688
|
re.connectedCallback && re.connectedCallback.call(this);
|
|
51630
51689
|
}
|
|
51631
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
|
+
}
|
|
51632
51727
|
/**
|
|
51633
51728
|
* Called before the component updates.
|
|
51634
51729
|
* Updates the region definition if the name changes.
|
|
@@ -52389,7 +52484,7 @@ class i extends HTMLElement {
|
|
|
52389
52484
|
const W = document.createElement("div");
|
|
52390
52485
|
W.style.minHeight = "1px", W.style.width = "100%", W.style.height = this.fullHeight ? "100%" : "auto";
|
|
52391
52486
|
const J = document.createElement("style");
|
|
52392
|
-
J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$
|
|
52487
|
+
J.innerText = this.styles, this.root.appendChild(W), this.root.appendChild(J), this.reactRoot = r$S.createRoot(W), this.renderReact();
|
|
52393
52488
|
}
|
|
52394
52489
|
disconnectedCallback() {
|
|
52395
52490
|
this.reactRoot && this.reactRoot.unmount();
|
|
@@ -52436,4 +52531,4 @@ export {
|
|
|
52436
52531
|
l as y,
|
|
52437
52532
|
PrimariaInteractionService as z
|
|
52438
52533
|
};
|
|
52439
|
-
//# sourceMappingURL=index-
|
|
52534
|
+
//# sourceMappingURL=index-td5IxyX5.js.map
|