@orangelogic/design-system 3.55.0 → 3.57.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 { t as e } from "./rolldown-runtime.CEFd7nDs.js";
2
- import { c as t, d as n } from "./lit.CyJqR2kf.js";
3
- import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
4
- import { t as c } from "./custom-element.BEMYNDK1.js";
5
- import { t as l } from "./i18n.BJ2p4em8.js";
6
- import { t as u } from "./watch.Ub5r8btz.js";
7
- import { n as d, t as f } from "./icon-button.Dd-oDRfX.js";
8
- import { g as p } from "./string.DAuTpyw8.js";
9
- import { t as m } from "./unsafe-html.Cb838aX7.js";
1
+ import { o as e, t } from "./rolldown-runtime.CEFd7nDs.js";
2
+ import { c as n, d as r } from "./lit.CyJqR2kf.js";
3
+ import { a as i, i as a, n as o, r as s, t as c } from "./cortex-element.DTrNUtdr.js";
4
+ import { t as l } from "./custom-element.BEMYNDK1.js";
5
+ import { t as u } from "./i18n.BJ2p4em8.js";
6
+ import { t as d } from "./watch.Ub5r8btz.js";
7
+ import { n as f, t as p } from "./icon-button.Dd-oDRfX.js";
8
+ import { g as m } from "./string.DAuTpyw8.js";
9
+ import { t as h } from "./unsafe-html.Cb838aX7.js";
10
10
  //#region ../../packages/base/src/cortex-light-element.ts
