@happeouikit/content-renderer 3.4.6 → 3.5.1

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/index.es.js CHANGED
@@ -1,170 +1,307 @@
1
- import { jsxs as ea, Fragment as ra, jsx as Te } from "react/jsx-runtime";
1
+ import { jsxs as ta, Fragment as aa, jsx as Te } from "react/jsx-runtime";
2
+ import { CopyToClipboardButton as na } from "@happeouikit/copy-to-clipboard-button";
2
3
  import * as it from "react";
3
- import { useRef as ut, useState as ta, useCallback as aa, useEffect as na, useLayoutEffect as st, useMemo as ia } from "react";
4
- import ua from "react-dom";
5
- import At, { css as Ae } from "styled-components";
6
- import { CopyToClipboardButton as sa } from "@happeouikit/copy-to-clipboard-button";
7
- import { BodyUI as da, sansFamily as oa } from "@happeouikit/typography";
4
+ import { forwardRef as ia, useRef as ut, useState as ua, useCallback as st, useEffect as dt, useLayoutEffect as ot, useMemo as sa } from "react";
8
5
  import { media as me } from "@happeouikit/layout";
9
- import { shortToUnicode as ca, fixEmojioneBug as la } from "@happeouikit/emojis";
6
+ import { BodyUI as da, sansFamily as oa } from "@happeouikit/typography";
7
+ import ca from "react-dom";
8
+ import St, { css as Ae } from "styled-components";
9
+ import { shortToUnicode as la, fixEmojioneBug as fa } from "@happeouikit/emojis";
10
+ const pa = (e) => /* @__PURE__ */ it.createElement(
11
+ "svg",
12
+ {
13
+ viewBox: "0 0 24 24",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ width: "1em",
16
+ height: "1em",
17
+ ...e
18
+ },
19
+ /* @__PURE__ */ it.createElement(
20
+ "path",
21
+ {
22
+ fillRule: "evenodd",
23
+ clipRule: "evenodd",
24
+ d: "M7 15h3c.55 0 1 .45 1 1s-.45 1-1 1H7c-2.76 0-5-2.24-5-5s2.24-5 5-5h3c.55 0 1 .45 1 1s-.45 1-1 1H7c-1.65 0-3 1.35-3 3s1.35 3 3 3Zm10-8h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c1.65 0 3 1.35 3 3s-1.35 3-3 3h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c2.76 0 5-2.24 5-5s-2.24-5-5-5Zm-9 5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1Z"
25
+ }
26
+ )
27
+ );
10
28
  var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
29
  function Br(e) {
12
30
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
13
31
  }
