@orangelogic/design-system 2.221.0 → 2.222.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- import { C as jn, I as Yn } from "./icon-button.BBLy-yj3.js";
2
- import { C as Un, n as me } from "./lib-cortex-element.CVMmyPMC.js";
3
- import { c as Gn } from "./custom-element.L4WJXn1j.js";
4
- import { L as Hn } from "./i18n.CXIpdSSZ.js";
5
- import { w as Ne } from "./watch.DJF5K-8U.js";
6
- import { s as Kn } from "./string.CfI2ejyR.js";
7
- import { i as mt, x as Wn } from "./lit-element.jLBm65_O.js";
8
- import { r as Zn } from "./state.CSDxrqLd.js";
9
- import { o as Vn } from "./unsafe-html.Dff7-rCx.js";
10
- import { c as Ot } from "./_commonjsHelpers.DQNKXVTB.js";
11
- class Qn extends Un {
1
+ import { C as Zn, I as Vn } from "./icon-button.BBLy-yj3.js";
2
+ import { C as Qn, n as ce } from "./lib-cortex-element.CVMmyPMC.js";
3
+ import { c as Xn } from "./custom-element.L4WJXn1j.js";
4
+ import { L as Jn } from "./i18n.CXIpdSSZ.js";
5
+ import { w as Le } from "./watch.DJF5K-8U.js";
6
+ import { s as er } from "./string.CfI2ejyR.js";
7
+ import { i as xt, x as tr } from "./lit-element.jLBm65_O.js";
8
+ import { r as nr } from "./state.CSDxrqLd.js";
9
+ import { o as rr } from "./unsafe-html.Dff7-rCx.js";
10
+ import { c as Mt } from "./_commonjsHelpers.DQNKXVTB.js";
11
+ class ir extends Qn {
12
12
  constructor() {
13
13
  super(), this.#e();
14
14
  }
@@ -20,7 +20,7 @@ class Qn extends Un {
20
20
  * CortexLightElement applies the styles of a component to the Light DOM.
21
21
  */
22
22
  #e() {
23
- if (!Xn(this.constructor))
23
+ if (!ar(this.constructor))
24
24
  return;
25
25
  const t = `${this.constructor.name}-styles`;
26
26
  if (!document.getElementById(t)) {
@@ -32,7 +32,7 @@ class Qn extends Un {
32
32
  }
33
33
  }
34
34
  }
35
- function Xn(e) {
35
+ function ar(e) {
36
36
  return e.styles !== void 0;
37
37
  }
38
38
  /*! js-yaml 5.2.3 https://github.com/nodeca/js-yaml @license MIT */
@@ -50,7 +50,7 @@ function O(e, t) {
50
50
  representTagName: t.representTagName ?? null
51
51
  };
52
52
  }
53
- function xt(e, t) {
53
+ function bt(e, t) {
54
54
  const n = t.finalize === void 0;
55
55
  return {
56
56
  tagName: e,
@@ -66,7 +66,7 @@ function xt(e, t) {
66
66
  representTagName: t.representTagName ?? null
67
67
  };
68
68
  }
69
- function qe(e, t) {
69
+ function Ue(e, t) {
70
70
  const n = t.finalize === void 0;
71
71
  return {
72
72
  tagName: e,
@@ -85,16 +85,16 @@ function qe(e, t) {
85
85
  representTagName: t.representTagName ?? null
86
86
  };
87
87
  }
88
- var Jn = O("tag:yaml.org,2002:str", {
88
+ var or = O("tag:yaml.org,2002:str", {
89
89
  resolve: (e) => e,
90
90
  identify: (e) => typeof e == "string"
91
- }), er = [
91
+ }), sr = [
92
92
  "",
93
93
  "~",
94
94
  "null",
95
95
  "Null",
96
96
  "NULL"
97
- ], tr = O("tag:yaml.org,2002:null", {
97
+ ], lr = O("tag:yaml.org,2002:null", {
98
98
  implicit: !0,
99
99
  implicitFirstChars: [
100
100
  "",
@@ -102,22 +102,22 @@ var Jn = O("tag:yaml.org,2002:str", {
102
102
  "n",
103
103
  "N"
104
104
  ],
105
- resolve: (e) => er.indexOf(e) !== -1 ? null : C,
105
+ resolve: (e) => sr.indexOf(e) !== -1 ? null : C,
106
106
  identify: (e) => e === null,
107
107
  represent: () => "null"
108
- }), nr = O("tag:yaml.org,2002:null", {
108
+ }), cr = O("tag:yaml.org,2002:null", {
109
109
  implicit: !0,
110
110
  implicitFirstChars: ["n"],
111
111
  resolve: (e, t) => e === "null" || t && e === "" ? null : C,
112
112
  identify: (e) => e === null,
113
113
  represent: () => "null"
114
- }), rr = [
114
+ }), ur = [
115
115
  "",
116
116
  "~",
117
117
  "null",
118
118
  "Null",
119
119
  "NULL"
120
- ], ir = O("tag:yaml.org,2002:null", {
120
+ ], pr = O("tag:yaml.org,2002:null", {
121
121
  implicit: !0,
122
122
  implicitFirstChars: [
123
123
  "",
@@ -125,18 +125,18 @@ var Jn = O("tag:yaml.org,2002:str", {
125
125
  "n",
126
126
  "N"
127
127
  ],
128
- resolve: (e) => rr.indexOf(e) !== -1 ? null : C,
128
+ resolve: (e) => ur.indexOf(e) !== -1 ? null : C,
129
129
  identify: (e) => e === null,
130
130
  represent: () => "null"
131
- }), ar = [
131
+ }), hr = [
132
132
  "true",
133
133
  "True",
134
134
  "TRUE"
135
- ], or = [
135
+ ], fr = [
136
136
  "false",
137
137
  "False",
138
138
  "FALSE"
139
- ], sr = O("tag:yaml.org,2002:bool", {
139
+ ], dr = O("tag:yaml.org,2002:bool", {
140
140
  implicit: !0,
141
141
  implicitFirstChars: [
142
142
  "t",
@@ -144,16 +144,16 @@ var Jn = O("tag:yaml.org,2002:str", {
144
144
  "f",
145
145
  "F"
146
146
  ],
147
- resolve: (e) => ar.indexOf(e) !== -1 ? !0 : or.indexOf(e) !== -1 ? !1 : C,
147
+ resolve: (e) => hr.indexOf(e) !== -1 ? !0 : fr.indexOf(e) !== -1 ? !1 : C,
148
148
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
149
149
  represent: (e) => e ? "true" : "false"
150
- }), lr = ["true"], cr = ["false"], ur = O("tag:yaml.org,2002:bool", {
150
+ }), gr = ["true"], mr = ["false"], xr = O("tag:yaml.org,2002:bool", {
151
151
  implicit: !0,
152
152
  implicitFirstChars: ["t", "f"],
153
- resolve: (e) => lr.indexOf(e) !== -1 ? !0 : cr.indexOf(e) !== -1 ? !1 : C,
153
+ resolve: (e) => gr.indexOf(e) !== -1 ? !0 : mr.indexOf(e) !== -1 ? !1 : C,
154
154
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
155
155
  represent: (e) => e ? "true" : "false"
156
- }), pr = [
156
+ }), kr = [
157
157
  "true",
158
158
  "True",
159
159
  "TRUE",
@@ -165,7 +165,7 @@ var Jn = O("tag:yaml.org,2002:str", {
165
165
  "on",
166
166
  "On",
167
167
  "ON"
168
- ], hr = [
168
+ ], br = [
169
169
  "false",
170
170
  "False",
171
171
  "FALSE",
@@ -177,7 +177,7 @@ var Jn = O("tag:yaml.org,2002:str", {
177
177
  "off",
178
178
  "Off",
179
179
  "OFF"
180
- ], fr = O("tag:yaml.org,2002:bool", {
180
+ ], yr = O("tag:yaml.org,2002:bool", {
181
181
  implicit: !0,
182
182
  implicitFirstChars: [
183
183
  "y",
@@ -191,51 +191,51 @@ var Jn = O("tag:yaml.org,2002:str", {
191
191
  "o",
192
192
  "O"
193
193
  ],
194
- resolve: (e) => pr.indexOf(e) !== -1 ? !0 : hr.indexOf(e) !== -1 ? !1 : C,
194
+ resolve: (e) => kr.indexOf(e) !== -1 ? !0 : br.indexOf(e) !== -1 ? !1 : C,
195
195
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
196
196
  represent: (e) => e ? "true" : "false"
197
- }), gr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), dr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
198
- function mr(e) {
197
+ }), wr = /* @__PURE__ */ new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), vr = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
198
+ function Ar(e) {
199
199
  let t = e, n = 1;
200
200
  return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
201
201
  }
202
- function kr(e, t) {
202
+ function Sr(e, t) {
203
203
  if (t) {
204
- if (!dr.test(e)) return C;
205
- } else if (!gr.test(e)) return C;
206
- const n = mr(e);
204
+ if (!vr.test(e)) return C;
205
+ } else if (!wr.test(e)) return C;
206
+ const n = Ar(e);
207
207
  return Number.isFinite(n) ? n : C;
208
208
  }
209
- var on = O("tag:yaml.org,2002:int", {
209
+ var sn = O("tag:yaml.org,2002:int", {
210
210
  implicit: !0,
211
211
  implicitFirstChars: [
212
212
  "-",
213
213
  "+",
214
214
  ..."0123456789"
215
215
  ],
216
- resolve: kr,
216
+ resolve: Sr,
217
217
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
218
218
  represent: (e) => e.toString(10)
219
- }), xr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), br = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
220
- function yr(e) {
219
+ }), Tr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)$"), Er = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
220
+ function Cr(e) {
221
221
  let t = e, n = 1;
222
222
  return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
223
223
  }
224
- function wr(e, t) {
224
+ function $r(e, t) {
225
225
  if (t) {
226
- if (!br.test(e)) return C;
227
- } else if (!xr.test(e)) return C;
228
- const n = yr(e);
226
+ if (!Er.test(e)) return C;
227
+ } else if (!Tr.test(e)) return C;
228
+ const n = Cr(e);
229
229
  return Number.isFinite(n) ? n : C;
230
230
  }
231
- var vr = O("tag:yaml.org,2002:int", {
231
+ var _r = O("tag:yaml.org,2002:int", {
232
232
  implicit: !0,
233
233
  implicitFirstChars: ["-", ..."0123456789"],
234
- resolve: wr,
234
+ resolve: $r,
235
235
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
236
236
  represent: (e) => e.toString(10)
237
- }), Ar = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
238
- function Sr(e) {
237
+ }), Ir = /* @__PURE__ */ new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
238
+ function Fr(e) {
239
239
  let t = e.replace(/_/g, ""), n = 1;
240
240
  if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
241
241
  if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
@@ -246,32 +246,32 @@ function Sr(e) {
246
246
  }
247
247
  return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
248
248
  }
249
- function Tr(e) {
250
- if (!Ar.test(e)) return C;
251
- const t = Sr(e);
249
+ function Rr(e) {
250
+ if (!Ir.test(e)) return C;
251
+ const t = Fr(e);
252
252
  return Number.isFinite(t) ? t : C;
253
253
  }
254
- var rt = O("tag:yaml.org,2002:int", {
254
+ var ot = O("tag:yaml.org,2002:int", {
255
255
  implicit: !0,
256
256
  implicitFirstChars: [
257
257
  "-",
258
258
  "+",
259
259
  ..."0123456789"
260
260
  ],
261
- resolve: Tr,
261
+ resolve: Rr,
262
262
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
263
263
  represent: (e) => e.toString(10)
264
- }), Er = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Cr = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
265
- function _r(e) {
266
- if (!Er.test(e)) return C;
264
+ }), Nr = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Lr = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
265
+ function Pr(e) {
266
+ if (!Nr.test(e)) return C;
267
267
  let t = e.toLowerCase();
268
268
  const n = t[0] === "-" ? -1 : 1;
269
269
  if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
270
270
  if (t === ".nan") return NaN;
271
271
  const r = n * parseFloat(t);
272
- return Number.isFinite(r) || Cr.test(e) ? r : C;
272
+ return Number.isFinite(r) || Lr.test(e) ? r : C;
273
273
  }
274
- function $r(e) {
274
+ function Or(e) {
275
275
  if (isNaN(e)) return ".nan";
276
276
  if (e === Number.POSITIVE_INFINITY) return ".inf";
277
277
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -279,7 +279,7 @@ function $r(e) {
279
279
  const t = e.toString(10);
280
280
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
281
281
  }
282
- var sn = O("tag:yaml.org,2002:float", {
282
+ var ln = O("tag:yaml.org,2002:float", {
283
283
  implicit: !0,
284
284
  implicitFirstChars: [
285
285
  "-",
@@ -287,13 +287,13 @@ var sn = O("tag:yaml.org,2002:float", {
287
287
  ".",
288
288
  ..."0123456789"
289
289
  ],
290
- resolve: _r,
290
+ resolve: Pr,
291
291
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
292
- represent: $r
293
- }), Fr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Ir = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
294
- function Rr(e, t) {
292
+ represent: Or
293
+ }), Mr = /* @__PURE__ */ new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), zr = /* @__PURE__ */ new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
294
+ function Br(e, t) {
295
295
  if (t) {
296
- if (!Ir.test(e)) return C;
296
+ if (!zr.test(e)) return C;
297
297
  let r = e.toLowerCase();
298
298
  const i = r[0] === "-" ? -1 : 1;
299
299
  if ("+-".includes(r[0]) && (r = r.slice(1)), r === ".inf") return i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
@@ -301,11 +301,11 @@ function Rr(e, t) {
301
301
  const a = i * parseFloat(r);
302
302
  return Number.isFinite(a) ? a : C;
303
303
  }
304
- if (!Fr.test(e)) return C;
304
+ if (!Mr.test(e)) return C;
305
305
  const n = Number(e);
306
306
  return Number.isFinite(n) ? n : C;
307
307
  }
308
- function Nr(e) {
308
+ function Dr(e) {
309
309
  if (isNaN(e)) return ".nan";
310
310
  if (e === Number.POSITIVE_INFINITY) return ".inf";
311
311
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -313,15 +313,15 @@ function Nr(e) {
313
313
  const t = e.toString(10);
314
314
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
315
315
  }
316
- var Lr = O("tag:yaml.org,2002:float", {
316
+ var qr = O("tag:yaml.org,2002:float", {
317
317
  implicit: !0,
318
318
  implicitFirstChars: ["-", ..."0123456789"],
319
- resolve: Rr,
319
+ resolve: Br,
320
320
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
321
- represent: Nr
322
- }), Pr = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Or = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
323
- function zr(e) {
324
- if (!Pr.test(e)) return C;
321
+ represent: Dr
322
+ }), jr = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Yr = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
323
+ function Ur(e) {
324
+ if (!jr.test(e)) return C;
325
325
  let t = e.toLowerCase().replace(/_/g, "");
326
326
  const n = t[0] === "-" ? -1 : 1;
327
327
  if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
@@ -331,9 +331,9 @@ function zr(e) {
331
331
  for (const i of t.split(":")) r = r * 60 + Number(i);
332
332
  r *= n;
333
333
  } else r = n * parseFloat(t);
334
- return Number.isFinite(r) || Or.test(e) ? r : C;
334
+ return Number.isFinite(r) || Yr.test(e) ? r : C;
335
335
  }
336
- function Mr(e) {
336
+ function Hr(e) {
337
337
  if (isNaN(e)) return ".nan";
338
338
  if (e === Number.POSITIVE_INFINITY) return ".inf";
339
339
  if (e === Number.NEGATIVE_INFINITY) return "-.inf";
@@ -341,7 +341,7 @@ function Mr(e) {
341
341
  const t = e.toString(10);
342
342
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
343
343
  }
344
- var it = O("tag:yaml.org,2002:float", {
344
+ var st = O("tag:yaml.org,2002:float", {
345
345
  implicit: !0,
346
346
  implicitFirstChars: [
347
347
  "-",
@@ -349,38 +349,38 @@ var it = O("tag:yaml.org,2002:float", {
349
349
  ".",
350
350
  ..."0123456789"
351
351
  ],
352
- resolve: zr,
352
+ resolve: Ur,
353
353
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
354
- represent: Mr
355
- }), Br = O("tag:yaml.org,2002:merge", {
354
+ represent: Hr
355
+ }), Gr = O("tag:yaml.org,2002:merge", {
356
356
  implicit: !0,
357
357
  implicitFirstChars: ["<"],
358
358
  resolve: (e, t) => e === "<<" || t && e === "" ? kt : C
359
- }), Dr = /^[A-Za-z0-9+/]*={0,2}$/;
360
- function qr(e) {
359
+ }), Kr = /^[A-Za-z0-9+/]*={0,2}$/;
360
+ function Wr(e) {
361
361
  const t = e.replace(/\s/g, "");
362
- if (t.length % 4 !== 0 || !Dr.test(t)) return C;
362
+ if (t.length % 4 !== 0 || !Kr.test(t)) return C;
363
363
  const n = atob(t), r = new Uint8Array(n.length);
364
364
  for (let i = 0; i < n.length; i++) r[i] = n.charCodeAt(i);
365
365
  return r;
366
366
  }
367
- function jr(e) {
367
+ function Zr(e) {
368
368
  let t = "";
369
369
  for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
370
370
  return btoa(t);
371
371
  }
372
- var Yr = O("tag:yaml.org,2002:binary", {
373
- resolve: qr,
372
+ var Vr = O("tag:yaml.org,2002:binary", {
373
+ resolve: Wr,
374
374
  identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
375
- represent: jr
376
- }), Ur = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Gr = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
375
+ represent: Zr
376
+ }), Qr = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Xr = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
377
377
  function zt(e, t, n, r = 0, i = 0, a = 0, s = 0) {
378
378
  const o = new Date(Date.UTC(e, t, n, r, i, a, s));
379
379
  return o.setUTCFullYear(e, t, n), o;
380
380
  }
381
- function Hr(e) {
382
- let t = Ur.exec(e);
383
- if (t === null && (t = Gr.exec(e)), t === null) return C;
381
+ function Jr(e) {
382
+ let t = Qr.exec(e);
383
+ if (t === null && (t = Xr.exec(e)), t === null) return C;
384
384
  const n = +t[1], r = +t[2] - 1, i = +t[3];
385
385
  if (!t[4]) {
386
386
  const u = zt(n, r, i);
@@ -399,35 +399,35 @@ function Hr(e) {
399
399
  if (t[9]) {
400
400
  const u = +t[10], f = +(t[11] || 0);
401
401
  if (u > 23 || f > 59) return C;
402
- const g = (u * 60 + f) * 6e4;
403
- c.setTime(c.getTime() - (t[9] === "-" ? -g : g));
402
+ const d = (u * 60 + f) * 6e4;
403
+ c.setTime(c.getTime() - (t[9] === "-" ? -d : d));
404
404
  }
405
405
  return c;
406
406
  }
407
- var Kr = O("tag:yaml.org,2002:timestamp", {
407
+ var ei = O("tag:yaml.org,2002:timestamp", {
408
408
  implicit: !0,
409
409
  implicitFirstChars: [..."0123456789"],
410
- resolve: Hr,
410
+ resolve: Jr,
411
411
  identify: (e) => e instanceof Date,
412
412
  represent: (e) => e.toISOString()
413
- }), Wr = xt("tag:yaml.org,2002:seq", {
413
+ }), ti = bt("tag:yaml.org,2002:seq", {
414
414
  create: () => [],
415
415
  addItem: (e, t) => {
416
416
  e.push(t);
417
417
  },
418
418
  identify: Array.isArray
419
419
  });
420
- function je(e) {
420
+ function He(e) {
421
421
  if (e === null || typeof e != "object" || Array.isArray(e)) return !1;
422
422
  const t = Object.getPrototypeOf(e);
423
423
  return t === null || t === Object.prototype;
424
424
  }
425
- function Mt(e, t) {
425
+ function Bt(e, t) {
426
426
  const n = {};
427
427
  for (const r of t) e[r] !== void 0 && (n[r] = e[r]);
428
428
  return n;
429
429
  }
430
- var Zr = xt("tag:yaml.org,2002:omap", {
430
+ var ni = bt("tag:yaml.org,2002:omap", {
431
431
  create: () => ({
432
432
  list: [],
433
433
  seen: /* @__PURE__ */ new Set()
@@ -437,7 +437,7 @@ var Zr = xt("tag:yaml.org,2002:omap", {
437
437
  if (t instanceof Map) {
438
438
  if (t.size !== 1) return "cannot resolve an ordered map item";
439
439
  n = t.keys().next().value;
440
- } else if (je(t)) {
440
+ } else if (He(t)) {
441
441
  const r = Object.keys(t);
442
442
  if (r.length !== 1) return "cannot resolve an ordered map item";
443
443
  n = r[0];
@@ -445,7 +445,7 @@ var Zr = xt("tag:yaml.org,2002:omap", {
445
445
  return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
446
446
  },
447
447
  finalize: (e) => e.list
448
- }), Vr = xt("tag:yaml.org,2002:pairs", {
448
+ }), ri = bt("tag:yaml.org,2002:pairs", {
449
449
  create: () => [],
450
450
  addItem: (e, t) => {
451
451
  if (t instanceof Map)
@@ -454,9 +454,9 @@ var Zr = xt("tag:yaml.org,2002:omap", {
454
454
  const n = t, r = Object.keys(n);
455
455
  return r.length !== 1 ? "cannot resolve a pairs item" : (e.push([r[0], n[r[0]]]), "");
456
456
  }
457
- }), Qr = qe("tag:yaml.org,2002:map", {
457
+ }), ii = Ue("tag:yaml.org,2002:map", {
458
458
  create: () => ({}),
459
- identify: je,
459
+ identify: He,
460
460
  represent: (e) => {
461
461
  const t = /* @__PURE__ */ new Map();
462
462
  for (const n of Object.keys(e)) t.set(n, e[n]);
@@ -478,7 +478,7 @@ var Zr = xt("tag:yaml.org,2002:omap", {
478
478
  const n = String(t);
479
479
  return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
480
480
  }
481
- }), Xr = qe("tag:yaml.org,2002:set", {
481
+ }), ai = Ue("tag:yaml.org,2002:set", {
482
482
  create: () => /* @__PURE__ */ new Set(),
483
483
  identify: (e) => e instanceof Set,
484
484
  represent: (e) => {
@@ -491,21 +491,21 @@ var Zr = xt("tag:yaml.org,2002:omap", {
491
491
  keys: (e) => e.keys(),
492
492
  get: () => null
493
493
  });
494
- function Jr() {
494
+ function oi() {
495
495
  return {
496
496
  scalar: /* @__PURE__ */ Object.create(null),
497
497
  sequence: /* @__PURE__ */ Object.create(null),
498
498
  mapping: /* @__PURE__ */ Object.create(null)
499
499
  };
500
500
  }
501
- function ei() {
501
+ function si() {
502
502
  return {
503
503
  scalar: [],
504
504
  sequence: [],
505
505
  mapping: []
506
506
  };
507
507
  }
508
- function ti(e) {
508
+ function li(e) {
509
509
  const t = [];
510
510
  for (const n of e) {
511
511
  let r = t.length;
@@ -520,7 +520,7 @@ function ti(e) {
520
520
  }
521
521
  return t;
522
522
  }
523
- var Ye = class ln {
523
+ var Ge = class cn {
524
524
  tags;
525
525
  implicitScalarTags;
526
526
  implicitScalarByFirstChar;
@@ -531,7 +531,7 @@ var Ye = class ln {
531
531
  exact;
532
532
  prefix;
533
533
  constructor(t) {
534
- const n = ti(t), r = [], i = Jr(), a = ei();
534
+ const n = li(t), r = [], i = oi(), a = si();
535
535
  for (const u of n) {
536
536
  if (u.nodeKind === "scalar" && u.implicit) {
537
537
  if (u.matchByTagPrefix) throw new Error("Implicit scalar tags cannot match by tag prefix");
@@ -560,46 +560,46 @@ var Ye = class ln {
560
560
  withTags(...t) {
561
561
  let n = [];
562
562
  for (const r of t) n = n.concat(r);
563
- return new ln([...this.tags, ...n]);
563
+ return new cn([...this.tags, ...n]);
564
564
  }
565
- }, bt = new Ye([
566
- Jn,
567
- Wr,
568
- Qr
565
+ }, yt = new Ge([
566
+ or,
567
+ ti,
568
+ ii
569
569
  ]);
570
- new Ye([
571
- ...bt.tags,
572
- nr,
573
- ur,
574
- vr,
575
- Lr
570
+ new Ge([
571
+ ...yt.tags,
572
+ cr,
573
+ xr,
574
+ _r,
575
+ qr
576
576
  ]);
577
- var ni = new Ye([
578
- ...bt.tags,
579
- tr,
580
- sr,
581
- on,
582
- sn
583
- ]), ri = new Ye([
584
- ...bt.tags,
585
- ir,
586
- fr,
587
- rt,
588
- it,
589
- Kr,
590
- Br,
591
- Yr,
592
- Zr,
577
+ var ci = new Ge([
578
+ ...yt.tags,
579
+ lr,
580
+ dr,
581
+ sn,
582
+ ln
583
+ ]), ui = new Ge([
584
+ ...yt.tags,
585
+ pr,
586
+ yr,
587
+ ot,
588
+ st,
589
+ ei,
590
+ Gr,
593
591
  Vr,
594
- Xr
592
+ ni,
593
+ ri,
594
+ ai
595
595
  ]);
596
- qe("tag:yaml.org,2002:map", {
596
+ Ue("tag:yaml.org,2002:map", {
597
597
  create: () => /* @__PURE__ */ new Map(),
598
598
  addPair: (e, t, n) => (e.set(t, n), ""),
599
599
  has: (e, t) => e.has(t),
600
600
  keys: (e) => e.keys(),
601
601
  get: (e, t) => e.get(t),
602
- identify: (e) => e instanceof Map || je(e),
602
+ identify: (e) => e instanceof Map || He(e),
603
603
  represent: (e) => {
604
604
  if (e instanceof Map) return e;
605
605
  const t = /* @__PURE__ */ new Map(), n = e;
@@ -607,7 +607,7 @@ qe("tag:yaml.org,2002:map", {
607
607
  return t;
608
608
  }
609
609
  });
610
- function Bt(e) {
610
+ function Dt(e) {
611
611
  if (Array.isArray(e)) {
612
612
  const t = Array.prototype.slice.call(e);
613
613
  for (let n = 0; n < t.length; n++) {
@@ -618,16 +618,16 @@ function Bt(e) {
618
618
  }
619
619
  return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
620
620
  }
621
- qe("tag:yaml.org,2002:map", {
621
+ Ue("tag:yaml.org,2002:map", {
622
622
  create: () => ({}),
623
- identify: je,
623
+ identify: He,
624
624
  represent: (e) => {
625
625
  const t = /* @__PURE__ */ new Map();
626
626
  for (const n of Object.keys(e)) t.set(n, e[n]);
627
627
  return t;
628
628
  },
629
629
  addPair: (e, t, n) => {
630
- const r = Bt(t);
630
+ const r = Dt(t);
631
631
  return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
632
632
  value: n,
633
633
  enumerable: !0,
@@ -636,7 +636,7 @@ qe("tag:yaml.org,2002:map", {
636
636
  }) : e[r] = n, "");
637
637
  },
638
638
  has: (e, t) => {
639
- const n = Bt(t);
639
+ const n = Dt(t);
640
640
  return n !== null && Object.prototype.hasOwnProperty.call(e, n);
641
641
  },
642
642
  keys: (e) => Object.keys(e),
@@ -645,13 +645,13 @@ qe("tag:yaml.org,2002:map", {
645
645
  return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
646
646
  }
647
647
  });
648
- var ii = {
648
+ var pi = {
649
649
  maxLength: 79,
650
650
  indent: 1,
651
651
  linesBefore: 3,
652
652
  linesAfter: 2
653
653
  };
654
- function Ze(e, t, n, r, i) {
654
+ function Xe(e, t, n, r, i) {
655
655
  let a = "", s = "";
656
656
  const o = Math.floor(i / 2) - 1;
657
657
  return r - t > o && (a = " ... ", t = r - o + a.length), n - r > o && (s = " ...", n = r + o - s.length), {
@@ -659,13 +659,13 @@ function Ze(e, t, n, r, i) {
659
659
  pos: r - t + a.length
660
660
  };
661
661
  }
662
- function Ve(e, t) {
662
+ function Je(e, t) {
663
663
  return " ".repeat(Math.max(t - e.length, 0)) + e;
664
664
  }
665
- function ai(e, t) {
665
+ function hi(e, t) {
666
666
  if (!e.buffer) return null;
667
667
  const n = {
668
- ...ii,
668
+ ...pi,
669
669
  ...t
670
670
  }, r = /\r?\n|\r|\0/g, i = [0], a = [];
671
671
  let s, o = -1;
@@ -674,39 +674,39 @@ function ai(e, t) {
674
674
  o < 0 && (o = i.length - 1);
675
675
  let l = "";
676
676
  const c = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + c + 3);
677
- for (let g = 1; g <= n.linesBefore && !(o - g < 0); g++) {
678
- const y = Ze(e.buffer, i[o - g], a[o - g], e.position - (i[o] - i[o - g]), u);
679
- l = `${" ".repeat(n.indent)}${Ve((e.line - g + 1).toString(), c)} | ${y.str}
677
+ for (let d = 1; d <= n.linesBefore && !(o - d < 0); d++) {
678
+ const y = Xe(e.buffer, i[o - d], a[o - d], e.position - (i[o] - i[o - d]), u);
679
+ l = `${" ".repeat(n.indent)}${Je((e.line - d + 1).toString(), c)} | ${y.str}
680
680
  ${l}`;
681
681
  }
682
- const f = Ze(e.buffer, i[o], a[o], e.position, u);
683
- l += `${" ".repeat(n.indent)}${Ve((e.line + 1).toString(), c)} | ${f.str}
682
+ const f = Xe(e.buffer, i[o], a[o], e.position, u);
683
+ l += `${" ".repeat(n.indent)}${Je((e.line + 1).toString(), c)} | ${f.str}
684
684
  `, l += `${"-".repeat(n.indent + c + 3 + f.pos)}^
685
685
  `;
686
- for (let g = 1; g <= n.linesAfter && !(o + g >= a.length); g++) {
687
- const y = Ze(e.buffer, i[o + g], a[o + g], e.position - (i[o] - i[o + g]), u);
688
- l += `${" ".repeat(n.indent)}${Ve((e.line + g + 1).toString(), c)} | ${y.str}
686
+ for (let d = 1; d <= n.linesAfter && !(o + d >= a.length); d++) {
687
+ const y = Xe(e.buffer, i[o + d], a[o + d], e.position - (i[o] - i[o + d]), u);
688
+ l += `${" ".repeat(n.indent)}${Je((e.line + d + 1).toString(), c)} | ${y.str}
689
689
  `;
690
690
  }
691
691
  return l.replace(/\n$/, "");
692
692
  }
693
- function Dt(e, t) {
693
+ function qt(e, t) {
694
694
  let n = "";
695
695
  return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `
696
696
 
697
697
  ${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
698
698
  }
699
- var Le = class extends Error {
699
+ var Pe = class extends Error {
700
700
  reason;
701
701
  mark;
702
702
  constructor(e, t) {
703
- super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Dt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
703
+ super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = qt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
704
704
  }
705
705
  toString(e) {
706
- return `${this.name}: ${Dt(this, e)}`;
706
+ return `${this.name}: ${qt(this, e)}`;
707
707
  }
708
708
  };
709
- function Ue(e, t, n, r = "") {
709
+ function Ke(e, t, n, r = "") {
710
710
  let i = 0, a = 0;
711
711
  for (let o = 0; o < t; o++) {
712
712
  const l = e.charCodeAt(o);
@@ -719,10 +719,10 @@ function Ue(e, t, n, r = "") {
719
719
  line: i,
720
720
  column: t - a
721
721
  };
722
- throw s.snippet = ai(s), new Le(n, s);
722
+ throw s.snippet = hi(s), new Pe(n, s);
723
723
  }
724
- var oi = -1;
725
- function qt(e) {
724
+ var fi = -1;
725
+ function jt(e) {
726
726
  switch (e) {
727
727
  case 48:
728
728
  return "\0";
@@ -765,19 +765,19 @@ function qt(e) {
765
765
  return "";
766
766
  }
767
767
  }
768
- var cn = new Array(256), un = new Array(256);
768
+ var un = new Array(256), pn = new Array(256);
769
769
  for (let e = 0; e < 256; e++)
770
- cn[e] = qt(e) ? 1 : 0, un[e] = qt(e);
771
- function si(e) {
770
+ un[e] = jt(e) ? 1 : 0, pn[e] = jt(e);
771
+ function di(e) {
772
772
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
773
773
  }
774
- function li(e) {
774
+ function gi(e) {
775
775
  return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
776
776
  }
777
- function ci(e) {
777
+ function mi(e) {
778
778
  return e === 120 ? 2 : e === 117 ? 4 : 8;
779
779
  }
780
- function Pe(e, t, n) {
780
+ function Oe(e, t, n) {
781
781
  let r = 0;
782
782
  for (; t < n; ) {
783
783
  const i = e.charCodeAt(t);
@@ -793,24 +793,24 @@ function Pe(e, t, n) {
793
793
  breaks: r
794
794
  };
795
795
  }
796
- function yt(e) {
796
+ function wt(e) {
797
797
  return e === 1 ? " " : `
798
798
  `.repeat(e - 1);
799
799
  }
800
- function ui(e, t, n) {
800
+ function xi(e, t, n) {
801
801
  let r = "", i = t, a = t, s = t;
802
802
  for (; i < n; ) {
803
803
  const o = e.charCodeAt(i);
804
804
  if (o === 10 || o === 13) {
805
805
  r += e.slice(a, s);
806
- const l = Pe(e, i, n);
807
- r += yt(l.breaks), i = a = s = l.position;
806
+ const l = Oe(e, i, n);
807
+ r += wt(l.breaks), i = a = s = l.position;
808
808
  } else
809
809
  i++, o !== 32 && o !== 9 && (s = i);
810
810
  }
811
811
  return r + e.slice(a, s);
812
812
  }
813
- function pi(e, t, n) {
813
+ function ki(e, t, n) {
814
814
  let r = "", i = t, a = t, s = t;
815
815
  for (; i < n; ) {
816
816
  const o = e.charCodeAt(i);
@@ -818,58 +818,58 @@ function pi(e, t, n) {
818
818
  r += e.slice(a, i) + "'", i += 2, a = s = i;
819
819
  else if (o === 10 || o === 13) {
820
820
  r += e.slice(a, s);
821
- const l = Pe(e, i, n);
822
- r += yt(l.breaks), i = a = s = l.position;
821
+ const l = Oe(e, i, n);
822
+ r += wt(l.breaks), i = a = s = l.position;
823
823
  } else
824
824
  i++, o !== 32 && o !== 9 && (s = i);
825
825
  }
826
826
  return r + e.slice(a, n);
827
827
  }
828
- function hi(e, t, n) {
828
+ function bi(e, t, n) {
829
829
  let r = "", i = t, a = t, s = t;
830
830
  for (; i < n; ) {
831
831
  const o = e.charCodeAt(i);
832
832
  if (o === 92) {
833
833
  r += e.slice(a, i), i++;
834
834
  const l = e.charCodeAt(i);
835
- if (l === 10 || l === 13) i = Pe(e, i, n).position;
836
- else if (l < 256 && cn[l])
837
- r += un[l], i++;
835
+ if (l === 10 || l === 13) i = Oe(e, i, n).position;
836
+ else if (l < 256 && un[l])
837
+ r += pn[l], i++;
838
838
  else {
839
- let c = ci(l), u = 0;
839
+ let c = mi(l), u = 0;
840
840
  for (; c > 0; c--) {
841
841
  i++;
842
- const f = li(e.charCodeAt(i));
842
+ const f = gi(e.charCodeAt(i));
843
843
  u = (u << 4) + f;
844
844
  }
845
- r += si(u), i++;
845
+ r += di(u), i++;
846
846
  }
847
847
  a = s = i;
848
848
  } else if (o === 10 || o === 13) {
849
849
  r += e.slice(a, s);
850
- const l = Pe(e, i, n);
851
- r += yt(l.breaks), i = a = s = l.position;
850
+ const l = Oe(e, i, n);
851
+ r += wt(l.breaks), i = a = s = l.position;
852
852
  } else
853
853
  i++, o !== 32 && o !== 9 && (s = i);
854
854
  }
855
855
  return r + e.slice(a, n);
856
856
  }
857
- function jt(e, t, n, r, i, a) {
857
+ function Yt(e, t, n, r, i, a) {
858
858
  const s = r < 0 ? 0 : r, o = e.slice(t, n).replace(/\r\n?/g, `
859
859
  `), l = o === "" ? [] : (o.endsWith(`
860
860
  `) ? o.slice(0, -1) : o).split(`
861
861
  `);
862
- let c = "", u = !1, f = 0, g = !1;
862
+ let c = "", u = !1, f = 0, d = !1;
863
863
  for (const y of l) {
864
- let x = 0;
865
- for (; x < s && y.charCodeAt(x) === 32; ) x++;
866
- if (r < 0 || x >= y.length) {
864
+ let k = 0;
865
+ for (; k < s && y.charCodeAt(k) === 32; ) k++;
866
+ if (r < 0 || k >= y.length) {
867
867
  f++;
868
868
  continue;
869
869
  }
870
870
  const A = y.slice(s), S = A.charCodeAt(0);
871
- a ? S === 32 || S === 9 ? (g = !0, c += `
872
- `.repeat(u ? 1 + f : f)) : g ? (g = !1, c += `
871
+ a ? S === 32 || S === 9 ? (d = !0, c += `
872
+ `.repeat(u ? 1 + f : f)) : d ? (d = !1, c += `
873
873
  `.repeat(f + 1)) : f === 0 ? u && (c += " ") : c += `
874
874
  `.repeat(f) : c += `
875
875
  `.repeat(u ? 1 + f : f), c += A, u = !0, f = 0;
@@ -878,51 +878,51 @@ function jt(e, t, n, r, i, a) {
878
878
  `.repeat(u ? 1 + f : f) : i !== 2 && u && (c += `
879
879
  `), c;
880
880
  }
881
- function fi(e, t) {
882
- if (t.valueStart === oi) return "";
881
+ function yi(e, t) {
882
+ if (t.valueStart === fi) return "";
883
883
  const { valueStart: n, valueEnd: r } = t;
884
884
  if (t.fast) return e.slice(n, r);
885
885
  switch (t.style) {
886
886
  case 2:
887
- return pi(e, n, r);
887
+ return ki(e, n, r);
888
888
  case 3:
889
- return hi(e, n, r);
889
+ return bi(e, n, r);
890
890
  case 4:
891
- return jt(e, n, r, t.indent, t.chomping, !1);
891
+ return Yt(e, n, r, t.indent, t.chomping, !1);
892
892
  case 5:
893
- return jt(e, n, r, t.indent, t.chomping, !0);
893
+ return Yt(e, n, r, t.indent, t.chomping, !0);
894
894
  default:
895
- return ui(e, n, r);
895
+ return xi(e, n, r);
896
896
  }
897
897
  }
898
- var gi = Object.assign(/* @__PURE__ */ Object.create(null), {
898
+ var wi = Object.assign(/* @__PURE__ */ Object.create(null), {
899
899
  "!": "!",
900
900
  "!!": "tag:yaml.org,2002:"
901
901
  });
902
- function pn(e, t) {
902
+ function hn(e, t) {
903
903
  if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
904
- const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? gi[r] ?? r;
904
+ const n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? wi[r] ?? r;
905
905
  return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
906
906
  }
907
- var he = -1, wt = {
907
+ var fe = -1, vt = {
908
908
  filename: "",
909
- schema: ni,
909
+ schema: ci,
910
910
  json: !1,
911
911
  maxTotalMergeKeys: 1e4,
912
912
  maxAliases: -1
913
913
  };
914
- function di(e) {
915
- return "tagStart" in e && e.tagStart !== he ? e.tagStart : "anchorStart" in e && e.anchorStart !== he ? e.anchorStart : "valueStart" in e && e.valueStart !== he ? e.valueStart : "start" in e ? e.start : 0;
914
+ function vi(e) {
915
+ return "tagStart" in e && e.tagStart !== fe ? e.tagStart : "anchorStart" in e && e.anchorStart !== fe ? e.anchorStart : "valueStart" in e && e.valueStart !== fe ? e.valueStart : "start" in e ? e.start : 0;
916
916
  }
917
917
  function B(e, t) {
918
- Ue(e.source, e.position, t, e.filename);
918
+ Ke(e.source, e.position, t, e.filename);
919
919
  }
920
- function hn(e, t, n, r) {
920
+ function fn(e, t, n, r) {
921
921
  try {
922
922
  return n.finalize(r);
923
923
  } catch (i) {
924
- if (i instanceof Le) throw i;
925
- Ue(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
924
+ if (i instanceof Pe) throw i;
925
+ Ke(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
926
926
  }
927
927
  }
928
928
  function Re(e, t, n) {
@@ -930,19 +930,19 @@ function Re(e, t, n) {
930
930
  if (r) return r;
931
931
  for (const i of t) if (n.startsWith(i.tagName)) return i;
932
932
  }
933
- function mi(e, t, n, r, i) {
933
+ function Ai(e, t, n, r, i) {
934
934
  const a = Re(t, n, r);
935
935
  if (a) return a;
936
936
  B(e, `unknown ${i} tag !<${r}>`);
937
937
  }
938
- function ki(e, t) {
939
- const n = fi(e.source, t), r = t.tagStart === he ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
938
+ function Si(e, t) {
939
+ const n = yi(e.source, t), r = t.tagStart === fe ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
940
940
  if (r !== "") {
941
941
  if (r === "!") return {
942
942
  value: n,
943
943
  tag: i
944
944
  };
945
- const a = pn(r, e.tagHandlers), s = Re(e.schema.exact.scalar, e.schema.prefix.scalar, a);
945
+ const a = hn(r, e.tagHandlers), s = Re(e.schema.exact.scalar, e.schema.prefix.scalar, a);
946
946
  if (s) {
947
947
  const l = s.resolve(n, !0, a);
948
948
  return l === C && B(e, `cannot resolve a node with !<${a}> explicit tag`), {
@@ -955,7 +955,7 @@ function ki(e, t) {
955
955
  n !== "" && B(e, `cannot resolve a node with !<${a}> explicit tag`);
956
956
  const l = o.create(a);
957
957
  return {
958
- value: o.carrierIsResult ? l : hn(e, e.position, o, l),
958
+ value: o.carrierIsResult ? l : fn(e, e.position, o, l),
959
959
  tag: o
960
960
  };
961
961
  }
@@ -976,53 +976,53 @@ function ki(e, t) {
976
976
  tag: i
977
977
  };
978
978
  }
979
- function Yt(e, t, n, r, i, a) {
980
- const s = t.tagStart === he ? "" : e.source.slice(t.tagStart, t.tagEnd), o = s === "" || s === "!" ? i : pn(s, e.tagHandlers);
979
+ function Ut(e, t, n, r, i, a) {
980
+ const s = t.tagStart === fe ? "" : e.source.slice(t.tagStart, t.tagEnd), o = s === "" || s === "!" ? i : hn(s, e.tagHandlers);
981
981
  return {
982
982
  tagName: o,
983
- tag: mi(e, n, r, o, a)
983
+ tag: Ai(e, n, r, o, a)
984
984
  };
985
985
  }
986
- function fn(e) {
986
+ function dn(e) {
987
987
  return e.nodeKind === "mapping";
988
988
  }
989
- function Ut(e, t, n, r) {
989
+ function Ht(e, t, n, r) {
990
990
  for (const i of r.keys(n)) {
991
991
  if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && B(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
992
992
  const a = t.tag.addPair(t.value, i, r.get(n, i));
993
993
  a && B(e, a), (t.overridable ??= /* @__PURE__ */ new Set()).add(i);
994
994
  }
995
995
  }
996
- function xi(e, t, n, r) {
997
- if (e.position = t.keyPosition, fn(r)) Ut(e, t, n, r);
998
- else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) Ut(e, t, i, t.tag);
996
+ function Ti(e, t, n, r) {
997
+ if (e.position = t.keyPosition, dn(r)) Ht(e, t, n, r);
998
+ else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) Ht(e, t, i, t.tag);
999
999
  else B(e, "cannot merge mappings; the provided source object is unacceptable");
1000
1000
  }
1001
- function bi(e, t, n, r, i) {
1001
+ function Ei(e, t, n, r, i) {
1002
1002
  if (e.position = t.keyPosition, n === kt) {
1003
- xi(e, t, r, i);
1003
+ Ti(e, t, r, i);
1004
1004
  return;
1005
1005
  }
1006
1006
  !e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && B(e, "duplicated mapping key");
1007
1007
  const a = t.tag.addPair(t.value, n, r);
1008
1008
  a && B(e, a), t.overridable?.delete(n);
1009
1009
  }
1010
- function Qe(e, t, n) {
1010
+ function et(e, t, n) {
1011
1011
  const r = e.frames[e.frames.length - 1];
1012
1012
  if (r.kind === "document")
1013
1013
  r.value = t, r.hasValue = !0;
1014
1014
  else if (r.kind === "sequence") {
1015
- r.merge && (fn(n) || B(e, "cannot merge mappings; the provided source object is unacceptable"));
1015
+ r.merge && (dn(n) || B(e, "cannot merge mappings; the provided source object is unacceptable"));
1016
1016
  const i = r.tag.addItem(r.value, t, r.index++);
1017
1017
  i && B(e, i);
1018
1018
  } else if (r.hasKey) {
1019
1019
  const i = r.key;
1020
- r.key = void 0, r.hasKey = !1, bi(e, r, i, t, n);
1020
+ r.key = void 0, r.hasKey = !1, Ei(e, r, i, t, n);
1021
1021
  } else
1022
1022
  r.key = t, r.keyPosition = e.position, r.hasKey = !0;
1023
1023
  }
1024
- function Xe(e, t, n, r, i) {
1025
- if (t.anchorStart !== he) {
1024
+ function tt(e, t, n, r, i) {
1025
+ if (t.anchorStart !== fe) {
1026
1026
  const a = {
1027
1027
  value: n,
1028
1028
  tag: r,
@@ -1032,9 +1032,9 @@ function Xe(e, t, n, r, i) {
1032
1032
  }
1033
1033
  return null;
1034
1034
  }
1035
- function yi(e, t) {
1035
+ function Ci(e, t) {
1036
1036
  const n = {
1037
- ...wt,
1037
+ ...vt,
1038
1038
  ...t,
1039
1039
  events: e,
1040
1040
  documents: [],
@@ -1048,7 +1048,7 @@ function yi(e, t) {
1048
1048
  };
1049
1049
  for (; n.eventIndex < n.events.length; ) {
1050
1050
  const r = n.events[n.eventIndex++];
1051
- switch (n.position = di(r), r.type) {
1051
+ switch (n.position = vi(r), r.type) {
1052
1052
  case 1:
1053
1053
  n.anchors = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = /* @__PURE__ */ Object.create(null);
1054
1054
  for (const i of r.directives) i.kind === "tag" && (n.tagHandlers[i.handle] = i.prefix);
@@ -1060,12 +1060,12 @@ function yi(e, t) {
1060
1060
  });
1061
1061
  break;
1062
1062
  case 4: {
1063
- const { value: i, tag: a } = ki(n, r);
1064
- Xe(n, r, i, a, !0), Qe(n, i, a);
1063
+ const { value: i, tag: a } = Si(n, r);
1064
+ tt(n, r, i, a, !0), et(n, i, a);
1065
1065
  break;
1066
1066
  }
1067
1067
  case 2: {
1068
- const i = Yt(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), a = i.tag.create(i.tagName), s = Xe(n, r, a, i.tag, i.tag.carrierIsResult), o = n.frames[n.frames.length - 1], l = o !== void 0 && o.kind === "mapping" && o.hasKey && o.key === kt;
1068
+ const i = Ut(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), a = i.tag.create(i.tagName), s = tt(n, r, a, i.tag, i.tag.carrierIsResult), o = n.frames[n.frames.length - 1], l = o !== void 0 && o.kind === "mapping" && o.hasKey && o.key === kt;
1069
1069
  n.frames.push({
1070
1070
  kind: "sequence",
1071
1071
  position: n.position,
@@ -1078,7 +1078,7 @@ function yi(e, t) {
1078
1078
  break;
1079
1079
  }
1080
1080
  case 3: {
1081
- const i = Yt(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), a = i.tag.create(i.tagName), s = Xe(n, r, a, i.tag, i.tag.carrierIsResult);
1081
+ const i = Ut(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), a = i.tag.create(i.tagName), s = tt(n, r, a, i.tag, i.tag.carrierIsResult);
1082
1082
  n.frames.push({
1083
1083
  kind: "mapping",
1084
1084
  position: n.position,
@@ -1095,15 +1095,15 @@ function yi(e, t) {
1095
1095
  case 5: {
1096
1096
  n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && B(n, `aliases exceeded maxAliases (${n.maxAliases})`);
1097
1097
  const i = n.source.slice(r.anchorStart, r.anchorEnd), a = n.anchors.get(i);
1098
- a || B(n, `unidentified alias "${i}"`), a.isValueFinal || B(n, `recursive alias "${i}" is not supported for tag ${a.tag.tagName} because it uses finalize()`), Qe(n, a.value, a.tag);
1098
+ a || B(n, `unidentified alias "${i}"`), a.isValueFinal || B(n, `recursive alias "${i}" is not supported for tag ${a.tag.tagName} because it uses finalize()`), et(n, a.value, a.tag);
1099
1099
  break;
1100
1100
  }
1101
1101
  case 6: {
1102
1102
  const i = n.frames.pop();
1103
1103
  if (i.kind === "mapping" && i.hasKey && (n.position = i.keyPosition, B(n, "incomplete mapping pair in event stream")), i.kind === "document") n.documents.push(i.value);
1104
1104
  else {
1105
- const a = i.tag.carrierIsResult ? i.value : hn(n, i.position, i.tag, i.value);
1106
- i.anchor && (i.anchor.value = a, i.anchor.isValueFinal = !0), Qe(n, a, i.tag);
1105
+ const a = i.tag.carrierIsResult ? i.value : fn(n, i.position, i.tag, i.value);
1106
+ i.anchor && (i.anchor.value = a, i.anchor.isValueFinal = !0), et(n, a, i.tag);
1107
1107
  }
1108
1108
  break;
1109
1109
  }
@@ -1111,11 +1111,11 @@ function yi(e, t) {
1111
1111
  }
1112
1112
  return n.documents;
1113
1113
  }
1114
- var _ = -1, gn = Object.prototype.hasOwnProperty, de = 1, at = 2, dn = 3, Oe = 4, wi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, vi = /[,\[\]{}]/, mn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, ot = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, kn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Ai = new RegExp(`^(?:${ot})*$`), Si = new RegExp(`^(?:${kn})+$`), Ti = new RegExp(`^(?:!(?:${ot})*|${kn}(?:${ot})*)$`), vt = {
1114
+ var $ = -1, gn = Object.prototype.hasOwnProperty, me = 1, lt = 2, mn = 3, Me = 4, $i = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _i = /[,\[\]{}]/, xn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, ct = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, kn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Ii = new RegExp(`^(?:${ct})*$`), Fi = new RegExp(`^(?:${kn})+$`), Ri = new RegExp(`^(?:!(?:${ct})*|${kn}(?:${ct})*)$`), At = {
1115
1115
  filename: "",
1116
1116
  maxDepth: 100
1117
1117
  };
1118
- function Ei(e, t, n) {
1118
+ function Ni(e, t, n) {
1119
1119
  e.events.push({
1120
1120
  type: 1,
1121
1121
  explicitStart: t,
@@ -1123,7 +1123,7 @@ function Ei(e, t, n) {
1123
1123
  directives: e.directives
1124
1124
  });
1125
1125
  }
1126
- function xn(e, t, n, r, i, a, s) {
1126
+ function bn(e, t, n, r, i, a, s) {
1127
1127
  e.events.push({
1128
1128
  type: 2,
1129
1129
  start: t,
@@ -1134,7 +1134,7 @@ function xn(e, t, n, r, i, a, s) {
1134
1134
  style: s
1135
1135
  });
1136
1136
  }
1137
- function st(e, t, n, r, i, a, s) {
1137
+ function ut(e, t, n, r, i, a, s) {
1138
1138
  e.events.push({
1139
1139
  type: 3,
1140
1140
  start: t,
@@ -1149,14 +1149,14 @@ function Gt(e, t) {
1149
1149
  e.events.splice(t.eventsLength, 0, {
1150
1150
  type: 3,
1151
1151
  start: t.position,
1152
- anchorStart: _,
1153
- anchorEnd: _,
1154
- tagStart: _,
1155
- tagEnd: _,
1152
+ anchorStart: $,
1153
+ anchorEnd: $,
1154
+ tagStart: $,
1155
+ tagEnd: $,
1156
1156
  style: 2
1157
1157
  });
1158
1158
  }
1159
- function ke(e, t, n, r, i, a, s, o, l = 1, c = -1, u = !1) {
1159
+ function xe(e, t, n, r, i, a, s, o, l = 1, c = -1, u = !1) {
1160
1160
  e.events.push({
1161
1161
  type: 4,
1162
1162
  valueStart: t,
@@ -1171,25 +1171,25 @@ function ke(e, t, n, r, i, a, s, o, l = 1, c = -1, u = !1) {
1171
1171
  fast: u
1172
1172
  });
1173
1173
  }
1174
- function Ci(e, t, n) {
1174
+ function Li(e, t, n) {
1175
1175
  e.events.push({
1176
1176
  type: 5,
1177
1177
  anchorStart: t,
1178
1178
  anchorEnd: n
1179
1179
  });
1180
1180
  }
1181
- function fe(e) {
1181
+ function de(e) {
1182
1182
  e.events.push({ type: 6 });
1183
1183
  }
1184
- function z(e) {
1185
- ke(e, _, _, _, _, _, _, 1);
1184
+ function M(e) {
1185
+ xe(e, $, $, $, $, $, $, 1);
1186
1186
  }
1187
- function Ht() {
1187
+ function Kt() {
1188
1188
  return {
1189
- anchorStart: _,
1190
- anchorEnd: _,
1191
- tagStart: _,
1192
- tagEnd: _
1189
+ anchorStart: $,
1190
+ anchorEnd: $,
1191
+ tagStart: $,
1192
+ tagEnd: $
1193
1193
  };
1194
1194
  }
1195
1195
  function Ae(e) {
@@ -1206,7 +1206,7 @@ function ge(e, t) {
1206
1206
  e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
1207
1207
  }
1208
1208
  function b(e, t) {
1209
- Ue(e.input.slice(0, e.length), e.position, t, e.filename);
1209
+ Ke(e.input.slice(0, e.length), e.position, t, e.filename);
1210
1210
  }
1211
1211
  function R(e) {
1212
1212
  return e === 10 || e === 13;
@@ -1223,24 +1223,24 @@ function V(e) {
1223
1223
  function se(e) {
1224
1224
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1225
1225
  }
1226
- function _i(e) {
1226
+ function Pi(e) {
1227
1227
  return e >= 48 && e <= 57 ? e - 48 : -1;
1228
1228
  }
1229
- function $i(e) {
1229
+ function Oi(e) {
1230
1230
  if (e >= 48 && e <= 57) return e - 48;
1231
1231
  const t = e | 32;
1232
1232
  return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
1233
1233
  }
1234
- function Fi(e) {
1234
+ function Mi(e) {
1235
1235
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1236
1236
  }
1237
- function Ii(e) {
1237
+ function zi(e) {
1238
1238
  return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
1239
1239
  }
1240
1240
  function ze(e) {
1241
1241
  e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
1242
1242
  }
1243
- function M(e, t) {
1243
+ function z(e, t) {
1244
1244
  let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || G(e.input.charCodeAt(e.position - 1));
1245
1245
  for (; r !== 0; ) {
1246
1246
  for (; oe(r); )
@@ -1262,16 +1262,16 @@ function ne(e, t = e.position) {
1262
1262
  }
1263
1263
  return !1;
1264
1264
  }
1265
- function Kt(e) {
1265
+ function Wt(e) {
1266
1266
  let t = e.input.charCodeAt(e.position);
1267
1267
  for (; t !== 0 && !R(t); ) t = e.input.charCodeAt(++e.position);
1268
1268
  }
1269
- function bn(e, t, n) {
1270
- wi.test(e.input.slice(t, n)) && b(e, "the stream contains non-printable characters");
1269
+ function yn(e, t, n) {
1270
+ $i.test(e.input.slice(t, n)) && b(e, "the stream contains non-printable characters");
1271
1271
  }
1272
- function Ri(e, t, n) {
1272
+ function Bi(e, t, n) {
1273
1273
  if (e.input.charCodeAt(e.position) !== 33) return !1;
1274
- t.tagStart !== _ && b(e, "duplication of a tag property");
1274
+ t.tagStart !== $ && b(e, "duplication of a tag property");
1275
1275
  const r = e.position;
1276
1276
  let i = !1, a = !1, s = "!", o = e.input.charCodeAt(++e.position);
1277
1277
  o === 60 ? (i = !0, o = e.input.charCodeAt(++e.position)) : o === 33 && (a = !0, s = "!!", o = e.input.charCodeAt(++e.position));
@@ -1281,29 +1281,29 @@ function Ri(e, t, n) {
1281
1281
  o !== 62 && b(e, "unexpected end of the stream within a verbatim tag"), c = e.input.slice(l, e.position), e.position++;
1282
1282
  } else {
1283
1283
  for (; o !== 0 && !G(o) && !(n && se(o)); )
1284
- o === 33 && (a ? b(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(l - 1, e.position + 1), mn.test(s) || b(e, "named tag handle cannot contain such characters"), a = !0, l = e.position + 1)), o = e.input.charCodeAt(++e.position);
1285
- c = e.input.slice(l, e.position), vi.test(c) && b(e, "tag suffix cannot contain flow indicator characters");
1284
+ o === 33 && (a ? b(e, "tag suffix cannot contain exclamation marks") : (s = e.input.slice(l - 1, e.position + 1), xn.test(s) || b(e, "named tag handle cannot contain such characters"), a = !0, l = e.position + 1)), o = e.input.charCodeAt(++e.position);
1285
+ c = e.input.slice(l, e.position), _i.test(c) && b(e, "tag suffix cannot contain flow indicator characters");
1286
1286
  }
1287
- return c && !(i ? Ai.test(c) : Si.test(c)) && b(e, `tag name cannot contain such characters: ${c}`), !i && s !== "!" && s !== "!!" && !gn.call(e.tagHandlers, s) && b(e, `undeclared tag handle "${s}"`), t.tagStart = r, t.tagEnd = e.position, !0;
1287
+ return c && !(i ? Ii.test(c) : Fi.test(c)) && b(e, `tag name cannot contain such characters: ${c}`), !i && s !== "!" && s !== "!!" && !gn.call(e.tagHandlers, s) && b(e, `undeclared tag handle "${s}"`), t.tagStart = r, t.tagEnd = e.position, !0;
1288
1288
  }
1289
- function Ni(e, t) {
1289
+ function Di(e, t) {
1290
1290
  if (e.input.charCodeAt(e.position) !== 38) return !1;
1291
- t.anchorStart !== _ && b(e, "duplication of an anchor property"), e.position++;
1291
+ t.anchorStart !== $ && b(e, "duplication of an anchor property"), e.position++;
1292
1292
  const n = e.position;
1293
1293
  for (; e.input.charCodeAt(e.position) !== 0 && !G(e.input.charCodeAt(e.position)) && !se(e.input.charCodeAt(e.position)); ) e.position++;
1294
1294
  return e.position === n && b(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
1295
1295
  }
1296
- function Li(e, t) {
1296
+ function qi(e, t) {
1297
1297
  if (e.input.charCodeAt(e.position) !== 42) return !1;
1298
- (t.anchorStart !== _ || t.tagStart !== _) && b(e, "alias node should not have any properties"), e.position++;
1298
+ (t.anchorStart !== $ || t.tagStart !== $) && b(e, "alias node should not have any properties"), e.position++;
1299
1299
  const n = e.position;
1300
1300
  for (; e.input.charCodeAt(e.position) !== 0 && !G(e.input.charCodeAt(e.position)) && !se(e.input.charCodeAt(e.position)); ) e.position++;
1301
- return e.position === n && b(e, "name of an alias node must contain at least one character"), Ci(e, n, e.position), !0;
1301
+ return e.position === n && b(e, "name of an alias node must contain at least one character"), Li(e, n, e.position), !0;
1302
1302
  }
1303
- function lt(e, t) {
1304
- M(e, !1), e.lineIndent < t && b(e, "deficient indentation");
1303
+ function pt(e, t) {
1304
+ z(e, !1), e.lineIndent < t && b(e, "deficient indentation");
1305
1305
  }
1306
- function Pi(e, t, n) {
1306
+ function ji(e, t, n) {
1307
1307
  if (e.input.charCodeAt(e.position) !== 39) return !1;
1308
1308
  e.position++;
1309
1309
  const r = e.position;
@@ -1316,13 +1316,13 @@ function Pi(e, t, n) {
1316
1316
  continue;
1317
1317
  }
1318
1318
  const s = e.position;
1319
- return e.position++, ke(e, r, s, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
1319
+ return e.position++, xe(e, r, s, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
1320
1320
  }
1321
- R(a) ? (i = !1, lt(e, t)) : e.position === e.lineStart && ne(e) ? b(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? b(e, "expected valid JSON character") : e.position++;
1321
+ R(a) ? (i = !1, pt(e, t)) : e.position === e.lineStart && ne(e) ? b(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? b(e, "expected valid JSON character") : e.position++;
1322
1322
  }
1323
1323
  b(e, "unexpected end of the stream within a single quoted scalar");
1324
1324
  }
1325
- function Oi(e, t, n) {
1325
+ function Yi(e, t, n) {
1326
1326
  if (e.input.charCodeAt(e.position) !== 34) return !1;
1327
1327
  e.position++;
1328
1328
  const r = e.position;
@@ -1331,69 +1331,69 @@ function Oi(e, t, n) {
1331
1331
  const a = e.input.charCodeAt(e.position);
1332
1332
  if (a === 34) {
1333
1333
  const s = e.position;
1334
- return e.position++, ke(e, r, s, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
1334
+ return e.position++, xe(e, r, s, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
1335
1335
  }
1336
1336
  if (a === 92) {
1337
1337
  i = !1;
1338
1338
  const s = e.input.charCodeAt(++e.position);
1339
- if (R(s)) lt(e, t);
1340
- else if (Ii(s)) e.position++;
1339
+ if (R(s)) pt(e, t);
1340
+ else if (zi(s)) e.position++;
1341
1341
  else {
1342
- let o = Fi(s);
1342
+ let o = Mi(s);
1343
1343
  for (o === 0 && b(e, "unknown escape sequence"); o-- > 0; )
1344
- e.position++, $i(e.input.charCodeAt(e.position)) < 0 && b(e, "expected hexadecimal character");
1344
+ e.position++, Oi(e.input.charCodeAt(e.position)) < 0 && b(e, "expected hexadecimal character");
1345
1345
  e.position++;
1346
1346
  }
1347
- } else R(a) ? (i = !1, lt(e, t)) : e.position === e.lineStart && ne(e) ? b(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? b(e, "expected valid JSON character") : e.position++;
1347
+ } else R(a) ? (i = !1, pt(e, t)) : e.position === e.lineStart && ne(e) ? b(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? b(e, "expected valid JSON character") : e.position++;
1348
1348
  }
1349
1349
  b(e, "unexpected end of the stream within a double quoted scalar");
1350
1350
  }
1351
- function zi(e, t, n) {
1351
+ function Ui(e, t, n) {
1352
1352
  const r = e.input.charCodeAt(e.position);
1353
1353
  let i = 1, a = -1, s = !1;
1354
1354
  if (r !== 124 && r !== 62) return !1;
1355
1355
  const o = r === 124 ? 4 : 5;
1356
1356
  for (e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1357
- const y = e.input.charCodeAt(e.position), x = _i(y);
1357
+ const y = e.input.charCodeAt(e.position), k = Pi(y);
1358
1358
  if (y === 43 || y === 45)
1359
1359
  i !== 1 && b(e, "repeat of a chomping mode identifier"), i = y === 43 ? 3 : 2, e.position++;
1360
- else if (x >= 0)
1361
- x === 0 && b(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), s && b(e, "repeat of an indentation width identifier"), a = t + x - 1, s = !0, e.position++;
1360
+ else if (k >= 0)
1361
+ k === 0 && b(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), s && b(e, "repeat of an indentation width identifier"), a = t + k - 1, s = !0, e.position++;
1362
1362
  else break;
1363
1363
  }
1364
1364
  let l = !1;
1365
1365
  for (; oe(e.input.charCodeAt(e.position)); )
1366
1366
  l = !0, e.position++;
1367
- l && e.input.charCodeAt(e.position) === 35 && Kt(e), R(e.input.charCodeAt(e.position)) ? ze(e) : e.input.charCodeAt(e.position) !== 0 && b(e, "a line break is expected");
1367
+ l && e.input.charCodeAt(e.position) === 35 && Wt(e), R(e.input.charCodeAt(e.position)) ? ze(e) : e.input.charCodeAt(e.position) !== 0 && b(e, "a line break is expected");
1368
1368
  let c = s ? a : -1, u = 0;
1369
1369
  const f = e.position;
1370
- let g = e.position;
1370
+ let d = e.position;
1371
1371
  for (; e.input.charCodeAt(e.position) !== 0; ) {
1372
1372
  const y = e.position;
1373
- let x = 0;
1374
- for (; e.input.charCodeAt(y + x) === 32; ) x++;
1375
- const A = e.input.charCodeAt(y + x);
1373
+ let k = 0;
1374
+ for (; e.input.charCodeAt(y + k) === 32; ) k++;
1375
+ const A = e.input.charCodeAt(y + k);
1376
1376
  if (A === 0) {
1377
- c >= 0 ? x > c && (g = y + x) : x > 0 && (g = y + x);
1377
+ c >= 0 ? k > c && (d = y + k) : k > 0 && (d = y + k);
1378
1378
  break;
1379
1379
  }
1380
1380
  if (y === e.lineStart && ne(e, y)) break;
1381
- if (!s && c === -1 && R(A) && (u = Math.max(u, x)), !s && c === -1 && !R(A) && (A === 9 && x < t && (e.position = y + x, b(e, "tab characters must not be used in indentation")), x < u && (e.position = y + x, b(e, "bad indentation of a mapping entry"))), c === -1 && A !== 0 && !R(A) && x < t) {
1382
- e.lineIndent = x, e.position = y + x;
1381
+ if (!s && c === -1 && R(A) && (u = Math.max(u, k)), !s && c === -1 && !R(A) && (A === 9 && k < t && (e.position = y + k, b(e, "tab characters must not be used in indentation")), k < u && (e.position = y + k, b(e, "bad indentation of a mapping entry"))), c === -1 && A !== 0 && !R(A) && k < t) {
1382
+ e.lineIndent = k, e.position = y + k;
1383
1383
  break;
1384
1384
  }
1385
- !s && A !== 0 && !R(A) && c === -1 && (c = x);
1385
+ !s && A !== 0 && !R(A) && c === -1 && (c = k);
1386
1386
  const S = c === -1 ? t + 1 : c;
1387
- if (A !== 0 && !R(A) && x < S) {
1388
- e.lineIndent = x, e.position = y + x;
1387
+ if (A !== 0 && !R(A) && k < S) {
1388
+ e.lineIndent = k, e.position = y + k;
1389
1389
  break;
1390
1390
  }
1391
- Kt(e), g = e.position, R(e.input.charCodeAt(e.position)) && (ze(e), g = e.position);
1391
+ Wt(e), d = e.position, R(e.input.charCodeAt(e.position)) && (ze(e), d = e.position);
1392
1392
  }
1393
- return bn(e, f, g), ke(e, f, g, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, o, i, c), !0;
1393
+ return yn(e, f, d), xe(e, f, d, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, o, i, c), !0;
1394
1394
  }
1395
- function Mi(e, t) {
1396
- const n = e.input.charCodeAt(e.position), r = t === de;
1395
+ function Hi(e, t) {
1396
+ const n = e.input.charCodeAt(e.position), r = t === me;
1397
1397
  if (n === 0 || G(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && se(n)) return !1;
1398
1398
  if (n === 63 || n === 45) {
1399
1399
  const i = e.input.charCodeAt(e.position + 1);
@@ -1401,11 +1401,11 @@ function Mi(e, t) {
1401
1401
  }
1402
1402
  return !0;
1403
1403
  }
1404
- function Bi(e, t, n, r) {
1405
- if (!Mi(e, n)) return !1;
1404
+ function Gi(e, t, n, r) {
1405
+ if (!Hi(e, n)) return !1;
1406
1406
  const i = e.position;
1407
1407
  let a = e.position, s = e.input.charCodeAt(e.position);
1408
- const o = n === de;
1408
+ const o = n === me;
1409
1409
  let l = !1;
1410
1410
  for (; s !== 0 && !(e.position === e.lineStart && ne(e)); ) {
1411
1411
  if (s === 58) {
@@ -1416,54 +1416,54 @@ function Bi(e, t, n, r) {
1416
1416
  } else {
1417
1417
  if (o && se(s)) break;
1418
1418
  if (R(s)) {
1419
- const c = e.position, u = e.line, f = e.lineStart, g = e.lineIndent;
1420
- if (M(e, !1), e.lineIndent >= t) {
1419
+ const c = e.position, u = e.line, f = e.lineStart, d = e.lineIndent;
1420
+ if (z(e, !1), e.lineIndent >= t) {
1421
1421
  l = !0, s = e.input.charCodeAt(e.position);
1422
1422
  continue;
1423
1423
  }
1424
- e.position = c, e.line = u, e.lineStart = f, e.lineIndent = g;
1424
+ e.position = c, e.line = u, e.lineStart = f, e.lineIndent = d;
1425
1425
  break;
1426
1426
  }
1427
1427
  }
1428
1428
  oe(s) || (a = e.position + 1), s = e.input.charCodeAt(++e.position);
1429
1429
  }
1430
- return a === i ? !1 : (bn(e, i, a), ke(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !l), !0);
1430
+ return a === i ? !1 : (yn(e, i, a), xe(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !l), !0);
1431
1431
  }
1432
1432
  function ye(e, t) {
1433
1433
  const n = e.line;
1434
- M(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && b(e, "deficient indentation");
1434
+ z(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && b(e, "deficient indentation");
1435
1435
  }
1436
- function Di(e, t, n) {
1436
+ function Ki(e, t, n) {
1437
1437
  const r = e.input.charCodeAt(e.position), i = r === 123, a = e.position;
1438
1438
  let s = !0;
1439
1439
  if (r !== 91 && r !== 123) return !1;
1440
1440
  const o = i ? 125 : 93;
1441
- for (i ? st(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : xn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1441
+ for (i ? ut(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : bn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
1442
1442
  ye(e, t);
1443
1443
  let l = e.input.charCodeAt(e.position);
1444
1444
  if (l === o)
1445
- return e.position++, fe(e), !0;
1445
+ return e.position++, de(e), !0;
1446
1446
  s ? l === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries");
1447
1447
  let c = !1, u = !1;
1448
1448
  l === 63 && G(e.input.charCodeAt(e.position + 1)) && (c = u = !0, e.position += 1, ye(e, t));
1449
- const f = e.line, g = Ae(e), y = re(e, t, de, !1, !0);
1450
- ye(e, t), l = e.input.charCodeAt(e.position), (i || u || e.line === f) && l === 58 ? (c = !0, e.position++, ye(e, t), i || Gt(e, g), y || z(e), re(e, t, de, !1, !0) || z(e), ye(e, t), i || fe(e)) : i && c ? (y || z(e), z(e)) : i ? z(e) : c && (Gt(e, g), y || z(e), z(e), fe(e)), l = e.input.charCodeAt(e.position), l === 44 ? (s = !0, e.position++) : s = !1;
1449
+ const f = e.line, d = Ae(e), y = re(e, t, me, !1, !0);
1450
+ ye(e, t), l = e.input.charCodeAt(e.position), (i || u || e.line === f) && l === 58 ? (c = !0, e.position++, ye(e, t), i || Gt(e, d), y || M(e), re(e, t, me, !1, !0) || M(e), ye(e, t), i || de(e)) : i && c ? (y || M(e), M(e)) : i ? M(e) : c && (Gt(e, d), y || M(e), M(e), de(e)), l = e.input.charCodeAt(e.position), l === 44 ? (s = !0, e.position++) : s = !1;
1451
1451
  }
1452
1452
  b(e, "unexpected end of the stream within a flow collection");
1453
1453
  }
1454
- function Wt(e, t, n) {
1454
+ function Zt(e, t, n) {
1455
1455
  if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !V(e.input.charCodeAt(e.position + 1))) return !1;
1456
- for (xn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && V(e.input.charCodeAt(e.position + 1)); ) {
1456
+ for (bn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && V(e.input.charCodeAt(e.position + 1)); ) {
1457
1457
  e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, b(e, "tab characters must not be used in indentation"));
1458
1458
  const r = e.line;
1459
1459
  e.position++;
1460
- const i = M(e, !0) > 0;
1461
- if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && V(e.input.charCodeAt(e.position + 1)) && b(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? z(e) : re(e, t, dn, !1, !0), M(e, !0), e.lineIndent < t || e.position >= e.length) break;
1460
+ const i = z(e, !0) > 0;
1461
+ if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && V(e.input.charCodeAt(e.position + 1)) && b(e, "bad indentation of a sequence entry"), i && e.lineIndent <= t ? M(e) : re(e, t, mn, !1, !0), z(e, !0), e.lineIndent < t || e.position >= e.length) break;
1462
1462
  e.lineIndent > t && b(e, "bad indentation of a sequence entry"), e.line === r && e.input.charCodeAt(e.position) === 45 && V(e.input.charCodeAt(e.position + 1)) && b(e, "bad indentation of a sequence entry");
1463
1463
  }
1464
- return fe(e), !0;
1464
+ return de(e), !0;
1465
1465
  }
1466
- function Je(e, t, n, r) {
1466
+ function nt(e, t, n, r) {
1467
1467
  let i = !1, a = !1, s = !1, o = !1;
1468
1468
  if (e.firstTabInLine !== -1) return !1;
1469
1469
  let l = e.input.charCodeAt(e.position);
@@ -1471,65 +1471,65 @@ function Je(e, t, n, r) {
1471
1471
  !i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, b(e, "tab characters must not be used in indentation"));
1472
1472
  const c = e.input.charCodeAt(e.position + 1), u = e.line;
1473
1473
  if ((l === 63 || l === 58) && V(c))
1474
- s || (st(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), s = !0), l === 63 ? (i && z(e), a = !0, i = !0) : (i || (z(e), a = !0), i = !1), e.position += 1, o = !0;
1474
+ s || (ut(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), s = !0), l === 63 ? (i && M(e), a = !0, i = !0) : (i || (M(e), a = !0), i = !1), e.position += 1, o = !0;
1475
1475
  else {
1476
- i && (z(e), i = !1);
1476
+ i && (M(e), i = !1);
1477
1477
  const f = Ae(e);
1478
- if (!re(e, n, at, !1, !0)) break;
1478
+ if (!re(e, n, lt, !1, !0)) break;
1479
1479
  if (e.line === u) {
1480
1480
  for (l = e.input.charCodeAt(e.position); oe(l); ) l = e.input.charCodeAt(++e.position);
1481
1481
  if (l === 58) {
1482
1482
  if (l = e.input.charCodeAt(++e.position), V(l) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), !s) {
1483
- for (ge(e, f), st(e, f.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), s = !0, re(e, n, at, !1, !0), l = e.input.charCodeAt(e.position); oe(l); ) l = e.input.charCodeAt(++e.position);
1483
+ for (ge(e, f), ut(e, f.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), s = !0, re(e, n, lt, !1, !0), l = e.input.charCodeAt(e.position); oe(l); ) l = e.input.charCodeAt(++e.position);
1484
1484
  e.position++;
1485
1485
  }
1486
1486
  a = !0, i = !1, o = !1;
1487
1487
  } else if (a) b(e, "expected ':' after a mapping key");
1488
1488
  else
1489
- return r.anchorStart !== _ || r.tagStart !== _ ? (ge(e, f), !1) : !0;
1489
+ return r.anchorStart !== $ || r.tagStart !== $ ? (ge(e, f), !1) : !0;
1490
1490
  } else if (a) b(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1491
1491
  else
1492
- return r.anchorStart !== _ || r.tagStart !== _ ? (ge(e, f), !1) : !0;
1492
+ return r.anchorStart !== $ || r.tagStart !== $ ? (ge(e, f), !1) : !0;
1493
1493
  }
1494
- if (re(e, t, Oe, !0, o) && (o = !1), i || o && (z(e), o = !1), M(e, !0), l = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && l !== 0) b(e, "bad indentation of a mapping entry");
1494
+ if (re(e, t, Me, !0, o) && (o = !1), i || o && (M(e), o = !1), z(e, !0), l = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && l !== 0) b(e, "bad indentation of a mapping entry");
1495
1495
  else if (e.lineIndent < t) break;
1496
1496
  }
1497
- return a ? (i && z(e), s && fe(e), !0) : !1;
1497
+ return a ? (i && M(e), s && de(e), !0) : !1;
1498
1498
  }
1499
1499
  function re(e, t, n, r, i, a = !0) {
1500
1500
  e.depth >= e.maxDepth && b(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
1501
1501
  let s = 1, o = !1, l = !1, c = null;
1502
- const u = Ht();
1503
- let f = n === Oe || n === dn, g = f;
1502
+ const u = Kt();
1503
+ let f = n === Me || n === mn, d = f;
1504
1504
  const y = f;
1505
- if (r && M(e, !0) && (o = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1), s === 1) for (; ; ) {
1506
- const x = e.input.charCodeAt(e.position), A = Ae(e);
1507
- if (o && s !== 1 && (x === 33 || x === 38)) break;
1508
- if (o && y && (u.tagStart !== _ || u.anchorStart !== _) && (x === 33 || x === 38)) {
1509
- const S = Ae(e), F = t + 1;
1510
- if (Je(e, e.position - e.lineStart, F, u) && e.events[S.eventsLength]?.type === 3)
1505
+ if (r && z(e, !0) && (o = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1), s === 1) for (; ; ) {
1506
+ const k = e.input.charCodeAt(e.position), A = Ae(e);
1507
+ if (o && s !== 1 && (k === 33 || k === 38)) break;
1508
+ if (o && y && (u.tagStart !== $ || u.anchorStart !== $) && (k === 33 || k === 38)) {
1509
+ const S = Ae(e), I = t + 1;
1510
+ if (nt(e, e.position - e.lineStart, I, u) && e.events[S.eventsLength]?.type === 3)
1511
1511
  return e.depth--, !0;
1512
1512
  ge(e, S);
1513
1513
  }
1514
- if (o && (x === 33 && u.tagStart !== _ || x === 38 && u.anchorStart !== _) || !Ri(e, u, n === de) && !Ni(e, u)) break;
1515
- c === null && (c = A), M(e, !0) ? (o = !0, g = y, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1) : g = !1;
1514
+ if (o && (k === 33 && u.tagStart !== $ || k === 38 && u.anchorStart !== $) || !Bi(e, u, n === me) && !Di(e, u)) break;
1515
+ c === null && (c = A), z(e, !0) ? (o = !0, d = y, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : s = -1) : d = !1;
1516
1516
  }
1517
- if (g && (g = o || i), s === 1 || n === Oe) {
1518
- const x = n === de || n === at ? t : t + 1, A = e.position - e.lineStart;
1519
- if (s === 1) if (g && (Wt(e, A, u) || Je(e, A, x, u)) || Di(e, x, u)) l = !0;
1517
+ if (d && (d = o || i), s === 1 || n === Me) {
1518
+ const k = n === me || n === lt ? t : t + 1, A = e.position - e.lineStart;
1519
+ if (s === 1) if (d && (Zt(e, A, u) || nt(e, A, k, u)) || Ki(e, k, u)) l = !0;
1520
1520
  else {
1521
1521
  const S = e.input.charCodeAt(e.position);
1522
- if (c !== null && a && y && !g && S !== 124 && S !== 62) {
1523
- const F = Ae(e), p = c.position - c.lineStart;
1524
- ge(e, c), Je(e, p, x, Ht()) && e.events[F.eventsLength]?.type === 3 ? l = !0 : ge(e, F);
1522
+ if (c !== null && a && y && !d && S !== 124 && S !== 62) {
1523
+ const I = Ae(e), p = c.position - c.lineStart;
1524
+ ge(e, c), nt(e, p, k, Kt()) && e.events[I.eventsLength]?.type === 3 ? l = !0 : ge(e, I);
1525
1525
  }
1526
- !l && (f && zi(e, x, u) || Pi(e, x, u) || Oi(e, x, u) || Li(e, u) || Bi(e, x, n, u)) && (l = !0);
1526
+ !l && (f && Ui(e, k, u) || ji(e, k, u) || Yi(e, k, u) || qi(e, u) || Gi(e, k, n, u)) && (l = !0);
1527
1527
  }
1528
- else s === 0 && (l = g && Wt(e, A, u));
1528
+ else s === 0 && (l = d && Zt(e, A, u));
1529
1529
  }
1530
- return f = f && !l, !l && (u.anchorStart !== _ || u.tagStart !== _ || f) && (ke(e, _, _, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, 1), l = !0), e.depth--, l || u.anchorStart !== _ || u.tagStart !== _;
1530
+ return f = f && !l, !l && (u.anchorStart !== $ || u.tagStart !== $ || f) && (xe(e, $, $, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, 1), l = !0), e.depth--, l || u.anchorStart !== $ || u.tagStart !== $;
1531
1531
  }
1532
- function qi(e) {
1532
+ function Wi(e) {
1533
1533
  if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
1534
1534
  e.position++;
1535
1535
  const t = e.position;
@@ -1552,7 +1552,7 @@ function qi(e) {
1552
1552
  } else if (n === "TAG") {
1553
1553
  r.length !== 2 && b(e, "TAG directive accepts exactly two arguments");
1554
1554
  const [i, a] = r;
1555
- mn.test(i) || b(e, "ill-formed tag handle (first argument) of the TAG directive"), gn.call(e.tagHandlers, i) && b(e, `there is a previously declared suffix for "${i}" tag handle`), Ti.test(a) || b(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = a, e.directives.push({
1555
+ xn.test(i) || b(e, "ill-formed tag handle (first argument) of the TAG directive"), gn.call(e.tagHandlers, i) && b(e, `there is a previously declared suffix for "${i}" tag handle`), Ri.test(a) || b(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[i] = a, e.directives.push({
1556
1556
  kind: "tag",
1557
1557
  handle: i,
1558
1558
  prefix: a
@@ -1560,32 +1560,32 @@ function qi(e) {
1560
1560
  }
1561
1561
  return !0;
1562
1562
  }
1563
- function ji(e) {
1563
+ function Zi(e) {
1564
1564
  e.directives = [], e.tagHandlers = /* @__PURE__ */ Object.create(null);
1565
1565
  let t = !1;
1566
- for (M(e, !0); qi(e); )
1567
- t = !0, M(e, !0);
1566
+ for (z(e, !0); Wi(e); )
1567
+ t = !0, z(e, !0);
1568
1568
  let n = !1, r = !1, i = !0;
1569
1569
  if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && V(e.input.charCodeAt(e.position + 3))) {
1570
1570
  n = !0;
1571
1571
  const o = e.line;
1572
- e.position += 3, M(e, !0), i = e.line > o;
1572
+ e.position += 3, z(e, !0), i = e.line > o;
1573
1573
  } else t && b(e, "directives end mark is expected");
1574
1574
  const a = e.events.length;
1575
1575
  if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && ne(e)) {
1576
- e.position += 3, M(e, !0);
1576
+ e.position += 3, z(e, !0);
1577
1577
  return;
1578
1578
  }
1579
- if (Ei(e, n, !1), re(e, e.lineIndent - 1, Oe, !1, i, i) || z(e), M(e, !0), e.position === e.lineStart && ne(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
1579
+ if (Ni(e, n, !1), re(e, e.lineIndent - 1, Me, !1, i, i) || M(e), z(e, !0), e.position === e.lineStart && ne(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
1580
1580
  const o = e.line;
1581
- e.position += 3, M(e, !0), e.line === o && e.position < e.length && b(e, "end of the stream or a document separator is expected");
1581
+ e.position += 3, z(e, !0), e.line === o && e.position < e.length && b(e, "end of the stream or a document separator is expected");
1582
1582
  }
1583
1583
  const s = e.events[a];
1584
- s?.type === 1 && (s.explicitEnd = r), fe(e), !r && e.position < e.length && !(e.position === e.lineStart && ne(e)) && b(e, "end of the stream or a document separator is expected");
1584
+ s?.type === 1 && (s.explicitEnd = r), de(e), !r && e.position < e.length && !(e.position === e.lineStart && ne(e)) && b(e, "end of the stream or a document separator is expected");
1585
1585
  }
1586
- function Yi(e, t) {
1586
+ function Vi(e, t) {
1587
1587
  const n = e.length, r = {
1588
- ...vt,
1588
+ ...At,
1589
1589
  ...t,
1590
1590
  input: `${e}\0`,
1591
1591
  length: n,
@@ -1599,54 +1599,54 @@ function Yi(e, t) {
1599
1599
  tagHandlers: /* @__PURE__ */ Object.create(null),
1600
1600
  events: []
1601
1601
  }, i = e.indexOf("\0");
1602
- for (i !== -1 && Ue(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (M(r, !0), !(r.position >= r.length)); ) {
1602
+ for (i !== -1 && Ke(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (z(r, !0), !(r.position >= r.length)); ) {
1603
1603
  const a = r.position;
1604
- ji(r), r.position === a && b(r, "can not read a document");
1604
+ Zi(r), r.position === a && b(r, "can not read a document");
1605
1605
  }
1606
1606
  return r.events;
1607
1607
  }
1608
- var Ui = {
1609
- ...vt,
1610
- ...wt
1608
+ var Qi = {
1609
+ ...At,
1610
+ ...vt
1611
1611
  };
1612
- function Gi(e, t = {}) {
1612
+ function Xi(e, t = {}) {
1613
1613
  const n = {
1614
- ...Ui,
1614
+ ...Qi,
1615
1615
  ...t
1616
- }, r = String(e), i = Object.keys(vt), a = Object.keys(wt);
1617
- return yi(Yi(r, Mt(n, i)), {
1618
- ...Mt(n, a),
1616
+ }, r = String(e), i = Object.keys(At), a = Object.keys(vt);
1617
+ return Ci(Vi(r, Bt(n, i)), {
1618
+ ...Bt(n, a),
1619
1619
  source: r
1620
1620
  });
1621
1621
  }
1622
- function Hi(e, t) {
1623
- const n = Gi(e, t);
1624
- if (n.length === 0) throw new Le("expected a document, but the input is empty");
1622
+ function Ji(e, t) {
1623
+ const n = Xi(e, t);
1624
+ if (n.length === 0) throw new Pe("expected a document, but the input is empty");
1625
1625
  if (n.length === 1) return n[0];
1626
- throw new Le("expected a single document in the stream, but found more");
1626
+ throw new Pe("expected a single document in the stream, but found more");
1627
1627
  }
1628
- ri.withTags({
1629
- ...rt,
1628
+ ui.withTags({
1629
+ ...ot,
1630
1630
  resolve: (e, t, n) => {
1631
- const r = rt.resolve(e, t, n);
1632
- return r === C ? on.resolve(e, t, n) : r;
1631
+ const r = ot.resolve(e, t, n);
1632
+ return r === C ? sn.resolve(e, t, n) : r;
1633
1633
  }
1634
1634
  }, {
1635
- ...it,
1635
+ ...st,
1636
1636
  resolve: (e, t, n) => {
1637
- const r = it.resolve(e, t, n);
1638
- return r === C ? sn.resolve(e, t, n) : r;
1637
+ const r = st.resolve(e, t, n);
1638
+ return r === C ? ln.resolve(e, t, n) : r;
1639
1639
  }
1640
1640
  });
1641
- function At() {
1641
+ function St() {
1642
1642
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
1643
1643
  }
1644
- var ce = At();
1645
- function yn(e) {
1646
- ce = e;
1644
+ var ue = St();
1645
+ function wn(e) {
1646
+ ue = e;
1647
1647
  }
1648
1648
  var te = { exec: () => null };
1649
- function pe(e) {
1649
+ function he(e) {
1650
1650
  let t = [];
1651
1651
  return (n) => {
1652
1652
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
@@ -1660,21 +1660,21 @@ function T(e, t = "") {
1660
1660
  }, getRegex: () => new RegExp(n, t) };
1661
1661
  return r;
1662
1662
  }
1663
- var Ki = ((e = "") => {
1663
+ var ea = ((e = "") => {
1664
1664
  try {
1665
1665
  return !!new RegExp("(?<=1)(?<!1)" + e);
1666
1666
  } catch {
1667
1667
  return !1;
1668
1668
  }
1669
- })(), P = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: pe((e) => new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: pe((e) => new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: pe((e) => new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)), headingBeginRegex: pe((e) => new RegExp(`^ {0,${e}}#`)), htmlBeginRegex: pe((e) => new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: pe((e) => new RegExp(`^ {0,${e}}>`)) }, Wi = /^(?:[ \t]*(?:\n|$))+/, Zi = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Vi = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Te = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qi = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, St = / {0,3}(?:[*+-]|\d{1,9}[.)])/, wn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, vn = T(wn).replace(/bull/g, St).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Xi = T(wn).replace(/bull/g, St).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Tt = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, Ji = /^[^\n]+/, Et = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ea = T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Et).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ta = T(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, St).getRegex(), Ge = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ct = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, na = T("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ct).replace("tag", Ge).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), An = (e) => T(Tt).replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ge).getRegex(), ra = An(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), ia = An(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), aa = T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ia).getRegex(), _t = { blockquote: aa, code: Zi, def: ea, fences: Vi, heading: Qi, hr: Te, html: na, lheading: vn, list: ta, newline: Wi, paragraph: ra, table: te, text: Ji }, Zt = T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ge).getRegex(), oa = { ..._t, lheading: Xi, table: Zt, paragraph: T(Tt).replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Zt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ge).getRegex() }, sa = { ..._t, html: T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Ct).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: te, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: T(Tt).replace("hr", Te).replace("heading", ` *#{1,6} *[^
1670
- ]`).replace("lheading", vn).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, la = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ca = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Sn = /^( {2,}|\\)\n(?!\s*$)/, ua = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Q = /[\p{P}\p{S}]/u, xe = /[\s\p{P}\p{S}]/u, Ee = /[^\s\p{P}\p{S}]/u, pa = T(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, xe).getRegex(), ha = /[\p{Pi}\p{Ps}"']/u, Tn = /(?!~)[\p{P}\p{S}]/u, fa = /(?!~)[\s\p{P}\p{S}]/u, ga = /(?:[^\s\p{P}\p{S}]|~)/u, da = T(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ki ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), En = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, ma = T(En, "u").replace(/punct/g, Q).getRegex(), ka = T(En, "u").replace(/punct/g, Tn).getRegex(), xa = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, ba = T(xa, "u").replace(/openQuote/g, ha).replace(/punct/g, Q).getRegex(), Cn = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ya = T(Cn, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, xe).replace(/punct/g, Q).getRegex(), wa = T(Cn, "gu").replace(/notPunctSpace/g, ga).replace(/punctSpace/g, fa).replace(/punct/g, Tn).getRegex(), va = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Aa = T(va, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, xe).replace(/punct/g, Q).getRegex(), Sa = T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, xe).replace(/punct/g, Q).getRegex(), Ta = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", Ea = T(Ta, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, xe).replace(/punct/g, Q).getRegex(), Ca = T(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Q).getRegex(), _a = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", $a = T(_a, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, xe).replace(/punct/g, Q).getRegex(), Fa = T(/\\(punct)/, "gu").replace(/punct/g, Q).getRegex(), Ia = T(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ra = T(Ct).replace("(?:-->|$)", "-->").getRegex(), Na = T("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ra).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Me = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, La = T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Me).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), _n = T(/^!?\[(label)\]\[(ref)\]/).replace("label", Me).replace("ref", Et).getRegex(), $n = T(/^!?\[(ref)\](?:\[\])?/).replace("ref", Et).getRegex(), Pa = T("reflink|nolink(?!\\()", "g").replace("reflink", _n).replace("nolink", $n).getRegex(), Vt = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, $t = { _backpedal: te, anyPunctuation: Fa, autolink: Ia, blockSkip: da, br: Sn, code: ca, del: te, delLDelim: te, delRDelim: te, emStrongLDelim: ma, emStrongRDelimAst: ya, emStrongRDelimUnd: Sa, escape: la, link: La, nolink: $n, punctuation: pa, reflink: _n, reflinkSearch: Pa, tag: Na, text: ua, url: te }, Oa = { ...$t, emStrongLDelim: ba, emStrongRDelimAst: Aa, emStrongRDelimUnd: Ea, link: T(/^!?\[(label)\]\((.*?)\)/).replace("label", Me).getRegex(), reflink: T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Me).getRegex() }, ct = { ...$t, emStrongRDelimAst: wa, emStrongLDelim: ka, delLDelim: Ca, delRDelim: $a, url: T(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Vt).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: T(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Vt).getRegex() }, za = { ...ct, br: T(Sn).replace("{2,}", "*").getRegex(), text: T(ct.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ie = { normal: _t, gfm: oa, pedantic: sa }, we = { normal: $t, gfm: ct, breaks: za, pedantic: Oa }, Ma = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Qt = (e) => Ma[e];
1671
- function K(e, t) {
1669
+ })(), P = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: he((e) => new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: he((e) => new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: he((e) => new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)), headingBeginRegex: he((e) => new RegExp(`^ {0,${e}}#`)), htmlBeginRegex: he((e) => new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: he((e) => new RegExp(`^ {0,${e}}>`)) }, ta = /^(?:[ \t]*(?:\n|$))+/, na = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ra = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Te = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ia = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Tt = / {0,3}(?:[*+-]|\d{1,9}[.)])/, vn = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, An = T(vn).replace(/bull/g, Tt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), aa = T(vn).replace(/bull/g, Tt).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Et = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, oa = /^[^\n]+/, Ct = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, sa = T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Ct).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), la = T(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Tt).getRegex(), We = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $t = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ca = T("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", $t).replace("tag", We).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Sn = (e) => T(Et).replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", We).getRegex(), ua = Sn(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pa = Sn(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), ha = T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pa).getRegex(), _t = { blockquote: ha, code: na, def: sa, fences: ra, heading: ia, hr: Te, html: ca, lheading: An, list: la, newline: ta, paragraph: ua, table: te, text: oa }, Vt = T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", We).getRegex(), fa = { ..._t, lheading: aa, table: Vt, paragraph: T(Et).replace("hr", Te).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Vt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", We).getRegex() }, da = { ..._t, html: T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", $t).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: te, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: T(Et).replace("hr", Te).replace("heading", ` *#{1,6} *[^
1670
+ ]`).replace("lheading", An).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ga = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ma = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Tn = /^( {2,}|\\)\n(?!\s*$)/, xa = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Q = /[\p{P}\p{S}]/u, ke = /[\s\p{P}\p{S}]/u, Ee = /[^\s\p{P}\p{S}]/u, ka = T(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ke).getRegex(), ba = /[\p{Pi}\p{Ps}"']/u, En = /(?!~)[\p{P}\p{S}]/u, ya = /(?!~)[\s\p{P}\p{S}]/u, wa = /(?:[^\s\p{P}\p{S}]|~)/u, va = T(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ea ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Cn = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Aa = T(Cn, "u").replace(/punct/g, Q).getRegex(), Sa = T(Cn, "u").replace(/punct/g, En).getRegex(), Ta = /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, Ea = T(Ta, "u").replace(/openQuote/g, ba).replace(/punct/g, Q).getRegex(), $n = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ca = T($n, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, ke).replace(/punct/g, Q).getRegex(), $a = T($n, "gu").replace(/notPunctSpace/g, wa).replace(/punctSpace/g, ya).replace(/punct/g, En).getRegex(), _a = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", Ia = T(_a, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, ke).replace(/punct/g, Q).getRegex(), Fa = T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, ke).replace(/punct/g, Q).getRegex(), Ra = "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", Na = T(Ra, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, ke).replace(/punct/g, Q).getRegex(), La = T(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Q).getRegex(), Pa = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Oa = T(Pa, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, ke).replace(/punct/g, Q).getRegex(), Ma = T(/\\(punct)/, "gu").replace(/punct/g, Q).getRegex(), za = T(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ba = T($t).replace("(?:-->|$)", "-->").getRegex(), Da = T("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ba).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Be = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, qa = T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Be).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), _n = T(/^!?\[(label)\]\[(ref)\]/).replace("label", Be).replace("ref", Ct).getRegex(), In = T(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ct).getRegex(), ja = T("reflink|nolink(?!\\()", "g").replace("reflink", _n).replace("nolink", In).getRegex(), Qt = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, It = { _backpedal: te, anyPunctuation: Ma, autolink: za, blockSkip: va, br: Tn, code: ma, del: te, delLDelim: te, delRDelim: te, emStrongLDelim: Aa, emStrongRDelimAst: Ca, emStrongRDelimUnd: Fa, escape: ga, link: qa, nolink: In, punctuation: ka, reflink: _n, reflinkSearch: ja, tag: Da, text: xa, url: te }, Ya = { ...It, emStrongLDelim: Ea, emStrongRDelimAst: Ia, emStrongRDelimUnd: Na, link: T(/^!?\[(label)\]\((.*?)\)/).replace("label", Be).getRegex(), reflink: T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Be).getRegex() }, ht = { ...It, emStrongRDelimAst: $a, emStrongLDelim: Sa, delLDelim: La, delRDelim: Oa, url: T(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Qt).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: T(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Qt).getRegex() }, Ua = { ...ht, br: T(Tn).replace("{2,}", "*").getRegex(), text: T(ht.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Fe = { normal: _t, gfm: fa, pedantic: da }, we = { normal: It, gfm: ht, breaks: Ua, pedantic: Ya }, Ha = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Xt = (e) => Ha[e];
1671
+ function Z(e, t) {
1672
1672
  if (t) {
1673
- if (P.escapeTest.test(e)) return e.replace(P.escapeReplace, Qt);
1674
- } else if (P.escapeTestNoEncode.test(e)) return e.replace(P.escapeReplaceNoEncode, Qt);
1673
+ if (P.escapeTest.test(e)) return e.replace(P.escapeReplace, Xt);
1674
+ } else if (P.escapeTestNoEncode.test(e)) return e.replace(P.escapeReplaceNoEncode, Xt);
1675
1675
  return e;
1676
1676
  }
1677
- function Xt(e) {
1677
+ function Jt(e) {
1678
1678
  try {
1679
1679
  e = encodeURI(e).replace(P.percentDecode, "%");
1680
1680
  } catch {
@@ -1682,7 +1682,7 @@ function Xt(e) {
1682
1682
  }
1683
1683
  return e;
1684
1684
  }
1685
- function Jt(e, t) {
1685
+ function en(e, t) {
1686
1686
  let n = e.replace(P.findPipe, (a, s, o) => {
1687
1687
  let l = !1, c = s;
1688
1688
  for (; --c >= 0 && o[c] === "\\"; ) l = !l;
@@ -1701,14 +1701,14 @@ function ee(e, t, n) {
1701
1701
  i++;
1702
1702
  return e.slice(0, r - i);
1703
1703
  }
1704
- function en(e) {
1704
+ function tn(e) {
1705
1705
  let t = e.split(`
1706
1706
  `), n = t.length - 1;
1707
1707
  for (; n >= 0 && P.blankLine.test(t[n]); ) n--;
1708
1708
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join(`
1709
1709
  `);
1710
1710
  }
1711
- function Ba(e, t) {
1711
+ function Ga(e, t) {
1712
1712
  if (e.indexOf(t[1]) === -1) return -1;
1713
1713
  let n = 0;
1714
1714
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -1716,7 +1716,7 @@ function Ba(e, t) {
1716
1716
  else if (e[r] === t[1] && (n--, n < 0)) return r;
1717
1717
  return n > 0 ? -2 : -1;
1718
1718
  }
1719
- function Da(e, t = 0) {
1719
+ function Ka(e, t = 0) {
1720
1720
  let n = t, r = "";
1721
1721
  for (let i of e) if (i === " ") {
1722
1722
  let a = 4 - n % 4;
@@ -1724,13 +1724,13 @@ function Da(e, t = 0) {
1724
1724
  } else r += i, n++;
1725
1725
  return r;
1726
1726
  }
1727
- function tn(e, t, n, r, i) {
1727
+ function nn(e, t, n, r, i) {
1728
1728
  let a = t.href, s = t.title || null, o = e[1].replace(i.other.outputLinkReplace, "$1");
1729
1729
  r.state.inLink = !0;
1730
1730
  let l = { type: e[0].charAt(0) === "!" ? "image" : "link", raw: n, href: a, title: s, text: o, tokens: r.inlineTokens(o) };
1731
1731
  return r.state.inLink = !1, l;
1732
1732
  }
1733
- function qa(e, t, n) {
1733
+ function Wa(e, t, n) {
1734
1734
  let r = e.match(n.other.indentCodeCompensation);
1735
1735
  if (r === null) return t;
1736
1736
  let i = r[1];
@@ -1743,12 +1743,12 @@ function qa(e, t, n) {
1743
1743
  }).join(`
1744
1744
  `);
1745
1745
  }
1746
- var Be = class {
1746
+ var De = class {
1747
1747
  options;
1748
1748
  rules;
1749
1749
  lexer;
1750
1750
  constructor(e) {
1751
- this.options = e || ce;
1751
+ this.options = e || ue;
1752
1752
  }
1753
1753
  space(e) {
1754
1754
  let t = this.rules.block.newline.exec(e);
@@ -1757,14 +1757,14 @@ var Be = class {
1757
1757
  code(e) {
1758
1758
  let t = this.rules.block.code.exec(e);
1759
1759
  if (t) {
1760
- let n = this.options.pedantic ? t[0] : en(t[0]), r = n.replace(this.rules.other.codeRemoveIndent, "");
1760
+ let n = this.options.pedantic ? t[0] : tn(t[0]), r = n.replace(this.rules.other.codeRemoveIndent, "");
1761
1761
  return { type: "code", raw: n, codeBlockStyle: "indented", text: r };
1762
1762
  }
1763
1763
  }
1764
1764
  fences(e) {
1765
1765
  let t = this.rules.block.fences.exec(e);
1766
1766
  if (t) {
1767
- let n = t[0], r = qa(n, t[3] || "", this.rules);
1767
+ let n = t[0], r = Wa(n, t[3] || "", this.rules);
1768
1768
  return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r };
1769
1769
  }
1770
1770
  }
@@ -1805,20 +1805,20 @@ ${c}` : c, i = i ? `${i}
1805
1805
  ${u}` : u;
1806
1806
  let f = this.lexer.state.top;
1807
1807
  if (this.lexer.state.top = !0, this.lexer.blockTokens(u, a, !0), this.lexer.state.top = f, n.length === 0) break;
1808
- let g = a.at(-1);
1809
- if (g?.type === "code") break;
1810
- if (g?.type === "blockquote") {
1811
- let y = g, x = n.join(`
1808
+ let d = a.at(-1);
1809
+ if (d?.type === "code") break;
1810
+ if (d?.type === "blockquote") {
1811
+ let y = d, k = n.join(`
1812
1812
  `), A = y.raw + `
1813
- ` + x.replace(this.rules.other.blockquoteSetextReplace2, ""), S = this.blockquote(A);
1813
+ ` + k.replace(this.rules.other.blockquoteSetextReplace2, ""), S = this.blockquote(A);
1814
1814
  a[a.length - 1] = S, r = `${r}
1815
- ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1815
+ ${k}`, i = i.substring(0, i.length - y.text.length) + S.text;
1816
1816
  break;
1817
- } else if (g?.type === "list") {
1818
- let y = g, x = y.raw + `
1817
+ } else if (d?.type === "list") {
1818
+ let y = d, k = y.raw + `
1819
1819
  ` + n.join(`
1820
- `), A = this.list(x);
1821
- a[a.length - 1] = A, r = r.substring(0, r.length - g.raw.length) + A.raw, i = i.substring(0, i.length - y.raw.length) + A.raw, n = x.substring(a.at(-1).raw.length).split(`
1820
+ `), A = this.list(k);
1821
+ a[a.length - 1] = A, r = r.substring(0, r.length - d.raw.length) + A.raw, i = i.substring(0, i.length - y.raw.length) + A.raw, n = k.substring(a.at(-1).raw.length).split(`
1822
1822
  `);
1823
1823
  continue;
1824
1824
  }
@@ -1836,25 +1836,25 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1836
1836
  let l = !1, c = "", u = "";
1837
1837
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
1838
1838
  c = t[0], e = e.substring(c.length);
1839
- let f = Da(t[2].split(`
1840
- `, 1)[0], t[1].length), g = e.split(`
1841
- `, 1)[0], y = !f.trim(), x = 0;
1842
- if (this.options.pedantic ? (x = 2, u = f.trimStart()) : y ? x = t[1].length + 1 : (x = f.search(this.rules.other.nonSpaceChar), x = x > 4 ? 1 : x, u = f.slice(x), x += t[1].length), y && this.rules.other.blankLine.test(g) && (c += g + `
1843
- `, e = e.substring(g.length + 1), l = !0), !l) {
1844
- let A = this.rules.other.nextBulletRegex(x), S = this.rules.other.hrRegex(x), F = this.rules.other.fencesBeginRegex(x), p = this.rules.other.headingBeginRegex(x), h = this.rules.other.htmlBeginRegex(x), d = this.rules.other.blockquoteBeginRegex(x);
1839
+ let f = Ka(t[2].split(`
1840
+ `, 1)[0], t[1].length), d = e.split(`
1841
+ `, 1)[0], y = !f.trim(), k = 0;
1842
+ if (this.options.pedantic ? (k = 2, u = f.trimStart()) : y ? k = t[1].length + 1 : (k = f.search(this.rules.other.nonSpaceChar), k = k > 4 ? 1 : k, u = f.slice(k), k += t[1].length), y && this.rules.other.blankLine.test(d) && (c += d + `
1843
+ `, e = e.substring(d.length + 1), l = !0), !l) {
1844
+ let A = this.rules.other.nextBulletRegex(k), S = this.rules.other.hrRegex(k), I = this.rules.other.fencesBeginRegex(k), p = this.rules.other.headingBeginRegex(k), h = this.rules.other.htmlBeginRegex(k), g = this.rules.other.blockquoteBeginRegex(k);
1845
1845
  for (; e; ) {
1846
- let k = e.split(`
1846
+ let x = e.split(`
1847
1847
  `, 1)[0], m;
1848
- if (g = k, this.options.pedantic ? (g = g.replace(this.rules.other.listReplaceNesting, " "), m = g) : m = g.replace(this.rules.other.tabCharGlobal, " "), F.test(g) || p.test(g) || h.test(g) || d.test(g) || A.test(g) || S.test(g)) break;
1849
- if (m.search(this.rules.other.nonSpaceChar) >= x || !g.trim()) u += `
1850
- ` + m.slice(x);
1848
+ if (d = x, this.options.pedantic ? (d = d.replace(this.rules.other.listReplaceNesting, " "), m = d) : m = d.replace(this.rules.other.tabCharGlobal, " "), I.test(d) || p.test(d) || h.test(d) || g.test(d) || A.test(d) || S.test(d)) break;
1849
+ if (m.search(this.rules.other.nonSpaceChar) >= k || !d.trim()) u += `
1850
+ ` + m.slice(k);
1851
1851
  else {
1852
- if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(f) || p.test(f) || S.test(f)) break;
1852
+ if (y || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || I.test(f) || p.test(f) || S.test(f)) break;
1853
1853
  u += `
1854
- ` + g;
1854
+ ` + d;
1855
1855
  }
1856
- y = !g.trim(), c += k + `
1857
- `, e = e.substring(k.length + 1), f = m.slice(x);
1856
+ y = !d.trim(), c += x + `
1857
+ `, e = e.substring(x.length + 1), f = m.slice(k);
1858
1858
  }
1859
1859
  }
1860
1860
  i.loose || (s ? i.loose = !0 : this.rules.other.doubleBlankLine.test(c) && (s = !0)), i.items.push({ type: "list_item", raw: c, task: !!this.options.gfm && this.rules.other.listIsTask.test(u), loose: !1, text: u, tokens: [] }), i.raw += c;
@@ -1879,7 +1879,7 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1879
1879
  }
1880
1880
  } else l.task && (l.task = !1);
1881
1881
  if (!i.loose) {
1882
- let u = l.tokens.filter((g) => g.type === "space"), f = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
1882
+ let u = l.tokens.filter((d) => d.type === "space"), f = u.length > 0 && u.some((d) => this.rules.other.anyLine.test(d.raw));
1883
1883
  i.loose = f;
1884
1884
  }
1885
1885
  }
@@ -1893,7 +1893,7 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1893
1893
  html(e) {
1894
1894
  let t = this.rules.block.html.exec(e);
1895
1895
  if (t) {
1896
- let n = en(t[0]);
1896
+ let n = tn(t[0]);
1897
1897
  return { type: "html", block: !0, raw: n, pre: t[1] === "pre" || t[1] === "script" || t[1] === "style", text: n };
1898
1898
  }
1899
1899
  }
@@ -1908,13 +1908,13 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1908
1908
  table(e) {
1909
1909
  let t = this.rules.block.table.exec(e);
1910
1910
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
1911
- let n = Jt(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
1911
+ let n = en(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
1912
1912
  `) : [], a = { type: "table", raw: ee(t[0], `
1913
1913
  `), header: [], align: [], rows: [] };
1914
1914
  if (n.length === r.length) {
1915
1915
  for (let s of r) this.rules.other.tableAlignRight.test(s) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(s) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(s) ? a.align.push("left") : a.align.push(null);
1916
1916
  for (let s = 0; s < n.length; s++) a.header.push({ text: n[s], tokens: this.lexer.inline(n[s]), header: !0, align: a.align[s] });
1917
- for (let s of i) a.rows.push(Jt(s, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
1917
+ for (let s of i) a.rows.push(en(s, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
1918
1918
  return a;
1919
1919
  }
1920
1920
  }
@@ -1955,7 +1955,7 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1955
1955
  let a = ee(n.slice(0, -1), "\\");
1956
1956
  if ((n.length - a.length) % 2 === 0) return;
1957
1957
  } else {
1958
- let a = Ba(t[2], "()");
1958
+ let a = Ga(t[2], "()");
1959
1959
  if (a === -2) return;
1960
1960
  if (a > -1) {
1961
1961
  let s = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + a;
@@ -1967,7 +1967,7 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1967
1967
  let a = this.rules.other.pedanticHrefTitle.exec(r);
1968
1968
  a && (r = a[1], i = a[3]);
1969
1969
  } else i = t[3] ? t[3].slice(1, -1) : "";
1970
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), tn(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
1970
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), nn(t, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
1971
1971
  }
1972
1972
  }
1973
1973
  reflink(e, t) {
@@ -1978,7 +1978,7 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1978
1978
  let a = n[0].charAt(0);
1979
1979
  return { type: "text", raw: a, text: a };
1980
1980
  }
1981
- return tn(n, i, n[0], this.lexer, this.rules);
1981
+ return nn(n, i, n[0], this.lexer, this.rules);
1982
1982
  }
1983
1983
  }
1984
1984
  emStrong(e, t, n = "") {
@@ -1999,13 +1999,13 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
1999
1999
  }
2000
2000
  if (o -= s, o > 0) continue;
2001
2001
  s = Math.min(s, s + o + l);
2002
- let g = [...r[0]][0].length, y = e.slice(0, i + r.index + g + s);
2002
+ let d = [...r[0]][0].length, y = e.slice(0, i + r.index + d + s);
2003
2003
  if (Math.min(i, s) % 2) {
2004
2004
  let A = y.slice(1, -1);
2005
2005
  return { type: "em", raw: y, text: A, tokens: this.lexer.inlineTokens(A) };
2006
2006
  }
2007
- let x = y.slice(2, -2);
2008
- return { type: "strong", raw: y, text: x, tokens: this.lexer.inlineTokens(x) };
2007
+ let k = y.slice(2, -2);
2008
+ return { type: "strong", raw: y, text: k, tokens: this.lexer.inlineTokens(k) };
2009
2009
  }
2010
2010
  }
2011
2011
  }
@@ -2066,25 +2066,25 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
2066
2066
  return { type: "text", raw: t[0], text: t[0], escaped: n };
2067
2067
  }
2068
2068
  }
2069
- }, Y = class ut {
2069
+ }, Y = class ft {
2070
2070
  tokens;
2071
2071
  options;
2072
2072
  state;
2073
2073
  inlineQueue;
2074
2074
  tokenizer;
2075
2075
  constructor(t) {
2076
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || ce, this.options.tokenizer = this.options.tokenizer || new Be(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
2077
- let n = { other: P, block: Ie.normal, inline: we.normal };
2078
- this.options.pedantic ? (n.block = Ie.pedantic, n.inline = we.pedantic) : this.options.gfm && (n.block = Ie.gfm, this.options.breaks ? n.inline = we.breaks : n.inline = we.gfm), this.tokenizer.rules = n;
2076
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || ue, this.options.tokenizer = this.options.tokenizer || new De(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
2077
+ let n = { other: P, block: Fe.normal, inline: we.normal };
2078
+ this.options.pedantic ? (n.block = Fe.pedantic, n.inline = we.pedantic) : this.options.gfm && (n.block = Fe.gfm, this.options.breaks ? n.inline = we.breaks : n.inline = we.gfm), this.tokenizer.rules = n;
2079
2079
  }
2080
2080
  static get rules() {
2081
- return { block: Ie, inline: we };
2081
+ return { block: Fe, inline: we };
2082
2082
  }
2083
2083
  static lex(t, n) {
2084
- return new ut(n).lex(t);
2084
+ return new ft(n).lex(t);
2085
2085
  }
2086
2086
  static lexInline(t, n) {
2087
- return new ut(n).inlineTokens(t);
2087
+ return new ft(n).inlineTokens(t);
2088
2088
  }
2089
2089
  lex(t) {
2090
2090
  t = t.replace(P.carriageReturn, `
@@ -2263,8 +2263,8 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
2263
2263
  let l = t;
2264
2264
  if (this.options.extensions?.startInline) {
2265
2265
  let c = 1 / 0, u = t.slice(1), f;
2266
- this.options.extensions.startInline.forEach((g) => {
2267
- f = g.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (c = Math.min(c, f));
2266
+ this.options.extensions.startInline.forEach((d) => {
2267
+ f = d.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (c = Math.min(c, f));
2268
2268
  }), c < 1 / 0 && c >= 0 && (l = t.substring(0, c + 1));
2269
2269
  }
2270
2270
  if (o = this.tokenizer.inlineText(l)) {
@@ -2285,11 +2285,11 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
2285
2285
  if (this.options.silent) console.error(n);
2286
2286
  else throw new Error(n);
2287
2287
  }
2288
- }, De = class {
2288
+ }, qe = class {
2289
2289
  options;
2290
2290
  parser;
2291
2291
  constructor(e) {
2292
- this.options = e || ce;
2292
+ this.options = e || ue;
2293
2293
  }
2294
2294
  space(e) {
2295
2295
  return "";
@@ -2297,8 +2297,8 @@ ${x}`, i = i.substring(0, i.length - y.text.length) + S.text;
2297
2297
  code({ text: e, lang: t, escaped: n }) {
2298
2298
  let r = (t || "").match(P.notSpaceStart)?.[0], i = e.replace(P.endingNewline, "") + `
2299
2299
  `;
2300
- return r ? '<pre><code class="language-' + K(r) + '">' + (n ? i : K(i, !0)) + `</code></pre>
2301
- ` : "<pre><code>" + (n ? i : K(i, !0)) + `</code></pre>
2300
+ return r ? '<pre><code class="language-' + Z(r) + '">' + (n ? i : Z(i, !0)) + `</code></pre>
2301
+ ` : "<pre><code>" + (n ? i : Z(i, !0)) + `</code></pre>
2302
2302
  `;
2303
2303
  }
2304
2304
  blockquote({ tokens: e }) {
@@ -2376,7 +2376,7 @@ ${e}</tr>
2376
2376
  return `<em>${this.parser.parseInline(e)}</em>`;
2377
2377
  }
2378
2378
  codespan({ text: e }) {
2379
- return `<code>${K(e, !0)}</code>`;
2379
+ return `<code>${Z(e, !0)}</code>`;
2380
2380
  }
2381
2381
  br(e) {
2382
2382
  return "<br>";
@@ -2385,22 +2385,22 @@ ${e}</tr>
2385
2385
  return `<del>${this.parser.parseInline(e)}</del>`;
2386
2386
  }
2387
2387
  link({ href: e, title: t, tokens: n }) {
2388
- let r = this.parser.parseInline(n), i = Xt(e);
2388
+ let r = this.parser.parseInline(n), i = Jt(e);
2389
2389
  if (i === null) return r;
2390
2390
  e = i;
2391
2391
  let a = '<a href="' + e + '"';
2392
- return t && (a += ' title="' + K(t) + '"'), a += ">" + r + "</a>", a;
2392
+ return t && (a += ' title="' + Z(t) + '"'), a += ">" + r + "</a>", a;
2393
2393
  }
2394
2394
  image({ href: e, title: t, text: n, tokens: r }) {
2395
2395
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
2396
- let i = Xt(e);
2397
- if (i === null) return K(n);
2396
+ let i = Jt(e);
2397
+ if (i === null) return Z(n);
2398
2398
  e = i;
2399
- let a = `<img src="${e}" alt="${K(n)}"`;
2400
- return t && (a += ` title="${K(t)}"`), a += ">", a;
2399
+ let a = `<img src="${e}" alt="${Z(n)}"`;
2400
+ return t && (a += ` title="${Z(t)}"`), a += ">", a;
2401
2401
  }
2402
2402
  text(e) {
2403
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : K(e.text);
2403
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Z(e.text);
2404
2404
  }
2405
2405
  }, Ft = class {
2406
2406
  strong({ text: e }) {
@@ -2433,18 +2433,18 @@ ${e}</tr>
2433
2433
  checkbox({ raw: e }) {
2434
2434
  return e;
2435
2435
  }
2436
- }, U = class pt {
2436
+ }, U = class dt {
2437
2437
  options;
2438
2438
  renderer;
2439
2439
  textRenderer;
2440
2440
  constructor(t) {
2441
- this.options = t || ce, this.options.renderer = this.options.renderer || new De(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ft();
2441
+ this.options = t || ue, this.options.renderer = this.options.renderer || new qe(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ft();
2442
2442
  }
2443
2443
  static parse(t, n) {
2444
- return new pt(n).parse(t);
2444
+ return new dt(n).parse(t);
2445
2445
  }
2446
2446
  static parseInline(t, n) {
2447
- return new pt(n).parseInline(t);
2447
+ return new dt(n).parseInline(t);
2448
2448
  }
2449
2449
  parse(t) {
2450
2450
  this.renderer.parser = this;
@@ -2588,7 +2588,7 @@ ${e}</tr>
2588
2588
  options;
2589
2589
  block;
2590
2590
  constructor(e) {
2591
- this.options = e || ce;
2591
+ this.options = e || ue;
2592
2592
  }
2593
2593
  static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
2594
2594
  static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
@@ -2611,15 +2611,15 @@ ${e}</tr>
2611
2611
  return e ? U.parse : U.parseInline;
2612
2612
  }
2613
2613
  }, Fn = class {
2614
- defaults = At();
2614
+ defaults = St();
2615
2615
  options = this.setOptions;
2616
2616
  parse = this.parseMarkdown(!0);
2617
2617
  parseInline = this.parseMarkdown(!1);
2618
2618
  Parser = U;
2619
- Renderer = De;
2619
+ Renderer = qe;
2620
2620
  TextRenderer = Ft;
2621
2621
  Lexer = Y;
2622
- Tokenizer = Be;
2622
+ Tokenizer = De;
2623
2623
  Hooks = ve;
2624
2624
  constructor(...e) {
2625
2625
  this.use(...e);
@@ -2668,7 +2668,7 @@ ${e}</tr>
2668
2668
  }
2669
2669
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
2670
2670
  }), r.extensions = t), n.renderer) {
2671
- let i = this.defaults.renderer || new De(this.defaults);
2671
+ let i = this.defaults.renderer || new qe(this.defaults);
2672
2672
  for (let a in n.renderer) {
2673
2673
  if (!(a in i)) throw new Error(`renderer '${a}' does not exist`);
2674
2674
  if (["options", "parser"].includes(a)) continue;
@@ -2681,7 +2681,7 @@ ${e}</tr>
2681
2681
  r.renderer = i;
2682
2682
  }
2683
2683
  if (n.tokenizer) {
2684
- let i = this.defaults.tokenizer || new Be(this.defaults);
2684
+ let i = this.defaults.tokenizer || new De(this.defaults);
2685
2685
  for (let a in n.tokenizer) {
2686
2686
  if (!(a in i)) throw new Error(`tokenizer '${a}' does not exist`);
2687
2687
  if (["options", "rules", "lexer"].includes(a)) continue;
@@ -2763,7 +2763,7 @@ ${e}</tr>
2763
2763
  return (n) => {
2764
2764
  if (n.message += `
2765
2765
  Please report this to https://github.com/markedjs/marked.`, e) {
2766
- let r = "<p>An error occurred:</p><pre>" + K(n.message + "", !0) + "</pre>";
2766
+ let r = "<p>An error occurred:</p><pre>" + Z(n.message + "", !0) + "</pre>";
2767
2767
  return t ? Promise.resolve(r) : r;
2768
2768
  }
2769
2769
  if (t) return Promise.reject(n);
@@ -2771,40 +2771,40 @@ Please report this to https://github.com/markedjs/marked.`, e) {
2771
2771
  };
2772
2772
  }
2773
2773
  }, le = new Fn();
2774
- function $(e, t) {
2774
+ function _(e, t) {
2775
2775
  return le.parse(e, t);
2776
2776
  }
2777
- $.options = $.setOptions = function(e) {
2778
- return le.setOptions(e), $.defaults = le.defaults, yn($.defaults), $;
2777
+ _.options = _.setOptions = function(e) {
2778
+ return le.setOptions(e), _.defaults = le.defaults, wn(_.defaults), _;
2779
2779
  };
2780
- $.getDefaults = At;
2781
- $.defaults = ce;
2782
- function ja(...e) {
2783
- return le.use(...e), $.defaults = le.defaults, yn($.defaults), $;
2780
+ _.getDefaults = St;
2781
+ _.defaults = ue;
2782
+ function Za(...e) {
2783
+ return le.use(...e), _.defaults = le.defaults, wn(_.defaults), _;
2784
2784
  }
2785
- $.use = ja;
2786
- $.walkTokens = function(e, t) {
2785
+ _.use = Za;
2786
+ _.walkTokens = function(e, t) {
2787
2787
  return le.walkTokens(e, t);
2788
2788
  };
2789
- $.parseInline = le.parseInline;
2790
- $.Parser = U;
2791
- $.parser = U.parse;
2792
- $.Renderer = De;
2793
- $.TextRenderer = Ft;
2794
- $.Lexer = Y;
2795
- $.lexer = Y.lex;
2796
- $.Tokenizer = Be;
2797
- $.Hooks = ve;
2798
- $.parse = $;
2799
- $.options;
2800
- $.setOptions;
2801
- $.walkTokens;
2802
- $.parseInline;
2789
+ _.parseInline = le.parseInline;
2790
+ _.Parser = U;
2791
+ _.parser = U.parse;
2792
+ _.Renderer = qe;
2793
+ _.TextRenderer = Ft;
2794
+ _.Lexer = Y;
2795
+ _.lexer = Y.lex;
2796
+ _.Tokenizer = De;
2797
+ _.Hooks = ve;
2798
+ _.parse = _;
2799
+ _.options;
2800
+ _.setOptions;
2801
+ _.walkTokens;
2802
+ _.parseInline;
2803
2803
  U.parse;
2804
2804
  Y.lex;
2805
- var et = { exports: {} }, nn;
2806
- function Ya() {
2807
- return nn || (nn = 1, function(e) {
2805
+ var rt = { exports: {} }, rn;
2806
+ function Va() {
2807
+ return rn || (rn = 1, function(e) {
2808
2808
  var t = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
2809
2809
  /**
2810
2810
  * Prism: Lightweight, robust, elegant syntax highlighting
@@ -2911,28 +2911,28 @@ function Ya() {
2911
2911
  * @returns {T}
2912
2912
  * @template T
2913
2913
  */
2914
- clone: function p(h, d) {
2915
- d = d || {};
2916
- var k, m;
2914
+ clone: function p(h, g) {
2915
+ g = g || {};
2916
+ var x, m;
2917
2917
  switch (o.util.type(h)) {
2918
2918
  case "Object":
2919
- if (m = o.util.objId(h), d[m])
2920
- return d[m];
2921
- k = /** @type {Record<string, any>} */
2922
- {}, d[m] = k;
2919
+ if (m = o.util.objId(h), g[m])
2920
+ return g[m];
2921
+ x = /** @type {Record<string, any>} */
2922
+ {}, g[m] = x;
2923
2923
  for (var v in h)
2924
- h.hasOwnProperty(v) && (k[v] = p(h[v], d));
2924
+ h.hasOwnProperty(v) && (x[v] = p(h[v], g));
2925
2925
  return (
2926
2926
  /** @type {any} */
2927
- k
2927
+ x
2928
2928
  );
2929
2929
  case "Array":
2930
- return m = o.util.objId(h), d[m] ? d[m] : (k = [], d[m] = k, /** @type {Array} */
2930
+ return m = o.util.objId(h), g[m] ? g[m] : (x = [], g[m] = x, /** @type {Array} */
2931
2931
  /** @type {any} */
2932
2932
  h.forEach(function(E, w) {
2933
- k[w] = p(E, d);
2933
+ x[w] = p(E, g);
2934
2934
  }), /** @type {any} */
2935
- k);
2935
+ x);
2936
2936
  default:
2937
2937
  return h;
2938
2938
  }
@@ -2981,13 +2981,13 @@ function Ya() {
2981
2981
  );
2982
2982
  try {
2983
2983
  throw new Error();
2984
- } catch (k) {
2985
- var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack) || [])[1];
2984
+ } catch (x) {
2985
+ var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack) || [])[1];
2986
2986
  if (p) {
2987
2987
  var h = document.getElementsByTagName("script");
2988
- for (var d in h)
2989
- if (h[d].src == p)
2990
- return h[d];
2988
+ for (var g in h)
2989
+ if (h[g].src == p)
2990
+ return h[g];
2991
2991
  }
2992
2992
  return null;
2993
2993
  }
@@ -3011,16 +3011,16 @@ function Ya() {
3011
3011
  * @param {boolean} [defaultActivation=false]
3012
3012
  * @returns {boolean}
3013
3013
  */
3014
- isActive: function(p, h, d) {
3015
- for (var k = "no-" + h; p; ) {
3014
+ isActive: function(p, h, g) {
3015
+ for (var x = "no-" + h; p; ) {
3016
3016
  var m = p.classList;
3017
3017
  if (m.contains(h))
3018
3018
  return !0;
3019
- if (m.contains(k))
3019
+ if (m.contains(x))
3020
3020
  return !1;
3021
3021
  p = p.parentElement;
3022
3022
  }
3023
- return !!d;
3023
+ return !!g;
3024
3024
  }
3025
3025
  },
3026
3026
  /**
@@ -3067,10 +3067,10 @@ function Ya() {
3067
3067
  * });
3068
3068
  */
3069
3069
  extend: function(p, h) {
3070
- var d = o.util.clone(o.languages[p]);
3071
- for (var k in h)
3072
- d[k] = h[k];
3073
- return d;
3070
+ var g = o.util.clone(o.languages[p]);
3071
+ for (var x in h)
3072
+ g[x] = h[x];
3073
+ return g;
3074
3074
  },
3075
3075
  /**
3076
3076
  * Inserts tokens _before_ another token in a language definition or any other grammar.
@@ -3147,31 +3147,31 @@ function Ya() {
3147
3147
  * @returns {Grammar} The new grammar object.
3148
3148
  * @public
3149
3149
  */
3150
- insertBefore: function(p, h, d, k) {
3151
- k = k || /** @type {any} */
3150
+ insertBefore: function(p, h, g, x) {
3151
+ x = x || /** @type {any} */
3152
3152
  o.languages;
3153
- var m = k[p], v = {};
3153
+ var m = x[p], v = {};
3154
3154
  for (var E in m)
3155
3155
  if (m.hasOwnProperty(E)) {
3156
3156
  if (E == h)
3157
- for (var w in d)
3158
- d.hasOwnProperty(w) && (v[w] = d[w]);
3159
- d.hasOwnProperty(E) || (v[E] = m[E]);
3157
+ for (var w in g)
3158
+ g.hasOwnProperty(w) && (v[w] = g[w]);
3159
+ g.hasOwnProperty(E) || (v[E] = m[E]);
3160
3160
  }
3161
- var I = k[p];
3162
- return k[p] = v, o.languages.DFS(o.languages, function(N, X) {
3163
- X === I && N != p && (this[N] = v);
3161
+ var F = x[p];
3162
+ return x[p] = v, o.languages.DFS(o.languages, function(N, X) {
3163
+ X === F && N != p && (this[N] = v);
3164
3164
  }), v;
3165
3165
  },
3166
3166
  // Traverse a language definition with Depth First Search
3167
- DFS: function p(h, d, k, m) {
3167
+ DFS: function p(h, g, x, m) {
3168
3168
  m = m || {};
3169
3169
  var v = o.util.objId;
3170
3170
  for (var E in h)
3171
3171
  if (h.hasOwnProperty(E)) {
3172
- d.call(h, E, h[E], k || E);
3173
- var w = h[E], I = o.util.type(w);
3174
- I === "Object" && !m[v(w)] ? (m[v(w)] = !0, p(w, d, null, m)) : I === "Array" && !m[v(w)] && (m[v(w)] = !0, p(w, d, E, m));
3172
+ g.call(h, E, h[E], x || E);
3173
+ var w = h[E], F = o.util.type(w);
3174
+ F === "Object" && !m[v(w)] ? (m[v(w)] = !0, p(w, g, null, m)) : F === "Array" && !m[v(w)] && (m[v(w)] = !0, p(w, g, E, m));
3175
3175
  }
3176
3176
  }
3177
3177
  },
@@ -3206,15 +3206,15 @@ function Ya() {
3206
3206
  * @memberof Prism
3207
3207
  * @public
3208
3208
  */
3209
- highlightAllUnder: function(p, h, d) {
3210
- var k = {
3211
- callback: d,
3209
+ highlightAllUnder: function(p, h, g) {
3210
+ var x = {
3211
+ callback: g,
3212
3212
  container: p,
3213
3213
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
3214
3214
  };
3215
- o.hooks.run("before-highlightall", k), k.elements = Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)), o.hooks.run("before-all-elements-highlight", k);
3216
- for (var m = 0, v; v = k.elements[m++]; )
3217
- o.highlightElement(v, h === !0, k.callback);
3215
+ o.hooks.run("before-highlightall", x), x.elements = Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)), o.hooks.run("before-all-elements-highlight", x);
3216
+ for (var m = 0, v; v = x.elements[m++]; )
3217
+ o.highlightElement(v, h === !0, x.callback);
3218
3218
  },
3219
3219
  /**
3220
3220
  * Highlights the code inside a single element.
@@ -3244,39 +3244,39 @@ function Ya() {
3244
3244
  * @memberof Prism
3245
3245
  * @public
3246
3246
  */
3247
- highlightElement: function(p, h, d) {
3248
- var k = o.util.getLanguage(p), m = o.languages[k];
3249
- o.util.setLanguage(p, k);
3247
+ highlightElement: function(p, h, g) {
3248
+ var x = o.util.getLanguage(p), m = o.languages[x];
3249
+ o.util.setLanguage(p, x);
3250
3250
  var v = p.parentElement;
3251
- v && v.nodeName.toLowerCase() === "pre" && o.util.setLanguage(v, k);
3251
+ v && v.nodeName.toLowerCase() === "pre" && o.util.setLanguage(v, x);
3252
3252
  var E = p.textContent, w = {
3253
3253
  element: p,
3254
- language: k,
3254
+ language: x,
3255
3255
  grammar: m,
3256
3256
  code: E
3257
3257
  };
3258
- function I(X) {
3259
- w.highlightedCode = X, o.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, o.hooks.run("after-highlight", w), o.hooks.run("complete", w), d && d.call(w.element);
3258
+ function F(X) {
3259
+ w.highlightedCode = X, o.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, o.hooks.run("after-highlight", w), o.hooks.run("complete", w), g && g.call(w.element);
3260
3260
  }
3261
3261
  if (o.hooks.run("before-sanity-check", w), v = w.element.parentElement, v && v.nodeName.toLowerCase() === "pre" && !v.hasAttribute("tabindex") && v.setAttribute("tabindex", "0"), !w.code) {
3262
- o.hooks.run("complete", w), d && d.call(w.element);
3262
+ o.hooks.run("complete", w), g && g.call(w.element);
3263
3263
  return;
3264
3264
  }
3265
3265
  if (o.hooks.run("before-highlight", w), !w.grammar) {
3266
- I(o.util.encode(w.code));
3266
+ F(o.util.encode(w.code));
3267
3267
  return;
3268
3268
  }
3269
3269
  if (h && r.Worker) {
3270
3270
  var N = new Worker(o.filename);
3271
3271
  N.onmessage = function(X) {
3272
- I(X.data);
3272
+ F(X.data);
3273
3273
  }, N.postMessage(JSON.stringify({
3274
3274
  language: w.language,
3275
3275
  code: w.code,
3276
3276
  immediateClose: !0
3277
3277
  }));
3278
3278
  } else
3279
- I(o.highlight(w.code, w.grammar, w.language));
3279
+ F(o.highlight(w.code, w.grammar, w.language));
3280
3280
  },
3281
3281
  /**
3282
3282
  * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
@@ -3298,15 +3298,15 @@ function Ya() {
3298
3298
  * @example
3299
3299
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
3300
3300
  */
3301
- highlight: function(p, h, d) {
3302
- var k = {
3301
+ highlight: function(p, h, g) {
3302
+ var x = {
3303
3303
  code: p,
3304
3304
  grammar: h,
3305
- language: d
3305
+ language: g
3306
3306
  };
3307
- if (o.hooks.run("before-tokenize", k), !k.grammar)
3308
- throw new Error('The language "' + k.language + '" has no grammar.');
3309
- return k.tokens = o.tokenize(k.code, k.grammar), o.hooks.run("after-tokenize", k), l.stringify(o.util.encode(k.tokens), k.language);
3307
+ if (o.hooks.run("before-tokenize", x), !x.grammar)
3308
+ throw new Error('The language "' + x.language + '" has no grammar.');
3309
+ return x.tokens = o.tokenize(x.code, x.grammar), o.hooks.run("after-tokenize", x), l.stringify(o.util.encode(x.tokens), x.language);
3310
3310
  },
3311
3311
  /**
3312
3312
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -3333,14 +3333,14 @@ function Ya() {
3333
3333
  * });
3334
3334
  */
3335
3335
  tokenize: function(p, h) {
3336
- var d = h.rest;
3337
- if (d) {
3338
- for (var k in d)
3339
- h[k] = d[k];
3336
+ var g = h.rest;
3337
+ if (g) {
3338
+ for (var x in g)
3339
+ h[x] = g[x];
3340
3340
  delete h.rest;
3341
3341
  }
3342
3342
  var m = new f();
3343
- return g(m, m.head, p), u(p, m, h, m.head, 0), x(m);
3343
+ return d(m, m.head, p), u(p, m, h, m.head, 0), k(m);
3344
3344
  },
3345
3345
  /**
3346
3346
  * @namespace
@@ -3362,8 +3362,8 @@ function Ya() {
3362
3362
  * @public
3363
3363
  */
3364
3364
  add: function(p, h) {
3365
- var d = o.hooks.all;
3366
- d[p] = d[p] || [], d[p].push(h);
3365
+ var g = o.hooks.all;
3366
+ g[p] = g[p] || [], g[p].push(h);
3367
3367
  },
3368
3368
  /**
3369
3369
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -3375,34 +3375,34 @@ function Ya() {
3375
3375
  * @public
3376
3376
  */
3377
3377
  run: function(p, h) {
3378
- var d = o.hooks.all[p];
3379
- if (!(!d || !d.length))
3380
- for (var k = 0, m; m = d[k++]; )
3378
+ var g = o.hooks.all[p];
3379
+ if (!(!g || !g.length))
3380
+ for (var x = 0, m; m = g[x++]; )
3381
3381
  m(h);
3382
3382
  }
3383
3383
  },
3384
3384
  Token: l
3385
3385
  };
3386
3386
  r.Prism = o;
3387
- function l(p, h, d, k) {
3388
- this.type = p, this.content = h, this.alias = d, this.length = (k || "").length | 0;
3387
+ function l(p, h, g, x) {
3388
+ this.type = p, this.content = h, this.alias = g, this.length = (x || "").length | 0;
3389
3389
  }
3390
- l.stringify = function p(h, d) {
3390
+ l.stringify = function p(h, g) {
3391
3391
  if (typeof h == "string")
3392
3392
  return h;
3393
3393
  if (Array.isArray(h)) {
3394
- var k = "";
3395
- return h.forEach(function(I) {
3396
- k += p(I, d);
3397
- }), k;
3394
+ var x = "";
3395
+ return h.forEach(function(F) {
3396
+ x += p(F, g);
3397
+ }), x;
3398
3398
  }
3399
3399
  var m = {
3400
3400
  type: h.type,
3401
- content: p(h.content, d),
3401
+ content: p(h.content, g),
3402
3402
  tag: "span",
3403
3403
  classes: ["token", h.type],
3404
3404
  attributes: {},
3405
- language: d
3405
+ language: g
3406
3406
  }, v = h.alias;
3407
3407
  v && (Array.isArray(v) ? Array.prototype.push.apply(m.classes, v) : m.classes.push(v)), o.hooks.run("wrap", m);
3408
3408
  var E = "";
@@ -3410,58 +3410,58 @@ function Ya() {
3410
3410
  E += " " + w + '="' + (m.attributes[w] || "").replace(/"/g, "&quot;") + '"';
3411
3411
  return "<" + m.tag + ' class="' + m.classes.join(" ") + '"' + E + ">" + m.content + "</" + m.tag + ">";
3412
3412
  };
3413
- function c(p, h, d, k) {
3413
+ function c(p, h, g, x) {
3414
3414
  p.lastIndex = h;
3415
- var m = p.exec(d);
3416
- if (m && k && m[1]) {
3415
+ var m = p.exec(g);
3416
+ if (m && x && m[1]) {
3417
3417
  var v = m[1].length;
3418
3418
  m.index += v, m[0] = m[0].slice(v);
3419
3419
  }
3420
3420
  return m;
3421
3421
  }
3422
- function u(p, h, d, k, m, v) {
3423
- for (var E in d)
3424
- if (!(!d.hasOwnProperty(E) || !d[E])) {
3425
- var w = d[E];
3422
+ function u(p, h, g, x, m, v) {
3423
+ for (var E in g)
3424
+ if (!(!g.hasOwnProperty(E) || !g[E])) {
3425
+ var w = g[E];
3426
3426
  w = Array.isArray(w) ? w : [w];
3427
- for (var I = 0; I < w.length; ++I) {
3428
- if (v && v.cause == E + "," + I)
3427
+ for (var F = 0; F < w.length; ++F) {
3428
+ if (v && v.cause == E + "," + F)
3429
3429
  return;
3430
- var N = w[I], X = N.inside, Rt = !!N.lookbehind, Nt = !!N.greedy, Mn = N.alias;
3431
- if (Nt && !N.pattern.global) {
3432
- var Bn = N.pattern.toString().match(/[imsuy]*$/)[0];
3433
- N.pattern = RegExp(N.pattern.source, Bn + "g");
3430
+ var N = w[F], X = N.inside, Nt = !!N.lookbehind, Lt = !!N.greedy, Hn = N.alias;
3431
+ if (Lt && !N.pattern.global) {
3432
+ var Gn = N.pattern.toString().match(/[imsuy]*$/)[0];
3433
+ N.pattern = RegExp(N.pattern.source, Gn + "g");
3434
3434
  }
3435
- for (var Lt = N.pattern || N, L = k.next, H = m; L !== h.tail && !(v && H >= v.reach); H += L.value.length, L = L.next) {
3436
- var ue = L.value;
3435
+ for (var Pt = N.pattern || N, L = x.next, W = m; L !== h.tail && !(v && W >= v.reach); W += L.value.length, L = L.next) {
3436
+ var pe = L.value;
3437
3437
  if (h.length > p.length)
3438
3438
  return;
3439
- if (!(ue instanceof l)) {
3440
- var Ce = 1, q;
3441
- if (Nt) {
3442
- if (q = c(Lt, H, p, Rt), !q || q.index >= p.length)
3439
+ if (!(pe instanceof l)) {
3440
+ var Ce = 1, H;
3441
+ if (Lt) {
3442
+ if (H = c(Pt, W, p, Nt), !H || H.index >= p.length)
3443
3443
  break;
3444
- var _e = q.index, Dn = q.index + q[0].length, J = H;
3445
- for (J += L.value.length; _e >= J; )
3444
+ var $e = H.index, Kn = H.index + H[0].length, J = W;
3445
+ for (J += L.value.length; $e >= J; )
3446
3446
  L = L.next, J += L.value.length;
3447
- if (J -= L.value.length, H = J, L.value instanceof l)
3447
+ if (J -= L.value.length, W = J, L.value instanceof l)
3448
3448
  continue;
3449
- for (var be = L; be !== h.tail && (J < Dn || typeof be.value == "string"); be = be.next)
3449
+ for (var be = L; be !== h.tail && (J < Kn || typeof be.value == "string"); be = be.next)
3450
3450
  Ce++, J += be.value.length;
3451
- Ce--, ue = p.slice(H, J), q.index -= H;
3452
- } else if (q = c(Lt, 0, ue, Rt), !q)
3451
+ Ce--, pe = p.slice(W, J), H.index -= W;
3452
+ } else if (H = c(Pt, 0, pe, Nt), !H)
3453
3453
  continue;
3454
- var _e = q.index, $e = q[0], He = ue.slice(0, _e), Pt = ue.slice(_e + $e.length), Ke = H + ue.length;
3455
- v && Ke > v.reach && (v.reach = Ke);
3456
- var Fe = L.prev;
3457
- He && (Fe = g(h, Fe, He), H += He.length), y(h, Fe, Ce);
3458
- var qn = new l(E, X ? o.tokenize($e, X) : $e, Mn, $e);
3459
- if (L = g(h, Fe, qn), Pt && g(h, L, Pt), Ce > 1) {
3460
- var We = {
3461
- cause: E + "," + I,
3462
- reach: Ke
3454
+ var $e = H.index, _e = H[0], Ze = pe.slice(0, $e), Ot = pe.slice($e + _e.length), Ve = W + pe.length;
3455
+ v && Ve > v.reach && (v.reach = Ve);
3456
+ var Ie = L.prev;
3457
+ Ze && (Ie = d(h, Ie, Ze), W += Ze.length), y(h, Ie, Ce);
3458
+ var Wn = new l(E, X ? o.tokenize(_e, X) : _e, Hn, _e);
3459
+ if (L = d(h, Ie, Wn), Ot && d(h, L, Ot), Ce > 1) {
3460
+ var Qe = {
3461
+ cause: E + "," + F,
3462
+ reach: Ve
3463
3463
  };
3464
- u(p, h, d, L.prev, H, We), v && We.reach > v.reach && (v.reach = We.reach);
3464
+ u(p, h, g, L.prev, W, Qe), v && Qe.reach > v.reach && (v.reach = Qe.reach);
3465
3465
  }
3466
3466
  }
3467
3467
  }
@@ -3472,24 +3472,24 @@ function Ya() {
3472
3472
  var p = { value: null, prev: null, next: null }, h = { value: null, prev: p, next: null };
3473
3473
  p.next = h, this.head = p, this.tail = h, this.length = 0;
3474
3474
  }
3475
- function g(p, h, d) {
3476
- var k = h.next, m = { value: d, prev: h, next: k };
3477
- return h.next = m, k.prev = m, p.length++, m;
3475
+ function d(p, h, g) {
3476
+ var x = h.next, m = { value: g, prev: h, next: x };
3477
+ return h.next = m, x.prev = m, p.length++, m;
3478
3478
  }
3479
- function y(p, h, d) {
3480
- for (var k = h.next, m = 0; m < d && k !== p.tail; m++)
3481
- k = k.next;
3482
- h.next = k, k.prev = h, p.length -= m;
3479
+ function y(p, h, g) {
3480
+ for (var x = h.next, m = 0; m < g && x !== p.tail; m++)
3481
+ x = x.next;
3482
+ h.next = x, x.prev = h, p.length -= m;
3483
3483
  }
3484
- function x(p) {
3485
- for (var h = [], d = p.head.next; d !== p.tail; )
3486
- h.push(d.value), d = d.next;
3484
+ function k(p) {
3485
+ for (var h = [], g = p.head.next; g !== p.tail; )
3486
+ h.push(g.value), g = g.next;
3487
3487
  return h;
3488
3488
  }
3489
3489
  if (!r.document)
3490
3490
  return r.addEventListener && (o.disableWorkerMessageHandler || r.addEventListener("message", function(p) {
3491
- var h = JSON.parse(p.data), d = h.language, k = h.code, m = h.immediateClose;
3492
- r.postMessage(o.highlight(k, o.languages[d], d)), m && r.close();
3491
+ var h = JSON.parse(p.data), g = h.language, x = h.code, m = h.immediateClose;
3492
+ r.postMessage(o.highlight(x, o.languages[g], g)), m && r.close();
3493
3493
  }, !1)), o;
3494
3494
  var A = o.util.currentScript();
3495
3495
  A && (o.filename = A.src, A.hasAttribute("data-manual") && (o.manual = !0));
@@ -3497,12 +3497,12 @@ function Ya() {
3497
3497
  o.manual || o.highlightAll();
3498
3498
  }
3499
3499
  if (!o.manual) {
3500
- var F = document.readyState;
3501
- F === "loading" || F === "interactive" && A && A.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
3500
+ var I = document.readyState;
3501
+ I === "loading" || I === "interactive" && A && A.defer ? document.addEventListener("DOMContentLoaded", S) : window.requestAnimationFrame ? window.requestAnimationFrame(S) : window.setTimeout(S, 16);
3502
3502
  }
3503
3503
  return o;
3504
3504
  }(t);
3505
- e.exports && (e.exports = n), typeof Ot < "u" && (Ot.Prism = n), n.languages.markup = {
3505
+ e.exports && (e.exports = n), typeof Mt < "u" && (Mt.Prism = n), n.languages.markup = {
3506
3506
  comment: {
3507
3507
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
3508
3508
  greedy: !0
@@ -3893,17 +3893,17 @@ function Ya() {
3893
3893
  h: "c",
3894
3894
  tex: "latex"
3895
3895
  }, o = "data-src-status", l = "loading", c = "loaded", u = "failed", f = "pre[data-src]:not([" + o + '="' + c + '"]):not([' + o + '="' + l + '"])';
3896
- function g(A, S, F) {
3896
+ function d(A, S, I) {
3897
3897
  var p = new XMLHttpRequest();
3898
3898
  p.open("GET", A, !0), p.onreadystatechange = function() {
3899
- p.readyState == 4 && (p.status < 400 && p.responseText ? S(p.responseText) : p.status >= 400 ? F(i(p.status, p.statusText)) : F(a));
3899
+ p.readyState == 4 && (p.status < 400 && p.responseText ? S(p.responseText) : p.status >= 400 ? I(i(p.status, p.statusText)) : I(a));
3900
3900
  }, p.send(null);
3901
3901
  }
3902
3902
  function y(A) {
3903
3903
  var S = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(A || "");
3904
3904
  if (S) {
3905
- var F = Number(S[1]), p = S[2], h = S[3];
3906
- return p ? h ? [F, Number(h)] : [F, void 0] : [F, F];
3905
+ var I = Number(S[1]), p = S[2], h = S[3];
3906
+ return p ? h ? [I, Number(h)] : [I, void 0] : [I, I];
3907
3907
  }
3908
3908
  }
3909
3909
  n.hooks.add("before-highlightall", function(A) {
@@ -3915,29 +3915,29 @@ function Ya() {
3915
3915
  );
3916
3916
  if (S.matches(f)) {
3917
3917
  A.code = "", S.setAttribute(o, l);
3918
- var F = S.appendChild(document.createElement("CODE"));
3919
- F.textContent = r;
3918
+ var I = S.appendChild(document.createElement("CODE"));
3919
+ I.textContent = r;
3920
3920
  var p = S.getAttribute("data-src"), h = A.language;
3921
3921
  if (h === "none") {
3922
- var d = (/\.(\w+)$/.exec(p) || [, "none"])[1];
3923
- h = s[d] || d;
3922
+ var g = (/\.(\w+)$/.exec(p) || [, "none"])[1];
3923
+ h = s[g] || g;
3924
3924
  }
3925
- n.util.setLanguage(F, h), n.util.setLanguage(S, h);
3926
- var k = n.plugins.autoloader;
3927
- k && k.loadLanguages(h), g(
3925
+ n.util.setLanguage(I, h), n.util.setLanguage(S, h);
3926
+ var x = n.plugins.autoloader;
3927
+ x && x.loadLanguages(h), d(
3928
3928
  p,
3929
3929
  function(m) {
3930
3930
  S.setAttribute(o, c);
3931
3931
  var v = y(S.getAttribute("data-range"));
3932
3932
  if (v) {
3933
- var E = m.split(/\r\n?|\n/g), w = v[0], I = v[1] == null ? E.length : v[1];
3934
- w < 0 && (w += E.length), w = Math.max(0, Math.min(w - 1, E.length)), I < 0 && (I += E.length), I = Math.max(0, Math.min(I, E.length)), m = E.slice(w, I).join(`
3933
+ var E = m.split(/\r\n?|\n/g), w = v[0], F = v[1] == null ? E.length : v[1];
3934
+ w < 0 && (w += E.length), w = Math.max(0, Math.min(w - 1, E.length)), F < 0 && (F += E.length), F = Math.max(0, Math.min(F, E.length)), m = E.slice(w, F).join(`
3935
3935
  `), S.hasAttribute("data-start") || S.setAttribute("data-start", String(w + 1));
3936
3936
  }
3937
- F.textContent = m, n.highlightElement(F);
3937
+ I.textContent = m, n.highlightElement(I);
3938
3938
  },
3939
3939
  function(m) {
3940
- S.setAttribute(o, u), F.textContent = m;
3940
+ S.setAttribute(o, u), I.textContent = m;
3941
3941
  }
3942
3942
  );
3943
3943
  }
@@ -3950,82 +3950,153 @@ function Ya() {
3950
3950
  * @param {ParentNode} [container=document]
3951
3951
  */
3952
3952
  highlight: function(S) {
3953
- for (var F = (S || document).querySelectorAll(f), p = 0, h; h = F[p++]; )
3953
+ for (var I = (S || document).querySelectorAll(f), p = 0, h; h = I[p++]; )
3954
3954
  n.highlightElement(h);
3955
3955
  }
3956
3956
  };
3957
- var x = !1;
3957
+ var k = !1;
3958
3958
  n.fileHighlight = function() {
3959
- x || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), x = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
3959
+ k || (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), k = !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
3960
3960
  };
3961
3961
  }();
3962
- }(et)), et.exports;
3962
+ }(rt)), rt.exports;
3963
3963
  }
3964
- var tt = Ya();
3965
- const ht = "mermaid", Ua = "cx-frontmatter", Ga = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3966
- function Ha(e) {
3967
- const t = Ga.exec(e);
3964
+ var it = Va();
3965
+ const gt = "mermaid", Qa = "cx-frontmatter", Rn = "cx-math", Xa = /^ {0,3}\$\$[ \t]*\n((?:(?!\n[ \t]*\n)[\s\S])+?)\n[ \t]*\$\$[ \t]*(?:\n|$)/, Ja = /(?:^|\n) {0,3}\$\$[ \t]*\n/, eo = Y.rules.block.gfm.paragraph, Nn = /^\$\$((?:\\[\s\S]|[^\\$])+?)\$\$/, Ln = /^\$(?!\s)((?:\\[\s\S]|[^\\$])*?(?:\\[\s\S]|[^\\$\s]))\$(?!\d)/, to = new RegExp(
3966
+ `${Nn.source.slice(1)}|${Ln.source.slice(1)}`,
3967
+ "g"
3968
+ ), no = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3969
+ function ro(e) {
3970
+ const t = no.exec(e);
3968
3971
  if (!t)
3969
3972
  return { body: e, data: {}, raw: "" };
3970
3973
  const n = t[1], r = e.slice(t[0].length);
3971
3974
  try {
3972
- const i = Hi(n);
3975
+ const i = Ji(n);
3973
3976
  if (i && typeof i == "object" && !Array.isArray(i))
3974
3977
  return { body: r, data: i, raw: n };
3975
3978
  } catch {
3976
3979
  }
3977
3980
  return { body: r, data: {}, raw: n };
3978
3981
  }
3979
- function Ka(e, t) {
3980
- return `<details class="${Ua}"><summary>${ft(t)}</summary><pre>${ft(e)}</pre></details>`;
3982
+ function io(e, t) {
3983
+ return `<details class="${Qa}"><summary>${je(t)}</summary><pre>${je(e)}</pre></details>`;
3981
3984
  }
3982
- function ft(e) {
3985
+ function je(e) {
3983
3986
  return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
3984
3987
  }
3985
- const Wa = {
3988
+ const ao = {
3986
3989
  code({ escaped: e, lang: t, text: n }) {
3987
- const r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : ft(n);
3988
- if (r === ht)
3989
- return `<pre class="${ht}">${i}</pre>`;
3990
+ const r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : je(n);
3991
+ if (r === gt)
3992
+ return `<pre class="${gt}">${i}</pre>`;
3990
3993
  const a = ["ts", "typescript", "js", "javascript"].includes(
3991
3994
  r ?? ""
3992
3995
  ) ? "javascript" : r;
3993
- if (!a || !tt.languages[a])
3996
+ if (!a || !it.languages[a])
3994
3997
  return `<pre class="language-"><code>${i}</code></pre>`;
3995
- const s = tt.highlight(n, tt.languages[a], a);
3998
+ const s = it.highlight(n, it.languages[a], a);
3996
3999
  return `<pre class="language-${a}"><code>${s}</code></pre>`;
3997
4000
  }
3998
4001
  };
3999
- function In() {
4000
- const e = new Fn();
4001
- return e.use({ renderer: Wa }), e;
4002
+ function Pn(e, t, n) {
4003
+ return `<${e} class="${Rn}"${n ? " data-display" : ""}>${je(t.trim())}</${e}>`;
4002
4004
  }
4003
- const Za = mt`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{margin:var(--cx-spacing-x-large) 0 var(--cx-spacing-medium);font-weight:var(--cx-font-weight-semibold);line-height:1.3;display:block}:host p,:host ul,:host ol,:host blockquote,:host pre{display:block}:host :first-child{margin-top:0}:host h1{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-2x-large)}:host h2{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-x-large)}:host h3{font-size:var(--cx-font-size-large)}:host h4{font-size:var(--cx-font-size-medium-large)}:host h5{font-size:var(--cx-font-size-medium)}:host h6{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-medium)}:host p{margin:0 0 var(--cx-spacing-medium)}:host ul,:host ol{margin:0 0 var(--cx-spacing-medium);padding-left:var(--cx-spacing-2x-large)}:host li+li{margin-top:var(--cx-spacing-2x-small)}:host li>ul,:host li>ol{margin-top:var(--cx-spacing-2x-small);margin-bottom:0}:host li>input[type=checkbox]{margin-right:var(--cx-spacing-2x-small)}:host blockquote{margin:0 0 var(--cx-spacing-medium);padding:var(--cx-spacing-small) var(--cx-spacing-medium);border-left:4px solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}:host blockquote blockquote{margin-top:var(--cx-spacing-small);background:0 0}:host blockquote>:last-child{margin-bottom:0}:host a{color:var(--cx-color-primary-600);text-decoration:none}:host a:hover{text-decoration:underline}:host hr{height:0;margin:var(--cx-spacing-x-large) 0;border:0;border-top:1px solid var(--cx-color-neutral-300)}:host img{max-width:100%;height:auto}:host :not(pre)>code:not([class*=language-]){border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.15em .35em;font-size:.9em}:host table{margin:0 0 var(--cx-spacing-medium);border-collapse:collapse;width:auto;max-width:100%}:host th,:host td{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-bottom:1px solid var(--cx-color-neutral-200)}:host th:not([align]),:host td:not([align]),:host th[align=left],:host td[align=left]{text-align:left}:host th[align=center],:host td[align=center]{text-align:center}:host th[align=right],:host td[align=right]{text-align:right}:host th{border-bottom:2px solid var(--cx-color-neutral-300);font-weight:var(--cx-font-weight-semibold);white-space:nowrap}:host tbody tr:last-child td{border-bottom:0}:host kbd{border:1px solid var(--cx-color-neutral-300);border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.1em .4em;font-size:.85em}`, Va = mt`:host code[class*=language-],:host pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}:host code[class*=language-] ::-moz-selection,:host code[class*=language-]::-moz-selection,:host pre[class*=language-] ::-moz-selection,:host pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}:host code[class*=language-] ::selection,:host code[class*=language-]::selection,:host pre[class*=language-] ::selection,:host pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{:host code[class*=language-],:host pre[class*=language-]{text-shadow:none}}:host pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:host :not(pre)>code[class*=language-],:host pre[class*=language-]{background:#f5f2f0}:host :not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}:host .token.cdata,:host .token.comment,:host .token.doctype,:host .token.prolog{color:#708090}:host .token.punctuation{color:#999}:host .token.namespace{opacity:.7}:host .token.boolean,:host .token.constant,:host .token.deleted,:host .token.number,:host .token.property,:host .token.symbol,:host .token.tag{color:#905}:host .token.attr-name,:host .token.builtin,:host .token.char,:host .token.inserted,:host .token.selector,:host .token.string{color:#690}:host .language-css .token.string,:host .style .token.string,:host .token.entity,:host .token.operator,:host .token.url{color:#9a6e3a;background:#ffffff80}:host .token.atrule,:host .token.attr-value,:host .token.keyword{color:#07a}:host .token.class-name,:host .token.function{color:#dd4a68}:host .token.important,:host .token.regex,:host .token.variable{color:#e90}:host .token.bold,:host .token.important{font-weight:700}:host .token.italic{font-style:italic}:host .token.entity{cursor:help}:host details.cx-frontmatter{margin:var(--cx-spacing-medium) 0;color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small)}:host details.cx-frontmatter summary{cursor:pointer}:host details.cx-frontmatter pre{margin:var(--cx-spacing-2x-small) 0 0;padding:var(--cx-spacing-small);border-radius:var(--cx-border-radius-medium);background:var(--cx-color-neutral-100);overflow-x:auto}:host pre.mermaid{margin:var(--cx-spacing-medium) 0;text-align:center;background:0 0;overflow-x:auto}:host pre.mermaid svg{max-width:100%;height:auto}:host .cx-code-block{position:relative}:host .cx-code-block>cx-icon-button{opacity:0;transition:opacity var(--cx-transition-fast) ease;position:absolute;inset-block-start:var(--cx-spacing-2x-small);inset-inline-end:var(--cx-spacing-2x-small)}:host .cx-code-block:hover>cx-icon-button,:host .cx-code-block:focus-within>cx-icon-button{opacity:1}`, Qa = mt`
4004
- ${Za}
4005
- ${Va}
4005
+ function oo(e) {
4006
+ return e.replace(to, (t) => "a".repeat(t.length));
4007
+ }
4008
+ class Ye extends U {
4009
+ /** A formula as plain text: its source, delimiters included. */
4010
+ static formulaToPlainText(t) {
4011
+ let n;
4012
+ return t.type === "mathInline" ? n = { raw: t.raw, text: t.raw, type: "text" } : n = t, n;
4013
+ }
4014
+ parseInline(t, n) {
4015
+ let r;
4016
+ return n === this.textRenderer ? r = t.map(
4017
+ (i) => Ye.formulaToPlainText(i)
4018
+ ) : r = t, super.parseInline(r, n);
4019
+ }
4020
+ }
4021
+ const so = {
4022
+ level: "block",
4023
+ name: "mathBlock",
4024
+ renderer: (e) => `${Pn("div", e.text, !0)}
4025
+ `,
4026
+ start(e) {
4027
+ let t;
4028
+ if (this.lexer.state.top) {
4029
+ const n = e.startsWith(`
4030
+ `) ? 1 : 0, r = eo.exec(e.slice(n))?.[0].length ?? 0;
4031
+ t = e.slice(0, n + r + 1).match(Ja)?.index;
4032
+ }
4033
+ return t;
4034
+ },
4035
+ tokenizer(e) {
4036
+ const t = Xa.exec(e);
4037
+ return t ? { raw: t[0], text: t[1], type: "mathBlock" } : void 0;
4038
+ }
4039
+ }, lo = {
4040
+ level: "inline",
4041
+ name: "mathInline",
4042
+ renderer: (e) => Pn("span", e.text, e.display),
4043
+ start: (e) => e.indexOf("$"),
4044
+ tokenizer(e) {
4045
+ const t = Nn.exec(e);
4046
+ if (t)
4047
+ return {
4048
+ display: !0,
4049
+ raw: t[0],
4050
+ text: t[1],
4051
+ type: "mathInline"
4052
+ };
4053
+ const n = Ln.exec(e);
4054
+ return n ? { display: !1, raw: n[0], text: n[1], type: "mathInline" } : void 0;
4055
+ }
4056
+ }, co = {
4057
+ extensions: [so, lo],
4058
+ hooks: {
4059
+ emStrongMask: oo,
4060
+ // marked passes `block` as true for parse() and false for parseInline().
4061
+ provideParser(e) {
4062
+ let t;
4063
+ return e ? t = (n, r) => new Ye(r).parse(n) : t = (n, r) => new Ye(r).parseInline(n), t;
4064
+ }
4065
+ }
4066
+ };
4067
+ function On({ math: e = !1 } = {}) {
4068
+ const t = new Fn();
4069
+ return t.use({ renderer: ao }), e && t.use(co), t;
4070
+ }
4071
+ const uo = xt`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{margin:var(--cx-spacing-x-large) 0 var(--cx-spacing-medium);font-weight:var(--cx-font-weight-semibold);line-height:1.3;display:block}:host p,:host ul,:host ol,:host blockquote,:host pre{display:block}:host :first-child{margin-top:0}:host h1{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-2x-large)}:host h2{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-x-large)}:host h3{font-size:var(--cx-font-size-large)}:host h4{font-size:var(--cx-font-size-medium-large)}:host h5{font-size:var(--cx-font-size-medium)}:host h6{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-medium)}:host p{margin:0 0 var(--cx-spacing-medium)}:host ul,:host ol{margin:0 0 var(--cx-spacing-medium);padding-left:var(--cx-spacing-2x-large)}:host li+li{margin-top:var(--cx-spacing-2x-small)}:host li>ul,:host li>ol{margin-top:var(--cx-spacing-2x-small);margin-bottom:0}:host li>input[type=checkbox]{margin-right:var(--cx-spacing-2x-small)}:host blockquote{margin:0 0 var(--cx-spacing-medium);padding:var(--cx-spacing-small) var(--cx-spacing-medium);border-left:4px solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}:host blockquote blockquote{margin-top:var(--cx-spacing-small);background:0 0}:host blockquote>:last-child{margin-bottom:0}:host a{color:var(--cx-color-primary-600);text-decoration:none}:host a:hover{text-decoration:underline}:host hr{height:0;margin:var(--cx-spacing-x-large) 0;border:0;border-top:1px solid var(--cx-color-neutral-300)}:host img{max-width:100%;height:auto}:host :not(pre)>code:not([class*=language-]){border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.15em .35em;font-size:.9em}:host table{margin:0 0 var(--cx-spacing-medium);border-collapse:collapse;width:auto;max-width:100%}:host th,:host td{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-bottom:1px solid var(--cx-color-neutral-200)}:host th:not([align]),:host td:not([align]),:host th[align=left],:host td[align=left]{text-align:left}:host th[align=center],:host td[align=center]{text-align:center}:host th[align=right],:host td[align=right]{text-align:right}:host th{border-bottom:2px solid var(--cx-color-neutral-300);font-weight:var(--cx-font-weight-semibold);white-space:nowrap}:host tbody tr:last-child td{border-bottom:0}:host kbd{border:1px solid var(--cx-color-neutral-300);border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.1em .4em;font-size:.85em}`, po = xt`:host code[class*=language-],:host pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}:host code[class*=language-] ::-moz-selection,:host code[class*=language-]::-moz-selection,:host pre[class*=language-] ::-moz-selection,:host pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}:host code[class*=language-] ::selection,:host code[class*=language-]::selection,:host pre[class*=language-] ::selection,:host pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{:host code[class*=language-],:host pre[class*=language-]{text-shadow:none}}:host pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:host :not(pre)>code[class*=language-],:host pre[class*=language-]{background:#f5f2f0}:host :not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}:host .token.cdata,:host .token.comment,:host .token.doctype,:host .token.prolog{color:#708090}:host .token.punctuation{color:#999}:host .token.namespace{opacity:.7}:host .token.boolean,:host .token.constant,:host .token.deleted,:host .token.number,:host .token.property,:host .token.symbol,:host .token.tag{color:#905}:host .token.attr-name,:host .token.builtin,:host .token.char,:host .token.inserted,:host .token.selector,:host .token.string{color:#690}:host .language-css .token.string,:host .style .token.string,:host .token.entity,:host .token.operator,:host .token.url{color:#9a6e3a;background:#ffffff80}:host .token.atrule,:host .token.attr-value,:host .token.keyword{color:#07a}:host .token.class-name,:host .token.function{color:#dd4a68}:host .token.important,:host .token.regex,:host .token.variable{color:#e90}:host .token.bold,:host .token.important{font-weight:700}:host .token.italic{font-style:italic}:host .token.entity{cursor:help}:host details.cx-frontmatter{margin:var(--cx-spacing-medium) 0;color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small)}:host details.cx-frontmatter summary{cursor:pointer}:host details.cx-frontmatter pre{margin:var(--cx-spacing-2x-small) 0 0;padding:var(--cx-spacing-small);border-radius:var(--cx-border-radius-medium);background:var(--cx-color-neutral-100);overflow-x:auto}:host pre.mermaid{margin:var(--cx-spacing-medium) 0;text-align:center;background:0 0;overflow-x:auto}:host pre.mermaid svg{max-width:100%;height:auto}:host .cx-code-block{position:relative}:host .cx-code-block>cx-icon-button{opacity:0;transition:opacity var(--cx-transition-fast) ease;position:absolute;inset-block-start:var(--cx-spacing-2x-small);inset-inline-end:var(--cx-spacing-2x-small)}:host .cx-code-block:hover>cx-icon-button,:host .cx-code-block:focus-within>cx-icon-button{opacity:1}`, ho = xt`
4072
+ ${uo}
4073
+ ${po}
4006
4074
  `;
4007
- var Xa = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, Rn = (e) => {
4075
+ var fo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, Mn = (e) => {
4008
4076
  throw TypeError(e);
4009
- }, W = (e, t, n, r) => {
4010
- for (var i = r > 1 ? void 0 : r ? Ja(t, n) : t, a = e.length - 1, s; a >= 0; a--)
4077
+ }, K = (e, t, n, r) => {
4078
+ for (var i = r > 1 ? void 0 : r ? go(t, n) : t, a = e.length - 1, s; a >= 0; a--)
4011
4079
  (s = e[a]) && (i = (r ? s(t, n, i) : s(i)) || i);
4012
- return r && i && Xa(t, n, i), i;
4013
- }, It = (e, t, n) => t.has(e) || Rn("Cannot " + n), ie = (e, t, n) => (It(e, t, "read from private field"), n ? n.call(e) : t.get(e)), nt = (e, t, n) => t.has(e) ? Rn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), eo = (e, t, n, r) => (It(e, t, "write to private field"), t.set(e, n), n), Z = (e, t, n) => (It(e, t, "access private method"), n), Se, ae, j, gt, Nn, Ln, Pn, On, dt, zn;
4014
- const to = `pre.${ht}:not([data-processed])`;
4015
- let rn = 0;
4016
- const no = 'a[href], details, summary, button, cx-icon-button, input, label, [role="button"], .clickable', ro = "pre > code", an = "cx-code-block", io = 1500;
4017
- let D = class extends Qn {
4080
+ return r && i && fo(t, n, i), i;
4081
+ }, Rt = (e, t, n) => t.has(e) || Mn("Cannot " + n), ie = (e, t, n) => (Rt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), at = (e, t, n) => t.has(e) ? Mn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), mo = (e, t, n, r) => (Rt(e, t, "write to private field"), t.set(e, n), n), j = (e, t, n) => (Rt(e, t, "access private method"), n), Se, ae, D, mt, zn, Bn, Dn, qn, Ne, jn, Yn, Un;
4082
+ const xo = `pre.${gt}:not([data-processed])`, ko = `.${Rn}:not([data-processed])`, bo = () => import("./katex.DbTeUMVw.js");
4083
+ let an = 0;
4084
+ const yo = 'a[href], details, summary, button, cx-icon-button, input, label, [role="button"], .clickable', wo = "pre > code", on = "cx-code-block", vo = 1500;
4085
+ let q = class extends ir {
4018
4086
  constructor() {
4019
- super(...arguments), nt(this, j), this.localize = new Hn(this), nt(this, Se, In()), nt(this, ae, /* @__PURE__ */ new Map()), this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.renderer = {}, this.extensions = [];
4087
+ super(...arguments), at(this, D), this.localize = new Jn(this), at(this, Se, On()), at(this, ae, /* @__PURE__ */ new Map()), this.loadKatex = bo, this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.showMathNotation = !1, this.renderer = {}, this.extensions = [];
4020
4088
  }
4021
4089
  connectedCallback() {
4022
- super.connectedCallback(), Z(this, j, dt).call(this);
4090
+ super.connectedCallback(), j(this, D, Ne).call(this);
4023
4091
  }
4024
4092
  disconnectedCallback() {
4025
4093
  super.disconnectedCallback(), ie(this, ae).forEach(clearTimeout), ie(this, ae).clear();
4026
4094
  }
4095
+ willUpdate(e) {
4096
+ super.willUpdate(e), e.has("showMathNotation") && (this.hasUpdated ? this.handleRenderedWithNewMarkdown() : j(this, D, Ne).call(this));
4097
+ }
4027
4098
  updateRendered() {
4028
- this.rendered = Z(this, j, gt).call(this);
4099
+ this.rendered = j(this, D, mt).call(this);
4029
4100
  }
4030
4101
  /**
4031
4102
  * Light DOM means every click reaches ancestors, which commonly treat one as "start editing".
@@ -4034,62 +4105,54 @@ let D = class extends Qn {
4034
4105
  */
4035
4106
  handleClick(e) {
4036
4107
  const t = e.target?.closest(
4037
- no
4108
+ yo
4038
4109
  );
4039
4110
  t && this.contains(t) && e.stopPropagation();
4040
4111
  }
4041
4112
  handleRenderedWithNewMarkdown() {
4042
- Z(this, j, dt).call(this), this.markdown && (this.rendered = Z(this, j, gt).call(this));
4113
+ j(this, D, Ne).call(this), this.markdown && (this.rendered = j(this, D, mt).call(this));
4043
4114
  }
4044
4115
  render() {
4045
- return Wn`<div class=${this.classname} @click=${this.handleClick}>${Vn(
4116
+ return tr`<div class=${this.classname} @click=${this.handleClick}>${rr(
4046
4117
  this.rendered
4047
4118
  )}</div>`;
4048
4119
  }
4049
4120
  updated() {
4050
- Z(this, j, Nn).call(this), Z(this, j, Ln).call(this), this.liveScript && ao(this);
4051
- const e = this.querySelectorAll(
4052
- to
4053
- );
4054
- if (e.length === 0) {
4055
- this.emit("cx-ready");
4056
- return;
4057
- }
4058
- Z(this, j, zn).call(this, e);
4121
+ j(this, D, zn).call(this), j(this, D, Bn).call(this), this.liveScript && Ao(this), j(this, D, Un).call(this);
4059
4122
  }
4060
4123
  };
4061
4124
  Se = /* @__PURE__ */ new WeakMap();
4062
4125
  ae = /* @__PURE__ */ new WeakMap();
4063
- j = /* @__PURE__ */ new WeakSet();
4064
- gt = function() {
4126
+ D = /* @__PURE__ */ new WeakSet();
4127
+ mt = function() {
4065
4128
  if (!this.markdown)
4066
4129
  return this.frontmatter = {}, "";
4067
- const { body: e, data: t, raw: n } = Ha(this.markdown);
4130
+ const { body: e, data: t, raw: n } = ro(this.markdown);
4068
4131
  this.frontmatter = t;
4069
- const r = ie(this, Se).parse(e), i = n ? Ka(n, this.localize.term("metadata")) + r : r;
4070
- return this.liveScript ? i : Kn(i);
4132
+ const r = ie(this, Se).parse(e), i = n ? io(n, this.localize.term("metadata")) + r : r;
4133
+ return this.liveScript ? i : er(i);
4071
4134
  };
4072
- Nn = function() {
4135
+ zn = function() {
4073
4136
  if (this.linkTarget)
4074
4137
  for (const e of this.querySelectorAll("a[href]"))
4075
4138
  e.setAttribute("target", this.linkTarget), this.linkTarget === "_blank" && e.setAttribute("rel", "noopener noreferrer");
4076
4139
  };
4077
- Ln = function() {
4078
- for (const e of this.querySelectorAll(ro)) {
4140
+ Bn = function() {
4141
+ for (const e of this.querySelectorAll(wo)) {
4079
4142
  const t = e.parentElement;
4080
- if (!t || t.parentElement?.classList.contains(an))
4143
+ if (!t || t.parentElement?.classList.contains(on))
4081
4144
  continue;
4082
4145
  const n = document.createElement("div");
4083
- n.className = an, t.replaceWith(n), n.append(t, Z(this, j, Pn).call(this, e));
4146
+ n.className = on, t.replaceWith(n), n.append(t, j(this, D, Dn).call(this, e));
4084
4147
  }
4085
4148
  };
4086
- Pn = function(e) {
4149
+ Dn = function(e) {
4087
4150
  const t = document.createElement("cx-icon-button");
4088
- return t.name = "content_copy", t.label = this.localize.term("copy"), t.size = Yn.Small, t.addEventListener("click", () => {
4089
- Z(this, j, On).call(this, e.textContent ?? "", t);
4151
+ return t.name = "content_copy", t.label = this.localize.term("copy"), t.size = Vn.Small, t.addEventListener("click", () => {
4152
+ j(this, D, qn).call(this, e.textContent ?? "", t);
4090
4153
  }), t;
4091
4154
  };
4092
- On = async function(e, t) {
4155
+ qn = async function(e, t) {
4093
4156
  try {
4094
4157
  await navigator.clipboard.writeText(e);
4095
4158
  } catch {
@@ -4099,16 +4162,16 @@ On = async function(e, t) {
4099
4162
  t,
4100
4163
  window.setTimeout(() => {
4101
4164
  t.name = "content_copy", t.label = this.localize.term("copy"), ie(this, ae).delete(t);
4102
- }, io)
4165
+ }, vo)
4103
4166
  );
4104
4167
  };
4105
- dt = function() {
4106
- eo(this, Se, In()), ie(this, Se).use({
4168
+ Ne = function() {
4169
+ mo(this, Se, On({ math: this.showMathNotation })), ie(this, Se).use({
4107
4170
  extensions: this.extensions,
4108
4171
  renderer: this.renderer
4109
4172
  });
4110
4173
  };
4111
- zn = async function(e) {
4174
+ jn = async function(e) {
4112
4175
  try {
4113
4176
  const { default: t } = await import("./mermaid.core.CPVTuCpJ.js").then((n) => n.aW);
4114
4177
  t.initialize({
@@ -4122,9 +4185,9 @@ zn = async function(e) {
4122
4185
  const r = n.textContent ?? "";
4123
4186
  n.setAttribute("data-processed", "true");
4124
4187
  try {
4125
- rn += 1;
4188
+ an += 1;
4126
4189
  const { bindFunctions: i, svg: a } = await t.render(
4127
- `cx-mermaid-${rn}`,
4190
+ `cx-mermaid-${an}`,
4128
4191
  r
4129
4192
  );
4130
4193
  n.innerHTML = a, i?.(n);
@@ -4133,47 +4196,74 @@ zn = async function(e) {
4133
4196
  }
4134
4197
  }
4135
4198
  } catch {
4136
- } finally {
4137
- this.emit("cx-ready");
4138
4199
  }
4139
4200
  };
4140
- D.styles = Qa;
4141
- D.dependencies = {
4142
- "cx-icon-button": jn
4201
+ Yn = async function(e) {
4202
+ if (window.MathMLElement === void 0)
4203
+ return;
4204
+ const t = await this.loadKatex().catch(() => {
4205
+ });
4206
+ if (t) {
4207
+ for (const n of e)
4208
+ if (!n.hasAttribute("data-processed")) {
4209
+ n.setAttribute("data-processed", "true");
4210
+ try {
4211
+ n.innerHTML = t.renderToString(n.textContent ?? "", {
4212
+ displayMode: n.hasAttribute("data-display"),
4213
+ // MathML needs no stylesheet or fonts and renders inside shadow roots.
4214
+ output: "mathml"
4215
+ });
4216
+ } catch {
4217
+ }
4218
+ }
4219
+ }
4220
+ };
4221
+ Un = async function() {
4222
+ const e = [], t = this.querySelectorAll(
4223
+ xo
4224
+ ), n = this.querySelectorAll(ko);
4225
+ t.length > 0 && e.push(j(this, D, jn).call(this, t)), n.length > 0 && e.push(j(this, D, Yn).call(this, n)), e.length > 0 && await Promise.all(e), this.emit("cx-ready");
4226
+ };
4227
+ q.styles = ho;
4228
+ q.dependencies = {
4229
+ "cx-icon-button": Zn
4143
4230
  };
4144
- W([
4145
- me({ type: String })
4146
- ], D.prototype, "classname", 2);
4147
- W([
4148
- me({ attribute: "live-script", reflect: !0, type: Boolean })
4149
- ], D.prototype, "liveScript", 2);
4150
- W([
4151
- me({ attribute: "link-target", type: String })
4152
- ], D.prototype, "linkTarget", 2);
4153
- W([
4154
- me({ type: String })
4155
- ], D.prototype, "markdown", 2);
4156
- W([
4157
- me({ type: Object })
4158
- ], D.prototype, "renderer", 2);
4159
- W([
4160
- me({ type: Object })
4161
- ], D.prototype, "extensions", 2);
4162
- W([
4163
- Zn()
4164
- ], D.prototype, "rendered", 2);
4165
- W([
4166
- Ne("liveScript"),
4167
- Ne("markdown")
4168
- ], D.prototype, "updateRendered", 1);
4169
- W([
4170
- Ne("renderer", { waitUntilFirstUpdate: !0 }),
4171
- Ne("extensions", { waitUntilFirstUpdate: !0 })
4172
- ], D.prototype, "handleRenderedWithNewMarkdown", 1);
4173
- D = W([
4174
- Gn("cx-markdown")
4175
- ], D);
4176
- function ao(e) {
4231
+ K([
4232
+ ce({ type: String })
4233
+ ], q.prototype, "classname", 2);
4234
+ K([
4235
+ ce({ attribute: "live-script", reflect: !0, type: Boolean })
4236
+ ], q.prototype, "liveScript", 2);
4237
+ K([
4238
+ ce({ attribute: "link-target", type: String })
4239
+ ], q.prototype, "linkTarget", 2);
4240
+ K([
4241
+ ce({ attribute: "show-math-notation", type: Boolean })
4242
+ ], q.prototype, "showMathNotation", 2);
4243
+ K([
4244
+ ce({ type: String })
4245
+ ], q.prototype, "markdown", 2);
4246
+ K([
4247
+ ce({ type: Object })
4248
+ ], q.prototype, "renderer", 2);
4249
+ K([
4250
+ ce({ type: Object })
4251
+ ], q.prototype, "extensions", 2);
4252
+ K([
4253
+ nr()
4254
+ ], q.prototype, "rendered", 2);
4255
+ K([
4256
+ Le("liveScript"),
4257
+ Le("markdown")
4258
+ ], q.prototype, "updateRendered", 1);
4259
+ K([
4260
+ Le("renderer", { waitUntilFirstUpdate: !0 }),
4261
+ Le("extensions", { waitUntilFirstUpdate: !0 })
4262
+ ], q.prototype, "handleRenderedWithNewMarkdown", 1);
4263
+ q = K([
4264
+ Xn("cx-markdown")
4265
+ ], q);
4266
+ function Ao(e) {
4177
4267
  e.querySelectorAll("script").forEach((n) => {
4178
4268
  const r = document.createElement("script");
4179
4269
  n.src ? r.src = n.src : r.text = `(function() {
@@ -4184,10 +4274,10 @@ ${n.text}
4184
4274
  });
4185
4275
  }
4186
4276
  export {
4187
- D as C,
4188
- Qn as a,
4189
- Ha as e,
4190
- tt as p,
4191
- Qa as s,
4277
+ q as C,
4278
+ ir as a,
4279
+ ro as e,
4280
+ it as p,
4281
+ ho as s,
4192
4282
  Y as x
4193
4283
  };