11
- var h = class extends s {
11
+ var g = class extends c {
12
12
  constructor() {
13
13
  super(), this.#e();
14
14
  }
@@ -29,8 +29,8 @@ function ee(e) {
29
29
  }
30
30
  //#endregion
31
31
  //#region ../../node_modules/js-yaml/dist/js-yaml.mjs
32
- var g = Symbol("NOT_RESOLVED"), te = Symbol("MERGE_KEY");
33
- function _(e, t) {
32
+ var _ = Symbol("NOT_RESOLVED"), te = Symbol("MERGE_KEY");
33
+ function v(e, t) {
34
34
  return {
35
35
  tagName: e,
36
36
  nodeKind: "scalar",
@@ -59,7 +59,7 @@ function ne(e, t) {
59
59
  representTagName: t.representTagName ?? null
60
60
  };
61
61
  }
62
- function v(e, t) {
62
+ function y(e, t) {
63
63
  let n = t.finalize === void 0;
64
64
  return {
65
65
  tagName: e,
@@ -78,16 +78,16 @@ function v(e, t) {
78
78
  representTagName: t.representTagName ?? null
79
79
  };
80
80
  }
81
- var y = _("tag:yaml.org,2002:str", {
81
+ var b = v("tag:yaml.org,2002:str", {
82
82
  resolve: (e) => e,
83
83
  identify: (e) => typeof e == "string"
84
- }), b = [
84
+ }), x = [
85
85
  "",
86
86
  "~",
87
87
  "null",
88
88
  "Null",
89
89
  "NULL"
90
- ], x = _("tag:yaml.org,2002:null", {
90
+ ], re = v("tag:yaml.org,2002:null", {
91
91
  implicit: !0,
92
92
  implicitFirstChars: [
93
93
  "",
@@ -95,22 +95,22 @@ var y = _("tag:yaml.org,2002:str", {
95
95
  "n",
96
96
  "N"
97
97
  ],
98
- resolve: (e) => b.indexOf(e) === -1 ? g : null,
98
+ resolve: (e) => x.indexOf(e) === -1 ? _ : null,
99
99
  identify: (e) => e === null,
100
100
  represent: () => "null"
101
- }), re = _("tag:yaml.org,2002:null", {
101
+ }), S = v("tag:yaml.org,2002:null", {
102
102
  implicit: !0,
103
103
  implicitFirstChars: ["n"],
104
- resolve: (e, t) => e === "null" || t && e === "" ? null : g,
104
+ resolve: (e, t) => e === "null" || t && e === "" ? null : _,
105
105
  identify: (e) => e === null,
106
106
  represent: () => "null"
107
- }), S = [
107
+ }), ie = [
108
108
  "",
109
109
  "~",
110
110
  "null",
111
111
  "Null",
112
112
  "NULL"
113
- ], ie = _("tag:yaml.org,2002:null", {
113
+ ], ae = v("tag:yaml.org,2002:null", {
114
114
  implicit: !0,
115
115
  implicitFirstChars: [
116
116
  "",
@@ -118,18 +118,18 @@ var y = _("tag:yaml.org,2002:str", {
118
118
  "n",
119
119
  "N"
120
120
  ],
121
- resolve: (e) => S.indexOf(e) === -1 ? g : null,
121
+ resolve: (e) => ie.indexOf(e) === -1 ? _ : null,
122
122
  identify: (e) => e === null,
123
123
  represent: () => "null"
124
- }), ae = [
124
+ }), C = [
125
125
  "true",
126
126
  "True",
127
127
  "TRUE"
128
- ], C = [
128
+ ], oe = [
129
129
  "false",
130
130
  "False",
131
131
  "FALSE"
132
- ], oe = _("tag:yaml.org,2002:bool", {
132
+ ], se = v("tag:yaml.org,2002:bool", {
133
133
  implicit: !0,
134
134
  implicitFirstChars: [
135
135
  "t",
@@ -137,16 +137,16 @@ var y = _("tag:yaml.org,2002:str", {
137
137
  "f",
138
138
  "F"
139
139
  ],
140
- resolve: (e) => ae.indexOf(e) !== -1 || C.indexOf(e) === -1 && g,
140
+ resolve: (e) => C.indexOf(e) !== -1 || oe.indexOf(e) === -1 && _,
141
141
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
142
142
  represent: (e) => e ? "true" : "false"
143
- }), se = ["true"], ce = ["false"], le = _("tag:yaml.org,2002:bool", {
143
+ }), ce = ["true"], le = ["false"], ue = v("tag:yaml.org,2002:bool", {
144
144
  implicit: !0,
145
145
  implicitFirstChars: ["t", "f"],
146
- resolve: (e) => se.indexOf(e) !== -1 || ce.indexOf(e) === -1 && g,
146
+ resolve: (e) => ce.indexOf(e) !== -1 || le.indexOf(e) === -1 && _,
147
147
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
148
148
  represent: (e) => e ? "true" : "false"
149
- }), ue = [
149
+ }), de = [
150
150
  "true",
151
151
  "True",
152
152
  "TRUE",
@@ -158,7 +158,7 @@ var y = _("tag:yaml.org,2002:str", {
158
158
  "on",
159
159
  "On",
160
160
  "ON"
161
- ], de = [
161
+ ], fe = [
162
162
  "false",
163
163
  "False",
164
164
  "FALSE",
@@ -170,7 +170,7 @@ var y = _("tag:yaml.org,2002:str", {
170
170
  "off",
171
171
  "Off",
172
172
  "OFF"
173
- ], fe = _("tag:yaml.org,2002:bool", {
173
+ ], pe = v("tag:yaml.org,2002:bool", {
174
174
  implicit: !0,
175
175
  implicitFirstChars: [
176
176
  "y",
@@ -184,51 +184,51 @@ var y = _("tag:yaml.org,2002:str", {
184
184
  "o",
185
185
  "O"
186
186
  ],
187
- resolve: (e) => ue.indexOf(e) !== -1 || de.indexOf(e) === -1 && g,
187
+ resolve: (e) => de.indexOf(e) !== -1 || fe.indexOf(e) === -1 && _,
188
188
  identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
189
189
  represent: (e) => e ? "true" : "false"
190
- }), pe = /* @__PURE__ */ RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), me = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
191
- function he(e) {
190
+ }), me = /* @__PURE__ */ RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), he = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
191
+ function ge(e) {
192
192
  let t = e, n = 1;
193
193
  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);
194
194
  }
195
- function ge(e, t) {
195
+ function _e(e, t) {
196
196
  if (t) {
197
- if (!me.test(e)) return g;
198
- } else if (!pe.test(e)) return g;
199
- let n = he(e);
200
- return Number.isFinite(n) ? n : g;
197
+ if (!he.test(e)) return _;
198
+ } else if (!me.test(e)) return _;
199
+ let n = ge(e);
200
+ return Number.isFinite(n) ? n : _;
201
201
  }
202
- var _e = _("tag:yaml.org,2002:int", {
202
+ var ve = v("tag:yaml.org,2002:int", {
203
203
  implicit: !0,
204
204
  implicitFirstChars: [
205
205
  "-",
206
206
  "+",
207
207
  ..."0123456789"
208
208
  ],
209
- resolve: ge,
209
+ resolve: _e,
210
210
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
211
211
  represent: (e) => e.toString(10)
212
- }), ve = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)$"), ye = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
213
- function be(e) {
212
+ }), ye = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)$"), be = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
213
+ function xe(e) {
214
214
  let t = e, n = 1;
215
215
  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);
216
216
  }
217
- function xe(e, t) {
217
+ function Se(e, t) {
218
218
  if (t) {
219
- if (!ye.test(e)) return g;
220
- } else if (!ve.test(e)) return g;
221
- let n = be(e);
222
- return Number.isFinite(n) ? n : g;
219
+ if (!be.test(e)) return _;
220
+ } else if (!ye.test(e)) return _;
221
+ let n = xe(e);
222
+ return Number.isFinite(n) ? n : _;
223
223
  }
224
- var Se = _("tag:yaml.org,2002:int", {
224
+ var Ce = v("tag:yaml.org,2002:int", {
225
225
  implicit: !0,
226
226
  implicitFirstChars: ["-", ..."0123456789"],
227
- resolve: xe,
227
+ resolve: Se,
228
228
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
229
229
  represent: (e) => e.toString(10)
230
- }), Ce = /* @__PURE__ */ 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_]*))$");
231
- function we(e) {
230
+ }), we = /* @__PURE__ */ 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_]*))$");
231
+ function Te(e) {
232
232
  let t = e.replace(/_/g, ""), n = 1;
233
233
  if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
234
234
  if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
@@ -239,31 +239,31 @@ function we(e) {
239
239
  }
240
240
  return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
241
241
  }
242
- function Te(e) {
243
- if (!Ce.test(e)) return g;
244
- let t = we(e);
245
- return Number.isFinite(t) ? t : g;
242
+ function Ee(e) {
243
+ if (!we.test(e)) return _;
244
+ let t = Te(e);
245
+ return Number.isFinite(t) ? t : _;
246
246
  }
247
- var Ee = _("tag:yaml.org,2002:int", {
247
+ var De = v("tag:yaml.org,2002:int", {
248
248
  implicit: !0,
249
249
  implicitFirstChars: [
250
250
  "-",
251
251
  "+",
252
252
  ..."0123456789"
253
253
  ],
254
- resolve: Te,
254
+ resolve: Ee,
255
255
  identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
256
256
  represent: (e) => e.toString(10)
257
- }), De = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), Oe = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
258
- function ke(e) {
259
- if (!De.test(e)) return g;
257
+ }), Oe = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ke = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
258
+ function Ae(e) {
259
+ if (!Oe.test(e)) return _;
260
260
  let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
261
261
  if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
262
262
  if (t === ".nan") return NaN;
263
263
  let r = n * parseFloat(t);
264
- return Number.isFinite(r) || Oe.test(e) ? r : g;
264
+ return Number.isFinite(r) || ke.test(e) ? r : _;
265
265
  }
266
- function Ae(e) {
266
+ function je(e) {
267
267
  if (isNaN(e)) return ".nan";
268
268
  if (e === Infinity) return ".inf";
269
269
  if (e === -Infinity) return "-.inf";
@@ -271,7 +271,7 @@ function Ae(e) {
271
271
  let t = e.toString(10);
272
272
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
273
273
  }
274
- var je = _("tag:yaml.org,2002:float", {
274
+ var Me = v("tag:yaml.org,2002:float", {
275
275
  implicit: !0,
276
276
  implicitFirstChars: [
277
277
  "-",
@@ -279,24 +279,24 @@ var je = _("tag:yaml.org,2002:float", {
279
279
  ".",
280
280
  ..."0123456789"
281
281
  ],
282
- resolve: ke,
282
+ resolve: Ae,
283
283
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
284
- represent: Ae
285
- }), Me = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Ne = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
286
- function Pe(e, t) {
284
+ represent: je
285
+ }), Ne = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Pe = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
286
+ function Fe(e, t) {
287
287
  if (t) {
288
- if (!Ne.test(e)) return g;
288
+ if (!Pe.test(e)) return _;
289
289
  let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
290
290
  if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
291
291
  if (t === ".nan") return NaN;
292
292
  let r = n * parseFloat(t);
293
- return Number.isFinite(r) ? r : g;
293
+ return Number.isFinite(r) ? r : _;
294
294
  }
295
- if (!Me.test(e)) return g;
295
+ if (!Ne.test(e)) return _;
296
296
  let n = Number(e);
297
- return Number.isFinite(n) ? n : g;
297
+ return Number.isFinite(n) ? n : _;
298
298
  }
299
- function Fe(e) {
299
+ function Ie(e) {
300
300
  if (isNaN(e)) return ".nan";
301
301
  if (e === Infinity) return ".inf";
302
302
  if (e === -Infinity) return "-.inf";
@@ -304,15 +304,15 @@ function Fe(e) {
304
304
  let t = e.toString(10);
305
305
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
306
306
  }
307
- var Ie = _("tag:yaml.org,2002:float", {
307
+ var Le = v("tag:yaml.org,2002:float", {
308
308
  implicit: !0,
309
309
  implicitFirstChars: ["-", ..."0123456789"],
310
- resolve: Pe,
310
+ resolve: Fe,
311
311
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
312
- represent: Fe
313
- }), Le = /* @__PURE__ */ 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))$"), Re = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
314
- function ze(e) {
315
- if (!Le.test(e)) return g;
312
+ represent: Ie
313
+ }), Re = /* @__PURE__ */ 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))$"), ze = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
314
+ function Be(e) {
315
+ if (!Re.test(e)) return _;
316
316
  let t = e.toLowerCase().replace(/_/g, ""), n = t[0] === "-" ? -1 : 1;
317
317
  if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
318
318
  if (t === ".nan") return NaN;
@@ -321,9 +321,9 @@ function ze(e) {
321
321
  for (let e of t.split(":")) r = r * 60 + Number(e);
322
322
  r *= n;
323
323
  } else r = n * parseFloat(t);
324
- return Number.isFinite(r) || Re.test(e) ? r : g;
324
+ return Number.isFinite(r) || ze.test(e) ? r : _;
325
325
  }
326
- function Be(e) {
326
+ function Ve(e) {
327
327
  if (isNaN(e)) return ".nan";
328
328
  if (e === Infinity) return ".inf";
329
329
  if (e === -Infinity) return "-.inf";
@@ -331,7 +331,7 @@ function Be(e) {
331
331
  let t = e.toString(10);
332
332
  return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
333
333
  }
334
- var Ve = _("tag:yaml.org,2002:float", {
334
+ var He = v("tag:yaml.org,2002:float", {
335
335
  implicit: !0,
336
336
  implicitFirstChars: [
337
337
  "-",
@@ -339,84 +339,84 @@ var Ve = _("tag:yaml.org,2002:float", {
339
339
  ".",
340
340
  ..."0123456789"
341
341
  ],
342
- resolve: ze,
342
+ resolve: Be,
343
343
  identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
344
- represent: Be
345
- }), He = _("tag:yaml.org,2002:merge", {
344
+ represent: Ve
345
+ }), Ue = v("tag:yaml.org,2002:merge", {
346
346
  implicit: !0,
347
347
  implicitFirstChars: ["<"],
348
- resolve: (e, t) => e === "<<" || t && e === "" ? te : g
349
- }), Ue = /^[A-Za-z0-9+/]*={0,2}$/;
350
- function We(e) {
348
+ resolve: (e, t) => e === "<<" || t && e === "" ? te : _
349
+ }), We = /^[A-Za-z0-9+/]*={0,2}$/;
350
+ function Ge(e) {
351
351
  let t = e.replace(/\s/g, "");
352
- if (t.length % 4 != 0 || !Ue.test(t)) return g;
352
+ if (t.length % 4 != 0 || !We.test(t)) return _;
353
353
  let n = atob(t), r = new Uint8Array(n.length);
354
354
  for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
355
355
  return r;
356
356
  }
357
- function Ge(e) {
357
+ function Ke(e) {
358
358
  let t = "";
359
359
  for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
360
360
  return btoa(t);
361
361
  }
362
- var Ke = _("tag:yaml.org,2002:binary", {
363
- resolve: We,
362
+ var qe = v("tag:yaml.org,2002:binary", {
363
+ resolve: Ge,
364
364
  identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
365
- represent: Ge
366
- }), qe = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Je = /* @__PURE__ */ 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]))?))?$");
367
- function Ye(e, t, n, r = 0, i = 0, a = 0, o = 0) {
365
+ represent: Ke
366
+ }), Je = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ye = /* @__PURE__ */ 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]))?))?$");
367
+ function Xe(e, t, n, r = 0, i = 0, a = 0, o = 0) {
368
368
  let s = new Date(Date.UTC(e, t, n, r, i, a, o));
369
369
  return s.setUTCFullYear(e, t, n), s;
370
370
  }
371
- function Xe(e) {
372
- let t = qe.exec(e);
373
- if (t === null && (t = Je.exec(e)), t === null) return g;
371
+ function Ze(e) {
372
+ let t = Je.exec(e);
373
+ if (t === null && (t = Ye.exec(e)), t === null) return _;
374
374
  let n = +t[1], r = t[2] - 1, i = +t[3];
375
375
  if (!t[4]) {
376
- let e = Ye(n, r, i);
377
- return e.getUTCFullYear() !== n || e.getUTCMonth() !== r || e.getUTCDate() !== i ? g : e;
376
+ let e = Xe(n, r, i);
377
+ return e.getUTCFullYear() !== n || e.getUTCMonth() !== r || e.getUTCDate() !== i ? _ : e;
378
378
  }
379
379
  let a = +t[4], o = +t[5], s = +t[6], c = 0;
380
- if (a > 23 || o > 59 || s > 59) return g;
380
+ if (a > 23 || o > 59 || s > 59) return _;
381
381
  if (t[7]) {
382
382
  let e = t[7].slice(0, 3);
383
383
  for (; e.length < 3;) e += "0";
384
384
  c = +e;
385
385
  }
386
- let l = Ye(n, r, i, a, o, s, c);
387
- if (l.getUTCFullYear() !== n || l.getUTCMonth() !== r || l.getUTCDate() !== i) return g;
386
+ let l = Xe(n, r, i, a, o, s, c);
387
+ if (l.getUTCFullYear() !== n || l.getUTCMonth() !== r || l.getUTCDate() !== i) return _;
388
388
  if (t[9]) {
389
389
  let e = +t[10], n = +(t[11] || 0);
390
- if (e > 23 || n > 59) return g;
390
+ if (e > 23 || n > 59) return _;
391
391
  let r = (e * 60 + n) * 6e4;
392
392
  l.setTime(l.getTime() - (t[9] === "-" ? -r : r));
393
393
  }
394
394
  return l;
395
395
  }
396
- var Ze = _("tag:yaml.org,2002:timestamp", {
396
+ var Qe = v("tag:yaml.org,2002:timestamp", {
397
397
  implicit: !0,
398
398
  implicitFirstChars: [..."0123456789"],
399
- resolve: Xe,
399
+ resolve: Ze,
400
400
  identify: (e) => e instanceof Date,
401
401
  represent: (e) => e.toISOString()
402
- }), Qe = ne("tag:yaml.org,2002:seq", {
402
+ }), $e = ne("tag:yaml.org,2002:seq", {
403
403
  create: () => [],
404
404
  addItem: (e, t) => {
405
405
  e.push(t);
406
406
  },
407
407
  identify: Array.isArray
408
408
  });
409
- function $e(e) {
409
+ function et(e) {
410
410
  if (typeof e != "object" || !e || Array.isArray(e)) return !1;
411
411
  let t = Object.getPrototypeOf(e);
412
412
  return t === null || t === Object.prototype;
413
413
  }
414
- function et(e, t) {
414
+ function tt(e, t) {
415
415
  let n = {};
416
416
  for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
417
417
  return n;
418
418
  }
419
- var tt = ne("tag:yaml.org,2002:omap", {
419
+ var nt = ne("tag:yaml.org,2002:omap", {
420
420
  create: () => ({
421
421
  list: [],
422
422
  seen: /* @__PURE__ */ new Set()
@@ -426,7 +426,7 @@ var tt = ne("tag:yaml.org,2002:omap", {
426
426
  if (t instanceof Map) {
427
427
  if (t.size !== 1) return "cannot resolve an ordered map item";
428
428
  n = t.keys().next().value;
429
- } else if ($e(t)) {
429
+ } else if (et(t)) {
430
430
  let e = Object.keys(t);
431
431
  if (e.length !== 1) return "cannot resolve an ordered map item";
432
432
  n = e[0];
@@ -434,7 +434,7 @@ var tt = ne("tag:yaml.org,2002:omap", {
434
434
  return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
435
435
  },
436
436
  finalize: (e) => e.list
437
- }), nt = ne("tag:yaml.org,2002:pairs", {
437
+ }), rt = ne("tag:yaml.org,2002:pairs", {
438
438
  create: () => [],
439
439
  addItem: (e, t) => {
440
440
  if (t instanceof Map) return t.size === 1 ? (e.push(t.entries().next().value), "") : "cannot resolve a pairs item";
@@ -442,9 +442,9 @@ var tt = ne("tag:yaml.org,2002:omap", {
442
442
  let n = t, r = Object.keys(n);
443
443
  return r.length === 1 ? (e.push([r[0], n[r[0]]]), "") : "cannot resolve a pairs item";
444
444
  }
445
- }), rt = v("tag:yaml.org,2002:map", {
445
+ }), it = y("tag:yaml.org,2002:map", {
446
446
  create: () => ({}),
447
- identify: $e,
447
+ identify: et,
448
448
  represent: (e) => {
449
449
  let t = /* @__PURE__ */ new Map();
450
450
  for (let n of Object.keys(e)) t.set(n, e[n]);
@@ -466,7 +466,7 @@ var tt = ne("tag:yaml.org,2002:omap", {
466
466
  let n = String(t);
467
467
  return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
468
468
  }
469
- }), it = v("tag:yaml.org,2002:set", {
469
+ }), at = y("tag:yaml.org,2002:set", {
470
470
  create: () => /* @__PURE__ */ new Set(),
471
471
  identify: (e) => e instanceof Set,
472
472
  represent: (e) => {
@@ -479,21 +479,21 @@ var tt = ne("tag:yaml.org,2002:omap", {
479
479
  keys: (e) => e.keys(),
480
480
  get: () => null
481
481
  });
482
- function at() {
482
+ function ot() {
483
483
  return {
484
484
  scalar: Object.create(null),
485
485
  sequence: Object.create(null),
486
486
  mapping: Object.create(null)
487
487
  };
488
488
  }
489
- function ot() {
489
+ function st() {
490
490
  return {
491
491
  scalar: [],
492
492
  sequence: [],
493
493
  mapping: []
494
494
  };
495
495
  }
496
- function st(e) {
496
+ function ct(e) {
497
497
  let t = [];
498
498
  for (let n of e) {
499
499
  let e = t.length;
@@ -508,7 +508,7 @@ function st(e) {
508
508
  }
509
509
  return t;
510
510
  }
511
- var ct = class e {
511
+ var lt = class e {
512
512
  tags;
513
513
  implicitScalarTags;
514
514
  implicitScalarByFirstChar;
@@ -519,7 +519,7 @@ var ct = class e {
519
519
  exact;
520
520
  prefix;
521
521
  constructor(e) {
522
- let t = st(e), n = [], r = at(), i = ot();
522
+ let t = ct(e), n = [], r = ot(), i = st();
523
523
  for (let e of t) {
524
524
  if (e.nodeKind === "scalar" && e.implicit) {
525
525
  if (e.matchByTagPrefix) throw Error("Implicit scalar tags cannot match by tag prefix");
@@ -548,44 +548,44 @@ var ct = class e {
548
548
  for (let e of t) n = n.concat(e);
549
549
  return new e([...this.tags, ...n]);
550
550
  }
551
- }, lt = new ct([
552
- y,
553
- Qe,
554
- rt
551
+ }, ut = new lt([
552
+ b,
553
+ $e,
554
+ it
555
555
  ]);
556
- new ct([
557
- ...lt.tags,
558
- re,
559
- le,
560
- Se,
561
- Ie
556
+ new lt([
557
+ ...ut.tags,
558
+ S,
559
+ ue,
560
+ Ce,
561
+ Le
562
562
  ]);
563
- var ut = new ct([
564
- ...lt.tags,
565
- x,
566
- oe,
567
- _e,
568
- je
569
- ]), dt = new ct([
570
- ...lt.tags,
571
- ie,
572
- fe,
573
- Ee,
574
- Ve,
575
- Ze,
563
+ var dt = new lt([
564
+ ...ut.tags,
565
+ re,
566
+ se,
567
+ ve,
568
+ Me
569
+ ]), ft = new lt([
570
+ ...ut.tags,
571
+ ae,
572
+ pe,
573
+ De,
576
574
  He,
577
- Ke,
578
- tt,
575
+ Qe,
576
+ Ue,
577
+ qe,
579
578
  nt,
580
- it
579
+ rt,
580
+ at
581
581
  ]);
582
- v("tag:yaml.org,2002:map", {
582
+ y("tag:yaml.org,2002:map", {
583
583
  create: () => /* @__PURE__ */ new Map(),
584
584
  addPair: (e, t, n) => (e.set(t, n), ""),
585
585
  has: (e, t) => e.has(t),
586
586
  keys: (e) => e.keys(),
587
587
  get: (e, t) => e.get(t),
588
- identify: (e) => e instanceof Map || $e(e),
588
+ identify: (e) => e instanceof Map || et(e),
589
589
  represent: (e) => {
590
590
  if (e instanceof Map) return e;
591
591
  let t = /* @__PURE__ */ new Map(), n = e;
@@ -593,7 +593,7 @@ v("tag:yaml.org,2002:map", {
593
593
  return t;
594
594
  }
595
595
  });
596
- function ft(e) {
596
+ function pt(e) {
597
597
  if (Array.isArray(e)) {
598
598
  let t = Array.prototype.slice.call(e);
599
599
  for (let e = 0; e < t.length; e++) {
@@ -604,16 +604,16 @@ function ft(e) {
604
604
  }
605
605
  return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
606
606
  }
607
- v("tag:yaml.org,2002:map", {
607
+ y("tag:yaml.org,2002:map", {
608
608
  create: () => ({}),
609
- identify: $e,
609
+ identify: et,
610
610
  represent: (e) => {
611
611
  let t = /* @__PURE__ */ new Map();
612
612
  for (let n of Object.keys(e)) t.set(n, e[n]);
613
613
  return t;
614
614
  },
615
615
  addPair: (e, t, n) => {
616
- let r = ft(t);
616
+ let r = pt(t);
617
617
  return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
618
618
  value: n,
619
619
  enumerable: !0,
@@ -622,7 +622,7 @@ v("tag:yaml.org,2002:map", {
622
622
  }) : e[r] = n, "");
623
623
  },
624
624
  has: (e, t) => {
625
- let n = ft(t);
625
+ let n = pt(t);
626
626
  return n !== null && Object.prototype.hasOwnProperty.call(e, n);
627
627
  },
628
628
  keys: (e) => Object.keys(e),
@@ -631,58 +631,58 @@ v("tag:yaml.org,2002:map", {
631
631
  return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
632
632
  }
633
633
  });
634
- var pt = {
634
+ var mt = {
635
635
  maxLength: 79,
636
636
  indent: 1,
637
637
  linesBefore: 3,
638
638
  linesAfter: 2
639
639
  };
640
- function mt(e, t, n, r, i) {
640
+ function ht(e, t, n, r, i) {
641
641
  let a = "", o = "", s = Math.floor(i / 2) - 1;
642
642
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
643
643
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
644
644
  pos: r - t + a.length
645
645
  };
646
646
  }
647
- function ht(e, t) {
647
+ function gt(e, t) {
648
648
  return " ".repeat(Math.max(t - e.length, 0)) + e;
649
649
  }
650
- function gt(e, t) {
650
+ function _t(e, t) {
651
651
  if (!e.buffer) return null;
652
652
  let n = {
653
- ...pt,
653
+ ...mt,
654
654
  ...t
655
655
  }, r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1;
656
656
  for (; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
657
657
  s < 0 && (s = i.length - 1);
658
658
  let c = "", l = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + l + 3);
659
659
  for (let t = 1; t <= n.linesBefore && !(s - t < 0); t++) {
660
- let r = mt(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
661
- c = `${" ".repeat(n.indent)}${ht((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
660
+ let r = ht(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
661
+ c = `${" ".repeat(n.indent)}${gt((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
662
662
  }
663
- let d = mt(e.buffer, i[s], a[s], e.position, u);
664
- c += `${" ".repeat(n.indent)}${ht((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
663
+ let d = ht(e.buffer, i[s], a[s], e.position, u);
664
+ c += `${" ".repeat(n.indent)}${gt((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
665
665
  for (let t = 1; t <= n.linesAfter && !(s + t >= a.length); t++) {
666
- let r = mt(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
667
- c += `${" ".repeat(n.indent)}${ht((e.line + t + 1).toString(), l)} | ${r.str}\n`;
666
+ let r = ht(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
667
+ c += `${" ".repeat(n.indent)}${gt((e.line + t + 1).toString(), l)} | ${r.str}\n`;
668
668
  }
669
669
  return c.replace(/\n$/, "");
670
670
  }
671
- function _t(e, t) {
671
+ function vt(e, t) {
672
672
  let n = "";
673
673
  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 += `\n\n${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
674
674
  }
675
- var vt = class extends Error {
675
+ var yt = class extends Error {
676
676
  reason;
677
677
  mark;
678
678
  constructor(e, t) {
679
- super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = _t(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
679
+ super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = vt(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
680
680
  }
681
681
  toString(e) {
682
- return `${this.name}: ${_t(this, e)}`;
682
+ return `${this.name}: ${vt(this, e)}`;
683
683
  }
684
684
  };
685
- function yt(e, t, n, r = "") {
685
+ function bt(e, t, n, r = "") {
686
686
  let i = 0, a = 0;
687
687
  for (let n = 0; n < t; n++) {
688
688
  let t = e.charCodeAt(n);
@@ -695,10 +695,10 @@ function yt(e, t, n, r = "") {
695
695
  line: i,
696
696
  column: t - a
697
697
  };
698
- throw o.snippet = gt(o), new vt(n, o);
698
+ throw o.snippet = _t(o), new yt(n, o);
699
699
  }
700
- var bt = -1;
701
- function xt(e) {
700
+ var xt = -1;
701
+ function St(e) {
702
702
  switch (e) {
703
703
  case 48: return "\0";
704
704
  case 97: return "\x07";
@@ -721,18 +721,18 @@ function xt(e) {
721
721
  default: return "";
722
722
  }
723
723
  }
724
- var St = Array(256), Ct = Array(256);
725
- for (let e = 0; e < 256; e++) St[e] = +!!xt(e), Ct[e] = xt(e);
726
- function wt(e) {
724
+ var Ct = Array(256), wt = Array(256);
725
+ for (let e = 0; e < 256; e++) Ct[e] = +!!St(e), wt[e] = St(e);
726
+ function Tt(e) {
727
727
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
728
728
  }
729
- function Tt(e) {
729
+ function Et(e) {
730
730
  return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
731
731
  }
732
- function Et(e) {
732
+ function Dt(e) {
733
733
  return e === 120 ? 2 : e === 117 ? 4 : 8;
734
734
  }
735
- function Dt(e, t, n) {
735
+ function Ot(e, t, n) {
736
736
  let r = 0;
737
737
  for (; t < n;) {
738
738
  let n = e.charCodeAt(t);
@@ -746,62 +746,62 @@ function Dt(e, t, n) {
746
746
  breaks: r
747
747
  };
748
748
  }
749
- function Ot(e) {
749
+ function kt(e) {
750
750
  return e === 1 ? " " : "\n".repeat(e - 1);
751
751
  }
752
- function kt(e, t, n) {
752
+ function At(e, t, n) {
753
753
  let r = "", i = t, a = t, o = t;
754
754
  for (; i < n;) {
755
755
  let t = e.charCodeAt(i);
756
756
  if (t === 10 || t === 13) {
757
757
  r += e.slice(a, o);
758
- let t = Dt(e, i, n);
759
- r += Ot(t.breaks), i = a = o = t.position;
758
+ let t = Ot(e, i, n);
759
+ r += kt(t.breaks), i = a = o = t.position;
760
760
  } else i++, t !== 32 && t !== 9 && (o = i);
761
761
  }
762
762
  return r + e.slice(a, o);
763
763
  }
764
- function At(e, t, n) {
764
+ function jt(e, t, n) {
765
765
  let r = "", i = t, a = t, o = t;
766
766
  for (; i < n;) {
767
767
  let t = e.charCodeAt(i);
768
768
  if (t === 39) r += e.slice(a, i) + "'", i += 2, a = o = i;
769
769
  else if (t === 10 || t === 13) {
770
770
  r += e.slice(a, o);
771
- let t = Dt(e, i, n);
772
- r += Ot(t.breaks), i = a = o = t.position;
771
+ let t = Ot(e, i, n);
772
+ r += kt(t.breaks), i = a = o = t.position;
773
773
  } else i++, t !== 32 && t !== 9 && (o = i);
774
774
  }
775
775
  return r + e.slice(a, n);
776
776
  }
777
- function jt(e, t, n) {
777
+ function Mt(e, t, n) {
778
778
  let r = "", i = t, a = t, o = t;
779
779
  for (; i < n;) {
780
780
  let t = e.charCodeAt(i);
781
781
  if (t === 92) {
782
782
  r += e.slice(a, i), i++;
783
783
  let t = e.charCodeAt(i);
784
- if (t === 10 || t === 13) i = Dt(e, i, n).position;
785
- else if (t < 256 && St[t]) r += Ct[t], i++;
784
+ if (t === 10 || t === 13) i = Ot(e, i, n).position;
785
+ else if (t < 256 && Ct[t]) r += wt[t], i++;
786
786
  else {
787
- let n = Et(t), a = 0;
787
+ let n = Dt(t), a = 0;
788
788
  for (; n > 0; n--) {
789
789
  i++;
790
- let t = Tt(e.charCodeAt(i));
790
+ let t = Et(e.charCodeAt(i));
791
791
  a = (a << 4) + t;
792
792
  }
793
- r += wt(a), i++;
793
+ r += Tt(a), i++;
794
794
  }
795
795
  a = o = i;
796
796
  } else if (t === 10 || t === 13) {
797
797
  r += e.slice(a, o);
798
- let t = Dt(e, i, n);
799
- r += Ot(t.breaks), i = a = o = t.position;
798
+ let t = Ot(e, i, n);
799
+ r += kt(t.breaks), i = a = o = t.position;
800
800
  } else i++, t !== 32 && t !== 9 && (o = i);
801
801
  }
802
802
  return r + e.slice(a, n);
803
803
  }
804
- function Mt(e, t, n, r, i, a) {
804
+ function Nt(e, t, n, r, i, a) {
805
805
  let o = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, "\n"), c = s === "" ? [] : (s.endsWith("\n") ? s.slice(0, -1) : s).split("\n"), l = "", u = !1, d = 0, f = !1;
806
806
  for (let e of c) {
807
807
  let t = 0;
@@ -815,46 +815,46 @@ function Mt(e, t, n, r, i, a) {
815
815
  }
816
816
  return i === 3 ? l += "\n".repeat(u ? 1 + d : d) : i !== 2 && u && (l += "\n"), l;
817
817
  }
818
- function Nt(e, t) {
819
- if (t.valueStart === bt) return "";
818
+ function Pt(e, t) {
819
+ if (t.valueStart === xt) return "";
820
820
  let { valueStart: n, valueEnd: r } = t;
821
821
  if (t.fast) return e.slice(n, r);
822
822
  switch (t.style) {
823
- case 2: return At(e, n, r);
824
- case 3: return jt(e, n, r);
825
- case 4: return Mt(e, n, r, t.indent, t.chomping, !1);
826
- case 5: return Mt(e, n, r, t.indent, t.chomping, !0);
827
- default: return kt(e, n, r);
823
+ case 2: return jt(e, n, r);
824
+ case 3: return Mt(e, n, r);
825
+ case 4: return Nt(e, n, r, t.indent, t.chomping, !1);
826
+ case 5: return Nt(e, n, r, t.indent, t.chomping, !0);
827
+ default: return At(e, n, r);
828
828
  }
829
829
  }
830
- var Pt = Object.assign(Object.create(null), {
830
+ var Ft = Object.assign(Object.create(null), {
831
831
  "!": "!",
832
832
  "!!": "tag:yaml.org,2002:"
833
833
  });
834
- function Ft(e, t) {
834
+ function It(e, t) {
835
835
  if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
836
- let n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Pt[r] ?? r;
836
+ let n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Ft[r] ?? r;
837
837
  return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
838
838
  }
839
- var It = -1, Lt = {
839
+ var w = -1, Lt = {
840
840
  filename: "",
841
- schema: ut,
841
+ schema: dt,
842
842
  json: !1,
843
843
  maxTotalMergeKeys: 1e4,
844
844
  maxAliases: -1
845
845
  };
846
846
  function Rt(e) {
847
- return "tagStart" in e && e.tagStart !== It ? e.tagStart : "anchorStart" in e && e.anchorStart !== It ? e.anchorStart : "valueStart" in e && e.valueStart !== It ? e.valueStart : "start" in e ? e.start : 0;
847
+ return "tagStart" in e && e.tagStart !== w ? e.tagStart : "anchorStart" in e && e.anchorStart !== w ? e.anchorStart : "valueStart" in e && e.valueStart !== w ? e.valueStart : "start" in e ? e.start : 0;
848
848
  }
849
- function w(e, t) {
850
- yt(e.source, e.position, t, e.filename);
849
+ function T(e, t) {
850
+ bt(e.source, e.position, t, e.filename);
851
851
  }
852
852
  function zt(e, t, n, r) {
853
853
  try {
854
854
  return n.finalize(r);
855
855
  } catch (n) {
856
- if (n instanceof vt) throw n;
857
- yt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
856
+ if (n instanceof yt) throw n;
857
+ bt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
858
858
  }
859
859
  }
860
860
  function Bt(e, t, n) {
@@ -865,39 +865,39 @@ function Bt(e, t, n) {
865
865
  function Vt(e, t, n, r, i) {
866
866
  let a = Bt(t, n, r);
867
867
  if (a) return a;
868
- w(e, `unknown ${i} tag !<${r}>`);
868
+ T(e, `unknown ${i} tag !<${r}>`);
869
869
  }
870
870
  function Ht(e, t) {
871
- let n = Nt(e.source, t), r = t.tagStart === It ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
871
+ let n = Pt(e.source, t), r = t.tagStart === w ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
872
872
  if (r !== "") {
873
873
  if (r === "!") return {
874
874
  value: n,
875
875
  tag: i
876
876
  };
877
- let t = Ft(r, e.tagHandlers), a = Bt(e.schema.exact.scalar, e.schema.prefix.scalar, t);
877
+ let t = It(r, e.tagHandlers), a = Bt(e.schema.exact.scalar, e.schema.prefix.scalar, t);
878
878
  if (a) {
879
879
  let r = a.resolve(n, !0, t);
880
- return r === g && w(e, `cannot resolve a node with !<${t}> explicit tag`), {
880
+ return r === _ && T(e, `cannot resolve a node with !<${t}> explicit tag`), {
881
881
  value: r,
882
882
  tag: a
883
883
  };
884
884
  }
885
885
  let o = Bt(e.schema.exact.mapping, e.schema.prefix.mapping, t) ?? Bt(e.schema.exact.sequence, e.schema.prefix.sequence, t);
886
886
  if (o) {
887
- n !== "" && w(e, `cannot resolve a node with !<${t}> explicit tag`);
887
+ n !== "" && T(e, `cannot resolve a node with !<${t}> explicit tag`);
888
888
  let r = o.create(t);
889
889
  return {
890
890
  value: o.carrierIsResult ? r : zt(e, e.position, o, r),
891
891
  tag: o
892
892
  };
893
893
  }
894
- w(e, `unknown scalar tag !<${t}>`);
894
+ T(e, `unknown scalar tag !<${t}>`);
895
895
  }
896
896
  if (t.style === 1) {
897
897
  let t = e.schema.implicitScalarByFirstChar.get(n.charAt(0)) ?? e.schema.implicitScalarAnyFirstChar;
898
898
  for (let e of t) {
899
899
  let t = e.resolve(n, !1, e.tagName);
900
- if (t !== g) return {
900
+ if (t !== _) return {
901
901
  value: t,
902
902
  tag: e
903
903
  };
@@ -909,7 +909,7 @@ function Ht(e, t) {
909
909
  };
910
910
  }
911
911
  function Ut(e, t, n, r, i, a) {
912
- let o = t.tagStart === It ? "" : e.source.slice(t.tagStart, t.tagEnd), s = o === "" || o === "!" ? i : Ft(o, e.tagHandlers);
912
+ let o = t.tagStart === w ? "" : e.source.slice(t.tagStart, t.tagEnd), s = o === "" || o === "!" ? i : It(o, e.tagHandlers);
913
913
  return {
914
914
  tagName: s,
915
915
  tag: Vt(e, n, r, s, a)
@@ -920,39 +920,39 @@ function Wt(e) {
920
920
  }
921
921
  function Gt(e, t, n, r) {
922
922
  for (let i of r.keys(n)) {
923
- if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && w(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
923
+ if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && T(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
924
924
  let a = t.tag.addPair(t.value, i, r.get(n, i));
925
- a && w(e, a), (t.overridable ??= /* @__PURE__ */ new Set()).add(i);
925
+ a && T(e, a), (t.overridable ??= /* @__PURE__ */ new Set()).add(i);
926
926
  }
927
927
  }
928
928
  function Kt(e, t, n, r) {
929
929
  if (e.position = t.keyPosition, Wt(r)) Gt(e, t, n, r);
930
930
  else if (r.nodeKind === "sequence" && Array.isArray(n)) for (let r of n) Gt(e, t, r, t.tag);
931
- else w(e, "cannot merge mappings; the provided source object is unacceptable");
931
+ else T(e, "cannot merge mappings; the provided source object is unacceptable");
932
932
  }
933
933
  function qt(e, t, n, r, i) {
934
934
  if (e.position = t.keyPosition, n === te) {
935
935
  Kt(e, t, r, i);
936
936
  return;
937
937
  }
938
- !e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && w(e, "duplicated mapping key");
938
+ !e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && T(e, "duplicated mapping key");
939
939
  let a = t.tag.addPair(t.value, n, r);
940
- a && w(e, a), t.overridable?.delete(n);
940
+ a && T(e, a), t.overridable?.delete(n);
941
941
  }
942
942
  function Jt(e, t, n) {
943
943
  let r = e.frames[e.frames.length - 1];
944
944
  if (r.kind === "document") r.value = t, r.hasValue = !0;
945
945
  else if (r.kind === "sequence") {
946
- r.merge && (Wt(n) || w(e, "cannot merge mappings; the provided source object is unacceptable"));
946
+ r.merge && (Wt(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"));
947
947
  let i = r.tag.addItem(r.value, t, r.index++);
948
- i && w(e, i);
948
+ i && T(e, i);
949
949
  } else if (r.hasKey) {
950
950
  let i = r.key;
951
951
  r.key = void 0, r.hasKey = !1, qt(e, r, i, t, n);
952
952
  } else r.key = t, r.keyPosition = e.position, r.hasKey = !0;
953
953
  }
954
954
  function Yt(e, t, n, r, i) {
955
- if (t.anchorStart !== It) {
955
+ if (t.anchorStart !== w) {
956
956
  let a = {
957
957
  value: n,
958
958
  tag: r,
@@ -1023,14 +1023,14 @@ function Xt(e, t) {
1023
1023
  break;
1024
1024
  }
1025
1025
  case 5: {
1026
- n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && w(n, `aliases exceeded maxAliases (${n.maxAliases})`);
1026
+ n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && T(n, `aliases exceeded maxAliases (${n.maxAliases})`);
1027
1027
  let t = n.source.slice(e.anchorStart, e.anchorEnd), r = n.anchors.get(t);
1028
- r || w(n, `unidentified alias "${t}"`), r.isValueFinal || w(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), Jt(n, r.value, r.tag);
1028
+ r || T(n, `unidentified alias "${t}"`), r.isValueFinal || T(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), Jt(n, r.value, r.tag);
1029
1029
  break;
1030
1030
  }
1031
1031
  case 6: {
1032
1032
  let e = n.frames.pop();
1033
- if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, w(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
1033
+ if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, T(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
1034
1034
  else {
1035
1035
  let t = e.tag.carrierIsResult ? e.value : zt(n, e.position, e.tag, e.value);
1036
1036
  e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0), Jt(n, t, e.tag);
@@ -1041,7 +1041,7 @@ function Xt(e, t) {
1041
1041
  }
1042
1042
  return n.documents;
1043
1043
  }
1044
- var T = -1, Zt = Object.prototype.hasOwnProperty, E = 1, Qt = 2, $t = 3, en = 4, tn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, nn = /[,\[\]{}]/, rn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, an = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, on = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, sn = RegExp(`^(?:${an})*$`), cn = RegExp(`^(?:${on})+$`), ln = RegExp(`^(?:!(?:${an})*|${on}(?:${an})*)$`), un = {
1044
+ var E = -1, Zt = Object.prototype.hasOwnProperty, D = 1, Qt = 2, $t = 3, en = 4, tn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, nn = /[,\[\]{}]/, rn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, an = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, on = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, sn = RegExp(`^(?:${an})*$`), cn = RegExp(`^(?:${on})+$`), ln = RegExp(`^(?:!(?:${an})*|${on}(?:${an})*)$`), un = {
1045
1045
  filename: "",
1046
1046
  maxDepth: 100
1047
1047
  };
@@ -1079,14 +1079,14 @@ function mn(e, t) {
1079
1079
  e.events.splice(t.eventsLength, 0, {
1080
1080
  type: 3,
1081
1081
  start: t.position,
1082
- anchorStart: T,
1083
- anchorEnd: T,
1084
- tagStart: T,
1085
- tagEnd: T,
1082
+ anchorStart: E,
1083
+ anchorEnd: E,
1084
+ tagStart: E,
1085
+ tagEnd: E,
1086
1086
  style: 2
1087
1087
  });
1088
1088
  }
1089
- function D(e, t, n, r, i, a, o, s, c = 1, l = -1, u = !1) {
1089
+ function O(e, t, n, r, i, a, o, s, c = 1, l = -1, u = !1) {
1090
1090
  e.events.push({
1091
1091
  type: 4,
1092
1092
  valueStart: t,
@@ -1108,18 +1108,18 @@ function hn(e, t, n) {
1108
1108
  anchorEnd: n
1109
1109
  });
1110
1110
  }
1111
- function O(e) {
1111
+ function k(e) {
1112
1112
  e.events.push({ type: 6 });
1113
1113
  }
1114
- function k(e) {
1115
- D(e, T, T, T, T, T, T, 1);
1114
+ function A(e) {
1115
+ O(e, E, E, E, E, E, E, 1);
1116
1116
  }
1117
1117
  function gn() {
1118
1118
  return {
1119
- anchorStart: T,
1120
- anchorEnd: T,
1121
- tagStart: T,
1122
- tagEnd: T
1119
+ anchorStart: E,
1120
+ anchorEnd: E,
1121
+ tagStart: E,
1122
+ tagEnd: E
1123
1123
  };
1124
1124
  }
1125
1125
  function _n(e) {
@@ -1132,25 +1132,25 @@ function _n(e) {
1132
1132
  eventsLength: e.events.length
1133
1133
  };
1134
1134
  }
1135
- function A(e, t) {
1136
- 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;
1137
- }
1138
1135
  function j(e, t) {
1139
- yt(e.input.slice(0, e.length), e.position, t, e.filename);
1136
+ 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;
1140
1137
  }
1141
- function M(e) {
1142
- return e === 10 || e === 13;
1138
+ function M(e, t) {
1139
+ bt(e.input.slice(0, e.length), e.position, t, e.filename);
1143
1140
  }
1144
1141
  function N(e) {
1145
- return e === 9 || e === 32;
1142
+ return e === 10 || e === 13;
1146
1143
  }
1147
1144
  function P(e) {
1148
- return N(e) || M(e);
1145
+ return e === 9 || e === 32;
1149
1146
  }
1150
1147
  function F(e) {
1151
- return e === 0 || P(e);
1148
+ return P(e) || N(e);
1152
1149
  }
1153
1150
  function I(e) {
1151
+ return e === 0 || F(e);
1152
+ }
1153
+ function L(e) {
1154
1154
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1155
1155
  }
1156
1156
  function vn(e) {
@@ -1170,64 +1170,64 @@ function xn(e) {
1170
1170
  function Sn(e) {
1171
1171
  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;
1172
1172
  }
1173
- function L(e, t) {
1174
- let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || P(e.input.charCodeAt(e.position - 1));
1173
+ function R(e, t) {
1174
+ let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || F(e.input.charCodeAt(e.position - 1));
1175
1175
  for (; r !== 0;) {
1176
- for (; N(r);) i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
1176
+ for (; P(r);) i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
1177
1177
  if (t && i && r === 35) do
1178
1178
  r = e.input.charCodeAt(++e.position);
1179
- while (!M(r) && r !== 0);
1180
- if (!M(r)) break;
1179
+ while (!N(r) && r !== 0);
1180
+ if (!N(r)) break;
1181
1181
  for (Sn(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
1182
1182
  }
1183
1183
  return n;
1184
1184
  }
1185
- function R(e, t = e.position) {
1185
+ function z(e, t = e.position) {
1186
1186
  let n = e.input.charCodeAt(t);
1187
1187
  if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
1188
1188
  let n = e.input.charCodeAt(t + 3);
1189
- return n === 0 || P(n);
1189
+ return n === 0 || F(n);
1190
1190
  }
1191
1191
  return !1;
1192
1192
  }
1193
1193
  function Cn(e) {
1194
1194
  let t = e.input.charCodeAt(e.position);
1195
- for (; t !== 0 && !M(t);) t = e.input.charCodeAt(++e.position);
1195
+ for (; t !== 0 && !N(t);) t = e.input.charCodeAt(++e.position);
1196
1196
  }
1197
1197
  function wn(e, t, n) {
1198
- tn.test(e.input.slice(t, n)) && j(e, "the stream contains non-printable characters");
1198
+ tn.test(e.input.slice(t, n)) && M(e, "the stream contains non-printable characters");
1199
1199
  }
1200
1200
  function Tn(e, t, n) {
1201
1201
  if (e.input.charCodeAt(e.position) !== 33) return !1;
1202
- t.tagStart !== T && j(e, "duplication of a tag property");
1202
+ t.tagStart !== E && M(e, "duplication of a tag property");
1203
1203
  let r = e.position, i = !1, a = !1, o = "!", s = e.input.charCodeAt(++e.position);
1204
1204
  s === 60 ? (i = !0, s = e.input.charCodeAt(++e.position)) : s === 33 && (a = !0, o = "!!", s = e.input.charCodeAt(++e.position));
1205
1205
  let c = e.position, l;
1206
1206
  if (i) {
1207
1207
  for (; s !== 0 && s !== 62;) s = e.input.charCodeAt(++e.position);
1208
- s !== 62 && j(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
1208
+ s !== 62 && M(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
1209
1209
  } else {
1210
- for (; s !== 0 && !P(s) && !(n && I(s));) s === 33 && (a ? j(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), rn.test(o) || j(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
1211
- l = e.input.slice(c, e.position), nn.test(l) && j(e, "tag suffix cannot contain flow indicator characters");
1210
+ for (; s !== 0 && !F(s) && !(n && L(s));) s === 33 && (a ? M(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), rn.test(o) || M(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
1211
+ l = e.input.slice(c, e.position), nn.test(l) && M(e, "tag suffix cannot contain flow indicator characters");
1212
1212
  }
1213
- return l && !(i ? sn.test(l) : cn.test(l)) && j(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !Zt.call(e.tagHandlers, o) && j(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
1213
+ return l && !(i ? sn.test(l) : cn.test(l)) && M(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !Zt.call(e.tagHandlers, o) && M(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
1214
1214
  }
1215
1215
  function En(e, t) {
1216
1216
  if (e.input.charCodeAt(e.position) !== 38) return !1;
1217
- t.anchorStart !== T && j(e, "duplication of an anchor property"), e.position++;
1217
+ t.anchorStart !== E && M(e, "duplication of an anchor property"), e.position++;
1218
1218
  let n = e.position;
1219
- for (; e.input.charCodeAt(e.position) !== 0 && !P(e.input.charCodeAt(e.position)) && !I(e.input.charCodeAt(e.position));) e.position++;
1220
- return e.position === n && j(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
1219
+ for (; e.input.charCodeAt(e.position) !== 0 && !F(e.input.charCodeAt(e.position)) && !L(e.input.charCodeAt(e.position));) e.position++;
1220
+ return e.position === n && M(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
1221
1221
  }
1222
1222
  function Dn(e, t) {
1223
1223
  if (e.input.charCodeAt(e.position) !== 42) return !1;
1224
- (t.anchorStart !== T || t.tagStart !== T) && j(e, "alias node should not have any properties"), e.position++;
1224
+ (t.anchorStart !== E || t.tagStart !== E) && M(e, "alias node should not have any properties"), e.position++;
1225
1225
  let n = e.position;
1226
- for (; e.input.charCodeAt(e.position) !== 0 && !P(e.input.charCodeAt(e.position)) && !I(e.input.charCodeAt(e.position));) e.position++;
1227
- return e.position === n && j(e, "name of an alias node must contain at least one character"), hn(e, n, e.position), !0;
1226
+ for (; e.input.charCodeAt(e.position) !== 0 && !F(e.input.charCodeAt(e.position)) && !L(e.input.charCodeAt(e.position));) e.position++;
1227
+ return e.position === n && M(e, "name of an alias node must contain at least one character"), hn(e, n, e.position), !0;
1228
1228
  }
1229
1229
  function On(e, t) {
1230
- L(e, !1), e.lineIndent < t && j(e, "deficient indentation");
1230
+ R(e, !1), e.lineIndent < t && M(e, "deficient indentation");
1231
1231
  }
1232
1232
  function kn(e, t, n) {
1233
1233
  if (e.input.charCodeAt(e.position) !== 39) return !1;
@@ -1241,11 +1241,11 @@ function kn(e, t, n) {
1241
1241
  continue;
1242
1242
  }
1243
1243
  let t = e.position;
1244
- return e.position++, D(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
1244
+ return e.position++, O(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
1245
1245
  }
1246
- M(a) ? (i = !1, On(e, t)) : e.position === e.lineStart && R(e) ? j(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? j(e, "expected valid JSON character") : e.position++;
1246
+ N(a) ? (i = !1, On(e, t)) : e.position === e.lineStart && z(e) ? M(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? M(e, "expected valid JSON character") : e.position++;
1247
1247
  }
1248
- j(e, "unexpected end of the stream within a single quoted scalar");
1248
+ M(e, "unexpected end of the stream within a single quoted scalar");
1249
1249
  }
1250
1250
  function An(e, t, n) {
1251
1251
  if (e.input.charCodeAt(e.position) !== 34) return !1;
@@ -1255,21 +1255,21 @@ function An(e, t, n) {
1255
1255
  let a = e.input.charCodeAt(e.position);
1256
1256
  if (a === 34) {
1257
1257
  let t = e.position;
1258
- return e.position++, D(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
1258
+ return e.position++, O(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 3, 1, -1, i), !0;
1259
1259
  }
1260
1260
  if (a === 92) {
1261
1261
  i = !1;
1262
1262
  let n = e.input.charCodeAt(++e.position);
1263
- if (M(n)) On(e, t);
1263
+ if (N(n)) On(e, t);
1264
1264
  else if (xn(n)) e.position++;
1265
1265
  else {
1266
1266
  let t = bn(n);
1267
- for (t === 0 && j(e, "unknown escape sequence"); t-- > 0;) e.position++, yn(e.input.charCodeAt(e.position)) < 0 && j(e, "expected hexadecimal character");
1267
+ for (t === 0 && M(e, "unknown escape sequence"); t-- > 0;) e.position++, yn(e.input.charCodeAt(e.position)) < 0 && M(e, "expected hexadecimal character");
1268
1268
  e.position++;
1269
1269
  }
1270
- } else M(a) ? (i = !1, On(e, t)) : e.position === e.lineStart && R(e) ? j(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? j(e, "expected valid JSON character") : e.position++;
1270
+ } else N(a) ? (i = !1, On(e, t)) : e.position === e.lineStart && z(e) ? M(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? M(e, "expected valid JSON character") : e.position++;
1271
1271
  }
1272
- j(e, "unexpected end of the stream within a double quoted scalar");
1272
+ M(e, "unexpected end of the stream within a double quoted scalar");
1273
1273
  }
1274
1274
  function jn(e, t, n) {
1275
1275
  let r = e.input.charCodeAt(e.position), i = 1, a = -1, o = !1;
@@ -1277,13 +1277,13 @@ function jn(e, t, n) {
1277
1277
  let s = r === 124 ? 4 : 5;
1278
1278
  for (e.position++; e.input.charCodeAt(e.position) !== 0;) {
1279
1279
  let n = e.input.charCodeAt(e.position), r = vn(n);
1280
- if (n === 43 || n === 45) i !== 1 && j(e, "repeat of a chomping mode identifier"), i = n === 43 ? 3 : 2, e.position++;
1281
- else if (r >= 0) r === 0 && j(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && j(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
1280
+ if (n === 43 || n === 45) i !== 1 && M(e, "repeat of a chomping mode identifier"), i = n === 43 ? 3 : 2, e.position++;
1281
+ else if (r >= 0) r === 0 && M(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && M(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
1282
1282
  else break;
1283
1283
  }
1284
1284
  let c = !1;
1285
- for (; N(e.input.charCodeAt(e.position));) c = !0, e.position++;
1286
- c && e.input.charCodeAt(e.position) === 35 && Cn(e), M(e.input.charCodeAt(e.position)) ? Sn(e) : e.input.charCodeAt(e.position) !== 0 && j(e, "a line break is expected");
1285
+ for (; P(e.input.charCodeAt(e.position));) c = !0, e.position++;
1286
+ c && e.input.charCodeAt(e.position) === 35 && Cn(e), N(e.input.charCodeAt(e.position)) ? Sn(e) : e.input.charCodeAt(e.position) !== 0 && M(e, "a line break is expected");
1287
1287
  let l = o ? a : -1, u = 0, d = e.position, f = e.position;
1288
1288
  for (; e.input.charCodeAt(e.position) !== 0;) {
1289
1289
  let n = e.position, r = 0;
@@ -1293,56 +1293,56 @@ function jn(e, t, n) {
1293
1293
  l >= 0 ? r > l && (f = n + r) : r > 0 && (f = n + r);
1294
1294
  break;
1295
1295
  }
1296
- if (n === e.lineStart && R(e, n)) break;
1297
- if (!o && l === -1 && M(i) && (u = Math.max(u, r)), !o && l === -1 && !M(i) && (i === 9 && r < t && (e.position = n + r, j(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, j(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !M(i) && r < t) {
1296
+ if (n === e.lineStart && z(e, n)) break;
1297
+ if (!o && l === -1 && N(i) && (u = Math.max(u, r)), !o && l === -1 && !N(i) && (i === 9 && r < t && (e.position = n + r, M(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, M(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !N(i) && r < t) {
1298
1298
  e.lineIndent = r, e.position = n + r;
1299
1299
  break;
1300
1300
  }
1301
- !o && i !== 0 && !M(i) && l === -1 && (l = r);
1301
+ !o && i !== 0 && !N(i) && l === -1 && (l = r);
1302
1302
  let a = l === -1 ? t + 1 : l;
1303
- if (i !== 0 && !M(i) && r < a) {
1303
+ if (i !== 0 && !N(i) && r < a) {
1304
1304
  e.lineIndent = r, e.position = n + r;
1305
1305
  break;
1306
1306
  }
1307
- Cn(e), f = e.position, M(e.input.charCodeAt(e.position)) && (Sn(e), f = e.position);
1307
+ Cn(e), f = e.position, N(e.input.charCodeAt(e.position)) && (Sn(e), f = e.position);
1308
1308
  }
1309
- return wn(e, d, f), D(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
1309
+ return wn(e, d, f), O(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
1310
1310
  }
1311
1311
  function Mn(e, t) {
1312
- let n = e.input.charCodeAt(e.position), r = t === E;
1313
- if (n === 0 || P(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && I(n)) return !1;
1312
+ let n = e.input.charCodeAt(e.position), r = t === D;
1313
+ if (n === 0 || F(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && L(n)) return !1;
1314
1314
  if (n === 63 || n === 45) {
1315
1315
  let t = e.input.charCodeAt(e.position + 1);
1316
- if (F(t) || r && I(t)) return !1;
1316
+ if (I(t) || r && L(t)) return !1;
1317
1317
  }
1318
1318
  return !0;
1319
1319
  }
1320
1320
  function Nn(e, t, n, r) {
1321
1321
  if (!Mn(e, n)) return !1;
1322
- let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === E, c = !1;
1323
- for (; o !== 0 && !(e.position === e.lineStart && R(e));) {
1322
+ let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === D, c = !1;
1323
+ for (; o !== 0 && !(e.position === e.lineStart && z(e));) {
1324
1324
  if (o === 58) {
1325
1325
  let t = e.input.charCodeAt(e.position + 1);
1326
- if (F(t) || s && I(t)) break;
1326
+ if (I(t) || s && L(t)) break;
1327
1327
  } else if (o === 35) {
1328
- if (P(e.input.charCodeAt(e.position - 1))) break;
1329
- } else if (s && I(o)) break;
1330
- else if (M(o)) {
1328
+ if (F(e.input.charCodeAt(e.position - 1))) break;
1329
+ } else if (s && L(o)) break;
1330
+ else if (N(o)) {
1331
1331
  let n = e.position, r = e.line, i = e.lineStart, a = e.lineIndent;
1332
- if (L(e, !1), e.lineIndent >= t) {
1332
+ if (R(e, !1), e.lineIndent >= t) {
1333
1333
  c = !0, o = e.input.charCodeAt(e.position);
1334
1334
  continue;
1335
1335
  }
1336
1336
  e.position = n, e.line = r, e.lineStart = i, e.lineIndent = a;
1337
1337
  break;
1338
1338
  }
1339
- N(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
1339
+ P(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
1340
1340
  }
1341
- return a !== i && (wn(e, i, a), D(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !c), !0);
1341
+ return a !== i && (wn(e, i, a), O(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1, 1, -1, !c), !0);
1342
1342
  }
1343
1343
  function Pn(e, t) {
1344
1344
  let n = e.line;
1345
- L(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && j(e, "deficient indentation");
1345
+ R(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && M(e, "deficient indentation");
1346
1346
  }
1347
1347
  function Fn(e, t, n) {
1348
1348
  let r = e.input.charCodeAt(e.position), i = r === 123, a = e.position, o = !0;
@@ -1351,111 +1351,111 @@ function Fn(e, t, n) {
1351
1351
  for (i ? pn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : fn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0;) {
1352
1352
  Pn(e, t);
1353
1353
  let n = e.input.charCodeAt(e.position);
1354
- if (n === s) return e.position++, O(e), !0;
1355
- o ? n === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries");
1354
+ if (n === s) return e.position++, k(e), !0;
1355
+ o ? n === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries");
1356
1356
  let r = !1, a = !1;
1357
- n === 63 && P(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, Pn(e, t));
1358
- let c = e.line, l = _n(e), u = z(e, t, E, !1, !0);
1359
- Pn(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, Pn(e, t), i || mn(e, l), u || k(e), z(e, t, E, !1, !0) || k(e), Pn(e, t), i || O(e)) : i && r ? (u || k(e), k(e)) : i ? k(e) : r && (mn(e, l), u || k(e), k(e), O(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
1357
+ n === 63 && F(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, Pn(e, t));
1358
+ let c = e.line, l = _n(e), u = B(e, t, D, !1, !0);
1359
+ Pn(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, Pn(e, t), i || mn(e, l), u || A(e), B(e, t, D, !1, !0) || A(e), Pn(e, t), i || k(e)) : i && r ? (u || A(e), A(e)) : i ? A(e) : r && (mn(e, l), u || A(e), A(e), k(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
1360
1360
  }
1361
- j(e, "unexpected end of the stream within a flow collection");
1361
+ M(e, "unexpected end of the stream within a flow collection");
1362
1362
  }
1363
1363
  function In(e, t, n) {
1364
- if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !F(e.input.charCodeAt(e.position + 1))) return !1;
1365
- for (fn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && F(e.input.charCodeAt(e.position + 1));) {
1366
- e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation"));
1364
+ if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !I(e.input.charCodeAt(e.position + 1))) return !1;
1365
+ for (fn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 1); e.input.charCodeAt(e.position) === 45 && I(e.input.charCodeAt(e.position + 1));) {
1366
+ e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation"));
1367
1367
  let n = e.line;
1368
1368
  e.position++;
1369
- let r = L(e, !0) > 0;
1370
- if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && F(e.input.charCodeAt(e.position + 1)) && j(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? k(e) : z(e, t, $t, !1, !0), L(e, !0), e.lineIndent < t || e.position >= e.length) break;
1371
- e.lineIndent > t && j(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && F(e.input.charCodeAt(e.position + 1)) && j(e, "bad indentation of a sequence entry");
1369
+ let r = R(e, !0) > 0;
1370
+ if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && I(e.input.charCodeAt(e.position + 1)) && M(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? A(e) : B(e, t, $t, !1, !0), R(e, !0), e.lineIndent < t || e.position >= e.length) break;
1371
+ e.lineIndent > t && M(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && I(e.input.charCodeAt(e.position + 1)) && M(e, "bad indentation of a sequence entry");
1372
1372
  }
1373
- return O(e), !0;
1373
+ return k(e), !0;
1374
1374
  }
1375
1375
  function Ln(e, t, n, r) {
1376
1376
  let i = !1, a = !1, o = !1, s = !1;
1377
1377
  if (e.firstTabInLine !== -1) return !1;
1378
1378
  let c = e.input.charCodeAt(e.position);
1379
1379
  for (; c !== 0;) {
1380
- !i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation"));
1380
+ !i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation"));
1381
1381
  let l = e.input.charCodeAt(e.position + 1), u = e.line;
1382
- if ((c === 63 || c === 58) && F(l)) o ||= (pn(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), !0), c === 63 ? (i && k(e), a = !0, i = !0) : i ? i = !1 : (k(e), a = !0, i = !1), e.position += 1, s = !0;
1382
+ if ((c === 63 || c === 58) && I(l)) o ||= (pn(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), !0), c === 63 ? (i && A(e), a = !0, i = !0) : i ? i = !1 : (A(e), a = !0, i = !1), e.position += 1, s = !0;
1383
1383
  else {
1384
- i &&= (k(e), !1);
1384
+ i &&= (A(e), !1);
1385
1385
  let t = _n(e);
1386
- if (!z(e, n, Qt, !1, !0)) break;
1386
+ if (!B(e, n, Qt, !1, !0)) break;
1387
1387
  if (e.line === u) {
1388
- for (c = e.input.charCodeAt(e.position); N(c);) c = e.input.charCodeAt(++e.position);
1388
+ for (c = e.input.charCodeAt(e.position); P(c);) c = e.input.charCodeAt(++e.position);
1389
1389
  if (c === 58) {
1390
- if (c = e.input.charCodeAt(++e.position), F(c) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), !o) {
1391
- for (A(e, t), pn(e, t.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), o = !0, z(e, n, Qt, !1, !0), c = e.input.charCodeAt(e.position); N(c);) c = e.input.charCodeAt(++e.position);
1390
+ if (c = e.input.charCodeAt(++e.position), I(c) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), !o) {
1391
+ for (j(e, t), pn(e, t.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), o = !0, B(e, n, Qt, !1, !0), c = e.input.charCodeAt(e.position); P(c);) c = e.input.charCodeAt(++e.position);
1392
1392
  e.position++;
1393
1393
  }
1394
1394
  a = !0, i = !1, s = !1;
1395
- } else if (a) j(e, "expected ':' after a mapping key");
1396
- else return r.anchorStart !== T || r.tagStart !== T ? (A(e, t), !1) : !0;
1397
- } else if (a) j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1398
- else return r.anchorStart !== T || r.tagStart !== T ? (A(e, t), !1) : !0;
1395
+ } else if (a) M(e, "expected ':' after a mapping key");
1396
+ else return r.anchorStart !== E || r.tagStart !== E ? (j(e, t), !1) : !0;
1397
+ } else if (a) M(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1398
+ else return r.anchorStart !== E || r.tagStart !== E ? (j(e, t), !1) : !0;
1399
1399
  }
1400
- if (z(e, t, en, !0, s) && (s = !1), i || (s &&= (k(e), !1)), L(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) j(e, "bad indentation of a mapping entry");
1400
+ if (B(e, t, en, !0, s) && (s = !1), i || (s &&= (A(e), !1)), R(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) M(e, "bad indentation of a mapping entry");
1401
1401
  else if (e.lineIndent < t) break;
1402
1402
  }
1403
- return a ? (i && k(e), o && O(e), !0) : !1;
1403
+ return a ? (i && A(e), o && k(e), !0) : !1;
1404
1404
  }
1405
- function z(e, t, n, r, i, a = !0) {
1406
- e.depth >= e.maxDepth && j(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
1405
+ function B(e, t, n, r, i, a = !0) {
1406
+ e.depth >= e.maxDepth && M(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
1407
1407
  let o = 1, s = !1, c = !1, l = null, u = gn(), d = n === en || n === $t, f = d, p = d;
1408
- if (r && L(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
1408
+ if (r && R(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
1409
1409
  let r = e.input.charCodeAt(e.position), i = _n(e);
1410
1410
  if (s && o !== 1 && (r === 33 || r === 38)) break;
1411
- if (s && p && (u.tagStart !== T || u.anchorStart !== T) && (r === 33 || r === 38)) {
1411
+ if (s && p && (u.tagStart !== E || u.anchorStart !== E) && (r === 33 || r === 38)) {
1412
1412
  let n = _n(e), r = t + 1;
1413
1413
  if (Ln(e, e.position - e.lineStart, r, u) && e.events[n.eventsLength]?.type === 3) return e.depth--, !0;
1414
- A(e, n);
1414
+ j(e, n);
1415
1415
  }
1416
- if (s && (r === 33 && u.tagStart !== T || r === 38 && u.anchorStart !== T) || !Tn(e, u, n === E) && !En(e, u)) break;
1417
- l === null && (l = i), L(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
1416
+ if (s && (r === 33 && u.tagStart !== E || r === 38 && u.anchorStart !== E) || !Tn(e, u, n === D) && !En(e, u)) break;
1417
+ l === null && (l = i), R(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
1418
1418
  }
1419
1419
  if (f &&= s || i, o === 1 || n === en) {
1420
- let r = n === E || n === Qt ? t : t + 1, i = e.position - e.lineStart;
1420
+ let r = n === D || n === Qt ? t : t + 1, i = e.position - e.lineStart;
1421
1421
  if (o === 1) {
1422
1422
  if (f && (In(e, i, u) || Ln(e, i, r, u)) || Fn(e, r, u)) c = !0;
1423
1423
  else {
1424
1424
  let t = e.input.charCodeAt(e.position);
1425
1425
  if (l !== null && a && p && !f && t !== 124 && t !== 62) {
1426
1426
  let t = _n(e), n = l.position - l.lineStart;
1427
- A(e, l), Ln(e, n, r, gn()) && e.events[t.eventsLength]?.type === 3 ? c = !0 : A(e, t);
1427
+ j(e, l), Ln(e, n, r, gn()) && e.events[t.eventsLength]?.type === 3 ? c = !0 : j(e, t);
1428
1428
  }
1429
1429
  !c && (d && jn(e, r, u) || kn(e, r, u) || An(e, r, u) || Dn(e, u) || Nn(e, r, n, u)) && (c = !0);
1430
1430
  }
1431
1431
  } else o === 0 && (c = f && In(e, i, u));
1432
1432
  }
1433
- return d &&= !c, !c && (u.anchorStart !== T || u.tagStart !== T || d) && (D(e, T, T, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, 1), c = !0), e.depth--, c || u.anchorStart !== T || u.tagStart !== T;
1433
+ return d &&= !c, !c && (u.anchorStart !== E || u.tagStart !== E || d) && (O(e, E, E, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, 1), c = !0), e.depth--, c || u.anchorStart !== E || u.tagStart !== E;
1434
1434
  }
1435
1435
  function Rn(e) {
1436
1436
  if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
1437
1437
  e.position++;
1438
1438
  let t = e.position;
1439
- for (; e.input.charCodeAt(e.position) !== 0 && !P(e.input.charCodeAt(e.position));) e.position++;
1439
+ for (; e.input.charCodeAt(e.position) !== 0 && !F(e.input.charCodeAt(e.position));) e.position++;
1440
1440
  let n = e.input.slice(t, e.position), r = [];
1441
- for (n.length === 0 && j(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !M(e.input.charCodeAt(e.position));) {
1442
- for (; N(e.input.charCodeAt(e.position));) e.position++;
1443
- if (e.input.charCodeAt(e.position) === 35 || M(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
1441
+ for (n.length === 0 && M(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !N(e.input.charCodeAt(e.position));) {
1442
+ for (; P(e.input.charCodeAt(e.position));) e.position++;
1443
+ if (e.input.charCodeAt(e.position) === 35 || N(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
1444
1444
  let t = e.position;
1445
- for (; e.input.charCodeAt(e.position) !== 0 && !P(e.input.charCodeAt(e.position));) e.position++;
1445
+ for (; e.input.charCodeAt(e.position) !== 0 && !F(e.input.charCodeAt(e.position));) e.position++;
1446
1446
  r.push(e.input.slice(t, e.position));
1447
1447
  }
1448
- if (M(e.input.charCodeAt(e.position)) && Sn(e), n === "YAML") {
1449
- e.directives.some((e) => e.kind === "yaml") && j(e, "duplication of %YAML directive"), r.length !== 1 && j(e, "YAML directive accepts exactly one argument");
1448
+ if (N(e.input.charCodeAt(e.position)) && Sn(e), n === "YAML") {
1449
+ e.directives.some((e) => e.kind === "yaml") && M(e, "duplication of %YAML directive"), r.length !== 1 && M(e, "YAML directive accepts exactly one argument");
1450
1450
  let t = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
1451
- t === null && j(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && j(e, "unacceptable YAML version of the document"), e.directives.push({
1451
+ t === null && M(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && M(e, "unacceptable YAML version of the document"), e.directives.push({
1452
1452
  kind: "yaml",
1453
1453
  version: r[0]
1454
1454
  });
1455
1455
  } else if (n === "TAG") {
1456
- r.length !== 2 && j(e, "TAG directive accepts exactly two arguments");
1456
+ r.length !== 2 && M(e, "TAG directive accepts exactly two arguments");
1457
1457
  let [t, n] = r;
1458
- rn.test(t) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), Zt.call(e.tagHandlers, t) && j(e, `there is a previously declared suffix for "${t}" tag handle`), ln.test(n) || j(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
1458
+ rn.test(t) || M(e, "ill-formed tag handle (first argument) of the TAG directive"), Zt.call(e.tagHandlers, t) && M(e, `there is a previously declared suffix for "${t}" tag handle`), ln.test(n) || M(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
1459
1459
  kind: "tag",
1460
1460
  handle: t,
1461
1461
  prefix: n
@@ -1466,24 +1466,24 @@ function Rn(e) {
1466
1466
  function zn(e) {
1467
1467
  e.directives = [], e.tagHandlers = Object.create(null);
1468
1468
  let t = !1;
1469
- for (L(e, !0); Rn(e);) t = !0, L(e, !0);
1469
+ for (R(e, !0); Rn(e);) t = !0, R(e, !0);
1470
1470
  let n = !1, r = !1, i = !0;
1471
- if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && F(e.input.charCodeAt(e.position + 3))) {
1471
+ if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && I(e.input.charCodeAt(e.position + 3))) {
1472
1472
  n = !0;
1473
1473
  let t = e.line;
1474
- e.position += 3, L(e, !0), i = e.line > t;
1475
- } else t && j(e, "directives end mark is expected");
1474
+ e.position += 3, R(e, !0), i = e.line > t;
1475
+ } else t && M(e, "directives end mark is expected");
1476
1476
  let a = e.events.length;
1477
- if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && R(e)) {
1478
- e.position += 3, L(e, !0);
1477
+ if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && z(e)) {
1478
+ e.position += 3, R(e, !0);
1479
1479
  return;
1480
1480
  }
1481
- if (dn(e, n, !1), z(e, e.lineIndent - 1, en, !1, i, i) || k(e), L(e, !0), e.position === e.lineStart && R(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
1481
+ if (dn(e, n, !1), B(e, e.lineIndent - 1, en, !1, i, i) || A(e), R(e, !0), e.position === e.lineStart && z(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
1482
1482
  let t = e.line;
1483
- e.position += 3, L(e, !0), e.line === t && e.position < e.length && j(e, "end of the stream or a document separator is expected");
1483
+ e.position += 3, R(e, !0), e.line === t && e.position < e.length && M(e, "end of the stream or a document separator is expected");
1484
1484
  }
1485
1485
  let o = e.events[a];
1486
- o?.type === 1 && (o.explicitEnd = r), O(e), !r && e.position < e.length && !(e.position === e.lineStart && R(e)) && j(e, "end of the stream or a document separator is expected");
1486
+ o?.type === 1 && (o.explicitEnd = r), k(e), !r && e.position < e.length && !(e.position === e.lineStart && z(e)) && M(e, "end of the stream or a document separator is expected");
1487
1487
  }
1488
1488
  function Bn(e, t) {
1489
1489
  let n = e.length, r = {
@@ -1501,11 +1501,11 @@ function Bn(e, t) {
1501
1501
  tagHandlers: Object.create(null),
1502
1502
  events: []
1503
1503
  }, i = e.indexOf("\0");
1504
- for (i !== -1 && yt(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (L(r, !0), !(r.position >= r.length));) {
1504
+ for (i !== -1 && bt(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (R(r, !0), !(r.position >= r.length));) {
1505
1505
  let e = r.position;
1506
1506
  zn(r), r.position === e &&
1507
1507
  /* c8 ignore next */
1508
- j(r, "can not read a document");
1508
+ M(r, "can not read a document");
1509
1509
  }
1510
1510
  return r.events;
1511
1511
  }
@@ -1518,16 +1518,16 @@ function Hn(e, t = {}) {
1518
1518
  ...Vn,
1519
1519
  ...t
1520
1520
  }, r = String(e), i = Object.keys(un), a = Object.keys(Lt);
1521
- return Xt(Bn(r, et(n, i)), {
1522
- ...et(n, a),
1521
+ return Xt(Bn(r, tt(n, i)), {
1522
+ ...tt(n, a),
1523
1523
  source: r
1524
1524
  });
1525
1525
  }
1526
1526
  function Un(e, t) {
1527
1527
  let n = Hn(e, t);
1528
- if (n.length === 0) throw new vt("expected a document, but the input is empty");
1528
+ if (n.length === 0) throw new yt("expected a document, but the input is empty");
1529
1529
  if (n.length === 1) return n[0];
1530
- throw new vt("expected a single document in the stream, but found more");
1530
+ throw new yt("expected a single document in the stream, but found more");
1531
1531
  }
1532
1532
  var Wn = {
1533
1533
  indent: 2,
@@ -1543,17 +1543,17 @@ var Wn = {
1543
1543
  forceQuotes: !1,
1544
1544
  tagBeforeAnchor: !1
1545
1545
  };
1546
- dt.withTags({
1547
- ...Ee,
1546
+ ft.withTags({
1547
+ ...De,
1548
1548
  resolve: (e, t, n) => {
1549
- let r = Ee.resolve(e, t, n);
1550
- return r === g ? _e.resolve(e, t, n) : r;
1549
+ let r = De.resolve(e, t, n);
1550
+ return r === _ ? ve.resolve(e, t, n) : r;
1551
1551
  }
1552
1552
  }, {
1553
- ...Ve,
1553
+ ...He,
1554
1554
  resolve: (e, t, n) => {
1555
- let r = Ve.resolve(e, t, n);
1556
- return r === g ? je.resolve(e, t, n) : r;
1555
+ let r = He.resolve(e, t, n);
1556
+ return r === _ ? Me.resolve(e, t, n) : r;
1557
1557
  }
1558
1558
  }), { ...Wn };
1559
1559
  //#endregion
@@ -1572,12 +1572,12 @@ function Gn() {
1572
1572
  walkTokens: null
1573
1573
  };
1574
1574
  }
1575
- var B = Gn();
1575
+ var V = Gn();
1576
1576
  function Kn(e) {
1577
- B = e;
1577
+ V = e;
1578
1578
  }
1579
- var V = { exec: () => null };
1580
- function H(e) {
1579
+ var H = { exec: () => null };
1580
+ function qn(e) {
1581
1581
  let t = [];
1582
1582
  return (n) => {
1583
1583
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
@@ -1594,7 +1594,7 @@ function U(e, t = "") {
1594
1594
  };
1595
1595
  return r;
1596
1596
  }
1597
- var qn = ((e = "") => {
1597
+ var Jn = ((e = "") => {
1598
1598
  try {
1599
1599
  return !!RegExp("(?<=1)(?<!1)" + e);
1600
1600
  } catch {
@@ -1651,105 +1651,105 @@ var qn = ((e = "") => {
1651
1651
  notSpaceStart: /^\S*/,
1652
1652
  endingNewline: /\n$/,
1653
1653
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
1654
- nextBulletRegex: H((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
1655
- hrRegex: H((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
1656
- fencesBeginRegex: H((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
1657
- headingBeginRegex: H((e) => RegExp(`^ {0,${e}}#`)),
1658
- htmlBeginRegex: H((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
1659
- blockquoteBeginRegex: H((e) => RegExp(`^ {0,${e}}>`))
1660
- }, Jn = /^(?:[ \t]*(?:\n|$))+/, Yn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, $n = / {0,3}(?:[*+-]|\d{1,9}[.)])/, er = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, tr = U(er).replace(/bull/g, $n).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(), nr = U(er).replace(/bull/g, $n).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(), rr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ir = /^[^\n]+/, ar = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, or = U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ar).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), sr = U(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, $n).getRegex(), cr = "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", lr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ur = U("^ {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", lr).replace("tag", cr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dr = (e) => U(rr).replace("hr", Zn).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", cr).getRegex(), fr = dr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pr = dr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), mr = {
1661
- blockquote: U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pr).getRegex(),
1662
- code: Yn,
1663
- def: or,
1664
- fences: Xn,
1665
- heading: Qn,
1666
- hr: Zn,
1667
- html: ur,
1668
- lheading: tr,
1669
- list: sr,
1670
- newline: Jn,
1671
- paragraph: fr,
1672
- table: V,
1673
- text: ir
1674
- }, hr = U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zn).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", cr).getRegex(), gr = {
1675
- ...mr,
1654
+ nextBulletRegex: qn((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
1655
+ hrRegex: qn((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
1656
+ fencesBeginRegex: qn((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
1657
+ headingBeginRegex: qn((e) => RegExp(`^ {0,${e}}#`)),
1658
+ htmlBeginRegex: qn((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
1659
+ blockquoteBeginRegex: qn((e) => RegExp(`^ {0,${e}}>`))
1660
+ }, Yn = /^(?:[ \t]*(?:\n|$))+/, Xn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Zn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, $n = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, er = / {0,3}(?:[*+-]|\d{1,9}[.)])/, tr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, nr = U(tr).replace(/bull/g, er).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(), rr = U(tr).replace(/bull/g, er).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(), ir = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ar = /^[^\n]+/, or = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, sr = U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", or).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cr = U(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, er).getRegex(), lr = "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", ur = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, dr = U("^ {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", ur).replace("tag", lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), fr = (e) => U(ir).replace("hr", Qn).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", lr).getRegex(), pr = fr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), mr = fr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), hr = {
1661
+ blockquote: U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", mr).getRegex(),
1662
+ code: Xn,
1663
+ def: sr,
1664
+ fences: Zn,
1665
+ heading: $n,
1666
+ hr: Qn,
1667
+ html: dr,
1676
1668
  lheading: nr,
1677
- table: hr,
1678
- paragraph: U(rr).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hr).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", cr).getRegex()
1679
- }, _r = {
1680
- ...mr,
1681
- html: U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", lr).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(),
1669
+ list: cr,
1670
+ newline: Yn,
1671
+ paragraph: pr,
1672
+ table: H,
1673
+ text: ar
1674
+ }, gr = U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Qn).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", lr).getRegex(), _r = {
1675
+ ...hr,
1676
+ lheading: rr,
1677
+ table: gr,
1678
+ paragraph: U(ir).replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", gr).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", lr).getRegex()
1679
+ }, vr = {
1680
+ ...hr,
1681
+ html: U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", ur).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(),
1682
1682
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
1683
1683
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
1684
- fences: V,
1684
+ fences: H,
1685
1685
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
1686
- paragraph: U(rr).replace("hr", Zn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", tr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1687
- }, vr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, yr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, br = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, G = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, Sr = /[^\s\p{P}\p{S}]/u, Cr = U(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), wr = /[\p{Pi}\p{Ps}"']/u, Tr = /(?!~)[\p{P}\p{S}]/u, Er = /(?!~)[\s\p{P}\p{S}]/u, Dr = /(?:[^\s\p{P}\p{S}]|~)/u, Or = U(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", qn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), kr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Ar = U(kr, "u").replace(/punct/g, G).getRegex(), jr = U(kr, "u").replace(/punct/g, Tr).getRegex(), Mr = U(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, wr).replace(/punct/g, G).getRegex(), Nr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Pr = U(Nr, "gu").replace(/notPunctSpace/g, Sr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Fr = U(Nr, "gu").replace(/notPunctSpace/g, Dr).replace(/punctSpace/g, Er).replace(/punct/g, Tr).getRegex(), Ir = U("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Sr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Lr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Sr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Rr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Sr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), zr = U(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, G).getRegex(), Br = U("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Sr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Vr = U(/\\(punct)/, "gu").replace(/punct/g, G).getRegex(), Hr = U(/^<(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(), Ur = U(lr).replace("(?:-->|$)", "-->").getRegex(), Wr = U("^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", Ur).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Gr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, Kr = U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Gr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), qr = U(/^!?\[(label)\]\[(ref)\]/).replace("label", Gr).replace("ref", ar).getRegex(), Jr = U(/^!?\[(ref)\](?:\[\])?/).replace("ref", ar).getRegex(), Yr = U("reflink|nolink(?!\\()", "g").replace("reflink", qr).replace("nolink", Jr).getRegex(), Xr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Zr = {
1688
- _backpedal: V,
1689
- anyPunctuation: Vr,
1690
- autolink: Hr,
1691
- blockSkip: Or,
1692
- br,
1693
- code: yr,
1694
- del: V,
1695
- delLDelim: V,
1696
- delRDelim: V,
1697
- emStrongLDelim: Ar,
1698
- emStrongRDelimAst: Pr,
1699
- emStrongRDelimUnd: Lr,
1700
- escape: vr,
1701
- link: Kr,
1702
- nolink: Jr,
1703
- punctuation: Cr,
1704
- reflink: qr,
1705
- reflinkSearch: Yr,
1706
- tag: Wr,
1707
- text: xr,
1708
- url: V
1709
- }, Qr = {
1710
- ...Zr,
1711
- emStrongLDelim: Mr,
1712
- emStrongRDelimAst: Ir,
1686
+ paragraph: U(ir).replace("hr", Qn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", nr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1687
+ }, yr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, br = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xr = /^( {2,}|\\)\n(?!\s*$)/, Sr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, G = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, Cr = /[^\s\p{P}\p{S}]/u, wr = U(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), Tr = /[\p{Pi}\p{Ps}"']/u, Er = /(?!~)[\p{P}\p{S}]/u, Dr = /(?!~)[\s\p{P}\p{S}]/u, Or = /(?:[^\s\p{P}\p{S}]|~)/u, kr = U(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Jn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ar = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, jr = U(Ar, "u").replace(/punct/g, G).getRegex(), Mr = U(Ar, "u").replace(/punct/g, Er).getRegex(), Nr = U(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, Tr).replace(/punct/g, G).getRegex(), Pr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Fr = U(Pr, "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Ir = U(Pr, "gu").replace(/notPunctSpace/g, Or).replace(/punctSpace/g, Dr).replace(/punct/g, Er).getRegex(), Lr = U("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Rr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), zr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Br = U(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, G).getRegex(), Vr = U("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Hr = U(/\\(punct)/, "gu").replace(/punct/g, G).getRegex(), Ur = U(/^<(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(), Wr = U(ur).replace("(?:-->|$)", "-->").getRegex(), Gr = U("^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", Wr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Kr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, qr = U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Kr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Jr = U(/^!?\[(label)\]\[(ref)\]/).replace("label", Kr).replace("ref", or).getRegex(), Yr = U(/^!?\[(ref)\](?:\[\])?/).replace("ref", or).getRegex(), Xr = U("reflink|nolink(?!\\()", "g").replace("reflink", Jr).replace("nolink", Yr).getRegex(), Zr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Qr = {
1688
+ _backpedal: H,
1689
+ anyPunctuation: Hr,
1690
+ autolink: Ur,
1691
+ blockSkip: kr,
1692
+ br: xr,
1693
+ code: br,
1694
+ del: H,
1695
+ delLDelim: H,
1696
+ delRDelim: H,
1697
+ emStrongLDelim: jr,
1698
+ emStrongRDelimAst: Fr,
1713
1699
  emStrongRDelimUnd: Rr,
1714
- link: U(/^!?\[(label)\]\((.*?)\)/).replace("label", Gr).getRegex(),
1715
- reflink: U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Gr).getRegex()
1700
+ escape: yr,
1701
+ link: qr,
1702
+ nolink: Yr,
1703
+ punctuation: wr,
1704
+ reflink: Jr,
1705
+ reflinkSearch: Xr,
1706
+ tag: Gr,
1707
+ text: Sr,
1708
+ url: H
1716
1709
  }, $r = {
1717
- ...Zr,
1718
- emStrongRDelimAst: Fr,
1719
- emStrongLDelim: jr,
1720
- delLDelim: zr,
1721
- delRDelim: Br,
1722
- url: U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Xr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1710
+ ...Qr,
1711
+ emStrongLDelim: Nr,
1712
+ emStrongRDelimAst: Lr,
1713
+ emStrongRDelimUnd: zr,
1714
+ link: U(/^!?\[(label)\]\((.*?)\)/).replace("label", Kr).getRegex(),
1715
+ reflink: U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Kr).getRegex()
1716
+ }, ei = {
1717
+ ...Qr,
1718
+ emStrongRDelimAst: Ir,
1719
+ emStrongLDelim: Mr,
1720
+ delLDelim: Br,
1721
+ delRDelim: Vr,
1722
+ url: U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Zr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1723
1723
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
1724
1724
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
1725
- text: U(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Xr).getRegex()
1726
- }, ei = {
1727
- ...$r,
1728
- br: U(br).replace("{2,}", "*").getRegex(),
1729
- text: U($r.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1725
+ text: U(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Zr).getRegex()
1730
1726
  }, ti = {
1731
- normal: mr,
1732
- gfm: gr,
1733
- pedantic: _r
1727
+ ...ei,
1728
+ br: U(xr).replace("{2,}", "*").getRegex(),
1729
+ text: U(ei.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1734
1730
  }, ni = {
1735
- normal: Zr,
1736
- gfm: $r,
1737
- breaks: ei,
1738
- pedantic: Qr
1731
+ normal: hr,
1732
+ gfm: _r,
1733
+ pedantic: vr
1739
1734
  }, ri = {
1735
+ normal: Qr,
1736
+ gfm: ei,
1737
+ breaks: ti,
1738
+ pedantic: $r
1739
+ }, ii = {
1740
1740
  "&": "&amp;",
1741
1741
  "<": "&lt;",
1742
1742
  ">": "&gt;",
1743
1743
  "\"": "&quot;",
1744
1744
  "'": "&#39;"
1745
- }, ii = (e) => ri[e];
1745
+ }, ai = (e) => ii[e];
1746
1746
  function q(e, t) {
1747
1747
  if (t) {
1748
- if (W.escapeTest.test(e)) return e.replace(W.escapeReplace, ii);
1749
- } else if (W.escapeTestNoEncode.test(e)) return e.replace(W.escapeReplaceNoEncode, ii);
1748
+ if (W.escapeTest.test(e)) return e.replace(W.escapeReplace, ai);
1749
+ } else if (W.escapeTestNoEncode.test(e)) return e.replace(W.escapeReplaceNoEncode, ai);
1750
1750
  return e;
1751
1751
  }
1752
- function ai(e) {
1752
+ function oi(e) {
1753
1753
  try {
1754
1754
  e = encodeURI(e).replace(W.percentDecode, "%");
1755
1755
  } catch {
@@ -1757,7 +1757,7 @@ function ai(e) {
1757
1757
  }
1758
1758
  return e;
1759
1759
  }
1760
- function oi(e, t) {
1760
+ function si(e, t) {
1761
1761
  let n = e.replace(W.findPipe, (e, t, n) => {
1762
1762
  let r = !1, i = t;
1763
1763
  for (; --i >= 0 && n[i] === "\\";) r = !r;
@@ -1782,12 +1782,12 @@ function J(e, t, n) {
1782
1782
  }
1783
1783
  return e.slice(0, r - i);
1784
1784
  }
1785
- function si(e) {
1785
+ function ci(e) {
1786
1786
  let t = e.split("\n"), n = t.length - 1;
1787
1787
  for (; n >= 0 && W.blankLine.test(t[n]);) n--;
1788
1788
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
1789
1789
  }
1790
- function ci(e, t) {
1790
+ function li(e, t) {
1791
1791
  if (e.indexOf(t[1]) === -1) return -1;
1792
1792
  let n = 0;
1793
1793
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -1795,7 +1795,7 @@ function ci(e, t) {
1795
1795
  else if (e[r] === t[1] && (n--, n < 0)) return r;
1796
1796
  return n > 0 ? -2 : -1;
1797
1797
  }
1798
- function li(e, t = 0) {
1798
+ function ui(e, t = 0) {
1799
1799
  let n = t, r = "";
1800
1800
  for (let t of e) if (t === " ") {
1801
1801
  let e = 4 - n % 4;
@@ -1803,7 +1803,7 @@ function li(e, t = 0) {
1803
1803
  } else r += t, n++;
1804
1804
  return r;
1805
1805
  }
1806
- function ui(e, t, n, r, i) {
1806
+ function di(e, t, n, r, i) {
1807
1807
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
1808
1808
  r.state.inLink = !0;
1809
1809
  let c = {
@@ -1816,7 +1816,7 @@ function ui(e, t, n, r, i) {
1816
1816
  };
1817
1817
  return r.state.inLink = !1, c;
1818
1818
  }
1819
- function di(e, t, n) {
1819
+ function fi(e, t, n) {
1820
1820
  let r = e.match(n.other.indentCodeCompensation);
1821
1821
  if (r === null) return t;
1822
1822
  let i = r[1];
@@ -1827,12 +1827,12 @@ function di(e, t, n) {
1827
1827
  return r.length >= i.length ? e.slice(i.length) : e;
1828
1828
  }).join("\n");
1829
1829
  }
1830
- var fi = class {
1830
+ var pi = class {
1831
1831
  options;
1832
1832
  rules;
1833
1833
  lexer;
1834
1834
  constructor(e) {
1835
- this.options = e || B;
1835
+ this.options = e || V;
1836
1836
  }
1837
1837
  space(e) {
1838
1838
  let t = this.rules.block.newline.exec(e);
@@ -1844,7 +1844,7 @@ var fi = class {
1844
1844
  code(e) {
1845
1845
  let t = this.rules.block.code.exec(e);
1846
1846
  if (t) {
1847
- let e = this.options.pedantic ? t[0] : si(t[0]);
1847
+ let e = this.options.pedantic ? t[0] : ci(t[0]);
1848
1848
  return {
1849
1849
  type: "code",
1850
1850
  raw: e,
@@ -1856,7 +1856,7 @@ var fi = class {
1856
1856
  fences(e) {
1857
1857
  let t = this.rules.block.fences.exec(e);
1858
1858
  if (t) {
1859
- let e = t[0], n = di(e, t[3] || "", this.rules);
1859
+ let e = t[0], n = fi(e, t[3] || "", this.rules);
1860
1860
  return {
1861
1861
  type: "code",
1862
1862
  raw: e,
@@ -1944,7 +1944,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
1944
1944
  let n = !1, r = "", s = "";
1945
1945
  if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
1946
1946
  r = t[0], e = e.substring(r.length);
1947
- let c = li(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1947
+ let c = ui(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
1948
1948
  if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
1949
1949
  let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
1950
1950
  for (; e;) {
@@ -2010,7 +2010,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2010
2010
  html(e) {
2011
2011
  let t = this.rules.block.html.exec(e);
2012
2012
  if (t) {
2013
- let e = si(t[0]);
2013
+ let e = ci(t[0]);
2014
2014
  return {
2015
2015
  type: "html",
2016
2016
  block: !0,
@@ -2036,7 +2036,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2036
2036
  table(e) {
2037
2037
  let t = this.rules.block.table.exec(e);
2038
2038
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
2039
- let n = oi(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
2039
+ let n = si(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
2040
2040
  type: "table",
2041
2041
  raw: J(t[0], "\n"),
2042
2042
  header: [],
@@ -2051,7 +2051,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2051
2051
  header: !0,
2052
2052
  align: a.align[e]
2053
2053
  });
2054
- for (let e of i) a.rows.push(oi(e, a.header.length).map((e, t) => ({
2054
+ for (let e of i) a.rows.push(si(e, a.header.length).map((e, t) => ({
2055
2055
  text: e,
2056
2056
  tokens: this.lexer.inline(e),
2057
2057
  header: !1,
@@ -2122,7 +2122,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2122
2122
  let t = J(e.slice(0, -1), "\\");
2123
2123
  if ((e.length - t.length) % 2 == 0) return;
2124
2124
  } else {
2125
- let e = ci(t[2], "()");
2125
+ let e = li(t[2], "()");
2126
2126
  if (e === -2) return;
2127
2127
  if (e > -1) {
2128
2128
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -2134,7 +2134,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2134
2134
  let e = this.rules.other.pedanticHrefTitle.exec(n);
2135
2135
  e && (n = e[1], r = e[3]);
2136
2136
  } else r = t[3] ? t[3].slice(1, -1) : "";
2137
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), ui(t, {
2137
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), di(t, {
2138
2138
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
2139
2139
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
2140
2140
  }, t[0], this.lexer, this.rules);
@@ -2152,7 +2152,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2152
2152
  text: e
2153
2153
  };
2154
2154
  }
2155
- return ui(n, e, n[0], this.lexer, this.rules);
2155
+ return di(n, e, n[0], this.lexer, this.rules);
2156
2156
  }
2157
2157
  }
2158
2158
  emStrong(e, t, n = "") {
@@ -2295,22 +2295,22 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2295
2295
  inlineQueue;
2296
2296
  tokenizer;
2297
2297
  constructor(e) {
2298
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || B, this.options.tokenizer = this.options.tokenizer || new fi(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
2298
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || V, this.options.tokenizer = this.options.tokenizer || new pi(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
2299
2299
  inLink: !1,
2300
2300
  inRawBlock: !1,
2301
2301
  top: !0
2302
2302
  };
2303
2303
  let t = {
2304
2304
  other: W,
2305
- block: ti.normal,
2306
- inline: ni.normal
2305
+ block: ni.normal,
2306
+ inline: ri.normal
2307
2307
  };
2308
- this.options.pedantic ? (t.block = ti.pedantic, t.inline = ni.pedantic) : this.options.gfm && (t.block = ti.gfm, t.inline = this.options.breaks ? ni.breaks : ni.gfm), this.tokenizer.rules = t;
2308
+ this.options.pedantic ? (t.block = ni.pedantic, t.inline = ri.pedantic) : this.options.gfm && (t.block = ni.gfm, t.inline = this.options.breaks ? ri.breaks : ri.gfm), this.tokenizer.rules = t;
2309
2309
  }
2310
2310
  static get rules() {
2311
2311
  return {
2312
- block: ti,
2313
- inline: ni
2312
+ block: ni,
2313
+ inline: ri
2314
2314
  };
2315
2315
  }
2316
2316
  static lex(t, n) {
@@ -2510,11 +2510,11 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2510
2510
  if (this.options.silent) console.error(t);
2511
2511
  else throw Error(t);
2512
2512
  }
2513
- }, pi = class {
2513
+ }, mi = class {
2514
2514
  options;
2515
2515
  parser;
2516
2516
  constructor(e) {
2517
- this.options = e || B;
2517
+ this.options = e || V;
2518
2518
  }
2519
2519
  space(e) {
2520
2520
  return "";
@@ -2600,7 +2600,7 @@ ${e}</tr>
2600
2600
  return `<del>${this.parser.parseInline(e)}</del>`;
2601
2601
  }
2602
2602
  link({ href: e, title: t, tokens: n }) {
2603
- let r = this.parser.parseInline(n), i = ai(e);
2603
+ let r = this.parser.parseInline(n), i = oi(e);
2604
2604
  if (i === null) return r;
2605
2605
  e = i;
2606
2606
  let a = "<a href=\"" + e + "\"";
@@ -2608,7 +2608,7 @@ ${e}</tr>
2608
2608
  }
2609
2609
  image({ href: e, title: t, text: n, tokens: r }) {
2610
2610
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
2611
- let i = ai(e);
2611
+ let i = oi(e);
2612
2612
  if (i === null) return q(n);
2613
2613
  e = i;
2614
2614
  let a = `<img src="${e}" alt="${q(n)}"`;
@@ -2617,7 +2617,7 @@ ${e}</tr>
2617
2617
  text(e) {
2618
2618
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : q(e.text);
2619
2619
  }
2620
- }, mi = class {
2620
+ }, hi = class {
2621
2621
  strong({ text: e }) {
2622
2622
  return e;
2623
2623
  }
@@ -2653,7 +2653,7 @@ ${e}</tr>
2653
2653
  renderer;
2654
2654
  textRenderer;
2655
2655
  constructor(e) {
2656
- this.options = e || B, this.options.renderer = this.options.renderer || new pi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new mi();
2656
+ this.options = e || V, this.options.renderer = this.options.renderer || new mi(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new hi();
2657
2657
  }
2658
2658
  static parse(t, n) {
2659
2659
  return new e(n).parse(t);
@@ -2801,11 +2801,11 @@ ${e}</tr>
2801
2801
  }
2802
2802
  return n;
2803
2803
  }
2804
- }, hi = class {
2804
+ }, gi = class {
2805
2805
  options;
2806
2806
  block;
2807
2807
  constructor(e) {
2808
- this.options = e || B;
2808
+ this.options = e || V;
2809
2809
  }
2810
2810
  static passThroughHooks = /* @__PURE__ */ new Set([
2811
2811
  "preprocess",
@@ -2836,17 +2836,17 @@ ${e}</tr>
2836
2836
  provideParser(e = this.block) {
2837
2837
  return e ? X.parse : X.parseInline;
2838
2838
  }
2839
- }, gi = class {
2839
+ }, _i = class {
2840
2840
  defaults = Gn();
2841
2841
  options = this.setOptions;
2842
2842
  parse = this.parseMarkdown(!0);
2843
2843
  parseInline = this.parseMarkdown(!1);
2844
2844
  Parser = X;
2845
- Renderer = pi;
2846
- TextRenderer = mi;
2845
+ Renderer = mi;
2846
+ TextRenderer = hi;
2847
2847
  Lexer = Y;
2848
- Tokenizer = fi;
2849
- Hooks = hi;
2848
+ Tokenizer = pi;
2849
+ Hooks = gi;
2850
2850
  constructor(...e) {
2851
2851
  this.use(...e);
2852
2852
  }
@@ -2897,7 +2897,7 @@ ${e}</tr>
2897
2897
  }
2898
2898
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
2899
2899
  }), n.extensions = t), e.renderer) {
2900
- let t = this.defaults.renderer || new pi(this.defaults);
2900
+ let t = this.defaults.renderer || new mi(this.defaults);
2901
2901
  for (let n in e.renderer) {
2902
2902
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
2903
2903
  if (["options", "parser"].includes(n)) continue;
@@ -2910,7 +2910,7 @@ ${e}</tr>
2910
2910
  n.renderer = t;
2911
2911
  }
2912
2912
  if (e.tokenizer) {
2913
- let t = this.defaults.tokenizer || new fi(this.defaults);
2913
+ let t = this.defaults.tokenizer || new pi(this.defaults);
2914
2914
  for (let n in e.tokenizer) {
2915
2915
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
2916
2916
  if ([
@@ -2927,13 +2927,13 @@ ${e}</tr>
2927
2927
  n.tokenizer = t;
2928
2928
  }
2929
2929
  if (e.hooks) {
2930
- let t = this.defaults.hooks || new hi();
2930
+ let t = this.defaults.hooks || new gi();
2931
2931
  for (let n in e.hooks) {
2932
2932
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
2933
2933
  if (["options", "block"].includes(n)) continue;
2934
2934
  let r = n, i = e.hooks[r], a = t[r];
2935
- t[r] = hi.passThroughHooks.has(n) ? (e) => {
2936
- if (this.defaults.async && hi.passThroughHooksRespectAsync.has(n)) return (async () => {
2935
+ t[r] = gi.passThroughHooks.has(n) ? (e) => {
2936
+ if (this.defaults.async && gi.passThroughHooksRespectAsync.has(n)) return (async () => {
2937
2937
  let n = await i.call(t, e);
2938
2938
  return a.call(t, n);
2939
2939
  })();
@@ -3011,22 +3011,22 @@ ${e}</tr>
3011
3011
  throw n;
3012
3012
  };
3013
3013
  }
3014
- }, Z = new gi();
3014
+ }, Z = new _i();
3015
3015
  function Q(e, t) {
3016
3016
  return Z.parse(e, t);
3017
3017
  }
3018
3018
  Q.options = Q.setOptions = function(e) {
3019
3019
  return Z.setOptions(e), Q.defaults = Z.defaults, Kn(Q.defaults), Q;
3020
- }, Q.getDefaults = Gn, Q.defaults = B;
3021
- function _i(...e) {
3020
+ }, Q.getDefaults = Gn, Q.defaults = V;
3021
+ function vi(...e) {
3022
3022
  return Z.use(...e), Q.defaults = Z.defaults, Kn(Q.defaults), Q;
3023
3023
  }
3024
- Q.use = _i, Q.walkTokens = function(e, t) {
3024
+ Q.use = vi, Q.walkTokens = function(e, t) {
3025
3025
  return Z.walkTokens(e, t);
3026
- }, Q.parseInline = Z.parseInline, Q.Parser = X, Q.parser = X.parse, Q.Renderer = pi, Q.TextRenderer = mi, Q.Lexer = Y, Q.lexer = Y.lex, Q.Tokenizer = fi, Q.Hooks = hi, Q.parse = Q, Q.options, Q.setOptions, Q.walkTokens, Q.parseInline, X.parse, Y.lex;
3026
+ }, Q.parseInline = Z.parseInline, Q.Parser = X, Q.parser = X.parse, Q.Renderer = mi, Q.TextRenderer = hi, Q.Lexer = Y, Q.lexer = Y.lex, Q.Tokenizer = pi, Q.Hooks = gi, Q.parse = Q, Q.options, Q.setOptions, Q.walkTokens, Q.parseInline, X.parse, Y.lex;
3027
3027
  //#endregion
3028
3028
  //#region ../../node_modules/prismjs/prism.js
3029
- var vi = /* @__PURE__ */ e(((e, t) => {
3029
+ var yi = /* @__PURE__ */ t(((e, t) => {
3030
3030
  var n = function(e) {
3031
3031
  var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
3032
3032
  manual: e.Prism && e.Prism.manual,
@@ -3239,29 +3239,29 @@ var vi = /* @__PURE__ */ e(((e, t) => {
3239
3239
  p = Array.isArray(p) ? p : [p];
3240
3240
  for (var m = 0; m < p.length; ++m) {
3241
3241
  if (d && d.cause == f + "," + m) return;
3242
- var h = p[m], ee = h.inside, g = !!h.lookbehind, te = !!h.greedy, _ = h.alias;
3243
- if (te && !h.pattern.global) {
3244
- var ne = h.pattern.toString().match(/[imsuy]*$/)[0];
3245
- h.pattern = RegExp(h.pattern.source, ne + "g");
3242
+ var h = p[m], g = h.inside, ee = !!h.lookbehind, _ = !!h.greedy, te = h.alias;
3243
+ if (_ && !h.pattern.global) {
3244
+ var v = h.pattern.toString().match(/[imsuy]*$/)[0];
3245
+ h.pattern = RegExp(h.pattern.source, v + "g");
3246
3246
  }
3247
- for (var v = h.pattern || h, y = r.next, b = c; y !== t.tail && !(d && b >= d.reach); b += y.value.length, y = y.next) {
3247
+ for (var ne = h.pattern || h, y = r.next, b = c; y !== t.tail && !(d && b >= d.reach); b += y.value.length, y = y.next) {
3248
3248
  var x = y.value;
3249
3249
  if (t.length > e.length) return;
3250
3250
  if (!(x instanceof a)) {
3251
3251
  var re = 1, S;
3252
- if (te) {
3253
- if (S = o(v, b, e, g), !S || S.index >= e.length) break;
3252
+ if (_) {
3253
+ if (S = o(ne, b, e, ee), !S || S.index >= e.length) break;
3254
3254
  var ie = S.index, ae = S.index + S[0].length, C = b;
3255
3255
  for (C += y.value.length; ie >= C;) y = y.next, C += y.value.length;
3256
3256
  if (C -= y.value.length, b = C, y.value instanceof a) continue;
3257
3257
  for (var oe = y; oe !== t.tail && (C < ae || typeof oe.value == "string"); oe = oe.next) re++, C += oe.value.length;
3258
3258
  re--, x = e.slice(b, C), S.index -= b;
3259
- } else if (S = o(v, 0, x, g), !S) continue;
3259
+ } else if (S = o(ne, 0, x, ee), !S) continue;
3260
3260
  var ie = S.index, se = S[0], ce = x.slice(0, ie), le = x.slice(ie + se.length), ue = b + x.length;
3261
3261
  d && ue > d.reach && (d.reach = ue);
3262
3262
  var de = y.prev;
3263
3263
  ce && (de = l(t, de, ce), b += ce.length), u(t, de, re);
3264
- var fe = new a(f, ee ? i.tokenize(se, ee) : se, _, se);
3264
+ var fe = new a(f, g ? i.tokenize(se, g) : se, te, se);
3265
3265
  if (y = l(t, de, fe), le && l(t, y, le), re > 1) {
3266
3266
  var pe = {
3267
3267
  cause: f + "," + m,
@@ -3650,8 +3650,8 @@ var vi = /* @__PURE__ */ e(((e, t) => {
3650
3650
  m = i[h] || h;
3651
3651
  }
3652
3652
  n.util.setLanguage(f, m), n.util.setLanguage(r, m);
3653
- var ee = n.plugins.autoloader;
3654
- ee && ee.loadLanguages(m), u(p, function(e) {
3653
+ var g = n.plugins.autoloader;
3654
+ g && g.loadLanguages(m), u(p, function(e) {
3655
3655
  r.setAttribute(a, s);
3656
3656
  var t = d(r.getAttribute("data-range"));
3657
3657
  if (t) {
@@ -3671,9 +3671,9 @@ var vi = /* @__PURE__ */ e(((e, t) => {
3671
3671
  f ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
3672
3672
  };
3673
3673
  })();
3674
- })), yi = vi(), bi = "mermaid", xi = "cx-frontmatter", Si = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3675
- function Ci(e) {
3676
- let t = Si.exec(e);
3674
+ })), bi = /* @__PURE__ */ e(yi(), 1), xi = "mermaid", Si = "cx-frontmatter", Ci = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3675
+ function wi(e) {
3676
+ let t = Ci.exec(e);
3677
3677
  if (!t) return {
3678
3678
  body: e,
3679
3679
  data: {},
@@ -3694,38 +3694,38 @@ function Ci(e) {
3694
3694
  raw: n
3695
3695
  };
3696
3696
  }
3697
- function wi(e, t) {
3698
- return `<details class="${xi}"><summary>${Ti(t)}</summary><pre>${Ti(e)}</pre></details>`;
3697
+ function Ti(e, t) {
3698
+ return `<details class="${Si}"><summary>${Ei(t)}</summary><pre>${Ei(e)}</pre></details>`;
3699
3699
  }
3700
- function Ti(e) {
3700
+ function Ei(e) {
3701
3701
  return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
3702
3702
  }
3703
- var Ei = { code({ escaped: e, lang: t, text: n }) {
3704
- let r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : Ti(n);
3705
- if (r === "mermaid") return `<pre class="${bi}">${i}</pre>`;
3703
+ var Di = { code({ escaped: e, lang: t, text: n }) {
3704
+ let r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : Ei(n);
3705
+ if (r === "mermaid") return `<pre class="${xi}">${i}</pre>`;
3706
3706
  let a = [
3707
3707
  "ts",
3708
3708
  "typescript",
3709
3709
  "js",
3710
3710
  "javascript"
3711
3711
  ].includes(r ?? "") ? "javascript" : r;
3712
- return !a || !yi.languages[a] ? `<pre class="language-"><code>${i}</code></pre>` : `<pre class="language-${a}"><code>${(0, yi.highlight)(n, yi.languages[a], a)}</code></pre>`;
3712
+ return !a || !bi.languages[a] ? `<pre class="language-"><code>${i}</code></pre>` : `<pre class="language-${a}"><code>${(0, bi.highlight)(n, bi.languages[a], a)}</code></pre>`;
3713
3713
  } };
3714
- function Di() {
3715
- let e = new gi();
3716
- return e.use({ renderer: Ei }), e;
3714
+ function Oi() {
3715
+ let e = new _i();
3716
+ return e.use({ renderer: Di }), e;
3717
3717
  }
3718
3718
  //#endregion
3719
3719
  //#region ../../packages/atoms/src/components/markdown/styles.ts
3720
- var Oi = n`: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}`, ki = n`: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}`, Ai = n`
3721
- ${Oi}
3720
+ var ki = r`: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}`, Ai = r`: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}`, ji = r`
3722
3721
  ${ki}
3723
- `, ji = `pre.${bi}:not([data-processed])`, Mi = 0, Ni = "a[href], details, summary, button, cx-icon-button, input, label, [role=\"button\"], .clickable", Pi = "pre > code", Fi = "cx-code-block", Ii = 1500, $ = class extends h {
3722
+ ${Ai}
3723
+ `, Mi = `pre.${xi}:not([data-processed])`, Ni = 0, Pi = "a[href], details, summary, button, cx-icon-button, input, label, [role=\"button\"], .clickable", Fi = "pre > code", Ii = "cx-code-block", Li = 1500, $ = class extends g {
3724
3724
  constructor(...e) {
3725
- super(...e), this.localize = new l(this), this.#n = Di(), this.#r = /* @__PURE__ */ new Map(), this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.renderer = {}, this.extensions = [];
3725
+ super(...e), this.localize = new u(this), this.#n = Oi(), this.#r = /* @__PURE__ */ new Map(), this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.renderer = {}, this.extensions = [];
3726
3726
  }
3727
- static #e = this.styles = Ai;
3728
- static #t = this.dependencies = { "cx-icon-button": f };
3727
+ static #e = this.styles = ji;
3728
+ static #t = this.dependencies = { "cx-icon-button": p };
3729
3729
  #n;
3730
3730
  #r;
3731
3731
  connectedCallback() {
@@ -3738,7 +3738,7 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3738
3738
  this.rendered = this.#i();
3739
3739
  }
3740
3740
  handleClick(e) {
3741
- let t = e.target?.closest(Ni);
3741
+ let t = e.target?.closest(Pi);
3742
3742
  t && this.contains(t) && e.stopPropagation();
3743
3743
  }
3744
3744
  handleRenderedWithNewMarkdown() {
@@ -3746,25 +3746,25 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3746
3746
  }
3747
3747
  #i() {
3748
3748
  if (!this.markdown) return this.frontmatter = {}, "";
3749
- let { body: e, data: t, raw: n } = Ci(this.markdown);
3749
+ let { body: e, data: t, raw: n } = wi(this.markdown);
3750
3750
  this.frontmatter = t;
3751
- let r = this.#n.parse(e), i = n ? wi(n, this.localize.term("metadata")) + r : r;
3752
- return this.liveScript ? i : p(i);
3751
+ let r = this.#n.parse(e), i = n ? Ti(n, this.localize.term("metadata")) + r : r;
3752
+ return this.liveScript ? i : m(i);
3753
3753
  }
3754
3754
  #a() {
3755
3755
  if (this.linkTarget) for (let e of this.querySelectorAll("a[href]")) e.setAttribute("target", this.linkTarget), this.linkTarget === "_blank" && e.setAttribute("rel", "noopener noreferrer");
3756
3756
  }
3757
3757
  #o() {
3758
- for (let e of this.querySelectorAll(Pi)) {
3758
+ for (let e of this.querySelectorAll(Fi)) {
3759
3759
  let t = e.parentElement;
3760
- if (!t || t.parentElement?.classList.contains(Fi)) continue;
3760
+ if (!t || t.parentElement?.classList.contains(Ii)) continue;
3761
3761
  let n = document.createElement("div");
3762
- n.className = Fi, t.replaceWith(n), n.append(t, this.#s(e));
3762
+ n.className = Ii, t.replaceWith(n), n.append(t, this.#s(e));
3763
3763
  }
3764
3764
  }
3765
3765
  #s(e) {
3766
3766
  let t = document.createElement("cx-icon-button");
3767
- return t.name = "content_copy", t.label = this.localize.term("copy"), t.size = d.Small, t.addEventListener("click", () => {
3767
+ return t.name = "content_copy", t.label = this.localize.term("copy"), t.size = f.Small, t.addEventListener("click", () => {
3768
3768
  this.#c(e.textContent ?? "", t);
3769
3769
  }), t;
3770
3770
  }
@@ -3776,10 +3776,10 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3776
3776
  }
3777
3777
  t.name = "check", t.label = this.localize.term("copied"), clearTimeout(this.#r.get(t)), this.#r.set(t, window.setTimeout(() => {
3778
3778
  t.name = "content_copy", t.label = this.localize.term("copy"), this.#r.delete(t);
3779
- }, Ii));
3779
+ }, Li));
3780
3780
  }
3781
3781
  #l() {
3782
- this.#n = Di(), this.#n.use({
3782
+ this.#n = Oi(), this.#n.use({
3783
3783
  extensions: this.extensions,
3784
3784
  renderer: this.renderer
3785
3785
  });
@@ -3796,8 +3796,8 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3796
3796
  let e = n.textContent ?? "";
3797
3797
  n.setAttribute("data-processed", "true");
3798
3798
  try {
3799
- Mi += 1;
3800
- let { bindFunctions: r, svg: i } = await t.render(`cx-mermaid-${Mi}`, e);
3799
+ Ni += 1;
3800
+ let { bindFunctions: r, svg: i } = await t.render(`cx-mermaid-${Ni}`, e);
3801
3801
  n.innerHTML = i, r?.(n);
3802
3802
  } catch {
3803
3803
  n.textContent = e;
@@ -3808,11 +3808,11 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3808
3808
  }
3809
3809
  }
3810
3810
  render() {
3811
- return t`<div class=${this.classname} @click=${this.handleClick}>${m(this.rendered)}</div>`;
3811
+ return n`<div class=${this.classname} @click=${this.handleClick}>${h(this.rendered)}</div>`;
3812
3812
  }
3813
3813
  updated() {
3814
- this.#a(), this.#o(), this.liveScript && Ri(this);
3815
- let e = this.querySelectorAll(ji);
3814
+ this.#a(), this.#o(), this.liveScript && zi(this);
3815
+ let e = this.querySelectorAll(Mi);
3816
3816
  if (e.length === 0) {
3817
3817
  this.emit("cx-ready");
3818
3818
  return;
@@ -3820,28 +3820,28 @@ var Oi = n`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3820
3820
  this.#u(e);
3821
3821
  }
3822
3822
  };
3823
- a([r({ type: String }), o("design:type", Object)], $.prototype, "classname", void 0), a([r({
3823
+ o([i({ type: String }), s("design:type", Object)], $.prototype, "classname", void 0), o([i({
3824
3824
  attribute: "live-script",
3825
3825
  reflect: !0,
3826
3826
  type: Boolean
3827
- }), o("design:type", Object)], $.prototype, "liveScript", void 0), a([r({
3827
+ }), s("design:type", Object)], $.prototype, "liveScript", void 0), o([i({
3828
3828
  attribute: "link-target",
3829
3829
  type: String
3830
- }), o("design:type", Object)], $.prototype, "linkTarget", void 0), a([r({ type: String }), o("design:type", String)], $.prototype, "markdown", void 0), a([r({ type: Object }), o("design:type", Object)], $.prototype, "renderer", void 0), a([r({ type: Object }), o("design:type", Array)], $.prototype, "extensions", void 0), a([i(), o("design:type", String)], $.prototype, "rendered", void 0), a([
3831
- u("liveScript"),
3832
- u("markdown"),
3833
- o("design:type", Function),
3834
- o("design:paramtypes", []),
3835
- o("design:returntype", void 0)
3836
- ], $.prototype, "updateRendered", null), a([
3837
- u("renderer", { waitUntilFirstUpdate: !0 }),
3838
- u("extensions", { waitUntilFirstUpdate: !0 }),
3839
- o("design:type", Function),
3840
- o("design:paramtypes", []),
3841
- o("design:returntype", void 0)
3842
- ], $.prototype, "handleRenderedWithNewMarkdown", null), $ = a([c("cx-markdown")], $);
3843
- var Li = $;
3844
- function Ri(e) {
3830
+ }), s("design:type", Object)], $.prototype, "linkTarget", void 0), o([i({ type: String }), s("design:type", String)], $.prototype, "markdown", void 0), o([i({ type: Object }), s("design:type", Object)], $.prototype, "renderer", void 0), o([i({ type: Object }), s("design:type", Array)], $.prototype, "extensions", void 0), o([a(), s("design:type", String)], $.prototype, "rendered", void 0), o([
3831
+ d("liveScript"),
3832
+ d("markdown"),
3833
+ s("design:type", Function),
3834
+ s("design:paramtypes", []),
3835
+ s("design:returntype", void 0)
3836
+ ], $.prototype, "updateRendered", null), o([
3837
+ d("renderer", { waitUntilFirstUpdate: !0 }),
3838
+ d("extensions", { waitUntilFirstUpdate: !0 }),
3839
+ s("design:type", Function),
3840
+ s("design:paramtypes", []),
3841
+ s("design:returntype", void 0)
3842
+ ], $.prototype, "handleRenderedWithNewMarkdown", null), $ = o([l("cx-markdown")], $);
3843
+ var Ri = $;
3844
+ function zi(e) {
3845
3845
  e.querySelectorAll("script").forEach((e) => {
3846
3846
  let t = document.createElement("script");
3847
3847
  e.src ? t.src = e.src : t.text = `(function() {\n${e.text}\n})();`, Array.from(e.attributes).forEach((e) => {
@@ -3850,4 +3850,4 @@ function Ri(e) {
3850
3850
  });
3851
3851
  }
3852
3852
  //#endregion
3853
- export { Y as a, vi as i, Ai as n, h as o, Ci as r, Li as t };
3853
+ export { Y as a, yi as i, ji as n, g as o, wi as r, Ri as t };