14
- var Ct = { exports: {} };
32
+ var Lt = { exports: {} };
15
33
  (function(e, n) {
16
- (function(i, t) {
34
+ (function(u, t) {
17
35
  e.exports = t();
18
36
  })(xe, function() {
19
- var i = function() {
37
+ var u = function() {
20
38
  }, t = {}, s = {}, p = {};
21
- function g(y, q) {
22
- y = y.push ? y : [y];
23
- var L = [], I = y.length, O = I, z, j, N, r;
24
- for (z = function(u, a) {
25
- a.length && L.push(u), O--, O || q(L);
26
- }; I--; ) {
27
- if (j = y[I], N = s[j], N) {
28
- z(j, N);
39
+ function g(w, A) {
40
+ w = w.push ? w : [w];
41
+ var q = [], z = w.length, N = z, x, O, j, r;
42
+ for (x = function(i, a) {
43
+ a.length && q.push(i), N--, N || A(q);
44
+ }; z--; ) {
45
+ if (O = w[z], j = s[O], j) {
46
+ x(O, j);
29
47
  continue;
30
48
  }
31
- r = p[j] = p[j] || [], r.push(z);
49
+ r = p[O] = p[O] || [], r.push(x);
32
50
  }
33
51
  }
34
- function m(y, q) {
35
- if (y) {
36
- var L = p[y];
37
- if (s[y] = q, !!L)
38
- for (; L.length; )
39
- L[0](y, q), L.splice(0, 1);
52
+ function m(w, A) {
53
+ if (w) {
54
+ var q = p[w];
55
+ if (s[w] = A, !!q)
56
+ for (; q.length; )
57
+ q[0](w, A), q.splice(0, 1);
40
58
  }
41
59
  }
42
- function b(y, q) {
43
- y.call && (y = { success: y }), q.length ? (y.error || i)(q) : (y.success || i)(y);
60
+ function b(w, A) {
61
+ w.call && (w = { success: w }), A.length ? (w.error || u)(A) : (w.success || u)(w);
44
62
  }
45
- function D(y, q, L, I) {
46
- var O = document, z = L.async, j = (L.numRetries || 0) + 1, N = L.before || i, r = y.replace(/[\?|#].*$/, ""), u = y.replace(/^(css|img|module|nomodule)!/, ""), a, d, o;
47
- if (I = I || 0, /(^css!|\.css$)/.test(r))
48
- o = O.createElement("link"), o.rel = "stylesheet", o.href = u, a = "hideFocus" in o, a && o.relList && (a = 0, o.rel = "preload", o.as = "style");
63
+ function D(w, A, q, z) {
64
+ var N = document, x = q.async, O = (q.numRetries || 0) + 1, j = q.before || u, r = w.replace(/[\?|#].*$/, ""), i = w.replace(/^(css|img|module|nomodule)!/, ""), a, d, c;
65
+ if (z = z || 0, /(^css!|\.css$)/.test(r))
66
+ c = N.createElement("link"), c.rel = "stylesheet", c.href = i, a = "hideFocus" in c, a && c.relList && (a = 0, c.rel = "preload", c.as = "style");
49
67
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(r))
50
- o = O.createElement("img"), o.src = u;
51
- else if (o = O.createElement("script"), o.src = u, o.async = z === void 0 ? !0 : z, d = "noModule" in o, /^module!/.test(r)) {
68
+ c = N.createElement("img"), c.src = i;
69
+ else if (c = N.createElement("script"), c.src = i, c.async = x === void 0 ? !0 : x, d = "noModule" in c, /^module!/.test(r)) {
52
70
  if (!d)
53
- return q(y, "l");
54
- o.type = "module";
71
+ return A(w, "l");
72
+ c.type = "module";
55
73
  } else if (/^nomodule!/.test(r) && d)
56
- return q(y, "l");
57
- o.onload = o.onerror = o.onbeforeload = function(f) {
58
- var c = f.type[0];
74
+ return A(w, "l");
75
+ c.onload = c.onerror = c.onbeforeload = function(f) {
76
+ var o = f.type[0];
59
77
  if (a)
60
78
  try {
61
- o.sheet.cssText.length || (c = "e");
79
+ c.sheet.cssText.length || (o = "e");
62
80
  } catch (h) {
63
- h.code != 18 && (c = "e");
81
+ h.code != 18 && (o = "e");
64
82
  }
65
- if (c == "e") {
66
- if (I += 1, I < j)
67
- return D(y, q, L, I);
68
- } else if (o.rel == "preload" && o.as == "style")
69
- return o.rel = "stylesheet";
70
- q(y, c, f.defaultPrevented);
71
- }, N(y, o) !== !1 && O.head.appendChild(o);
83
+ if (o == "e") {
84
+ if (z += 1, z < O)
85
+ return D(w, A, q, z);
86
+ } else if (c.rel == "preload" && c.as == "style")
87
+ return c.rel = "stylesheet";
88
+ A(w, o, f.defaultPrevented);
89
+ }, j(w, c) !== !1 && N.head.appendChild(c);
72
90
  }
73
- function C(y, q, L) {
74
- y = y.push ? y : [y];
75
- var I = y.length, O = I, z = [], j, N;
76
- for (j = function(r, u, a) {
77
- if (u == "e" && z.push(r), u == "b")
91
+ function S(w, A, q) {
92
+ w = w.push ? w : [w];
93
+ var z = w.length, N = z, x = [], O, j;
94
+ for (O = function(r, i, a) {
95
+ if (i == "e" && x.push(r), i == "b")
78
96
  if (a)
79
- z.push(r);
97
+ x.push(r);
80
98
  else
81
99
  return;
82
- I--, I || q(z);
83
- }, N = 0; N < O; N++)
84
- D(y[N], j, L);
100
+ z--, z || A(x);
101
+ }, j = 0; j < N; j++)
102
+ D(w[j], O, q);
85
103
  }
86
- function v(y, q, L) {
87
- var I, O;
88
- if (q && q.trim && (I = q), O = (I ? L : q) || {}, I) {
89
- if (I in t)
104
+ function E(w, A, q) {
105
+ var z, N;
106
+ if (A && A.trim && (z = A), N = (z ? q : A) || {}, z) {
107
+ if (z in t)
90
108
  throw "LoadJS";
91
- t[I] = !0;
109
+ t[z] = !0;
92
110
  }
93
- function z(j, N) {
94
- C(y, function(r) {
95
- b(O, r), j && b({ success: j, error: N }, r), m(I, r);
96
- }, O);
111
+ function x(O, j) {
112
+ S(w, function(r) {
113
+ b(N, r), O && b({ success: O, error: j }, r), m(z, r);
114
+ }, N);
97
115
  }
98
- if (O.returnPromise)
99
- return new Promise(z);
100
- z();
116
+ if (N.returnPromise)
117
+ return new Promise(x);
118
+ x();
101
119
  }
102
- return v.ready = function(q, L) {
103
- return g(q, function(I) {
104
- b(L, I);
105
- }), v;
106
- }, v.done = function(q) {
107
- m(q, []);
108
- }, v.reset = function() {
120
+ return E.ready = function(A, q) {
121
+ return g(A, function(z) {
122
+ b(q, z);
123
+ }), E;
124
+ }, E.done = function(A) {
125
+ m(A, []);
126
+ }, E.reset = function() {
109
127
  t = {}, s = {}, p = {};
110
- }, v.isDefined = function(q) {
111
- return q in t;
112
- }, v;
128
+ }, E.isDefined = function(A) {
129
+ return A in t;
130
+ }, E;
113
131
  });
114
- })(Ct);
115
- var fa = Ct.exports;
116
- const kr = /* @__PURE__ */ Br(fa), pa = (e) => /* @__PURE__ */ it.createElement(
117
- "svg",
118
- {
119
- viewBox: "0 0 24 24",
120
- xmlns: "http://www.w3.org/2000/svg",
121
- width: "1em",
122
- height: "1em",
123
- ...e
124
- },
125
- /* @__PURE__ */ it.createElement(
126
- "path",
127
- {
128
- fillRule: "evenodd",
129
- clipRule: "evenodd",
130
- d: "M7 15h3c.55 0 1 .45 1 1s-.45 1-1 1H7c-2.76 0-5-2.24-5-5s2.24-5 5-5h3c.55 0 1 .45 1 1s-.45 1-1 1H7c-1.65 0-3 1.35-3 3s1.35 3 3 3Zm10-8h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c1.65 0 3 1.35 3 3s-1.35 3-3 3h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c2.76 0 5-2.24 5-5s-2.24-5-5-5Zm-9 5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1Z"
131
- }
132
- )
133
- );
132
+ })(Lt);
133
+ var ha = Lt.exports;
134
+ const kr = /* @__PURE__ */ Br(ha), ga = {
135
+ a: [
136
+ "class",
137
+ "target",
138
+ "href",
139
+ "title",
140
+ "rel",
141
+ "data-user-id",
142
+ "data-user-id-old",
143
+ "data-collection-id",
144
+ "data-page-id",
145
+ "data-link-id",
146
+ "data-mime-type",
147
+ "data-source",
148
+ "data-hashtag",
149
+ "data-channel-id",
150
+ "data-post-id",
151
+ "data-page-group-id",
152
+ "data-document-id",
153
+ "data-document-type",
154
+ "data-link-chip"
155
+ ],
156
+ abbr: ["title"],
157
+ address: [],
158
+ area: ["shape", "coords", "href", "alt"],
159
+ article: [],
160
+ aside: [],
161
+ audio: ["autoplay", "controls", "loop", "preload", "src"],
162
+ b: [],
163
+ bdi: ["dir"],
164
+ bdo: ["dir"],
165
+ big: [],
166
+ blockquote: ["cite"],
167
+ br: [],
168
+ caption: [],
169
+ center: [],
170
+ cite: [],
171
+ code: ["id"],
172
+ col: ["align", "valign", "span", "width"],
173
+ colgroup: ["align", "valign", "span", "width"],
174
+ dd: [],
175
+ del: ["datetime"],
176
+ details: ["open"],
177
+ div: ["style"],
178
+ dl: [],
179
+ dt: [],
180
+ em: [],
181
+ font: ["color", "size", "face", "style"],
182
+ footer: [],
183
+ h1: ["id", "class", "style"],
184
+ h2: ["id", "class", "style"],
185
+ h3: ["id", "class", "style"],
186
+ h4: ["id", "class", "style"],
187
+ h5: ["id", "class", "style"],
188
+ h6: ["id", "class", "style"],
189
+ header: ["style"],
190
+ hr: ["style", "class"],
191
+ i: [],
192
+ img: ["src", "alt", "title", "width", "height", "style", "class", "type"],
193
+ ins: ["datetime"],
194
+ li: ["style"],
195
+ mark: [],
196
+ nav: [],
197
+ ol: ["style"],
198
+ p: ["style"],
199
+ pre: ["id", "style"],
200
+ s: [],
201
+ section: [],
202
+ small: [],
203
+ span: ["style", "class"],
204
+ sub: [],
205
+ sup: [],
206
+ strong: [],
207
+ table: ["width", "border", "style", "class"],
208
+ tbody: ["align", "style", "class"],
209
+ td: ["width", "rowspan", "colspan", "style", "class"],
210
+ tfoot: ["align", "style", "class"],
211
+ th: ["width", "rowspan", "colspan", "style", "class"],
212
+ thead: ["align", "style", "class"],
213
+ tr: ["rowspan", "style", "class"],
214
+ tt: [],
215
+ u: [],
216
+ ul: ["style", "class"],
217
+ video: [
218
+ "style",
219
+ "autoplay",
220
+ "controls",
221
+ "loop",
222
+ "preload",
223
+ "src",
224
+ "height",
225
+ "width"
226
+ ],
227
+ iframe: [
228
+ "src",
229
+ "frameborder",
230
+ "allow",
231
+ "sandbox",
232
+ "referrerpolicy",
233
+ "allowfullscreen",
234
+ "style",
235
+ "class"
236
+ ]
237
+ }, ma = "a11y-light", ba = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap", va = [
238
+ "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"
239
+ ], wa = [
240
+ "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
241
+ `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${ma}.min.css`
242
+ ], ct = "PRE", ya = "CODE", _a = [
243
+ "javascript",
244
+ "html",
245
+ "css",
246
+ "xml",
247
+ "json",
248
+ "java",
249
+ "php",
250
+ "typescript"
251
+ ], Oi = /^x[a-f0-9]{7}$/, ka = /^([\w-]*)\+(x[a-f0-9]{7})$/, Hi = () => `x${Ta().substring(0, 7)}`, Ea = (e) => {
252
+ const n = e.match(ka);
253
+ return n ? n[2] : e;
254
+ };
255
+ function Ta() {
256
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
257
+ const n = Math.random() * 16 | 0;
258
+ return (e === "x" ? n : n & 3 | 8).toString(16);
259
+ });
260
+ }
261
+ const Aa = (e) => ` ${e}`.replace(
262
+ /[^a-zA-Z0-9]+(.)/g,
263
+ (n, u) => u.toUpperCase()
264
+ ), Ca = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), Sa = (e) => {
265
+ let n = (e == null ? void 0 : e.trim()) || "";
266
+ return n = Aa(n), n = Ca(n), n = n.trim(), n || "empty";
267
+ }, La = (e) => `:~:text=${encodeURIComponent(e.textContent)}`, qa = (e) => {
268
+ const n = e.id, u = e.textContent;
269
+ return n ? `${n}:~:headerText=${Sa(u)}` : !n && (u != null && u.length) ? La(e) : "";
270
+ };
134
271
  var Dr = { exports: {} }, M = {}, Pr = { exports: {} }, ce = {};
135
- function St() {
272
+ function qt() {
136
273
  var e = {};
137
274
  return e["align-content"] = !1, e["align-items"] = !1, e["align-self"] = !1, e["alignment-adjust"] = !1, e["alignment-baseline"] = !1, e.all = !1, e["anchor-point"] = !1, e.animation = !1, e["animation-delay"] = !1, e["animation-direction"] = !1, e["animation-duration"] = !1, e["animation-fill-mode"] = !1, e["animation-iteration-count"] = !1, e["animation-name"] = !1, e["animation-play-state"] = !1, e["animation-timing-function"] = !1, e.azimuth = !1, e["backface-visibility"] = !1, e.background = !0, e["background-attachment"] = !0, e["background-clip"] = !0, e["background-color"] = !0, e["background-image"] = !0, e["background-origin"] = !0, e["background-position"] = !0, e["background-repeat"] = !0, e["background-size"] = !0, e["baseline-shift"] = !1, e.binding = !1, e.bleed = !1, e["bookmark-label"] = !1, e["bookmark-level"] = !1, e["bookmark-state"] = !1, e.border = !0, e["border-bottom"] = !0, e["border-bottom-color"] = !0, e["border-bottom-left-radius"] = !0, e["border-bottom-right-radius"] = !0, e["border-bottom-style"] = !0, e["border-bottom-width"] = !0, e["border-collapse"] = !0, e["border-color"] = !0, e["border-image"] = !0, e["border-image-outset"] = !0, e["border-image-repeat"] = !0, e["border-image-slice"] = !0, e["border-image-source"] = !0, e["border-image-width"] = !0, e["border-left"] = !0, e["border-left-color"] = !0, e["border-left-style"] = !0, e["border-left-width"] = !0, e["border-radius"] = !0, e["border-right"] = !0, e["border-right-color"] = !0, e["border-right-style"] = !0, e["border-right-width"] = !0, e["border-spacing"] = !0, e["border-style"] = !0, e["border-top"] = !0, e["border-top-color"] = !0, e["border-top-left-radius"] = !0, e["border-top-right-radius"] = !0, e["border-top-style"] = !0, e["border-top-width"] = !0, e["border-width"] = !0, e.bottom = !1, e["box-decoration-break"] = !0, e["box-shadow"] = !0, e["box-sizing"] = !0, e["box-snap"] = !0, e["box-suppress"] = !0, e["break-after"] = !0, e["break-before"] = !0, e["break-inside"] = !0, e["caption-side"] = !1, e.chains = !1, e.clear = !0, e.clip = !1, e["clip-path"] = !1, e["clip-rule"] = !1, e.color = !0, e["color-interpolation-filters"] = !0, e["column-count"] = !1, e["column-fill"] = !1, e["column-gap"] = !1, e["column-rule"] = !1, e["column-rule-color"] = !1, e["column-rule-style"] = !1, e["column-rule-width"] = !1, e["column-span"] = !1, e["column-width"] = !1, e.columns = !1, e.contain = !1, e.content = !1, e["counter-increment"] = !1, e["counter-reset"] = !1, e["counter-set"] = !1, e.crop = !1, e.cue = !1, e["cue-after"] = !1, e["cue-before"] = !1, e.cursor = !1, e.direction = !1, e.display = !0, e["display-inside"] = !0, e["display-list"] = !0, e["display-outside"] = !0, e["dominant-baseline"] = !1, e.elevation = !1, e["empty-cells"] = !1, e.filter = !1, e.flex = !1, e["flex-basis"] = !1, e["flex-direction"] = !1, e["flex-flow"] = !1, e["flex-grow"] = !1, e["flex-shrink"] = !1, e["flex-wrap"] = !1, e.float = !1, e["float-offset"] = !1, e["flood-color"] = !1, e["flood-opacity"] = !1, e["flow-from"] = !1, e["flow-into"] = !1, e.font = !0, e["font-family"] = !0, e["font-feature-settings"] = !0, e["font-kerning"] = !0, e["font-language-override"] = !0, e["font-size"] = !0, e["font-size-adjust"] = !0, e["font-stretch"] = !0, e["font-style"] = !0, e["font-synthesis"] = !0, e["font-variant"] = !0, e["font-variant-alternates"] = !0, e["font-variant-caps"] = !0, e["font-variant-east-asian"] = !0, e["font-variant-ligatures"] = !0, e["font-variant-numeric"] = !0, e["font-variant-position"] = !0, e["font-weight"] = !0, e.grid = !1, e["grid-area"] = !1, e["grid-auto-columns"] = !1, e["grid-auto-flow"] = !1, e["grid-auto-rows"] = !1, e["grid-column"] = !1, e["grid-column-end"] = !1, e["grid-column-start"] = !1, e["grid-row"] = !1, e["grid-row-end"] = !1, e["grid-row-start"] = !1, e["grid-template"] = !1, e["grid-template-areas"] = !1, e["grid-template-columns"] = !1, e["grid-template-rows"] = !1, e["hanging-punctuation"] = !1, e.height = !0, e.hyphens = !1, e.icon = !1, e["image-orientation"] = !1, e["image-resolution"] = !1, e["ime-mode"] = !1, e["initial-letters"] = !1, e["inline-box-align"] = !1, e["justify-content"] = !1, e["justify-items"] = !1, e["justify-self"] = !1, e.left = !1, e["letter-spacing"] = !0, e["lighting-color"] = !0, e["line-box-contain"] = !1, e["line-break"] = !1, e["line-grid"] = !1, e["line-height"] = !1, e["line-snap"] = !1, e["line-stacking"] = !1, e["line-stacking-ruby"] = !1, e["line-stacking-shift"] = !1, e["line-stacking-strategy"] = !1, e["list-style"] = !0, e["list-style-image"] = !0, e["list-style-position"] = !0, e["list-style-type"] = !0, e.margin = !0, e["margin-bottom"] = !0, e["margin-left"] = !0, e["margin-right"] = !0, e["margin-top"] = !0, e["marker-offset"] = !1, e["marker-side"] = !1, e.marks = !1, e.mask = !1, e["mask-box"] = !1, e["mask-box-outset"] = !1, e["mask-box-repeat"] = !1, e["mask-box-slice"] = !1, e["mask-box-source"] = !1, e["mask-box-width"] = !1, e["mask-clip"] = !1, e["mask-image"] = !1, e["mask-origin"] = !1, e["mask-position"] = !1, e["mask-repeat"] = !1, e["mask-size"] = !1, e["mask-source-type"] = !1, e["mask-type"] = !1, e["max-height"] = !0, e["max-lines"] = !1, e["max-width"] = !0, e["min-height"] = !0, e["min-width"] = !0, e["move-to"] = !1, e["nav-down"] = !1, e["nav-index"] = !1, e["nav-left"] = !1, e["nav-right"] = !1, e["nav-up"] = !1, e["object-fit"] = !1, e["object-position"] = !1, e.opacity = !1, e.order = !1, e.orphans = !1, e.outline = !1, e["outline-color"] = !1, e["outline-offset"] = !1, e["outline-style"] = !1, e["outline-width"] = !1, e.overflow = !1, e["overflow-wrap"] = !1, e["overflow-x"] = !1, e["overflow-y"] = !1, e.padding = !0, e["padding-bottom"] = !0, e["padding-left"] = !0, e["padding-right"] = !0, e["padding-top"] = !0, e.page = !1, e["page-break-after"] = !1, e["page-break-before"] = !1, e["page-break-inside"] = !1, e["page-policy"] = !1, e.pause = !1, e["pause-after"] = !1, e["pause-before"] = !1, e.perspective = !1, e["perspective-origin"] = !1, e.pitch = !1, e["pitch-range"] = !1, e["play-during"] = !1, e.position = !1, e["presentation-level"] = !1, e.quotes = !1, e["region-fragment"] = !1, e.resize = !1, e.rest = !1, e["rest-after"] = !1, e["rest-before"] = !1, e.richness = !1, e.right = !1, e.rotation = !1, e["rotation-point"] = !1, e["ruby-align"] = !1, e["ruby-merge"] = !1, e["ruby-position"] = !1, e["shape-image-threshold"] = !1, e["shape-outside"] = !1, e["shape-margin"] = !1, e.size = !1, e.speak = !1, e["speak-as"] = !1, e["speak-header"] = !1, e["speak-numeral"] = !1, e["speak-punctuation"] = !1, e["speech-rate"] = !1, e.stress = !1, e["string-set"] = !1, e["tab-size"] = !1, e["table-layout"] = !1, e["text-align"] = !0, e["text-align-last"] = !0, e["text-combine-upright"] = !0, e["text-decoration"] = !0, e["text-decoration-color"] = !0, e["text-decoration-line"] = !0, e["text-decoration-skip"] = !0, e["text-decoration-style"] = !0, e["text-emphasis"] = !0, e["text-emphasis-color"] = !0, e["text-emphasis-position"] = !0, e["text-emphasis-style"] = !0, e["text-height"] = !0, e["text-indent"] = !0, e["text-justify"] = !0, e["text-orientation"] = !0, e["text-overflow"] = !0, e["text-shadow"] = !0, e["text-space-collapse"] = !0, e["text-transform"] = !0, e["text-underline-position"] = !0, e["text-wrap"] = !0, e.top = !1, e.transform = !1, e["transform-origin"] = !1, e["transform-style"] = !1, e.transition = !1, e["transition-delay"] = !1, e["transition-duration"] = !1, e["transition-property"] = !1, e["transition-timing-function"] = !1, e["unicode-bidi"] = !1, e["vertical-align"] = !1, e.visibility = !1, e["voice-balance"] = !1, e["voice-duration"] = !1, e["voice-family"] = !1, e["voice-pitch"] = !1, e["voice-range"] = !1, e["voice-rate"] = !1, e["voice-stress"] = !1, e["voice-volume"] = !1, e.volume = !1, e["white-space"] = !1, e.widows = !1, e.width = !0, e["will-change"] = !1, e["word-break"] = !0, e["word-spacing"] = !0, e["word-wrap"] = !0, e["wrap-flow"] = !1, e["wrap-through"] = !1, e["writing-mode"] = !1, e["z-index"] = !1, e;
138
275
  }
139
- function ha(e, n, i) {
276
+ function Da(e, n, u) {
140
277
  }
141
- function ga(e, n, i) {
278
+ function Pa(e, n, u) {
142
279
  }
143
- var ma = /javascript\s*\:/img;
144
- function ba(e, n) {
145
- return ma.test(n) ? "" : n;
280
+ var Ra = /javascript\s*\:/img;
281
+ function za(e, n) {
282
+ return Ra.test(n) ? "" : n;
146
283
  }
147
- ce.whiteList = St();
148
- ce.getDefaultWhiteList = St;
149
- ce.onAttr = ha;
150
- ce.onIgnoreAttr = ga;
151
- ce.safeAttrValue = ba;
152
- var va = {
284
+ ce.whiteList = qt();
285
+ ce.getDefaultWhiteList = qt;
286
+ ce.onAttr = Da;
287
+ ce.onIgnoreAttr = Pa;
288
+ ce.safeAttrValue = za;
289
+ var Na = {
153
290
  indexOf: function(e, n) {
154
- var i, t;
291
+ var u, t;
155
292
  if (Array.prototype.indexOf)
156
293
  return e.indexOf(n);
157
- for (i = 0, t = e.length; i < t; i++)
158
- if (e[i] === n)
159
- return i;
294
+ for (u = 0, t = e.length; u < t; u++)
295
+ if (e[u] === n)
296
+ return u;
160
297
  return -1;
161
298
  },
162
- forEach: function(e, n, i) {
299
+ forEach: function(e, n, u) {
163
300
  var t, s;
164
301
  if (Array.prototype.forEach)
165
- return e.forEach(n, i);
302
+ return e.forEach(n, u);
166
303
  for (t = 0, s = e.length; t < s; t++)
167
- n.call(i, e[t], t, e);
304
+ n.call(u, e[t], t, e);
168
305
  },
169
306
  trim: function(e) {
170
307
  return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
@@ -172,24 +309,24 @@ var va = {
172
309
  trimRight: function(e) {
173
310
  return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
174
311
  }
175
- }, be = va;
176
- function wa(e, n) {
312
+ }, be = Na;
313
+ function Ia(e, n) {
177
314
  e = be.trimRight(e), e[e.length - 1] !== ";" && (e += ";");
178
- var i = e.length, t = !1, s = 0, p = 0, g = "";
315
+ var u = e.length, t = !1, s = 0, p = 0, g = "";
179
316
  function m() {
180
317
  if (!t) {
181
- var C = be.trim(e.slice(s, p)), v = C.indexOf(":");
182
- if (v !== -1) {
183
- var y = be.trim(C.slice(0, v)), q = be.trim(C.slice(v + 1));
184
- if (y) {
185
- var L = n(s, g.length, y, q, C);
186
- L && (g += L + "; ");
318
+ var S = be.trim(e.slice(s, p)), E = S.indexOf(":");
319
+ if (E !== -1) {
320
+ var w = be.trim(S.slice(0, E)), A = be.trim(S.slice(E + 1));
321
+ if (w) {
322
+ var q = n(s, g.length, w, A, S);
323
+ q && (g += q + "; ");
187
324
  }
188
325
  }
189
326
  }
190
327
  s = p + 1;
191
328
  }
192
- for (; p < i; p++) {
329
+ for (; p < u; p++) {
193
330
  var b = e[p];
194
331
  if (b === "/" && e[p + 1] === "*") {
195
332
  var D = e.indexOf("*/", p + 2);
@@ -202,81 +339,81 @@ function wa(e, n) {
202
339
  }
203
340
  return be.trim(g);
204
341
  }
205
- var ya = wa, Ce = ce, _a = ya;
206
- function dt(e) {
342
+ var ja = Ia, Ce = ce, xa = ja;
343
+ function lt(e) {
207
344
  return e == null;
208
345
  }
209
- function ka(e) {
346
+ function Oa(e) {
210
347
  var n = {};
211
- for (var i in e)
212
- n[i] = e[i];
348
+ for (var u in e)
349
+ n[u] = e[u];
213
350
  return n;
214
351
  }
215
- function Lt(e) {
216
- e = ka(e || {}), e.whiteList = e.whiteList || Ce.whiteList, e.onAttr = e.onAttr || Ce.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || Ce.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || Ce.safeAttrValue, this.options = e;
352
+ function Dt(e) {
353
+ e = Oa(e || {}), e.whiteList = e.whiteList || Ce.whiteList, e.onAttr = e.onAttr || Ce.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || Ce.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || Ce.safeAttrValue, this.options = e;
217
354
  }
218
- Lt.prototype.process = function(e) {
355
+ Dt.prototype.process = function(e) {
219
356
  if (e = e || "", e = e.toString(), !e)
220
357
  return "";
221
- var n = this, i = n.options, t = i.whiteList, s = i.onAttr, p = i.onIgnoreAttr, g = i.safeAttrValue, m = _a(e, function(b, D, C, v, y) {
222
- var q = t[C], L = !1;
223
- if (q === !0 ? L = q : typeof q == "function" ? L = q(v) : q instanceof RegExp && (L = q.test(v)), L !== !0 && (L = !1), v = g(C, v), !!v) {
224
- var I = {
358
+ var n = this, u = n.options, t = u.whiteList, s = u.onAttr, p = u.onIgnoreAttr, g = u.safeAttrValue, m = xa(e, function(b, D, S, E, w) {
359
+ var A = t[S], q = !1;
360
+ if (A === !0 ? q = A : typeof A == "function" ? q = A(E) : A instanceof RegExp && (q = A.test(E)), q !== !0 && (q = !1), E = g(S, E), !!E) {
361
+ var z = {
225
362
  position: D,
226
363
  sourcePosition: b,
227
- source: y,
228
- isWhite: L
364
+ source: w,
365
+ isWhite: q
229
366
  };
230
- if (L) {
231
- var O = s(C, v, I);
232
- return dt(O) ? C + ":" + v : O;
367
+ if (q) {
368
+ var N = s(S, E, z);
369
+ return lt(N) ? S + ":" + E : N;
233
370
  } else {
234
- var O = p(C, v, I);
235
- if (!dt(O))
236
- return O;
371
+ var N = p(S, E, z);
372
+ if (!lt(N))
373
+ return N;
237
374
  }
238
375
  }
239
376
  });
240
377
  return m;
241
378
  };
242
- var Ea = Lt;
379
+ var Ha = Dt;
243
380
  (function(e, n) {
244
- var i = ce, t = Ea;
381
+ var u = ce, t = Ha;
245
382
  function s(g, m) {
246
383
  var b = new t(m);
247
384
  return b.process(g);
248
385
  }
249
386
  n = e.exports = s, n.FilterCSS = t;
250
- for (var p in i)
251
- n[p] = i[p];
387
+ for (var p in u)
388
+ n[p] = u[p];
252
389
  typeof window < "u" && (window.filterCSS = e.exports);
253
390
  })(Pr, Pr.exports);
254
391
  var Vr = Pr.exports, $r = {
255
392
  indexOf: function(e, n) {
256
- var i, t;
393
+ var u, t;
257
394
  if (Array.prototype.indexOf)
258
395
  return e.indexOf(n);
259
- for (i = 0, t = e.length; i < t; i++)
260
- if (e[i] === n)
261
- return i;
396
+ for (u = 0, t = e.length; u < t; u++)
397
+ if (e[u] === n)
398
+ return u;
262
399
  return -1;
263
400
  },
264
- forEach: function(e, n, i) {
401
+ forEach: function(e, n, u) {
265
402
  var t, s;
266
403
  if (Array.prototype.forEach)
267
- return e.forEach(n, i);
404
+ return e.forEach(n, u);
268
405
  for (t = 0, s = e.length; t < s; t++)
269
- n.call(i, e[t], t, e);
406
+ n.call(u, e[t], t, e);
270
407
  },
271
408
  trim: function(e) {
272
409
  return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
273
410
  },
274
411
  spaceIndex: function(e) {
275
- var n = /\s|\n|\t/, i = n.exec(e);
276
- return i ? i.index : -1;
412
+ var n = /\s|\n|\t/, u = n.exec(e);
413
+ return u ? u.index : -1;
277
414
  }
278
- }, Ta = Vr.FilterCSS, Aa = Vr.getDefaultWhiteList, Oe = $r;
279
- function qt() {
415
+ }, Ma = Vr.FilterCSS, Ua = Vr.getDefaultWhiteList, Oe = $r;
416
+ function Pt() {
280
417
  return {
281
418
  a: ["target", "href", "title"],
282
419
  abbr: ["title"],
@@ -368,79 +505,79 @@ function qt() {
368
505
  ]
369
506
  };
370
507
  }
371
- var Dt = new Ta();
372
- function Ca(e, n, i) {
508
+ var Rt = new Ma();
509
+ function Ba(e, n, u) {
373
510
  }
374
- function Sa(e, n, i) {
511
+ function Va(e, n, u) {
375
512
  }
376
- function La(e, n, i) {
513
+ function $a(e, n, u) {
377
514
  }
378
- function qa(e, n, i) {
515
+ function Fa(e, n, u) {
379
516
  }
380
- function Pt(e) {
381
- return e.replace(Pa, "&lt;").replace(Ra, "&gt;");
517
+ function zt(e) {
518
+ return e.replace(Wa, "&lt;").replace(Ka, "&gt;");
382
519
  }
383
- function Da(e, n, i, t) {
384
- if (i = xt(i), n === "href" || n === "src") {
385
- if (i = Oe.trim(i), i === "#")
520
+ function Ga(e, n, u, t) {
521
+ if (u = Ht(u), n === "href" || n === "src") {
522
+ if (u = Oe.trim(u), u === "#")
386
523
  return "#";
387
- if (!(i.substr(0, 7) === "http://" || i.substr(0, 8) === "https://" || i.substr(0, 7) === "mailto:" || i.substr(0, 4) === "tel:" || i.substr(0, 11) === "data:image/" || i.substr(0, 6) === "ftp://" || i.substr(0, 2) === "./" || i.substr(0, 3) === "../" || i[0] === "#" || i[0] === "/"))
524
+ if (!(u.substr(0, 7) === "http://" || u.substr(0, 8) === "https://" || u.substr(0, 7) === "mailto:" || u.substr(0, 4) === "tel:" || u.substr(0, 11) === "data:image/" || u.substr(0, 6) === "ftp://" || u.substr(0, 2) === "./" || u.substr(0, 3) === "../" || u[0] === "#" || u[0] === "/"))
388
525
  return "";
389
526
  } else if (n === "background") {
390
- if (Se.lastIndex = 0, Se.test(i))
527
+ if (Se.lastIndex = 0, Se.test(u))
391
528
  return "";
392
529
  } else if (n === "style") {
393
- if (ot.lastIndex = 0, ot.test(i) || (ct.lastIndex = 0, ct.test(i) && (Se.lastIndex = 0, Se.test(i))))
530
+ if (ft.lastIndex = 0, ft.test(u) || (pt.lastIndex = 0, pt.test(u) && (Se.lastIndex = 0, Se.test(u))))
394
531
  return "";
395
- t !== !1 && (t = t || Dt, i = t.process(i));
532
+ t !== !1 && (t = t || Rt, u = t.process(u));
396
533
  }
397
- return i = Ot(i), i;
398
- }
399
- var Pa = /</g, Ra = />/g, za = /"/g, Na = /&quot;/g, Ia = /&#([a-zA-Z0-9]*);?/gim, ja = /&colon;?/gim, xa = /&newline;?/gim, Se = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, ot = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, ct = /u\s*r\s*l\s*\(.*/gi;
400
- function Rt(e) {
401
- return e.replace(za, "&quot;");
402
- }
403
- function zt(e) {
404
- return e.replace(Na, '"');
534
+ return u = Mt(u), u;
405
535
  }
536
+ var Wa = /</g, Ka = />/g, Qa = /"/g, Za = /&quot;/g, Ya = /&#([a-zA-Z0-9]*);?/gim, Xa = /&colon;?/gim, Ja = /&newline;?/gim, Se = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, ft = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, pt = /u\s*r\s*l\s*\(.*/gi;
406
537
  function Nt(e) {
407
- return e.replace(Ia, function(i, t) {
408
- return t[0] === "x" || t[0] === "X" ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
409
- });
538
+ return e.replace(Qa, "&quot;");
410
539
  }
411
540
  function It(e) {
412
- return e.replace(ja, ":").replace(xa, " ");
541
+ return e.replace(Za, '"');
413
542
  }
414
543
  function jt(e) {
415
- for (var n = "", i = 0, t = e.length; i < t; i++)
416
- n += e.charCodeAt(i) < 32 ? " " : e.charAt(i);
417
- return Oe.trim(n);
544
+ return e.replace(Ya, function(u, t) {
545
+ return t[0] === "x" || t[0] === "X" ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
546
+ });
418
547
  }
419
548
  function xt(e) {
420
- return e = zt(e), e = Nt(e), e = It(e), e = jt(e), e;
549
+ return e.replace(Xa, ":").replace(Ja, " ");
421
550
  }
422
551
  function Ot(e) {
423
- return e = Rt(e), e = Pt(e), e;
552
+ for (var n = "", u = 0, t = e.length; u < t; u++)
553
+ n += e.charCodeAt(u) < 32 ? " " : e.charAt(u);
554
+ return Oe.trim(n);
555
+ }
556
+ function Ht(e) {
557
+ return e = It(e), e = jt(e), e = xt(e), e = Ot(e), e;
558
+ }
559
+ function Mt(e) {
560
+ return e = Nt(e), e = zt(e), e;
424
561
  }
425
- function Oa() {
562
+ function en() {
426
563
  return "";
427
564
  }
428
- function Ha(e, n) {
565
+ function rn(e, n) {
429
566
  typeof n != "function" && (n = function() {
430
567
  });
431
- var i = !Array.isArray(e);
568
+ var u = !Array.isArray(e);
432
569
  function t(g) {
433
- return i ? !0 : Oe.indexOf(e, g) !== -1;
570
+ return u ? !0 : Oe.indexOf(e, g) !== -1;
434
571
  }
435
572
  var s = [], p = !1;
436
573
  return {
437
574
  onIgnoreTag: function(g, m, b) {
438
575
  if (t(g))
439
576
  if (b.isClosing) {
440
- var D = "[/removed]", C = b.position + D.length;
577
+ var D = "[/removed]", S = b.position + D.length;
441
578
  return s.push([
442
579
  p !== !1 ? p : b.position,
443
- C
580
+ S
444
581
  ]), p = !1, D;
445
582
  } else
446
583
  return p || (p = b.position), "[removed]";
@@ -455,170 +592,170 @@ function Ha(e, n) {
455
592
  }
456
593
  };
457
594
  }
458
- function Ma(e) {
459
- for (var n = "", i = 0; i < e.length; ) {
460
- var t = e.indexOf("<!--", i);
595
+ function tn(e) {
596
+ for (var n = "", u = 0; u < e.length; ) {
597
+ var t = e.indexOf("<!--", u);
461
598
  if (t === -1) {
462
- n += e.slice(i);
599
+ n += e.slice(u);
463
600
  break;
464
601
  }
465
- n += e.slice(i, t);
602
+ n += e.slice(u, t);
466
603
  var s = e.indexOf("-->", t);
467
604
  if (s === -1)
468
605
  break;
469
- i = s + 3;
606
+ u = s + 3;
470
607
  }
471
608
  return n;
472
609
  }
473
- function Ua(e) {
610
+ function an(e) {
474
611
  var n = e.split("");
475
- return n = n.filter(function(i) {
476
- var t = i.charCodeAt(0);
612
+ return n = n.filter(function(u) {
613
+ var t = u.charCodeAt(0);
477
614
  return t === 127 ? !1 : t <= 31 ? t === 10 || t === 13 : !0;
478
615
  }), n.join("");
479
616
  }
480
- M.whiteList = qt();
481
- M.getDefaultWhiteList = qt;
482
- M.onTag = Ca;
483
- M.onIgnoreTag = Sa;
484
- M.onTagAttr = La;
485
- M.onIgnoreTagAttr = qa;
486
- M.safeAttrValue = Da;
487
- M.escapeHtml = Pt;
488
- M.escapeQuote = Rt;
489
- M.unescapeQuote = zt;
490
- M.escapeHtmlEntities = Nt;
491
- M.escapeDangerHtml5Entities = It;
492
- M.clearNonPrintableCharacter = jt;
493
- M.friendlyAttrValue = xt;
494
- M.escapeAttrValue = Ot;
495
- M.onIgnoreTagStripAll = Oa;
496
- M.StripTagBody = Ha;
497
- M.stripCommentTag = Ma;
498
- M.stripBlankChar = Ua;
617
+ M.whiteList = Pt();
618
+ M.getDefaultWhiteList = Pt;
619
+ M.onTag = Ba;
620
+ M.onIgnoreTag = Va;
621
+ M.onTagAttr = $a;
622
+ M.onIgnoreTagAttr = Fa;
623
+ M.safeAttrValue = Ga;
624
+ M.escapeHtml = zt;
625
+ M.escapeQuote = Nt;
626
+ M.unescapeQuote = It;
627
+ M.escapeHtmlEntities = jt;
628
+ M.escapeDangerHtml5Entities = xt;
629
+ M.clearNonPrintableCharacter = Ot;
630
+ M.friendlyAttrValue = Ht;
631
+ M.escapeAttrValue = Mt;
632
+ M.onIgnoreTagStripAll = en;
633
+ M.StripTagBody = rn;
634
+ M.stripCommentTag = tn;
635
+ M.stripBlankChar = an;
499
636
  M.attributeWrapSign = '"';
500
- M.cssFilter = Dt;
501
- M.getDefaultCSSWhiteList = Aa;
637
+ M.cssFilter = Rt;
638
+ M.getDefaultCSSWhiteList = Ua;
502
639
  var gr = {}, ue = $r;
503
- function Ba(e) {
504
- var n = ue.spaceIndex(e), i;
505
- return n === -1 ? i = e.slice(1, -1) : i = e.slice(1, n + 1), i = ue.trim(i).toLowerCase(), i.slice(0, 1) === "/" && (i = i.slice(1)), i.slice(-1) === "/" && (i = i.slice(0, -1)), i;
640
+ function nn(e) {
641
+ var n = ue.spaceIndex(e), u;
642
+ return n === -1 ? u = e.slice(1, -1) : u = e.slice(1, n + 1), u = ue.trim(u).toLowerCase(), u.slice(0, 1) === "/" && (u = u.slice(1)), u.slice(-1) === "/" && (u = u.slice(0, -1)), u;
506
643
  }
507
- function Va(e) {
644
+ function un(e) {
508
645
  return e.slice(0, 2) === "</";
509
646
  }
510
- function $a(e, n, i) {
511
- var t = "", s = 0, p = !1, g = !1, m = 0, b = e.length, D = "", C = "";
647
+ function sn(e, n, u) {
648
+ var t = "", s = 0, p = !1, g = !1, m = 0, b = e.length, D = "", S = "";
512
649
  e:
513
650
  for (m = 0; m < b; m++) {
514
- var v = e.charAt(m);
651
+ var E = e.charAt(m);
515
652
  if (p === !1) {
516
- if (v === "<") {
653
+ if (E === "<") {
517
654
  p = m;
518
655
  continue;
519
656
  }
520
657
  } else if (g === !1) {
521
- if (v === "<") {
522
- t += i(e.slice(s, m)), p = m, s = m;
658
+ if (E === "<") {
659
+ t += u(e.slice(s, m)), p = m, s = m;
523
660
  continue;
524
661
  }
525
- if (v === ">" || m === b - 1) {
526
- t += i(e.slice(s, p)), C = e.slice(p, m + 1), D = Ba(C), t += n(
662
+ if (E === ">" || m === b - 1) {
663
+ t += u(e.slice(s, p)), S = e.slice(p, m + 1), D = nn(S), t += n(
527
664
  p,
528
665
  t.length,
529
666
  D,
530
- C,
531
- Va(C)
667
+ S,
668
+ un(S)
532
669
  ), s = m + 1, p = !1;
533
670
  continue;
534
671
  }
535
- if (v === '"' || v === "'")
536
- for (var y = 1, q = e.charAt(m - y); q.trim() === "" || q === "="; ) {
537
- if (q === "=") {
538
- g = v;
672
+ if (E === '"' || E === "'")
673
+ for (var w = 1, A = e.charAt(m - w); A.trim() === "" || A === "="; ) {
674
+ if (A === "=") {
675
+ g = E;
539
676
  continue e;
540
677
  }
541
- q = e.charAt(m - ++y);
678
+ A = e.charAt(m - ++w);
542
679
  }
543
- } else if (v === g) {
680
+ } else if (E === g) {
544
681
  g = !1;
545
682
  continue;
546
683
  }
547
684
  }
548
- return s < b && (t += i(e.substr(s))), t;
685
+ return s < b && (t += u(e.substr(s))), t;
549
686
  }
550
- var Fa = /[^a-zA-Z0-9\\_:.-]/gim;
551
- function Ga(e, n) {
552
- var i = 0, t = 0, s = [], p = !1, g = e.length;
553
- function m(y, q) {
554
- if (y = ue.trim(y), y = y.replace(Fa, "").toLowerCase(), !(y.length < 1)) {
555
- var L = n(y, q || "");
556
- L && s.push(L);
687
+ var dn = /[^a-zA-Z0-9\\_:.-]/gim;
688
+ function on(e, n) {
689
+ var u = 0, t = 0, s = [], p = !1, g = e.length;
690
+ function m(w, A) {
691
+ if (w = ue.trim(w), w = w.replace(dn, "").toLowerCase(), !(w.length < 1)) {
692
+ var q = n(w, A || "");
693
+ q && s.push(q);
557
694
  }
558
695
  }
559
696
  for (var b = 0; b < g; b++) {
560
- var D = e.charAt(b), C, v;
697
+ var D = e.charAt(b), S, E;
561
698
  if (p === !1 && D === "=") {
562
- p = e.slice(i, b), i = b + 1, t = e.charAt(i) === '"' || e.charAt(i) === "'" ? i : Ka(e, b + 1);
699
+ p = e.slice(u, b), u = b + 1, t = e.charAt(u) === '"' || e.charAt(u) === "'" ? u : ln(e, b + 1);
563
700
  continue;
564
701
  }
565
702
  if (p !== !1 && b === t) {
566
- if (v = e.indexOf(D, b + 1), v === -1)
703
+ if (E = e.indexOf(D, b + 1), E === -1)
567
704
  break;
568
- C = ue.trim(e.slice(t + 1, v)), m(p, C), p = !1, b = v, i = b + 1;
705
+ S = ue.trim(e.slice(t + 1, E)), m(p, S), p = !1, b = E, u = b + 1;
569
706
  continue;
570
707
  }
571
708
  if (/\s|\n|\t/.test(D))
572
709
  if (e = e.replace(/\s|\n|\t/g, " "), p === !1)
573
- if (v = Wa(e, b), v === -1) {
574
- C = ue.trim(e.slice(i, b)), m(C), p = !1, i = b + 1;
710
+ if (E = cn(e, b), E === -1) {
711
+ S = ue.trim(e.slice(u, b)), m(S), p = !1, u = b + 1;
575
712
  continue;
576
713
  } else {
577
- b = v - 1;
714
+ b = E - 1;
578
715
  continue;
579
716
  }
580
- else if (v = Qa(e, b - 1), v === -1) {
581
- C = ue.trim(e.slice(i, b)), C = lt(C), m(p, C), p = !1, i = b + 1;
717
+ else if (E = fn(e, b - 1), E === -1) {
718
+ S = ue.trim(e.slice(u, b)), S = ht(S), m(p, S), p = !1, u = b + 1;
582
719
  continue;
583
720
  } else
584
721
  continue;
585
722
  }
586
- return i < e.length && (p === !1 ? m(e.slice(i)) : m(p, lt(ue.trim(e.slice(i))))), ue.trim(s.join(" "));
723
+ return u < e.length && (p === !1 ? m(e.slice(u)) : m(p, ht(ue.trim(e.slice(u))))), ue.trim(s.join(" "));
587
724
  }
588
- function Wa(e, n) {
725
+ function cn(e, n) {
589
726
  for (; n < e.length; n++) {
590
- var i = e[n];
591
- if (i !== " ")
592
- return i === "=" ? n : -1;
727
+ var u = e[n];
728
+ if (u !== " ")
729
+ return u === "=" ? n : -1;
593
730
  }
594
731
  }
595
- function Ka(e, n) {
732
+ function ln(e, n) {
596
733
  for (; n < e.length; n++) {
597
- var i = e[n];
598
- if (i !== " ")
599
- return i === "'" || i === '"' ? n : -1;
734
+ var u = e[n];
735
+ if (u !== " ")
736
+ return u === "'" || u === '"' ? n : -1;
600
737
  }
601
738
  }
602
- function Qa(e, n) {
739
+ function fn(e, n) {
603
740
  for (; n > 0; n--) {
604
- var i = e[n];
605
- if (i !== " ")
606
- return i === "=" ? n : -1;
741
+ var u = e[n];
742
+ if (u !== " ")
743
+ return u === "=" ? n : -1;
607
744
  }
608
745
  }
609
- function Za(e) {
746
+ function pn(e) {
610
747
  return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
611
748
  }
612
- function lt(e) {
613
- return Za(e) ? e.substr(1, e.length - 2) : e;
749
+ function ht(e) {
750
+ return pn(e) ? e.substr(1, e.length - 2) : e;
614
751
  }
615
- gr.parseTag = $a;
616
- gr.parseAttr = Ga;
617
- var Ya = Vr.FilterCSS, X = M, Ht = gr, Xa = Ht.parseTag, Ja = Ht.parseAttr, Ne = $r;
752
+ gr.parseTag = sn;
753
+ gr.parseAttr = on;
754
+ var hn = Vr.FilterCSS, X = M, Ut = gr, gn = Ut.parseTag, mn = Ut.parseAttr, Ne = $r;
618
755
  function Le(e) {
619
756
  return e == null;
620
757
  }
621
- function en(e) {
758
+ function bn(e) {
622
759
  var n = Ne.spaceIndex(e);
623
760
  if (n === -1)
624
761
  return {
@@ -626,77 +763,77 @@ function en(e) {
626
763
  closing: e[e.length - 2] === "/"
627
764
  };
628
765
  e = Ne.trim(e.slice(n + 1, -1));
629
- var i = e[e.length - 1] === "/";
630
- return i && (e = Ne.trim(e.slice(0, -1))), {
766
+ var u = e[e.length - 1] === "/";
767
+ return u && (e = Ne.trim(e.slice(0, -1))), {
631
768
  html: e,
632
- closing: i
769
+ closing: u
633
770
  };
634
771
  }
635
- function rn(e) {
772
+ function vn(e) {
636
773
  var n = {};
637
- for (var i in e)
638
- n[i] = e[i];
774
+ for (var u in e)
775
+ n[u] = e[u];
639
776
  return n;
640
777
  }
641
- function tn(e) {
778
+ function wn(e) {
642
779
  var n = {};
643
- for (var i in e)
644
- Array.isArray(e[i]) ? n[i.toLowerCase()] = e[i].map(function(t) {
780
+ for (var u in e)
781
+ Array.isArray(e[u]) ? n[u.toLowerCase()] = e[u].map(function(t) {
645
782
  return t.toLowerCase();
646
- }) : n[i.toLowerCase()] = e[i];
783
+ }) : n[u.toLowerCase()] = e[u];
647
784
  return n;
648
785
  }
649
- function Mt(e) {
650
- e = rn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
786
+ function Bt(e) {
787
+ e = vn(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
651
788
  'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
652
- ), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = tn(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new Ya(e.css));
789
+ ), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = wn(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new hn(e.css));
653
790
  }
654
- Mt.prototype.process = function(e) {
791
+ Bt.prototype.process = function(e) {
655
792
  if (e = e || "", e = e.toString(), !e)
656
793
  return "";
657
- var n = this, i = n.options, t = i.whiteList, s = i.onTag, p = i.onIgnoreTag, g = i.onTagAttr, m = i.onIgnoreTagAttr, b = i.safeAttrValue, D = i.escapeHtml, C = n.attributeWrapSign, v = n.cssFilter;
658
- i.stripBlankChar && (e = X.stripBlankChar(e)), i.allowCommentTag || (e = X.stripCommentTag(e));
659
- var y = !1;
660
- i.stripIgnoreTagBody && (y = X.StripTagBody(
661
- i.stripIgnoreTagBody,
794
+ var n = this, u = n.options, t = u.whiteList, s = u.onTag, p = u.onIgnoreTag, g = u.onTagAttr, m = u.onIgnoreTagAttr, b = u.safeAttrValue, D = u.escapeHtml, S = n.attributeWrapSign, E = n.cssFilter;
795
+ u.stripBlankChar && (e = X.stripBlankChar(e)), u.allowCommentTag || (e = X.stripCommentTag(e));
796
+ var w = !1;
797
+ u.stripIgnoreTagBody && (w = X.StripTagBody(
798
+ u.stripIgnoreTagBody,
662
799
  p
663
- ), p = y.onIgnoreTag);
664
- var q = Xa(
800
+ ), p = w.onIgnoreTag);
801
+ var A = gn(
665
802
  e,
666
- function(L, I, O, z, j) {
667
- var N = {
668
- sourcePosition: L,
669
- position: I,
670
- isClosing: j,
671
- isWhite: Object.prototype.hasOwnProperty.call(t, O)
672
- }, r = s(O, z, N);
803
+ function(q, z, N, x, O) {
804
+ var j = {
805
+ sourcePosition: q,
806
+ position: z,
807
+ isClosing: O,
808
+ isWhite: Object.prototype.hasOwnProperty.call(t, N)
809
+ }, r = s(N, x, j);
673
810
  if (!Le(r))
674
811
  return r;
675
- if (N.isWhite) {
676
- if (N.isClosing)
677
- return "</" + O + ">";
678
- var u = en(z), a = t[O], d = Ja(u.html, function(o, f) {
679
- var c = Ne.indexOf(a, o) !== -1, h = g(O, o, f, c);
680
- return Le(h) ? c ? (f = b(O, o, f, v), f ? o + "=" + C + f + C : o) : (h = m(O, o, f, c), Le(h) ? void 0 : h) : h;
812
+ if (j.isWhite) {
813
+ if (j.isClosing)
814
+ return "</" + N + ">";
815
+ var i = bn(x), a = t[N], d = mn(i.html, function(c, f) {
816
+ var o = Ne.indexOf(a, c) !== -1, h = g(N, c, f, o);
817
+ return Le(h) ? o ? (f = b(N, c, f, E), f ? c + "=" + S + f + S : c) : (h = m(N, c, f, o), Le(h) ? void 0 : h) : h;
681
818
  });
682
- return z = "<" + O, d && (z += " " + d), u.closing && (z += " /"), z += ">", z;
819
+ return x = "<" + N, d && (x += " " + d), i.closing && (x += " /"), x += ">", x;
683
820
  } else
684
- return r = p(O, z, N), Le(r) ? D(z) : r;
821
+ return r = p(N, x, j), Le(r) ? D(x) : r;
685
822
  },
686
823
  D
687
824
  );
688
- return y && (q = y.remove(q)), q;
825
+ return w && (A = w.remove(A)), A;
689
826
  };
690
- var an = Mt;
827
+ var yn = Bt;
691
828
  (function(e, n) {
692
- var i = M, t = gr, s = an;
829
+ var u = M, t = gr, s = yn;
693
830
  function p(m, b) {
694
831
  var D = new s(b);
695
832
  return D.process(m);
696
833
  }
697
834
  n = e.exports = p, n.filterXSS = p, n.FilterXSS = s, function() {
698
- for (var m in i)
699
- n[m] = i[m];
835
+ for (var m in u)
836
+ n[m] = u[m];
700
837
  for (var b in t)
701
838
  n[b] = t[b];
702
839
  }(), typeof window < "u" && (window.filterXSS = e.exports);
@@ -705,27 +842,27 @@ var an = Mt;
705
842
  }
706
843
  g() && (self.filterXSS = e.exports);
707
844
  })(Dr, Dr.exports);
708
- var nn = Dr.exports;
709
- const Rr = /* @__PURE__ */ Br(nn), un = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", sn = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", pe = (e, n) => {
710
- for (const i in n)
711
- e[i] = n[i];
845
+ var _n = Dr.exports;
846
+ const Rr = /* @__PURE__ */ Br(_n), kn = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", En = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", pe = (e, n) => {
847
+ for (const u in n)
848
+ e[u] = n[u];
712
849
  return e;
713
- }, zr = "numeric", Nr = "ascii", Ir = "alpha", Ie = "asciinumeric", qe = "alphanumeric", jr = "domain", Ut = "emoji", dn = "scheme", on = "slashscheme", ft = "whitespace";
714
- function cn(e, n) {
850
+ }, zr = "numeric", Nr = "ascii", Ir = "alpha", Ie = "asciinumeric", qe = "alphanumeric", jr = "domain", Vt = "emoji", Tn = "scheme", An = "slashscheme", gt = "whitespace";
851
+ function Cn(e, n) {
715
852
  return e in n || (n[e] = []), n[e];
716
853
  }
717
- function oe(e, n, i) {
718
- n[zr] && (n[Ie] = !0, n[qe] = !0), n[Nr] && (n[Ie] = !0, n[Ir] = !0), n[Ie] && (n[qe] = !0), n[Ir] && (n[qe] = !0), n[qe] && (n[jr] = !0), n[Ut] && (n[jr] = !0);
854
+ function oe(e, n, u) {
855
+ n[zr] && (n[Ie] = !0, n[qe] = !0), n[Nr] && (n[Ie] = !0, n[Ir] = !0), n[Ie] && (n[qe] = !0), n[Ir] && (n[qe] = !0), n[qe] && (n[jr] = !0), n[Vt] && (n[jr] = !0);
719
856
  for (const t in n) {
720
- const s = cn(t, i);
857
+ const s = Cn(t, u);
721
858
  s.indexOf(e) < 0 && s.push(e);
722
859
  }
723
860
  }
724
- function ln(e, n) {
725
- const i = {};
861
+ function Sn(e, n) {
862
+ const u = {};
726
863
  for (const t in n)
727
- n[t].indexOf(e) >= 0 && (i[t] = !0);
728
- return i;
864
+ n[t].indexOf(e) >= 0 && (u[t] = !0);
865
+ return u;
729
866
  }
730
867
  function Q(e) {
731
868
  e === void 0 && (e = null), this.j = {}, this.jr = [], this.jd = null, this.t = e;
@@ -742,9 +879,9 @@ Q.prototype = {
742
879
  * @returns {?State<T>} the next state, if any
743
880
  */
744
881
  go(e) {
745
- const n = this, i = n.j[e];
746
- if (i)
747
- return i;
882
+ const n = this, u = n.j[e];
883
+ if (u)
884
+ return u;
748
885
  for (let t = 0; t < n.jr.length; t++) {
749
886
  const s = n.jr[t][0], p = n.jr[t][1];
750
887
  if (p && s.test(e))
@@ -770,9 +907,9 @@ Q.prototype = {
770
907
  * @param {Flags} [flags] Collections flags to add token to
771
908
  * @param {Collections<T>} [groups] Master list of token groups
772
909
  */
773
- ta(e, n, i, t) {
910
+ ta(e, n, u, t) {
774
911
  for (let s = 0; s < e.length; s++)
775
- this.tt(e[s], n, i, t);
912
+ this.tt(e[s], n, u, t);
776
913
  },
777
914
  /**
778
915
  * Short for "take regexp transition"; defines a transition for this state
@@ -783,10 +920,10 @@ Q.prototype = {
783
920
  * @param {Collections<T>} [groups] Master list of token groups
784
921
  * @returns {State<T>} taken after the given input
785
922
  */
786
- tr(e, n, i, t) {
923
+ tr(e, n, u, t) {
787
924
  t = t || Q.groups;
788
925
  let s;
789
- return n && n.j ? s = n : (s = new Q(n), i && t && oe(n, i, t)), this.jr.push([e, s]), s;
926
+ return n && n.j ? s = n : (s = new Q(n), u && t && oe(n, u, t)), this.jr.push([e, s]), s;
790
927
  },
791
928
  /**
792
929
  * Short for "take transitions", will take as many sequential transitions as
@@ -798,14 +935,14 @@ Q.prototype = {
798
935
  * @param {Collections<T>} [groups] Master list of token groups
799
936
  * @returns {State<T>} taken after the given input
800
937
  */
801
- ts(e, n, i, t) {
938
+ ts(e, n, u, t) {
802
939
  let s = this;
803
940
  const p = e.length;
804
941
  if (!p)
805
942
  return s;
806
943
  for (let g = 0; g < p - 1; g++)
807
944
  s = s.tt(e[g]);
808
- return s.tt(e[p - 1], n, i, t);
945
+ return s.tt(e[p - 1], n, u, t);
809
946
  },
810
947
  /**
811
948
  * Short for "take transition", this is a method for building/working with
@@ -833,7 +970,7 @@ Q.prototype = {
833
970
  * @param {Collections<T>} [groups] Master list of groups
834
971
  * @returns {State<T>} taken after the given input
835
972
  */
836
- tt(e, n, i, t) {
973
+ tt(e, n, u, t) {
837
974
  t = t || Q.groups;
838
975
  const s = this;
839
976
  if (n && n.j)
@@ -843,17 +980,17 @@ Q.prototype = {
843
980
  if (m ? (g = new Q(), pe(g.j, m.j), g.jr.push.apply(g.jr, m.jr), g.jd = m.jd, g.t = m.t) : g = new Q(), p) {
844
981
  if (t)
845
982
  if (g.t && typeof g.t == "string") {
846
- const b = pe(ln(g.t, t), i);
983
+ const b = pe(Sn(g.t, t), u);
847
984
  oe(p, b, t);
848
985
  } else
849
- i && oe(p, i, t);
986
+ u && oe(p, u, t);
850
987
  g.t = p;
851
988
  }
852
989
  return s.j[e] = g, g;
853
990
  }
854
991
  };
855
- const x = (e, n, i, t, s) => e.ta(n, i, t, s), Z = (e, n, i, t, s) => e.tr(n, i, t, s), pt = (e, n, i, t, s) => e.ts(n, i, t, s), A = (e, n, i, t, s) => e.tt(n, i, t, s), ae = "WORD", xr = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", je = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", Bt = "WS", Gr = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", He = "OPENBRACKET", Me = "CLOSEBRACKET", Ue = "OPENPAREN", Be = "CLOSEPAREN", Ve = "OPENANGLEBRACKET", $e = "CLOSEANGLEBRACKET", Fe = "FULLWIDTHLEFTPAREN", Ge = "FULLWIDTHRIGHTPAREN", We = "LEFTCORNERBRACKET", Ke = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", Ye = "FULLWIDTHLESSTHAN", Xe = "FULLWIDTHGREATERTHAN", Je = "AMPERSAND", er = "APOSTROPHE", rr = "ASTERISK", se = "AT", tr = "BACKSLASH", ar = "BACKTICK", nr = "CARET", de = "COLON", Wr = "COMMA", ir = "DOLLAR", ee = "DOT", ur = "EQUALS", Kr = "EXCLAMATION", re = "HYPHEN", sr = "PERCENT", dr = "PIPE", or = "PLUS", cr = "POUND", lr = "QUERY", Qr = "QUOTE", Zr = "SEMI", te = "SLASH", ye = "TILDE", fr = "UNDERSCORE", Vt = "EMOJI", pr = "SYM";
856
- var $t = /* @__PURE__ */ Object.freeze({
992
+ const I = (e, n, u, t, s) => e.ta(n, u, t, s), Z = (e, n, u, t, s) => e.tr(n, u, t, s), mt = (e, n, u, t, s) => e.ts(n, u, t, s), C = (e, n, u, t, s) => e.tt(n, u, t, s), ae = "WORD", xr = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", je = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", $t = "WS", Gr = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", He = "OPENBRACKET", Me = "CLOSEBRACKET", Ue = "OPENPAREN", Be = "CLOSEPAREN", Ve = "OPENANGLEBRACKET", $e = "CLOSEANGLEBRACKET", Fe = "FULLWIDTHLEFTPAREN", Ge = "FULLWIDTHRIGHTPAREN", We = "LEFTCORNERBRACKET", Ke = "RIGHTCORNERBRACKET", Qe = "LEFTWHITECORNERBRACKET", Ze = "RIGHTWHITECORNERBRACKET", Ye = "FULLWIDTHLESSTHAN", Xe = "FULLWIDTHGREATERTHAN", Je = "AMPERSAND", er = "APOSTROPHE", rr = "ASTERISK", se = "AT", tr = "BACKSLASH", ar = "BACKTICK", nr = "CARET", de = "COLON", Wr = "COMMA", ir = "DOLLAR", ee = "DOT", ur = "EQUALS", Kr = "EXCLAMATION", re = "HYPHEN", sr = "PERCENT", dr = "PIPE", or = "PLUS", cr = "POUND", lr = "QUERY", Qr = "QUOTE", Zr = "SEMI", te = "SLASH", ye = "TILDE", fr = "UNDERSCORE", Ft = "EMOJI", pr = "SYM";
993
+ var Gt = /* @__PURE__ */ Object.freeze({
857
994
  __proto__: null,
858
995
  WORD: ae,
859
996
  UWORD: xr,
@@ -863,7 +1000,7 @@ var $t = /* @__PURE__ */ Object.freeze({
863
1000
  SCHEME: je,
864
1001
  SLASH_SCHEME: fe,
865
1002
  NUM: Fr,
866
- WS: Bt,
1003
+ WS: $t,
867
1004
  NL: Gr,
868
1005
  OPENBRACE: ve,
869
1006
  CLOSEBRACE: we,
@@ -905,86 +1042,86 @@ var $t = /* @__PURE__ */ Object.freeze({
905
1042
  SLASH: te,
906
1043
  TILDE: ye,
907
1044
  UNDERSCORE: fr,
908
- EMOJI: Vt,
1045
+ EMOJI: Ft,
909
1046
  SYM: pr
910
1047
  });
911
- const le = /[a-z]/, Er = new RegExp("\\p{L}", "u"), Tr = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, ht = /\s/, gt = `
912
- `, fn = "️", pn = "‍";
1048
+ const le = /[a-z]/, Er = new RegExp("\\p{L}", "u"), Tr = new RegExp("\\p{Emoji}", "u"), Ar = /\d/, bt = /\s/, vt = `
1049
+ `, Ln = "️", qn = "‍";
913
1050
  let De = null, Pe = null;
914
- function hn(e) {
1051
+ function Dn(e) {
915
1052
  e === void 0 && (e = []);
916
1053
  const n = {};
917
1054
  Q.groups = n;
918
- const i = new Q();
919
- De == null && (De = mt(un)), Pe == null && (Pe = mt(sn)), A(i, "'", er), A(i, "{", ve), A(i, "}", we), A(i, "[", He), A(i, "]", Me), A(i, "(", Ue), A(i, ")", Be), A(i, "<", Ve), A(i, ">", $e), A(i, "(", Fe), A(i, ")", Ge), A(i, "「", We), A(i, "」", Ke), A(i, "『", Qe), A(i, "』", Ze), A(i, "<", Ye), A(i, ">", Xe), A(i, "&", Je), A(i, "*", rr), A(i, "@", se), A(i, "`", ar), A(i, "^", nr), A(i, ":", de), A(i, ",", Wr), A(i, "$", ir), A(i, ".", ee), A(i, "=", ur), A(i, "!", Kr), A(i, "-", re), A(i, "%", sr), A(i, "|", dr), A(i, "+", or), A(i, "#", cr), A(i, "?", lr), A(i, '"', Qr), A(i, "/", te), A(i, ";", Zr), A(i, "~", ye), A(i, "_", fr), A(i, "\\", tr);
920
- const t = Z(i, Ar, Fr, {
1055
+ const u = new Q();
1056
+ De == null && (De = wt(kn)), Pe == null && (Pe = wt(En)), C(u, "'", er), C(u, "{", ve), C(u, "}", we), C(u, "[", He), C(u, "]", Me), C(u, "(", Ue), C(u, ")", Be), C(u, "<", Ve), C(u, ">", $e), C(u, "(", Fe), C(u, ")", Ge), C(u, "「", We), C(u, "」", Ke), C(u, "『", Qe), C(u, "』", Ze), C(u, "<", Ye), C(u, ">", Xe), C(u, "&", Je), C(u, "*", rr), C(u, "@", se), C(u, "`", ar), C(u, "^", nr), C(u, ":", de), C(u, ",", Wr), C(u, "$", ir), C(u, ".", ee), C(u, "=", ur), C(u, "!", Kr), C(u, "-", re), C(u, "%", sr), C(u, "|", dr), C(u, "+", or), C(u, "#", cr), C(u, "?", lr), C(u, '"', Qr), C(u, "/", te), C(u, ";", Zr), C(u, "~", ye), C(u, "_", fr), C(u, "\\", tr);
1057
+ const t = Z(u, Ar, Fr, {
921
1058
  [zr]: !0
922
1059
  });
923
1060
  Z(t, Ar, t);
924
- const s = Z(i, le, ae, {
1061
+ const s = Z(u, le, ae, {
925
1062
  [Nr]: !0
926
1063
  });
927
1064
  Z(s, le, s);
928
- const p = Z(i, Er, xr, {
1065
+ const p = Z(u, Er, xr, {
929
1066
  [Ir]: !0
930
1067
  });
931
1068
  Z(p, le), Z(p, Er, p);
932
- const g = Z(i, ht, Bt, {
933
- [ft]: !0
1069
+ const g = Z(u, bt, $t, {
1070
+ [gt]: !0
934
1071
  });
935
- A(i, gt, Gr, {
936
- [ft]: !0
937
- }), A(g, gt), Z(g, ht, g);
938
- const m = Z(i, Tr, Vt, {
939
- [Ut]: !0
1072
+ C(u, vt, Gr, {
1073
+ [gt]: !0
1074
+ }), C(g, vt), Z(g, bt, g);
1075
+ const m = Z(u, Tr, Ft, {
1076
+ [Vt]: !0
940
1077
  });
941
- Z(m, Tr, m), A(m, fn, m);
942
- const b = A(m, pn);
1078
+ Z(m, Tr, m), C(m, Ln, m);
1079
+ const b = C(m, qn);
943
1080
  Z(b, Tr, m);
944
- const D = [[le, s]], C = [[le, null], [Er, p]];
945
- for (let v = 0; v < De.length; v++)
946
- ne(i, De[v], Or, ae, D);
947
- for (let v = 0; v < Pe.length; v++)
948
- ne(i, Pe[v], Hr, xr, C);
1081
+ const D = [[le, s]], S = [[le, null], [Er, p]];
1082
+ for (let E = 0; E < De.length; E++)
1083
+ ne(u, De[E], Or, ae, D);
1084
+ for (let E = 0; E < Pe.length; E++)
1085
+ ne(u, Pe[E], Hr, xr, S);
949
1086
  oe(Or, {
950
1087
  tld: !0,
951
1088
  ascii: !0
952
1089
  }, n), oe(Hr, {
953
1090
  utld: !0,
954
1091
  alpha: !0
955
- }, n), ne(i, "file", je, ae, D), ne(i, "mailto", je, ae, D), ne(i, "http", fe, ae, D), ne(i, "https", fe, ae, D), ne(i, "ftp", fe, ae, D), ne(i, "ftps", fe, ae, D), oe(je, {
1092
+ }, n), ne(u, "file", je, ae, D), ne(u, "mailto", je, ae, D), ne(u, "http", fe, ae, D), ne(u, "https", fe, ae, D), ne(u, "ftp", fe, ae, D), ne(u, "ftps", fe, ae, D), oe(je, {
956
1093
  scheme: !0,
957
1094
  ascii: !0
958
1095
  }, n), oe(fe, {
959
1096
  slashscheme: !0,
960
1097
  ascii: !0
961
- }, n), e = e.sort((v, y) => v[0] > y[0] ? 1 : -1);
962
- for (let v = 0; v < e.length; v++) {
963
- const y = e[v][0], L = e[v][1] ? {
964
- [dn]: !0
1098
+ }, n), e = e.sort((E, w) => E[0] > w[0] ? 1 : -1);
1099
+ for (let E = 0; E < e.length; E++) {
1100
+ const w = e[E][0], q = e[E][1] ? {
1101
+ [Tn]: !0
965
1102
  } : {
966
- [on]: !0
1103
+ [An]: !0
967
1104
  };
968
- y.indexOf("-") >= 0 ? L[jr] = !0 : le.test(y) ? Ar.test(y) ? L[Ie] = !0 : L[Nr] = !0 : L[zr] = !0, pt(i, y, y, L);
1105
+ w.indexOf("-") >= 0 ? q[jr] = !0 : le.test(w) ? Ar.test(w) ? q[Ie] = !0 : q[Nr] = !0 : q[zr] = !0, mt(u, w, w, q);
969
1106
  }
970
- return pt(i, "localhost", ke, {
1107
+ return mt(u, "localhost", ke, {
971
1108
  ascii: !0
972
- }), i.jd = new Q(pr), {
973
- start: i,
1109
+ }), u.jd = new Q(pr), {
1110
+ start: u,
974
1111
  tokens: pe({
975
1112
  groups: n
976
- }, $t)
1113
+ }, Gt)
977
1114
  };
978
1115
  }
979
- function gn(e, n) {
980
- const i = mn(n.replace(/[A-Z]/g, (m) => m.toLowerCase())), t = i.length, s = [];
1116
+ function Pn(e, n) {
1117
+ const u = Rn(n.replace(/[A-Z]/g, (m) => m.toLowerCase())), t = u.length, s = [];
981
1118
  let p = 0, g = 0;
982
1119
  for (; g < t; ) {
983
- let m = e, b = null, D = 0, C = null, v = -1, y = -1;
984
- for (; g < t && (b = m.go(i[g])); )
985
- m = b, m.accepts() ? (v = 0, y = 0, C = m) : v >= 0 && (v += i[g].length, y++), D += i[g].length, p += i[g].length, g++;
986
- p -= v, g -= y, D -= v, s.push({
987
- t: C.t,
1120
+ let m = e, b = null, D = 0, S = null, E = -1, w = -1;
1121
+ for (; g < t && (b = m.go(u[g])); )
1122
+ m = b, m.accepts() ? (E = 0, w = 0, S = m) : E >= 0 && (E += u[g].length, w++), D += u[g].length, p += u[g].length, g++;
1123
+ p -= E, g -= w, D -= E, s.push({
1124
+ t: S.t,
988
1125
  // token type/name
989
1126
  v: n.slice(p - D, p),
990
1127
  // string value
@@ -996,46 +1133,46 @@ function gn(e, n) {
996
1133
  }
997
1134
  return s;
998
1135
  }
999
- function mn(e) {
1000
- const n = [], i = e.length;
1136
+ function Rn(e) {
1137
+ const n = [], u = e.length;
1001
1138
  let t = 0;
1002
- for (; t < i; ) {
1003
- let s = e.charCodeAt(t), p, g = s < 55296 || s > 56319 || t + 1 === i || (p = e.charCodeAt(t + 1)) < 56320 || p > 57343 ? e[t] : e.slice(t, t + 2);
1139
+ for (; t < u; ) {
1140
+ let s = e.charCodeAt(t), p, g = s < 55296 || s > 56319 || t + 1 === u || (p = e.charCodeAt(t + 1)) < 56320 || p > 57343 ? e[t] : e.slice(t, t + 2);
1004
1141
  n.push(g), t += g.length;
1005
1142
  }
1006
1143
  return n;
1007
1144
  }
1008
- function ne(e, n, i, t, s) {
1145
+ function ne(e, n, u, t, s) {
1009
1146
  let p;
1010
1147
  const g = n.length;
1011
1148
  for (let m = 0; m < g - 1; m++) {
1012
1149
  const b = n[m];
1013
1150
  e.j[b] ? p = e.j[b] : (p = new Q(t), p.jr = s.slice(), e.j[b] = p), e = p;
1014
1151
  }
1015
- return p = new Q(i), p.jr = s.slice(), e.j[n[g - 1]] = p, p;
1152
+ return p = new Q(u), p.jr = s.slice(), e.j[n[g - 1]] = p, p;
1016
1153
  }
1017
- function mt(e) {
1018
- const n = [], i = [];
1154
+ function wt(e) {
1155
+ const n = [], u = [];
1019
1156
  let t = 0, s = "0123456789";
1020
1157
  for (; t < e.length; ) {
1021
1158
  let p = 0;
1022
1159
  for (; s.indexOf(e[t + p]) >= 0; )
1023
1160
  p++;
1024
1161
  if (p > 0) {
1025
- n.push(i.join(""));
1162
+ n.push(u.join(""));
1026
1163
  for (let g = parseInt(e.substring(t, t + p), 10); g > 0; g--)
1027
- i.pop();
1164
+ u.pop();
1028
1165
  t += p;
1029
1166
  } else
1030
- i.push(e[t]), t++;
1167
+ u.push(e[t]), t++;
1031
1168
  }
1032
1169
  return n;
1033
1170
  }
1034
1171
  const Ee = {
1035
1172
  defaultProtocol: "http",
1036
1173
  events: null,
1037
- format: bt,
1038
- formatHref: bt,
1174
+ format: yt,
1175
+ formatHref: yt,
1039
1176
  nl2br: !1,
1040
1177
  tagName: "a",
1041
1178
  target: null,
@@ -1049,12 +1186,12 @@ const Ee = {
1049
1186
  };
1050
1187
  function Yr(e, n) {
1051
1188
  n === void 0 && (n = null);
1052
- let i = pe({}, Ee);
1053
- e && (i = pe(i, e instanceof Yr ? e.o : e));
1054
- const t = i.ignoreTags, s = [];
1189
+ let u = pe({}, Ee);
1190
+ e && (u = pe(u, e instanceof Yr ? e.o : e));
1191
+ const t = u.ignoreTags, s = [];
1055
1192
  for (let p = 0; p < t.length; p++)
1056
1193
  s.push(t[p].toUpperCase());
1057
- this.o = i, n && (this.defaultRender = n), this.ignoreTags = s;
1194
+ this.o = u, n && (this.defaultRender = n), this.ignoreTags = s;
1058
1195
  }
1059
1196
  Yr.prototype = {
1060
1197
  o: Ee,
@@ -1090,10 +1227,10 @@ Yr.prototype = {
1090
1227
  * @param {MultiToken} [token] The token from linkify.tokenize
1091
1228
  * @returns {Opts[K] | any}
1092
1229
  */
1093
- get(e, n, i) {
1230
+ get(e, n, u) {
1094
1231
  const t = n != null;
1095
1232
  let s = this.o[e];
1096
- return s && (typeof s == "object" ? (s = i.t in s ? s[i.t] : Ee[e], typeof s == "function" && t && (s = s(n, i))) : typeof s == "function" && t && (s = s(n, i.t, i)), s);
1233
+ return s && (typeof s == "object" ? (s = u.t in s ? s[u.t] : Ee[e], typeof s == "function" && t && (s = s(n, u))) : typeof s == "function" && t && (s = s(n, u.t, u)), s);
1097
1234
  },
1098
1235
  /**
1099
1236
  * @template {keyof Opts} L
@@ -1102,9 +1239,9 @@ Yr.prototype = {
1102
1239
  * @param {MultiToken} [token]
1103
1240
  * @returns {Opts[L] | any}
1104
1241
  */
1105
- getObj(e, n, i) {
1242
+ getObj(e, n, u) {
1106
1243
  let t = this.o[e];
1107
- return typeof t == "function" && n != null && (t = t(n, i.t, i)), t;
1244
+ return typeof t == "function" && n != null && (t = t(n, u.t, u)), t;
1108
1245
  },
1109
1246
  /**
1110
1247
  * Convert the given token to a rendered element that may be added to the
@@ -1118,13 +1255,13 @@ Yr.prototype = {
1118
1255
  return (this.get("render", null, e) || this.defaultRender)(n, e.t, e);
1119
1256
  }
1120
1257
  };
1121
- function bt(e) {
1258
+ function yt(e) {
1122
1259
  return e;
1123
1260
  }
1124
- function Ft(e, n) {
1261
+ function Wt(e, n) {
1125
1262
  this.t = "token", this.v = e, this.tk = n;
1126
1263
  }
1127
- Ft.prototype = {
1264
+ Wt.prototype = {
1128
1265
  isLink: !1,
1129
1266
  /**
1130
1267
  * Return the string this token represents.
@@ -1147,8 +1284,8 @@ Ft.prototype = {
1147
1284
  * @returns {string}
1148
1285
  */
1149
1286
  toFormattedString(e) {
1150
- const n = this.toString(), i = e.get("truncate", n, this), t = e.get("format", n, this);
1151
- return i && t.length > i ? t.substring(0, i) + "…" : t;
1287
+ const n = this.toString(), u = e.get("truncate", n, this), t = e.get("format", n, this);
1288
+ return u && t.length > u ? t.substring(0, u) + "…" : t;
1152
1289
  },
1153
1290
  /**
1154
1291
  *
@@ -1219,31 +1356,31 @@ Ft.prototype = {
1219
1356
  * @param {Options} options Formattinng options
1220
1357
  */
1221
1358
  render(e) {
1222
- const n = this, i = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", i, this), s = e.get("tagName", i, n), p = this.toFormattedString(e), g = {}, m = e.get("className", i, n), b = e.get("target", i, n), D = e.get("rel", i, n), C = e.getObj("attributes", i, n), v = e.getObj("events", i, n);
1223
- return g.href = t, m && (g.class = m), b && (g.target = b), D && (g.rel = D), C && pe(g, C), {
1359
+ const n = this, u = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", u, this), s = e.get("tagName", u, n), p = this.toFormattedString(e), g = {}, m = e.get("className", u, n), b = e.get("target", u, n), D = e.get("rel", u, n), S = e.getObj("attributes", u, n), E = e.getObj("events", u, n);
1360
+ return g.href = t, m && (g.class = m), b && (g.target = b), D && (g.rel = D), S && pe(g, S), {
1224
1361
  tagName: s,
1225
1362
  attributes: g,
1226
1363
  content: p,
1227
- eventListeners: v
1364
+ eventListeners: E
1228
1365
  };
1229
1366
  }
1230
1367
  };
1231
1368
  function mr(e, n) {
1232
- class i extends Ft {
1369
+ class u extends Wt {
1233
1370
  constructor(s, p) {
1234
1371
  super(s, p), this.t = e;
1235
1372
  }
1236
1373
  }
1237
1374
  for (const t in n)
1238
- i.prototype[t] = n[t];
1239
- return i.t = e, i;
1375
+ u.prototype[t] = n[t];
1376
+ return u.t = e, u;
1240
1377
  }
1241
- const vt = mr("email", {
1378
+ const _t = mr("email", {
1242
1379
  isLink: !0,
1243
1380
  toHref() {
1244
1381
  return "mailto:" + this.toString();
1245
1382
  }
1246
- }), wt = mr("text"), bn = mr("nl"), Re = mr("url", {
1383
+ }), kt = mr("text"), zn = mr("nl"), Re = mr("url", {
1247
1384
  isLink: !0,
1248
1385
  /**
1249
1386
  Lowercases relevant parts of the domain and adds the protocol if
@@ -1264,38 +1401,38 @@ const vt = mr("email", {
1264
1401
  return e.length >= 2 && e[0].t !== ke && e[1].t === de;
1265
1402
  }
1266
1403
  }), Y = (e) => new Q(e);
1267
- function vn(e) {
1404
+ function Nn(e) {
1268
1405
  let {
1269
1406
  groups: n
1270
1407
  } = e;
1271
- const i = n.domain.concat([Je, rr, se, tr, ar, nr, ir, ur, re, Fr, sr, dr, or, cr, te, pr, ye, fr]), t = [er, de, Wr, ee, Kr, lr, Qr, Zr, Ve, $e, ve, we, Me, He, Ue, Be, Fe, Ge, We, Ke, Qe, Ze, Ye, Xe], s = [Je, er, rr, tr, ar, nr, ir, ur, re, ve, we, sr, dr, or, cr, lr, te, pr, ye, fr], p = Y(), g = A(p, ye);
1272
- x(g, s, g), x(g, n.domain, g);
1408
+ const u = n.domain.concat([Je, rr, se, tr, ar, nr, ir, ur, re, Fr, sr, dr, or, cr, te, pr, ye, fr]), t = [er, de, Wr, ee, Kr, lr, Qr, Zr, Ve, $e, ve, we, Me, He, Ue, Be, Fe, Ge, We, Ke, Qe, Ze, Ye, Xe], s = [Je, er, rr, tr, ar, nr, ir, ur, re, ve, we, sr, dr, or, cr, lr, te, pr, ye, fr], p = Y(), g = C(p, ye);
1409
+ I(g, s, g), I(g, n.domain, g);
1273
1410
  const m = Y(), b = Y(), D = Y();
1274
- x(p, n.domain, m), x(p, n.scheme, b), x(p, n.slashscheme, D), x(m, s, g), x(m, n.domain, m);
1275
- const C = A(m, se);
1276
- A(g, se, C), A(b, se, C), A(D, se, C);
1277
- const v = A(g, ee);
1278
- x(v, s, g), x(v, n.domain, g);
1279
- const y = Y();
1280
- x(C, n.domain, y), x(y, n.domain, y);
1281
- const q = A(y, ee);
1282
- x(q, n.domain, y);
1283
- const L = Y(vt);
1284
- x(q, n.tld, L), x(q, n.utld, L), A(C, ke, L);
1285
- const I = A(y, re);
1286
- x(I, n.domain, y), x(L, n.domain, y), A(L, ee, q), A(L, re, I);
1287
- const O = A(L, de);
1288
- x(O, n.numeric, vt);
1289
- const z = A(m, re), j = A(m, ee);
1290
- x(z, n.domain, m), x(j, s, g), x(j, n.domain, m);
1291
- const N = Y(Re);
1292
- x(j, n.tld, N), x(j, n.utld, N), x(N, n.domain, m), x(N, s, g), A(N, ee, j), A(N, re, z), A(N, se, C);
1293
- const r = A(N, de), u = Y(Re);
1294
- x(r, n.numeric, u);
1411
+ I(p, n.domain, m), I(p, n.scheme, b), I(p, n.slashscheme, D), I(m, s, g), I(m, n.domain, m);
1412
+ const S = C(m, se);
1413
+ C(g, se, S), C(b, se, S), C(D, se, S);
1414
+ const E = C(g, ee);
1415
+ I(E, s, g), I(E, n.domain, g);
1416
+ const w = Y();
1417
+ I(S, n.domain, w), I(w, n.domain, w);
1418
+ const A = C(w, ee);
1419
+ I(A, n.domain, w);
1420
+ const q = Y(_t);
1421
+ I(A, n.tld, q), I(A, n.utld, q), C(S, ke, q);
1422
+ const z = C(w, re);
1423
+ I(z, n.domain, w), I(q, n.domain, w), C(q, ee, A), C(q, re, z);
1424
+ const N = C(q, de);
1425
+ I(N, n.numeric, _t);
1426
+ const x = C(m, re), O = C(m, ee);
1427
+ I(x, n.domain, m), I(O, s, g), I(O, n.domain, m);
1428
+ const j = Y(Re);
1429
+ I(O, n.tld, j), I(O, n.utld, j), I(j, n.domain, m), I(j, s, g), C(j, ee, O), C(j, re, x), C(j, se, S);
1430
+ const r = C(j, de), i = Y(Re);
1431
+ I(r, n.numeric, i);
1295
1432
  const a = Y(Re), d = Y();
1296
- x(a, i, a), x(a, t, d), x(d, i, a), x(d, t, d), A(N, te, a), A(u, te, a);
1297
- const o = A(b, de), f = A(D, de), c = A(f, te), h = A(c, te);
1298
- x(b, n.domain, m), A(b, ee, j), A(b, re, z), x(D, n.domain, m), A(D, ee, j), A(D, re, z), x(o, n.domain, a), A(o, te, a), x(h, n.domain, a), x(h, i, a), A(h, te, a);
1433
+ I(a, u, a), I(a, t, d), I(d, u, a), I(d, t, d), C(j, te, a), C(i, te, a);
1434
+ const c = C(b, de), f = C(D, de), o = C(f, te), h = C(o, te);
1435
+ I(b, n.domain, m), C(b, ee, O), C(b, re, x), I(D, n.domain, m), C(D, ee, O), C(D, re, x), I(c, n.domain, a), C(c, te, a), I(h, n.domain, a), I(h, u, a), C(h, te, a);
1299
1436
  const T = [
1300
1437
  [ve, we],
1301
1438
  // {}
@@ -1314,40 +1451,40 @@ function vn(e) {
1314
1451
  [Ye, Xe]
1315
1452
  // <>
1316
1453
  ];
1317
- for (let k = 0; k < T.length; k++) {
1318
- const [_, E] = T[k], l = A(a, _);
1319
- A(d, _, l), A(l, E, a);
1320
- const w = Y(Re);
1321
- x(l, i, w);
1322
- const S = Y();
1323
- x(l, t), x(w, i, w), x(w, t, S), x(S, i, w), x(S, t, S), A(w, E, a), A(S, E, a);
1454
+ for (let _ = 0; _ < T.length; _++) {
1455
+ const [v, k] = T[_], l = C(a, v);
1456
+ C(d, v, l), C(l, k, a);
1457
+ const y = Y(Re);
1458
+ I(l, u, y);
1459
+ const L = Y();
1460
+ I(l, t), I(y, u, y), I(y, t, L), I(L, u, y), I(L, t, L), C(y, k, a), C(L, k, a);
1324
1461
  }
1325
- return A(p, ke, N), A(p, Gr, bn), {
1462
+ return C(p, ke, j), C(p, Gr, zn), {
1326
1463
  start: p,
1327
- tokens: $t
1464
+ tokens: Gt
1328
1465
  };
1329
1466
  }
1330
- function wn(e, n, i) {
1331
- let t = i.length, s = 0, p = [], g = [];
1467
+ function In(e, n, u) {
1468
+ let t = u.length, s = 0, p = [], g = [];
1332
1469
  for (; s < t; ) {
1333
- let m = e, b = null, D = null, C = 0, v = null, y = -1;
1334
- for (; s < t && !(b = m.go(i[s].t)); )
1335
- g.push(i[s++]);
1336
- for (; s < t && (D = b || m.go(i[s].t)); )
1337
- b = null, m = D, m.accepts() ? (y = 0, v = m) : y >= 0 && y++, s++, C++;
1338
- if (y < 0)
1339
- s -= C, s < t && (g.push(i[s]), s++);
1470
+ let m = e, b = null, D = null, S = 0, E = null, w = -1;
1471
+ for (; s < t && !(b = m.go(u[s].t)); )
1472
+ g.push(u[s++]);
1473
+ for (; s < t && (D = b || m.go(u[s].t)); )
1474
+ b = null, m = D, m.accepts() ? (w = 0, E = m) : w >= 0 && w++, s++, S++;
1475
+ if (w < 0)
1476
+ s -= S, s < t && (g.push(u[s]), s++);
1340
1477
  else {
1341
- g.length > 0 && (p.push(Cr(wt, n, g)), g = []), s -= y, C -= y;
1342
- const q = v.t, L = i.slice(s - C, s);
1343
- p.push(Cr(q, n, L));
1478
+ g.length > 0 && (p.push(Cr(kt, n, g)), g = []), s -= w, S -= w;
1479
+ const A = E.t, q = u.slice(s - S, s);
1480
+ p.push(Cr(A, n, q));
1344
1481
  }
1345
1482
  }
1346
- return g.length > 0 && p.push(Cr(wt, n, g)), p;
1483
+ return g.length > 0 && p.push(Cr(kt, n, g)), p;
1347
1484
  }
1348
- function Cr(e, n, i) {
1349
- const t = i[0].s, s = i[i.length - 1].e, p = n.slice(t, s);
1350
- return new e(p, i);
1485
+ function Cr(e, n, u) {
1486
+ const t = u[0].s, s = u[u.length - 1].e, p = n.slice(t, s);
1487
+ return new e(p, u);
1351
1488
  }
1352
1489
  const F = {
1353
1490
  scanner: null,
@@ -1357,13 +1494,13 @@ const F = {
1357
1494
  customSchemes: [],
1358
1495
  initialized: !1
1359
1496
  };
1360
- function yn() {
1361
- F.scanner = hn(F.customSchemes);
1497
+ function jn() {
1498
+ F.scanner = Dn(F.customSchemes);
1362
1499
  for (let e = 0; e < F.tokenQueue.length; e++)
1363
1500
  F.tokenQueue[e][1]({
1364
1501
  scanner: F.scanner
1365
1502
  });
1366
- F.parser = vn(F.scanner.tokens);
1503
+ F.parser = Nn(F.scanner.tokens);
1367
1504
  for (let e = 0; e < F.pluginQueue.length; e++)
1368
1505
  F.pluginQueue[e][1]({
1369
1506
  scanner: F.scanner,
@@ -1371,10 +1508,10 @@ function yn() {
1371
1508
  });
1372
1509
  F.initialized = !0;
1373
1510
  }
1374
- function _n(e) {
1375
- return F.initialized || yn(), wn(F.parser.start, e, gn(F.scanner.start, e));
1511
+ function xn(e) {
1512
+ return F.initialized || jn(), In(F.parser.start, e, Pn(F.scanner.start, e));
1376
1513
  }
1377
- var kn = {
1514
+ var On = {
1378
1515
  // We don't need the complete named character reference because linkifyHtml
1379
1516
  // does not modify the escape sequences. We do need &nbsp; so that
1380
1517
  // whitespace is parsed properly. Other types of whitespace should already
@@ -1384,7 +1521,7 @@ var kn = {
1384
1521
  lt: "<",
1385
1522
  nbsp: " ",
1386
1523
  quot: '"'
1387
- }, En = /^#[xX]([A-Fa-f0-9]+)$/, Tn = /^#([0-9]+)$/, An = /^([A-Za-z0-9]+)$/, Cn = (
1524
+ }, Hn = /^#[xX]([A-Fa-f0-9]+)$/, Mn = /^#([0-9]+)$/, Un = /^([A-Za-z0-9]+)$/, Bn = (
1388
1525
  /** @class */
1389
1526
  function() {
1390
1527
  function e(n) {
@@ -1392,32 +1529,32 @@ var kn = {
1392
1529
  }
1393
1530
  return e.prototype.parse = function(n) {
1394
1531
  if (n) {
1395
- var i = n.match(En);
1396
- if (i)
1397
- return String.fromCharCode(parseInt(i[1], 16));
1398
- if (i = n.match(Tn), i)
1399
- return String.fromCharCode(parseInt(i[1], 10));
1400
- if (i = n.match(An), i)
1401
- return this.named[i[1]] || "&" + i[1] + ";";
1532
+ var u = n.match(Hn);
1533
+ if (u)
1534
+ return String.fromCharCode(parseInt(u[1], 16));
1535
+ if (u = n.match(Mn), u)
1536
+ return String.fromCharCode(parseInt(u[1], 10));
1537
+ if (u = n.match(Un), u)
1538
+ return this.named[u[1]] || "&" + u[1] + ";";
1402
1539
  }
1403
1540
  }, e;
1404
1541
  }()
1405
- ), Sn = /[\t\n\f ]/, Ln = /[A-Za-z]/, qn = /\r\n?/g;
1542
+ ), Vn = /[\t\n\f ]/, $n = /[A-Za-z]/, Fn = /\r\n?/g;
1406
1543
  function V(e) {
1407
- return Sn.test(e);
1544
+ return Vn.test(e);
1408
1545
  }
1409
- function yt(e) {
1410
- return Ln.test(e);
1546
+ function Et(e) {
1547
+ return $n.test(e);
1411
1548
  }
1412
- function Dn(e) {
1413
- return e.replace(qn, `
1549
+ function Gn(e) {
1550
+ return e.replace(Fn, `
1414
1551
  `);
1415
1552
  }
1416
- var Pn = (
1553
+ var Wn = (
1417
1554
  /** @class */
1418
1555
  function() {
1419
- function e(n, i, t) {
1420
- t === void 0 && (t = "precompile"), this.delegate = n, this.entityParser = i, this.mode = t, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = {
1556
+ function e(n, u, t) {
1557
+ t === void 0 && (t = "precompile"), this.delegate = n, this.entityParser = u, this.mode = t, this.state = "beforeData", this.line = -1, this.column = -1, this.input = "", this.index = -1, this.tagNameBuffer = "", this.states = {
1421
1558
  beforeData: function() {
1422
1559
  var s = this.peek();
1423
1560
  if (s === "<" && !this.isIgnoredEndTag())
@@ -1452,7 +1589,7 @@ var Pn = (
1452
1589
  ) : s === "/" ? this.transitionTo(
1453
1590
  "endTagOpen"
1454
1591
  /* endTagOpen */
1455
- ) : (s === "@" || s === ":" || yt(s)) && (this.transitionTo(
1592
+ ) : (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
1456
1593
  "tagName"
1457
1594
  /* tagName */
1458
1595
  ), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
@@ -1813,7 +1950,7 @@ var Pn = (
1813
1950
  },
1814
1951
  endTagOpen: function() {
1815
1952
  var s = this.consume();
1816
- (s === "@" || s === ":" || yt(s)) && (this.transitionTo(
1953
+ (s === "@" || s === ":" || Et(s)) && (this.transitionTo(
1817
1954
  "endTagName"
1818
1955
  /* endTagName */
1819
1956
  ), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
@@ -1830,10 +1967,10 @@ var Pn = (
1830
1967
  }, e.prototype.tokenize = function(n) {
1831
1968
  this.reset(), this.tokenizePart(n), this.tokenizeEOF();
1832
1969
  }, e.prototype.tokenizePart = function(n) {
1833
- for (this.input += Dn(n); this.index < this.input.length; ) {
1834
- var i = this.states[this.state];
1835
- if (i !== void 0)
1836
- i.call(this);
1970
+ for (this.input += Gn(n); this.index < this.input.length; ) {
1971
+ var u = this.states[this.state];
1972
+ if (u !== void 0)
1973
+ u.call(this);
1837
1974
  else
1838
1975
  throw new Error("unhandled state " + this.state);
1839
1976
  }
@@ -1853,9 +1990,9 @@ var Pn = (
1853
1990
  }, e.prototype.consumeCharRef = function() {
1854
1991
  var n = this.input.indexOf(";", this.index);
1855
1992
  if (n !== -1) {
1856
- var i = this.input.slice(this.index, n), t = this.entityParser.parse(i);
1993
+ var u = this.input.slice(this.index, n), t = this.entityParser.parse(u);
1857
1994
  if (t) {
1858
- for (var s = i.length; s; )
1995
+ for (var s = u.length; s; )
1859
1996
  this.consume(), s--;
1860
1997
  return this.consume(), t;
1861
1998
  }
@@ -1869,11 +2006,11 @@ var Pn = (
1869
2006
  return n === "title" && this.input.substring(this.index, this.index + 8) !== "</title>" || n === "style" && this.input.substring(this.index, this.index + 8) !== "</style>" || n === "script" && this.input.substring(this.index, this.index + 9) !== "<\/script>";
1870
2007
  }, e;
1871
2008
  }()
1872
- ), Rn = (
2009
+ ), Kn = (
1873
2010
  /** @class */
1874
2011
  function() {
1875
- function e(n, i) {
1876
- i === void 0 && (i = {}), this.options = i, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new Pn(this, n, i.mode), this._currentAttribute = void 0;
2012
+ function e(n, u) {
2013
+ u === void 0 && (u = {}), this.options = u, this.token = null, this.startLine = 1, this.startColumn = 0, this.tokens = [], this.tokenizer = new Wn(this, n, u.mode), this._currentAttribute = void 0;
1877
2014
  }
1878
2015
  return e.prototype.tokenize = function(n) {
1879
2016
  return this.tokens = [], this.tokenizer.tokenize(n), this.tokens;
@@ -1889,8 +2026,8 @@ var Pn = (
1889
2026
  throw new Error("token was unexpectedly null");
1890
2027
  if (arguments.length === 0)
1891
2028
  return n;
1892
- for (var i = 0; i < arguments.length; i++)
1893
- if (n.type === arguments[i])
2029
+ for (var u = 0; u < arguments.length; u++)
2030
+ if (n.type === arguments[u])
1894
2031
  return n;
1895
2032
  throw new Error("token type was unexpectedly " + n.type);
1896
2033
  }, e.prototype.push = function(n) {
@@ -1919,17 +2056,17 @@ var Pn = (
1919
2056
  /* Doctype */
1920
2057
  ).name += n;
1921
2058
  }, e.prototype.appendToDoctypePublicIdentifier = function(n) {
1922
- var i = this.current(
2059
+ var u = this.current(
1923
2060
  "Doctype"
1924
2061
  /* Doctype */
1925
2062
  );
1926
- i.publicIdentifier === void 0 ? i.publicIdentifier = n : i.publicIdentifier += n;
2063
+ u.publicIdentifier === void 0 ? u.publicIdentifier = n : u.publicIdentifier += n;
1927
2064
  }, e.prototype.appendToDoctypeSystemIdentifier = function(n) {
1928
- var i = this.current(
2065
+ var u = this.current(
1929
2066
  "Doctype"
1930
2067
  /* Doctype */
1931
2068
  );
1932
- i.systemIdentifier === void 0 ? i.systemIdentifier = n : i.systemIdentifier += n;
2069
+ u.systemIdentifier === void 0 ? u.systemIdentifier = n : u.systemIdentifier += n;
1933
2070
  }, e.prototype.endDoctype = function() {
1934
2071
  this.addLocInfo();
1935
2072
  }, e.prototype.beginData = function() {
@@ -2000,51 +2137,51 @@ var Pn = (
2000
2137
  }, e;
2001
2138
  }()
2002
2139
  );
2003
- function zn(e, n) {
2004
- var i = new Rn(new Cn(kn), n);
2005
- return i.tokenize(e);
2140
+ function Qn(e, n) {
2141
+ var u = new Kn(new Bn(On), n);
2142
+ return u.tokenize(e);
2006
2143
  }
2007
- const Gt = "LinkifyResult", hr = "StartTag", Wt = "EndTag", Mr = "Chars", Nn = "Comment", In = "Doctype";
2008
- function jn(e, n) {
2144
+ const Kt = "LinkifyResult", hr = "StartTag", Qt = "EndTag", Mr = "Chars", Zn = "Comment", Yn = "Doctype";
2145
+ function Xn(e, n) {
2009
2146
  n === void 0 && (n = {});
2010
- const i = zn(e), t = [], s = [], p = new Yr(n, Hn);
2011
- for (let g = 0; g < i.length; g++) {
2012
- const m = i[g];
2147
+ const u = Qn(e), t = [], s = [], p = new Yr(n, ri);
2148
+ for (let g = 0; g < u.length; g++) {
2149
+ const m = u[g];
2013
2150
  if (m.type === hr) {
2014
2151
  t.push(m);
2015
2152
  const b = m.tagName.toUpperCase();
2016
2153
  if (!(b === "A" || p.ignoreTags.indexOf(b) >= 0))
2017
2154
  continue;
2018
- let C = t.length;
2019
- On(b, i, ++g, t), g += t.length - C - 1;
2155
+ let S = t.length;
2156
+ ei(b, u, ++g, t), g += t.length - S - 1;
2020
2157
  } else if (m.type !== Mr)
2021
2158
  t.push(m);
2022
2159
  else {
2023
- const b = xn(m.chars, p);
2160
+ const b = Jn(m.chars, p);
2024
2161
  t.push.apply(t, b);
2025
2162
  }
2026
2163
  }
2027
2164
  for (let g = 0; g < t.length; g++) {
2028
2165
  const m = t[g];
2029
2166
  switch (m.type) {
2030
- case Gt:
2167
+ case Kt:
2031
2168
  s.push(m.rendered);
2032
2169
  break;
2033
2170
  case hr: {
2034
2171
  let b = "<" + m.tagName;
2035
- m.attributes.length > 0 && (b += " " + Un(m.attributes).join(" ")), m.selfClosing && (b += " /"), b += ">", s.push(b);
2172
+ m.attributes.length > 0 && (b += " " + ai(m.attributes).join(" ")), m.selfClosing && (b += " /"), b += ">", s.push(b);
2036
2173
  break;
2037
2174
  }
2038
- case Wt:
2175
+ case Qt:
2039
2176
  s.push(`</${m.tagName}>`);
2040
2177
  break;
2041
2178
  case Mr:
2042
2179
  s.push(Ur(m.chars));
2043
2180
  break;
2044
- case Nn:
2181
+ case Zn:
2045
2182
  s.push(`<!--${Ur(m.chars)}-->`);
2046
2183
  break;
2047
- case In: {
2184
+ case Yn: {
2048
2185
  let b = `<!DOCTYPE ${m.name}`;
2049
2186
  m.publicIdentifier && (b += ` PUBLIC "${m.publicIdentifier}"`), m.systemIdentifier && (b += ` "${m.systemIdentifier}"`), b += ">", s.push(b);
2050
2187
  break;
@@ -2053,10 +2190,10 @@ function jn(e, n) {
2053
2190
  }
2054
2191
  return s.join("");
2055
2192
  }
2056
- function xn(e, n) {
2057
- const i = _n(e), t = [];
2058
- for (let s = 0; s < i.length; s++) {
2059
- const p = i[s];
2193
+ function Jn(e, n) {
2194
+ const u = xn(e), t = [];
2195
+ for (let s = 0; s < u.length; s++) {
2196
+ const p = u[s];
2060
2197
  p.t === "nl" && n.get("nl2br") ? t.push({
2061
2198
  type: hr,
2062
2199
  tagName: "br",
@@ -2066,47 +2203,47 @@ function xn(e, n) {
2066
2203
  type: Mr,
2067
2204
  chars: p.toString()
2068
2205
  }) : t.push({
2069
- type: Gt,
2206
+ type: Kt,
2070
2207
  rendered: n.render(p)
2071
2208
  });
2072
2209
  }
2073
2210
  return t;
2074
2211
  }
2075
- function On(e, n, i, t) {
2212
+ function ei(e, n, u, t) {
2076
2213
  let s = 1;
2077
- for (; i < n.length && s > 0; ) {
2078
- let p = n[i];
2079
- p.type === hr && p.tagName.toUpperCase() === e ? s++ : p.type === Wt && p.tagName.toUpperCase() === e && s--, t.push(p), i++;
2214
+ for (; u < n.length && s > 0; ) {
2215
+ let p = n[u];
2216
+ p.type === hr && p.tagName.toUpperCase() === e ? s++ : p.type === Qt && p.tagName.toUpperCase() === e && s--, t.push(p), u++;
2080
2217
  }
2081
2218
  return t;
2082
2219
  }
2083
- function Hn(e) {
2220
+ function ri(e) {
2084
2221
  let {
2085
2222
  tagName: n,
2086
- attributes: i,
2223
+ attributes: u,
2087
2224
  content: t
2088
2225
  } = e;
2089
- return `<${n} ${Mn(i)}>${Ur(t)}</${n}>`;
2226
+ return `<${n} ${ti(u)}>${Ur(t)}</${n}>`;
2090
2227
  }
2091
2228
  function Ur(e) {
2092
2229
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
2093
2230
  }
2094
- function Kt(e) {
2231
+ function Zt(e) {
2095
2232
  return e.replace(/"/g, "&quot;");
2096
2233
  }
2097
- function Mn(e) {
2234
+ function ti(e) {
2098
2235
  const n = [];
2099
- for (const i in e) {
2100
- const t = e[i] + "";
2101
- n.push(`${i}="${Kt(t)}"`);
2236
+ for (const u in e) {
2237
+ const t = e[u] + "";
2238
+ n.push(`${u}="${Zt(t)}"`);
2102
2239
  }
2103
2240
  return n.join(" ");
2104
2241
  }
2105
- function Un(e) {
2242
+ function ai(e) {
2106
2243
  const n = [];
2107
- for (let i = 0; i < e.length; i++) {
2108
- const t = e[i][0], s = e[i][1] + "";
2109
- n.push(`${t}="${Kt(s)}"`);
2244
+ for (let u = 0; u < e.length; u++) {
2245
+ const t = e[u][0], s = e[u][1] + "";
2246
+ n.push(`${t}="${Zt(s)}"`);
2110
2247
  }
2111
2248
  return n;
2112
2249
  }
@@ -2132,8 +2269,8 @@ ge.highSurrogateFrom = 55296;
2132
2269
  ge.highSurrogateTo = 56319;
2133
2270
  var he = xe && xe.__assign || function() {
2134
2271
  return he = Object.assign || function(e) {
2135
- for (var n, i = 1, t = arguments.length; i < t; i++) {
2136
- n = arguments[i];
2272
+ for (var n, u = 1, t = arguments.length; u < t; u++) {
2273
+ n = arguments[u];
2137
2274
  for (var s in n)
2138
2275
  Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
2139
2276
  }
@@ -2141,45 +2278,45 @@ var he = xe && xe.__assign || function() {
2141
2278
  }, he.apply(this, arguments);
2142
2279
  };
2143
2280
  Object.defineProperty(br, "__esModule", { value: !0 });
2144
- var _e = vr, Qt = Xr, Jr = ge, et = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), Bn = {
2281
+ var _e = vr, Yt = Xr, Jr = ge, et = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), ni = {
2145
2282
  specialChars: /[<>'"&]/g,
2146
2283
  nonAscii: /(?:[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2147
2284
  nonAsciiPrintable: /(?:[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2148
2285
  extensive: /(?:[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g
2149
- }, Vn = {
2286
+ }, ii = {
2150
2287
  mode: "specialChars",
2151
2288
  level: "all",
2152
2289
  numeric: "decimal"
2153
2290
  };
2154
- function $n(e, n) {
2155
- var C = n === void 0 ? Vn : n, v = C.mode, i = v === void 0 ? "specialChars" : v, t = C.numeric, s = t === void 0 ? "decimal" : t, p = C.level, g = p === void 0 ? "all" : p;
2291
+ function ui(e, n) {
2292
+ var S = n === void 0 ? ii : n, E = S.mode, u = E === void 0 ? "specialChars" : E, t = S.numeric, s = t === void 0 ? "decimal" : t, p = S.level, g = p === void 0 ? "all" : p;
2156
2293
  if (!e)
2157
2294
  return "";
2158
- var m = Bn[i], b = et[g].characters, D = s === "hexadecimal";
2295
+ var m = ni[u], b = et[g].characters, D = s === "hexadecimal";
2159
2296
  m.lastIndex = 0;
2160
- var C = m.exec(e), v;
2161
- if (C) {
2162
- v = "";
2297
+ var S = m.exec(e), E;
2298
+ if (S) {
2299
+ E = "";
2163
2300
  var t = 0;
2164
2301
  do {
2165
- t !== C.index && (v += e.substring(t, C.index));
2166
- var p = C[0], y = b[p];
2167
- if (!y) {
2168
- var q = p.length > 1 ? Jr.getCodePoint(p, 0) : p.charCodeAt(0);
2169
- y = (D ? "&#x" + q.toString(16) : "&#" + q) + ";";
2302
+ t !== S.index && (E += e.substring(t, S.index));
2303
+ var p = S[0], w = b[p];
2304
+ if (!w) {
2305
+ var A = p.length > 1 ? Jr.getCodePoint(p, 0) : p.charCodeAt(0);
2306
+ w = (D ? "&#x" + A.toString(16) : "&#" + A) + ";";
2170
2307
  }
2171
- v += y, t = C.index + p.length;
2172
- } while (C = m.exec(e));
2173
- t !== e.length && (v += e.substring(t));
2308
+ E += w, t = S.index + p.length;
2309
+ } while (S = m.exec(e));
2310
+ t !== e.length && (E += e.substring(t));
2174
2311
  } else
2175
- v = e;
2176
- return v;
2312
+ E = e;
2313
+ return E;
2177
2314
  }
2178
- br.encode = $n;
2179
- var Fn = {
2315
+ br.encode = ui;
2316
+ var si = {
2180
2317
  scope: "body",
2181
2318
  level: "all"
2182
- }, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Lr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, _t = {
2319
+ }, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Lr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, Tt = {
2183
2320
  xml: {
2184
2321
  strict: Sr,
2185
2322
  attribute: Lr,
@@ -2195,184 +2332,65 @@ var Fn = {
2195
2332
  attribute: Lr,
2196
2333
  body: _e.bodyRegExps.html5
2197
2334
  }
2198
- }, Gn = he(he({}, _t), { all: _t.html5 }), rt = String.fromCharCode, Zt = rt(65533), Wn = {
2335
+ }, di = he(he({}, Tt), { all: Tt.html5 }), rt = String.fromCharCode, Xt = rt(65533), oi = {
2199
2336
  level: "all"
2200
2337
  };
2201
- function Kn(e, n) {
2202
- var t = (n === void 0 ? Wn : n).level, i = t === void 0 ? "all" : t;
2338
+ function ci(e, n) {
2339
+ var t = (n === void 0 ? oi : n).level, u = t === void 0 ? "all" : t;
2203
2340
  if (!e)
2204
2341
  return "";
2205
2342
  var t = e;
2206
2343
  e[e.length - 1];
2207
2344
  {
2208
- var s = et[i].entities[e];
2345
+ var s = et[u].entities[e];
2209
2346
  if (s)
2210
2347
  t = s;
2211
2348
  else if (e[0] === "&" && e[1] === "#") {
2212
2349
  var p = e[2], g = p == "x" || p == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
2213
- t = g >= 1114111 ? Zt : g > 65535 ? Jr.fromCodePoint(g) : rt(Qt.numericUnicodeMap[g] || g);
2350
+ t = g >= 1114111 ? Xt : g > 65535 ? Jr.fromCodePoint(g) : rt(Yt.numericUnicodeMap[g] || g);
2214
2351
  }
2215
2352
  }
2216
2353
  return t;
2217
2354
  }
2218
- br.decodeEntity = Kn;
2219
- function Qn(e, n) {
2220
- var i = n === void 0 ? Fn : n, t = i.level, s = t === void 0 ? "all" : t, p = i.scope, g = p === void 0 ? s === "xml" ? "strict" : "body" : p;
2355
+ br.decodeEntity = ci;
2356
+ function li(e, n) {
2357
+ var u = n === void 0 ? si : n, t = u.level, s = t === void 0 ? "all" : t, p = u.scope, g = p === void 0 ? s === "xml" ? "strict" : "body" : p;
2221
2358
  if (!e)
2222
2359
  return "";
2223
- var m = Gn[s][g], b = et[s].entities, D = g === "attribute", C = g === "strict";
2360
+ var m = di[s][g], b = et[s].entities, D = g === "attribute", S = g === "strict";
2224
2361
  m.lastIndex = 0;
2225
- var v = m.exec(e), y;
2226
- if (v) {
2227
- y = "";
2228
- var q = 0;
2362
+ var E = m.exec(e), w;
2363
+ if (E) {
2364
+ w = "";
2365
+ var A = 0;
2229
2366
  do {
2230
- q !== v.index && (y += e.substring(q, v.index));
2231
- var L = v[0], I = L, O = L[L.length - 1];
2232
- if (D && O === "=")
2233
- I = L;
2234
- else if (C && O !== ";")
2235
- I = L;
2367
+ A !== E.index && (w += e.substring(A, E.index));
2368
+ var q = E[0], z = q, N = q[q.length - 1];
2369
+ if (D && N === "=")
2370
+ z = q;
2371
+ else if (S && N !== ";")
2372
+ z = q;
2236
2373
  else {
2237
- var z = b[L];
2238
- if (z)
2239
- I = z;
2240
- else if (L[0] === "&" && L[1] === "#") {
2241
- var j = L[2], N = j == "x" || j == "X" ? parseInt(L.substr(3), 16) : parseInt(L.substr(2));
2242
- I = N >= 1114111 ? Zt : N > 65535 ? Jr.fromCodePoint(N) : rt(Qt.numericUnicodeMap[N] || N);
2374
+ var x = b[q];
2375
+ if (x)
2376
+ z = x;
2377
+ else if (q[0] === "&" && q[1] === "#") {
2378
+ var O = q[2], j = O == "x" || O == "X" ? parseInt(q.substr(3), 16) : parseInt(q.substr(2));
2379
+ z = j >= 1114111 ? Xt : j > 65535 ? Jr.fromCodePoint(j) : rt(Yt.numericUnicodeMap[j] || j);
2243
2380
  }
2244
2381
  }
2245
- y += I, q = v.index + L.length;
2246
- } while (v = m.exec(e));
2247
- q !== e.length && (y += e.substring(q));
2382
+ w += z, A = E.index + q.length;
2383
+ } while (E = m.exec(e));
2384
+ A !== e.length && (w += e.substring(A));
2248
2385
  } else
2249
- y = e;
2250
- return y;
2386
+ w = e;
2387
+ return w;
2251
2388
  }
2252
- var Yt = br.decode = Qn;
2253
- const Zn = {
2254
- a: [
2255
- "class",
2256
- "target",
2257
- "href",
2258
- "title",
2259
- "rel",
2260
- "data-user-id",
2261
- "data-user-id-old",
2262
- "data-collection-id",
2263
- "data-page-id",
2264
- "data-link-id",
2265
- "data-mime-type",
2266
- "data-source",
2267
- "data-hashtag",
2268
- "data-channel-id",
2269
- "data-post-id",
2270
- "data-page-group-id",
2271
- "data-document-id",
2272
- "data-document-type",
2273
- "data-link-chip"
2274
- ],
2275
- abbr: ["title"],
2276
- address: [],
2277
- area: ["shape", "coords", "href", "alt"],
2278
- article: [],
2279
- aside: [],
2280
- audio: ["autoplay", "controls", "loop", "preload", "src"],
2281
- b: [],
2282
- bdi: ["dir"],
2283
- bdo: ["dir"],
2284
- big: [],
2285
- blockquote: ["cite"],
2286
- br: [],
2287
- caption: [],
2288
- center: [],
2289
- cite: [],
2290
- code: ["id"],
2291
- col: ["align", "valign", "span", "width"],
2292
- colgroup: ["align", "valign", "span", "width"],
2293
- dd: [],
2294
- del: ["datetime"],
2295
- details: ["open"],
2296
- div: ["style"],
2297
- dl: [],
2298
- dt: [],
2299
- em: [],
2300
- font: ["color", "size", "face", "style"],
2301
- footer: [],
2302
- h1: ["id", "class", "style"],
2303
- h2: ["id", "class", "style"],
2304
- h3: ["id", "class", "style"],
2305
- h4: ["id", "class", "style"],
2306
- h5: ["id", "class", "style"],
2307
- h6: ["id", "class", "style"],
2308
- header: ["style"],
2309
- hr: ["style", "class"],
2310
- i: [],
2311
- img: ["src", "alt", "title", "width", "height", "style", "class", "type"],
2312
- ins: ["datetime"],
2313
- li: ["style"],
2314
- mark: [],
2315
- nav: [],
2316
- ol: ["style"],
2317
- p: ["style"],
2318
- pre: ["id", "style"],
2319
- s: [],
2320
- section: [],
2321
- small: [],
2322
- span: ["style", "class"],
2323
- sub: [],
2324
- sup: [],
2325
- strong: [],
2326
- table: ["width", "border", "style", "class"],
2327
- tbody: ["align", "style", "class"],
2328
- td: ["width", "rowspan", "colspan", "style", "class"],
2329
- tfoot: ["align", "style", "class"],
2330
- th: ["width", "rowspan", "colspan", "style", "class"],
2331
- thead: ["align", "style", "class"],
2332
- tr: ["rowspan", "style", "class"],
2333
- tt: [],
2334
- u: [],
2335
- ul: ["style", "class"],
2336
- video: [
2337
- "style",
2338
- "autoplay",
2339
- "controls",
2340
- "loop",
2341
- "preload",
2342
- "src",
2343
- "height",
2344
- "width"
2345
- ],
2346
- iframe: [
2347
- "src",
2348
- "frameborder",
2349
- "allow",
2350
- "sandbox",
2351
- "referrerpolicy",
2352
- "allowfullscreen",
2353
- "style",
2354
- "class"
2355
- ]
2356
- }, Yn = "a11y-light", Xn = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap", Jn = [
2357
- "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"
2358
- ], ei = [
2359
- "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
2360
- `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${Yn}.min.css`
2361
- ], kt = "PRE", ri = "CODE", ti = [
2362
- "javascript",
2363
- "html",
2364
- "css",
2365
- "xml",
2366
- "json",
2367
- "java",
2368
- "php",
2369
- "typescript"
2370
- ];
2371
- var Xt = { exports: {} };
2389
+ var Jt = br.decode = li, ea = { exports: {} };
2372
2390
  (function(e) {
2373
2391
  (function() {
2374
2392
  function n(r) {
2375
- var u = {
2393
+ var i = {
2376
2394
  omitExtraWLInCodeBlocks: {
2377
2395
  defaultValue: !1,
2378
2396
  describe: "Omit the default extra whiteline added to code blocks",
@@ -2540,17 +2558,17 @@ var Xt = { exports: {} };
2540
2558
  }
2541
2559
  };
2542
2560
  if (r === !1)
2543
- return JSON.parse(JSON.stringify(u));
2561
+ return JSON.parse(JSON.stringify(i));
2544
2562
  var a = {};
2545
- for (var d in u)
2546
- u.hasOwnProperty(d) && (a[d] = u[d].defaultValue);
2563
+ for (var d in i)
2564
+ i.hasOwnProperty(d) && (a[d] = i[d].defaultValue);
2547
2565
  return a;
2548
2566
  }
2549
- function i() {
2550
- var r = n(!0), u = {};
2567
+ function u() {
2568
+ var r = n(!0), i = {};
2551
2569
  for (var a in r)
2552
- r.hasOwnProperty(a) && (u[a] = !0);
2553
- return u;
2570
+ r.hasOwnProperty(a) && (i[a] = !0);
2571
+ return i;
2554
2572
  }
2555
2573
  var t = {}, s = {}, p = {}, g = n(!0), m = "vanilla", b = {
2556
2574
  github: {
@@ -2594,10 +2612,10 @@ var Xt = { exports: {} };
2594
2612
  encodeEmails: !0
2595
2613
  },
2596
2614
  vanilla: n(!0),
2597
- allOn: i()
2615
+ allOn: u()
2598
2616
  };
2599
- t.helper = {}, t.extensions = {}, t.setOption = function(r, u) {
2600
- return g[r] = u, this;
2617
+ t.helper = {}, t.extensions = {}, t.setOption = function(r, i) {
2618
+ return g[r] = i, this;
2601
2619
  }, t.getOption = function(r) {
2602
2620
  return g[r];
2603
2621
  }, t.getOptions = function() {
@@ -2608,10 +2626,10 @@ var Xt = { exports: {} };
2608
2626
  if (!b.hasOwnProperty(r))
2609
2627
  throw Error(r + " flavor was not found");
2610
2628
  t.resetOptions();
2611
- var u = b[r];
2629
+ var i = b[r];
2612
2630
  m = r;
2613
- for (var a in u)
2614
- u.hasOwnProperty(a) && (g[a] = u[a]);
2631
+ for (var a in i)
2632
+ i.hasOwnProperty(a) && (g[a] = i[a]);
2615
2633
  }, t.getFlavor = function() {
2616
2634
  return m;
2617
2635
  }, t.getFlavorOptions = function(r) {
@@ -2619,27 +2637,27 @@ var Xt = { exports: {} };
2619
2637
  return b[r];
2620
2638
  }, t.getDefaultOptions = function(r) {
2621
2639
  return n(r);
2622
- }, t.subParser = function(r, u) {
2640
+ }, t.subParser = function(r, i) {
2623
2641
  if (t.helper.isString(r))
2624
- if (typeof u < "u")
2625
- s[r] = u;
2642
+ if (typeof i < "u")
2643
+ s[r] = i;
2626
2644
  else {
2627
2645
  if (s.hasOwnProperty(r))
2628
2646
  return s[r];
2629
2647
  throw Error("SubParser named " + r + " not registered!");
2630
2648
  }
2631
- }, t.extension = function(r, u) {
2649
+ }, t.extension = function(r, i) {
2632
2650
  if (!t.helper.isString(r))
2633
2651
  throw Error("Extension 'name' must be a string");
2634
- if (r = t.helper.stdExtName(r), t.helper.isUndefined(u)) {
2652
+ if (r = t.helper.stdExtName(r), t.helper.isUndefined(i)) {
2635
2653
  if (!p.hasOwnProperty(r))
2636
2654
  throw Error("Extension named " + r + " is not registered!");
2637
2655
  return p[r];
2638
2656
  } else {
2639
- typeof u == "function" && (u = u()), t.helper.isArray(u) || (u = [u]);
2640
- var a = D(u, r);
2657
+ typeof i == "function" && (i = i()), t.helper.isArray(i) || (i = [i]);
2658
+ var a = D(i, r);
2641
2659
  if (a.valid)
2642
- p[r] = u;
2660
+ p[r] = i;
2643
2661
  else
2644
2662
  throw Error(a.error);
2645
2663
  }
@@ -2650,154 +2668,154 @@ var Xt = { exports: {} };
2650
2668
  }, t.resetExtensions = function() {
2651
2669
  p = {};
2652
2670
  };
2653
- function D(r, u) {
2654
- var a = u ? "Error in " + u + " extension->" : "Error in unnamed extension", d = {
2671
+ function D(r, i) {
2672
+ var a = i ? "Error in " + i + " extension->" : "Error in unnamed extension", d = {
2655
2673
  valid: !0,
2656
2674
  error: ""
2657
2675
  };
2658
2676
  t.helper.isArray(r) || (r = [r]);
2659
- for (var o = 0; o < r.length; ++o) {
2660
- var f = a + " sub-extension " + o + ": ", c = r[o];
2661
- if (typeof c != "object")
2662
- return d.valid = !1, d.error = f + "must be an object, but " + typeof c + " given", d;
2663
- if (!t.helper.isString(c.type))
2664
- return d.valid = !1, d.error = f + 'property "type" must be a string, but ' + typeof c.type + " given", d;
2665
- var h = c.type = c.type.toLowerCase();
2666
- if (h === "language" && (h = c.type = "lang"), h === "html" && (h = c.type = "output"), h !== "lang" && h !== "output" && h !== "listener")
2677
+ for (var c = 0; c < r.length; ++c) {
2678
+ var f = a + " sub-extension " + c + ": ", o = r[c];
2679
+ if (typeof o != "object")
2680
+ return d.valid = !1, d.error = f + "must be an object, but " + typeof o + " given", d;
2681
+ if (!t.helper.isString(o.type))
2682
+ return d.valid = !1, d.error = f + 'property "type" must be a string, but ' + typeof o.type + " given", d;
2683
+ var h = o.type = o.type.toLowerCase();
2684
+ if (h === "language" && (h = o.type = "lang"), h === "html" && (h = o.type = "output"), h !== "lang" && h !== "output" && h !== "listener")
2667
2685
  return d.valid = !1, d.error = f + "type " + h + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"', d;
2668
2686
  if (h === "listener") {
2669
- if (t.helper.isUndefined(c.listeners))
2687
+ if (t.helper.isUndefined(o.listeners))
2670
2688
  return d.valid = !1, d.error = f + '. Extensions of type "listener" must have a property called "listeners"', d;
2671
- } else if (t.helper.isUndefined(c.filter) && t.helper.isUndefined(c.regex))
2689
+ } else if (t.helper.isUndefined(o.filter) && t.helper.isUndefined(o.regex))
2672
2690
  return d.valid = !1, d.error = f + h + ' extensions must define either a "regex" property or a "filter" method', d;
2673
- if (c.listeners) {
2674
- if (typeof c.listeners != "object")
2675
- return d.valid = !1, d.error = f + '"listeners" property must be an object but ' + typeof c.listeners + " given", d;
2676
- for (var T in c.listeners)
2677
- if (c.listeners.hasOwnProperty(T) && typeof c.listeners[T] != "function")
2678
- return d.valid = !1, d.error = f + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + T + " must be a function but " + typeof c.listeners[T] + " given", d;
2691
+ if (o.listeners) {
2692
+ if (typeof o.listeners != "object")
2693
+ return d.valid = !1, d.error = f + '"listeners" property must be an object but ' + typeof o.listeners + " given", d;
2694
+ for (var T in o.listeners)
2695
+ if (o.listeners.hasOwnProperty(T) && typeof o.listeners[T] != "function")
2696
+ return d.valid = !1, d.error = f + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + T + " must be a function but " + typeof o.listeners[T] + " given", d;
2679
2697
  }
2680
- if (c.filter) {
2681
- if (typeof c.filter != "function")
2682
- return d.valid = !1, d.error = f + '"filter" must be a function, but ' + typeof c.filter + " given", d;
2683
- } else if (c.regex) {
2684
- if (t.helper.isString(c.regex) && (c.regex = new RegExp(c.regex, "g")), !(c.regex instanceof RegExp))
2685
- return d.valid = !1, d.error = f + '"regex" property must either be a string or a RegExp object, but ' + typeof c.regex + " given", d;
2686
- if (t.helper.isUndefined(c.replace))
2698
+ if (o.filter) {
2699
+ if (typeof o.filter != "function")
2700
+ return d.valid = !1, d.error = f + '"filter" must be a function, but ' + typeof o.filter + " given", d;
2701
+ } else if (o.regex) {
2702
+ if (t.helper.isString(o.regex) && (o.regex = new RegExp(o.regex, "g")), !(o.regex instanceof RegExp))
2703
+ return d.valid = !1, d.error = f + '"regex" property must either be a string or a RegExp object, but ' + typeof o.regex + " given", d;
2704
+ if (t.helper.isUndefined(o.replace))
2687
2705
  return d.valid = !1, d.error = f + '"regex" extensions must implement a replace string or function', d;
2688
2706
  }
2689
2707
  }
2690
2708
  return d;
2691
2709
  }
2692
2710
  t.validateExtension = function(r) {
2693
- var u = D(r, null);
2694
- return u.valid ? !0 : (console.warn(u.error), !1);
2711
+ var i = D(r, null);
2712
+ return i.valid ? !0 : (console.warn(i.error), !1);
2695
2713
  }, t.hasOwnProperty("helper") || (t.helper = {}), t.helper.isString = function(r) {
2696
2714
  return typeof r == "string" || r instanceof String;
2697
2715
  }, t.helper.isFunction = function(r) {
2698
- var u = {};
2699
- return r && u.toString.call(r) === "[object Function]";
2716
+ var i = {};
2717
+ return r && i.toString.call(r) === "[object Function]";
2700
2718
  }, t.helper.isArray = function(r) {
2701
2719
  return Array.isArray(r);
2702
2720
  }, t.helper.isUndefined = function(r) {
2703
2721
  return typeof r > "u";
2704
- }, t.helper.forEach = function(r, u) {
2722
+ }, t.helper.forEach = function(r, i) {
2705
2723
  if (t.helper.isUndefined(r))
2706
2724
  throw new Error("obj param is required");
2707
- if (t.helper.isUndefined(u))
2725
+ if (t.helper.isUndefined(i))
2708
2726
  throw new Error("callback param is required");
2709
- if (!t.helper.isFunction(u))
2727
+ if (!t.helper.isFunction(i))
2710
2728
  throw new Error("callback param must be a function/closure");
2711
2729
  if (typeof r.forEach == "function")
2712
- r.forEach(u);
2730
+ r.forEach(i);
2713
2731
  else if (t.helper.isArray(r))
2714
2732
  for (var a = 0; a < r.length; a++)
2715
- u(r[a], a, r);
2733
+ i(r[a], a, r);
2716
2734
  else if (typeof r == "object")
2717
2735
  for (var d in r)
2718
- r.hasOwnProperty(d) && u(r[d], d, r);
2736
+ r.hasOwnProperty(d) && i(r[d], d, r);
2719
2737
  else
2720
2738
  throw new Error("obj does not seem to be an array or an iterable object");
2721
2739
  }, t.helper.stdExtName = function(r) {
2722
2740
  return r.replace(/[_?*+\/\\.^-]/g, "").replace(/\s/g, "").toLowerCase();
2723
2741
  };
2724
- function C(r, u) {
2725
- var a = u.charCodeAt(0);
2742
+ function S(r, i) {
2743
+ var a = i.charCodeAt(0);
2726
2744
  return "¨E" + a + "E";
2727
2745
  }
2728
- t.helper.escapeCharactersCallback = C, t.helper.escapeCharacters = function(r, u, a) {
2729
- var d = "([" + u.replace(/([\[\]\\])/g, "\\$1") + "])";
2746
+ t.helper.escapeCharactersCallback = S, t.helper.escapeCharacters = function(r, i, a) {
2747
+ var d = "([" + i.replace(/([\[\]\\])/g, "\\$1") + "])";
2730
2748
  a && (d = "\\\\" + d);
2731
- var o = new RegExp(d, "g");
2732
- return r = r.replace(o, C), r;
2749
+ var c = new RegExp(d, "g");
2750
+ return r = r.replace(c, S), r;
2733
2751
  }, t.helper.unescapeHTMLEntities = function(r) {
2734
2752
  return r.replace(/&quot;/g, '"').replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
2735
2753
  };
2736
- var v = function(r, u, a, d) {
2737
- var o = d || "", f = o.indexOf("g") > -1, c = new RegExp(u + "|" + a, "g" + o.replace(/g/g, "")), h = new RegExp(u, o.replace(/g/g, "")), T = [], k, _, E, l, w;
2754
+ var E = function(r, i, a, d) {
2755
+ var c = d || "", f = c.indexOf("g") > -1, o = new RegExp(i + "|" + a, "g" + c.replace(/g/g, "")), h = new RegExp(i, c.replace(/g/g, "")), T = [], _, v, k, l, y;
2738
2756
  do
2739
- for (k = 0; E = c.exec(r); )
2740
- if (h.test(E[0]))
2741
- k++ || (_ = c.lastIndex, l = _ - E[0].length);
2742
- else if (k && !--k) {
2743
- w = E.index + E[0].length;
2744
- var S = {
2745
- left: { start: l, end: _ },
2746
- match: { start: _, end: E.index },
2747
- right: { start: E.index, end: w },
2748
- wholeMatch: { start: l, end: w }
2757
+ for (_ = 0; k = o.exec(r); )
2758
+ if (h.test(k[0]))
2759
+ _++ || (v = o.lastIndex, l = v - k[0].length);
2760
+ else if (_ && !--_) {
2761
+ y = k.index + k[0].length;
2762
+ var L = {
2763
+ left: { start: l, end: v },
2764
+ match: { start: v, end: k.index },
2765
+ right: { start: k.index, end: y },
2766
+ wholeMatch: { start: l, end: y }
2749
2767
  };
2750
- if (T.push(S), !f)
2768
+ if (T.push(L), !f)
2751
2769
  return T;
2752
2770
  }
2753
- while (k && (c.lastIndex = _));
2771
+ while (_ && (o.lastIndex = v));
2754
2772
  return T;
2755
2773
  };
2756
- t.helper.matchRecursiveRegExp = function(r, u, a, d) {
2757
- for (var o = v(r, u, a, d), f = [], c = 0; c < o.length; ++c)
2774
+ t.helper.matchRecursiveRegExp = function(r, i, a, d) {
2775
+ for (var c = E(r, i, a, d), f = [], o = 0; o < c.length; ++o)
2758
2776
  f.push([
2759
- r.slice(o[c].wholeMatch.start, o[c].wholeMatch.end),
2760
- r.slice(o[c].match.start, o[c].match.end),
2761
- r.slice(o[c].left.start, o[c].left.end),
2762
- r.slice(o[c].right.start, o[c].right.end)
2777
+ r.slice(c[o].wholeMatch.start, c[o].wholeMatch.end),
2778
+ r.slice(c[o].match.start, c[o].match.end),
2779
+ r.slice(c[o].left.start, c[o].left.end),
2780
+ r.slice(c[o].right.start, c[o].right.end)
2763
2781
  ]);
2764
2782
  return f;
2765
- }, t.helper.replaceRecursiveRegExp = function(r, u, a, d, o) {
2766
- if (!t.helper.isFunction(u)) {
2767
- var f = u;
2768
- u = function() {
2783
+ }, t.helper.replaceRecursiveRegExp = function(r, i, a, d, c) {
2784
+ if (!t.helper.isFunction(i)) {
2785
+ var f = i;
2786
+ i = function() {
2769
2787
  return f;
2770
2788
  };
2771
2789
  }
2772
- var c = v(r, a, d, o), h = r, T = c.length;
2790
+ var o = E(r, a, d, c), h = r, T = o.length;
2773
2791
  if (T > 0) {
2774
- var k = [];
2775
- c[0].wholeMatch.start !== 0 && k.push(r.slice(0, c[0].wholeMatch.start));
2776
- for (var _ = 0; _ < T; ++_)
2777
- k.push(
2778
- u(
2779
- r.slice(c[_].wholeMatch.start, c[_].wholeMatch.end),
2780
- r.slice(c[_].match.start, c[_].match.end),
2781
- r.slice(c[_].left.start, c[_].left.end),
2782
- r.slice(c[_].right.start, c[_].right.end)
2792
+ var _ = [];
2793
+ o[0].wholeMatch.start !== 0 && _.push(r.slice(0, o[0].wholeMatch.start));
2794
+ for (var v = 0; v < T; ++v)
2795
+ _.push(
2796
+ i(
2797
+ r.slice(o[v].wholeMatch.start, o[v].wholeMatch.end),
2798
+ r.slice(o[v].match.start, o[v].match.end),
2799
+ r.slice(o[v].left.start, o[v].left.end),
2800
+ r.slice(o[v].right.start, o[v].right.end)
2783
2801
  )
2784
- ), _ < T - 1 && k.push(r.slice(c[_].wholeMatch.end, c[_ + 1].wholeMatch.start));
2785
- c[T - 1].wholeMatch.end < r.length && k.push(r.slice(c[T - 1].wholeMatch.end)), h = k.join("");
2802
+ ), v < T - 1 && _.push(r.slice(o[v].wholeMatch.end, o[v + 1].wholeMatch.start));
2803
+ o[T - 1].wholeMatch.end < r.length && _.push(r.slice(o[T - 1].wholeMatch.end)), h = _.join("");
2786
2804
  }
2787
2805
  return h;
2788
- }, t.helper.regexIndexOf = function(r, u, a) {
2806
+ }, t.helper.regexIndexOf = function(r, i, a) {
2789
2807
  if (!t.helper.isString(r))
2790
2808
  throw "InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";
2791
- if (!(u instanceof RegExp))
2809
+ if (!(i instanceof RegExp))
2792
2810
  throw "InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";
2793
- var d = r.substring(a || 0).search(u);
2811
+ var d = r.substring(a || 0).search(i);
2794
2812
  return d >= 0 ? d + (a || 0) : d;
2795
- }, t.helper.splitAtIndex = function(r, u) {
2813
+ }, t.helper.splitAtIndex = function(r, i) {
2796
2814
  if (!t.helper.isString(r))
2797
2815
  throw "InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";
2798
- return [r.substring(0, u), r.substring(u)];
2816
+ return [r.substring(0, i), r.substring(i)];
2799
2817
  }, t.helper.encodeEmailAddress = function(r) {
2800
- var u = [
2818
+ var i = [
2801
2819
  function(a) {
2802
2820
  return "&#" + a.charCodeAt(0) + ";";
2803
2821
  },
@@ -2810,15 +2828,15 @@ var Xt = { exports: {} };
2810
2828
  ];
2811
2829
  return r = r.replace(/./g, function(a) {
2812
2830
  if (a === "@")
2813
- a = u[Math.floor(Math.random() * 2)](a);
2831
+ a = i[Math.floor(Math.random() * 2)](a);
2814
2832
  else {
2815
2833
  var d = Math.random();
2816
- a = d > 0.9 ? u[2](a) : d > 0.45 ? u[1](a) : u[0](a);
2834
+ a = d > 0.9 ? i[2](a) : d > 0.45 ? i[1](a) : i[0](a);
2817
2835
  }
2818
2836
  return a;
2819
2837
  }), r;
2820
- }, t.helper.padEnd = function(u, a, d) {
2821
- return a = a >> 0, d = String(d || " "), u.length > a ? String(u) : (a = a - u.length, a > d.length && (d += d.repeat(a / d.length)), String(u) + d.slice(0, a));
2838
+ }, t.helper.padEnd = function(i, a, d) {
2839
+ return a = a >> 0, d = String(d || " "), i.length > a ? String(i) : (a = a - i.length, a > d.length && (d += d.repeat(a / d.length)), String(i) + d.slice(0, a));
2822
2840
  }, typeof console > "u" && (console = {
2823
2841
  warn: function(r) {
2824
2842
  alert(r);
@@ -4009,7 +4027,7 @@ var Xt = { exports: {} };
4009
4027
  octocat: '<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',
4010
4028
  showdown: `<span style="font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>`
4011
4029
  }, t.Converter = function(r) {
4012
- var u = {}, a = [], d = [], o = {}, f = m, c = {
4030
+ var i = {}, a = [], d = [], c = {}, f = m, o = {
4013
4031
  parsed: {},
4014
4032
  raw: "",
4015
4033
  format: ""
@@ -4018,27 +4036,27 @@ var Xt = { exports: {} };
4018
4036
  function h() {
4019
4037
  r = r || {};
4020
4038
  for (var l in g)
4021
- g.hasOwnProperty(l) && (u[l] = g[l]);
4039
+ g.hasOwnProperty(l) && (i[l] = g[l]);
4022
4040
  if (typeof r == "object")
4023
- for (var w in r)
4024
- r.hasOwnProperty(w) && (u[w] = r[w]);
4041
+ for (var y in r)
4042
+ r.hasOwnProperty(y) && (i[y] = r[y]);
4025
4043
  else
4026
4044
  throw Error("Converter expects the passed parameter to be an object, but " + typeof r + " was passed instead.");
4027
- u.extensions && t.helper.forEach(u.extensions, T);
4045
+ i.extensions && t.helper.forEach(i.extensions, T);
4028
4046
  }
4029
- function T(l, w) {
4030
- if (w = w || null, t.helper.isString(l))
4031
- if (l = t.helper.stdExtName(l), w = l, t.extensions[l]) {
4032
- console.warn("DEPRECATION WARNING: " + l + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), k(t.extensions[l], l);
4047
+ function T(l, y) {
4048
+ if (y = y || null, t.helper.isString(l))
4049
+ if (l = t.helper.stdExtName(l), y = l, t.extensions[l]) {
4050
+ console.warn("DEPRECATION WARNING: " + l + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), _(t.extensions[l], l);
4033
4051
  return;
4034
4052
  } else if (!t.helper.isUndefined(p[l]))
4035
4053
  l = p[l];
4036
4054
  else
4037
4055
  throw Error('Extension "' + l + '" could not be loaded. It was either not found or is not a valid extension.');
4038
4056
  typeof l == "function" && (l = l()), t.helper.isArray(l) || (l = [l]);
4039
- var S = D(l, w);
4040
- if (!S.valid)
4041
- throw Error(S.error);
4057
+ var L = D(l, y);
4058
+ if (!L.valid)
4059
+ throw Error(L.error);
4042
4060
  for (var P = 0; P < l.length; ++P) {
4043
4061
  switch (l[P].type) {
4044
4062
  case "lang":
@@ -4050,14 +4068,14 @@ var Xt = { exports: {} };
4050
4068
  }
4051
4069
  if (l[P].hasOwnProperty("listeners"))
4052
4070
  for (var H in l[P].listeners)
4053
- l[P].listeners.hasOwnProperty(H) && _(H, l[P].listeners[H]);
4071
+ l[P].listeners.hasOwnProperty(H) && v(H, l[P].listeners[H]);
4054
4072
  }
4055
4073
  }
4056
- function k(l, w) {
4074
+ function _(l, y) {
4057
4075
  typeof l == "function" && (l = l(new t.Converter())), t.helper.isArray(l) || (l = [l]);
4058
- var S = D(l, w);
4059
- if (!S.valid)
4060
- throw Error(S.error);
4076
+ var L = D(l, y);
4077
+ if (!L.valid)
4078
+ throw Error(L.error);
4061
4079
  for (var P = 0; P < l.length; ++P)
4062
4080
  switch (l[P].type) {
4063
4081
  case "lang":
@@ -4070,30 +4088,30 @@ var Xt = { exports: {} };
4070
4088
  throw Error("Extension loader error: Type unrecognized!!!");
4071
4089
  }
4072
4090
  }
4073
- function _(l, w) {
4091
+ function v(l, y) {
4074
4092
  if (!t.helper.isString(l))
4075
4093
  throw Error("Invalid argument in converter.listen() method: name must be a string, but " + typeof l + " given");
4076
- if (typeof w != "function")
4077
- throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + typeof w + " given");
4078
- o.hasOwnProperty(l) || (o[l] = []), o[l].push(w);
4094
+ if (typeof y != "function")
4095
+ throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + typeof y + " given");
4096
+ c.hasOwnProperty(l) || (c[l] = []), c[l].push(y);
4079
4097
  }
4080
- function E(l) {
4081
- var w = l.match(/^\s*/)[0].length, S = new RegExp("^\\s{0," + w + "}", "gm");
4082
- return l.replace(S, "");
4098
+ function k(l) {
4099
+ var y = l.match(/^\s*/)[0].length, L = new RegExp("^\\s{0," + y + "}", "gm");
4100
+ return l.replace(L, "");
4083
4101
  }
4084
- this._dispatch = function(w, S, P, H) {
4085
- if (o.hasOwnProperty(w))
4086
- for (var R = 0; R < o[w].length; ++R) {
4087
- var B = o[w][R](w, S, this, P, H);
4088
- B && typeof B < "u" && (S = B);
4102
+ this._dispatch = function(y, L, P, H) {
4103
+ if (c.hasOwnProperty(y))
4104
+ for (var R = 0; R < c[y].length; ++R) {
4105
+ var B = c[y][R](y, L, this, P, H);
4106
+ B && typeof B < "u" && (L = B);
4089
4107
  }
4090
- return S;
4091
- }, this.listen = function(l, w) {
4092
- return _(l, w), this;
4108
+ return L;
4109
+ }, this.listen = function(l, y) {
4110
+ return v(l, y), this;
4093
4111
  }, this.makeHtml = function(l) {
4094
4112
  if (!l)
4095
4113
  return l;
4096
- var w = {
4114
+ var y = {
4097
4115
  gHtmlBlocks: [],
4098
4116
  gHtmlMdBlocks: [],
4099
4117
  gHtmlSpans: [],
@@ -4114,30 +4132,30 @@ var Xt = { exports: {} };
4114
4132
  };
4115
4133
  return l = l.replace(/¨/g, "¨T"), l = l.replace(/\$/g, "¨D"), l = l.replace(/\r\n/g, `
4116
4134
  `), l = l.replace(/\r/g, `
4117
- `), l = l.replace(/\u00A0/g, "&nbsp;"), u.smartIndentationFix && (l = E(l)), l = `
4135
+ `), l = l.replace(/\u00A0/g, "&nbsp;"), i.smartIndentationFix && (l = k(l)), l = `
4118
4136
 
4119
4137
  ` + l + `
4120
4138
 
4121
- `, l = t.subParser("detab")(l, u, w), l = l.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(S) {
4122
- l = t.subParser("runExtension")(S, l, u, w);
4123
- }), l = t.subParser("metadata")(l, u, w), l = t.subParser("hashPreCodeTags")(l, u, w), l = t.subParser("githubCodeBlocks")(l, u, w), l = t.subParser("hashHTMLBlocks")(l, u, w), l = t.subParser("hashCodeTags")(l, u, w), l = t.subParser("stripLinkDefinitions")(l, u, w), l = t.subParser("blockGamut")(l, u, w), l = t.subParser("unhashHTMLSpans")(l, u, w), l = t.subParser("unescapeSpecialChars")(l, u, w), l = l.replace(/¨D/g, "$$"), l = l.replace(/¨T/g, "¨"), l = t.subParser("completeHTMLDocument")(l, u, w), t.helper.forEach(d, function(S) {
4124
- l = t.subParser("runExtension")(S, l, u, w);
4125
- }), c = w.metadata, l;
4126
- }, this.makeMarkdown = this.makeMd = function(l, w) {
4139
+ `, l = t.subParser("detab")(l, i, y), l = l.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(L) {
4140
+ l = t.subParser("runExtension")(L, l, i, y);
4141
+ }), l = t.subParser("metadata")(l, i, y), l = t.subParser("hashPreCodeTags")(l, i, y), l = t.subParser("githubCodeBlocks")(l, i, y), l = t.subParser("hashHTMLBlocks")(l, i, y), l = t.subParser("hashCodeTags")(l, i, y), l = t.subParser("stripLinkDefinitions")(l, i, y), l = t.subParser("blockGamut")(l, i, y), l = t.subParser("unhashHTMLSpans")(l, i, y), l = t.subParser("unescapeSpecialChars")(l, i, y), l = l.replace(/¨D/g, "$$"), l = l.replace(/¨T/g, "¨"), l = t.subParser("completeHTMLDocument")(l, i, y), t.helper.forEach(d, function(L) {
4142
+ l = t.subParser("runExtension")(L, l, i, y);
4143
+ }), o = y.metadata, l;
4144
+ }, this.makeMarkdown = this.makeMd = function(l, y) {
4127
4145
  if (l = l.replace(/\r\n/g, `
4128
4146
  `), l = l.replace(/\r/g, `
4129
- `), l = l.replace(/>[ \t]+</, ">¨NBSP;<"), !w)
4147
+ `), l = l.replace(/>[ \t]+</, ">¨NBSP;<"), !y)
4130
4148
  if (window && window.document)
4131
- w = window.document;
4149
+ y = window.document;
4132
4150
  else
4133
4151
  throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");
4134
- var S = w.createElement("div");
4135
- S.innerHTML = l;
4152
+ var L = y.createElement("div");
4153
+ L.innerHTML = l;
4136
4154
  var P = {
4137
- preList: J(S)
4155
+ preList: J(L)
4138
4156
  };
4139
- G(S);
4140
- for (var H = S.childNodes, R = "", B = 0; B < H.length; B++)
4157
+ G(L);
4158
+ for (var H = L.childNodes, R = "", B = 0; B < H.length; B++)
4141
4159
  R += t.subParser("makeMarkdown.node")(H[B], P);
4142
4160
  function G(U) {
4143
4161
  for (var $ = 0; $ < U.childNodes.length; ++$) {
@@ -4164,32 +4182,32 @@ var Xt = { exports: {} };
4164
4182
  return W;
4165
4183
  }
4166
4184
  return R;
4167
- }, this.setOption = function(l, w) {
4168
- u[l] = w;
4185
+ }, this.setOption = function(l, y) {
4186
+ i[l] = y;
4169
4187
  }, this.getOption = function(l) {
4170
- return u[l];
4188
+ return i[l];
4171
4189
  }, this.getOptions = function() {
4172
- return u;
4173
- }, this.addExtension = function(l, w) {
4174
- w = w || null, T(l, w);
4190
+ return i;
4191
+ }, this.addExtension = function(l, y) {
4192
+ y = y || null, T(l, y);
4175
4193
  }, this.useExtension = function(l) {
4176
4194
  T(l);
4177
4195
  }, this.setFlavor = function(l) {
4178
4196
  if (!b.hasOwnProperty(l))
4179
4197
  throw Error(l + " flavor was not found");
4180
- var w = b[l];
4198
+ var y = b[l];
4181
4199
  f = l;
4182
- for (var S in w)
4183
- w.hasOwnProperty(S) && (u[S] = w[S]);
4200
+ for (var L in y)
4201
+ y.hasOwnProperty(L) && (i[L] = y[L]);
4184
4202
  }, this.getFlavor = function() {
4185
4203
  return f;
4186
4204
  }, this.removeExtension = function(l) {
4187
4205
  t.helper.isArray(l) || (l = [l]);
4188
- for (var w = 0; w < l.length; ++w) {
4189
- for (var S = l[w], P = 0; P < a.length; ++P)
4190
- a[P] === S && a.splice(P, 1);
4206
+ for (var y = 0; y < l.length; ++y) {
4207
+ for (var L = l[y], P = 0; P < a.length; ++P)
4208
+ a[P] === L && a.splice(P, 1);
4191
4209
  for (var H = 0; H < d.length; ++H)
4192
- d[H] === S && d.splice(H, 1);
4210
+ d[H] === L && d.splice(H, 1);
4193
4211
  }
4194
4212
  }, this.getAllExtensions = function() {
4195
4213
  return {
@@ -4197,29 +4215,29 @@ var Xt = { exports: {} };
4197
4215
  output: d
4198
4216
  };
4199
4217
  }, this.getMetadata = function(l) {
4200
- return l ? c.raw : c.parsed;
4218
+ return l ? o.raw : o.parsed;
4201
4219
  }, this.getMetadataFormat = function() {
4202
- return c.format;
4203
- }, this._setMetadataPair = function(l, w) {
4204
- c.parsed[l] = w;
4220
+ return o.format;
4221
+ }, this._setMetadataPair = function(l, y) {
4222
+ o.parsed[l] = y;
4205
4223
  }, this._setMetadataFormat = function(l) {
4206
- c.format = l;
4224
+ o.format = l;
4207
4225
  }, this._setMetadataRaw = function(l) {
4208
- c.raw = l;
4226
+ o.raw = l;
4209
4227
  };
4210
- }, t.subParser("anchors", function(r, u, a) {
4211
- r = a.converter._dispatch("anchors.before", r, u, a);
4212
- var d = function(o, f, c, h, T, k, _) {
4213
- if (t.helper.isUndefined(_) && (_ = ""), c = c.toLowerCase(), o.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4228
+ }, t.subParser("anchors", function(r, i, a) {
4229
+ r = a.converter._dispatch("anchors.before", r, i, a);
4230
+ var d = function(c, f, o, h, T, _, v) {
4231
+ if (t.helper.isUndefined(v) && (v = ""), o = o.toLowerCase(), c.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4214
4232
  h = "";
4215
4233
  else if (!h)
4216
- if (c || (c = f.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + c, !t.helper.isUndefined(a.gUrls[c]))
4217
- h = a.gUrls[c], t.helper.isUndefined(a.gTitles[c]) || (_ = a.gTitles[c]);
4234
+ if (o || (o = f.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + o, !t.helper.isUndefined(a.gUrls[o]))
4235
+ h = a.gUrls[o], t.helper.isUndefined(a.gTitles[o]) || (v = a.gTitles[o]);
4218
4236
  else
4219
- return o;
4237
+ return c;
4220
4238
  h = h.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4221
- var E = '<a href="' + h + '"';
4222
- return _ !== "" && _ !== null && (_ = _.replace(/"/g, "&quot;"), _ = _.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), E += ' title="' + _ + '"'), u.openLinksInNewWindow && !/^#/.test(h) && (E += ' rel="noopener noreferrer" target="¨E95Eblank"'), E += ">" + f + "</a>", E;
4239
+ var k = '<a href="' + h + '"';
4240
+ return v !== "" && v !== null && (v = v.replace(/"/g, "&quot;"), v = v.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), k += ' title="' + v + '"'), i.openLinksInNewWindow && !/^#/.test(h) && (k += ' rel="noopener noreferrer" target="¨E95Eblank"'), k += ">" + f + "</a>", k;
4223
4241
  };
4224
4242
  return r = r.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g, d), r = r.replace(
4225
4243
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
@@ -4227,74 +4245,74 @@ var Xt = { exports: {} };
4227
4245
  ), r = r.replace(
4228
4246
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
4229
4247
  d
4230
- ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), u.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(o, f, c, h, T) {
4231
- if (c === "\\")
4248
+ ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), i.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(c, f, o, h, T) {
4249
+ if (o === "\\")
4232
4250
  return f + h;
4233
- if (!t.helper.isString(u.ghMentionsLink))
4251
+ if (!t.helper.isString(i.ghMentionsLink))
4234
4252
  throw new Error("ghMentionsLink option must be a string");
4235
- var k = u.ghMentionsLink.replace(/\{u}/g, T), _ = "";
4236
- return u.openLinksInNewWindow && (_ = ' rel="noopener noreferrer" target="¨E95Eblank"'), f + '<a href="' + k + '"' + _ + ">" + h + "</a>";
4237
- })), r = a.converter._dispatch("anchors.after", r, u, a), r;
4253
+ var _ = i.ghMentionsLink.replace(/\{u}/g, T), v = "";
4254
+ return i.openLinksInNewWindow && (v = ' rel="noopener noreferrer" target="¨E95Eblank"'), f + '<a href="' + _ + '"' + v + ">" + h + "</a>";
4255
+ })), r = a.converter._dispatch("anchors.after", r, i, a), r;
4238
4256
  });
4239
- var y = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi, q = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi, L = /()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi, I = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, O = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, z = function(r) {
4240
- return function(u, a, d, o, f, c, h) {
4257
+ var w = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi, A = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi, q = /()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi, z = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, N = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, x = function(r) {
4258
+ return function(i, a, d, c, f, o, h) {
4241
4259
  d = d.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4242
- var T = d, k = "", _ = "", E = a || "", l = h || "";
4243
- return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && c && (k = c), r.openLinksInNewWindow && (_ = ' rel="noopener noreferrer" target="¨E95Eblank"'), E + '<a href="' + d + '"' + _ + ">" + T + "</a>" + k + l;
4260
+ var T = d, _ = "", v = "", k = a || "", l = h || "";
4261
+ return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && o && (_ = o), r.openLinksInNewWindow && (v = ' rel="noopener noreferrer" target="¨E95Eblank"'), k + '<a href="' + d + '"' + v + ">" + T + "</a>" + _ + l;
4244
4262
  };
4245
- }, j = function(r, u) {
4246
- return function(a, d, o) {
4263
+ }, O = function(r, i) {
4264
+ return function(a, d, c) {
4247
4265
  var f = "mailto:";
4248
- return d = d || "", o = t.subParser("unescapeSpecialChars")(o, r, u), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + o), o = t.helper.encodeEmailAddress(o)) : f = f + o, d + '<a href="' + f + '">' + o + "</a>";
4266
+ return d = d || "", c = t.subParser("unescapeSpecialChars")(c, r, i), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + c), c = t.helper.encodeEmailAddress(c)) : f = f + c, d + '<a href="' + f + '">' + c + "</a>";
4249
4267
  };
4250
4268
  };
4251
- t.subParser("autoLinks", function(r, u, a) {
4252
- return r = a.converter._dispatch("autoLinks.before", r, u, a), r = r.replace(L, z(u)), r = r.replace(O, j(u, a)), r = a.converter._dispatch("autoLinks.after", r, u, a), r;
4253
- }), t.subParser("simplifiedAutoLinks", function(r, u, a) {
4254
- return u.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, u, a), u.excludeTrailingPunctuationFromURLs ? r = r.replace(q, z(u)) : r = r.replace(y, z(u)), r = r.replace(I, j(u, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, u, a)), r;
4255
- }), t.subParser("blockGamut", function(r, u, a) {
4256
- return r = a.converter._dispatch("blockGamut.before", r, u, a), r = t.subParser("blockQuotes")(r, u, a), r = t.subParser("headers")(r, u, a), r = t.subParser("horizontalRule")(r, u, a), r = t.subParser("lists")(r, u, a), r = t.subParser("codeBlocks")(r, u, a), r = t.subParser("tables")(r, u, a), r = t.subParser("hashHTMLBlocks")(r, u, a), r = t.subParser("paragraphs")(r, u, a), r = a.converter._dispatch("blockGamut.after", r, u, a), r;
4257
- }), t.subParser("blockQuotes", function(r, u, a) {
4258
- r = a.converter._dispatch("blockQuotes.before", r, u, a), r = r + `
4269
+ t.subParser("autoLinks", function(r, i, a) {
4270
+ return r = a.converter._dispatch("autoLinks.before", r, i, a), r = r.replace(q, x(i)), r = r.replace(N, O(i, a)), r = a.converter._dispatch("autoLinks.after", r, i, a), r;
4271
+ }), t.subParser("simplifiedAutoLinks", function(r, i, a) {
4272
+ return i.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, i, a), i.excludeTrailingPunctuationFromURLs ? r = r.replace(A, x(i)) : r = r.replace(w, x(i)), r = r.replace(z, O(i, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, i, a)), r;
4273
+ }), t.subParser("blockGamut", function(r, i, a) {
4274
+ return r = a.converter._dispatch("blockGamut.before", r, i, a), r = t.subParser("blockQuotes")(r, i, a), r = t.subParser("headers")(r, i, a), r = t.subParser("horizontalRule")(r, i, a), r = t.subParser("lists")(r, i, a), r = t.subParser("codeBlocks")(r, i, a), r = t.subParser("tables")(r, i, a), r = t.subParser("hashHTMLBlocks")(r, i, a), r = t.subParser("paragraphs")(r, i, a), r = a.converter._dispatch("blockGamut.after", r, i, a), r;
4275
+ }), t.subParser("blockQuotes", function(r, i, a) {
4276
+ r = a.converter._dispatch("blockQuotes.before", r, i, a), r = r + `
4259
4277
 
4260
4278
  `;
4261
4279
  var d = /(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;
4262
- return u.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(o) {
4263
- return o = o.replace(/^[ \t]*>[ \t]?/gm, ""), o = o.replace(/¨0/g, ""), o = o.replace(/^[ \t]+$/gm, ""), o = t.subParser("githubCodeBlocks")(o, u, a), o = t.subParser("blockGamut")(o, u, a), o = o.replace(/(^|\n)/g, "$1 "), o = o.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, c) {
4264
- var h = c;
4280
+ return i.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(c) {
4281
+ return c = c.replace(/^[ \t]*>[ \t]?/gm, ""), c = c.replace(/¨0/g, ""), c = c.replace(/^[ \t]+$/gm, ""), c = t.subParser("githubCodeBlocks")(c, i, a), c = t.subParser("blockGamut")(c, i, a), c = c.replace(/(^|\n)/g, "$1 "), c = c.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, o) {
4282
+ var h = o;
4265
4283
  return h = h.replace(/^ /mg, "¨0"), h = h.replace(/¨0/g, ""), h;
4266
4284
  }), t.subParser("hashBlock")(`<blockquote>
4267
- ` + o + `
4268
- </blockquote>`, u, a);
4269
- }), r = a.converter._dispatch("blockQuotes.after", r, u, a), r;
4270
- }), t.subParser("codeBlocks", function(r, u, a) {
4271
- r = a.converter._dispatch("codeBlocks.before", r, u, a), r += "¨0";
4285
+ ` + c + `
4286
+ </blockquote>`, i, a);
4287
+ }), r = a.converter._dispatch("blockQuotes.after", r, i, a), r;
4288
+ }), t.subParser("codeBlocks", function(r, i, a) {
4289
+ r = a.converter._dispatch("codeBlocks.before", r, i, a), r += "¨0";
4272
4290
  var d = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;
4273
- return r = r.replace(d, function(o, f, c) {
4274
- var h = f, T = c, k = `
4291
+ return r = r.replace(d, function(c, f, o) {
4292
+ var h = f, T = o, _ = `
4275
4293
  `;
4276
- return h = t.subParser("outdent")(h, u, a), h = t.subParser("encodeCode")(h, u, a), h = t.subParser("detab")(h, u, a), h = h.replace(/^\n+/g, ""), h = h.replace(/\n+$/g, ""), u.omitExtraWLInCodeBlocks && (k = ""), h = "<pre><code>" + h + k + "</code></pre>", t.subParser("hashBlock")(h, u, a) + T;
4277
- }), r = r.replace(/¨0/, ""), r = a.converter._dispatch("codeBlocks.after", r, u, a), r;
4278
- }), t.subParser("codeSpans", function(r, u, a) {
4279
- return r = a.converter._dispatch("codeSpans.before", r, u, a), typeof r > "u" && (r = ""), r = r.replace(
4294
+ return h = t.subParser("outdent")(h, i, a), h = t.subParser("encodeCode")(h, i, a), h = t.subParser("detab")(h, i, a), h = h.replace(/^\n+/g, ""), h = h.replace(/\n+$/g, ""), i.omitExtraWLInCodeBlocks && (_ = ""), h = "<pre><code>" + h + _ + "</code></pre>", t.subParser("hashBlock")(h, i, a) + T;
4295
+ }), r = r.replace(/¨0/, ""), r = a.converter._dispatch("codeBlocks.after", r, i, a), r;
4296
+ }), t.subParser("codeSpans", function(r, i, a) {
4297
+ return r = a.converter._dispatch("codeSpans.before", r, i, a), typeof r > "u" && (r = ""), r = r.replace(
4280
4298
  /(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
4281
- function(d, o, f, c) {
4282
- var h = c;
4283
- return h = h.replace(/^([ \t]*)/g, ""), h = h.replace(/[ \t]*$/g, ""), h = t.subParser("encodeCode")(h, u, a), h = o + "<code>" + h + "</code>", h = t.subParser("hashHTMLSpans")(h, u, a), h;
4299
+ function(d, c, f, o) {
4300
+ var h = o;
4301
+ return h = h.replace(/^([ \t]*)/g, ""), h = h.replace(/[ \t]*$/g, ""), h = t.subParser("encodeCode")(h, i, a), h = c + "<code>" + h + "</code>", h = t.subParser("hashHTMLSpans")(h, i, a), h;
4284
4302
  }
4285
- ), r = a.converter._dispatch("codeSpans.after", r, u, a), r;
4286
- }), t.subParser("completeHTMLDocument", function(r, u, a) {
4287
- if (!u.completeHTMLDocument)
4303
+ ), r = a.converter._dispatch("codeSpans.after", r, i, a), r;
4304
+ }), t.subParser("completeHTMLDocument", function(r, i, a) {
4305
+ if (!i.completeHTMLDocument)
4288
4306
  return r;
4289
- r = a.converter._dispatch("completeHTMLDocument.before", r, u, a);
4290
- var d = "html", o = `<!DOCTYPE HTML>
4291
- `, f = "", c = `<meta charset="utf-8">
4307
+ r = a.converter._dispatch("completeHTMLDocument.before", r, i, a);
4308
+ var d = "html", c = `<!DOCTYPE HTML>
4309
+ `, f = "", o = `<meta charset="utf-8">
4292
4310
  `, h = "", T = "";
4293
- typeof a.metadata.parsed.doctype < "u" && (o = "<!DOCTYPE " + a.metadata.parsed.doctype + `>
4294
- `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (c = '<meta charset="utf-8">'));
4295
- for (var k in a.metadata.parsed)
4296
- if (a.metadata.parsed.hasOwnProperty(k))
4297
- switch (k.toLowerCase()) {
4311
+ typeof a.metadata.parsed.doctype < "u" && (c = "<!DOCTYPE " + a.metadata.parsed.doctype + `>
4312
+ `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (o = '<meta charset="utf-8">'));
4313
+ for (var _ in a.metadata.parsed)
4314
+ if (a.metadata.parsed.hasOwnProperty(_))
4315
+ switch (_.toLowerCase()) {
4298
4316
  case "doctype":
4299
4317
  break;
4300
4318
  case "title":
@@ -4302,82 +4320,82 @@ var Xt = { exports: {} };
4302
4320
  `;
4303
4321
  break;
4304
4322
  case "charset":
4305
- d === "html" || d === "html5" ? c = '<meta charset="' + a.metadata.parsed.charset + `">
4306
- ` : c = '<meta name="charset" content="' + a.metadata.parsed.charset + `">
4323
+ d === "html" || d === "html5" ? o = '<meta charset="' + a.metadata.parsed.charset + `">
4324
+ ` : o = '<meta name="charset" content="' + a.metadata.parsed.charset + `">
4307
4325
  `;
4308
4326
  break;
4309
4327
  case "language":
4310
4328
  case "lang":
4311
- h = ' lang="' + a.metadata.parsed[k] + '"', T += '<meta name="' + k + '" content="' + a.metadata.parsed[k] + `">
4329
+ h = ' lang="' + a.metadata.parsed[_] + '"', T += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4312
4330
  `;
4313
4331
  break;
4314
4332
  default:
4315
- T += '<meta name="' + k + '" content="' + a.metadata.parsed[k] + `">
4333
+ T += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4316
4334
  `;
4317
4335
  }
4318
- return r = o + "<html" + h + `>
4336
+ return r = c + "<html" + h + `>
4319
4337
  <head>
4320
- ` + f + c + T + `</head>
4338
+ ` + f + o + T + `</head>
4321
4339
  <body>
4322
4340
  ` + r.trim() + `
4323
4341
  </body>
4324
- </html>`, r = a.converter._dispatch("completeHTMLDocument.after", r, u, a), r;
4325
- }), t.subParser("detab", function(r, u, a) {
4326
- return r = a.converter._dispatch("detab.before", r, u, a), r = r.replace(/\t(?=\t)/g, " "), r = r.replace(/\t/g, "¨A¨B"), r = r.replace(/¨B(.+?)¨A/g, function(d, o) {
4327
- for (var f = o, c = 4 - f.length % 4, h = 0; h < c; h++)
4342
+ </html>`, r = a.converter._dispatch("completeHTMLDocument.after", r, i, a), r;
4343
+ }), t.subParser("detab", function(r, i, a) {
4344
+ return r = a.converter._dispatch("detab.before", r, i, a), r = r.replace(/\t(?=\t)/g, " "), r = r.replace(/\t/g, "¨A¨B"), r = r.replace(/¨B(.+?)¨A/g, function(d, c) {
4345
+ for (var f = c, o = 4 - f.length % 4, h = 0; h < o; h++)
4328
4346
  f += " ";
4329
4347
  return f;
4330
- }), r = r.replace(/¨A/g, " "), r = r.replace(/¨B/g, ""), r = a.converter._dispatch("detab.after", r, u, a), r;
4331
- }), t.subParser("ellipsis", function(r, u, a) {
4332
- return u.ellipsis && (r = a.converter._dispatch("ellipsis.before", r, u, a), r = r.replace(/\.\.\./g, "…"), r = a.converter._dispatch("ellipsis.after", r, u, a)), r;
4333
- }), t.subParser("emoji", function(r, u, a) {
4334
- if (!u.emoji)
4348
+ }), r = r.replace(/¨A/g, " "), r = r.replace(/¨B/g, ""), r = a.converter._dispatch("detab.after", r, i, a), r;
4349
+ }), t.subParser("ellipsis", function(r, i, a) {
4350
+ return i.ellipsis && (r = a.converter._dispatch("ellipsis.before", r, i, a), r = r.replace(/\.\.\./g, "…"), r = a.converter._dispatch("ellipsis.after", r, i, a)), r;
4351
+ }), t.subParser("emoji", function(r, i, a) {
4352
+ if (!i.emoji)
4335
4353
  return r;
4336
- r = a.converter._dispatch("emoji.before", r, u, a);
4354
+ r = a.converter._dispatch("emoji.before", r, i, a);
4337
4355
  var d = /:([\S]+?):/g;
4338
- return r = r.replace(d, function(o, f) {
4339
- return t.helper.emojis.hasOwnProperty(f) ? t.helper.emojis[f] : o;
4340
- }), r = a.converter._dispatch("emoji.after", r, u, a), r;
4341
- }), t.subParser("encodeAmpsAndAngles", function(r, u, a) {
4342
- return r = a.converter._dispatch("encodeAmpsAndAngles.before", r, u, a), r = r.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&amp;"), r = r.replace(/<(?![a-z\/?$!])/gi, "&lt;"), r = r.replace(/</g, "&lt;"), r = r.replace(/>/g, "&gt;"), r = a.converter._dispatch("encodeAmpsAndAngles.after", r, u, a), r;
4343
- }), t.subParser("encodeBackslashEscapes", function(r, u, a) {
4344
- return r = a.converter._dispatch("encodeBackslashEscapes.before", r, u, a), r = r.replace(/\\(\\)/g, t.helper.escapeCharactersCallback), r = r.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("encodeBackslashEscapes.after", r, u, a), r;
4345
- }), t.subParser("encodeCode", function(r, u, a) {
4346
- return r = a.converter._dispatch("encodeCode.before", r, u, a), r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/([*_{}\[\]\\=~-])/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("encodeCode.after", r, u, a), r;
4347
- }), t.subParser("escapeSpecialCharsWithinTagAttributes", function(r, u, a) {
4348
- r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before", r, u, a);
4349
- var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, o = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4356
+ return r = r.replace(d, function(c, f) {
4357
+ return t.helper.emojis.hasOwnProperty(f) ? t.helper.emojis[f] : c;
4358
+ }), r = a.converter._dispatch("emoji.after", r, i, a), r;
4359
+ }), t.subParser("encodeAmpsAndAngles", function(r, i, a) {
4360
+ return r = a.converter._dispatch("encodeAmpsAndAngles.before", r, i, a), r = r.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, "&amp;"), r = r.replace(/<(?![a-z\/?$!])/gi, "&lt;"), r = r.replace(/</g, "&lt;"), r = r.replace(/>/g, "&gt;"), r = a.converter._dispatch("encodeAmpsAndAngles.after", r, i, a), r;
4361
+ }), t.subParser("encodeBackslashEscapes", function(r, i, a) {
4362
+ return r = a.converter._dispatch("encodeBackslashEscapes.before", r, i, a), r = r.replace(/\\(\\)/g, t.helper.escapeCharactersCallback), r = r.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("encodeBackslashEscapes.after", r, i, a), r;
4363
+ }), t.subParser("encodeCode", function(r, i, a) {
4364
+ return r = a.converter._dispatch("encodeCode.before", r, i, a), r = r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/([*_{}\[\]\\=~-])/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("encodeCode.after", r, i, a), r;
4365
+ }), t.subParser("escapeSpecialCharsWithinTagAttributes", function(r, i, a) {
4366
+ r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before", r, i, a);
4367
+ var d = /<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi, c = /<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;
4350
4368
  return r = r.replace(d, function(f) {
4351
4369
  return f.replace(/(.)<\/?code>(?=.)/g, "$1`").replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4352
- }), r = r.replace(o, function(f) {
4370
+ }), r = r.replace(c, function(f) {
4353
4371
  return f.replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4354
- }), r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after", r, u, a), r;
4355
- }), t.subParser("githubCodeBlocks", function(r, u, a) {
4356
- return u.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, u, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, o, f, c) {
4357
- var h = u.omitExtraWLInCodeBlocks ? "" : `
4372
+ }), r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after", r, i, a), r;
4373
+ }), t.subParser("githubCodeBlocks", function(r, i, a) {
4374
+ return i.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, i, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, c, f, o) {
4375
+ var h = i.omitExtraWLInCodeBlocks ? "" : `
4358
4376
  `;
4359
- return c = t.subParser("encodeCode")(c, u, a), c = t.subParser("detab")(c, u, a), c = c.replace(/^\n+/g, ""), c = c.replace(/\n+$/g, ""), c = "<pre><code" + (f ? ' class="' + f + " language-" + f + '"' : "") + ">" + c + h + "</code></pre>", c = t.subParser("hashBlock")(c, u, a), `
4377
+ return o = t.subParser("encodeCode")(o, i, a), o = t.subParser("detab")(o, i, a), o = o.replace(/^\n+/g, ""), o = o.replace(/\n+$/g, ""), o = "<pre><code" + (f ? ' class="' + f + " language-" + f + '"' : "") + ">" + o + h + "</code></pre>", o = t.subParser("hashBlock")(o, i, a), `
4360
4378
 
4361
- ¨G` + (a.ghCodeBlocks.push({ text: d, codeblock: c }) - 1) + `G
4379
+ ¨G` + (a.ghCodeBlocks.push({ text: d, codeblock: o }) - 1) + `G
4362
4380
 
4363
4381
  `;
4364
- }), r = r.replace(/¨0/, ""), a.converter._dispatch("githubCodeBlocks.after", r, u, a)) : r;
4365
- }), t.subParser("hashBlock", function(r, u, a) {
4366
- return r = a.converter._dispatch("hashBlock.before", r, u, a), r = r.replace(/(^\n+|\n+$)/g, ""), r = `
4382
+ }), r = r.replace(/¨0/, ""), a.converter._dispatch("githubCodeBlocks.after", r, i, a)) : r;
4383
+ }), t.subParser("hashBlock", function(r, i, a) {
4384
+ return r = a.converter._dispatch("hashBlock.before", r, i, a), r = r.replace(/(^\n+|\n+$)/g, ""), r = `
4367
4385
 
4368
4386
  ¨K` + (a.gHtmlBlocks.push(r) - 1) + `K
4369
4387
 
4370
- `, r = a.converter._dispatch("hashBlock.after", r, u, a), r;
4371
- }), t.subParser("hashCodeTags", function(r, u, a) {
4372
- r = a.converter._dispatch("hashCodeTags.before", r, u, a);
4373
- var d = function(o, f, c, h) {
4374
- var T = c + t.subParser("encodeCode")(f, u, a) + h;
4388
+ `, r = a.converter._dispatch("hashBlock.after", r, i, a), r;
4389
+ }), t.subParser("hashCodeTags", function(r, i, a) {
4390
+ r = a.converter._dispatch("hashCodeTags.before", r, i, a);
4391
+ var d = function(c, f, o, h) {
4392
+ var T = o + t.subParser("encodeCode")(f, i, a) + h;
4375
4393
  return "¨C" + (a.gHtmlSpans.push(T) - 1) + "C";
4376
4394
  };
4377
- return r = t.helper.replaceRecursiveRegExp(r, d, "<code\\b[^>]*>", "</code>", "gim"), r = a.converter._dispatch("hashCodeTags.after", r, u, a), r;
4378
- }), t.subParser("hashElement", function(r, u, a) {
4379
- return function(d, o) {
4380
- var f = o;
4395
+ return r = t.helper.replaceRecursiveRegExp(r, d, "<code\\b[^>]*>", "</code>", "gim"), r = a.converter._dispatch("hashCodeTags.after", r, i, a), r;
4396
+ }), t.subParser("hashElement", function(r, i, a) {
4397
+ return function(d, c) {
4398
+ var f = c;
4381
4399
  return f = f.replace(/\n\n/g, `
4382
4400
  `), f = f.replace(/^\n/, ""), f = f.replace(/\n+$/g, ""), f = `
4383
4401
 
@@ -4385,8 +4403,8 @@ var Xt = { exports: {} };
4385
4403
 
4386
4404
  `, f;
4387
4405
  };
4388
- }), t.subParser("hashHTMLBlocks", function(r, u, a) {
4389
- r = a.converter._dispatch("hashHTMLBlocks.before", r, u, a);
4406
+ }), t.subParser("hashHTMLBlocks", function(r, i, a) {
4407
+ r = a.converter._dispatch("hashHTMLBlocks.before", r, i, a);
4390
4408
  var d = [
4391
4409
  "pre",
4392
4410
  "div",
@@ -4422,27 +4440,27 @@ var Xt = { exports: {} };
4422
4440
  "output",
4423
4441
  "video",
4424
4442
  "p"
4425
- ], o = function(l, w, S, P) {
4443
+ ], c = function(l, y, L, P) {
4426
4444
  var H = l;
4427
- return S.search(/\bmarkdown\b/) !== -1 && (H = S + a.converter.makeHtml(w) + P), `
4445
+ return L.search(/\bmarkdown\b/) !== -1 && (H = L + a.converter.makeHtml(y) + P), `
4428
4446
 
4429
4447
  ¨K` + (a.gHtmlBlocks.push(H) - 1) + `K
4430
4448
 
4431
4449
  `;
4432
4450
  };
4433
- u.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(l, w) {
4434
- return "&lt;" + w + "&gt;";
4451
+ i.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(l, y) {
4452
+ return "&lt;" + y + "&gt;";
4435
4453
  }));
4436
4454
  for (var f = 0; f < d.length; ++f)
4437
- for (var c, h = new RegExp("^ {0,3}(<" + d[f] + "\\b[^>]*>)", "im"), T = "<" + d[f] + "\\b[^>]*>", k = "</" + d[f] + ">"; (c = t.helper.regexIndexOf(r, h)) !== -1; ) {
4438
- var _ = t.helper.splitAtIndex(r, c), E = t.helper.replaceRecursiveRegExp(_[1], o, T, k, "im");
4439
- if (E === _[1])
4455
+ for (var o, h = new RegExp("^ {0,3}(<" + d[f] + "\\b[^>]*>)", "im"), T = "<" + d[f] + "\\b[^>]*>", _ = "</" + d[f] + ">"; (o = t.helper.regexIndexOf(r, h)) !== -1; ) {
4456
+ var v = t.helper.splitAtIndex(r, o), k = t.helper.replaceRecursiveRegExp(v[1], c, T, _, "im");
4457
+ if (k === v[1])
4440
4458
  break;
4441
- r = _[0].concat(E);
4459
+ r = v[0].concat(k);
4442
4460
  }
4443
4461
  return r = r.replace(
4444
4462
  /(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,
4445
- t.subParser("hashElement")(r, u, a)
4463
+ t.subParser("hashElement")(r, i, a)
4446
4464
  ), r = t.helper.replaceRecursiveRegExp(r, function(l) {
4447
4465
  return `
4448
4466
 
@@ -4451,283 +4469,283 @@ var Xt = { exports: {} };
4451
4469
  `;
4452
4470
  }, "^ {0,3}<!--", "-->", "gm"), r = r.replace(
4453
4471
  /(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,
4454
- t.subParser("hashElement")(r, u, a)
4455
- ), r = a.converter._dispatch("hashHTMLBlocks.after", r, u, a), r;
4456
- }), t.subParser("hashHTMLSpans", function(r, u, a) {
4457
- r = a.converter._dispatch("hashHTMLSpans.before", r, u, a);
4458
- function d(o) {
4459
- return "¨C" + (a.gHtmlSpans.push(o) - 1) + "C";
4472
+ t.subParser("hashElement")(r, i, a)
4473
+ ), r = a.converter._dispatch("hashHTMLBlocks.after", r, i, a), r;
4474
+ }), t.subParser("hashHTMLSpans", function(r, i, a) {
4475
+ r = a.converter._dispatch("hashHTMLSpans.before", r, i, a);
4476
+ function d(c) {
4477
+ return "¨C" + (a.gHtmlSpans.push(c) - 1) + "C";
4460
4478
  }
4461
- return r = r.replace(/<[^>]+?\/>/gi, function(o) {
4462
- return d(o);
4463
- }), r = r.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function(o) {
4464
- return d(o);
4465
- }), r = r.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function(o) {
4466
- return d(o);
4467
- }), r = r.replace(/<[^>]+?>/gi, function(o) {
4468
- return d(o);
4469
- }), r = a.converter._dispatch("hashHTMLSpans.after", r, u, a), r;
4470
- }), t.subParser("unhashHTMLSpans", function(r, u, a) {
4471
- r = a.converter._dispatch("unhashHTMLSpans.before", r, u, a);
4479
+ return r = r.replace(/<[^>]+?\/>/gi, function(c) {
4480
+ return d(c);
4481
+ }), r = r.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g, function(c) {
4482
+ return d(c);
4483
+ }), r = r.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g, function(c) {
4484
+ return d(c);
4485
+ }), r = r.replace(/<[^>]+?>/gi, function(c) {
4486
+ return d(c);
4487
+ }), r = a.converter._dispatch("hashHTMLSpans.after", r, i, a), r;
4488
+ }), t.subParser("unhashHTMLSpans", function(r, i, a) {
4489
+ r = a.converter._dispatch("unhashHTMLSpans.before", r, i, a);
4472
4490
  for (var d = 0; d < a.gHtmlSpans.length; ++d) {
4473
- for (var o = a.gHtmlSpans[d], f = 0; /¨C(\d+)C/.test(o); ) {
4474
- var c = RegExp.$1;
4475
- if (o = o.replace("¨C" + c + "C", a.gHtmlSpans[c]), f === 10) {
4491
+ for (var c = a.gHtmlSpans[d], f = 0; /¨C(\d+)C/.test(c); ) {
4492
+ var o = RegExp.$1;
4493
+ if (c = c.replace("¨C" + o + "C", a.gHtmlSpans[o]), f === 10) {
4476
4494
  console.error("maximum nesting of 10 spans reached!!!");
4477
4495
  break;
4478
4496
  }
4479
4497
  ++f;
4480
4498
  }
4481
- r = r.replace("¨C" + d + "C", o);
4499
+ r = r.replace("¨C" + d + "C", c);
4482
4500
  }
4483
- return r = a.converter._dispatch("unhashHTMLSpans.after", r, u, a), r;
4484
- }), t.subParser("hashPreCodeTags", function(r, u, a) {
4485
- r = a.converter._dispatch("hashPreCodeTags.before", r, u, a);
4486
- var d = function(o, f, c, h) {
4487
- var T = c + t.subParser("encodeCode")(f, u, a) + h;
4501
+ return r = a.converter._dispatch("unhashHTMLSpans.after", r, i, a), r;
4502
+ }), t.subParser("hashPreCodeTags", function(r, i, a) {
4503
+ r = a.converter._dispatch("hashPreCodeTags.before", r, i, a);
4504
+ var d = function(c, f, o, h) {
4505
+ var T = o + t.subParser("encodeCode")(f, i, a) + h;
4488
4506
  return `
4489
4507
 
4490
- ¨G` + (a.ghCodeBlocks.push({ text: o, codeblock: T }) - 1) + `G
4508
+ ¨G` + (a.ghCodeBlocks.push({ text: c, codeblock: T }) - 1) + `G
4491
4509
 
4492
4510
  `;
4493
4511
  };
4494
- return r = t.helper.replaceRecursiveRegExp(r, d, "^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>", "^ {0,3}</code>\\s*</pre>", "gim"), r = a.converter._dispatch("hashPreCodeTags.after", r, u, a), r;
4495
- }), t.subParser("headers", function(r, u, a) {
4496
- r = a.converter._dispatch("headers.before", r, u, a);
4497
- var d = isNaN(parseInt(u.headerLevelStart)) ? 1 : parseInt(u.headerLevelStart), o = u.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, f = u.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
4498
- r = r.replace(o, function(T, k) {
4499
- var _ = t.subParser("spanGamut")(k, u, a), E = u.noHeaderId ? "" : ' id="' + h(k) + '"', l = d, w = "<h" + l + E + ">" + _ + "</h" + l + ">";
4500
- return t.subParser("hashBlock")(w, u, a);
4501
- }), r = r.replace(f, function(T, k) {
4502
- var _ = t.subParser("spanGamut")(k, u, a), E = u.noHeaderId ? "" : ' id="' + h(k) + '"', l = d + 1, w = "<h" + l + E + ">" + _ + "</h" + l + ">";
4503
- return t.subParser("hashBlock")(w, u, a);
4512
+ return r = t.helper.replaceRecursiveRegExp(r, d, "^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>", "^ {0,3}</code>\\s*</pre>", "gim"), r = a.converter._dispatch("hashPreCodeTags.after", r, i, a), r;
4513
+ }), t.subParser("headers", function(r, i, a) {
4514
+ r = a.converter._dispatch("headers.before", r, i, a);
4515
+ var d = isNaN(parseInt(i.headerLevelStart)) ? 1 : parseInt(i.headerLevelStart), c = i.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, f = i.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
4516
+ r = r.replace(c, function(T, _) {
4517
+ var v = t.subParser("spanGamut")(_, i, a), k = i.noHeaderId ? "" : ' id="' + h(_) + '"', l = d, y = "<h" + l + k + ">" + v + "</h" + l + ">";
4518
+ return t.subParser("hashBlock")(y, i, a);
4519
+ }), r = r.replace(f, function(T, _) {
4520
+ var v = t.subParser("spanGamut")(_, i, a), k = i.noHeaderId ? "" : ' id="' + h(_) + '"', l = d + 1, y = "<h" + l + k + ">" + v + "</h" + l + ">";
4521
+ return t.subParser("hashBlock")(y, i, a);
4504
4522
  });
4505
- var c = u.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4506
- r = r.replace(c, function(T, k, _) {
4507
- var E = _;
4508
- u.customizedHeaderId && (E = _.replace(/\s?\{([^{]+?)}\s*$/, ""));
4509
- var l = t.subParser("spanGamut")(E, u, a), w = u.noHeaderId ? "" : ' id="' + h(_) + '"', S = d - 1 + k.length, P = "<h" + S + w + ">" + l + "</h" + S + ">";
4510
- return t.subParser("hashBlock")(P, u, a);
4523
+ var o = i.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4524
+ r = r.replace(o, function(T, _, v) {
4525
+ var k = v;
4526
+ i.customizedHeaderId && (k = v.replace(/\s?\{([^{]+?)}\s*$/, ""));
4527
+ var l = t.subParser("spanGamut")(k, i, a), y = i.noHeaderId ? "" : ' id="' + h(v) + '"', L = d - 1 + _.length, P = "<h" + L + y + ">" + l + "</h" + L + ">";
4528
+ return t.subParser("hashBlock")(P, i, a);
4511
4529
  });
4512
4530
  function h(T) {
4513
- var k, _;
4514
- if (u.customizedHeaderId) {
4515
- var E = T.match(/\{([^{]+?)}\s*$/);
4516
- E && E[1] && (T = E[1]);
4531
+ var _, v;
4532
+ if (i.customizedHeaderId) {
4533
+ var k = T.match(/\{([^{]+?)}\s*$/);
4534
+ k && k[1] && (T = k[1]);
4517
4535
  }
4518
- return k = T, t.helper.isString(u.prefixHeaderId) ? _ = u.prefixHeaderId : u.prefixHeaderId === !0 ? _ = "section-" : _ = "", u.rawPrefixHeaderId || (k = _ + k), u.ghCompatibleHeaderId ? k = k.replace(/ /g, "-").replace(/&amp;/g, "").replace(/¨T/g, "").replace(/¨D/g, "").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, "").toLowerCase() : u.rawHeaderId ? k = k.replace(/ /g, "-").replace(/&amp;/g, "&").replace(/¨T/g, "¨").replace(/¨D/g, "$").replace(/["']/g, "-").toLowerCase() : k = k.replace(/[^\w]/g, "").toLowerCase(), u.rawPrefixHeaderId && (k = _ + k), a.hashLinkCounts[k] ? k = k + "-" + a.hashLinkCounts[k]++ : a.hashLinkCounts[k] = 1, k;
4536
+ return _ = T, t.helper.isString(i.prefixHeaderId) ? v = i.prefixHeaderId : i.prefixHeaderId === !0 ? v = "section-" : v = "", i.rawPrefixHeaderId || (_ = v + _), i.ghCompatibleHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "").replace(/¨T/g, "").replace(/¨D/g, "").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, "").toLowerCase() : i.rawHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "&").replace(/¨T/g, "¨").replace(/¨D/g, "$").replace(/["']/g, "-").toLowerCase() : _ = _.replace(/[^\w]/g, "").toLowerCase(), i.rawPrefixHeaderId && (_ = v + _), a.hashLinkCounts[_] ? _ = _ + "-" + a.hashLinkCounts[_]++ : a.hashLinkCounts[_] = 1, _;
4519
4537
  }
4520
- return r = a.converter._dispatch("headers.after", r, u, a), r;
4521
- }), t.subParser("horizontalRule", function(r, u, a) {
4522
- r = a.converter._dispatch("horizontalRule.before", r, u, a);
4523
- var d = t.subParser("hashBlock")("<hr />", u, a);
4524
- return r = r.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm, d), r = a.converter._dispatch("horizontalRule.after", r, u, a), r;
4525
- }), t.subParser("images", function(r, u, a) {
4526
- r = a.converter._dispatch("images.before", r, u, a);
4527
- var d = /!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, o = /!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g, f = /!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, c = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g, h = /!\[([^\[\]]+)]()()()()()/g;
4528
- function T(_, E, l, w, S, P, H, R) {
4529
- return w = w.replace(/\s/g, ""), k(_, E, l, w, S, P, H, R);
4538
+ return r = a.converter._dispatch("headers.after", r, i, a), r;
4539
+ }), t.subParser("horizontalRule", function(r, i, a) {
4540
+ r = a.converter._dispatch("horizontalRule.before", r, i, a);
4541
+ var d = t.subParser("hashBlock")("<hr />", i, a);
4542
+ return r = r.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm, d), r = r.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm, d), r = a.converter._dispatch("horizontalRule.after", r, i, a), r;
4543
+ }), t.subParser("images", function(r, i, a) {
4544
+ r = a.converter._dispatch("images.before", r, i, a);
4545
+ var d = /!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, c = /!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g, f = /!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g, o = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g, h = /!\[([^\[\]]+)]()()()()()/g;
4546
+ function T(v, k, l, y, L, P, H, R) {
4547
+ return y = y.replace(/\s/g, ""), _(v, k, l, y, L, P, H, R);
4530
4548
  }
4531
- function k(_, E, l, w, S, P, H, R) {
4549
+ function _(v, k, l, y, L, P, H, R) {
4532
4550
  var B = a.gUrls, G = a.gTitles, J = a.gDimensions;
4533
- if (l = l.toLowerCase(), R || (R = ""), _.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4534
- w = "";
4535
- else if (w === "" || w === null)
4536
- if ((l === "" || l === null) && (l = E.toLowerCase().replace(/ ?\n/g, " ")), w = "#" + l, !t.helper.isUndefined(B[l]))
4537
- w = B[l], t.helper.isUndefined(G[l]) || (R = G[l]), t.helper.isUndefined(J[l]) || (S = J[l].width, P = J[l].height);
4551
+ if (l = l.toLowerCase(), R || (R = ""), v.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4552
+ y = "";
4553
+ else if (y === "" || y === null)
4554
+ if ((l === "" || l === null) && (l = k.toLowerCase().replace(/ ?\n/g, " ")), y = "#" + l, !t.helper.isUndefined(B[l]))
4555
+ y = B[l], t.helper.isUndefined(G[l]) || (R = G[l]), t.helper.isUndefined(J[l]) || (L = J[l].width, P = J[l].height);
4538
4556
  else
4539
- return _;
4540
- E = E.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), w = w.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4541
- var U = '<img src="' + w + '" alt="' + E + '"';
4542
- return R && t.helper.isString(R) && (R = R.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), U += ' title="' + R + '"'), S && P && (S = S === "*" ? "auto" : S, P = P === "*" ? "auto" : P, U += ' width="' + S + '"', U += ' height="' + P + '"'), U += " />", U;
4557
+ return v;
4558
+ k = k.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), y = y.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4559
+ var U = '<img src="' + y + '" alt="' + k + '"';
4560
+ return R && t.helper.isString(R) && (R = R.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), U += ' title="' + R + '"'), L && P && (L = L === "*" ? "auto" : L, P = P === "*" ? "auto" : P, U += ' width="' + L + '"', U += ' height="' + P + '"'), U += " />", U;
4543
4561
  }
4544
- return r = r.replace(c, k), r = r.replace(f, T), r = r.replace(o, k), r = r.replace(d, k), r = r.replace(h, k), r = a.converter._dispatch("images.after", r, u, a), r;
4545
- }), t.subParser("italicsAndBold", function(r, u, a) {
4546
- r = a.converter._dispatch("italicsAndBold.before", r, u, a);
4547
- function d(o, f, c) {
4548
- return f + o + c;
4562
+ return r = r.replace(o, _), r = r.replace(f, T), r = r.replace(c, _), r = r.replace(d, _), r = r.replace(h, _), r = a.converter._dispatch("images.after", r, i, a), r;
4563
+ }), t.subParser("italicsAndBold", function(r, i, a) {
4564
+ r = a.converter._dispatch("italicsAndBold.before", r, i, a);
4565
+ function d(c, f, o) {
4566
+ return f + c + o;
4549
4567
  }
4550
- return u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(o, f) {
4568
+ return i.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(c, f) {
4551
4569
  return d(f, "<strong><em>", "</em></strong>");
4552
- }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(o, f) {
4570
+ }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(c, f) {
4553
4571
  return d(f, "<strong>", "</strong>");
4554
- }), r = r.replace(/\b_(\S[\s\S]*?)_\b/g, function(o, f) {
4572
+ }), r = r.replace(/\b_(\S[\s\S]*?)_\b/g, function(c, f) {
4555
4573
  return d(f, "<em>", "</em>");
4556
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(o, f) {
4557
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4558
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(o, f) {
4559
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4560
- }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(o, f) {
4561
- return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4562
- })), u.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(o, f, c) {
4563
- return d(c, f + "<strong><em>", "</em></strong>");
4564
- }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(o, f, c) {
4565
- return d(c, f + "<strong>", "</strong>");
4566
- }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(o, f, c) {
4567
- return d(c, f + "<em>", "</em>");
4568
- })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(o, f) {
4569
- return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4570
- }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(o, f) {
4571
- return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4572
- }), r = r.replace(/\*([^\s*][\s\S]*?)\*/g, function(o, f) {
4573
- return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4574
- })), r = a.converter._dispatch("italicsAndBold.after", r, u, a), r;
4575
- }), t.subParser("lists", function(r, u, a) {
4576
- function d(c, h) {
4577
- a.gListLevel++, c = c.replace(/\n{2,}$/, `
4578
- `), c += "¨0";
4579
- var T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm, k = /\n[ \t]*\n(?!¨0)/.test(c);
4580
- return u.disableForced4SpacesIndentedSublists && (T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), c = c.replace(T, function(_, E, l, w, S, P, H) {
4574
+ })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(c, f) {
4575
+ return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : c;
4576
+ }), r = r.replace(/__(\S[\s\S]*?)__/g, function(c, f) {
4577
+ return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : c;
4578
+ }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(c, f) {
4579
+ return /\S$/.test(f) ? d(f, "<em>", "</em>") : c;
4580
+ })), i.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(c, f, o) {
4581
+ return d(o, f + "<strong><em>", "</em></strong>");
4582
+ }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(c, f, o) {
4583
+ return d(o, f + "<strong>", "</strong>");
4584
+ }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(c, f, o) {
4585
+ return d(o, f + "<em>", "</em>");
4586
+ })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(c, f) {
4587
+ return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : c;
4588
+ }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(c, f) {
4589
+ return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : c;
4590
+ }), r = r.replace(/\*([^\s*][\s\S]*?)\*/g, function(c, f) {
4591
+ return /\S$/.test(f) ? d(f, "<em>", "</em>") : c;
4592
+ })), r = a.converter._dispatch("italicsAndBold.after", r, i, a), r;
4593
+ }), t.subParser("lists", function(r, i, a) {
4594
+ function d(o, h) {
4595
+ a.gListLevel++, o = o.replace(/\n{2,}$/, `
4596
+ `), o += "¨0";
4597
+ var T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm, _ = /\n[ \t]*\n(?!¨0)/.test(o);
4598
+ return i.disableForced4SpacesIndentedSublists && (T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), o = o.replace(T, function(v, k, l, y, L, P, H) {
4581
4599
  H = H && H.trim() !== "";
4582
- var R = t.subParser("outdent")(S, u, a), B = "";
4583
- return P && u.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', R = R.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4600
+ var R = t.subParser("outdent")(L, i, a), B = "";
4601
+ return P && i.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', R = R.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4584
4602
  var G = '<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';
4585
4603
  return H && (G += " checked"), G += ">", G;
4586
4604
  })), R = R.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4587
4605
  return "¨A" + G;
4588
- }), E || R.search(/\n{2,}/) > -1 ? (R = t.subParser("githubCodeBlocks")(R, u, a), R = t.subParser("blockGamut")(R, u, a)) : (R = t.subParser("lists")(R, u, a), R = R.replace(/\n$/, ""), R = t.subParser("hashHTMLBlocks")(R, u, a), R = R.replace(/\n\n+/g, `
4606
+ }), k || R.search(/\n{2,}/) > -1 ? (R = t.subParser("githubCodeBlocks")(R, i, a), R = t.subParser("blockGamut")(R, i, a)) : (R = t.subParser("lists")(R, i, a), R = R.replace(/\n$/, ""), R = t.subParser("hashHTMLBlocks")(R, i, a), R = R.replace(/\n\n+/g, `
4589
4607
 
4590
- `), k ? R = t.subParser("paragraphs")(R, u, a) : R = t.subParser("spanGamut")(R, u, a)), R = R.replace("¨A", ""), R = "<li" + B + ">" + R + `</li>
4608
+ `), _ ? R = t.subParser("paragraphs")(R, i, a) : R = t.subParser("spanGamut")(R, i, a)), R = R.replace("¨A", ""), R = "<li" + B + ">" + R + `</li>
4591
4609
  `, R;
4592
- }), c = c.replace(/¨0/g, ""), a.gListLevel--, h && (c = c.replace(/\s+$/, "")), c;
4610
+ }), o = o.replace(/¨0/g, ""), a.gListLevel--, h && (o = o.replace(/\s+$/, "")), o;
4593
4611
  }
4594
- function o(c, h) {
4612
+ function c(o, h) {
4595
4613
  if (h === "ol") {
4596
- var T = c.match(/^ *(\d+)\./);
4614
+ var T = o.match(/^ *(\d+)\./);
4597
4615
  if (T && T[1] !== "1")
4598
4616
  return ' start="' + T[1] + '"';
4599
4617
  }
4600
4618
  return "";
4601
4619
  }
4602
- function f(c, h, T) {
4603
- var k = u.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, _ = u.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, E = h === "ul" ? k : _, l = "";
4604
- if (c.search(E) !== -1)
4605
- (function S(P) {
4606
- var H = P.search(E), R = o(c, h);
4620
+ function f(o, h, T) {
4621
+ var _ = i.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, v = i.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, k = h === "ul" ? _ : v, l = "";
4622
+ if (o.search(k) !== -1)
4623
+ (function L(P) {
4624
+ var H = P.search(k), R = c(o, h);
4607
4625
  H !== -1 ? (l += `
4608
4626
 
4609
4627
  <` + h + R + `>
4610
4628
  ` + d(P.slice(0, H), !!T) + "</" + h + `>
4611
- `, h = h === "ul" ? "ol" : "ul", E = h === "ul" ? k : _, S(P.slice(H))) : l += `
4629
+ `, h = h === "ul" ? "ol" : "ul", k = h === "ul" ? _ : v, L(P.slice(H))) : l += `
4612
4630
 
4613
4631
  <` + h + R + `>
4614
4632
  ` + d(P, !!T) + "</" + h + `>
4615
4633
  `;
4616
- })(c);
4634
+ })(o);
4617
4635
  else {
4618
- var w = o(c, h);
4636
+ var y = c(o, h);
4619
4637
  l = `
4620
4638
 
4621
- <` + h + w + `>
4622
- ` + d(c, !!T) + "</" + h + `>
4639
+ <` + h + y + `>
4640
+ ` + d(o, !!T) + "</" + h + `>
4623
4641
  `;
4624
4642
  }
4625
4643
  return l;
4626
4644
  }
4627
- return r = a.converter._dispatch("lists.before", r, u, a), r += "¨0", a.gListLevel ? r = r.replace(
4645
+ return r = a.converter._dispatch("lists.before", r, i, a), r += "¨0", a.gListLevel ? r = r.replace(
4628
4646
  /^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
4629
- function(c, h, T) {
4630
- var k = T.search(/[*+-]/g) > -1 ? "ul" : "ol";
4631
- return f(h, k, !0);
4647
+ function(o, h, T) {
4648
+ var _ = T.search(/[*+-]/g) > -1 ? "ul" : "ol";
4649
+ return f(h, _, !0);
4632
4650
  }
4633
4651
  ) : r = r.replace(
4634
4652
  /(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
4635
- function(c, h, T, k) {
4636
- var _ = k.search(/[*+-]/g) > -1 ? "ul" : "ol";
4637
- return f(T, _, !1);
4653
+ function(o, h, T, _) {
4654
+ var v = _.search(/[*+-]/g) > -1 ? "ul" : "ol";
4655
+ return f(T, v, !1);
4638
4656
  }
4639
- ), r = r.replace(/¨0/, ""), r = a.converter._dispatch("lists.after", r, u, a), r;
4640
- }), t.subParser("metadata", function(r, u, a) {
4641
- if (!u.metadata)
4657
+ ), r = r.replace(/¨0/, ""), r = a.converter._dispatch("lists.after", r, i, a), r;
4658
+ }), t.subParser("metadata", function(r, i, a) {
4659
+ if (!i.metadata)
4642
4660
  return r;
4643
- r = a.converter._dispatch("metadata.before", r, u, a);
4644
- function d(o) {
4645
- a.metadata.raw = o, o = o.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), o = o.replace(/\n {4}/g, " "), o.replace(/^([\S ]+): +([\s\S]+?)$/gm, function(f, c, h) {
4646
- return a.metadata.parsed[c] = h, "";
4661
+ r = a.converter._dispatch("metadata.before", r, i, a);
4662
+ function d(c) {
4663
+ a.metadata.raw = c, c = c.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), c = c.replace(/\n {4}/g, " "), c.replace(/^([\S ]+): +([\s\S]+?)$/gm, function(f, o, h) {
4664
+ return a.metadata.parsed[o] = h, "";
4647
4665
  });
4648
4666
  }
4649
- return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(o, f, c) {
4650
- return d(c), "¨M";
4651
- }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(o, f, c) {
4652
- return f && (a.metadata.format = f), d(c), "¨M";
4653
- }), r = r.replace(/¨M/g, ""), r = a.converter._dispatch("metadata.after", r, u, a), r;
4654
- }), t.subParser("outdent", function(r, u, a) {
4655
- return r = a.converter._dispatch("outdent.before", r, u, a), r = r.replace(/^(\t|[ ]{1,4})/gm, "¨0"), r = r.replace(/¨0/g, ""), r = a.converter._dispatch("outdent.after", r, u, a), r;
4656
- }), t.subParser("paragraphs", function(r, u, a) {
4657
- r = a.converter._dispatch("paragraphs.before", r, u, a), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, "");
4658
- for (var d = r.split(/\n{2,}/g), o = [], f = d.length, c = 0; c < f; c++) {
4659
- var h = d[c];
4660
- h.search(/¨(K|G)(\d+)\1/g) >= 0 ? o.push(h) : h.search(/\S/) >= 0 && (h = t.subParser("spanGamut")(h, u, a), h = h.replace(/^([ \t]*)/g, "<p>"), h += "</p>", o.push(h));
4667
+ return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(c, f, o) {
4668
+ return d(o), "¨M";
4669
+ }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(c, f, o) {
4670
+ return f && (a.metadata.format = f), d(o), "¨M";
4671
+ }), r = r.replace(/¨M/g, ""), r = a.converter._dispatch("metadata.after", r, i, a), r;
4672
+ }), t.subParser("outdent", function(r, i, a) {
4673
+ return r = a.converter._dispatch("outdent.before", r, i, a), r = r.replace(/^(\t|[ ]{1,4})/gm, "¨0"), r = r.replace(/¨0/g, ""), r = a.converter._dispatch("outdent.after", r, i, a), r;
4674
+ }), t.subParser("paragraphs", function(r, i, a) {
4675
+ r = a.converter._dispatch("paragraphs.before", r, i, a), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, "");
4676
+ for (var d = r.split(/\n{2,}/g), c = [], f = d.length, o = 0; o < f; o++) {
4677
+ var h = d[o];
4678
+ h.search(/¨(K|G)(\d+)\1/g) >= 0 ? c.push(h) : h.search(/\S/) >= 0 && (h = t.subParser("spanGamut")(h, i, a), h = h.replace(/^([ \t]*)/g, "<p>"), h += "</p>", c.push(h));
4661
4679
  }
4662
- for (f = o.length, c = 0; c < f; c++) {
4663
- for (var T = "", k = o[c], _ = !1; /¨(K|G)(\d+)\1/.test(k); ) {
4664
- var E = RegExp.$1, l = RegExp.$2;
4665
- E === "K" ? T = a.gHtmlBlocks[l] : _ ? T = t.subParser("encodeCode")(a.ghCodeBlocks[l].text, u, a) : T = a.ghCodeBlocks[l].codeblock, T = T.replace(/\$/g, "$$$$"), k = k.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, T), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(k) && (_ = !0);
4680
+ for (f = c.length, o = 0; o < f; o++) {
4681
+ for (var T = "", _ = c[o], v = !1; /¨(K|G)(\d+)\1/.test(_); ) {
4682
+ var k = RegExp.$1, l = RegExp.$2;
4683
+ k === "K" ? T = a.gHtmlBlocks[l] : v ? T = t.subParser("encodeCode")(a.ghCodeBlocks[l].text, i, a) : T = a.ghCodeBlocks[l].codeblock, T = T.replace(/\$/g, "$$$$"), _ = _.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, T), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(_) && (v = !0);
4666
4684
  }
4667
- o[c] = k;
4685
+ c[o] = _;
4668
4686
  }
4669
- return r = o.join(`
4670
- `), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, ""), a.converter._dispatch("paragraphs.after", r, u, a);
4671
- }), t.subParser("runExtension", function(r, u, a, d) {
4687
+ return r = c.join(`
4688
+ `), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, ""), a.converter._dispatch("paragraphs.after", r, i, a);
4689
+ }), t.subParser("runExtension", function(r, i, a, d) {
4672
4690
  if (r.filter)
4673
- u = r.filter(u, d.converter, a);
4691
+ i = r.filter(i, d.converter, a);
4674
4692
  else if (r.regex) {
4675
- var o = r.regex;
4676
- o instanceof RegExp || (o = new RegExp(o, "g")), u = u.replace(o, r.replace);
4693
+ var c = r.regex;
4694
+ c instanceof RegExp || (c = new RegExp(c, "g")), i = i.replace(c, r.replace);
4677
4695
  }
4678
- return u;
4679
- }), t.subParser("spanGamut", function(r, u, a) {
4680
- return r = a.converter._dispatch("spanGamut.before", r, u, a), r = t.subParser("codeSpans")(r, u, a), r = t.subParser("escapeSpecialCharsWithinTagAttributes")(r, u, a), r = t.subParser("encodeBackslashEscapes")(r, u, a), r = t.subParser("images")(r, u, a), r = t.subParser("anchors")(r, u, a), r = t.subParser("autoLinks")(r, u, a), r = t.subParser("simplifiedAutoLinks")(r, u, a), r = t.subParser("emoji")(r, u, a), r = t.subParser("underline")(r, u, a), r = t.subParser("italicsAndBold")(r, u, a), r = t.subParser("strikethrough")(r, u, a), r = t.subParser("ellipsis")(r, u, a), r = t.subParser("hashHTMLSpans")(r, u, a), r = t.subParser("encodeAmpsAndAngles")(r, u, a), u.simpleLineBreaks ? /\n\n¨K/.test(r) || (r = r.replace(/\n+/g, `<br />
4696
+ return i;
4697
+ }), t.subParser("spanGamut", function(r, i, a) {
4698
+ return r = a.converter._dispatch("spanGamut.before", r, i, a), r = t.subParser("codeSpans")(r, i, a), r = t.subParser("escapeSpecialCharsWithinTagAttributes")(r, i, a), r = t.subParser("encodeBackslashEscapes")(r, i, a), r = t.subParser("images")(r, i, a), r = t.subParser("anchors")(r, i, a), r = t.subParser("autoLinks")(r, i, a), r = t.subParser("simplifiedAutoLinks")(r, i, a), r = t.subParser("emoji")(r, i, a), r = t.subParser("underline")(r, i, a), r = t.subParser("italicsAndBold")(r, i, a), r = t.subParser("strikethrough")(r, i, a), r = t.subParser("ellipsis")(r, i, a), r = t.subParser("hashHTMLSpans")(r, i, a), r = t.subParser("encodeAmpsAndAngles")(r, i, a), i.simpleLineBreaks ? /\n\n¨K/.test(r) || (r = r.replace(/\n+/g, `<br />
4681
4699
  `)) : r = r.replace(/ +\n/g, `<br />
4682
- `), r = a.converter._dispatch("spanGamut.after", r, u, a), r;
4683
- }), t.subParser("strikethrough", function(r, u, a) {
4684
- function d(o) {
4685
- return u.simplifiedAutoLink && (o = t.subParser("simplifiedAutoLinks")(o, u, a)), "<del>" + o + "</del>";
4700
+ `), r = a.converter._dispatch("spanGamut.after", r, i, a), r;
4701
+ }), t.subParser("strikethrough", function(r, i, a) {
4702
+ function d(c) {
4703
+ return i.simplifiedAutoLink && (c = t.subParser("simplifiedAutoLinks")(c, i, a)), "<del>" + c + "</del>";
4686
4704
  }
4687
- return u.strikethrough && (r = a.converter._dispatch("strikethrough.before", r, u, a), r = r.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, function(o, f) {
4705
+ return i.strikethrough && (r = a.converter._dispatch("strikethrough.before", r, i, a), r = r.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, function(c, f) {
4688
4706
  return d(f);
4689
- }), r = a.converter._dispatch("strikethrough.after", r, u, a)), r;
4690
- }), t.subParser("stripLinkDefinitions", function(r, u, a) {
4691
- var d = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm, o = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;
4707
+ }), r = a.converter._dispatch("strikethrough.after", r, i, a)), r;
4708
+ }), t.subParser("stripLinkDefinitions", function(r, i, a) {
4709
+ var d = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm, c = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;
4692
4710
  r += "¨0";
4693
- var f = function(c, h, T, k, _, E, l) {
4694
- return h = h.toLowerCase(), r.toLowerCase().split(h).length - 1 < 2 ? c : (T.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[h] = T.replace(/\s/g, "") : a.gUrls[h] = t.subParser("encodeAmpsAndAngles")(T, u, a), E ? E + l : (l && (a.gTitles[h] = l.replace(/"|'/g, "&quot;")), u.parseImgDimensions && k && _ && (a.gDimensions[h] = {
4695
- width: k,
4696
- height: _
4711
+ var f = function(o, h, T, _, v, k, l) {
4712
+ return h = h.toLowerCase(), r.toLowerCase().split(h).length - 1 < 2 ? o : (T.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[h] = T.replace(/\s/g, "") : a.gUrls[h] = t.subParser("encodeAmpsAndAngles")(T, i, a), k ? k + l : (l && (a.gTitles[h] = l.replace(/"|'/g, "&quot;")), i.parseImgDimensions && _ && v && (a.gDimensions[h] = {
4713
+ width: _,
4714
+ height: v
4697
4715
  }), ""));
4698
4716
  };
4699
- return r = r.replace(o, f), r = r.replace(d, f), r = r.replace(/¨0/, ""), r;
4700
- }), t.subParser("tables", function(r, u, a) {
4701
- if (!u.tables)
4717
+ return r = r.replace(c, f), r = r.replace(d, f), r = r.replace(/¨0/, ""), r;
4718
+ }), t.subParser("tables", function(r, i, a) {
4719
+ if (!i.tables)
4702
4720
  return r;
4703
- var d = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm, o = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
4704
- function f(_) {
4705
- return /^:[ \t]*--*$/.test(_) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(_) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(_) ? ' style="text-align:center;"' : "";
4721
+ var d = /^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm, c = /^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;
4722
+ function f(v) {
4723
+ return /^:[ \t]*--*$/.test(v) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(v) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(v) ? ' style="text-align:center;"' : "";
4706
4724
  }
4707
- function c(_, E) {
4725
+ function o(v, k) {
4708
4726
  var l = "";
4709
- return _ = _.trim(), (u.tablesHeaderId || u.tableHeaderId) && (l = ' id="' + _.replace(/ /g, "_").toLowerCase() + '"'), _ = t.subParser("spanGamut")(_, u, a), "<th" + l + E + ">" + _ + `</th>
4727
+ return v = v.trim(), (i.tablesHeaderId || i.tableHeaderId) && (l = ' id="' + v.replace(/ /g, "_").toLowerCase() + '"'), v = t.subParser("spanGamut")(v, i, a), "<th" + l + k + ">" + v + `</th>
4710
4728
  `;
4711
4729
  }
4712
- function h(_, E) {
4713
- var l = t.subParser("spanGamut")(_, u, a);
4714
- return "<td" + E + ">" + l + `</td>
4730
+ function h(v, k) {
4731
+ var l = t.subParser("spanGamut")(v, i, a);
4732
+ return "<td" + k + ">" + l + `</td>
4715
4733
  `;
4716
4734
  }
4717
- function T(_, E) {
4735
+ function T(v, k) {
4718
4736
  for (var l = `<table>
4719
4737
  <thead>
4720
4738
  <tr>
4721
- `, w = _.length, S = 0; S < w; ++S)
4722
- l += _[S];
4739
+ `, y = v.length, L = 0; L < y; ++L)
4740
+ l += v[L];
4723
4741
  for (l += `</tr>
4724
4742
  </thead>
4725
4743
  <tbody>
4726
- `, S = 0; S < E.length; ++S) {
4744
+ `, L = 0; L < k.length; ++L) {
4727
4745
  l += `<tr>
4728
4746
  `;
4729
- for (var P = 0; P < w; ++P)
4730
- l += E[S][P];
4747
+ for (var P = 0; P < y; ++P)
4748
+ l += k[L][P];
4731
4749
  l += `</tr>
4732
4750
  `;
4733
4751
  }
@@ -4735,222 +4753,222 @@ var Xt = { exports: {} };
4735
4753
  </table>
4736
4754
  `, l;
4737
4755
  }
4738
- function k(_) {
4739
- var E, l = _.split(`
4756
+ function _(v) {
4757
+ var k, l = v.split(`
4740
4758
  `);
4741
- for (E = 0; E < l.length; ++E)
4742
- /^ {0,3}\|/.test(l[E]) && (l[E] = l[E].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(l[E]) && (l[E] = l[E].replace(/\|[ \t]*$/, "")), l[E] = t.subParser("codeSpans")(l[E], u, a);
4743
- var w = l[0].split("|").map(function(U) {
4759
+ for (k = 0; k < l.length; ++k)
4760
+ /^ {0,3}\|/.test(l[k]) && (l[k] = l[k].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(l[k]) && (l[k] = l[k].replace(/\|[ \t]*$/, "")), l[k] = t.subParser("codeSpans")(l[k], i, a);
4761
+ var y = l[0].split("|").map(function(U) {
4744
4762
  return U.trim();
4745
- }), S = l[1].split("|").map(function(U) {
4763
+ }), L = l[1].split("|").map(function(U) {
4746
4764
  return U.trim();
4747
4765
  }), P = [], H = [], R = [], B = [];
4748
- for (l.shift(), l.shift(), E = 0; E < l.length; ++E)
4749
- l[E].trim() !== "" && P.push(
4750
- l[E].split("|").map(function(U) {
4766
+ for (l.shift(), l.shift(), k = 0; k < l.length; ++k)
4767
+ l[k].trim() !== "" && P.push(
4768
+ l[k].split("|").map(function(U) {
4751
4769
  return U.trim();
4752
4770
  })
4753
4771
  );
4754
- if (w.length < S.length)
4755
- return _;
4756
- for (E = 0; E < S.length; ++E)
4757
- R.push(f(S[E]));
4758
- for (E = 0; E < w.length; ++E)
4759
- t.helper.isUndefined(R[E]) && (R[E] = ""), H.push(c(w[E], R[E]));
4760
- for (E = 0; E < P.length; ++E) {
4772
+ if (y.length < L.length)
4773
+ return v;
4774
+ for (k = 0; k < L.length; ++k)
4775
+ R.push(f(L[k]));
4776
+ for (k = 0; k < y.length; ++k)
4777
+ t.helper.isUndefined(R[k]) && (R[k] = ""), H.push(o(y[k], R[k]));
4778
+ for (k = 0; k < P.length; ++k) {
4761
4779
  for (var G = [], J = 0; J < H.length; ++J)
4762
- t.helper.isUndefined(P[E][J]), G.push(h(P[E][J], R[J]));
4780
+ t.helper.isUndefined(P[k][J]), G.push(h(P[k][J], R[J]));
4763
4781
  B.push(G);
4764
4782
  }
4765
4783
  return T(H, B);
4766
4784
  }
4767
- return r = a.converter._dispatch("tables.before", r, u, a), r = r.replace(/\\(\|)/g, t.helper.escapeCharactersCallback), r = r.replace(d, k), r = r.replace(o, k), r = a.converter._dispatch("tables.after", r, u, a), r;
4768
- }), t.subParser("underline", function(r, u, a) {
4769
- return u.underline && (r = a.converter._dispatch("underline.before", r, u, a), u.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(d, o) {
4770
- return "<u>" + o + "</u>";
4771
- }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(d, o) {
4772
- return "<u>" + o + "</u>";
4773
- })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(d, o) {
4774
- return /\S$/.test(o) ? "<u>" + o + "</u>" : d;
4775
- }), r = r.replace(/__(\S[\s\S]*?)__/g, function(d, o) {
4776
- return /\S$/.test(o) ? "<u>" + o + "</u>" : d;
4777
- })), r = r.replace(/(_)/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("underline.after", r, u, a)), r;
4778
- }), t.subParser("unescapeSpecialChars", function(r, u, a) {
4779
- return r = a.converter._dispatch("unescapeSpecialChars.before", r, u, a), r = r.replace(/¨E(\d+)E/g, function(d, o) {
4780
- var f = parseInt(o);
4785
+ return r = a.converter._dispatch("tables.before", r, i, a), r = r.replace(/\\(\|)/g, t.helper.escapeCharactersCallback), r = r.replace(d, _), r = r.replace(c, _), r = a.converter._dispatch("tables.after", r, i, a), r;
4786
+ }), t.subParser("underline", function(r, i, a) {
4787
+ return i.underline && (r = a.converter._dispatch("underline.before", r, i, a), i.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(d, c) {
4788
+ return "<u>" + c + "</u>";
4789
+ }), r = r.replace(/\b__(\S[\s\S]*?)__\b/g, function(d, c) {
4790
+ return "<u>" + c + "</u>";
4791
+ })) : (r = r.replace(/___(\S[\s\S]*?)___/g, function(d, c) {
4792
+ return /\S$/.test(c) ? "<u>" + c + "</u>" : d;
4793
+ }), r = r.replace(/__(\S[\s\S]*?)__/g, function(d, c) {
4794
+ return /\S$/.test(c) ? "<u>" + c + "</u>" : d;
4795
+ })), r = r.replace(/(_)/g, t.helper.escapeCharactersCallback), r = a.converter._dispatch("underline.after", r, i, a)), r;
4796
+ }), t.subParser("unescapeSpecialChars", function(r, i, a) {
4797
+ return r = a.converter._dispatch("unescapeSpecialChars.before", r, i, a), r = r.replace(/¨E(\d+)E/g, function(d, c) {
4798
+ var f = parseInt(c);
4781
4799
  return String.fromCharCode(f);
4782
- }), r = a.converter._dispatch("unescapeSpecialChars.after", r, u, a), r;
4783
- }), t.subParser("makeMarkdown.blockquote", function(r, u) {
4800
+ }), r = a.converter._dispatch("unescapeSpecialChars.after", r, i, a), r;
4801
+ }), t.subParser("makeMarkdown.blockquote", function(r, i) {
4784
4802
  var a = "";
4785
4803
  if (r.hasChildNodes())
4786
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f) {
4787
- var c = t.subParser("makeMarkdown.node")(d[f], u);
4788
- c !== "" && (a += c);
4804
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f) {
4805
+ var o = t.subParser("makeMarkdown.node")(d[f], i);
4806
+ o !== "" && (a += o);
4789
4807
  }
4790
4808
  return a = a.trim(), a = "> " + a.split(`
4791
4809
  `).join(`
4792
4810
  > `), a;
4793
- }), t.subParser("makeMarkdown.codeBlock", function(r, u) {
4811
+ }), t.subParser("makeMarkdown.codeBlock", function(r, i) {
4794
4812
  var a = r.getAttribute("language"), d = r.getAttribute("precodenum");
4795
4813
  return "```" + a + `
4796
- ` + u.preList[d] + "\n```";
4814
+ ` + i.preList[d] + "\n```";
4797
4815
  }), t.subParser("makeMarkdown.codeSpan", function(r) {
4798
4816
  return "`" + r.innerHTML + "`";
4799
- }), t.subParser("makeMarkdown.emphasis", function(r, u) {
4817
+ }), t.subParser("makeMarkdown.emphasis", function(r, i) {
4800
4818
  var a = "";
4801
4819
  if (r.hasChildNodes()) {
4802
4820
  a += "*";
4803
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4804
- a += t.subParser("makeMarkdown.node")(d[f], u);
4821
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4822
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4805
4823
  a += "*";
4806
4824
  }
4807
4825
  return a;
4808
- }), t.subParser("makeMarkdown.header", function(r, u, a) {
4809
- var d = new Array(a + 1).join("#"), o = "";
4826
+ }), t.subParser("makeMarkdown.header", function(r, i, a) {
4827
+ var d = new Array(a + 1).join("#"), c = "";
4810
4828
  if (r.hasChildNodes()) {
4811
- o = d + " ";
4812
- for (var f = r.childNodes, c = f.length, h = 0; h < c; ++h)
4813
- o += t.subParser("makeMarkdown.node")(f[h], u);
4829
+ c = d + " ";
4830
+ for (var f = r.childNodes, o = f.length, h = 0; h < o; ++h)
4831
+ c += t.subParser("makeMarkdown.node")(f[h], i);
4814
4832
  }
4815
- return o;
4833
+ return c;
4816
4834
  }), t.subParser("makeMarkdown.hr", function() {
4817
4835
  return "---";
4818
4836
  }), t.subParser("makeMarkdown.image", function(r) {
4819
- var u = "";
4820
- return r.hasAttribute("src") && (u += "![" + r.getAttribute("alt") + "](", u += "<" + r.getAttribute("src") + ">", r.hasAttribute("width") && r.hasAttribute("height") && (u += " =" + r.getAttribute("width") + "x" + r.getAttribute("height")), r.hasAttribute("title") && (u += ' "' + r.getAttribute("title") + '"'), u += ")"), u;
4821
- }), t.subParser("makeMarkdown.links", function(r, u) {
4837
+ var i = "";
4838
+ return r.hasAttribute("src") && (i += "![" + r.getAttribute("alt") + "](", i += "<" + r.getAttribute("src") + ">", r.hasAttribute("width") && r.hasAttribute("height") && (i += " =" + r.getAttribute("width") + "x" + r.getAttribute("height")), r.hasAttribute("title") && (i += ' "' + r.getAttribute("title") + '"'), i += ")"), i;
4839
+ }), t.subParser("makeMarkdown.links", function(r, i) {
4822
4840
  var a = "";
4823
4841
  if (r.hasChildNodes() && r.hasAttribute("href")) {
4824
- var d = r.childNodes, o = d.length;
4842
+ var d = r.childNodes, c = d.length;
4825
4843
  a = "[";
4826
- for (var f = 0; f < o; ++f)
4827
- a += t.subParser("makeMarkdown.node")(d[f], u);
4844
+ for (var f = 0; f < c; ++f)
4845
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4828
4846
  a += "](", a += "<" + r.getAttribute("href") + ">", r.hasAttribute("title") && (a += ' "' + r.getAttribute("title") + '"'), a += ")";
4829
4847
  }
4830
4848
  return a;
4831
- }), t.subParser("makeMarkdown.list", function(r, u, a) {
4849
+ }), t.subParser("makeMarkdown.list", function(r, i, a) {
4832
4850
  var d = "";
4833
4851
  if (!r.hasChildNodes())
4834
4852
  return "";
4835
- for (var o = r.childNodes, f = o.length, c = r.getAttribute("start") || 1, h = 0; h < f; ++h)
4836
- if (!(typeof o[h].tagName > "u" || o[h].tagName.toLowerCase() !== "li")) {
4853
+ for (var c = r.childNodes, f = c.length, o = r.getAttribute("start") || 1, h = 0; h < f; ++h)
4854
+ if (!(typeof c[h].tagName > "u" || c[h].tagName.toLowerCase() !== "li")) {
4837
4855
  var T = "";
4838
- a === "ol" ? T = c.toString() + ". " : T = "- ", d += T + t.subParser("makeMarkdown.listItem")(o[h], u), ++c;
4856
+ a === "ol" ? T = o.toString() + ". " : T = "- ", d += T + t.subParser("makeMarkdown.listItem")(c[h], i), ++o;
4839
4857
  }
4840
4858
  return d += `
4841
4859
  <!-- -->
4842
4860
  `, d.trim();
4843
- }), t.subParser("makeMarkdown.listItem", function(r, u) {
4844
- for (var a = "", d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4845
- a += t.subParser("makeMarkdown.node")(d[f], u);
4861
+ }), t.subParser("makeMarkdown.listItem", function(r, i) {
4862
+ for (var a = "", d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4863
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4846
4864
  return /\n$/.test(a) ? a = a.split(`
4847
4865
  `).join(`
4848
4866
  `).replace(/^ {4}$/gm, "").replace(/\n\n+/g, `
4849
4867
 
4850
4868
  `) : a += `
4851
4869
  `, a;
4852
- }), t.subParser("makeMarkdown.node", function(r, u, a) {
4870
+ }), t.subParser("makeMarkdown.node", function(r, i, a) {
4853
4871
  a = a || !1;
4854
4872
  var d = "";
4855
4873
  if (r.nodeType === 3)
4856
- return t.subParser("makeMarkdown.txt")(r, u);
4874
+ return t.subParser("makeMarkdown.txt")(r, i);
4857
4875
  if (r.nodeType === 8)
4858
4876
  return "<!--" + r.data + `-->
4859
4877
 
4860
4878
  `;
4861
4879
  if (r.nodeType !== 1)
4862
4880
  return "";
4863
- var o = r.tagName.toLowerCase();
4864
- switch (o) {
4881
+ var c = r.tagName.toLowerCase();
4882
+ switch (c) {
4865
4883
  case "h1":
4866
- a || (d = t.subParser("makeMarkdown.header")(r, u, 1) + `
4884
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 1) + `
4867
4885
 
4868
4886
  `);
4869
4887
  break;
4870
4888
  case "h2":
4871
- a || (d = t.subParser("makeMarkdown.header")(r, u, 2) + `
4889
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 2) + `
4872
4890
 
4873
4891
  `);
4874
4892
  break;
4875
4893
  case "h3":
4876
- a || (d = t.subParser("makeMarkdown.header")(r, u, 3) + `
4894
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 3) + `
4877
4895
 
4878
4896
  `);
4879
4897
  break;
4880
4898
  case "h4":
4881
- a || (d = t.subParser("makeMarkdown.header")(r, u, 4) + `
4899
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 4) + `
4882
4900
 
4883
4901
  `);
4884
4902
  break;
4885
4903
  case "h5":
4886
- a || (d = t.subParser("makeMarkdown.header")(r, u, 5) + `
4904
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 5) + `
4887
4905
 
4888
4906
  `);
4889
4907
  break;
4890
4908
  case "h6":
4891
- a || (d = t.subParser("makeMarkdown.header")(r, u, 6) + `
4909
+ a || (d = t.subParser("makeMarkdown.header")(r, i, 6) + `
4892
4910
 
4893
4911
  `);
4894
4912
  break;
4895
4913
  case "p":
4896
- a || (d = t.subParser("makeMarkdown.paragraph")(r, u) + `
4914
+ a || (d = t.subParser("makeMarkdown.paragraph")(r, i) + `
4897
4915
 
4898
4916
  `);
4899
4917
  break;
4900
4918
  case "blockquote":
4901
- a || (d = t.subParser("makeMarkdown.blockquote")(r, u) + `
4919
+ a || (d = t.subParser("makeMarkdown.blockquote")(r, i) + `
4902
4920
 
4903
4921
  `);
4904
4922
  break;
4905
4923
  case "hr":
4906
- a || (d = t.subParser("makeMarkdown.hr")(r, u) + `
4924
+ a || (d = t.subParser("makeMarkdown.hr")(r, i) + `
4907
4925
 
4908
4926
  `);
4909
4927
  break;
4910
4928
  case "ol":
4911
- a || (d = t.subParser("makeMarkdown.list")(r, u, "ol") + `
4929
+ a || (d = t.subParser("makeMarkdown.list")(r, i, "ol") + `
4912
4930
 
4913
4931
  `);
4914
4932
  break;
4915
4933
  case "ul":
4916
- a || (d = t.subParser("makeMarkdown.list")(r, u, "ul") + `
4934
+ a || (d = t.subParser("makeMarkdown.list")(r, i, "ul") + `
4917
4935
 
4918
4936
  `);
4919
4937
  break;
4920
4938
  case "precode":
4921
- a || (d = t.subParser("makeMarkdown.codeBlock")(r, u) + `
4939
+ a || (d = t.subParser("makeMarkdown.codeBlock")(r, i) + `
4922
4940
 
4923
4941
  `);
4924
4942
  break;
4925
4943
  case "pre":
4926
- a || (d = t.subParser("makeMarkdown.pre")(r, u) + `
4944
+ a || (d = t.subParser("makeMarkdown.pre")(r, i) + `
4927
4945
 
4928
4946
  `);
4929
4947
  break;
4930
4948
  case "table":
4931
- a || (d = t.subParser("makeMarkdown.table")(r, u) + `
4949
+ a || (d = t.subParser("makeMarkdown.table")(r, i) + `
4932
4950
 
4933
4951
  `);
4934
4952
  break;
4935
4953
  case "code":
4936
- d = t.subParser("makeMarkdown.codeSpan")(r, u);
4954
+ d = t.subParser("makeMarkdown.codeSpan")(r, i);
4937
4955
  break;
4938
4956
  case "em":
4939
4957
  case "i":
4940
- d = t.subParser("makeMarkdown.emphasis")(r, u);
4958
+ d = t.subParser("makeMarkdown.emphasis")(r, i);
4941
4959
  break;
4942
4960
  case "strong":
4943
4961
  case "b":
4944
- d = t.subParser("makeMarkdown.strong")(r, u);
4962
+ d = t.subParser("makeMarkdown.strong")(r, i);
4945
4963
  break;
4946
4964
  case "del":
4947
- d = t.subParser("makeMarkdown.strikethrough")(r, u);
4965
+ d = t.subParser("makeMarkdown.strikethrough")(r, i);
4948
4966
  break;
4949
4967
  case "a":
4950
- d = t.subParser("makeMarkdown.links")(r, u);
4968
+ d = t.subParser("makeMarkdown.links")(r, i);
4951
4969
  break;
4952
4970
  case "img":
4953
- d = t.subParser("makeMarkdown.image")(r, u);
4971
+ d = t.subParser("makeMarkdown.image")(r, i);
4954
4972
  break;
4955
4973
  default:
4956
4974
  d = r.outerHTML + `
@@ -4958,90 +4976,90 @@ var Xt = { exports: {} };
4958
4976
  `;
4959
4977
  }
4960
4978
  return d;
4961
- }), t.subParser("makeMarkdown.paragraph", function(r, u) {
4979
+ }), t.subParser("makeMarkdown.paragraph", function(r, i) {
4962
4980
  var a = "";
4963
4981
  if (r.hasChildNodes())
4964
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4965
- a += t.subParser("makeMarkdown.node")(d[f], u);
4982
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4983
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4966
4984
  return a = a.trim(), a;
4967
- }), t.subParser("makeMarkdown.pre", function(r, u) {
4985
+ }), t.subParser("makeMarkdown.pre", function(r, i) {
4968
4986
  var a = r.getAttribute("prenum");
4969
- return "<pre>" + u.preList[a] + "</pre>";
4970
- }), t.subParser("makeMarkdown.strikethrough", function(r, u) {
4987
+ return "<pre>" + i.preList[a] + "</pre>";
4988
+ }), t.subParser("makeMarkdown.strikethrough", function(r, i) {
4971
4989
  var a = "";
4972
4990
  if (r.hasChildNodes()) {
4973
4991
  a += "~~";
4974
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4975
- a += t.subParser("makeMarkdown.node")(d[f], u);
4992
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
4993
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4976
4994
  a += "~~";
4977
4995
  }
4978
4996
  return a;
4979
- }), t.subParser("makeMarkdown.strong", function(r, u) {
4997
+ }), t.subParser("makeMarkdown.strong", function(r, i) {
4980
4998
  var a = "";
4981
4999
  if (r.hasChildNodes()) {
4982
5000
  a += "**";
4983
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
4984
- a += t.subParser("makeMarkdown.node")(d[f], u);
5001
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5002
+ a += t.subParser("makeMarkdown.node")(d[f], i);
4985
5003
  a += "**";
4986
5004
  }
4987
5005
  return a;
4988
- }), t.subParser("makeMarkdown.table", function(r, u) {
4989
- var a = "", d = [[], []], o = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), c, h;
4990
- for (c = 0; c < o.length; ++c) {
4991
- var T = t.subParser("makeMarkdown.tableCell")(o[c], u), k = "---";
4992
- if (o[c].hasAttribute("style")) {
4993
- var _ = o[c].getAttribute("style").toLowerCase().replace(/\s/g, "");
4994
- switch (_) {
5006
+ }), t.subParser("makeMarkdown.table", function(r, i) {
5007
+ var a = "", d = [[], []], c = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), o, h;
5008
+ for (o = 0; o < c.length; ++o) {
5009
+ var T = t.subParser("makeMarkdown.tableCell")(c[o], i), _ = "---";
5010
+ if (c[o].hasAttribute("style")) {
5011
+ var v = c[o].getAttribute("style").toLowerCase().replace(/\s/g, "");
5012
+ switch (v) {
4995
5013
  case "text-align:left;":
4996
- k = ":---";
5014
+ _ = ":---";
4997
5015
  break;
4998
5016
  case "text-align:right;":
4999
- k = "---:";
5017
+ _ = "---:";
5000
5018
  break;
5001
5019
  case "text-align:center;":
5002
- k = ":---:";
5020
+ _ = ":---:";
5003
5021
  break;
5004
5022
  }
5005
5023
  }
5006
- d[0][c] = T.trim(), d[1][c] = k;
5024
+ d[0][o] = T.trim(), d[1][o] = _;
5007
5025
  }
5008
- for (c = 0; c < f.length; ++c) {
5009
- var E = d.push([]) - 1, l = f[c].getElementsByTagName("td");
5010
- for (h = 0; h < o.length; ++h) {
5011
- var w = " ";
5012
- typeof l[h] < "u" && (w = t.subParser("makeMarkdown.tableCell")(l[h], u)), d[E].push(w);
5026
+ for (o = 0; o < f.length; ++o) {
5027
+ var k = d.push([]) - 1, l = f[o].getElementsByTagName("td");
5028
+ for (h = 0; h < c.length; ++h) {
5029
+ var y = " ";
5030
+ typeof l[h] < "u" && (y = t.subParser("makeMarkdown.tableCell")(l[h], i)), d[k].push(y);
5013
5031
  }
5014
5032
  }
5015
- var S = 3;
5016
- for (c = 0; c < d.length; ++c)
5017
- for (h = 0; h < d[c].length; ++h) {
5018
- var P = d[c][h].length;
5019
- P > S && (S = P);
5033
+ var L = 3;
5034
+ for (o = 0; o < d.length; ++o)
5035
+ for (h = 0; h < d[o].length; ++h) {
5036
+ var P = d[o][h].length;
5037
+ P > L && (L = P);
5020
5038
  }
5021
- for (c = 0; c < d.length; ++c) {
5022
- for (h = 0; h < d[c].length; ++h)
5023
- c === 1 ? d[c][h].slice(-1) === ":" ? d[c][h] = t.helper.padEnd(d[c][h].slice(-1), S - 1, "-") + ":" : d[c][h] = t.helper.padEnd(d[c][h], S, "-") : d[c][h] = t.helper.padEnd(d[c][h], S);
5024
- a += "| " + d[c].join(" | ") + ` |
5039
+ for (o = 0; o < d.length; ++o) {
5040
+ for (h = 0; h < d[o].length; ++h)
5041
+ o === 1 ? d[o][h].slice(-1) === ":" ? d[o][h] = t.helper.padEnd(d[o][h].slice(-1), L - 1, "-") + ":" : d[o][h] = t.helper.padEnd(d[o][h], L, "-") : d[o][h] = t.helper.padEnd(d[o][h], L);
5042
+ a += "| " + d[o].join(" | ") + ` |
5025
5043
  `;
5026
5044
  }
5027
5045
  return a.trim();
5028
- }), t.subParser("makeMarkdown.tableCell", function(r, u) {
5046
+ }), t.subParser("makeMarkdown.tableCell", function(r, i) {
5029
5047
  var a = "";
5030
5048
  if (!r.hasChildNodes())
5031
5049
  return "";
5032
- for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f)
5033
- a += t.subParser("makeMarkdown.node")(d[f], u, !0);
5050
+ for (var d = r.childNodes, c = d.length, f = 0; f < c; ++f)
5051
+ a += t.subParser("makeMarkdown.node")(d[f], i, !0);
5034
5052
  return a.trim();
5035
5053
  }), t.subParser("makeMarkdown.txt", function(r) {
5036
- var u = r.nodeValue;
5037
- return u = u.replace(/ +/g, " "), u = u.replace(/¨NBSP;/g, " "), u = t.helper.unescapeHTMLEntities(u), u = u.replace(/([*_~|`])/g, "\\$1"), u = u.replace(/^(\s*)>/g, "\\$1>"), u = u.replace(/^#/gm, "\\#"), u = u.replace(/^(\s*)([-=]{3,})(\s*)$/, "$1\\$2$3"), u = u.replace(/^( {0,3}\d+)\./gm, "$1\\."), u = u.replace(/^( {0,3})([+-])/gm, "$1\\$2"), u = u.replace(/]([\s]*)\(/g, "\\]$1\\("), u = u.replace(/^ {0,3}\[([\S \t]*?)]:/gm, "\\[$1]:"), u;
5054
+ var i = r.nodeValue;
5055
+ return i = i.replace(/ +/g, " "), i = i.replace(/¨NBSP;/g, " "), i = t.helper.unescapeHTMLEntities(i), i = i.replace(/([*_~|`])/g, "\\$1"), i = i.replace(/^(\s*)>/g, "\\$1>"), i = i.replace(/^#/gm, "\\#"), i = i.replace(/^(\s*)([-=]{3,})(\s*)$/, "$1\\$2$3"), i = i.replace(/^( {0,3}\d+)\./gm, "$1\\."), i = i.replace(/^( {0,3})([+-])/gm, "$1\\$2"), i = i.replace(/]([\s]*)\(/g, "\\]$1\\("), i = i.replace(/^ {0,3}\[([\S \t]*?)]:/gm, "\\[$1]:"), i;
5038
5056
  });
5039
- var N = this;
5040
- e.exports ? e.exports = t : N.showdown = t;
5057
+ var j = this;
5058
+ e.exports ? e.exports = t : j.showdown = t;
5041
5059
  }).call(xe);
5042
- })(Xt);
5043
- var ai = Xt.exports;
5044
- const ze = /* @__PURE__ */ Br(ai), tt = /@(\d*|channel|editors):\((.*?)\)/, Jt = ["channel", "editors"], ni = new RegExp(tt, "i"), ii = new RegExp(tt, "gi");
5060
+ })(ea);
5061
+ var fi = ea.exports;
5062
+ const ze = /* @__PURE__ */ Br(fi), tt = /@(\d*|channel|editors):\((.*?)\)/, ra = ["channel", "editors"], pi = new RegExp(tt, "i"), hi = new RegExp(tt, "gi");
5045
5063
  let ie;
5046
5064
  const qr = {
5047
5065
  color: {
@@ -5053,35 +5071,35 @@ const qr = {
5053
5071
  },
5054
5072
  mention: {
5055
5073
  type: "lang",
5056
- regex: ii,
5074
+ regex: hi,
5057
5075
  replace: (e) => {
5058
- const n = e.match(ni), i = n && n.length > 1 && n[1], t = n && n.length > 2 && n[2];
5059
- return Jt.find(
5060
- (s) => s.toLowerCase() === String(i).toLowerCase()
5061
- ) ? `<a class="mention extraMention" data-user-id="${i}">@${t}</a>` : `<a class="mention" data-user-id="${i}">@${t}</a>`;
5076
+ const n = e.match(pi), u = n && n.length > 1 && n[1], t = n && n.length > 2 && n[2];
5077
+ return ra.find(
5078
+ (s) => s.toLowerCase() === String(u).toLowerCase()
5079
+ ) ? `<a class="mention extraMention" data-user-id="${u}">@${t}</a>` : `<a class="mention" data-user-id="${u}">@${t}</a>`;
5062
5080
  }
5063
5081
  },
5064
5082
  userMentioTag: {
5065
5083
  type: "lang",
5066
5084
  regex: /<user-mentio[^>]*>(.+?)<\/user-mentio>/gi,
5067
5085
  replace: (e) => {
5068
- const n = e.match(/<user-mentio[^>]*>(.+?)<\/user-mentio>/), i = e.match(/data-user-id=["']([^"]+)["']/), t = n && n.length > 1 && n[1];
5069
- return `<a class="mention" data-user-id="${i && i.length > 1 && i[1]}">${t}</a>`;
5086
+ const n = e.match(/<user-mentio[^>]*>(.+?)<\/user-mentio>/), u = e.match(/data-user-id=["']([^"]+)["']/), t = n && n.length > 1 && n[1];
5087
+ return `<a class="mention" data-user-id="${u && u.length > 1 && u[1]}">${t}</a>`;
5070
5088
  }
5071
5089
  }
5072
5090
  };
5073
- function ui() {
5091
+ function gi() {
5074
5092
  return ie || (ze.extension("color", qr.color), ze.extension("mention", qr.mention), ze.extension("usermentiotag", qr.userMentioTag), ie = new ze.Converter({
5075
5093
  extensions: ["color", "mention", "usermentiotag"]
5076
5094
  }), ie.setOption("strikethrough", !0), ie.setOption("tables", !0), ie.setOption("openLinksInNewWindow", !0), ie.setOption("disableForced4SpacesIndentedSublists", !0), ie);
5077
5095
  }
5078
- const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5096
+ const mi = gi(), bi = new RegExp(tt, "gi"), vi = new RegExp(
5079
5097
  /<user-mentio[^>]*data-user-id=["']([^"]+)["'][^>]*>(?:@|(?:&#64;))(.+?)<\/user-mentio>/,
5080
5098
  "gi"
5081
- ), Et = (e, n, i) => Jt.find(
5099
+ ), At = (e, n, u) => ra.find(
5082
5100
  (t) => t.toLowerCase() === String(n).toLowerCase()
5083
- ) ? `<a class="mention extraMention" data-user-id="${n}">@${i}</a>` : `<a class="mention" data-user-id="${n}">@${i}</a>`, ci = (e = "") => e.replace(di, Et).replace(oi, Et), li = (e = "") => Rr(e, {
5084
- whiteList: Zn,
5101
+ ) ? `<a class="mention extraMention" data-user-id="${n}">@${u}</a>` : `<a class="mention" data-user-id="${n}">@${u}</a>`, wi = (e = "") => e.replace(bi, At).replace(vi, At), yi = (e = "") => Rr(e, {
5102
+ whiteList: ga,
5085
5103
  css: {
5086
5104
  whiteList: {
5087
5105
  // @ts-ignore method not found
@@ -5090,25 +5108,25 @@ const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5090
5108
  }
5091
5109
  },
5092
5110
  stripIgnoreTag: !0
5093
- }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), fi = (e = "") => {
5111
+ }).replace(/&nbsp;/g, " ").replace(/\u2060/g, ""), _i = (e = "") => {
5094
5112
  const n = /#(?:[0-9a-fA-F]{3}){1,2}|\brgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)|\brgba\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d*(?:\.\d+)?\s*\)/gi;
5095
5113
  return e.replace(
5096
5114
  n,
5097
- (i) => `${i}<span class="color-block" style="background-color: ${i};"></span>`
5115
+ (u) => `${u}<span class="color-block" style="background-color: ${u};"></span>`
5098
5116
  );
5099
- }, pi = (e = "") => {
5117
+ }, ki = (e = "") => {
5100
5118
  try {
5101
- return jn(e, {
5119
+ return Xn(e, {
5102
5120
  target: "_blank",
5103
5121
  ignoreTags: ["pre", "code", "script", "style"],
5104
- render: ({ tagName: n, attributes: i, content: t }) => {
5122
+ render: ({ tagName: n, attributes: u, content: t }) => {
5105
5123
  let s = t;
5106
5124
  if (s.length > 85) {
5107
5125
  const g = s.slice(0, 40), m = s.slice(-40);
5108
5126
  s = `${g}[...]${m}`;
5109
5127
  }
5110
- const p = Object.keys(i).reduce((g, m) => {
5111
- const b = i[m];
5128
+ const p = Object.keys(u).reduce((g, m) => {
5129
+ const b = u[m];
5112
5130
  return `${g} ${m}="${b}"`;
5113
5131
  });
5114
5132
  return `<${n} ${p}>${s}</${n}>`;
@@ -5122,21 +5140,21 @@ const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5122
5140
  } catch {
5123
5141
  return e;
5124
5142
  }
5125
- }, hi = (e = "", n = "html") => {
5126
- let i = ca(e);
5127
- return i = la(i), n === "markdown" ? i = si.makeHtml(i) : i = ci(i), i = Yt(i), i = bi(i), i = pi(i), i;
5128
- }, gi = () => {
5143
+ }, Ei = (e = "", n = "html") => {
5144
+ let u = la(e);
5145
+ return u = fa(u), n === "markdown" ? u = mi.makeHtml(u) : u = wi(u), u = Jt(u), u = Ci(u), u = ki(u), u;
5146
+ }, Ti = () => {
5129
5147
  const e = "ibmMonoOnDemand";
5130
5148
  if (!document.getElementById(e)) {
5131
5149
  const n = document.createElement("style");
5132
5150
  n.id = e, n.appendChild(
5133
- document.createTextNode(`@import url(${Xn});`)
5151
+ document.createTextNode(`@import url(${ba});`)
5134
5152
  ), document.head.appendChild(n);
5135
5153
  }
5136
- }, Tt = (e = "") => (
5154
+ }, Ct = (e = "") => (
5137
5155
  // eslint-disable-next-line no-control-regex
5138
5156
  e.replace(/[^\u0000-\u007E]/g, "")
5139
- ), mi = (e = "") => {
5157
+ ), Ai = (e = "") => {
5140
5158
  const n = /<pre\b[^>]*>\s*<code\b[^>]*>([\s\S]*?)<\/code>\s*<\/pre>/g;
5141
5159
  return e.replace(n, (s) => s.replace(/<\/p>\s*<p>/g, `
5142
5160
  `).replace(/<p>/g, "").replace(/<\/p>/g, "")).replace(n, (s) => Rr(s, {
@@ -5145,7 +5163,7 @@ const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5145
5163
  code: []
5146
5164
  }
5147
5165
  }));
5148
- }, bi = (e) => e.replace(/<(?![a-zA-Z\/!])/g, "&lt;"), vi = (e, n, i) => {
5166
+ }, Ci = (e) => e.replace(/<(?![a-zA-Z\/!])/g, "&lt;"), Si = (e, n, u) => {
5149
5167
  try {
5150
5168
  let t;
5151
5169
  try {
@@ -5156,7 +5174,7 @@ const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5156
5174
  const s = t.replace("#", ""), p = e.querySelector(`[id="${s}"]`);
5157
5175
  p && setTimeout(() => {
5158
5176
  window.scrollTo({
5159
- top: p.getBoundingClientRect().top - i,
5177
+ top: p.getBoundingClientRect().top - u,
5160
5178
  behavior: "smooth"
5161
5179
  }), p.classList.add("highlight"), setTimeout(() => {
5162
5180
  p.classList.remove("highlight");
@@ -5164,185 +5182,205 @@ const si = ui(), di = new RegExp(tt, "gi"), oi = new RegExp(
5164
5182
  }, 500);
5165
5183
  } catch {
5166
5184
  }
5167
- }, xi = /^x[a-f0-9]{7}$/, wi = /^([\w-]*)\+(x[a-f0-9]{7})$/, Oi = () => `x${_i().substring(0, 7)}`, yi = (e) => {
5168
- const n = e.match(wi);
5169
- return n ? n[2] : e;
5170
- };
5171
- function _i() {
5172
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
5173
- const n = Math.random() * 16 | 0;
5174
- return (e === "x" ? n : n & 3 | 8).toString(16);
5175
- });
5176
- }
5177
- const ki = (e) => ` ${e}`.replace(
5178
- /[^a-zA-Z0-9]+(.)/g,
5179
- (n, i) => i.toUpperCase()
5180
- ), Ei = (e = "") => e.replace(/[^a-zA-Z0-9]/gi, ""), Ti = (e) => {
5181
- let n = (e == null ? void 0 : e.trim()) || "";
5182
- return n = ki(n), n = Ei(n), n = n.trim(), n || "empty";
5183
- }, Ai = (e) => `:~:text=${encodeURIComponent(e.textContent)}`, Ci = (e) => {
5184
- const n = e.id, i = e.textContent;
5185
- return n ? `${n}:~:headerText=${Ti(i)}` : !n && (i != null && i.length) ? Ai(e) : "";
5186
- }, Hi = ({
5187
- content: e,
5188
- type: n,
5189
- widgetType: i = "post",
5190
- createAnchors: t,
5191
- useHashAutoscroll: s,
5192
- hashAutoscrollTopMargin: p = 0,
5193
- forceDefaultLinkTarget: g,
5194
- inheritBrandingStyles: m = !1,
5195
- addColorBlocks: b = !1,
5196
- replaceLinkDomains: D = [],
5197
- onSaveToClipboard: C
5198
- }) => {
5199
- const v = ut(null), y = ut(!1), [q, L] = ta([]), I = aa(() => {
5200
- const { hash: z } = window.location;
5201
- if (v.current && z) {
5202
- const j = yi(z.substring(1));
5203
- vi(v.current, `#${j}`, p);
5204
- }
5205
- }, [p]);
5206
- na(() => (s && (I(), document.addEventListener("hashchange", I)), () => {
5207
- document.removeEventListener("hashchange", I);
5208
- }), [s]), st(() => {
5209
- if (!v.current || y.current)
5210
- return;
5211
- const z = () => {
5212
- if (!v.current || !g)
5213
- return;
5214
- const a = v.current.querySelectorAll("a") || [];
5215
- if (a.length > 0) {
5216
- const d = window.origin;
5217
- a.forEach((o) => {
5218
- const { href: f } = o;
5219
- f.startsWith(d) ? delete o.target : o.target = "_blank";
5220
- });
5185
+ }, Mi = ia(
5186
+ ({
5187
+ content: e,
5188
+ type: n,
5189
+ widgetType: u = "post",
5190
+ createAnchors: t,
5191
+ useHashAutoscroll: s,
5192
+ hashAutoscrollTopMargin: p = 0,
5193
+ forceDefaultLinkTarget: g,
5194
+ inheritBrandingStyles: m = !1,
5195
+ addColorBlocks: b = !1,
5196
+ replaceLinkDomains: D = [],
5197
+ onSaveToClipboard: S,
5198
+ onTextSelected: E
5199
+ }, w) => {
5200
+ const A = ut(null), q = ut(!1), [z, N] = ua([]), x = st(
5201
+ (r) => {
5202
+ A.current = r, typeof w == "function" ? w(r) : w && (w.current = r);
5203
+ },
5204
+ [w]
5205
+ ), O = st(() => {
5206
+ const { hash: r } = window.location;
5207
+ if (A.current && r) {
5208
+ const i = Ea(r.substring(1));
5209
+ Si(A.current, `#${i}`, p);
5221
5210
  }
5222
- }, j = () => {
5223
- v.current && (v.current.querySelectorAll("a") || []).forEach((a) => {
5224
- const { href: d } = a;
5225
- d.startsWith("mailto:") && (a.target = "_blank");
5226
- });
5227
- }, N = () => {
5228
- if (!v.current)
5211
+ }, [p]);
5212
+ dt(() => (s && (O(), document.addEventListener("hashchange", O)), () => {
5213
+ document.removeEventListener("hashchange", O);
5214
+ }), [s, O]), dt(() => {
5215
+ if (!E || !A.current)
5229
5216
  return;
5230
- const a = v.current.querySelectorAll(
5231
- kt
5232
- );
5233
- a.length > 0 && (kr.isDefined("highlightjs") || (gi(), kr([...Jn, ...ei], "highlightjs")), kr.ready("highlightjs", () => {
5234
- window.hljs.configure({
5235
- languages: ti,
5236
- useBr: !0
5237
- }), a.forEach((d) => {
5238
- const o = d.innerText, f = document.createElement(ri), c = Yt(o);
5239
- f.textContent = c, d.innerHTML = "", d.appendChild(f), window.hljs.highlightBlock(d);
5240
- }), L((d) => [...d, ...a]);
5241
- }));
5242
- }, r = () => {
5243
- D.length !== 0 && D.forEach(({ domainToReplace: a, domainToReplaceWith: d }) => {
5244
- if (!v.current)
5217
+ const r = () => {
5218
+ const a = window.getSelection();
5219
+ if (!a)
5245
5220
  return;
5246
- const o = v.current.querySelectorAll("a") || [];
5247
- o.length > 0 && o.forEach((f) => {
5248
- try {
5249
- const { href: c } = f, h = new URL(c), { hostname: T } = h;
5250
- if (T !== a || h.pathname === "/")
5221
+ const d = a.toString().trim();
5222
+ if (d.length === 0)
5223
+ return;
5224
+ const f = a.getRangeAt(0).getBoundingClientRect(), o = {
5225
+ x: f.x,
5226
+ y: f.y,
5227
+ width: f.width,
5228
+ height: f.height,
5229
+ top: f.top,
5230
+ left: f.left,
5231
+ bottom: f.bottom,
5232
+ right: f.right
5233
+ };
5234
+ E(d, o);
5235
+ }, i = A.current;
5236
+ return i.addEventListener("mouseup", r), () => {
5237
+ i.removeEventListener("mouseup", r);
5238
+ };
5239
+ }, [E]), ot(() => {
5240
+ if (!A.current || q.current)
5241
+ return;
5242
+ const r = () => {
5243
+ if (!A.current || !g)
5244
+ return;
5245
+ const f = A.current.querySelectorAll("a") || [];
5246
+ if (f.length > 0) {
5247
+ const o = window.origin;
5248
+ f.forEach((h) => {
5249
+ const { href: T } = h;
5250
+ T.startsWith(o) ? delete h.target : h.target = "_blank";
5251
+ });
5252
+ }
5253
+ }, i = () => {
5254
+ A.current && (A.current.querySelectorAll("a") || []).forEach((f) => {
5255
+ const { href: o } = f;
5256
+ o.startsWith("mailto:") && (f.target = "_blank");
5257
+ });
5258
+ }, a = () => {
5259
+ if (!A.current)
5260
+ return;
5261
+ const f = A.current.querySelectorAll(
5262
+ ct
5263
+ );
5264
+ f.length > 0 && (kr.isDefined("highlightjs") || (Ti(), kr([...va, ...wa], "highlightjs")), kr.ready("highlightjs", () => {
5265
+ window.hljs.configure({
5266
+ languages: _a,
5267
+ useBr: !0
5268
+ }), f.forEach((o) => {
5269
+ const h = o.innerText, T = document.createElement(ya), _ = Jt(h);
5270
+ T.textContent = _, o.innerHTML = "", o.appendChild(T), window.hljs.highlightBlock(o);
5271
+ }), N((o) => [...o, ...f]);
5272
+ }));
5273
+ }, d = () => {
5274
+ D.length !== 0 && D.forEach(
5275
+ ({ domainToReplace: f, domainToReplaceWith: o }) => {
5276
+ if (!A.current)
5251
5277
  return;
5252
- if (d === "") {
5253
- const k = `${h.pathname}${h.search}${h.hash}`;
5254
- f.href = k;
5255
- } else
5256
- f.href = c.replace(a, d);
5257
- } catch {
5278
+ const h = A.current.querySelectorAll("a") || [];
5279
+ h.length > 0 && h.forEach((T) => {
5280
+ try {
5281
+ const { href: _ } = T, v = new URL(_), { hostname: k } = v;
5282
+ if (k !== f || v.pathname === "/")
5283
+ return;
5284
+ if (o === "") {
5285
+ const l = `${v.pathname}${v.search}${v.hash}`;
5286
+ T.href = l;
5287
+ } else
5288
+ T.href = _.replace(
5289
+ f,
5290
+ o
5291
+ );
5292
+ } catch {
5293
+ }
5294
+ });
5258
5295
  }
5296
+ );
5297
+ };
5298
+ requestAnimationFrame(() => {
5299
+ r(), i(), a(), d(), s && O();
5300
+ }), q.current = !0;
5301
+ }, [
5302
+ A,
5303
+ t,
5304
+ g,
5305
+ s,
5306
+ D,
5307
+ O
5308
+ ]), ot(() => {
5309
+ const r = () => {
5310
+ if (!A.current || !t)
5311
+ return;
5312
+ const a = A.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5313
+ a.length > 0 && a.forEach((d) => {
5314
+ const { textContent: c = "" } = d;
5315
+ (c || "").length > 0 && (d.id = d.id || Ct(
5316
+ (c || "").toLowerCase().replace(/\s/g, "-")
5317
+ ));
5318
+ }), N((d) => [...d, ...a]);
5319
+ }, i = () => {
5320
+ if (!A.current)
5321
+ return;
5322
+ A.current.querySelectorAll(
5323
+ "td, th"
5324
+ ).forEach((d) => {
5325
+ var f;
5326
+ const c = d.style.backgroundColor;
5327
+ if (c) {
5328
+ const [o, h, T] = ((f = c.match(/[.?\d]+/g)) == null ? void 0 : f.map((k) => parseInt(k, 10))) ?? [0, 0, 0], v = 0.2126 * o + 0.7152 * h + 0.0722 * T > 186 ? "light" : "dark";
5329
+ d.style.colorScheme !== v && d.style.setProperty("color-scheme", v);
5330
+ } else
5331
+ d.style.colorScheme && d.style.removeProperty("color-scheme");
5259
5332
  });
5260
- });
5261
- };
5262
- requestAnimationFrame(() => {
5263
- z(), j(), N(), r(), s && I();
5264
- }), y.current = !0;
5265
- }, [
5266
- v,
5267
- t,
5268
- g,
5269
- s,
5270
- D,
5271
- I
5272
- ]), st(() => {
5273
- const z = () => {
5274
- if (!v.current || !t)
5275
- return;
5276
- const N = v.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5277
- N.length > 0 && N.forEach((r) => {
5278
- const { textContent: u = "" } = r;
5279
- (u || "").length > 0 && (r.id = r.id || Tt(
5280
- (u || "").toLowerCase().replace(/\s/g, "-")
5281
- ));
5282
- }), L((r) => [...r, ...N]);
5283
- }, j = () => {
5284
- if (!v.current)
5285
- return;
5286
- v.current.querySelectorAll(
5287
- "td, th"
5288
- ).forEach((r) => {
5289
- var a;
5290
- const u = r.style.backgroundColor;
5291
- if (u) {
5292
- const [d, o, f] = ((a = u.match(/[.?\d]+/g)) == null ? void 0 : a.map((T) => parseInt(T, 10))) ?? [0, 0, 0], h = 0.2126 * d + 0.7152 * o + 0.0722 * f > 186 ? "light" : "dark";
5293
- r.style.colorScheme !== h && r.style.setProperty("color-scheme", h);
5294
- } else
5295
- r.style.colorScheme && r.style.removeProperty("color-scheme");
5296
- });
5297
- };
5298
- z(), j();
5299
- }, [t, e]);
5300
- const O = ia(() => {
5301
- const z = n && typeof n == "string" ? n.toLowerCase() : "html";
5302
- let j = z === "text" ? `<p>${e}</p>` : hi(e, z);
5303
- return b && (j = fi(j)), j = mi(j), li(j);
5304
- }, [e, n, b]);
5305
- return /* @__PURE__ */ ea(ra, { children: [
5306
- /* @__PURE__ */ Te(
5307
- Li,
5308
- {
5309
- className: `content-renderer ${i === "page" ? "fr-view pages-text" : ""}`,
5310
- ref: v,
5311
- widgetType: i,
5312
- createAnchors: t,
5313
- hashAutoscrollTopMargin: s && p,
5314
- dangerouslySetInnerHTML: {
5315
- __html: O
5316
- },
5317
- inheritBrandingStyles: m
5318
- }
5319
- ),
5320
- q.map((z) => {
5321
- let j = z.textContent ? Tt(z.textContent) : "", N = !1;
5322
- if (z.tagName !== kt) {
5323
- N = !0;
5324
- const r = Ci(z);
5325
- j = `${window.location.href.split("#")[0]}#${r}`;
5326
- }
5327
- return ua.createPortal(
5328
- /* @__PURE__ */ Te(Si, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5329
- sa,
5330
- {
5331
- icon: N ? /* @__PURE__ */ Te(pa, {}) : void 0,
5332
- colorScheme: "blank",
5333
- clipboardCopyLabel: "Copy heading link",
5334
- clipboardContent: j,
5335
- onSaveToClipboard: C,
5336
- hideSuccessTooltip: !!C
5337
- }
5338
- ) }),
5339
- z
5340
- );
5341
- })
5342
- ] });
5343
- }, Si = At.div`
5333
+ };
5334
+ r(), i();
5335
+ }, [t, e]);
5336
+ const j = sa(() => {
5337
+ const r = n && typeof n == "string" ? n.toLowerCase() : "html";
5338
+ let i = r === "text" ? `<p>${e}</p>` : Ei(e, r);
5339
+ return b && (i = _i(i)), i = Ai(i), yi(i);
5340
+ }, [e, n, b]);
5341
+ return /* @__PURE__ */ ta(aa, { children: [
5342
+ /* @__PURE__ */ Te(
5343
+ qi,
5344
+ {
5345
+ className: `content-renderer ${u === "page" ? "fr-view pages-text" : ""}`,
5346
+ ref: x,
5347
+ widgetType: u,
5348
+ createAnchors: t,
5349
+ hashAutoscrollTopMargin: s && p,
5350
+ dangerouslySetInnerHTML: {
5351
+ __html: j
5352
+ },
5353
+ inheritBrandingStyles: m
5354
+ }
5355
+ ),
5356
+ z.map((r) => {
5357
+ let i = r.textContent ? Ct(r.textContent) : "", a = !1;
5358
+ if (r.tagName !== ct) {
5359
+ a = !0;
5360
+ const d = qa(r);
5361
+ i = `${window.location.href.split("#")[0]}#${d}`;
5362
+ }
5363
+ return ca.createPortal(
5364
+ /* @__PURE__ */ Te(Li, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
5365
+ na,
5366
+ {
5367
+ icon: a ? /* @__PURE__ */ Te(pa, {}) : void 0,
5368
+ colorScheme: "blank",
5369
+ clipboardCopyLabel: "Copy heading link",
5370
+ clipboardContent: i,
5371
+ onSaveToClipboard: S,
5372
+ hideSuccessTooltip: !!S
5373
+ }
5374
+ ) }),
5375
+ r
5376
+ );
5377
+ })
5378
+ ] });
5379
+ }
5380
+ ), Li = St.div`
5344
5381
  position: absolute;
5345
5382
  top: calc(50% - (32 / 2) * 1px);
5383
+ right: 0;
5346
5384
  display: inline-block;
5347
5385
  margin-inline-start: var(--space-sm);
5348
5386
 
@@ -5363,7 +5401,7 @@ const ki = (e) => ` ${e}`.replace(
5363
5401
  font-size: 12px;
5364
5402
  line-height: 16px;
5365
5403
  }
5366
- `, Li = At(da).attrs({ as: "div" })`
5404
+ `, qi = St(da).attrs({ as: "div" })`
5367
5405
  h1,
5368
5406
  h2,
5369
5407
  h3,
@@ -5593,9 +5631,9 @@ const ki = (e) => ` ${e}`.replace(
5593
5631
  * {
5594
5632
  font-family: ${oa};
5595
5633
  }
5596
-
5634
+
5597
5635
  h1 {
5598
- font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5636
+ font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5599
5637
  font-weight: ${n ? "var(--channels-h1-font-weight, 500)" : "500"};
5600
5638
  font-size: 24px;
5601
5639
  letter-spacing: -0.5px;
@@ -5608,11 +5646,11 @@ const ki = (e) => ` ${e}`.replace(
5608
5646
  margin-top: var(--space-md);
5609
5647
  }
5610
5648
  & * {
5611
- font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5649
+ font-family: ${n ? "var(--channels-h1-font-family, revert)" : "revert"};
5612
5650
  }
5613
5651
  }
5614
5652
  h2 {
5615
- font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5653
+ font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5616
5654
  font-weight: ${n ? "var(--channels-h2-font-weight, 500)" : "500"};
5617
5655
  font-size: 20px;
5618
5656
  line-height: 28px;
@@ -5624,11 +5662,11 @@ const ki = (e) => ` ${e}`.replace(
5624
5662
  margin-top: var(--space-md);
5625
5663
  }
5626
5664
  & * {
5627
- font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5665
+ font-family: ${n ? "var(--channels-h2-font-family, revert)" : "revert"};
5628
5666
  }
5629
5667
  }
5630
5668
  h3 {
5631
- font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5669
+ font-family: ${n ? "var(--channels-h3-font-family, revert)" : "revert"};
5632
5670
  font-weight: ${n ? "var(--channels-h3-font-weight, 500)" : "500"};
5633
5671
  font-size: 16px;
5634
5672
  line-height: 24px;
@@ -5640,7 +5678,7 @@ const ki = (e) => ` ${e}`.replace(
5640
5678
  margin-top: var(--space-md-minus);
5641
5679
  }
5642
5680
  & * {
5643
- font-family: ${n ? "var(--channels-h3-font-family, revert);" : "revert"}
5681
+ font-family: ${n ? "var(--channels-h3-font-family, revert);" : "revert"};
5644
5682
  }
5645
5683
  }
5646
5684
  h4 {
@@ -5655,7 +5693,7 @@ const ki = (e) => ` ${e}`.replace(
5655
5693
  }
5656
5694
  }
5657
5695
  p {
5658
- font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5696
+ font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5659
5697
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5660
5698
  font-size: 16px;
5661
5699
  line-height: 24px;
@@ -5667,9 +5705,9 @@ const ki = (e) => ` ${e}`.replace(
5667
5705
  + p {
5668
5706
  margin-top: var(--space-md-minus);
5669
5707
  }
5670
-
5708
+
5671
5709
  & * {
5672
- font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5710
+ font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5673
5711
  }
5674
5712
  }
5675
5713
  a {
@@ -5699,7 +5737,7 @@ const ki = (e) => ` ${e}`.replace(
5699
5737
  text-align: right;
5700
5738
  content: counter(item) ".";
5701
5739
  }
5702
- font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5740
+ font-family: ${n ? "var(--channels-body-font-family, revert)" : "revert"};
5703
5741
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5704
5742
  }
5705
5743
  }
@@ -5721,11 +5759,11 @@ const ki = (e) => ` ${e}`.replace(
5721
5759
  -webkit-margin-before: var(--space-sm) !important;
5722
5760
  -webkit-margin-after: var(--space-sm) !important;
5723
5761
  }
5724
-
5762
+
5725
5763
  font-family: ${n ? "var(--channels-body-font-family, revert);" : "revert"};
5726
5764
  font-weight: ${n ? "var(--channels-body-font-weight, revert)" : "revert"};
5727
5765
  }
5728
-
5766
+
5729
5767
  &:first-child,
5730
5768
  &:first-child {
5731
5769
  -webkit-margin-before: 0;
@@ -5744,10 +5782,10 @@ const ki = (e) => ` ${e}`.replace(
5744
5782
  border-width: 1px 0 0 0;
5745
5783
  }
5746
5784
  .xl-emoji * {
5747
- font-size: 40px;
5748
- line-height: 1.2;
5749
- }
5750
- `}
5785
+ font-size: 40px;
5786
+ line-height: 1.2;
5787
+ }
5788
+ `}
5751
5789
 
5752
5790
  // article-only CSS
5753
5791
  ${({ widgetType: e, inheritBrandingStyles: n }) => e === "article" && Ae`
@@ -5947,13 +5985,13 @@ const ki = (e) => ` ${e}`.replace(
5947
5985
  }
5948
5986
  `;
5949
5987
  export {
5950
- Hi as ContentRenderer,
5951
- Ai as generateTextFragment,
5952
- Ci as getLinkFragment,
5953
- yi as getLinkIdFromFragment,
5954
- Ti as getLinkSnippet,
5955
- Oi as getRandomLinkId,
5956
- xi as linkRandomIdRegex,
5957
- wi as linkSnippetWithIdRegex
5988
+ Mi as ContentRenderer,
5989
+ La as generateTextFragment,
5990
+ qa as getLinkFragment,
5991
+ Ea as getLinkIdFromFragment,
5992
+ Sa as getLinkSnippet,
5993
+ Hi as getRandomLinkId,
5994
+ Oi as linkRandomIdRegex,
5995
+ ka as linkSnippetWithIdRegex
5958
5996
  };
5959
5997
  //# sourceMappingURL=index.es.js.map