@happeouikit/content-renderer 3.2.15 → 3.2.17

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,7 +1,7 @@
1
- import { jsxs as Xt, Fragment as Zt, jsx as yr } from "react/jsx-runtime";
2
- import { useRef as Jt, useState as ea, useCallback as ra, useEffect as ta, useMemo as aa } from "react";
1
+ import { jsxs as Zt, Fragment as Jt, jsx as yr } from "react/jsx-runtime";
2
+ import { useRef as nt, useState as ea, useCallback as ra, useLayoutEffect as ta, useMemo as aa } from "react";
3
3
  import na from "react-dom";
4
- import kt, { css as nt } from "styled-components";
4
+ import Et, { css as it } from "styled-components";
5
5
  import { CopyToClipboardButton as ia } from "@happeouikit/copy-to-clipboard-button";
6
6
  import { BodyUI as ua, sansFamily as sa } from "@happeouikit/typography";
7
7
  import { media as me } from "@happeouikit/layout";
@@ -10,111 +10,111 @@ var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
10
10
  function Ur(e) {
11
11
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
12
12
  }
13
- var Et = { exports: {} };
13
+ var Tt = { exports: {} };
14
14
  (function(e, i) {
15
15
  (function(u, t) {
16
16
  e.exports = t();
17
17
  })(je, function() {
18
18
  var u = function() {
19
19
  }, t = {}, s = {}, p = {};
20
- function g(w, D) {
20
+ function g(w, q) {
21
21
  w = w.push ? w : [w];
22
- var C = [], R = w.length, j = R, O, x, N, r;
23
- for (O = function(n, a) {
24
- a.length && C.push(n), j--, j || D(C);
25
- }; R--; ) {
26
- if (x = w[R], N = s[x], N) {
27
- O(x, N);
22
+ var L = [], j = w.length, N = j, z, H, O, r;
23
+ for (z = function(n, a) {
24
+ a.length && L.push(n), N--, N || q(L);
25
+ }; j--; ) {
26
+ if (H = w[j], O = s[H], O) {
27
+ z(H, O);
28
28
  continue;
29
29
  }
30
- r = p[x] = p[x] || [], r.push(O);
30
+ r = p[H] = p[H] || [], r.push(z);
31
31
  }
32
32
  }
33
- function m(w, D) {
33
+ function m(w, q) {
34
34
  if (w) {
35
- var C = p[w];
36
- if (s[w] = D, !!C)
37
- for (; C.length; )
38
- C[0](w, D), C.splice(0, 1);
35
+ var L = p[w];
36
+ if (s[w] = q, !!L)
37
+ for (; L.length; )
38
+ L[0](w, q), L.splice(0, 1);
39
39
  }
40
40
  }
41
- function b(w, D) {
42
- w.call && (w = { success: w }), D.length ? (w.error || u)(D) : (w.success || u)(w);
41
+ function b(w, q) {
42
+ w.call && (w = { success: w }), q.length ? (w.error || u)(q) : (w.success || u)(w);
43
43
  }
44
- function S(w, D, C, R) {
45
- var j = document, O = C.async, x = (C.numRetries || 0) + 1, N = C.before || u, r = w.replace(/[\?|#].*$/, ""), n = w.replace(/^(css|img|module|nomodule)!/, ""), a, d, o;
46
- if (R = R || 0, /(^css!|\.css$)/.test(r))
47
- o = j.createElement("link"), o.rel = "stylesheet", o.href = n, a = "hideFocus" in o, a && o.relList && (a = 0, o.rel = "preload", o.as = "style");
44
+ function D(w, q, L, j) {
45
+ var N = document, z = L.async, H = (L.numRetries || 0) + 1, O = L.before || u, r = w.replace(/[\?|#].*$/, ""), n = w.replace(/^(css|img|module|nomodule)!/, ""), a, d, o;
46
+ if (j = j || 0, /(^css!|\.css$)/.test(r))
47
+ o = N.createElement("link"), o.rel = "stylesheet", o.href = n, a = "hideFocus" in o, a && o.relList && (a = 0, o.rel = "preload", o.as = "style");
48
48
  else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(r))
49
- o = j.createElement("img"), o.src = n;
50
- else if (o = j.createElement("script"), o.src = n, o.async = O === void 0 ? !0 : O, d = "noModule" in o, /^module!/.test(r)) {
49
+ o = N.createElement("img"), o.src = n;
50
+ else if (o = N.createElement("script"), o.src = n, o.async = z === void 0 ? !0 : z, d = "noModule" in o, /^module!/.test(r)) {
51
51
  if (!d)
52
- return D(w, "l");
52
+ return q(w, "l");
53
53
  o.type = "module";
54
54
  } else if (/^nomodule!/.test(r) && d)
55
- return D(w, "l");
55
+ return q(w, "l");
56
56
  o.onload = o.onerror = o.onbeforeload = function(f) {
57
- var l = f.type[0];
57
+ var c = f.type[0];
58
58
  if (a)
59
59
  try {
60
- o.sheet.cssText.length || (l = "e");
60
+ o.sheet.cssText.length || (c = "e");
61
61
  } catch (h) {
62
- h.code != 18 && (l = "e");
62
+ h.code != 18 && (c = "e");
63
63
  }
64
- if (l == "e") {
65
- if (R += 1, R < x)
66
- return S(w, D, C, R);
64
+ if (c == "e") {
65
+ if (j += 1, j < H)
66
+ return D(w, q, L, j);
67
67
  } else if (o.rel == "preload" && o.as == "style")
68
68
  return o.rel = "stylesheet";
69
- D(w, l, f.defaultPrevented);
70
- }, N(w, o) !== !1 && j.head.appendChild(o);
69
+ q(w, c, f.defaultPrevented);
70
+ }, O(w, o) !== !1 && N.head.appendChild(o);
71
71
  }
72
- function q(w, D, C) {
72
+ function T(w, q, L) {
73
73
  w = w.push ? w : [w];
74
- var R = w.length, j = R, O = [], x, N;
75
- for (x = function(r, n, a) {
76
- if (n == "e" && O.push(r), n == "b")
74
+ var j = w.length, N = j, z = [], H, O;
75
+ for (H = function(r, n, a) {
76
+ if (n == "e" && z.push(r), n == "b")
77
77
  if (a)
78
- O.push(r);
78
+ z.push(r);
79
79
  else
80
80
  return;
81
- R--, R || D(O);
82
- }, N = 0; N < j; N++)
83
- S(w[N], x, C);
81
+ j--, j || q(z);
82
+ }, O = 0; O < N; O++)
83
+ D(w[O], H, L);
84
84
  }
85
- function E(w, D, C) {
86
- var R, j;
87
- if (D && D.trim && (R = D), j = (R ? C : D) || {}, R) {
88
- if (R in t)
85
+ function E(w, q, L) {
86
+ var j, N;
87
+ if (q && q.trim && (j = q), N = (j ? L : q) || {}, j) {
88
+ if (j in t)
89
89
  throw "LoadJS";
90
- t[R] = !0;
90
+ t[j] = !0;
91
91
  }
92
- function O(x, N) {
93
- q(w, function(r) {
94
- b(j, r), x && b({ success: x, error: N }, r), m(R, r);
95
- }, j);
92
+ function z(H, O) {
93
+ T(w, function(r) {
94
+ b(N, r), H && b({ success: H, error: O }, r), m(j, r);
95
+ }, N);
96
96
  }
97
- if (j.returnPromise)
98
- return new Promise(O);
99
- O();
97
+ if (N.returnPromise)
98
+ return new Promise(z);
99
+ z();
100
100
  }
101
- return E.ready = function(D, C) {
102
- return g(D, function(R) {
103
- b(C, R);
101
+ return E.ready = function(q, L) {
102
+ return g(q, function(j) {
103
+ b(L, j);
104
104
  }), E;
105
- }, E.done = function(D) {
106
- m(D, []);
105
+ }, E.done = function(q) {
106
+ m(q, []);
107
107
  }, E.reset = function() {
108
108
  t = {}, s = {}, p = {};
109
- }, E.isDefined = function(D) {
110
- return D in t;
109
+ }, E.isDefined = function(q) {
110
+ return q in t;
111
111
  }, E;
112
112
  });
113
- })(Et);
114
- var ca = Et.exports;
113
+ })(Tt);
114
+ var ca = Tt.exports;
115
115
  const _r = /* @__PURE__ */ Ur(ca);
116
116
  var qr = { exports: {} }, M = {}, Dr = { exports: {} }, ce = {};
117
- function Tt() {
117
+ function At() {
118
118
  var e = {};
119
119
  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;
120
120
  }
@@ -126,8 +126,8 @@ var pa = /javascript\s*\:/img;
126
126
  function ha(e, i) {
127
127
  return pa.test(i) ? "" : i;
128
128
  }
129
- ce.whiteList = Tt();
130
- ce.getDefaultWhiteList = Tt;
129
+ ce.whiteList = At();
130
+ ce.getDefaultWhiteList = At;
131
131
  ce.onAttr = la;
132
132
  ce.onIgnoreAttr = fa;
133
133
  ce.safeAttrValue = ha;
@@ -160,12 +160,12 @@ function ma(e, i) {
160
160
  var u = e.length, t = !1, s = 0, p = 0, g = "";
161
161
  function m() {
162
162
  if (!t) {
163
- var q = be.trim(e.slice(s, p)), E = q.indexOf(":");
163
+ var T = be.trim(e.slice(s, p)), E = T.indexOf(":");
164
164
  if (E !== -1) {
165
- var w = be.trim(q.slice(0, E)), D = be.trim(q.slice(E + 1));
165
+ var w = be.trim(T.slice(0, E)), q = be.trim(T.slice(E + 1));
166
166
  if (w) {
167
- var C = i(s, g.length, w, D, q);
168
- C && (g += C + "; ");
167
+ var L = i(s, g.length, w, q, T);
168
+ L && (g += L + "; ");
169
169
  }
170
170
  }
171
171
  }
@@ -174,10 +174,10 @@ function ma(e, i) {
174
174
  for (; p < u; p++) {
175
175
  var b = e[p];
176
176
  if (b === "/" && e[p + 1] === "*") {
177
- var S = e.indexOf("*/", p + 2);
178
- if (S === -1)
177
+ var D = e.indexOf("*/", p + 2);
178
+ if (D === -1)
179
179
  break;
180
- p = S + 1, s = p + 1, t = !1;
180
+ p = D + 1, s = p + 1, t = !1;
181
181
  } else
182
182
  b === "(" ? t = !0 : b === ")" ? t = !1 : b === ";" ? t || m() : b === `
183
183
  ` && m();
@@ -185,7 +185,7 @@ function ma(e, i) {
185
185
  return be.trim(g);
186
186
  }
187
187
  var ba = ma, Te = ce, va = ba;
188
- function it(e) {
188
+ function ut(e) {
189
189
  return e == null;
190
190
  }
191
191
  function wa(e) {
@@ -194,34 +194,34 @@ function wa(e) {
194
194
  i[u] = e[u];
195
195
  return i;
196
196
  }
197
- function At(e) {
197
+ function Ct(e) {
198
198
  e = wa(e || {}), e.whiteList = e.whiteList || Te.whiteList, e.onAttr = e.onAttr || Te.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || Te.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || Te.safeAttrValue, this.options = e;
199
199
  }
200
- At.prototype.process = function(e) {
200
+ Ct.prototype.process = function(e) {
201
201
  if (e = e || "", e = e.toString(), !e)
202
202
  return "";
203
- var i = this, u = i.options, t = u.whiteList, s = u.onAttr, p = u.onIgnoreAttr, g = u.safeAttrValue, m = va(e, function(b, S, q, E, w) {
204
- var D = t[q], C = !1;
205
- if (D === !0 ? C = D : typeof D == "function" ? C = D(E) : D instanceof RegExp && (C = D.test(E)), C !== !0 && (C = !1), E = g(q, E), !!E) {
206
- var R = {
207
- position: S,
203
+ var i = this, u = i.options, t = u.whiteList, s = u.onAttr, p = u.onIgnoreAttr, g = u.safeAttrValue, m = va(e, function(b, D, T, E, w) {
204
+ var q = t[T], L = !1;
205
+ if (q === !0 ? L = q : typeof q == "function" ? L = q(E) : q instanceof RegExp && (L = q.test(E)), L !== !0 && (L = !1), E = g(T, E), !!E) {
206
+ var j = {
207
+ position: D,
208
208
  sourcePosition: b,
209
209
  source: w,
210
- isWhite: C
210
+ isWhite: L
211
211
  };
212
- if (C) {
213
- var j = s(q, E, R);
214
- return it(j) ? q + ":" + E : j;
212
+ if (L) {
213
+ var N = s(T, E, j);
214
+ return ut(N) ? T + ":" + E : N;
215
215
  } else {
216
- var j = p(q, E, R);
217
- if (!it(j))
218
- return j;
216
+ var N = p(T, E, j);
217
+ if (!ut(N))
218
+ return N;
219
219
  }
220
220
  }
221
221
  });
222
222
  return m;
223
223
  };
224
- var ya = At;
224
+ var ya = Ct;
225
225
  (function(e, i) {
226
226
  var u = ce, t = ya;
227
227
  function s(g, m) {
@@ -258,7 +258,7 @@ var Br = Dr.exports, Vr = {
258
258
  return u ? u.index : -1;
259
259
  }
260
260
  }, _a = Br.FilterCSS, ka = Br.getDefaultWhiteList, Ie = Vr;
261
- function Ct() {
261
+ function St() {
262
262
  return {
263
263
  a: ["target", "href", "title"],
264
264
  abbr: ["title"],
@@ -350,7 +350,7 @@ function Ct() {
350
350
  ]
351
351
  };
352
352
  }
353
- var St = new _a();
353
+ var Lt = new _a();
354
354
  function Ea(e, i, u) {
355
355
  }
356
356
  function Ta(e, i, u) {
@@ -359,11 +359,11 @@ function Aa(e, i, u) {
359
359
  }
360
360
  function Ca(e, i, u) {
361
361
  }
362
- function Lt(e) {
362
+ function qt(e) {
363
363
  return e.replace(La, "&lt;").replace(qa, "&gt;");
364
364
  }
365
365
  function Sa(e, i, u, t) {
366
- if (u = Nt(u), i === "href" || i === "src") {
366
+ if (u = jt(u), i === "href" || i === "src") {
367
367
  if (u = Ie.trim(u), u === "#")
368
368
  return "#";
369
369
  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] === "/"))
@@ -372,37 +372,37 @@ function Sa(e, i, u, t) {
372
372
  if (Ae.lastIndex = 0, Ae.test(u))
373
373
  return "";
374
374
  } else if (i === "style") {
375
- if (ut.lastIndex = 0, ut.test(u) || (st.lastIndex = 0, st.test(u) && (Ae.lastIndex = 0, Ae.test(u))))
375
+ if (st.lastIndex = 0, st.test(u) || (dt.lastIndex = 0, dt.test(u) && (Ae.lastIndex = 0, Ae.test(u))))
376
376
  return "";
377
- t !== !1 && (t = t || St, u = t.process(u));
377
+ t !== !1 && (t = t || Lt, u = t.process(u));
378
378
  }
379
- return u = jt(u), u;
379
+ return u = It(u), u;
380
380
  }
381
- var La = /</g, qa = />/g, Da = /"/g, Pa = /&quot;/g, Ra = /&#([a-zA-Z0-9]*);?/gim, za = /&colon;?/gim, Na = /&newline;?/gim, Ae = /((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, ut = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, st = /u\s*r\s*l\s*\(.*/gi;
382
- function qt(e) {
381
+ var La = /</g, qa = />/g, Da = /"/g, Pa = /&quot;/g, Ra = /&#([a-zA-Z0-9]*);?/gim, za = /&colon;?/gim, Na = /&newline;?/gim, Ae = /((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, st = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, dt = /u\s*r\s*l\s*\(.*/gi;
382
+ function Dt(e) {
383
383
  return e.replace(Da, "&quot;");
384
384
  }
385
- function Dt(e) {
385
+ function Pt(e) {
386
386
  return e.replace(Pa, '"');
387
387
  }
388
- function Pt(e) {
388
+ function Rt(e) {
389
389
  return e.replace(Ra, function(u, t) {
390
390
  return t[0] === "x" || t[0] === "X" ? String.fromCharCode(parseInt(t.substr(1), 16)) : String.fromCharCode(parseInt(t, 10));
391
391
  });
392
392
  }
393
- function Rt(e) {
393
+ function zt(e) {
394
394
  return e.replace(za, ":").replace(Na, " ");
395
395
  }
396
- function zt(e) {
396
+ function Nt(e) {
397
397
  for (var i = "", u = 0, t = e.length; u < t; u++)
398
398
  i += e.charCodeAt(u) < 32 ? " " : e.charAt(u);
399
399
  return Ie.trim(i);
400
400
  }
401
- function Nt(e) {
402
- return e = Dt(e), e = Pt(e), e = Rt(e), e = zt(e), e;
403
- }
404
401
  function jt(e) {
405
- return e = qt(e), e = Lt(e), e;
402
+ return e = Pt(e), e = Rt(e), e = zt(e), e = Nt(e), e;
403
+ }
404
+ function It(e) {
405
+ return e = Dt(e), e = qt(e), e;
406
406
  }
407
407
  function ja() {
408
408
  return "";
@@ -419,11 +419,11 @@ function Ia(e, i) {
419
419
  onIgnoreTag: function(g, m, b) {
420
420
  if (t(g))
421
421
  if (b.isClosing) {
422
- var S = "[/removed]", q = b.position + S.length;
422
+ var D = "[/removed]", T = b.position + D.length;
423
423
  return s.push([
424
424
  p !== !1 ? p : b.position,
425
- q
426
- ]), p = !1, S;
425
+ T
426
+ ]), p = !1, D;
427
427
  } else
428
428
  return p || (p = b.position), "[removed]";
429
429
  else
@@ -431,8 +431,8 @@ function Ia(e, i) {
431
431
  },
432
432
  remove: function(g) {
433
433
  var m = "", b = 0;
434
- return Ie.forEach(s, function(S) {
435
- m += g.slice(b, S[0]), b = S[1];
434
+ return Ie.forEach(s, function(D) {
435
+ m += g.slice(b, D[0]), b = D[1];
436
436
  }), m += g.slice(b), m;
437
437
  }
438
438
  };
@@ -459,27 +459,27 @@ function Ha(e) {
459
459
  return t === 127 ? !1 : t <= 31 ? t === 10 || t === 13 : !0;
460
460
  }), i.join("");
461
461
  }
462
- M.whiteList = Ct();
463
- M.getDefaultWhiteList = Ct;
462
+ M.whiteList = St();
463
+ M.getDefaultWhiteList = St;
464
464
  M.onTag = Ea;
465
465
  M.onIgnoreTag = Ta;
466
466
  M.onTagAttr = Aa;
467
467
  M.onIgnoreTagAttr = Ca;
468
468
  M.safeAttrValue = Sa;
469
- M.escapeHtml = Lt;
470
- M.escapeQuote = qt;
471
- M.unescapeQuote = Dt;
472
- M.escapeHtmlEntities = Pt;
473
- M.escapeDangerHtml5Entities = Rt;
474
- M.clearNonPrintableCharacter = zt;
475
- M.friendlyAttrValue = Nt;
476
- M.escapeAttrValue = jt;
469
+ M.escapeHtml = qt;
470
+ M.escapeQuote = Dt;
471
+ M.unescapeQuote = Pt;
472
+ M.escapeHtmlEntities = Rt;
473
+ M.escapeDangerHtml5Entities = zt;
474
+ M.clearNonPrintableCharacter = Nt;
475
+ M.friendlyAttrValue = jt;
476
+ M.escapeAttrValue = It;
477
477
  M.onIgnoreTagStripAll = ja;
478
478
  M.StripTagBody = Ia;
479
479
  M.stripCommentTag = Oa;
480
480
  M.stripBlankChar = Ha;
481
481
  M.attributeWrapSign = '"';
482
- M.cssFilter = St;
482
+ M.cssFilter = Lt;
483
483
  M.getDefaultCSSWhiteList = ka;
484
484
  var pr = {}, ue = Vr;
485
485
  function xa(e) {
@@ -490,7 +490,7 @@ function Ma(e) {
490
490
  return e.slice(0, 2) === "</";
491
491
  }
492
492
  function Ua(e, i, u) {
493
- var t = "", s = 0, p = !1, g = !1, m = 0, b = e.length, S = "", q = "";
493
+ var t = "", s = 0, p = !1, g = !1, m = 0, b = e.length, D = "", T = "";
494
494
  e:
495
495
  for (m = 0; m < b; m++) {
496
496
  var E = e.charAt(m);
@@ -505,22 +505,22 @@ function Ua(e, i, u) {
505
505
  continue;
506
506
  }
507
507
  if (E === ">" || m === b - 1) {
508
- t += u(e.slice(s, p)), q = e.slice(p, m + 1), S = xa(q), t += i(
508
+ t += u(e.slice(s, p)), T = e.slice(p, m + 1), D = xa(T), t += i(
509
509
  p,
510
510
  t.length,
511
- S,
512
- q,
513
- Ma(q)
511
+ D,
512
+ T,
513
+ Ma(T)
514
514
  ), s = m + 1, p = !1;
515
515
  continue;
516
516
  }
517
517
  if (E === '"' || E === "'")
518
- for (var w = 1, D = e.charAt(m - w); D.trim() === "" || D === "="; ) {
519
- if (D === "=") {
518
+ for (var w = 1, q = e.charAt(m - w); q.trim() === "" || q === "="; ) {
519
+ if (q === "=") {
520
520
  g = E;
521
521
  continue e;
522
522
  }
523
- D = e.charAt(m - ++w);
523
+ q = e.charAt(m - ++w);
524
524
  }
525
525
  } else if (E === g) {
526
526
  g = !1;
@@ -532,40 +532,40 @@ function Ua(e, i, u) {
532
532
  var Ba = /[^a-zA-Z0-9\\_:.-]/gim;
533
533
  function Va(e, i) {
534
534
  var u = 0, t = 0, s = [], p = !1, g = e.length;
535
- function m(w, D) {
535
+ function m(w, q) {
536
536
  if (w = ue.trim(w), w = w.replace(Ba, "").toLowerCase(), !(w.length < 1)) {
537
- var C = i(w, D || "");
538
- C && s.push(C);
537
+ var L = i(w, q || "");
538
+ L && s.push(L);
539
539
  }
540
540
  }
541
541
  for (var b = 0; b < g; b++) {
542
- var S = e.charAt(b), q, E;
543
- if (p === !1 && S === "=") {
542
+ var D = e.charAt(b), T, E;
543
+ if (p === !1 && D === "=") {
544
544
  p = e.slice(u, b), u = b + 1, t = e.charAt(u) === '"' || e.charAt(u) === "'" ? u : $a(e, b + 1);
545
545
  continue;
546
546
  }
547
547
  if (p !== !1 && b === t) {
548
- if (E = e.indexOf(S, b + 1), E === -1)
548
+ if (E = e.indexOf(D, b + 1), E === -1)
549
549
  break;
550
- q = ue.trim(e.slice(t + 1, E)), m(p, q), p = !1, b = E, u = b + 1;
550
+ T = ue.trim(e.slice(t + 1, E)), m(p, T), p = !1, b = E, u = b + 1;
551
551
  continue;
552
552
  }
553
- if (/\s|\n|\t/.test(S))
553
+ if (/\s|\n|\t/.test(D))
554
554
  if (e = e.replace(/\s|\n|\t/g, " "), p === !1)
555
555
  if (E = Fa(e, b), E === -1) {
556
- q = ue.trim(e.slice(u, b)), m(q), p = !1, u = b + 1;
556
+ T = ue.trim(e.slice(u, b)), m(T), p = !1, u = b + 1;
557
557
  continue;
558
558
  } else {
559
559
  b = E - 1;
560
560
  continue;
561
561
  }
562
562
  else if (E = Ga(e, b - 1), E === -1) {
563
- q = ue.trim(e.slice(u, b)), q = dt(q), m(p, q), p = !1, u = b + 1;
563
+ T = ue.trim(e.slice(u, b)), T = ot(T), m(p, T), p = !1, u = b + 1;
564
564
  continue;
565
565
  } else
566
566
  continue;
567
567
  }
568
- return u < e.length && (p === !1 ? m(e.slice(u)) : m(p, dt(ue.trim(e.slice(u))))), ue.trim(s.join(" "));
568
+ return u < e.length && (p === !1 ? m(e.slice(u)) : m(p, ot(ue.trim(e.slice(u))))), ue.trim(s.join(" "));
569
569
  }
570
570
  function Fa(e, i) {
571
571
  for (; i < e.length; i++) {
@@ -591,12 +591,12 @@ function Ga(e, i) {
591
591
  function Wa(e) {
592
592
  return e[0] === '"' && e[e.length - 1] === '"' || e[0] === "'" && e[e.length - 1] === "'";
593
593
  }
594
- function dt(e) {
594
+ function ot(e) {
595
595
  return Wa(e) ? e.substr(1, e.length - 2) : e;
596
596
  }
597
597
  pr.parseTag = Ua;
598
598
  pr.parseAttr = Va;
599
- var Ka = Br.FilterCSS, Z = M, It = pr, Qa = It.parseTag, Ya = It.parseAttr, Re = Vr;
599
+ var Ka = Br.FilterCSS, Z = M, Ot = pr, Qa = Ot.parseTag, Ya = Ot.parseAttr, Re = Vr;
600
600
  function Ce(e) {
601
601
  return e == null;
602
602
  }
@@ -628,53 +628,53 @@ function Ja(e) {
628
628
  }) : i[u.toLowerCase()] = e[u];
629
629
  return i;
630
630
  }
631
- function Ot(e) {
631
+ function Ht(e) {
632
632
  e = Za(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
633
633
  'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
634
634
  ), e.onIgnoreTag = Z.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = Ja(e.whiteList || e.allowList) : e.whiteList = Z.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : Z.attributeWrapSign, e.onTag = e.onTag || Z.onTag, e.onTagAttr = e.onTagAttr || Z.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || Z.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || Z.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || Z.safeAttrValue, e.escapeHtml = e.escapeHtml || Z.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new Ka(e.css));
635
635
  }
636
- Ot.prototype.process = function(e) {
636
+ Ht.prototype.process = function(e) {
637
637
  if (e = e || "", e = e.toString(), !e)
638
638
  return "";
639
- var i = this, u = i.options, t = u.whiteList, s = u.onTag, p = u.onIgnoreTag, g = u.onTagAttr, m = u.onIgnoreTagAttr, b = u.safeAttrValue, S = u.escapeHtml, q = i.attributeWrapSign, E = i.cssFilter;
639
+ var i = this, u = i.options, t = u.whiteList, s = u.onTag, p = u.onIgnoreTag, g = u.onTagAttr, m = u.onIgnoreTagAttr, b = u.safeAttrValue, D = u.escapeHtml, T = i.attributeWrapSign, E = i.cssFilter;
640
640
  u.stripBlankChar && (e = Z.stripBlankChar(e)), u.allowCommentTag || (e = Z.stripCommentTag(e));
641
641
  var w = !1;
642
642
  u.stripIgnoreTagBody && (w = Z.StripTagBody(
643
643
  u.stripIgnoreTagBody,
644
644
  p
645
645
  ), p = w.onIgnoreTag);
646
- var D = Qa(
646
+ var q = Qa(
647
647
  e,
648
- function(C, R, j, O, x) {
649
- var N = {
650
- sourcePosition: C,
651
- position: R,
652
- isClosing: x,
653
- isWhite: Object.prototype.hasOwnProperty.call(t, j)
654
- }, r = s(j, O, N);
648
+ function(L, j, N, z, H) {
649
+ var O = {
650
+ sourcePosition: L,
651
+ position: j,
652
+ isClosing: H,
653
+ isWhite: Object.prototype.hasOwnProperty.call(t, N)
654
+ }, r = s(N, z, O);
655
655
  if (!Ce(r))
656
656
  return r;
657
- if (N.isWhite) {
658
- if (N.isClosing)
659
- return "</" + j + ">";
660
- var n = Xa(O), a = t[j], d = Ya(n.html, function(o, f) {
661
- var l = Re.indexOf(a, o) !== -1, h = g(j, o, f, l);
662
- return Ce(h) ? l ? (f = b(j, o, f, E), f ? o + "=" + q + f + q : o) : (h = m(j, o, f, l), Ce(h) ? void 0 : h) : h;
657
+ if (O.isWhite) {
658
+ if (O.isClosing)
659
+ return "</" + N + ">";
660
+ var n = Xa(z), a = t[N], d = Ya(n.html, function(o, f) {
661
+ var c = Re.indexOf(a, o) !== -1, h = g(N, o, f, c);
662
+ return Ce(h) ? c ? (f = b(N, o, f, E), f ? o + "=" + T + f + T : o) : (h = m(N, o, f, c), Ce(h) ? void 0 : h) : h;
663
663
  });
664
- return O = "<" + j, d && (O += " " + d), n.closing && (O += " /"), O += ">", O;
664
+ return z = "<" + N, d && (z += " " + d), n.closing && (z += " /"), z += ">", z;
665
665
  } else
666
- return r = p(j, O, N), Ce(r) ? S(O) : r;
666
+ return r = p(N, z, O), Ce(r) ? D(z) : r;
667
667
  },
668
- S
668
+ D
669
669
  );
670
- return w && (D = w.remove(D)), D;
670
+ return w && (q = w.remove(q)), q;
671
671
  };
672
- var en = Ot;
672
+ var en = Ht;
673
673
  (function(e, i) {
674
674
  var u = M, t = pr, s = en;
675
675
  function p(m, b) {
676
- var S = new s(b);
677
- return S.process(m);
676
+ var D = new s(b);
677
+ return D.process(m);
678
678
  }
679
679
  i = e.exports = p, i.filterXSS = p, i.FilterXSS = s, function() {
680
680
  for (var m in u)
@@ -692,12 +692,12 @@ const Pr = /* @__PURE__ */ Ur(rn), tn = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0a
692
692
  for (const u in i)
693
693
  e[u] = i[u];
694
694
  return e;
695
- }, Rr = "numeric", zr = "ascii", Nr = "alpha", ze = "asciinumeric", Se = "alphanumeric", jr = "domain", Ht = "emoji", nn = "scheme", un = "slashscheme", ot = "whitespace";
695
+ }, Rr = "numeric", zr = "ascii", Nr = "alpha", ze = "asciinumeric", Se = "alphanumeric", jr = "domain", xt = "emoji", nn = "scheme", un = "slashscheme", ct = "whitespace";
696
696
  function sn(e, i) {
697
697
  return e in i || (i[e] = []), i[e];
698
698
  }
699
699
  function oe(e, i, u) {
700
- i[Rr] && (i[ze] = !0, i[Se] = !0), i[zr] && (i[ze] = !0, i[Nr] = !0), i[ze] && (i[Se] = !0), i[Nr] && (i[Se] = !0), i[Se] && (i[jr] = !0), i[Ht] && (i[jr] = !0);
700
+ i[Rr] && (i[ze] = !0, i[Se] = !0), i[zr] && (i[ze] = !0, i[Nr] = !0), i[ze] && (i[Se] = !0), i[Nr] && (i[Se] = !0), i[Se] && (i[jr] = !0), i[xt] && (i[jr] = !0);
701
701
  for (const t in i) {
702
702
  const s = sn(t, u);
703
703
  s.indexOf(e) < 0 && s.push(e);
@@ -834,8 +834,8 @@ Q.prototype = {
834
834
  return s.j[e] = g, g;
835
835
  }
836
836
  };
837
- const I = (e, i, u, t, s) => e.ta(i, u, t, s), Y = (e, i, u, t, s) => e.tr(i, u, t, s), ct = (e, i, u, t, s) => e.ts(i, u, t, s), A = (e, i, u, t, s) => e.tt(i, u, t, s), ae = "WORD", Ir = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", Ne = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", xt = "WS", $r = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", Oe = "OPENBRACKET", He = "CLOSEBRACKET", xe = "OPENPAREN", Me = "CLOSEPAREN", Ue = "OPENANGLEBRACKET", Be = "CLOSEANGLEBRACKET", Ve = "FULLWIDTHLEFTPAREN", Fe = "FULLWIDTHRIGHTPAREN", $e = "LEFTCORNERBRACKET", Ge = "RIGHTCORNERBRACKET", We = "LEFTWHITECORNERBRACKET", Ke = "RIGHTWHITECORNERBRACKET", Qe = "FULLWIDTHLESSTHAN", Ye = "FULLWIDTHGREATERTHAN", Xe = "AMPERSAND", Ze = "APOSTROPHE", Je = "ASTERISK", se = "AT", er = "BACKSLASH", rr = "BACKTICK", tr = "CARET", de = "COLON", Gr = "COMMA", ar = "DOLLAR", ee = "DOT", nr = "EQUALS", Wr = "EXCLAMATION", re = "HYPHEN", ir = "PERCENT", ur = "PIPE", sr = "PLUS", dr = "POUND", or = "QUERY", Kr = "QUOTE", Qr = "SEMI", te = "SLASH", ye = "TILDE", cr = "UNDERSCORE", Mt = "EMOJI", lr = "SYM";
838
- var Ut = /* @__PURE__ */ Object.freeze({
837
+ const I = (e, i, u, t, s) => e.ta(i, u, t, s), Y = (e, i, u, t, s) => e.tr(i, u, t, s), lt = (e, i, u, t, s) => e.ts(i, u, t, s), C = (e, i, u, t, s) => e.tt(i, u, t, s), ae = "WORD", Ir = "UWORD", ke = "LOCALHOST", Or = "TLD", Hr = "UTLD", Ne = "SCHEME", fe = "SLASH_SCHEME", Fr = "NUM", Mt = "WS", $r = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", Oe = "OPENBRACKET", He = "CLOSEBRACKET", xe = "OPENPAREN", Me = "CLOSEPAREN", Ue = "OPENANGLEBRACKET", Be = "CLOSEANGLEBRACKET", Ve = "FULLWIDTHLEFTPAREN", Fe = "FULLWIDTHRIGHTPAREN", $e = "LEFTCORNERBRACKET", Ge = "RIGHTCORNERBRACKET", We = "LEFTWHITECORNERBRACKET", Ke = "RIGHTWHITECORNERBRACKET", Qe = "FULLWIDTHLESSTHAN", Ye = "FULLWIDTHGREATERTHAN", Xe = "AMPERSAND", Ze = "APOSTROPHE", Je = "ASTERISK", se = "AT", er = "BACKSLASH", rr = "BACKTICK", tr = "CARET", de = "COLON", Gr = "COMMA", ar = "DOLLAR", ee = "DOT", nr = "EQUALS", Wr = "EXCLAMATION", re = "HYPHEN", ir = "PERCENT", ur = "PIPE", sr = "PLUS", dr = "POUND", or = "QUERY", Kr = "QUOTE", Qr = "SEMI", te = "SLASH", ye = "TILDE", cr = "UNDERSCORE", Ut = "EMOJI", lr = "SYM";
838
+ var Bt = /* @__PURE__ */ Object.freeze({
839
839
  __proto__: null,
840
840
  WORD: ae,
841
841
  UWORD: Ir,
@@ -845,7 +845,7 @@ var Ut = /* @__PURE__ */ Object.freeze({
845
845
  SCHEME: Ne,
846
846
  SLASH_SCHEME: fe,
847
847
  NUM: Fr,
848
- WS: xt,
848
+ WS: Mt,
849
849
  NL: $r,
850
850
  OPENBRACE: ve,
851
851
  CLOSEBRACE: we,
@@ -887,10 +887,10 @@ var Ut = /* @__PURE__ */ Object.freeze({
887
887
  SLASH: te,
888
888
  TILDE: ye,
889
889
  UNDERSCORE: cr,
890
- EMOJI: Mt,
890
+ EMOJI: Ut,
891
891
  SYM: lr
892
892
  });
893
- const le = /[a-z]/, kr = new RegExp("\\p{L}", "u"), Er = new RegExp("\\p{Emoji}", "u"), Tr = /\d/, lt = /\s/, ft = `
893
+ const le = /[a-z]/, kr = new RegExp("\\p{L}", "u"), Er = new RegExp("\\p{Emoji}", "u"), Tr = /\d/, ft = /\s/, pt = `
894
894
  `, on = "️", cn = "‍";
895
895
  let Le = null, qe = null;
896
896
  function ln(e) {
@@ -898,7 +898,7 @@ function ln(e) {
898
898
  const i = {};
899
899
  Q.groups = i;
900
900
  const u = new Q();
901
- Le == null && (Le = pt(tn)), qe == null && (qe = pt(an)), A(u, "'", Ze), A(u, "{", ve), A(u, "}", we), A(u, "[", Oe), A(u, "]", He), A(u, "(", xe), A(u, ")", Me), A(u, "<", Ue), A(u, ">", Be), A(u, "(", Ve), A(u, ")", Fe), A(u, "「", $e), A(u, "」", Ge), A(u, "『", We), A(u, "』", Ke), A(u, "<", Qe), A(u, ">", Ye), A(u, "&", Xe), A(u, "*", Je), A(u, "@", se), A(u, "`", rr), A(u, "^", tr), A(u, ":", de), A(u, ",", Gr), A(u, "$", ar), A(u, ".", ee), A(u, "=", nr), A(u, "!", Wr), A(u, "-", re), A(u, "%", ir), A(u, "|", ur), A(u, "+", sr), A(u, "#", dr), A(u, "?", or), A(u, '"', Kr), A(u, "/", te), A(u, ";", Qr), A(u, "~", ye), A(u, "_", cr), A(u, "\\", er);
901
+ Le == null && (Le = ht(tn)), qe == null && (qe = ht(an)), C(u, "'", Ze), C(u, "{", ve), C(u, "}", we), C(u, "[", Oe), C(u, "]", He), C(u, "(", xe), C(u, ")", Me), C(u, "<", Ue), C(u, ">", Be), C(u, "(", Ve), C(u, ")", Fe), C(u, "「", $e), C(u, "」", Ge), C(u, "『", We), C(u, "』", Ke), C(u, "<", Qe), C(u, ">", Ye), C(u, "&", Xe), C(u, "*", Je), C(u, "@", se), C(u, "`", rr), C(u, "^", tr), C(u, ":", de), C(u, ",", Gr), C(u, "$", ar), C(u, ".", ee), C(u, "=", nr), C(u, "!", Wr), C(u, "-", re), C(u, "%", ir), C(u, "|", ur), C(u, "+", sr), C(u, "#", dr), C(u, "?", or), C(u, '"', Kr), C(u, "/", te), C(u, ";", Qr), C(u, "~", ye), C(u, "_", cr), C(u, "\\", er);
902
902
  const t = Y(u, Tr, Fr, {
903
903
  [Rr]: !0
904
904
  });
@@ -911,30 +911,30 @@ function ln(e) {
911
911
  [Nr]: !0
912
912
  });
913
913
  Y(p, le), Y(p, kr, p);
914
- const g = Y(u, lt, xt, {
915
- [ot]: !0
914
+ const g = Y(u, ft, Mt, {
915
+ [ct]: !0
916
916
  });
917
- A(u, ft, $r, {
918
- [ot]: !0
919
- }), A(g, ft), Y(g, lt, g);
920
- const m = Y(u, Er, Mt, {
921
- [Ht]: !0
917
+ C(u, pt, $r, {
918
+ [ct]: !0
919
+ }), C(g, pt), Y(g, ft, g);
920
+ const m = Y(u, Er, Ut, {
921
+ [xt]: !0
922
922
  });
923
- Y(m, Er, m), A(m, on, m);
924
- const b = A(m, cn);
923
+ Y(m, Er, m), C(m, on, m);
924
+ const b = C(m, cn);
925
925
  Y(b, Er, m);
926
- const S = [[le, s]], q = [[le, null], [kr, p]];
926
+ const D = [[le, s]], T = [[le, null], [kr, p]];
927
927
  for (let E = 0; E < Le.length; E++)
928
- ne(u, Le[E], Or, ae, S);
928
+ ne(u, Le[E], Or, ae, D);
929
929
  for (let E = 0; E < qe.length; E++)
930
- ne(u, qe[E], Hr, Ir, q);
930
+ ne(u, qe[E], Hr, Ir, T);
931
931
  oe(Or, {
932
932
  tld: !0,
933
933
  ascii: !0
934
934
  }, i), oe(Hr, {
935
935
  utld: !0,
936
936
  alpha: !0
937
- }, i), ne(u, "file", Ne, ae, S), ne(u, "mailto", Ne, ae, S), ne(u, "http", fe, ae, S), ne(u, "https", fe, ae, S), ne(u, "ftp", fe, ae, S), ne(u, "ftps", fe, ae, S), oe(Ne, {
937
+ }, i), ne(u, "file", Ne, ae, D), ne(u, "mailto", Ne, 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(Ne, {
938
938
  scheme: !0,
939
939
  ascii: !0
940
940
  }, i), oe(fe, {
@@ -942,35 +942,35 @@ function ln(e) {
942
942
  ascii: !0
943
943
  }, i), e = e.sort((E, w) => E[0] > w[0] ? 1 : -1);
944
944
  for (let E = 0; E < e.length; E++) {
945
- const w = e[E][0], C = e[E][1] ? {
945
+ const w = e[E][0], L = e[E][1] ? {
946
946
  [nn]: !0
947
947
  } : {
948
948
  [un]: !0
949
949
  };
950
- w.indexOf("-") >= 0 ? C[jr] = !0 : le.test(w) ? Tr.test(w) ? C[ze] = !0 : C[zr] = !0 : C[Rr] = !0, ct(u, w, w, C);
950
+ w.indexOf("-") >= 0 ? L[jr] = !0 : le.test(w) ? Tr.test(w) ? L[ze] = !0 : L[zr] = !0 : L[Rr] = !0, lt(u, w, w, L);
951
951
  }
952
- return ct(u, "localhost", ke, {
952
+ return lt(u, "localhost", ke, {
953
953
  ascii: !0
954
954
  }), u.jd = new Q(lr), {
955
955
  start: u,
956
956
  tokens: pe({
957
957
  groups: i
958
- }, Ut)
958
+ }, Bt)
959
959
  };
960
960
  }
961
961
  function fn(e, i) {
962
962
  const u = pn(i.replace(/[A-Z]/g, (m) => m.toLowerCase())), t = u.length, s = [];
963
963
  let p = 0, g = 0;
964
964
  for (; g < t; ) {
965
- let m = e, b = null, S = 0, q = null, E = -1, w = -1;
965
+ let m = e, b = null, D = 0, T = null, E = -1, w = -1;
966
966
  for (; g < t && (b = m.go(u[g])); )
967
- m = b, m.accepts() ? (E = 0, w = 0, q = m) : E >= 0 && (E += u[g].length, w++), S += u[g].length, p += u[g].length, g++;
968
- p -= E, g -= w, S -= E, s.push({
969
- t: q.t,
967
+ m = b, m.accepts() ? (E = 0, w = 0, T = m) : E >= 0 && (E += u[g].length, w++), D += u[g].length, p += u[g].length, g++;
968
+ p -= E, g -= w, D -= E, s.push({
969
+ t: T.t,
970
970
  // token type/name
971
- v: i.slice(p - S, p),
971
+ v: i.slice(p - D, p),
972
972
  // string value
973
- s: p - S,
973
+ s: p - D,
974
974
  // start index
975
975
  e: p
976
976
  // end index (excluding)
@@ -996,7 +996,7 @@ function ne(e, i, u, t, s) {
996
996
  }
997
997
  return p = new Q(u), p.jr = s.slice(), e.j[i[g - 1]] = p, p;
998
998
  }
999
- function pt(e) {
999
+ function ht(e) {
1000
1000
  const i = [], u = [];
1001
1001
  let t = 0, s = "0123456789";
1002
1002
  for (; t < e.length; ) {
@@ -1016,8 +1016,8 @@ function pt(e) {
1016
1016
  const Ee = {
1017
1017
  defaultProtocol: "http",
1018
1018
  events: null,
1019
- format: ht,
1020
- formatHref: ht,
1019
+ format: gt,
1020
+ formatHref: gt,
1021
1021
  nl2br: !1,
1022
1022
  tagName: "a",
1023
1023
  target: null,
@@ -1100,13 +1100,13 @@ Yr.prototype = {
1100
1100
  return (this.get("render", null, e) || this.defaultRender)(i, e.t, e);
1101
1101
  }
1102
1102
  };
1103
- function ht(e) {
1103
+ function gt(e) {
1104
1104
  return e;
1105
1105
  }
1106
- function Bt(e, i) {
1106
+ function Vt(e, i) {
1107
1107
  this.t = "token", this.v = e, this.tk = i;
1108
1108
  }
1109
- Bt.prototype = {
1109
+ Vt.prototype = {
1110
1110
  isLink: !1,
1111
1111
  /**
1112
1112
  * Return the string this token represents.
@@ -1201,8 +1201,8 @@ Bt.prototype = {
1201
1201
  * @param {Options} options Formattinng options
1202
1202
  */
1203
1203
  render(e) {
1204
- const i = this, u = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", u, this), s = e.get("tagName", u, i), p = this.toFormattedString(e), g = {}, m = e.get("className", u, i), b = e.get("target", u, i), S = e.get("rel", u, i), q = e.getObj("attributes", u, i), E = e.getObj("events", u, i);
1205
- return g.href = t, m && (g.class = m), b && (g.target = b), S && (g.rel = S), q && pe(g, q), {
1204
+ const i = this, u = this.toHref(e.get("defaultProtocol")), t = e.get("formatHref", u, this), s = e.get("tagName", u, i), p = this.toFormattedString(e), g = {}, m = e.get("className", u, i), b = e.get("target", u, i), D = e.get("rel", u, i), T = e.getObj("attributes", u, i), E = e.getObj("events", u, i);
1205
+ return g.href = t, m && (g.class = m), b && (g.target = b), D && (g.rel = D), T && pe(g, T), {
1206
1206
  tagName: s,
1207
1207
  attributes: g,
1208
1208
  content: p,
@@ -1211,7 +1211,7 @@ Bt.prototype = {
1211
1211
  }
1212
1212
  };
1213
1213
  function hr(e, i) {
1214
- class u extends Bt {
1214
+ class u extends Vt {
1215
1215
  constructor(s, p) {
1216
1216
  super(s, p), this.t = e;
1217
1217
  }
@@ -1220,12 +1220,12 @@ function hr(e, i) {
1220
1220
  u.prototype[t] = i[t];
1221
1221
  return u.t = e, u;
1222
1222
  }
1223
- const gt = hr("email", {
1223
+ const mt = hr("email", {
1224
1224
  isLink: !0,
1225
1225
  toHref() {
1226
1226
  return "mailto:" + this.toString();
1227
1227
  }
1228
- }), mt = hr("text"), hn = hr("nl"), De = hr("url", {
1228
+ }), bt = hr("text"), hn = hr("nl"), De = hr("url", {
1229
1229
  isLink: !0,
1230
1230
  /**
1231
1231
  Lowercases relevant parts of the domain and adds the protocol if
@@ -1250,35 +1250,35 @@ function gn(e) {
1250
1250
  let {
1251
1251
  groups: i
1252
1252
  } = e;
1253
- const u = i.domain.concat([Xe, Je, se, er, rr, tr, ar, nr, re, Fr, ir, ur, sr, dr, te, lr, ye, cr]), t = [Ze, de, Gr, ee, Wr, or, Kr, Qr, Ue, Be, ve, we, He, Oe, xe, Me, Ve, Fe, $e, Ge, We, Ke, Qe, Ye], s = [Xe, Ze, Je, er, rr, tr, ar, nr, re, ve, we, ir, ur, sr, dr, or, te, lr, ye, cr], p = X(), g = A(p, ye);
1253
+ const u = i.domain.concat([Xe, Je, se, er, rr, tr, ar, nr, re, Fr, ir, ur, sr, dr, te, lr, ye, cr]), t = [Ze, de, Gr, ee, Wr, or, Kr, Qr, Ue, Be, ve, we, He, Oe, xe, Me, Ve, Fe, $e, Ge, We, Ke, Qe, Ye], s = [Xe, Ze, Je, er, rr, tr, ar, nr, re, ve, we, ir, ur, sr, dr, or, te, lr, ye, cr], p = X(), g = C(p, ye);
1254
1254
  I(g, s, g), I(g, i.domain, g);
1255
- const m = X(), b = X(), S = X();
1256
- I(p, i.domain, m), I(p, i.scheme, b), I(p, i.slashscheme, S), I(m, s, g), I(m, i.domain, m);
1257
- const q = A(m, se);
1258
- A(g, se, q), A(b, se, q), A(S, se, q);
1259
- const E = A(g, ee);
1255
+ const m = X(), b = X(), D = X();
1256
+ I(p, i.domain, m), I(p, i.scheme, b), I(p, i.slashscheme, D), I(m, s, g), I(m, i.domain, m);
1257
+ const T = C(m, se);
1258
+ C(g, se, T), C(b, se, T), C(D, se, T);
1259
+ const E = C(g, ee);
1260
1260
  I(E, s, g), I(E, i.domain, g);
1261
1261
  const w = X();
1262
- I(q, i.domain, w), I(w, i.domain, w);
1263
- const D = A(w, ee);
1264
- I(D, i.domain, w);
1265
- const C = X(gt);
1266
- I(D, i.tld, C), I(D, i.utld, C), A(q, ke, C);
1267
- const R = A(w, re);
1268
- I(R, i.domain, w), I(C, i.domain, w), A(C, ee, D), A(C, re, R);
1269
- const j = A(C, de);
1270
- I(j, i.numeric, gt);
1271
- const O = A(m, re), x = A(m, ee);
1272
- I(O, i.domain, m), I(x, s, g), I(x, i.domain, m);
1273
- const N = X(De);
1274
- I(x, i.tld, N), I(x, i.utld, N), I(N, i.domain, m), I(N, s, g), A(N, ee, x), A(N, re, O), A(N, se, q);
1275
- const r = A(N, de), n = X(De);
1262
+ I(T, i.domain, w), I(w, i.domain, w);
1263
+ const q = C(w, ee);
1264
+ I(q, i.domain, w);
1265
+ const L = X(mt);
1266
+ I(q, i.tld, L), I(q, i.utld, L), C(T, ke, L);
1267
+ const j = C(w, re);
1268
+ I(j, i.domain, w), I(L, i.domain, w), C(L, ee, q), C(L, re, j);
1269
+ const N = C(L, de);
1270
+ I(N, i.numeric, mt);
1271
+ const z = C(m, re), H = C(m, ee);
1272
+ I(z, i.domain, m), I(H, s, g), I(H, i.domain, m);
1273
+ const O = X(De);
1274
+ I(H, i.tld, O), I(H, i.utld, O), I(O, i.domain, m), I(O, s, g), C(O, ee, H), C(O, re, z), C(O, se, T);
1275
+ const r = C(O, de), n = X(De);
1276
1276
  I(r, i.numeric, n);
1277
1277
  const a = X(De), d = X();
1278
- I(a, u, a), I(a, t, d), I(d, u, a), I(d, t, d), A(N, te, a), A(n, te, a);
1279
- const o = A(b, de), f = A(S, de), l = A(f, te), h = A(l, te);
1280
- I(b, i.domain, m), A(b, ee, x), A(b, re, O), I(S, i.domain, m), A(S, ee, x), A(S, re, O), I(o, i.domain, a), A(o, te, a), I(h, i.domain, a), I(h, u, a), A(h, te, a);
1281
- const T = [
1278
+ I(a, u, a), I(a, t, d), I(d, u, a), I(d, t, d), C(O, te, a), C(n, te, a);
1279
+ const o = C(b, de), f = C(D, de), c = C(f, te), h = C(c, te);
1280
+ I(b, i.domain, m), C(b, ee, H), C(b, re, z), I(D, i.domain, m), C(D, ee, H), C(D, re, z), I(o, i.domain, a), C(o, te, a), I(h, i.domain, a), I(h, u, a), C(h, te, a);
1281
+ const A = [
1282
1282
  [ve, we],
1283
1283
  // {}
1284
1284
  [Oe, He],
@@ -1296,36 +1296,36 @@ function gn(e) {
1296
1296
  [Qe, Ye]
1297
1297
  // <>
1298
1298
  ];
1299
- for (let _ = 0; _ < T.length; _++) {
1300
- const [y, k] = T[_], c = A(a, y);
1301
- A(d, y, c), A(c, k, a);
1299
+ for (let _ = 0; _ < A.length; _++) {
1300
+ const [y, k] = A[_], l = C(a, y);
1301
+ C(d, y, l), C(l, k, a);
1302
1302
  const v = X(De);
1303
- I(c, u, v);
1304
- const L = X();
1305
- I(c, t), I(v, u, v), I(v, t, L), I(L, u, v), I(L, t, L), A(v, k, a), A(L, k, a);
1303
+ I(l, u, v);
1304
+ const S = X();
1305
+ I(l, t), I(v, u, v), I(v, t, S), I(S, u, v), I(S, t, S), C(v, k, a), C(S, k, a);
1306
1306
  }
1307
- return A(p, ke, N), A(p, $r, hn), {
1307
+ return C(p, ke, O), C(p, $r, hn), {
1308
1308
  start: p,
1309
- tokens: Ut
1309
+ tokens: Bt
1310
1310
  };
1311
1311
  }
1312
1312
  function mn(e, i, u) {
1313
1313
  let t = u.length, s = 0, p = [], g = [];
1314
1314
  for (; s < t; ) {
1315
- let m = e, b = null, S = null, q = 0, E = null, w = -1;
1315
+ let m = e, b = null, D = null, T = 0, E = null, w = -1;
1316
1316
  for (; s < t && !(b = m.go(u[s].t)); )
1317
1317
  g.push(u[s++]);
1318
- for (; s < t && (S = b || m.go(u[s].t)); )
1319
- b = null, m = S, m.accepts() ? (w = 0, E = m) : w >= 0 && w++, s++, q++;
1318
+ for (; s < t && (D = b || m.go(u[s].t)); )
1319
+ b = null, m = D, m.accepts() ? (w = 0, E = m) : w >= 0 && w++, s++, T++;
1320
1320
  if (w < 0)
1321
- s -= q, s < t && (g.push(u[s]), s++);
1321
+ s -= T, s < t && (g.push(u[s]), s++);
1322
1322
  else {
1323
- g.length > 0 && (p.push(Ar(mt, i, g)), g = []), s -= w, q -= w;
1324
- const D = E.t, C = u.slice(s - q, s);
1325
- p.push(Ar(D, i, C));
1323
+ g.length > 0 && (p.push(Ar(bt, i, g)), g = []), s -= w, T -= w;
1324
+ const q = E.t, L = u.slice(s - T, s);
1325
+ p.push(Ar(q, i, L));
1326
1326
  }
1327
1327
  }
1328
- return g.length > 0 && p.push(Ar(mt, i, g)), p;
1328
+ return g.length > 0 && p.push(Ar(bt, i, g)), p;
1329
1329
  }
1330
1330
  function Ar(e, i, u) {
1331
1331
  const t = u[0].s, s = u[u.length - 1].e, p = i.slice(t, s);
@@ -1388,7 +1388,7 @@ var wn = {
1388
1388
  function V(e) {
1389
1389
  return Tn.test(e);
1390
1390
  }
1391
- function bt(e) {
1391
+ function vt(e) {
1392
1392
  return An.test(e);
1393
1393
  }
1394
1394
  function Sn(e) {
@@ -1434,7 +1434,7 @@ var Ln = (
1434
1434
  ) : s === "/" ? this.transitionTo(
1435
1435
  "endTagOpen"
1436
1436
  /* endTagOpen */
1437
- ) : (s === "@" || s === ":" || bt(s)) && (this.transitionTo(
1437
+ ) : (s === "@" || s === ":" || vt(s)) && (this.transitionTo(
1438
1438
  "tagName"
1439
1439
  /* tagName */
1440
1440
  ), this.tagNameBuffer = "", this.delegate.beginStartTag(), this.appendToTagName(s));
@@ -1795,7 +1795,7 @@ var Ln = (
1795
1795
  },
1796
1796
  endTagOpen: function() {
1797
1797
  var s = this.consume();
1798
- (s === "@" || s === ":" || bt(s)) && (this.transitionTo(
1798
+ (s === "@" || s === ":" || vt(s)) && (this.transitionTo(
1799
1799
  "endTagName"
1800
1800
  /* endTagName */
1801
1801
  ), this.tagNameBuffer = "", this.delegate.beginEndTag(), this.appendToTagName(s));
@@ -1986,7 +1986,7 @@ function Dn(e, i) {
1986
1986
  var u = new qn(new En(wn), i);
1987
1987
  return u.tokenize(e);
1988
1988
  }
1989
- const Vt = "LinkifyResult", fr = "StartTag", Ft = "EndTag", xr = "Chars", Pn = "Comment", Rn = "Doctype";
1989
+ const Ft = "LinkifyResult", fr = "StartTag", $t = "EndTag", xr = "Chars", Pn = "Comment", Rn = "Doctype";
1990
1990
  function zn(e, i) {
1991
1991
  i === void 0 && (i = {});
1992
1992
  const u = Dn(e), t = [], s = [], p = new Yr(i, In);
@@ -1997,8 +1997,8 @@ function zn(e, i) {
1997
1997
  const b = m.tagName.toUpperCase();
1998
1998
  if (!(b === "A" || p.ignoreTags.indexOf(b) >= 0))
1999
1999
  continue;
2000
- let q = t.length;
2001
- jn(b, u, ++g, t), g += t.length - q - 1;
2000
+ let T = t.length;
2001
+ jn(b, u, ++g, t), g += t.length - T - 1;
2002
2002
  } else if (m.type !== xr)
2003
2003
  t.push(m);
2004
2004
  else {
@@ -2009,7 +2009,7 @@ function zn(e, i) {
2009
2009
  for (let g = 0; g < t.length; g++) {
2010
2010
  const m = t[g];
2011
2011
  switch (m.type) {
2012
- case Vt:
2012
+ case Ft:
2013
2013
  s.push(m.rendered);
2014
2014
  break;
2015
2015
  case fr: {
@@ -2017,7 +2017,7 @@ function zn(e, i) {
2017
2017
  m.attributes.length > 0 && (b += " " + Hn(m.attributes).join(" ")), m.selfClosing && (b += " /"), b += ">", s.push(b);
2018
2018
  break;
2019
2019
  }
2020
- case Ft:
2020
+ case $t:
2021
2021
  s.push(`</${m.tagName}>`);
2022
2022
  break;
2023
2023
  case xr:
@@ -2048,7 +2048,7 @@ function Nn(e, i) {
2048
2048
  type: xr,
2049
2049
  chars: p.toString()
2050
2050
  }) : t.push({
2051
- type: Vt,
2051
+ type: Ft,
2052
2052
  rendered: i.render(p)
2053
2053
  });
2054
2054
  }
@@ -2058,7 +2058,7 @@ function jn(e, i, u, t) {
2058
2058
  let s = 1;
2059
2059
  for (; u < i.length && s > 0; ) {
2060
2060
  let p = i[u];
2061
- p.type === fr && p.tagName.toUpperCase() === e ? s++ : p.type === Ft && p.tagName.toUpperCase() === e && s--, t.push(p), u++;
2061
+ p.type === fr && p.tagName.toUpperCase() === e ? s++ : p.type === $t && p.tagName.toUpperCase() === e && s--, t.push(p), u++;
2062
2062
  }
2063
2063
  return t;
2064
2064
  }
@@ -2073,14 +2073,14 @@ function In(e) {
2073
2073
  function Mr(e) {
2074
2074
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;");
2075
2075
  }
2076
- function $t(e) {
2076
+ function Gt(e) {
2077
2077
  return e.replace(/"/g, "&quot;");
2078
2078
  }
2079
2079
  function On(e) {
2080
2080
  const i = [];
2081
2081
  for (const u in e) {
2082
2082
  const t = e[u] + "";
2083
- i.push(`${u}="${$t(t)}"`);
2083
+ i.push(`${u}="${Gt(t)}"`);
2084
2084
  }
2085
2085
  return i.join(" ");
2086
2086
  }
@@ -2088,7 +2088,7 @@ function Hn(e) {
2088
2088
  const i = [];
2089
2089
  for (let u = 0; u < e.length; u++) {
2090
2090
  const t = e[u][0], s = e[u][1] + "";
2091
- i.push(`${t}="${$t(s)}"`);
2091
+ i.push(`${t}="${Gt(s)}"`);
2092
2092
  }
2093
2093
  return i;
2094
2094
  }
@@ -2123,7 +2123,7 @@ var he = je && je.__assign || function() {
2123
2123
  }, he.apply(this, arguments);
2124
2124
  };
2125
2125
  Object.defineProperty(gr, "__esModule", { value: !0 });
2126
- var _e = mr, Gt = Xr, Zr = ge, Jr = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), xn = {
2126
+ var _e = mr, Wt = Xr, Zr = ge, Jr = he(he({}, _e.namedReferences), { all: _e.namedReferences.html5 }), xn = {
2127
2127
  specialChars: /[<>'"&]/g,
2128
2128
  nonAscii: /(?:[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
2129
2129
  nonAsciiPrintable: /(?:[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,
@@ -2134,24 +2134,24 @@ var _e = mr, Gt = Xr, Zr = ge, Jr = he(he({}, _e.namedReferences), { all: _e.nam
2134
2134
  numeric: "decimal"
2135
2135
  };
2136
2136
  function Un(e, i) {
2137
- var q = i === void 0 ? Mn : i, E = q.mode, u = E === void 0 ? "specialChars" : E, t = q.numeric, s = t === void 0 ? "decimal" : t, p = q.level, g = p === void 0 ? "all" : p;
2137
+ var T = i === void 0 ? Mn : i, E = T.mode, u = E === void 0 ? "specialChars" : E, t = T.numeric, s = t === void 0 ? "decimal" : t, p = T.level, g = p === void 0 ? "all" : p;
2138
2138
  if (!e)
2139
2139
  return "";
2140
- var m = xn[u], b = Jr[g].characters, S = s === "hexadecimal";
2140
+ var m = xn[u], b = Jr[g].characters, D = s === "hexadecimal";
2141
2141
  m.lastIndex = 0;
2142
- var q = m.exec(e), E;
2143
- if (q) {
2142
+ var T = m.exec(e), E;
2143
+ if (T) {
2144
2144
  E = "";
2145
2145
  var t = 0;
2146
2146
  do {
2147
- t !== q.index && (E += e.substring(t, q.index));
2148
- var p = q[0], w = b[p];
2147
+ t !== T.index && (E += e.substring(t, T.index));
2148
+ var p = T[0], w = b[p];
2149
2149
  if (!w) {
2150
- var D = p.length > 1 ? Zr.getCodePoint(p, 0) : p.charCodeAt(0);
2151
- w = (S ? "&#x" + D.toString(16) : "&#" + D) + ";";
2150
+ var q = p.length > 1 ? Zr.getCodePoint(p, 0) : p.charCodeAt(0);
2151
+ w = (D ? "&#x" + q.toString(16) : "&#" + q) + ";";
2152
2152
  }
2153
- E += w, t = q.index + p.length;
2154
- } while (q = m.exec(e));
2153
+ E += w, t = T.index + p.length;
2154
+ } while (T = m.exec(e));
2155
2155
  t !== e.length && (E += e.substring(t));
2156
2156
  } else
2157
2157
  E = e;
@@ -2161,7 +2161,7 @@ gr.encode = Un;
2161
2161
  var Bn = {
2162
2162
  scope: "body",
2163
2163
  level: "all"
2164
- }, Cr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, vt = {
2164
+ }, Cr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g, Sr = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g, wt = {
2165
2165
  xml: {
2166
2166
  strict: Cr,
2167
2167
  attribute: Sr,
@@ -2177,7 +2177,7 @@ var Bn = {
2177
2177
  attribute: Sr,
2178
2178
  body: _e.bodyRegExps.html5
2179
2179
  }
2180
- }, Vn = he(he({}, vt), { all: vt.html5 }), et = String.fromCharCode, Wt = et(65533), Fn = {
2180
+ }, Vn = he(he({}, wt), { all: wt.html5 }), et = String.fromCharCode, Kt = et(65533), Fn = {
2181
2181
  level: "all"
2182
2182
  };
2183
2183
  function $n(e, i) {
@@ -2192,7 +2192,7 @@ function $n(e, i) {
2192
2192
  t = s;
2193
2193
  else if (e[0] === "&" && e[1] === "#") {
2194
2194
  var p = e[2], g = p == "x" || p == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
2195
- t = g >= 1114111 ? Wt : g > 65535 ? Zr.fromCodePoint(g) : et(Gt.numericUnicodeMap[g] || g);
2195
+ t = g >= 1114111 ? Kt : g > 65535 ? Zr.fromCodePoint(g) : et(Wt.numericUnicodeMap[g] || g);
2196
2196
  }
2197
2197
  }
2198
2198
  return t;
@@ -2202,36 +2202,36 @@ function Gn(e, i) {
2202
2202
  var u = i === void 0 ? Bn : i, t = u.level, s = t === void 0 ? "all" : t, p = u.scope, g = p === void 0 ? s === "xml" ? "strict" : "body" : p;
2203
2203
  if (!e)
2204
2204
  return "";
2205
- var m = Vn[s][g], b = Jr[s].entities, S = g === "attribute", q = g === "strict";
2205
+ var m = Vn[s][g], b = Jr[s].entities, D = g === "attribute", T = g === "strict";
2206
2206
  m.lastIndex = 0;
2207
2207
  var E = m.exec(e), w;
2208
2208
  if (E) {
2209
2209
  w = "";
2210
- var D = 0;
2210
+ var q = 0;
2211
2211
  do {
2212
- D !== E.index && (w += e.substring(D, E.index));
2213
- var C = E[0], R = C, j = C[C.length - 1];
2214
- if (S && j === "=")
2215
- R = C;
2216
- else if (q && j !== ";")
2217
- R = C;
2212
+ q !== E.index && (w += e.substring(q, E.index));
2213
+ var L = E[0], j = L, N = L[L.length - 1];
2214
+ if (D && N === "=")
2215
+ j = L;
2216
+ else if (T && N !== ";")
2217
+ j = L;
2218
2218
  else {
2219
- var O = b[C];
2220
- if (O)
2221
- R = O;
2222
- else if (C[0] === "&" && C[1] === "#") {
2223
- var x = C[2], N = x == "x" || x == "X" ? parseInt(C.substr(3), 16) : parseInt(C.substr(2));
2224
- R = N >= 1114111 ? Wt : N > 65535 ? Zr.fromCodePoint(N) : et(Gt.numericUnicodeMap[N] || N);
2219
+ var z = b[L];
2220
+ if (z)
2221
+ j = z;
2222
+ else if (L[0] === "&" && L[1] === "#") {
2223
+ var H = L[2], O = H == "x" || H == "X" ? parseInt(L.substr(3), 16) : parseInt(L.substr(2));
2224
+ j = O >= 1114111 ? Kt : O > 65535 ? Zr.fromCodePoint(O) : et(Wt.numericUnicodeMap[O] || O);
2225
2225
  }
2226
2226
  }
2227
- w += R, D = E.index + C.length;
2227
+ w += j, q = E.index + L.length;
2228
2228
  } while (E = m.exec(e));
2229
- D !== e.length && (w += e.substring(D));
2229
+ q !== e.length && (w += e.substring(q));
2230
2230
  } else
2231
2231
  w = e;
2232
2232
  return w;
2233
2233
  }
2234
- var Kt = gr.decode = Gn;
2234
+ var Qt = gr.decode = Gn;
2235
2235
  const Wn = {
2236
2236
  a: [
2237
2237
  "class",
@@ -2305,13 +2305,13 @@ const Wn = {
2305
2305
  sub: [],
2306
2306
  sup: [],
2307
2307
  strong: [],
2308
- table: ["width", "border", "align", "valign", "style", "class"],
2309
- tbody: ["align", "valign", "style", "class"],
2310
- td: ["width", "rowspan", "colspan", "align", "valign", "style", "class"],
2311
- tfoot: ["align", "valign", "style", "class"],
2312
- th: ["width", "rowspan", "colspan", "align", "valign", "style", "class"],
2313
- thead: ["align", "valign", "style", "class"],
2314
- tr: ["rowspan", "align", "valign", "style", "class"],
2308
+ table: ["width", "border", "style", "class"],
2309
+ tbody: ["align", "style", "class"],
2310
+ td: ["width", "rowspan", "colspan", "style", "class"],
2311
+ tfoot: ["align", "style", "class"],
2312
+ th: ["width", "rowspan", "colspan", "style", "class"],
2313
+ thead: ["align", "style", "class"],
2314
+ tr: ["rowspan", "style", "class"],
2315
2315
  tt: [],
2316
2316
  u: [],
2317
2317
  ul: ["style", "class"],
@@ -2340,7 +2340,7 @@ const Wn = {
2340
2340
  ], Xn = [
2341
2341
  "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
2342
2342
  `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${Kn}.min.css`
2343
- ], wt = "PRE", Zn = "CODE", Jn = [
2343
+ ], yt = "PRE", Zn = "CODE", Jn = [
2344
2344
  "javascript",
2345
2345
  "html",
2346
2346
  "css",
@@ -2350,7 +2350,7 @@ const Wn = {
2350
2350
  "php",
2351
2351
  "typescript"
2352
2352
  ];
2353
- var Qt = { exports: {} };
2353
+ var Yt = { exports: {} };
2354
2354
  (function(e) {
2355
2355
  (function() {
2356
2356
  function i(r) {
@@ -2619,7 +2619,7 @@ var Qt = { exports: {} };
2619
2619
  return p[r];
2620
2620
  } else {
2621
2621
  typeof n == "function" && (n = n()), t.helper.isArray(n) || (n = [n]);
2622
- var a = S(n, r);
2622
+ var a = D(n, r);
2623
2623
  if (a.valid)
2624
2624
  p[r] = n;
2625
2625
  else
@@ -2632,47 +2632,47 @@ var Qt = { exports: {} };
2632
2632
  }, t.resetExtensions = function() {
2633
2633
  p = {};
2634
2634
  };
2635
- function S(r, n) {
2635
+ function D(r, n) {
2636
2636
  var a = n ? "Error in " + n + " extension->" : "Error in unnamed extension", d = {
2637
2637
  valid: !0,
2638
2638
  error: ""
2639
2639
  };
2640
2640
  t.helper.isArray(r) || (r = [r]);
2641
2641
  for (var o = 0; o < r.length; ++o) {
2642
- var f = a + " sub-extension " + o + ": ", l = r[o];
2643
- if (typeof l != "object")
2644
- return d.valid = !1, d.error = f + "must be an object, but " + typeof l + " given", d;
2645
- if (!t.helper.isString(l.type))
2646
- return d.valid = !1, d.error = f + 'property "type" must be a string, but ' + typeof l.type + " given", d;
2647
- var h = l.type = l.type.toLowerCase();
2648
- if (h === "language" && (h = l.type = "lang"), h === "html" && (h = l.type = "output"), h !== "lang" && h !== "output" && h !== "listener")
2642
+ var f = a + " sub-extension " + o + ": ", c = r[o];
2643
+ if (typeof c != "object")
2644
+ return d.valid = !1, d.error = f + "must be an object, but " + typeof c + " given", d;
2645
+ if (!t.helper.isString(c.type))
2646
+ return d.valid = !1, d.error = f + 'property "type" must be a string, but ' + typeof c.type + " given", d;
2647
+ var h = c.type = c.type.toLowerCase();
2648
+ if (h === "language" && (h = c.type = "lang"), h === "html" && (h = c.type = "output"), h !== "lang" && h !== "output" && h !== "listener")
2649
2649
  return d.valid = !1, d.error = f + "type " + h + ' is not recognized. Valid values: "lang/language", "output/html" or "listener"', d;
2650
2650
  if (h === "listener") {
2651
- if (t.helper.isUndefined(l.listeners))
2651
+ if (t.helper.isUndefined(c.listeners))
2652
2652
  return d.valid = !1, d.error = f + '. Extensions of type "listener" must have a property called "listeners"', d;
2653
- } else if (t.helper.isUndefined(l.filter) && t.helper.isUndefined(l.regex))
2653
+ } else if (t.helper.isUndefined(c.filter) && t.helper.isUndefined(c.regex))
2654
2654
  return d.valid = !1, d.error = f + h + ' extensions must define either a "regex" property or a "filter" method', d;
2655
- if (l.listeners) {
2656
- if (typeof l.listeners != "object")
2657
- return d.valid = !1, d.error = f + '"listeners" property must be an object but ' + typeof l.listeners + " given", d;
2658
- for (var T in l.listeners)
2659
- if (l.listeners.hasOwnProperty(T) && typeof l.listeners[T] != "function")
2660
- 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 l.listeners[T] + " given", d;
2655
+ if (c.listeners) {
2656
+ if (typeof c.listeners != "object")
2657
+ return d.valid = !1, d.error = f + '"listeners" property must be an object but ' + typeof c.listeners + " given", d;
2658
+ for (var A in c.listeners)
2659
+ if (c.listeners.hasOwnProperty(A) && typeof c.listeners[A] != "function")
2660
+ return d.valid = !1, d.error = f + '"listeners" property must be an hash of [event name]: [callback]. listeners.' + A + " must be a function but " + typeof c.listeners[A] + " given", d;
2661
2661
  }
2662
- if (l.filter) {
2663
- if (typeof l.filter != "function")
2664
- return d.valid = !1, d.error = f + '"filter" must be a function, but ' + typeof l.filter + " given", d;
2665
- } else if (l.regex) {
2666
- if (t.helper.isString(l.regex) && (l.regex = new RegExp(l.regex, "g")), !(l.regex instanceof RegExp))
2667
- return d.valid = !1, d.error = f + '"regex" property must either be a string or a RegExp object, but ' + typeof l.regex + " given", d;
2668
- if (t.helper.isUndefined(l.replace))
2662
+ if (c.filter) {
2663
+ if (typeof c.filter != "function")
2664
+ return d.valid = !1, d.error = f + '"filter" must be a function, but ' + typeof c.filter + " given", d;
2665
+ } else if (c.regex) {
2666
+ if (t.helper.isString(c.regex) && (c.regex = new RegExp(c.regex, "g")), !(c.regex instanceof RegExp))
2667
+ return d.valid = !1, d.error = f + '"regex" property must either be a string or a RegExp object, but ' + typeof c.regex + " given", d;
2668
+ if (t.helper.isUndefined(c.replace))
2669
2669
  return d.valid = !1, d.error = f + '"regex" extensions must implement a replace string or function', d;
2670
2670
  }
2671
2671
  }
2672
2672
  return d;
2673
2673
  }
2674
2674
  t.validateExtension = function(r) {
2675
- var n = S(r, null);
2675
+ var n = D(r, null);
2676
2676
  return n.valid ? !0 : (console.warn(n.error), !1);
2677
2677
  }, t.hasOwnProperty("helper") || (t.helper = {}), t.helper.isString = function(r) {
2678
2678
  return typeof r == "string" || r instanceof String;
@@ -2703,45 +2703,45 @@ var Qt = { exports: {} };
2703
2703
  }, t.helper.stdExtName = function(r) {
2704
2704
  return r.replace(/[_?*+\/\\.^-]/g, "").replace(/\s/g, "").toLowerCase();
2705
2705
  };
2706
- function q(r, n) {
2706
+ function T(r, n) {
2707
2707
  var a = n.charCodeAt(0);
2708
2708
  return "¨E" + a + "E";
2709
2709
  }
2710
- t.helper.escapeCharactersCallback = q, t.helper.escapeCharacters = function(r, n, a) {
2710
+ t.helper.escapeCharactersCallback = T, t.helper.escapeCharacters = function(r, n, a) {
2711
2711
  var d = "([" + n.replace(/([\[\]\\])/g, "\\$1") + "])";
2712
2712
  a && (d = "\\\\" + d);
2713
2713
  var o = new RegExp(d, "g");
2714
- return r = r.replace(o, q), r;
2714
+ return r = r.replace(o, T), r;
2715
2715
  }, t.helper.unescapeHTMLEntities = function(r) {
2716
2716
  return r.replace(/&quot;/g, '"').replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&");
2717
2717
  };
2718
2718
  var E = function(r, n, a, d) {
2719
- var o = d || "", f = o.indexOf("g") > -1, l = new RegExp(n + "|" + a, "g" + o.replace(/g/g, "")), h = new RegExp(n, o.replace(/g/g, "")), T = [], _, y, k, c, v;
2719
+ var o = d || "", f = o.indexOf("g") > -1, c = new RegExp(n + "|" + a, "g" + o.replace(/g/g, "")), h = new RegExp(n, o.replace(/g/g, "")), A = [], _, y, k, l, v;
2720
2720
  do
2721
- for (_ = 0; k = l.exec(r); )
2721
+ for (_ = 0; k = c.exec(r); )
2722
2722
  if (h.test(k[0]))
2723
- _++ || (y = l.lastIndex, c = y - k[0].length);
2723
+ _++ || (y = c.lastIndex, l = y - k[0].length);
2724
2724
  else if (_ && !--_) {
2725
2725
  v = k.index + k[0].length;
2726
- var L = {
2727
- left: { start: c, end: y },
2726
+ var S = {
2727
+ left: { start: l, end: y },
2728
2728
  match: { start: y, end: k.index },
2729
2729
  right: { start: k.index, end: v },
2730
- wholeMatch: { start: c, end: v }
2730
+ wholeMatch: { start: l, end: v }
2731
2731
  };
2732
- if (T.push(L), !f)
2733
- return T;
2732
+ if (A.push(S), !f)
2733
+ return A;
2734
2734
  }
2735
- while (_ && (l.lastIndex = y));
2736
- return T;
2735
+ while (_ && (c.lastIndex = y));
2736
+ return A;
2737
2737
  };
2738
2738
  t.helper.matchRecursiveRegExp = function(r, n, a, d) {
2739
- for (var o = E(r, n, a, d), f = [], l = 0; l < o.length; ++l)
2739
+ for (var o = E(r, n, a, d), f = [], c = 0; c < o.length; ++c)
2740
2740
  f.push([
2741
- r.slice(o[l].wholeMatch.start, o[l].wholeMatch.end),
2742
- r.slice(o[l].match.start, o[l].match.end),
2743
- r.slice(o[l].left.start, o[l].left.end),
2744
- r.slice(o[l].right.start, o[l].right.end)
2741
+ r.slice(o[c].wholeMatch.start, o[c].wholeMatch.end),
2742
+ r.slice(o[c].match.start, o[c].match.end),
2743
+ r.slice(o[c].left.start, o[c].left.end),
2744
+ r.slice(o[c].right.start, o[c].right.end)
2745
2745
  ]);
2746
2746
  return f;
2747
2747
  }, t.helper.replaceRecursiveRegExp = function(r, n, a, d, o) {
@@ -2751,20 +2751,20 @@ var Qt = { exports: {} };
2751
2751
  return f;
2752
2752
  };
2753
2753
  }
2754
- var l = E(r, a, d, o), h = r, T = l.length;
2755
- if (T > 0) {
2754
+ var c = E(r, a, d, o), h = r, A = c.length;
2755
+ if (A > 0) {
2756
2756
  var _ = [];
2757
- l[0].wholeMatch.start !== 0 && _.push(r.slice(0, l[0].wholeMatch.start));
2758
- for (var y = 0; y < T; ++y)
2757
+ c[0].wholeMatch.start !== 0 && _.push(r.slice(0, c[0].wholeMatch.start));
2758
+ for (var y = 0; y < A; ++y)
2759
2759
  _.push(
2760
2760
  n(
2761
- r.slice(l[y].wholeMatch.start, l[y].wholeMatch.end),
2762
- r.slice(l[y].match.start, l[y].match.end),
2763
- r.slice(l[y].left.start, l[y].left.end),
2764
- r.slice(l[y].right.start, l[y].right.end)
2761
+ r.slice(c[y].wholeMatch.start, c[y].wholeMatch.end),
2762
+ r.slice(c[y].match.start, c[y].match.end),
2763
+ r.slice(c[y].left.start, c[y].left.end),
2764
+ r.slice(c[y].right.start, c[y].right.end)
2765
2765
  )
2766
- ), y < T - 1 && _.push(r.slice(l[y].wholeMatch.end, l[y + 1].wholeMatch.start));
2767
- l[T - 1].wholeMatch.end < r.length && _.push(r.slice(l[T - 1].wholeMatch.end)), h = _.join("");
2766
+ ), y < A - 1 && _.push(r.slice(c[y].wholeMatch.end, c[y + 1].wholeMatch.start));
2767
+ c[A - 1].wholeMatch.end < r.length && _.push(r.slice(c[A - 1].wholeMatch.end)), h = _.join("");
2768
2768
  }
2769
2769
  return h;
2770
2770
  }, t.helper.regexIndexOf = function(r, n, a) {
@@ -3991,7 +3991,7 @@ var Qt = { exports: {} };
3991
3991
  octocat: '<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',
3992
3992
  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>`
3993
3993
  }, t.Converter = function(r) {
3994
- var n = {}, a = [], d = [], o = {}, f = m, l = {
3994
+ var n = {}, a = [], d = [], o = {}, f = m, c = {
3995
3995
  parsed: {},
3996
3996
  raw: "",
3997
3997
  format: ""
@@ -3999,82 +3999,82 @@ var Qt = { exports: {} };
3999
3999
  h();
4000
4000
  function h() {
4001
4001
  r = r || {};
4002
- for (var c in g)
4003
- g.hasOwnProperty(c) && (n[c] = g[c]);
4002
+ for (var l in g)
4003
+ g.hasOwnProperty(l) && (n[l] = g[l]);
4004
4004
  if (typeof r == "object")
4005
4005
  for (var v in r)
4006
4006
  r.hasOwnProperty(v) && (n[v] = r[v]);
4007
4007
  else
4008
4008
  throw Error("Converter expects the passed parameter to be an object, but " + typeof r + " was passed instead.");
4009
- n.extensions && t.helper.forEach(n.extensions, T);
4009
+ n.extensions && t.helper.forEach(n.extensions, A);
4010
4010
  }
4011
- function T(c, v) {
4012
- if (v = v || null, t.helper.isString(c))
4013
- if (c = t.helper.stdExtName(c), v = c, t.extensions[c]) {
4014
- console.warn("DEPRECATION WARNING: " + c + " is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"), _(t.extensions[c], c);
4011
+ function A(l, v) {
4012
+ if (v = v || null, t.helper.isString(l))
4013
+ if (l = t.helper.stdExtName(l), v = l, t.extensions[l]) {
4014
+ 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);
4015
4015
  return;
4016
- } else if (!t.helper.isUndefined(p[c]))
4017
- c = p[c];
4016
+ } else if (!t.helper.isUndefined(p[l]))
4017
+ l = p[l];
4018
4018
  else
4019
- throw Error('Extension "' + c + '" could not be loaded. It was either not found or is not a valid extension.');
4020
- typeof c == "function" && (c = c()), t.helper.isArray(c) || (c = [c]);
4021
- var L = S(c, v);
4022
- if (!L.valid)
4023
- throw Error(L.error);
4024
- for (var P = 0; P < c.length; ++P) {
4025
- switch (c[P].type) {
4019
+ throw Error('Extension "' + l + '" could not be loaded. It was either not found or is not a valid extension.');
4020
+ typeof l == "function" && (l = l()), t.helper.isArray(l) || (l = [l]);
4021
+ var S = D(l, v);
4022
+ if (!S.valid)
4023
+ throw Error(S.error);
4024
+ for (var P = 0; P < l.length; ++P) {
4025
+ switch (l[P].type) {
4026
4026
  case "lang":
4027
- a.push(c[P]);
4027
+ a.push(l[P]);
4028
4028
  break;
4029
4029
  case "output":
4030
- d.push(c[P]);
4030
+ d.push(l[P]);
4031
4031
  break;
4032
4032
  }
4033
- if (c[P].hasOwnProperty("listeners"))
4034
- for (var H in c[P].listeners)
4035
- c[P].listeners.hasOwnProperty(H) && y(H, c[P].listeners[H]);
4033
+ if (l[P].hasOwnProperty("listeners"))
4034
+ for (var x in l[P].listeners)
4035
+ l[P].listeners.hasOwnProperty(x) && y(x, l[P].listeners[x]);
4036
4036
  }
4037
4037
  }
4038
- function _(c, v) {
4039
- typeof c == "function" && (c = c(new t.Converter())), t.helper.isArray(c) || (c = [c]);
4040
- var L = S(c, v);
4041
- if (!L.valid)
4042
- throw Error(L.error);
4043
- for (var P = 0; P < c.length; ++P)
4044
- switch (c[P].type) {
4038
+ function _(l, v) {
4039
+ typeof l == "function" && (l = l(new t.Converter())), t.helper.isArray(l) || (l = [l]);
4040
+ var S = D(l, v);
4041
+ if (!S.valid)
4042
+ throw Error(S.error);
4043
+ for (var P = 0; P < l.length; ++P)
4044
+ switch (l[P].type) {
4045
4045
  case "lang":
4046
- a.push(c[P]);
4046
+ a.push(l[P]);
4047
4047
  break;
4048
4048
  case "output":
4049
- d.push(c[P]);
4049
+ d.push(l[P]);
4050
4050
  break;
4051
4051
  default:
4052
4052
  throw Error("Extension loader error: Type unrecognized!!!");
4053
4053
  }
4054
4054
  }
4055
- function y(c, v) {
4056
- if (!t.helper.isString(c))
4057
- throw Error("Invalid argument in converter.listen() method: name must be a string, but " + typeof c + " given");
4055
+ function y(l, v) {
4056
+ if (!t.helper.isString(l))
4057
+ throw Error("Invalid argument in converter.listen() method: name must be a string, but " + typeof l + " given");
4058
4058
  if (typeof v != "function")
4059
4059
  throw Error("Invalid argument in converter.listen() method: callback must be a function, but " + typeof v + " given");
4060
- o.hasOwnProperty(c) || (o[c] = []), o[c].push(v);
4060
+ o.hasOwnProperty(l) || (o[l] = []), o[l].push(v);
4061
4061
  }
4062
- function k(c) {
4063
- var v = c.match(/^\s*/)[0].length, L = new RegExp("^\\s{0," + v + "}", "gm");
4064
- return c.replace(L, "");
4062
+ function k(l) {
4063
+ var v = l.match(/^\s*/)[0].length, S = new RegExp("^\\s{0," + v + "}", "gm");
4064
+ return l.replace(S, "");
4065
4065
  }
4066
- this._dispatch = function(v, L, P, H) {
4066
+ this._dispatch = function(v, S, P, x) {
4067
4067
  if (o.hasOwnProperty(v))
4068
- for (var z = 0; z < o[v].length; ++z) {
4069
- var B = o[v][z](v, L, this, P, H);
4070
- B && typeof B < "u" && (L = B);
4068
+ for (var R = 0; R < o[v].length; ++R) {
4069
+ var B = o[v][R](v, S, this, P, x);
4070
+ B && typeof B < "u" && (S = B);
4071
4071
  }
4072
- return L;
4073
- }, this.listen = function(c, v) {
4074
- return y(c, v), this;
4075
- }, this.makeHtml = function(c) {
4076
- if (!c)
4077
- return c;
4072
+ return S;
4073
+ }, this.listen = function(l, v) {
4074
+ return y(l, v), this;
4075
+ }, this.makeHtml = function(l) {
4076
+ if (!l)
4077
+ return l;
4078
4078
  var v = {
4079
4079
  gHtmlBlocks: [],
4080
4080
  gHtmlMdBlocks: [],
@@ -4094,33 +4094,33 @@ var Qt = { exports: {} };
4094
4094
  format: ""
4095
4095
  }
4096
4096
  };
4097
- return c = c.replace(/¨/g, "¨T"), c = c.replace(/\$/g, "¨D"), c = c.replace(/\r\n/g, `
4098
- `), c = c.replace(/\r/g, `
4099
- `), c = c.replace(/\u00A0/g, "&nbsp;"), n.smartIndentationFix && (c = k(c)), c = `
4097
+ return l = l.replace(/¨/g, "¨T"), l = l.replace(/\$/g, "¨D"), l = l.replace(/\r\n/g, `
4098
+ `), l = l.replace(/\r/g, `
4099
+ `), l = l.replace(/\u00A0/g, "&nbsp;"), n.smartIndentationFix && (l = k(l)), l = `
4100
4100
 
4101
- ` + c + `
4101
+ ` + l + `
4102
4102
 
4103
- `, c = t.subParser("detab")(c, n, v), c = c.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(L) {
4104
- c = t.subParser("runExtension")(L, c, n, v);
4105
- }), c = t.subParser("metadata")(c, n, v), c = t.subParser("hashPreCodeTags")(c, n, v), c = t.subParser("githubCodeBlocks")(c, n, v), c = t.subParser("hashHTMLBlocks")(c, n, v), c = t.subParser("hashCodeTags")(c, n, v), c = t.subParser("stripLinkDefinitions")(c, n, v), c = t.subParser("blockGamut")(c, n, v), c = t.subParser("unhashHTMLSpans")(c, n, v), c = t.subParser("unescapeSpecialChars")(c, n, v), c = c.replace(/¨D/g, "$$"), c = c.replace(/¨T/g, "¨"), c = t.subParser("completeHTMLDocument")(c, n, v), t.helper.forEach(d, function(L) {
4106
- c = t.subParser("runExtension")(L, c, n, v);
4107
- }), l = v.metadata, c;
4108
- }, this.makeMarkdown = this.makeMd = function(c, v) {
4109
- if (c = c.replace(/\r\n/g, `
4110
- `), c = c.replace(/\r/g, `
4111
- `), c = c.replace(/>[ \t]+</, ">¨NBSP;<"), !v)
4103
+ `, l = t.subParser("detab")(l, n, v), l = l.replace(/^[ \t]+$/mg, ""), t.helper.forEach(a, function(S) {
4104
+ l = t.subParser("runExtension")(S, l, n, v);
4105
+ }), l = t.subParser("metadata")(l, n, v), l = t.subParser("hashPreCodeTags")(l, n, v), l = t.subParser("githubCodeBlocks")(l, n, v), l = t.subParser("hashHTMLBlocks")(l, n, v), l = t.subParser("hashCodeTags")(l, n, v), l = t.subParser("stripLinkDefinitions")(l, n, v), l = t.subParser("blockGamut")(l, n, v), l = t.subParser("unhashHTMLSpans")(l, n, v), l = t.subParser("unescapeSpecialChars")(l, n, v), l = l.replace(/¨D/g, "$$"), l = l.replace(/¨T/g, "¨"), l = t.subParser("completeHTMLDocument")(l, n, v), t.helper.forEach(d, function(S) {
4106
+ l = t.subParser("runExtension")(S, l, n, v);
4107
+ }), c = v.metadata, l;
4108
+ }, this.makeMarkdown = this.makeMd = function(l, v) {
4109
+ if (l = l.replace(/\r\n/g, `
4110
+ `), l = l.replace(/\r/g, `
4111
+ `), l = l.replace(/>[ \t]+</, ">¨NBSP;<"), !v)
4112
4112
  if (window && window.document)
4113
4113
  v = window.document;
4114
4114
  else
4115
4115
  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");
4116
- var L = v.createElement("div");
4117
- L.innerHTML = c;
4116
+ var S = v.createElement("div");
4117
+ S.innerHTML = l;
4118
4118
  var P = {
4119
- preList: J(L)
4119
+ preList: J(S)
4120
4120
  };
4121
- G(L);
4122
- for (var H = L.childNodes, z = "", B = 0; B < H.length; B++)
4123
- z += t.subParser("makeMarkdown.node")(H[B], P);
4121
+ G(S);
4122
+ for (var x = S.childNodes, R = "", B = 0; B < x.length; B++)
4123
+ R += t.subParser("makeMarkdown.node")(x[B], P);
4124
4124
  function G(U) {
4125
4125
  for (var F = 0; F < U.childNodes.length; ++F) {
4126
4126
  var W = U.childNodes[F];
@@ -4145,58 +4145,58 @@ var Qt = { exports: {} };
4145
4145
  W.push(F[K].innerHTML), F[K].innerHTML = "", F[K].setAttribute("prenum", K.toString());
4146
4146
  return W;
4147
4147
  }
4148
- return z;
4149
- }, this.setOption = function(c, v) {
4150
- n[c] = v;
4151
- }, this.getOption = function(c) {
4152
- return n[c];
4148
+ return R;
4149
+ }, this.setOption = function(l, v) {
4150
+ n[l] = v;
4151
+ }, this.getOption = function(l) {
4152
+ return n[l];
4153
4153
  }, this.getOptions = function() {
4154
4154
  return n;
4155
- }, this.addExtension = function(c, v) {
4156
- v = v || null, T(c, v);
4157
- }, this.useExtension = function(c) {
4158
- T(c);
4159
- }, this.setFlavor = function(c) {
4160
- if (!b.hasOwnProperty(c))
4161
- throw Error(c + " flavor was not found");
4162
- var v = b[c];
4163
- f = c;
4164
- for (var L in v)
4165
- v.hasOwnProperty(L) && (n[L] = v[L]);
4155
+ }, this.addExtension = function(l, v) {
4156
+ v = v || null, A(l, v);
4157
+ }, this.useExtension = function(l) {
4158
+ A(l);
4159
+ }, this.setFlavor = function(l) {
4160
+ if (!b.hasOwnProperty(l))
4161
+ throw Error(l + " flavor was not found");
4162
+ var v = b[l];
4163
+ f = l;
4164
+ for (var S in v)
4165
+ v.hasOwnProperty(S) && (n[S] = v[S]);
4166
4166
  }, this.getFlavor = function() {
4167
4167
  return f;
4168
- }, this.removeExtension = function(c) {
4169
- t.helper.isArray(c) || (c = [c]);
4170
- for (var v = 0; v < c.length; ++v) {
4171
- for (var L = c[v], P = 0; P < a.length; ++P)
4172
- a[P] === L && a.splice(P, 1);
4173
- for (var H = 0; H < d.length; ++H)
4174
- d[H] === L && d.splice(H, 1);
4168
+ }, this.removeExtension = function(l) {
4169
+ t.helper.isArray(l) || (l = [l]);
4170
+ for (var v = 0; v < l.length; ++v) {
4171
+ for (var S = l[v], P = 0; P < a.length; ++P)
4172
+ a[P] === S && a.splice(P, 1);
4173
+ for (var x = 0; x < d.length; ++x)
4174
+ d[x] === S && d.splice(x, 1);
4175
4175
  }
4176
4176
  }, this.getAllExtensions = function() {
4177
4177
  return {
4178
4178
  language: a,
4179
4179
  output: d
4180
4180
  };
4181
- }, this.getMetadata = function(c) {
4182
- return c ? l.raw : l.parsed;
4181
+ }, this.getMetadata = function(l) {
4182
+ return l ? c.raw : c.parsed;
4183
4183
  }, this.getMetadataFormat = function() {
4184
- return l.format;
4185
- }, this._setMetadataPair = function(c, v) {
4186
- l.parsed[c] = v;
4187
- }, this._setMetadataFormat = function(c) {
4188
- l.format = c;
4189
- }, this._setMetadataRaw = function(c) {
4190
- l.raw = c;
4184
+ return c.format;
4185
+ }, this._setMetadataPair = function(l, v) {
4186
+ c.parsed[l] = v;
4187
+ }, this._setMetadataFormat = function(l) {
4188
+ c.format = l;
4189
+ }, this._setMetadataRaw = function(l) {
4190
+ c.raw = l;
4191
4191
  };
4192
4192
  }, t.subParser("anchors", function(r, n, a) {
4193
4193
  r = a.converter._dispatch("anchors.before", r, n, a);
4194
- var d = function(o, f, l, h, T, _, y) {
4195
- if (t.helper.isUndefined(y) && (y = ""), l = l.toLowerCase(), o.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4194
+ var d = function(o, f, c, h, A, _, y) {
4195
+ if (t.helper.isUndefined(y) && (y = ""), c = c.toLowerCase(), o.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4196
4196
  h = "";
4197
4197
  else if (!h)
4198
- if (l || (l = f.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + l, !t.helper.isUndefined(a.gUrls[l]))
4199
- h = a.gUrls[l], t.helper.isUndefined(a.gTitles[l]) || (y = a.gTitles[l]);
4198
+ if (c || (c = f.toLowerCase().replace(/ ?\n/g, " ")), h = "#" + c, !t.helper.isUndefined(a.gUrls[c]))
4199
+ h = a.gUrls[c], t.helper.isUndefined(a.gTitles[c]) || (y = a.gTitles[c]);
4200
4200
  else
4201
4201
  return o;
4202
4202
  h = h.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
@@ -4209,31 +4209,31 @@ var Qt = { exports: {} };
4209
4209
  ), r = r.replace(
4210
4210
  /\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,
4211
4211
  d
4212
- ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), n.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(o, f, l, h, T) {
4213
- if (l === "\\")
4212
+ ), r = r.replace(/\[([^\[\]]+)]()()()()()/g, d), n.ghMentions && (r = r.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi, function(o, f, c, h, A) {
4213
+ if (c === "\\")
4214
4214
  return f + h;
4215
4215
  if (!t.helper.isString(n.ghMentionsLink))
4216
4216
  throw new Error("ghMentionsLink option must be a string");
4217
- var _ = n.ghMentionsLink.replace(/\{u}/g, T), y = "";
4217
+ var _ = n.ghMentionsLink.replace(/\{u}/g, A), y = "";
4218
4218
  return n.openLinksInNewWindow && (y = ' rel="noopener noreferrer" target="¨E95Eblank"'), f + '<a href="' + _ + '"' + y + ">" + h + "</a>";
4219
4219
  })), r = a.converter._dispatch("anchors.after", r, n, a), r;
4220
4220
  });
4221
- var w = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi, D = /([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi, C = /()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi, R = /(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi, j = /<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, O = function(r) {
4222
- return function(n, a, d, o, f, l, h) {
4221
+ var w = /([*~_]+|\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, j = /(^|\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, z = function(r) {
4222
+ return function(n, a, d, o, f, c, h) {
4223
4223
  d = d.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4224
- var T = d, _ = "", y = "", k = a || "", c = h || "";
4225
- return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && l && (_ = l), r.openLinksInNewWindow && (y = ' rel="noopener noreferrer" target="¨E95Eblank"'), k + '<a href="' + d + '"' + y + ">" + T + "</a>" + _ + c;
4224
+ var A = d, _ = "", y = "", k = a || "", l = h || "";
4225
+ return /^www\./i.test(d) && (d = d.replace(/^www\./i, "http://www.")), r.excludeTrailingPunctuationFromURLs && c && (_ = c), r.openLinksInNewWindow && (y = ' rel="noopener noreferrer" target="¨E95Eblank"'), k + '<a href="' + d + '"' + y + ">" + A + "</a>" + _ + l;
4226
4226
  };
4227
- }, x = function(r, n) {
4227
+ }, H = function(r, n) {
4228
4228
  return function(a, d, o) {
4229
4229
  var f = "mailto:";
4230
4230
  return d = d || "", o = t.subParser("unescapeSpecialChars")(o, r, n), r.encodeEmails ? (f = t.helper.encodeEmailAddress(f + o), o = t.helper.encodeEmailAddress(o)) : f = f + o, d + '<a href="' + f + '">' + o + "</a>";
4231
4231
  };
4232
4232
  };
4233
4233
  t.subParser("autoLinks", function(r, n, a) {
4234
- return r = a.converter._dispatch("autoLinks.before", r, n, a), r = r.replace(C, O(n)), r = r.replace(j, x(n, a)), r = a.converter._dispatch("autoLinks.after", r, n, a), r;
4234
+ return r = a.converter._dispatch("autoLinks.before", r, n, a), r = r.replace(L, z(n)), r = r.replace(N, H(n, a)), r = a.converter._dispatch("autoLinks.after", r, n, a), r;
4235
4235
  }), t.subParser("simplifiedAutoLinks", function(r, n, a) {
4236
- return n.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, n, a), n.excludeTrailingPunctuationFromURLs ? r = r.replace(D, O(n)) : r = r.replace(w, O(n)), r = r.replace(R, x(n, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, n, a)), r;
4236
+ return n.simplifiedAutoLink && (r = a.converter._dispatch("simplifiedAutoLinks.before", r, n, a), n.excludeTrailingPunctuationFromURLs ? r = r.replace(q, z(n)) : r = r.replace(w, z(n)), r = r.replace(j, H(n, a)), r = a.converter._dispatch("simplifiedAutoLinks.after", r, n, a)), r;
4237
4237
  }), t.subParser("blockGamut", function(r, n, a) {
4238
4238
  return r = a.converter._dispatch("blockGamut.before", r, n, a), r = t.subParser("blockQuotes")(r, n, a), r = t.subParser("headers")(r, n, a), r = t.subParser("horizontalRule")(r, n, a), r = t.subParser("lists")(r, n, a), r = t.subParser("codeBlocks")(r, n, a), r = t.subParser("tables")(r, n, a), r = t.subParser("hashHTMLBlocks")(r, n, a), r = t.subParser("paragraphs")(r, n, a), r = a.converter._dispatch("blockGamut.after", r, n, a), r;
4239
4239
  }), t.subParser("blockQuotes", function(r, n, a) {
@@ -4242,8 +4242,8 @@ var Qt = { exports: {} };
4242
4242
  `;
4243
4243
  var d = /(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;
4244
4244
  return n.splitAdjacentBlockquotes && (d = /^ {0,3}>[\s\S]*?(?:\n\n)/gm), r = r.replace(d, function(o) {
4245
- return o = o.replace(/^[ \t]*>[ \t]?/gm, ""), o = o.replace(/¨0/g, ""), o = o.replace(/^[ \t]+$/gm, ""), o = t.subParser("githubCodeBlocks")(o, n, a), o = t.subParser("blockGamut")(o, n, a), o = o.replace(/(^|\n)/g, "$1 "), o = o.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, l) {
4246
- var h = l;
4245
+ return o = o.replace(/^[ \t]*>[ \t]?/gm, ""), o = o.replace(/¨0/g, ""), o = o.replace(/^[ \t]+$/gm, ""), o = t.subParser("githubCodeBlocks")(o, n, a), o = t.subParser("blockGamut")(o, n, a), o = o.replace(/(^|\n)/g, "$1 "), o = o.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm, function(f, c) {
4246
+ var h = c;
4247
4247
  return h = h.replace(/^ /mg, "¨0"), h = h.replace(/¨0/g, ""), h;
4248
4248
  }), t.subParser("hashBlock")(`<blockquote>
4249
4249
  ` + o + `
@@ -4252,16 +4252,16 @@ var Qt = { exports: {} };
4252
4252
  }), t.subParser("codeBlocks", function(r, n, a) {
4253
4253
  r = a.converter._dispatch("codeBlocks.before", r, n, a), r += "¨0";
4254
4254
  var d = /(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;
4255
- return r = r.replace(d, function(o, f, l) {
4256
- var h = f, T = l, _ = `
4255
+ return r = r.replace(d, function(o, f, c) {
4256
+ var h = f, A = c, _ = `
4257
4257
  `;
4258
- return h = t.subParser("outdent")(h, n, a), h = t.subParser("encodeCode")(h, n, a), h = t.subParser("detab")(h, n, a), h = h.replace(/^\n+/g, ""), h = h.replace(/\n+$/g, ""), n.omitExtraWLInCodeBlocks && (_ = ""), h = "<pre><code>" + h + _ + "</code></pre>", t.subParser("hashBlock")(h, n, a) + T;
4258
+ return h = t.subParser("outdent")(h, n, a), h = t.subParser("encodeCode")(h, n, a), h = t.subParser("detab")(h, n, a), h = h.replace(/^\n+/g, ""), h = h.replace(/\n+$/g, ""), n.omitExtraWLInCodeBlocks && (_ = ""), h = "<pre><code>" + h + _ + "</code></pre>", t.subParser("hashBlock")(h, n, a) + A;
4259
4259
  }), r = r.replace(/¨0/, ""), r = a.converter._dispatch("codeBlocks.after", r, n, a), r;
4260
4260
  }), t.subParser("codeSpans", function(r, n, a) {
4261
4261
  return r = a.converter._dispatch("codeSpans.before", r, n, a), typeof r > "u" && (r = ""), r = r.replace(
4262
4262
  /(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
4263
- function(d, o, f, l) {
4264
- var h = l;
4263
+ function(d, o, f, c) {
4264
+ var h = c;
4265
4265
  return h = h.replace(/^([ \t]*)/g, ""), h = h.replace(/[ \t]*$/g, ""), h = t.subParser("encodeCode")(h, n, a), h = o + "<code>" + h + "</code>", h = t.subParser("hashHTMLSpans")(h, n, a), h;
4266
4266
  }
4267
4267
  ), r = a.converter._dispatch("codeSpans.after", r, n, a), r;
@@ -4270,10 +4270,10 @@ var Qt = { exports: {} };
4270
4270
  return r;
4271
4271
  r = a.converter._dispatch("completeHTMLDocument.before", r, n, a);
4272
4272
  var d = "html", o = `<!DOCTYPE HTML>
4273
- `, f = "", l = `<meta charset="utf-8">
4274
- `, h = "", T = "";
4273
+ `, f = "", c = `<meta charset="utf-8">
4274
+ `, h = "", A = "";
4275
4275
  typeof a.metadata.parsed.doctype < "u" && (o = "<!DOCTYPE " + a.metadata.parsed.doctype + `>
4276
- `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (l = '<meta charset="utf-8">'));
4276
+ `, d = a.metadata.parsed.doctype.toString().toLowerCase(), (d === "html" || d === "html5") && (c = '<meta charset="utf-8">'));
4277
4277
  for (var _ in a.metadata.parsed)
4278
4278
  if (a.metadata.parsed.hasOwnProperty(_))
4279
4279
  switch (_.toLowerCase()) {
@@ -4284,29 +4284,29 @@ var Qt = { exports: {} };
4284
4284
  `;
4285
4285
  break;
4286
4286
  case "charset":
4287
- d === "html" || d === "html5" ? l = '<meta charset="' + a.metadata.parsed.charset + `">
4288
- ` : l = '<meta name="charset" content="' + a.metadata.parsed.charset + `">
4287
+ d === "html" || d === "html5" ? c = '<meta charset="' + a.metadata.parsed.charset + `">
4288
+ ` : c = '<meta name="charset" content="' + a.metadata.parsed.charset + `">
4289
4289
  `;
4290
4290
  break;
4291
4291
  case "language":
4292
4292
  case "lang":
4293
- h = ' lang="' + a.metadata.parsed[_] + '"', T += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4293
+ h = ' lang="' + a.metadata.parsed[_] + '"', A += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4294
4294
  `;
4295
4295
  break;
4296
4296
  default:
4297
- T += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4297
+ A += '<meta name="' + _ + '" content="' + a.metadata.parsed[_] + `">
4298
4298
  `;
4299
4299
  }
4300
4300
  return r = o + "<html" + h + `>
4301
4301
  <head>
4302
- ` + f + l + T + `</head>
4302
+ ` + f + c + A + `</head>
4303
4303
  <body>
4304
4304
  ` + r.trim() + `
4305
4305
  </body>
4306
4306
  </html>`, r = a.converter._dispatch("completeHTMLDocument.after", r, n, a), r;
4307
4307
  }), t.subParser("detab", function(r, n, a) {
4308
4308
  return r = a.converter._dispatch("detab.before", r, n, a), r = r.replace(/\t(?=\t)/g, " "), r = r.replace(/\t/g, "¨A¨B"), r = r.replace(/¨B(.+?)¨A/g, function(d, o) {
4309
- for (var f = o, l = 4 - f.length % 4, h = 0; h < l; h++)
4309
+ for (var f = o, c = 4 - f.length % 4, h = 0; h < c; h++)
4310
4310
  f += " ";
4311
4311
  return f;
4312
4312
  }), r = r.replace(/¨A/g, " "), r = r.replace(/¨B/g, ""), r = a.converter._dispatch("detab.after", r, n, a), r;
@@ -4335,12 +4335,12 @@ var Qt = { exports: {} };
4335
4335
  return f.replace(/([\\`*_~=|])/g, t.helper.escapeCharactersCallback);
4336
4336
  }), r = a.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after", r, n, a), r;
4337
4337
  }), t.subParser("githubCodeBlocks", function(r, n, a) {
4338
- return n.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, n, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, o, f, l) {
4338
+ return n.ghCodeBlocks ? (r = a.converter._dispatch("githubCodeBlocks.before", r, n, a), r += "¨0", r = r.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g, function(d, o, f, c) {
4339
4339
  var h = n.omitExtraWLInCodeBlocks ? "" : `
4340
4340
  `;
4341
- return l = t.subParser("encodeCode")(l, n, a), l = t.subParser("detab")(l, n, a), l = l.replace(/^\n+/g, ""), l = l.replace(/\n+$/g, ""), l = "<pre><code" + (f ? ' class="' + f + " language-" + f + '"' : "") + ">" + l + h + "</code></pre>", l = t.subParser("hashBlock")(l, n, a), `
4341
+ return c = t.subParser("encodeCode")(c, n, a), c = t.subParser("detab")(c, n, 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, n, a), `
4342
4342
 
4343
- ¨G` + (a.ghCodeBlocks.push({ text: d, codeblock: l }) - 1) + `G
4343
+ ¨G` + (a.ghCodeBlocks.push({ text: d, codeblock: c }) - 1) + `G
4344
4344
 
4345
4345
  `;
4346
4346
  }), r = r.replace(/¨0/, ""), a.converter._dispatch("githubCodeBlocks.after", r, n, a)) : r;
@@ -4352,9 +4352,9 @@ var Qt = { exports: {} };
4352
4352
  `, r = a.converter._dispatch("hashBlock.after", r, n, a), r;
4353
4353
  }), t.subParser("hashCodeTags", function(r, n, a) {
4354
4354
  r = a.converter._dispatch("hashCodeTags.before", r, n, a);
4355
- var d = function(o, f, l, h) {
4356
- var T = l + t.subParser("encodeCode")(f, n, a) + h;
4357
- return "¨C" + (a.gHtmlSpans.push(T) - 1) + "C";
4355
+ var d = function(o, f, c, h) {
4356
+ var A = c + t.subParser("encodeCode")(f, n, a) + h;
4357
+ return "¨C" + (a.gHtmlSpans.push(A) - 1) + "C";
4358
4358
  };
4359
4359
  return r = t.helper.replaceRecursiveRegExp(r, d, "<code\\b[^>]*>", "</code>", "gim"), r = a.converter._dispatch("hashCodeTags.after", r, n, a), r;
4360
4360
  }), t.subParser("hashElement", function(r, n, a) {
@@ -4404,20 +4404,20 @@ var Qt = { exports: {} };
4404
4404
  "output",
4405
4405
  "video",
4406
4406
  "p"
4407
- ], o = function(c, v, L, P) {
4408
- var H = c;
4409
- return L.search(/\bmarkdown\b/) !== -1 && (H = L + a.converter.makeHtml(v) + P), `
4407
+ ], o = function(l, v, S, P) {
4408
+ var x = l;
4409
+ return S.search(/\bmarkdown\b/) !== -1 && (x = S + a.converter.makeHtml(v) + P), `
4410
4410
 
4411
- ¨K` + (a.gHtmlBlocks.push(H) - 1) + `K
4411
+ ¨K` + (a.gHtmlBlocks.push(x) - 1) + `K
4412
4412
 
4413
4413
  `;
4414
4414
  };
4415
- n.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(c, v) {
4415
+ n.backslashEscapesHTMLTags && (r = r.replace(/\\<(\/?[^>]+?)>/g, function(l, v) {
4416
4416
  return "&lt;" + v + "&gt;";
4417
4417
  }));
4418
4418
  for (var f = 0; f < d.length; ++f)
4419
- for (var l, h = new RegExp("^ {0,3}(<" + d[f] + "\\b[^>]*>)", "im"), T = "<" + d[f] + "\\b[^>]*>", _ = "</" + d[f] + ">"; (l = t.helper.regexIndexOf(r, h)) !== -1; ) {
4420
- var y = t.helper.splitAtIndex(r, l), k = t.helper.replaceRecursiveRegExp(y[1], o, T, _, "im");
4419
+ for (var c, h = new RegExp("^ {0,3}(<" + d[f] + "\\b[^>]*>)", "im"), A = "<" + d[f] + "\\b[^>]*>", _ = "</" + d[f] + ">"; (c = t.helper.regexIndexOf(r, h)) !== -1; ) {
4420
+ var y = t.helper.splitAtIndex(r, c), k = t.helper.replaceRecursiveRegExp(y[1], o, A, _, "im");
4421
4421
  if (k === y[1])
4422
4422
  break;
4423
4423
  r = y[0].concat(k);
@@ -4425,10 +4425,10 @@ var Qt = { exports: {} };
4425
4425
  return r = r.replace(
4426
4426
  /(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,
4427
4427
  t.subParser("hashElement")(r, n, a)
4428
- ), r = t.helper.replaceRecursiveRegExp(r, function(c) {
4428
+ ), r = t.helper.replaceRecursiveRegExp(r, function(l) {
4429
4429
  return `
4430
4430
 
4431
- ¨K` + (a.gHtmlBlocks.push(c) - 1) + `K
4431
+ ¨K` + (a.gHtmlBlocks.push(l) - 1) + `K
4432
4432
 
4433
4433
  `;
4434
4434
  }, "^ {0,3}<!--", "-->", "gm"), r = r.replace(
@@ -4453,8 +4453,8 @@ var Qt = { exports: {} };
4453
4453
  r = a.converter._dispatch("unhashHTMLSpans.before", r, n, a);
4454
4454
  for (var d = 0; d < a.gHtmlSpans.length; ++d) {
4455
4455
  for (var o = a.gHtmlSpans[d], f = 0; /¨C(\d+)C/.test(o); ) {
4456
- var l = RegExp.$1;
4457
- if (o = o.replace("¨C" + l + "C", a.gHtmlSpans[l]), f === 10) {
4456
+ var c = RegExp.$1;
4457
+ if (o = o.replace("¨C" + c + "C", a.gHtmlSpans[c]), f === 10) {
4458
4458
  console.error("maximum nesting of 10 spans reached!!!");
4459
4459
  break;
4460
4460
  }
@@ -4465,11 +4465,11 @@ var Qt = { exports: {} };
4465
4465
  return r = a.converter._dispatch("unhashHTMLSpans.after", r, n, a), r;
4466
4466
  }), t.subParser("hashPreCodeTags", function(r, n, a) {
4467
4467
  r = a.converter._dispatch("hashPreCodeTags.before", r, n, a);
4468
- var d = function(o, f, l, h) {
4469
- var T = l + t.subParser("encodeCode")(f, n, a) + h;
4468
+ var d = function(o, f, c, h) {
4469
+ var A = c + t.subParser("encodeCode")(f, n, a) + h;
4470
4470
  return `
4471
4471
 
4472
- ¨G` + (a.ghCodeBlocks.push({ text: o, codeblock: T }) - 1) + `G
4472
+ ¨G` + (a.ghCodeBlocks.push({ text: o, codeblock: A }) - 1) + `G
4473
4473
 
4474
4474
  `;
4475
4475
  };
@@ -4477,27 +4477,27 @@ var Qt = { exports: {} };
4477
4477
  }), t.subParser("headers", function(r, n, a) {
4478
4478
  r = a.converter._dispatch("headers.before", r, n, a);
4479
4479
  var d = isNaN(parseInt(n.headerLevelStart)) ? 1 : parseInt(n.headerLevelStart), o = n.smoothLivePreview ? /^(.+)[ \t]*\n={2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n=+[ \t]*\n+/gm, f = n.smoothLivePreview ? /^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm : /^(.+)[ \t]*\n-+[ \t]*\n+/gm;
4480
- r = r.replace(o, function(T, _) {
4481
- var y = t.subParser("spanGamut")(_, n, a), k = n.noHeaderId ? "" : ' id="' + h(_) + '"', c = d, v = "<h" + c + k + ">" + y + "</h" + c + ">";
4480
+ r = r.replace(o, function(A, _) {
4481
+ var y = t.subParser("spanGamut")(_, n, a), k = n.noHeaderId ? "" : ' id="' + h(_) + '"', l = d, v = "<h" + l + k + ">" + y + "</h" + l + ">";
4482
4482
  return t.subParser("hashBlock")(v, n, a);
4483
- }), r = r.replace(f, function(T, _) {
4484
- var y = t.subParser("spanGamut")(_, n, a), k = n.noHeaderId ? "" : ' id="' + h(_) + '"', c = d + 1, v = "<h" + c + k + ">" + y + "</h" + c + ">";
4483
+ }), r = r.replace(f, function(A, _) {
4484
+ var y = t.subParser("spanGamut")(_, n, a), k = n.noHeaderId ? "" : ' id="' + h(_) + '"', l = d + 1, v = "<h" + l + k + ">" + y + "</h" + l + ">";
4485
4485
  return t.subParser("hashBlock")(v, n, a);
4486
4486
  });
4487
- var l = n.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4488
- r = r.replace(l, function(T, _, y) {
4487
+ var c = n.requireSpaceBeforeHeadingText ? /^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm : /^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;
4488
+ r = r.replace(c, function(A, _, y) {
4489
4489
  var k = y;
4490
4490
  n.customizedHeaderId && (k = y.replace(/\s?\{([^{]+?)}\s*$/, ""));
4491
- var c = t.subParser("spanGamut")(k, n, a), v = n.noHeaderId ? "" : ' id="' + h(y) + '"', L = d - 1 + _.length, P = "<h" + L + v + ">" + c + "</h" + L + ">";
4491
+ var l = t.subParser("spanGamut")(k, n, a), v = n.noHeaderId ? "" : ' id="' + h(y) + '"', S = d - 1 + _.length, P = "<h" + S + v + ">" + l + "</h" + S + ">";
4492
4492
  return t.subParser("hashBlock")(P, n, a);
4493
4493
  });
4494
- function h(T) {
4494
+ function h(A) {
4495
4495
  var _, y;
4496
4496
  if (n.customizedHeaderId) {
4497
- var k = T.match(/\{([^{]+?)}\s*$/);
4498
- k && k[1] && (T = k[1]);
4497
+ var k = A.match(/\{([^{]+?)}\s*$/);
4498
+ k && k[1] && (A = k[1]);
4499
4499
  }
4500
- return _ = T, t.helper.isString(n.prefixHeaderId) ? y = n.prefixHeaderId : n.prefixHeaderId === !0 ? y = "section-" : y = "", n.rawPrefixHeaderId || (_ = y + _), n.ghCompatibleHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "").replace(/¨T/g, "").replace(/¨D/g, "").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, "").toLowerCase() : n.rawHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "&").replace(/¨T/g, "¨").replace(/¨D/g, "$").replace(/["']/g, "-").toLowerCase() : _ = _.replace(/[^\w]/g, "").toLowerCase(), n.rawPrefixHeaderId && (_ = y + _), a.hashLinkCounts[_] ? _ = _ + "-" + a.hashLinkCounts[_]++ : a.hashLinkCounts[_] = 1, _;
4500
+ return _ = A, t.helper.isString(n.prefixHeaderId) ? y = n.prefixHeaderId : n.prefixHeaderId === !0 ? y = "section-" : y = "", n.rawPrefixHeaderId || (_ = y + _), n.ghCompatibleHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "").replace(/¨T/g, "").replace(/¨D/g, "").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g, "").toLowerCase() : n.rawHeaderId ? _ = _.replace(/ /g, "-").replace(/&amp;/g, "&").replace(/¨T/g, "¨").replace(/¨D/g, "$").replace(/["']/g, "-").toLowerCase() : _ = _.replace(/[^\w]/g, "").toLowerCase(), n.rawPrefixHeaderId && (_ = y + _), a.hashLinkCounts[_] ? _ = _ + "-" + a.hashLinkCounts[_]++ : a.hashLinkCounts[_] = 1, _;
4501
4501
  }
4502
4502
  return r = a.converter._dispatch("headers.after", r, n, a), r;
4503
4503
  }), t.subParser("horizontalRule", function(r, n, a) {
@@ -4506,28 +4506,28 @@ var Qt = { exports: {} };
4506
4506
  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, n, a), r;
4507
4507
  }), t.subParser("images", function(r, n, a) {
4508
4508
  r = a.converter._dispatch("images.before", r, n, a);
4509
- 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, l = /!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g, h = /!\[([^\[\]]+)]()()()()()/g;
4510
- function T(y, k, c, v, L, P, H, z) {
4511
- return v = v.replace(/\s/g, ""), _(y, k, c, v, L, P, H, z);
4509
+ 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;
4510
+ function A(y, k, l, v, S, P, x, R) {
4511
+ return v = v.replace(/\s/g, ""), _(y, k, l, v, S, P, x, R);
4512
4512
  }
4513
- function _(y, k, c, v, L, P, H, z) {
4513
+ function _(y, k, l, v, S, P, x, R) {
4514
4514
  var B = a.gUrls, G = a.gTitles, J = a.gDimensions;
4515
- if (c = c.toLowerCase(), z || (z = ""), y.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4515
+ if (l = l.toLowerCase(), R || (R = ""), y.search(/\(<?\s*>? ?(['"].*['"])?\)$/m) > -1)
4516
4516
  v = "";
4517
4517
  else if (v === "" || v === null)
4518
- if ((c === "" || c === null) && (c = k.toLowerCase().replace(/ ?\n/g, " ")), v = "#" + c, !t.helper.isUndefined(B[c]))
4519
- v = B[c], t.helper.isUndefined(G[c]) || (z = G[c]), t.helper.isUndefined(J[c]) || (L = J[c].width, P = J[c].height);
4518
+ if ((l === "" || l === null) && (l = k.toLowerCase().replace(/ ?\n/g, " ")), v = "#" + l, !t.helper.isUndefined(B[l]))
4519
+ v = B[l], t.helper.isUndefined(G[l]) || (R = G[l]), t.helper.isUndefined(J[l]) || (S = J[l].width, P = J[l].height);
4520
4520
  else
4521
4521
  return y;
4522
4522
  k = k.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), v = v.replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback);
4523
4523
  var U = '<img src="' + v + '" alt="' + k + '"';
4524
- return z && t.helper.isString(z) && (z = z.replace(/"/g, "&quot;").replace(t.helper.regexes.asteriskDashAndColon, t.helper.escapeCharactersCallback), U += ' title="' + z + '"'), L && P && (L = L === "*" ? "auto" : L, P = P === "*" ? "auto" : P, U += ' width="' + L + '"', U += ' height="' + P + '"'), U += " />", U;
4524
+ 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;
4525
4525
  }
4526
- return r = r.replace(l, _), r = r.replace(f, T), r = r.replace(o, _), r = r.replace(d, _), r = r.replace(h, _), r = a.converter._dispatch("images.after", r, n, a), r;
4526
+ return r = r.replace(c, _), r = r.replace(f, A), r = r.replace(o, _), r = r.replace(d, _), r = r.replace(h, _), r = a.converter._dispatch("images.after", r, n, a), r;
4527
4527
  }), t.subParser("italicsAndBold", function(r, n, a) {
4528
4528
  r = a.converter._dispatch("italicsAndBold.before", r, n, a);
4529
- function d(o, f, l) {
4530
- return f + o + l;
4529
+ function d(o, f, c) {
4530
+ return f + o + c;
4531
4531
  }
4532
4532
  return n.literalMidWordUnderscores ? (r = r.replace(/\b___(\S[\s\S]*?)___\b/g, function(o, f) {
4533
4533
  return d(f, "<strong><em>", "</em></strong>");
@@ -4541,12 +4541,12 @@ var Qt = { exports: {} };
4541
4541
  return /\S$/.test(f) ? d(f, "<strong>", "</strong>") : o;
4542
4542
  }), r = r.replace(/_([^\s_][\s\S]*?)_/g, function(o, f) {
4543
4543
  return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4544
- })), n.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(o, f, l) {
4545
- return d(l, f + "<strong><em>", "</em></strong>");
4546
- }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(o, f, l) {
4547
- return d(l, f + "<strong>", "</strong>");
4548
- }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(o, f, l) {
4549
- return d(l, f + "<em>", "</em>");
4544
+ })), n.literalMidWordAsterisks ? (r = r.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g, function(o, f, c) {
4545
+ return d(c, f + "<strong><em>", "</em></strong>");
4546
+ }), r = r.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g, function(o, f, c) {
4547
+ return d(c, f + "<strong>", "</strong>");
4548
+ }), r = r.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g, function(o, f, c) {
4549
+ return d(c, f + "<em>", "</em>");
4550
4550
  })) : (r = r.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g, function(o, f) {
4551
4551
  return /\S$/.test(f) ? d(f, "<strong><em>", "</em></strong>") : o;
4552
4552
  }), r = r.replace(/\*\*(\S[\s\S]*?)\*\*/g, function(o, f) {
@@ -4555,68 +4555,68 @@ var Qt = { exports: {} };
4555
4555
  return /\S$/.test(f) ? d(f, "<em>", "</em>") : o;
4556
4556
  })), r = a.converter._dispatch("italicsAndBold.after", r, n, a), r;
4557
4557
  }), t.subParser("lists", function(r, n, a) {
4558
- function d(l, h) {
4559
- a.gListLevel++, l = l.replace(/\n{2,}$/, `
4560
- `), l += "¨0";
4561
- 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(l);
4562
- return n.disableForced4SpacesIndentedSublists && (T = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), l = l.replace(T, function(y, k, c, v, L, P, H) {
4563
- H = H && H.trim() !== "";
4564
- var z = t.subParser("outdent")(L, n, a), B = "";
4565
- return P && n.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', z = z.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4558
+ function d(c, h) {
4559
+ a.gListLevel++, c = c.replace(/\n{2,}$/, `
4560
+ `), c += "¨0";
4561
+ var A = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm, _ = /\n[ \t]*\n(?!¨0)/.test(c);
4562
+ return n.disableForced4SpacesIndentedSublists && (A = /(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm), c = c.replace(A, function(y, k, l, v, S, P, x) {
4563
+ x = x && x.trim() !== "";
4564
+ var R = t.subParser("outdent")(S, n, a), B = "";
4565
+ return P && n.tasklists && (B = ' class="task-list-item" style="list-style-type: none;"', R = R.replace(/^[ \t]*\[(x|X| )?]/m, function() {
4566
4566
  var G = '<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';
4567
- return H && (G += " checked"), G += ">", G;
4568
- })), z = z.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4567
+ return x && (G += " checked"), G += ">", G;
4568
+ })), R = R.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g, function(G) {
4569
4569
  return "¨A" + G;
4570
- }), k || z.search(/\n{2,}/) > -1 ? (z = t.subParser("githubCodeBlocks")(z, n, a), z = t.subParser("blockGamut")(z, n, a)) : (z = t.subParser("lists")(z, n, a), z = z.replace(/\n$/, ""), z = t.subParser("hashHTMLBlocks")(z, n, a), z = z.replace(/\n\n+/g, `
4570
+ }), k || R.search(/\n{2,}/) > -1 ? (R = t.subParser("githubCodeBlocks")(R, n, a), R = t.subParser("blockGamut")(R, n, a)) : (R = t.subParser("lists")(R, n, a), R = R.replace(/\n$/, ""), R = t.subParser("hashHTMLBlocks")(R, n, a), R = R.replace(/\n\n+/g, `
4571
4571
 
4572
- `), _ ? z = t.subParser("paragraphs")(z, n, a) : z = t.subParser("spanGamut")(z, n, a)), z = z.replace("¨A", ""), z = "<li" + B + ">" + z + `</li>
4573
- `, z;
4574
- }), l = l.replace(/¨0/g, ""), a.gListLevel--, h && (l = l.replace(/\s+$/, "")), l;
4572
+ `), _ ? R = t.subParser("paragraphs")(R, n, a) : R = t.subParser("spanGamut")(R, n, a)), R = R.replace("¨A", ""), R = "<li" + B + ">" + R + `</li>
4573
+ `, R;
4574
+ }), c = c.replace(/¨0/g, ""), a.gListLevel--, h && (c = c.replace(/\s+$/, "")), c;
4575
4575
  }
4576
- function o(l, h) {
4576
+ function o(c, h) {
4577
4577
  if (h === "ol") {
4578
- var T = l.match(/^ *(\d+)\./);
4579
- if (T && T[1] !== "1")
4580
- return ' start="' + T[1] + '"';
4578
+ var A = c.match(/^ *(\d+)\./);
4579
+ if (A && A[1] !== "1")
4580
+ return ' start="' + A[1] + '"';
4581
4581
  }
4582
4582
  return "";
4583
4583
  }
4584
- function f(l, h, T) {
4585
- var _ = n.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, y = n.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, k = h === "ul" ? _ : y, c = "";
4586
- if (l.search(k) !== -1)
4587
- (function L(P) {
4588
- var H = P.search(k), z = o(l, h);
4589
- H !== -1 ? (c += `
4584
+ function f(c, h, A) {
4585
+ var _ = n.disableForced4SpacesIndentedSublists ? /^ ?\d+\.[ \t]/gm : /^ {0,3}\d+\.[ \t]/gm, y = n.disableForced4SpacesIndentedSublists ? /^ ?[*+-][ \t]/gm : /^ {0,3}[*+-][ \t]/gm, k = h === "ul" ? _ : y, l = "";
4586
+ if (c.search(k) !== -1)
4587
+ (function S(P) {
4588
+ var x = P.search(k), R = o(c, h);
4589
+ x !== -1 ? (l += `
4590
4590
 
4591
- <` + h + z + `>
4592
- ` + d(P.slice(0, H), !!T) + "</" + h + `>
4593
- `, h = h === "ul" ? "ol" : "ul", k = h === "ul" ? _ : y, L(P.slice(H))) : c += `
4591
+ <` + h + R + `>
4592
+ ` + d(P.slice(0, x), !!A) + "</" + h + `>
4593
+ `, h = h === "ul" ? "ol" : "ul", k = h === "ul" ? _ : y, S(P.slice(x))) : l += `
4594
4594
 
4595
- <` + h + z + `>
4596
- ` + d(P, !!T) + "</" + h + `>
4595
+ <` + h + R + `>
4596
+ ` + d(P, !!A) + "</" + h + `>
4597
4597
  `;
4598
- })(l);
4598
+ })(c);
4599
4599
  else {
4600
- var v = o(l, h);
4601
- c = `
4600
+ var v = o(c, h);
4601
+ l = `
4602
4602
 
4603
4603
  <` + h + v + `>
4604
- ` + d(l, !!T) + "</" + h + `>
4604
+ ` + d(c, !!A) + "</" + h + `>
4605
4605
  `;
4606
4606
  }
4607
- return c;
4607
+ return l;
4608
4608
  }
4609
4609
  return r = a.converter._dispatch("lists.before", r, n, a), r += "¨0", a.gListLevel ? r = r.replace(
4610
4610
  /^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
4611
- function(l, h, T) {
4612
- var _ = T.search(/[*+-]/g) > -1 ? "ul" : "ol";
4611
+ function(c, h, A) {
4612
+ var _ = A.search(/[*+-]/g) > -1 ? "ul" : "ol";
4613
4613
  return f(h, _, !0);
4614
4614
  }
4615
4615
  ) : r = r.replace(
4616
4616
  /(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,
4617
- function(l, h, T, _) {
4617
+ function(c, h, A, _) {
4618
4618
  var y = _.search(/[*+-]/g) > -1 ? "ul" : "ol";
4619
- return f(T, y, !1);
4619
+ return f(A, y, !1);
4620
4620
  }
4621
4621
  ), r = r.replace(/¨0/, ""), r = a.converter._dispatch("lists.after", r, n, a), r;
4622
4622
  }), t.subParser("metadata", function(r, n, a) {
@@ -4624,29 +4624,29 @@ var Qt = { exports: {} };
4624
4624
  return r;
4625
4625
  r = a.converter._dispatch("metadata.before", r, n, a);
4626
4626
  function d(o) {
4627
- 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, l, h) {
4628
- return a.metadata.parsed[l] = h, "";
4627
+ 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) {
4628
+ return a.metadata.parsed[c] = h, "";
4629
4629
  });
4630
4630
  }
4631
- return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(o, f, l) {
4632
- return d(l), "¨M";
4633
- }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(o, f, l) {
4634
- return f && (a.metadata.format = f), d(l), "¨M";
4631
+ return r = r.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/, function(o, f, c) {
4632
+ return d(c), "¨M";
4633
+ }), r = r.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/, function(o, f, c) {
4634
+ return f && (a.metadata.format = f), d(c), "¨M";
4635
4635
  }), r = r.replace(/¨M/g, ""), r = a.converter._dispatch("metadata.after", r, n, a), r;
4636
4636
  }), t.subParser("outdent", function(r, n, a) {
4637
4637
  return r = a.converter._dispatch("outdent.before", r, n, a), r = r.replace(/^(\t|[ ]{1,4})/gm, "¨0"), r = r.replace(/¨0/g, ""), r = a.converter._dispatch("outdent.after", r, n, a), r;
4638
4638
  }), t.subParser("paragraphs", function(r, n, a) {
4639
4639
  r = a.converter._dispatch("paragraphs.before", r, n, a), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, "");
4640
- for (var d = r.split(/\n{2,}/g), o = [], f = d.length, l = 0; l < f; l++) {
4641
- var h = d[l];
4640
+ for (var d = r.split(/\n{2,}/g), o = [], f = d.length, c = 0; c < f; c++) {
4641
+ var h = d[c];
4642
4642
  h.search(/¨(K|G)(\d+)\1/g) >= 0 ? o.push(h) : h.search(/\S/) >= 0 && (h = t.subParser("spanGamut")(h, n, a), h = h.replace(/^([ \t]*)/g, "<p>"), h += "</p>", o.push(h));
4643
4643
  }
4644
- for (f = o.length, l = 0; l < f; l++) {
4645
- for (var T = "", _ = o[l], y = !1; /¨(K|G)(\d+)\1/.test(_); ) {
4646
- var k = RegExp.$1, c = RegExp.$2;
4647
- k === "K" ? T = a.gHtmlBlocks[c] : y ? T = t.subParser("encodeCode")(a.ghCodeBlocks[c].text, n, a) : T = a.ghCodeBlocks[c].codeblock, T = T.replace(/\$/g, "$$$$"), _ = _.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, T), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(_) && (y = !0);
4644
+ for (f = o.length, c = 0; c < f; c++) {
4645
+ for (var A = "", _ = o[c], y = !1; /¨(K|G)(\d+)\1/.test(_); ) {
4646
+ var k = RegExp.$1, l = RegExp.$2;
4647
+ k === "K" ? A = a.gHtmlBlocks[l] : y ? A = t.subParser("encodeCode")(a.ghCodeBlocks[l].text, n, a) : A = a.ghCodeBlocks[l].codeblock, A = A.replace(/\$/g, "$$$$"), _ = _.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/, A), /^<pre\b[^>]*>\s*<code\b[^>]*>/.test(_) && (y = !0);
4648
4648
  }
4649
- o[l] = _;
4649
+ o[c] = _;
4650
4650
  }
4651
4651
  return r = o.join(`
4652
4652
  `), r = r.replace(/^\n+/g, ""), r = r.replace(/\n+$/g, ""), a.converter._dispatch("paragraphs.after", r, n, a);
@@ -4672,8 +4672,8 @@ var Qt = { exports: {} };
4672
4672
  }), t.subParser("stripLinkDefinitions", function(r, n, a) {
4673
4673
  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;
4674
4674
  r += "¨0";
4675
- var f = function(l, h, T, _, y, k, c) {
4676
- return h = h.toLowerCase(), r.toLowerCase().split(h).length - 1 < 2 ? l : (T.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[h] = T.replace(/\s/g, "") : a.gUrls[h] = t.subParser("encodeAmpsAndAngles")(T, n, a), k ? k + c : (c && (a.gTitles[h] = c.replace(/"|'/g, "&quot;")), n.parseImgDimensions && _ && y && (a.gDimensions[h] = {
4675
+ var f = function(c, h, A, _, y, k, l) {
4676
+ return h = h.toLowerCase(), r.toLowerCase().split(h).length - 1 < 2 ? c : (A.match(/^data:.+?\/.+?;base64,/) ? a.gUrls[h] = A.replace(/\s/g, "") : a.gUrls[h] = t.subParser("encodeAmpsAndAngles")(A, n, a), k ? k + l : (l && (a.gTitles[h] = l.replace(/"|'/g, "&quot;")), n.parseImgDimensions && _ && y && (a.gDimensions[h] = {
4677
4677
  width: _,
4678
4678
  height: y
4679
4679
  }), ""));
@@ -4686,65 +4686,65 @@ var Qt = { exports: {} };
4686
4686
  function f(y) {
4687
4687
  return /^:[ \t]*--*$/.test(y) ? ' style="text-align:left;"' : /^--*[ \t]*:[ \t]*$/.test(y) ? ' style="text-align:right;"' : /^:[ \t]*--*[ \t]*:$/.test(y) ? ' style="text-align:center;"' : "";
4688
4688
  }
4689
- function l(y, k) {
4690
- var c = "";
4691
- return y = y.trim(), (n.tablesHeaderId || n.tableHeaderId) && (c = ' id="' + y.replace(/ /g, "_").toLowerCase() + '"'), y = t.subParser("spanGamut")(y, n, a), "<th" + c + k + ">" + y + `</th>
4689
+ function c(y, k) {
4690
+ var l = "";
4691
+ return y = y.trim(), (n.tablesHeaderId || n.tableHeaderId) && (l = ' id="' + y.replace(/ /g, "_").toLowerCase() + '"'), y = t.subParser("spanGamut")(y, n, a), "<th" + l + k + ">" + y + `</th>
4692
4692
  `;
4693
4693
  }
4694
4694
  function h(y, k) {
4695
- var c = t.subParser("spanGamut")(y, n, a);
4696
- return "<td" + k + ">" + c + `</td>
4695
+ var l = t.subParser("spanGamut")(y, n, a);
4696
+ return "<td" + k + ">" + l + `</td>
4697
4697
  `;
4698
4698
  }
4699
- function T(y, k) {
4700
- for (var c = `<table>
4699
+ function A(y, k) {
4700
+ for (var l = `<table>
4701
4701
  <thead>
4702
4702
  <tr>
4703
- `, v = y.length, L = 0; L < v; ++L)
4704
- c += y[L];
4705
- for (c += `</tr>
4703
+ `, v = y.length, S = 0; S < v; ++S)
4704
+ l += y[S];
4705
+ for (l += `</tr>
4706
4706
  </thead>
4707
4707
  <tbody>
4708
- `, L = 0; L < k.length; ++L) {
4709
- c += `<tr>
4708
+ `, S = 0; S < k.length; ++S) {
4709
+ l += `<tr>
4710
4710
  `;
4711
4711
  for (var P = 0; P < v; ++P)
4712
- c += k[L][P];
4713
- c += `</tr>
4712
+ l += k[S][P];
4713
+ l += `</tr>
4714
4714
  `;
4715
4715
  }
4716
- return c += `</tbody>
4716
+ return l += `</tbody>
4717
4717
  </table>
4718
- `, c;
4718
+ `, l;
4719
4719
  }
4720
4720
  function _(y) {
4721
- var k, c = y.split(`
4721
+ var k, l = y.split(`
4722
4722
  `);
4723
- for (k = 0; k < c.length; ++k)
4724
- /^ {0,3}\|/.test(c[k]) && (c[k] = c[k].replace(/^ {0,3}\|/, "")), /\|[ \t]*$/.test(c[k]) && (c[k] = c[k].replace(/\|[ \t]*$/, "")), c[k] = t.subParser("codeSpans")(c[k], n, a);
4725
- var v = c[0].split("|").map(function(U) {
4723
+ for (k = 0; k < l.length; ++k)
4724
+ /^ {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], n, a);
4725
+ var v = l[0].split("|").map(function(U) {
4726
4726
  return U.trim();
4727
- }), L = c[1].split("|").map(function(U) {
4727
+ }), S = l[1].split("|").map(function(U) {
4728
4728
  return U.trim();
4729
- }), P = [], H = [], z = [], B = [];
4730
- for (c.shift(), c.shift(), k = 0; k < c.length; ++k)
4731
- c[k].trim() !== "" && P.push(
4732
- c[k].split("|").map(function(U) {
4729
+ }), P = [], x = [], R = [], B = [];
4730
+ for (l.shift(), l.shift(), k = 0; k < l.length; ++k)
4731
+ l[k].trim() !== "" && P.push(
4732
+ l[k].split("|").map(function(U) {
4733
4733
  return U.trim();
4734
4734
  })
4735
4735
  );
4736
- if (v.length < L.length)
4736
+ if (v.length < S.length)
4737
4737
  return y;
4738
- for (k = 0; k < L.length; ++k)
4739
- z.push(f(L[k]));
4738
+ for (k = 0; k < S.length; ++k)
4739
+ R.push(f(S[k]));
4740
4740
  for (k = 0; k < v.length; ++k)
4741
- t.helper.isUndefined(z[k]) && (z[k] = ""), H.push(l(v[k], z[k]));
4741
+ t.helper.isUndefined(R[k]) && (R[k] = ""), x.push(c(v[k], R[k]));
4742
4742
  for (k = 0; k < P.length; ++k) {
4743
- for (var G = [], J = 0; J < H.length; ++J)
4744
- t.helper.isUndefined(P[k][J]), G.push(h(P[k][J], z[J]));
4743
+ for (var G = [], J = 0; J < x.length; ++J)
4744
+ t.helper.isUndefined(P[k][J]), G.push(h(P[k][J], R[J]));
4745
4745
  B.push(G);
4746
4746
  }
4747
- return T(H, B);
4747
+ return A(x, B);
4748
4748
  }
4749
4749
  return r = a.converter._dispatch("tables.before", r, n, a), r = r.replace(/\\(\|)/g, t.helper.escapeCharactersCallback), r = r.replace(d, _), r = r.replace(o, _), r = a.converter._dispatch("tables.after", r, n, a), r;
4750
4750
  }), t.subParser("underline", function(r, n, a) {
@@ -4766,8 +4766,8 @@ var Qt = { exports: {} };
4766
4766
  var a = "";
4767
4767
  if (r.hasChildNodes())
4768
4768
  for (var d = r.childNodes, o = d.length, f = 0; f < o; ++f) {
4769
- var l = t.subParser("makeMarkdown.node")(d[f], n);
4770
- l !== "" && (a += l);
4769
+ var c = t.subParser("makeMarkdown.node")(d[f], n);
4770
+ c !== "" && (a += c);
4771
4771
  }
4772
4772
  return a = a.trim(), a = "> " + a.split(`
4773
4773
  `).join(`
@@ -4791,7 +4791,7 @@ var Qt = { exports: {} };
4791
4791
  var d = new Array(a + 1).join("#"), o = "";
4792
4792
  if (r.hasChildNodes()) {
4793
4793
  o = d + " ";
4794
- for (var f = r.childNodes, l = f.length, h = 0; h < l; ++h)
4794
+ for (var f = r.childNodes, c = f.length, h = 0; h < c; ++h)
4795
4795
  o += t.subParser("makeMarkdown.node")(f[h], n);
4796
4796
  }
4797
4797
  return o;
@@ -4814,10 +4814,10 @@ var Qt = { exports: {} };
4814
4814
  var d = "";
4815
4815
  if (!r.hasChildNodes())
4816
4816
  return "";
4817
- for (var o = r.childNodes, f = o.length, l = r.getAttribute("start") || 1, h = 0; h < f; ++h)
4817
+ for (var o = r.childNodes, f = o.length, c = r.getAttribute("start") || 1, h = 0; h < f; ++h)
4818
4818
  if (!(typeof o[h].tagName > "u" || o[h].tagName.toLowerCase() !== "li")) {
4819
- var T = "";
4820
- a === "ol" ? T = l.toString() + ". " : T = "- ", d += T + t.subParser("makeMarkdown.listItem")(o[h], n), ++l;
4819
+ var A = "";
4820
+ a === "ol" ? A = c.toString() + ". " : A = "- ", d += A + t.subParser("makeMarkdown.listItem")(o[h], n), ++c;
4821
4821
  }
4822
4822
  return d += `
4823
4823
  <!-- -->
@@ -4968,11 +4968,11 @@ var Qt = { exports: {} };
4968
4968
  }
4969
4969
  return a;
4970
4970
  }), t.subParser("makeMarkdown.table", function(r, n) {
4971
- var a = "", d = [[], []], o = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), l, h;
4972
- for (l = 0; l < o.length; ++l) {
4973
- var T = t.subParser("makeMarkdown.tableCell")(o[l], n), _ = "---";
4974
- if (o[l].hasAttribute("style")) {
4975
- var y = o[l].getAttribute("style").toLowerCase().replace(/\s/g, "");
4971
+ var a = "", d = [[], []], o = r.querySelectorAll("thead>tr>th"), f = r.querySelectorAll("tbody>tr"), c, h;
4972
+ for (c = 0; c < o.length; ++c) {
4973
+ var A = t.subParser("makeMarkdown.tableCell")(o[c], n), _ = "---";
4974
+ if (o[c].hasAttribute("style")) {
4975
+ var y = o[c].getAttribute("style").toLowerCase().replace(/\s/g, "");
4976
4976
  switch (y) {
4977
4977
  case "text-align:left;":
4978
4978
  _ = ":---";
@@ -4985,25 +4985,25 @@ var Qt = { exports: {} };
4985
4985
  break;
4986
4986
  }
4987
4987
  }
4988
- d[0][l] = T.trim(), d[1][l] = _;
4988
+ d[0][c] = A.trim(), d[1][c] = _;
4989
4989
  }
4990
- for (l = 0; l < f.length; ++l) {
4991
- var k = d.push([]) - 1, c = f[l].getElementsByTagName("td");
4990
+ for (c = 0; c < f.length; ++c) {
4991
+ var k = d.push([]) - 1, l = f[c].getElementsByTagName("td");
4992
4992
  for (h = 0; h < o.length; ++h) {
4993
4993
  var v = " ";
4994
- typeof c[h] < "u" && (v = t.subParser("makeMarkdown.tableCell")(c[h], n)), d[k].push(v);
4994
+ typeof l[h] < "u" && (v = t.subParser("makeMarkdown.tableCell")(l[h], n)), d[k].push(v);
4995
4995
  }
4996
4996
  }
4997
- var L = 3;
4998
- for (l = 0; l < d.length; ++l)
4999
- for (h = 0; h < d[l].length; ++h) {
5000
- var P = d[l][h].length;
5001
- P > L && (L = P);
4997
+ var S = 3;
4998
+ for (c = 0; c < d.length; ++c)
4999
+ for (h = 0; h < d[c].length; ++h) {
5000
+ var P = d[c][h].length;
5001
+ P > S && (S = P);
5002
5002
  }
5003
- for (l = 0; l < d.length; ++l) {
5004
- for (h = 0; h < d[l].length; ++h)
5005
- l === 1 ? d[l][h].slice(-1) === ":" ? d[l][h] = t.helper.padEnd(d[l][h].slice(-1), L - 1, "-") + ":" : d[l][h] = t.helper.padEnd(d[l][h], L, "-") : d[l][h] = t.helper.padEnd(d[l][h], L);
5006
- a += "| " + d[l].join(" | ") + ` |
5003
+ for (c = 0; c < d.length; ++c) {
5004
+ for (h = 0; h < d[c].length; ++h)
5005
+ 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);
5006
+ a += "| " + d[c].join(" | ") + ` |
5007
5007
  `;
5008
5008
  }
5009
5009
  return a.trim();
@@ -5018,12 +5018,12 @@ var Qt = { exports: {} };
5018
5018
  var n = r.nodeValue;
5019
5019
  return n = n.replace(/ +/g, " "), n = n.replace(/¨NBSP;/g, " "), n = t.helper.unescapeHTMLEntities(n), n = n.replace(/([*_~|`])/g, "\\$1"), n = n.replace(/^(\s*)>/g, "\\$1>"), n = n.replace(/^#/gm, "\\#"), n = n.replace(/^(\s*)([-=]{3,})(\s*)$/, "$1\\$2$3"), n = n.replace(/^( {0,3}\d+)\./gm, "$1\\."), n = n.replace(/^( {0,3})([+-])/gm, "$1\\$2"), n = n.replace(/]([\s]*)\(/g, "\\]$1\\("), n = n.replace(/^ {0,3}\[([\S \t]*?)]:/gm, "\\[$1]:"), n;
5020
5020
  });
5021
- var N = this;
5022
- e.exports ? e.exports = t : N.showdown = t;
5021
+ var O = this;
5022
+ e.exports ? e.exports = t : O.showdown = t;
5023
5023
  }).call(je);
5024
- })(Qt);
5025
- var ei = Qt.exports;
5026
- const Pe = /* @__PURE__ */ Ur(ei), rt = /@(\d*|channel|editors):\((.*?)\)/, Yt = ["channel", "editors"], ri = new RegExp(rt, "i"), ti = new RegExp(rt, "gi");
5024
+ })(Yt);
5025
+ var ei = Yt.exports;
5026
+ const Pe = /* @__PURE__ */ Ur(ei), rt = /@(\d*|channel|editors):\((.*?)\)/, Xt = ["channel", "editors"], ri = new RegExp(rt, "i"), ti = new RegExp(rt, "gi");
5027
5027
  let ie;
5028
5028
  const Lr = {
5029
5029
  color: {
@@ -5038,7 +5038,7 @@ const Lr = {
5038
5038
  regex: ti,
5039
5039
  replace: (e) => {
5040
5040
  const i = e.match(ri), u = i && i.length > 1 && i[1], t = i && i.length > 2 && i[2];
5041
- return Yt.find(
5041
+ return Xt.find(
5042
5042
  (s) => s.toLowerCase() === String(u).toLowerCase()
5043
5043
  ) ? `<a class="mention extraMention" data-user-id="${u}">@${t}</a>` : `<a class="mention" data-user-id="${u}">@${t}</a>`;
5044
5044
  }
@@ -5060,9 +5060,9 @@ function ai() {
5060
5060
  const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5061
5061
  /<user-mentio[^>]*data-user-id=["']([^"]+)["'][^>]*>(?:@|(?:&#64;))(.+?)<\/user-mentio>/,
5062
5062
  "gi"
5063
- ), yt = (e, i, u) => Yt.find(
5063
+ ), _t = (e, i, u) => Xt.find(
5064
5064
  (t) => t.toLowerCase() === String(i).toLowerCase()
5065
- ) ? `<a class="mention extraMention" data-user-id="${i}">@${u}</a>` : `<a class="mention" data-user-id="${i}">@${u}</a>`, si = (e = "") => e.replace(ii, yt).replace(ui, yt), di = (e = "") => Pr(e, {
5065
+ ) ? `<a class="mention extraMention" data-user-id="${i}">@${u}</a>` : `<a class="mention" data-user-id="${i}">@${u}</a>`, si = (e = "") => e.replace(ii, _t).replace(ui, _t), di = (e = "") => Pr(e, {
5066
5066
  whiteList: Wn,
5067
5067
  css: {
5068
5068
  whiteList: {
@@ -5106,7 +5106,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5106
5106
  }
5107
5107
  }, li = (e = "", i = "html") => {
5108
5108
  let u = da(e);
5109
- return u = oa(u), i === "markdown" ? u = ni.makeHtml(u) : u = si(u), u = Kt(u), u = ci(u), u;
5109
+ return u = oa(u), i === "markdown" ? u = ni.makeHtml(u) : u = si(u), u = Qt(u), u = ci(u), u;
5110
5110
  }, fi = () => {
5111
5111
  const e = "ibmMonoOnDemand";
5112
5112
  if (!document.getElementById(e)) {
@@ -5115,7 +5115,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5115
5115
  document.createTextNode(`@import url(${Qn});`)
5116
5116
  ), document.head.appendChild(i);
5117
5117
  }
5118
- }, _t = (e = "") => (
5118
+ }, kt = (e = "") => (
5119
5119
  // eslint-disable-next-line no-control-regex
5120
5120
  e.replace(/[^\u0000-\u007E]/g, "")
5121
5121
  ), pi = (e = "") => {
@@ -5136,20 +5136,21 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5136
5136
  hashAutoscrollTopMargin: p = 0,
5137
5137
  forceDefaultLinkTarget: g,
5138
5138
  inheritBrandingStyles: m = !1,
5139
- addColorBlocks: b = !1
5139
+ addColorBlocks: b = !1,
5140
+ replaceLinkDomains: D = []
5140
5141
  }) => {
5141
- const S = Jt(null), [q, E] = ea([]), w = ra(() => {
5142
- var C;
5142
+ const T = nt(null), E = nt(!1), [w, q] = ea([]), L = ra(() => {
5143
+ var N;
5143
5144
  try {
5144
- const { hash: R } = window.location;
5145
- if (S.current && R) {
5146
- const j = (C = S.current) == null ? void 0 : C.querySelector(R);
5147
- j && setTimeout(() => {
5145
+ const { hash: z } = window.location;
5146
+ if (T.current && z) {
5147
+ const H = (N = T.current) == null ? void 0 : N.querySelector(z);
5148
+ H && setTimeout(() => {
5148
5149
  window.scrollTo({
5149
- top: j.getBoundingClientRect().top - p,
5150
+ top: H.getBoundingClientRect().top - p,
5150
5151
  behavior: "smooth"
5151
- }), j.classList.add("highlight"), setTimeout(() => {
5152
- j.classList.remove("highlight");
5152
+ }), H.classList.add("highlight"), setTimeout(() => {
5153
+ H.classList.remove("highlight");
5153
5154
  }, 5e3);
5154
5155
  }, 500);
5155
5156
  }
@@ -5157,92 +5158,104 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5157
5158
  }
5158
5159
  }, [p]);
5159
5160
  ta(() => {
5160
- if (!S.current)
5161
+ if (!T.current || E.current)
5161
5162
  return;
5162
- const C = () => {
5163
- if (!S.current || !t)
5163
+ const N = () => {
5164
+ if (!T.current || !t)
5164
5165
  return;
5165
- const N = S.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5166
- N.length > 0 && N.forEach((r) => {
5167
- const { textContent: n = "" } = r;
5168
- (n || "").length > 0 && (r.id = r.id || _t(
5169
- (n || "").toLowerCase().replace(/\s/g, "-")
5166
+ const a = T.current.querySelectorAll("h1, h2, h3, h4, h5, h6") || [];
5167
+ a.length > 0 && a.forEach((d) => {
5168
+ const { textContent: o = "" } = d;
5169
+ (o || "").length > 0 && (d.id = d.id || kt(
5170
+ (o || "").toLowerCase().replace(/\s/g, "-")
5170
5171
  ));
5171
- }), E((r) => [...r, ...N]);
5172
- }, R = () => {
5173
- if (!S.current || !g)
5172
+ }), q((d) => [...d, ...a]);
5173
+ }, z = () => {
5174
+ if (!T.current || !g)
5174
5175
  return;
5175
- const N = S.current.querySelectorAll("a") || [];
5176
- if (N.length > 0) {
5177
- const r = window.origin;
5178
- N.forEach((n) => {
5179
- const { href: a } = n;
5180
- a.startsWith(r) ? delete n.target : n.target = "_blank";
5176
+ const a = T.current.querySelectorAll("a") || [];
5177
+ if (a.length > 0) {
5178
+ const d = window.origin;
5179
+ a.forEach((o) => {
5180
+ const { href: f } = o;
5181
+ f.startsWith(d) ? delete o.target : o.target = "_blank";
5181
5182
  });
5182
5183
  }
5183
- }, j = () => {
5184
- S.current && (S.current.querySelectorAll("a") || []).forEach((N) => {
5185
- const { href: r } = N;
5186
- r.startsWith("mailto:") && (N.target = "_blank");
5184
+ }, H = () => {
5185
+ T.current && (T.current.querySelectorAll("a") || []).forEach((a) => {
5186
+ const { href: d } = a;
5187
+ d.startsWith("mailto:") && (a.target = "_blank");
5187
5188
  });
5188
5189
  }, O = () => {
5189
- if (!S.current)
5190
+ if (!T.current)
5190
5191
  return;
5191
- const N = S.current.querySelectorAll(
5192
- wt
5192
+ const a = T.current.querySelectorAll(
5193
+ yt
5193
5194
  );
5194
- N.length > 0 && (_r.isDefined("highlightjs") || (fi(), _r([...Yn, ...Xn], "highlightjs")), _r.ready("highlightjs", () => {
5195
+ a.length > 0 && (_r.isDefined("highlightjs") || (fi(), _r([...Yn, ...Xn], "highlightjs")), _r.ready("highlightjs", () => {
5195
5196
  window.hljs.configure({
5196
5197
  languages: Jn,
5197
5198
  useBr: !0
5198
- }), N.forEach((r) => {
5199
- const n = r.innerText, a = document.createElement(Zn), d = Kt(n);
5200
- a.textContent = d, r.innerHTML = "", r.appendChild(a), window.hljs.highlightBlock(r);
5201
- }), E((r) => [...r, ...N]);
5199
+ }), a.forEach((d) => {
5200
+ const o = d.innerText, f = document.createElement(Zn), c = Qt(o);
5201
+ f.textContent = c, d.innerHTML = "", d.appendChild(f), window.hljs.highlightBlock(d);
5202
+ }), q((d) => [...d, ...a]);
5202
5203
  }));
5204
+ }, r = () => {
5205
+ D.length !== 0 && D.forEach(({ domainToReplace: a, domainToReplaceWith: d }) => {
5206
+ if (!T.current)
5207
+ return;
5208
+ const o = T.current.querySelectorAll("a") || [];
5209
+ o.length > 0 && o.forEach((f) => {
5210
+ const { href: c } = f, h = new URL(c), { hostname: A } = h;
5211
+ if (!(A !== a || h.pathname === "/"))
5212
+ if (d === "") {
5213
+ const _ = `${h.pathname}${h.search}${h.hash}`;
5214
+ f.href = _;
5215
+ } else
5216
+ f.href = c.replace(a, d);
5217
+ });
5218
+ });
5203
5219
  };
5204
- s && w();
5205
- const x = () => {
5206
- C(), R(), j(), O();
5207
- };
5208
- setTimeout(() => {
5209
- x();
5210
- }, 1);
5220
+ s && L(), requestAnimationFrame(() => {
5221
+ N(), z(), H(), O(), r();
5222
+ }), E.current = !0;
5211
5223
  }, [
5212
- S,
5224
+ T,
5213
5225
  t,
5214
5226
  g,
5215
5227
  s,
5216
- w
5228
+ D,
5229
+ L
5217
5230
  ]);
5218
- const D = aa(() => {
5219
- const C = i && typeof i == "string" ? i.toLowerCase() : "html";
5220
- let R = C === "text" ? `<p>${e}</p>` : li(e, C);
5221
- return b && (R = oi(R)), R = pi(R), di(R);
5231
+ const j = aa(() => {
5232
+ const N = i && typeof i == "string" ? i.toLowerCase() : "html";
5233
+ let z = N === "text" ? `<p>${e}</p>` : li(e, N);
5234
+ return b && (z = oi(z)), z = pi(z), di(z);
5222
5235
  }, [e, i, b]);
5223
- return /* @__PURE__ */ Xt(Zt, { children: [
5236
+ return /* @__PURE__ */ Zt(Jt, { children: [
5224
5237
  /* @__PURE__ */ yr(
5225
5238
  gi,
5226
5239
  {
5227
5240
  className: `content-renderer ${u === "page" ? "fr-view pages-text" : ""}`,
5228
- ref: S,
5241
+ ref: T,
5229
5242
  widgetType: u,
5230
5243
  createAnchors: t,
5231
5244
  dangerouslySetInnerHTML: {
5232
- __html: D
5245
+ __html: j
5233
5246
  },
5234
5247
  inheritBrandingStyles: m
5235
5248
  }
5236
5249
  ),
5237
- q.map((C) => {
5238
- let R = C.textContent || "";
5239
- return C.tagName !== wt && (R = `${window.location.href.split("#")[0]}#${C.id}`), R = _t(R), na.createPortal(
5240
- /* @__PURE__ */ yr(hi, { className: "content-copy-btn", children: /* @__PURE__ */ yr(ia, { clipboardContent: R }) }),
5241
- C
5250
+ w.map((N) => {
5251
+ let z = N.textContent || "";
5252
+ return N.tagName !== yt && (z = `${window.location.href.split("#")[0]}#${N.id}`), z = kt(z), na.createPortal(
5253
+ /* @__PURE__ */ yr(hi, { className: "content-copy-btn", children: /* @__PURE__ */ yr(ia, { clipboardContent: z }) }),
5254
+ N
5242
5255
  );
5243
5256
  })
5244
5257
  ] });
5245
- }, hi = kt.div`
5258
+ }, hi = Et.div`
5246
5259
  position: relative;
5247
5260
  display: inline-block;
5248
5261
  margin-left: var(--space-xs);
@@ -5262,7 +5275,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5262
5275
  font-size: 12px;
5263
5276
  line-height: 16px;
5264
5277
  }
5265
- `, gi = kt(ua).attrs({ as: "div" })`
5278
+ `, gi = Et(ua).attrs({ as: "div" })`
5266
5279
  ${({ createAnchors: e }) => e ? `
5267
5280
  h1, h2, h3, h4, h5, h6 {
5268
5281
  :hover button {
@@ -5395,10 +5408,11 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5395
5408
  tr > td:first-child { border-left-width: 1px; }
5396
5409
  tr > td:last-child { border-right-width: 1px; }
5397
5410
  }
5411
+ &.no-borders > tbody > tr >, // (no-borders is the legacy class)
5398
5412
  &.invisible-borders > tbody > tr > {
5399
5413
  td:not(.fr-selected-cell) {
5400
5414
  // keeping a transparent border so that selection doesn't push things by 1 pixel
5401
- border: 1px dashed transparent;
5415
+ border: 0.5px dashed transparent;
5402
5416
  }
5403
5417
  }
5404
5418
  &.alternating-rows > tbody > {
@@ -5429,7 +5443,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5429
5443
  }
5430
5444
  }
5431
5445
 
5432
- ${({ widgetType: e, inheritBrandingStyles: i }) => e === "page" ? "" : nt`
5446
+ ${({ widgetType: e, inheritBrandingStyles: i }) => e === "page" ? "" : it`
5433
5447
  * {
5434
5448
  font-family: ${sa};
5435
5449
  }
@@ -5607,7 +5621,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5607
5621
  }
5608
5622
  `}
5609
5623
 
5610
- ${({ widgetType: e, inheritBrandingStyles: i }) => e === "article" && nt`
5624
+ ${({ widgetType: e, inheritBrandingStyles: i }) => e === "article" && it`
5611
5625
  h1 {
5612
5626
  font-family: ${i ? "var(--channels-h1-font-family, revert)" : "revert"};
5613
5627
  & * {