@n8n/chat 0.68.6 → 0.68.7

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,4 +1,4 @@
1
- /*! Package version @n8n/chat@0.68.6 */
1
+ /*! Package version @n8n/chat@0.68.7 */
2
2
  var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
3
3
  let n = {};
4
4
  for (var r in e) __defProp$1(n, r, {
@@ -17,11 +17,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
17
17
  enumerable: !0
18
18
  }) : o, n)), __toCommonJS = (e) => __copyProps(__defProp$1({}, "__esModule", { value: !0 }), e);
19
19
  /**
20
- * @vue/shared v3.5.13
20
+ * @vue/shared v3.5.40
21
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
22
22
  * @license MIT
23
23
  **/
24
- /*! #__NO_SIDE_EFFECTS__ */
25
24
  /* @__NO_SIDE_EFFECTS__ */
26
25
  function makeMap(e) {
27
26
  let t = /* @__PURE__ */ Object.create(null);
@@ -33,8 +32,8 @@ var EMPTY_OBJ = {}, EMPTY_ARR = [], NOOP = () => {}, NO = () => !1, isOn = (e) =
33
32
  n > -1 && e.splice(n, 1);
34
33
  }, hasOwnProperty$14 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$14.call(e, t), isArray$5 = Array.isArray, isMap = (e) => toTypeString(e) === "[object Map]", isSet = (e) => toTypeString(e) === "[object Set]", isFunction$3 = (e) => typeof e == "function", isString$2 = (e) => typeof e == "string", isSymbol$5 = (e) => typeof e == "symbol", isObject$4 = (e) => typeof e == "object" && !!e, isPromise = (e) => (isObject$4(e) || isFunction$3(e)) && isFunction$3(e.then) && isFunction$3(e.catch), objectToString$3 = Object.prototype.toString, toTypeString = (e) => objectToString$3.call(e), toRawType = (e) => toTypeString(e).slice(8, -1), isPlainObject = (e) => toTypeString(e) === "[object Object]", isIntegerKey = (e) => isString$2(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, isReservedProp = /* @__PURE__ */ makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), cacheStringFunction$1 = (e) => {
35
34
  let t = /* @__PURE__ */ Object.create(null);
36
- return (n) => t[n] || (t[n] = e(n));
37
- }, camelizeRE$1 = /-(\w)/g, camelize = cacheStringFunction$1((e) => e.replace(camelizeRE$1, (e, t) => t ? t.toUpperCase() : "")), hyphenateRE$1 = /\B([A-Z])/g, hyphenate$1 = cacheStringFunction$1((e) => e.replace(hyphenateRE$1, "-$1").toLowerCase()), capitalize = cacheStringFunction$1((e) => e.charAt(0).toUpperCase() + e.slice(1)), toHandlerKey = cacheStringFunction$1((e) => e ? `on${capitalize(e)}` : ""), hasChanged = (e, t) => !Object.is(e, t), invokeArrayFns = (e, ...t) => {
35
+ return ((n) => t[n] || (t[n] = e(n)));
36
+ }, camelizeRE$1 = /-\w/g, camelize = cacheStringFunction$1((e) => e.replace(camelizeRE$1, (e) => e.slice(1).toUpperCase())), hyphenateRE$1 = /\B([A-Z])/g, hyphenate$1 = cacheStringFunction$1((e) => e.replace(hyphenateRE$1, "-$1").toLowerCase()), capitalize = cacheStringFunction$1((e) => e.charAt(0).toUpperCase() + e.slice(1)), toHandlerKey = cacheStringFunction$1((e) => e ? `on${capitalize(e)}` : ""), hasChanged = (e, t) => !Object.is(e, t), invokeArrayFns = (e, ...t) => {
38
37
  for (let n = 0; n < e.length; n++) e[n](...t);
39
38
  }, def = (e, t, n, r = !1) => {
40
39
  Object.defineProperty(e, t, {
@@ -3792,7 +3791,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
3792
3791
  let n = e && e.exec(t);
3793
3792
  return n && n.index === 0;
3794
3793
  }
3795
- var O = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
3794
+ var O = new RegExp(T(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
3796
3795
  function k(e, { joinWith: t }) {
3797
3796
  let n = 0;
3798
3797
  return e.map((e) => {
@@ -3804,7 +3803,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
3804
3803
  i += r;
3805
3804
  break;
3806
3805
  }
3807
- i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
3806
+ i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], (e[0] === "(" || /^\(\?[<']/.test(e[0])) && n++);
3808
3807
  }
3809
3808
  return i;
3810
3809
  }).map((e) => `(${e})`).join(t);
@@ -3864,18 +3863,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
3864
3863
  begin: F,
3865
3864
  relevance: 0
3866
3865
  }, f9 = {
3867
- begin: /(?=\/[^/\n]*\/)/,
3868
- contains: [{
3869
- scope: "regexp",
3870
- begin: /\//,
3871
- end: /\/[gimuy]*/,
3872
- illegal: /\n/,
3873
- contains: [R, {
3874
- begin: /\[/,
3875
- end: /\]/,
3876
- relevance: 0,
3877
- contains: [R]
3878
- }]
3866
+ scope: "regexp",
3867
+ begin: /\/(?=[^/\n]*\/)/,
3868
+ end: /\/[gimuy]*/,
3869
+ contains: [R, {
3870
+ begin: /\[/,
3871
+ end: /\]/,
3872
+ relevance: 0,
3873
+ contains: [R]
3879
3874
  }]
3880
3875
  }, p9 = {
3881
3876
  scope: "title",
@@ -3890,29 +3885,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
3890
3885
  relevance: 0
3891
3886
  }, g9 = /* @__PURE__ */ Object.freeze({
3892
3887
  __proto__: null,
3893
- MATCH_NOTHING_RE: A,
3894
- IDENT_RE: j,
3895
- UNDERSCORE_IDENT_RE: M,
3896
- NUMBER_RE: N,
3897
- C_NUMBER_RE: P,
3898
- BINARY_NUMBER_RE: F,
3899
- RE_STARTERS_RE: I,
3900
- SHEBANG: L,
3901
- BACKSLASH_ESCAPE: R,
3902
3888
  APOS_STRING_MODE: z,
3903
- QUOTE_STRING_MODE: B,
3904
- PHRASAL_WORDS_MODE: V,
3889
+ BACKSLASH_ESCAPE: R,
3890
+ BINARY_NUMBER_MODE: Y,
3891
+ BINARY_NUMBER_RE: F,
3905
3892
  COMMENT: H,
3906
- C_LINE_COMMENT_MODE: U,
3907
3893
  C_BLOCK_COMMENT_MODE: W,
3908
- HASH_COMMENT_MODE: G,
3909
- NUMBER_MODE: K,
3894
+ C_LINE_COMMENT_MODE: U,
3910
3895
  C_NUMBER_MODE: J,
3911
- BINARY_NUMBER_MODE: Y,
3912
- REGEXP_MODE: f9,
3913
- TITLE_MODE: p9,
3914
- UNDERSCORE_TITLE_MODE: m9,
3915
- METHOD_GUARD: h9,
3896
+ C_NUMBER_RE: P,
3916
3897
  END_SAME_AS_BEGIN: function(e) {
3917
3898
  return Object.assign(e, {
3918
3899
  "on:begin": (e, t) => {
@@ -3922,7 +3903,21 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
3922
3903
  t.data._beginMatch !== e[1] && t.ignoreMatch();
3923
3904
  }
3924
3905
  });
3925
- }
3906
+ },
3907
+ HASH_COMMENT_MODE: G,
3908
+ IDENT_RE: j,
3909
+ MATCH_NOTHING_RE: A,
3910
+ METHOD_GUARD: h9,
3911
+ NUMBER_MODE: K,
3912
+ NUMBER_RE: N,
3913
+ PHRASAL_WORDS_MODE: V,
3914
+ QUOTE_STRING_MODE: B,
3915
+ REGEXP_MODE: f9,
3916
+ RE_STARTERS_RE: I,
3917
+ SHEBANG: L,
3918
+ TITLE_MODE: p9,
3919
+ UNDERSCORE_IDENT_RE: M,
3920
+ UNDERSCORE_TITLE_MODE: m9
3926
3921
  });
3927
3922
  function X(e, t) {
3928
3923
  e.input[e.index - 1] === "." && t.ignoreMatch();
@@ -4107,7 +4102,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4107
4102
  return o(e, { variants: null }, t);
4108
4103
  })), e.cachedVariants ? e.cachedVariants : L9(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
4109
4104
  }
4110
- var z9 = "11.8.0", B9 = class extends Error {
4105
+ var z9 = "11.12.0", B9 = class extends Error {
4111
4106
  constructor(e, t) {
4112
4107
  super(e), this.name = "HTMLInjectionError", this.html = t;
4113
4108
  }
@@ -4134,10 +4129,10 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4134
4129
  t += e.parentNode ? e.parentNode.className : "";
4135
4130
  let n = u.languageDetectRe.exec(t);
4136
4131
  if (n) {
4137
- let t = B(n[1]);
4132
+ let t = z(n[1]);
4138
4133
  return t || (k9(c.replace("{}", n[1])), k9("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
4139
4134
  }
4140
- return t.split(/\s+/).find((e) => d(e) || B(e));
4135
+ return t.split(/\s+/).find((e) => d(e) || z(e));
4141
4136
  }
4142
4137
  function _(e, t, n) {
4143
4138
  let r = "", i = "";
@@ -4146,9 +4141,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4146
4141
  code: r,
4147
4142
  language: i
4148
4143
  };
4149
- K("before:highlight", o);
4144
+ G("before:highlight", o);
4150
4145
  let s = o.result ? o.result : w(o.language, o.code, n);
4151
- return s.code = o.code, K("after:highlight", s), s;
4146
+ return s.code = o.code, G("after:highlight", s), s;
4152
4147
  }
4153
4148
  function w(e, n, i, o) {
4154
4149
  let l = Object.create(null);
@@ -4157,14 +4152,14 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4157
4152
  }
4158
4153
  function f() {
4159
4154
  if (!I.keywords) {
4160
- R.addText(z);
4155
+ R.addText(B);
4161
4156
  return;
4162
4157
  }
4163
4158
  let e = 0;
4164
4159
  I.keywordPatternRe.lastIndex = 0;
4165
- let t = I.keywordPatternRe.exec(z), n = "";
4160
+ let t = I.keywordPatternRe.exec(B), n = "";
4166
4161
  for (; t;) {
4167
- n += z.substring(e, t.index);
4162
+ n += B.substring(e, t.index);
4168
4163
  let r = N.case_insensitive ? t[0].toLowerCase() : t[0], i = d(I, r);
4169
4164
  if (i) {
4170
4165
  let [e, o] = i;
@@ -4174,24 +4169,24 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4174
4169
  y(t[0], n);
4175
4170
  }
4176
4171
  } else n += t[0];
4177
- e = I.keywordPatternRe.lastIndex, t = I.keywordPatternRe.exec(z);
4172
+ e = I.keywordPatternRe.lastIndex, t = I.keywordPatternRe.exec(B);
4178
4173
  }
4179
- n += z.substring(e), R.addText(n);
4174
+ n += B.substring(e), R.addText(n);
4180
4175
  }
4181
4176
  function g() {
4182
- if (z === "") return;
4177
+ if (B === "") return;
4183
4178
  let e = null;
4184
4179
  if (typeof I.subLanguage == "string") {
4185
4180
  if (!t[I.subLanguage]) {
4186
- R.addText(z);
4181
+ R.addText(B);
4187
4182
  return;
4188
4183
  }
4189
- e = w(I.subLanguage, z, !0, L[I.subLanguage]), L[I.subLanguage] = e._top;
4190
- } else e = O(z, I.subLanguage.length ? I.subLanguage : null);
4184
+ e = w(I.subLanguage, B, !0, L[I.subLanguage]), L[I.subLanguage] = e._top;
4185
+ } else e = O(B, I.subLanguage.length ? I.subLanguage : null);
4191
4186
  I.relevance > 0 && (V += e.relevance), R.__addSublanguage(e._emitter, e.language);
4192
4187
  }
4193
4188
  function _() {
4194
- I.subLanguage == null ? f() : g(), z = "";
4189
+ I.subLanguage == null ? f() : g(), B = "";
4195
4190
  }
4196
4191
  function y(e, t) {
4197
4192
  e !== "" && (R.startScope(t), R.addText(e), R.endScope());
@@ -4204,11 +4199,11 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4204
4199
  continue;
4205
4200
  }
4206
4201
  let r = N.classNameAliases[e[n]] || e[n], i = t[n];
4207
- r ? y(i, r) : (z = i, f(), z = ""), n++;
4202
+ r ? y(i, r) : (B = i, f(), B = ""), n++;
4208
4203
  }
4209
4204
  }
4210
4205
  function S(e, t) {
4211
- return e.scope && typeof e.scope == "string" && R.openNode(N.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (y(z, N.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), z = "") : e.beginScope._multi && (x(e.beginScope, t), z = "")), I = Object.create(e, { parent: { value: I } }), I;
4206
+ return e.scope && typeof e.scope == "string" && R.openNode(N.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (y(B, N.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), B = "") : e.beginScope._multi && (x(e.beginScope, t), B = "")), I = Object.create(e, { parent: { value: I } }), I;
4212
4207
  }
4213
4208
  function C(e, t, n) {
4214
4209
  let i = D(e.endRe, n);
@@ -4225,18 +4220,18 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4225
4220
  if (e.endsWithParent) return C(e.parent, t, n);
4226
4221
  }
4227
4222
  function T(e) {
4228
- return I.matcher.regexIndex === 0 ? (z += e[0], 1) : (W = !0, 0);
4223
+ return I.matcher.regexIndex === 0 ? (B += e[0], 1) : (W = !0, 0);
4229
4224
  }
4230
4225
  function E(e) {
4231
4226
  let t = e[0], n = e.rule, i = new r(n), o = [n.__beforeBegin, n["on:begin"]];
4232
4227
  for (let n of o) if (n && (n(e, i), i.isMatchIgnored)) return T(t);
4233
- return n.skip ? z += t : (n.excludeBegin && (z += t), _(), !n.returnBegin && !n.excludeBegin && (z = t)), S(n, e), n.returnBegin ? 0 : t.length;
4228
+ return n.skip ? B += t : (n.excludeBegin && (B += t), _(), !n.returnBegin && !n.excludeBegin && (B = t)), S(n, e), n.returnBegin ? 0 : t.length;
4234
4229
  }
4235
4230
  function k(e) {
4236
4231
  let t = e[0], r = n.substring(e.index), i = C(I, e, r);
4237
4232
  if (!i) return U9;
4238
4233
  let o = I;
4239
- I.endScope && I.endScope._wrap ? (_(), y(t, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (_(), x(I.endScope, e)) : o.skip ? z += t : (o.returnEnd || o.excludeEnd || (z += t), _(), o.excludeEnd && (z = t));
4234
+ I.endScope && I.endScope._wrap ? (_(), y(t, I.endScope._wrap)) : I.endScope && I.endScope._multi ? (_(), x(I.endScope, e)) : o.skip ? B += t : (o.returnEnd || o.excludeEnd || (B += t), _(), o.excludeEnd && (B = t));
4240
4235
  do
4241
4236
  I.scope && R.closeNode(), !I.skip && !I.subLanguage && (V += I.relevance), I = I.parent;
4242
4237
  while (I !== i.parent);
@@ -4250,9 +4245,9 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4250
4245
  let j = {};
4251
4246
  function M(t, r) {
4252
4247
  let o = r && r[0];
4253
- if (z += t, o == null) return _(), 0;
4248
+ if (B += t, o == null) return _(), 0;
4254
4249
  if (j.type === "begin" && r.type === "end" && j.index === r.index && o === "") {
4255
- if (z += n.slice(r.index, r.index + 1), !s) {
4250
+ if (B += n.slice(r.index, r.index + 1), !s) {
4256
4251
  let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
4257
4252
  throw t.languageName = e, t.badRule = j.rule, t;
4258
4253
  }
@@ -4266,15 +4261,15 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4266
4261
  let e = k(r);
4267
4262
  if (e !== U9) return e;
4268
4263
  }
4269
- if (r.type === "illegal" && o === "") return 1;
4264
+ if (r.type === "illegal" && o === "") return r.index === n.length || (B += "\n"), 1;
4270
4265
  if (U > 1e5 && U > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
4271
- return z += o, o.length;
4266
+ return B += o, o.length;
4272
4267
  }
4273
- let N = B(e);
4268
+ let N = z(e);
4274
4269
  if (!N) throw O9(c.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
4275
4270
  let P = I9(N), F = "", I = o || P, L = {}, R = new u.__emitter(u);
4276
4271
  A();
4277
- let z = "", V = 0, H = 0, U = 0, W = !1;
4272
+ let B = "", V = 0, H = 0, U = 0, W = !1;
4278
4273
  try {
4279
4274
  if (N.__emitTokens) N.__emitTokens(n, R);
4280
4275
  else {
@@ -4334,13 +4329,13 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4334
4329
  }
4335
4330
  function O(e, n) {
4336
4331
  n = n || u.languages || Object.keys(t);
4337
- let r = E(e), i = n.filter(B).filter(H).map((t) => w(t, e, !1));
4332
+ let r = E(e), i = n.filter(z).filter(V).map((t) => w(t, e, !1));
4338
4333
  i.unshift(r);
4339
4334
  let [o, s] = i.sort((e, t) => {
4340
4335
  if (e.relevance !== t.relevance) return t.relevance - e.relevance;
4341
4336
  if (e.language && t.language) {
4342
- if (B(e.language).supersetOf === t.language) return 1;
4343
- if (B(t.language).supersetOf === e.language) return -1;
4337
+ if (z(e.language).supersetOf === t.language) return 1;
4338
+ if (z(t.language).supersetOf === e.language) return -1;
4344
4339
  }
4345
4340
  return 0;
4346
4341
  }), c = o;
@@ -4353,23 +4348,27 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4353
4348
  function A(e) {
4354
4349
  let t = null, n = f(e);
4355
4350
  if (d(n)) return;
4356
- if (K("before:highlightElement", {
4351
+ if (G("before:highlightElement", {
4357
4352
  el: e,
4358
4353
  language: n
4359
- }), e.children.length > 0 && (u.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), u.throwUnescapedHTML)) throw new B9("One of your code blocks includes unescaped HTML.", e.innerHTML);
4354
+ }), e.dataset.highlighted) {
4355
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
4356
+ return;
4357
+ }
4358
+ if (e.children.length > 0 && (u.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), u.throwUnescapedHTML)) throw new B9("One of your code blocks includes unescaped HTML.", e.innerHTML);
4360
4359
  t = e;
4361
4360
  let r = t.textContent, i = n ? _(r, {
4362
4361
  language: n,
4363
4362
  ignoreIllegals: !0
4364
4363
  }) : O(r);
4365
- e.innerHTML = i.value, k(e, n, i.language), e.result = {
4364
+ e.innerHTML = i.value, e.dataset.highlighted = "yes", k(e, n, i.language), e.result = {
4366
4365
  language: i.language,
4367
4366
  re: i.relevance,
4368
4367
  relevance: i.relevance
4369
4368
  }, i.secondBest && (e.secondBest = {
4370
4369
  language: i.secondBest.language,
4371
4370
  relevance: i.secondBest.relevance
4372
- }), K("after:highlightElement", {
4371
+ }), G("after:highlightElement", {
4373
4372
  el: e,
4374
4373
  result: i,
4375
4374
  text: r
@@ -4386,17 +4385,16 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4386
4385
  }
4387
4386
  let P = !1;
4388
4387
  function F() {
4388
+ function e() {
4389
+ F();
4390
+ }
4389
4391
  if (document.readyState === "loading") {
4390
- P = !0;
4392
+ P || window.addEventListener("DOMContentLoaded", e, !1), P = !0;
4391
4393
  return;
4392
4394
  }
4393
4395
  document.querySelectorAll(u.cssSelector).forEach(A);
4394
4396
  }
4395
- function I() {
4396
- P && F();
4397
- }
4398
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", I, !1);
4399
- function L(n, r) {
4397
+ function I(n, r) {
4400
4398
  let i = null;
4401
4399
  try {
4402
4400
  i = r(e);
@@ -4405,48 +4403,48 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4405
4403
  else throw e;
4406
4404
  i = l;
4407
4405
  }
4408
- i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && V(i.aliases, { languageName: n });
4406
+ i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && B(i.aliases, { languageName: n });
4409
4407
  }
4410
- function R(e) {
4408
+ function L(e) {
4411
4409
  delete t[e];
4412
4410
  for (let t of Object.keys(i)) i[t] === e && delete i[t];
4413
4411
  }
4414
- function z() {
4412
+ function R() {
4415
4413
  return Object.keys(t);
4416
4414
  }
4417
- function B(e) {
4415
+ function z(e) {
4418
4416
  return e = (e || "").toLowerCase(), t[e] || t[i[e]];
4419
4417
  }
4420
- function V(e, { languageName: t }) {
4418
+ function B(e, { languageName: t }) {
4421
4419
  typeof e == "string" && (e = [e]), e.forEach((e) => {
4422
4420
  i[e.toLowerCase()] = t;
4423
4421
  });
4424
4422
  }
4425
- function H(e) {
4426
- let t = B(e);
4423
+ function V(e) {
4424
+ let t = z(e);
4427
4425
  return t && !t.disableAutodetect;
4428
4426
  }
4429
- function U(e) {
4427
+ function H(e) {
4430
4428
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
4431
4429
  e["before:highlightBlock"](Object.assign({ block: t.el }, t));
4432
4430
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
4433
4431
  e["after:highlightBlock"](Object.assign({ block: t.el }, t));
4434
4432
  });
4435
4433
  }
4436
- function W(e) {
4437
- U(e), o.push(e);
4434
+ function U(e) {
4435
+ H(e), o.push(e);
4438
4436
  }
4439
- function G(e) {
4437
+ function W(e) {
4440
4438
  let t = o.indexOf(e);
4441
4439
  t !== -1 && o.splice(t, 1);
4442
4440
  }
4443
- function K(e, t) {
4441
+ function G(e, t) {
4444
4442
  let n = e;
4445
4443
  o.forEach(function(e) {
4446
4444
  e[n] && e[n](t);
4447
4445
  });
4448
4446
  }
4449
- function J(e) {
4447
+ function K(e) {
4450
4448
  return A9("10.7.0", "highlightBlock will be removed entirely in v12.0"), A9("10.7.0", "Please use highlightElement now."), A(e);
4451
4449
  }
4452
4450
  for (let t in Object.assign(e, {
@@ -4454,19 +4452,19 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4454
4452
  highlightAuto: O,
4455
4453
  highlightAll: F,
4456
4454
  highlightElement: A,
4457
- highlightBlock: J,
4455
+ highlightBlock: K,
4458
4456
  configure: j,
4459
4457
  initHighlighting: M,
4460
4458
  initHighlightingOnLoad: N,
4461
- registerLanguage: L,
4462
- unregisterLanguage: R,
4463
- listLanguages: z,
4464
- getLanguage: B,
4465
- registerAliases: V,
4466
- autoDetection: H,
4459
+ registerLanguage: I,
4460
+ unregisterLanguage: L,
4461
+ listLanguages: R,
4462
+ getLanguage: z,
4463
+ registerAliases: B,
4464
+ autoDetection: V,
4467
4465
  inherit: H9,
4468
- addPlugin: W,
4469
- removePlugin: G
4466
+ addPlugin: U,
4467
+ removePlugin: W
4470
4468
  }), e.debugMode = function() {
4471
4469
  s = !1;
4472
4470
  }, e.safeMode = function() {
@@ -4481,7 +4479,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4481
4479
  return Object.assign(e, g9), e;
4482
4480
  }, K9 = G9({});
4483
4481
  K9.newInstance = () => G9({}), t.exports = K9, K9.HighlightJS = K9, K9.default = K9;
4484
- })))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS$1 = [
4482
+ })))())).default, IDENT_RE$1 = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS$1 = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS$1 = [
4485
4483
  "true",
4486
4484
  "false",
4487
4485
  "null",
@@ -4525,6 +4523,7 @@ var core_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e,
4525
4523
  "localStorage",
4526
4524
  "sessionStorage",
4527
4525
  "module",
4526
+ "self",
4528
4527
  "global"
4529
4528
  ], BUILT_INS$1 = [].concat(BUILT_IN_GLOBALS$1, TYPES$1, ERROR_TYPES$1);
4530
4529
  function javascript(e) {
@@ -4579,7 +4578,7 @@ function javascript(e) {
4579
4578
  keywords: c,
4580
4579
  contains: []
4581
4580
  }, _ = {
4582
- begin: "html`",
4581
+ begin: ".?html`",
4583
4582
  end: "",
4584
4583
  starts: {
4585
4584
  end: "`",
@@ -4588,7 +4587,7 @@ function javascript(e) {
4588
4587
  subLanguage: "xml"
4589
4588
  }
4590
4589
  }, y = {
4591
- begin: "css`",
4590
+ begin: ".?css`",
4592
4591
  end: "",
4593
4592
  starts: {
4594
4593
  end: "`",
@@ -4597,7 +4596,7 @@ function javascript(e) {
4597
4596
  subLanguage: "css"
4598
4597
  }
4599
4598
  }, x = {
4600
- begin: "gql`",
4599
+ begin: ".?gql`",
4601
4600
  end: "",
4602
4601
  starts: {
4603
4602
  end: "`",
@@ -4664,13 +4663,13 @@ function javascript(e) {
4664
4663
  contains: ["self"].concat(w)
4665
4664
  });
4666
4665
  let T = [].concat(C, g.contains), E = T.concat([{
4667
- begin: /\(/,
4666
+ begin: /(\s*)\(/,
4668
4667
  end: /\)/,
4669
4668
  keywords: c,
4670
4669
  contains: ["self"].concat(T)
4671
4670
  }]), D = {
4672
4671
  className: "params",
4673
- begin: /\(/,
4672
+ begin: /(\s*)\(/,
4674
4673
  end: /\)/,
4675
4674
  excludeBegin: !0,
4676
4675
  excludeEnd: !0,
@@ -4738,8 +4737,9 @@ function javascript(e) {
4738
4737
  match: t.concat(/\b/, N([
4739
4738
  ...BUILT_IN_GLOBALS$1,
4740
4739
  "super",
4741
- "import"
4742
- ]), r, t.lookahead(/\(/)),
4740
+ "import",
4741
+ "await"
4742
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
4743
4743
  className: "title.function",
4744
4744
  relevance: 0
4745
4745
  }, F = {
@@ -4791,7 +4791,7 @@ function javascript(e) {
4791
4791
  PARAMS_CONTAINS: E,
4792
4792
  CLASS_REFERENCE: k
4793
4793
  },
4794
- illegal: /#(?![$_A-z])/,
4794
+ illegal: /#(?![$_A-Za-z])/,
4795
4795
  contains: [
4796
4796
  e.SHEBANG({
4797
4797
  label: "shebang",
@@ -4810,8 +4810,8 @@ function javascript(e) {
4810
4810
  f,
4811
4811
  k,
4812
4812
  {
4813
- className: "attr",
4814
- begin: r + t.lookahead(":"),
4813
+ scope: "attr",
4814
+ match: r + t.lookahead(":"),
4815
4815
  relevance: 0
4816
4816
  },
4817
4817
  R,
@@ -4840,7 +4840,7 @@ function javascript(e) {
4840
4840
  skip: !0
4841
4841
  },
4842
4842
  {
4843
- begin: /\(/,
4843
+ begin: /(\s*)\(/,
4844
4844
  end: /\)/,
4845
4845
  excludeBegin: !0,
4846
4846
  excludeEnd: !0,
@@ -5027,7 +5027,7 @@ function xml(e) {
5027
5027
  starts: {
5028
5028
  end: /<\/style>/,
5029
5029
  returnEnd: !0,
5030
- subLanguage: ["css", "xml"]
5030
+ subLanguage: "css"
5031
5031
  }
5032
5032
  },
5033
5033
  {
@@ -5039,11 +5039,7 @@ function xml(e) {
5039
5039
  starts: {
5040
5040
  end: /<\/script>/,
5041
5041
  returnEnd: !0,
5042
- subLanguage: [
5043
- "javascript",
5044
- "handlebars",
5045
- "xml"
5046
- ]
5042
+ subLanguage: "javascript"
5047
5043
  }
5048
5044
  },
5049
5045
  {
@@ -24084,7 +24080,7 @@ var entities_exports = /* @__PURE__ */ __export({
24084
24080
  t.src_Cc
24085
24081
  ].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
24086
24082
  let r = "[><|]";
24087
- return t.src_pseudo_letter = "(?:(?!" + r + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + r + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + r + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
24083
+ return t.src_pseudo_letter = `(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`, t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = `(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = `(?=$|${r}|${t.src_ZPCc})(?!${e["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`, t.src_path = `(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|` + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + `,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`, t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + `|${t.src_pseudo_letter}{1,63})`, t.src_domain = "(?:" + t.src_xn + `|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`, t.src_host = `(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`, t.tpl_host_fuzzy = "(?:" + t.src_ip4 + `|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`, t.tpl_host_no_ip_fuzzy = `(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`, t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`, t.tpl_email_fuzzy = `(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`, t.tpl_link_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
24088
24084
  }
24089
24085
  function i(e) {
24090
24086
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
@@ -24124,17 +24120,17 @@ var entities_exports = /* @__PURE__ */ __export({
24124
24120
  var _ = {
24125
24121
  "http:": { validate: function(e, t, n) {
24126
24122
  let r = e.slice(t);
24127
- return n.re.http || (n.re.http = RegExp("^\\/\\/" + n.re.src_auth + n.re.src_host_port_strict + n.re.src_path, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
24123
+ return n.re.http || (n.re.http = RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
24128
24124
  } },
24129
24125
  "https:": "http:",
24130
24126
  "ftp:": "http:",
24131
24127
  "//": { validate: function(e, t, n) {
24132
24128
  let r = e.slice(t);
24133
- return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + "(?:localhost|(?:(?:" + n.re.src_domain + ")\\.)+" + n.re.src_domain_root + ")" + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
24129
+ return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + `(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
24134
24130
  } },
24135
24131
  "mailto:": { validate: function(e, t, n) {
24136
24132
  let r = e.slice(t);
24137
- return n.re.mailto || (n.re.mailto = RegExp("^" + n.re.src_email_name + "@" + n.re.src_host_strict, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
24133
+ return n.re.mailto || (n.re.mailto = RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
24138
24134
  } }
24139
24135
  }, y = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", x = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
24140
24136
  function S(e) {
@@ -24158,7 +24154,7 @@ var entities_exports = /* @__PURE__ */ __export({
24158
24154
  let o = [];
24159
24155
  e.__compiled__ = {};
24160
24156
  function f(e, t) {
24161
- throw Error("(LinkifyIt) Invalid schema \"" + e + "\": " + t);
24157
+ throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
24162
24158
  }
24163
24159
  Object.keys(e.__schemas__).forEach(function(t) {
24164
24160
  let n = e.__schemas__[t];
@@ -24185,7 +24181,7 @@ var entities_exports = /* @__PURE__ */ __export({
24185
24181
  let g = Object.keys(e.__compiled__).filter(function(t) {
24186
24182
  return t.length > 0 && e.__compiled__[t];
24187
24183
  }).map(d).join("|");
24188
- e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + g + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + g + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i");
24184
+ e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${g})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${g})`, "ig"), e.re.schema_at_start = RegExp(`^${e.re.schema_search.source}`, "i"), e.re.pretest = RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`, "i");
24189
24185
  }
24190
24186
  function T(e, t, n, r) {
24191
24187
  let i = e.slice(n, r);
@@ -24261,7 +24257,7 @@ var entities_exports = /* @__PURE__ */ __export({
24261
24257
  return e !== n[t - 1];
24262
24258
  }).reverse(), w(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, w(this), this);
24263
24259
  }, E.prototype.normalize = function(e) {
24264
- e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
24260
+ e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
24265
24261
  }, E.prototype.onCompile = function() {}, t.exports = E;
24266
24262
  })), require_punycode = /* @__PURE__ */ __commonJSMin(((e, t) => {
24267
24263
  (function(n) {
@@ -29178,14 +29174,17 @@ function bash(e) {
29178
29174
  begin: /\$\(/,
29179
29175
  end: /\)/,
29180
29176
  contains: [e.BACKSLASH_ESCAPE]
29181
- }, o = {
29177
+ }, o = e.inherit(e.COMMENT(), {
29178
+ match: [/(^|\s)/, /#.*$/],
29179
+ scope: { 2: "comment" }
29180
+ }), s = {
29182
29181
  begin: /<<-?\s*(?=\w+)/,
29183
29182
  starts: { contains: [e.END_SAME_AS_BEGIN({
29184
29183
  begin: /(\w+)/,
29185
29184
  end: /(\w+)/,
29186
29185
  className: "string"
29187
29186
  })] }
29188
- }, s = {
29187
+ }, c = {
29189
29188
  className: "string",
29190
29189
  begin: /"/,
29191
29190
  end: /"/,
@@ -29195,15 +29194,12 @@ function bash(e) {
29195
29194
  i
29196
29195
  ]
29197
29196
  };
29198
- i.contains.push(s);
29199
- let c = {
29200
- className: "",
29201
- begin: /\\"/
29202
- }, l = {
29197
+ i.contains.push(c);
29198
+ let l = { match: /\\"/ }, u = {
29203
29199
  className: "string",
29204
29200
  begin: /'/,
29205
29201
  end: /'/
29206
- }, u = {
29202
+ }, d = { match: /\\'/ }, f = {
29207
29203
  begin: /\$?\(\(/,
29208
29204
  end: /\)\)/,
29209
29205
  contains: [
@@ -29214,7 +29210,7 @@ function bash(e) {
29214
29210
  e.NUMBER_MODE,
29215
29211
  n
29216
29212
  ]
29217
- }, d = e.SHEBANG({
29213
+ }, g = e.SHEBANG({
29218
29214
  binary: `(${[
29219
29215
  "fish",
29220
29216
  "bash",
@@ -29227,18 +29223,19 @@ function bash(e) {
29227
29223
  "scsh"
29228
29224
  ].join("|")})`,
29229
29225
  relevance: 10
29230
- }), f = {
29226
+ }), _ = {
29231
29227
  className: "function",
29232
29228
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
29233
29229
  returnBegin: !0,
29234
29230
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
29235
29231
  relevance: 0
29236
- }, g = [
29232
+ }, y = [
29237
29233
  "if",
29238
29234
  "then",
29239
29235
  "else",
29240
29236
  "elif",
29241
29237
  "fi",
29238
+ "time",
29242
29239
  "for",
29243
29240
  "while",
29244
29241
  "until",
@@ -29247,9 +29244,10 @@ function bash(e) {
29247
29244
  "done",
29248
29245
  "case",
29249
29246
  "esac",
29247
+ "coproc",
29250
29248
  "function",
29251
29249
  "select"
29252
- ], _ = ["true", "false"], y = { match: /(\/[a-z._-]+)+/ }, x = [
29250
+ ], x = ["true", "false"], S = { match: /(\/[a-z._-]+)+/ }, C = [
29253
29251
  "break",
29254
29252
  "cd",
29255
29253
  "continue",
@@ -29268,7 +29266,7 @@ function bash(e) {
29268
29266
  "trap",
29269
29267
  "umask",
29270
29268
  "unset"
29271
- ], S = [
29269
+ ], w = [
29272
29270
  "alias",
29273
29271
  "bind",
29274
29272
  "builtin",
@@ -29286,47 +29284,49 @@ function bash(e) {
29286
29284
  "read",
29287
29285
  "readarray",
29288
29286
  "source",
29287
+ "sudo",
29289
29288
  "type",
29290
29289
  "typeset",
29291
29290
  "ulimit",
29292
29291
  "unalias"
29293
- ], C = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), w = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
29292
+ ], T = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), E = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
29294
29293
  return {
29295
29294
  name: "Bash",
29296
- aliases: ["sh"],
29295
+ aliases: ["sh", "zsh"],
29297
29296
  keywords: {
29298
29297
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
29299
- keyword: g,
29300
- literal: _,
29298
+ keyword: y,
29299
+ literal: x,
29301
29300
  built_in: [
29302
- ...x,
29303
- ...S,
29301
+ ...C,
29302
+ ...w,
29304
29303
  "set",
29305
29304
  "shopt",
29306
- ...C,
29307
- ...w
29305
+ ...T,
29306
+ ...E
29308
29307
  ]
29309
29308
  },
29310
29309
  contains: [
29311
- d,
29310
+ g,
29312
29311
  e.SHEBANG(),
29312
+ _,
29313
29313
  f,
29314
- u,
29315
- e.HASH_COMMENT_MODE,
29316
29314
  o,
29317
- y,
29318
29315
  s,
29316
+ S,
29319
29317
  c,
29320
29318
  l,
29319
+ u,
29320
+ d,
29321
29321
  n
29322
29322
  ]
29323
29323
  };
29324
29324
  }
29325
29325
  function python(e) {
29326
- let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
29326
+ let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
29327
29327
  $pattern: /[A-Za-z]\w+|__\w+__/,
29328
29328
  keyword: r,
29329
- built_in: /* @__PURE__ */ "__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
29329
+ built_in: /* @__PURE__ */ "__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
29330
29330
  literal: [
29331
29331
  "__debug__",
29332
29332
  "Ellipsis",
@@ -29379,7 +29379,7 @@ function python(e) {
29379
29379
  relevance: 10
29380
29380
  },
29381
29381
  {
29382
- begin: /([fF][rR]|[rR][fF]|[fF])'''/,
29382
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
29383
29383
  end: /'''/,
29384
29384
  contains: [
29385
29385
  e.BACKSLASH_ESCAPE,
@@ -29389,7 +29389,7 @@ function python(e) {
29389
29389
  ]
29390
29390
  },
29391
29391
  {
29392
- begin: /([fF][rR]|[rR][fF]|[fF])"""/,
29392
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
29393
29393
  end: /"""/,
29394
29394
  contains: [
29395
29395
  e.BACKSLASH_ESCAPE,
@@ -29417,7 +29417,7 @@ function python(e) {
29417
29417
  end: /"/
29418
29418
  },
29419
29419
  {
29420
- begin: /([fF][rR]|[rR][fF]|[fF])'/,
29420
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
29421
29421
  end: /'/,
29422
29422
  contains: [
29423
29423
  e.BACKSLASH_ESCAPE,
@@ -29426,7 +29426,7 @@ function python(e) {
29426
29426
  ]
29427
29427
  },
29428
29428
  {
29429
- begin: /([fF][rR]|[rR][fF]|[fF])"/,
29429
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
29430
29430
  end: /"/,
29431
29431
  contains: [
29432
29432
  e.BACKSLASH_ESCAPE,
@@ -29497,11 +29497,18 @@ function python(e) {
29497
29497
  contains: [
29498
29498
  o,
29499
29499
  g,
29500
- { begin: /\bself\b/ },
29500
+ {
29501
+ scope: "variable.language",
29502
+ match: /\bself\b/
29503
+ },
29501
29504
  {
29502
29505
  beginKeywords: "if",
29503
29506
  relevance: 0
29504
29507
  },
29508
+ {
29509
+ match: /\bor\b/,
29510
+ scope: "keyword"
29511
+ },
29505
29512
  l,
29506
29513
  _,
29507
29514
  e.HASH_COMMENT_MODE,
@@ -29550,7 +29557,7 @@ function python(e) {
29550
29557
  ]
29551
29558
  };
29552
29559
  }
29553
- var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), LITERALS = [
29560
+ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), LITERALS = [
29554
29561
  "true",
29555
29562
  "false",
29556
29563
  "null",
@@ -29594,6 +29601,7 @@ var IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*", KEYWORDS = /* @__PURE__ */ "as.in.of.
29594
29601
  "localStorage",
29595
29602
  "sessionStorage",
29596
29603
  "module",
29604
+ "self",
29597
29605
  "global"
29598
29606
  ], BUILT_INS = [].concat(BUILT_IN_GLOBALS, TYPES, ERROR_TYPES);
29599
29607
  function javascript$1(e) {
@@ -29648,7 +29656,7 @@ function javascript$1(e) {
29648
29656
  keywords: c,
29649
29657
  contains: []
29650
29658
  }, _ = {
29651
- begin: "html`",
29659
+ begin: ".?html`",
29652
29660
  end: "",
29653
29661
  starts: {
29654
29662
  end: "`",
@@ -29657,7 +29665,7 @@ function javascript$1(e) {
29657
29665
  subLanguage: "xml"
29658
29666
  }
29659
29667
  }, y = {
29660
- begin: "css`",
29668
+ begin: ".?css`",
29661
29669
  end: "",
29662
29670
  starts: {
29663
29671
  end: "`",
@@ -29666,7 +29674,7 @@ function javascript$1(e) {
29666
29674
  subLanguage: "css"
29667
29675
  }
29668
29676
  }, x = {
29669
- begin: "gql`",
29677
+ begin: ".?gql`",
29670
29678
  end: "",
29671
29679
  starts: {
29672
29680
  end: "`",
@@ -29733,13 +29741,13 @@ function javascript$1(e) {
29733
29741
  contains: ["self"].concat(w)
29734
29742
  });
29735
29743
  let T = [].concat(C, g.contains), E = T.concat([{
29736
- begin: /\(/,
29744
+ begin: /(\s*)\(/,
29737
29745
  end: /\)/,
29738
29746
  keywords: c,
29739
29747
  contains: ["self"].concat(T)
29740
29748
  }]), D = {
29741
29749
  className: "params",
29742
- begin: /\(/,
29750
+ begin: /(\s*)\(/,
29743
29751
  end: /\)/,
29744
29752
  excludeBegin: !0,
29745
29753
  excludeEnd: !0,
@@ -29807,8 +29815,9 @@ function javascript$1(e) {
29807
29815
  match: t.concat(/\b/, N([
29808
29816
  ...BUILT_IN_GLOBALS,
29809
29817
  "super",
29810
- "import"
29811
- ]), r, t.lookahead(/\(/)),
29818
+ "import",
29819
+ "await"
29820
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
29812
29821
  className: "title.function",
29813
29822
  relevance: 0
29814
29823
  }, F = {
@@ -29860,7 +29869,7 @@ function javascript$1(e) {
29860
29869
  PARAMS_CONTAINS: E,
29861
29870
  CLASS_REFERENCE: k
29862
29871
  },
29863
- illegal: /#(?![$_A-z])/,
29872
+ illegal: /#(?![$_A-Za-z])/,
29864
29873
  contains: [
29865
29874
  e.SHEBANG({
29866
29875
  label: "shebang",
@@ -29879,8 +29888,8 @@ function javascript$1(e) {
29879
29888
  f,
29880
29889
  k,
29881
29890
  {
29882
- className: "attr",
29883
- begin: r + t.lookahead(":"),
29891
+ scope: "attr",
29892
+ match: r + t.lookahead(":"),
29884
29893
  relevance: 0
29885
29894
  },
29886
29895
  R,
@@ -29909,7 +29918,7 @@ function javascript$1(e) {
29909
29918
  skip: !0
29910
29919
  },
29911
29920
  {
29912
- begin: /\(/,
29921
+ begin: /(\s*)\(/,
29913
29922
  end: /\)/,
29914
29923
  excludeBegin: !0,
29915
29924
  excludeEnd: !0,
@@ -29984,7 +29993,7 @@ function javascript$1(e) {
29984
29993
  };
29985
29994
  }
29986
29995
  function typescript(e) {
29987
- let t = javascript$1(e), n = IDENT_RE, r = [
29996
+ let t = e.regex, n = javascript$1(e), r = IDENT_RE, i = [
29988
29997
  "any",
29989
29998
  "void",
29990
29999
  "number",
@@ -29995,29 +30004,33 @@ function typescript(e) {
29995
30004
  "symbol",
29996
30005
  "bigint",
29997
30006
  "unknown"
29998
- ], i = {
29999
- beginKeywords: "namespace",
30000
- end: /\{/,
30001
- excludeEnd: !0,
30002
- contains: [t.exports.CLASS_REFERENCE]
30003
- }, o = {
30007
+ ], o = {
30008
+ begin: [
30009
+ /namespace/,
30010
+ /\s+/,
30011
+ e.IDENT_RE
30012
+ ],
30013
+ beginScope: {
30014
+ 1: "keyword",
30015
+ 3: "title.class"
30016
+ }
30017
+ }, s = {
30004
30018
  beginKeywords: "interface",
30005
30019
  end: /\{/,
30006
30020
  excludeEnd: !0,
30007
30021
  keywords: {
30008
30022
  keyword: "interface extends",
30009
- built_in: r
30023
+ built_in: i
30010
30024
  },
30011
- contains: [t.exports.CLASS_REFERENCE]
30012
- }, s = {
30025
+ contains: [n.exports.CLASS_REFERENCE]
30026
+ }, c = {
30013
30027
  className: "meta",
30014
30028
  relevance: 10,
30015
30029
  begin: /^\s*['"]use strict['"]/
30016
- }, c = {
30030
+ }, l = {
30017
30031
  $pattern: IDENT_RE,
30018
30032
  keyword: KEYWORDS.concat([
30019
30033
  "type",
30020
- "namespace",
30021
30034
  "interface",
30022
30035
  "public",
30023
30036
  "private",
@@ -30027,26 +30040,34 @@ function typescript(e) {
30027
30040
  "abstract",
30028
30041
  "readonly",
30029
30042
  "enum",
30030
- "override"
30043
+ "override",
30044
+ "satisfies"
30031
30045
  ]),
30032
30046
  literal: LITERALS,
30033
- built_in: BUILT_INS.concat(r),
30047
+ built_in: BUILT_INS.concat(i),
30034
30048
  "variable.language": BUILT_IN_VARIABLES
30035
- }, l = {
30049
+ }, u = {
30036
30050
  className: "meta",
30037
- begin: "@" + n
30038
- }, u = (e, t, n) => {
30051
+ begin: "@" + r
30052
+ }, d = (e, t, n) => {
30039
30053
  let r = e.contains.findIndex((e) => e.label === t);
30040
30054
  if (r === -1) throw Error("can not find mode to replace");
30041
30055
  e.contains.splice(r, 1, n);
30042
30056
  };
30043
- Object.assign(t.keywords, c), t.exports.PARAMS_CONTAINS.push(l), t.contains = t.contains.concat([
30044
- l,
30045
- i,
30046
- o
30047
- ]), u(t, "shebang", e.SHEBANG()), u(t, "use_strict", s);
30048
- let d = t.contains.find((e) => e.label === "func.def");
30049
- return d.relevance = 0, Object.assign(t, {
30057
+ Object.assign(n.keywords, l), n.exports.PARAMS_CONTAINS.push(u);
30058
+ let f = n.contains.find((e) => e.scope === "attr"), g = Object.assign({}, f, { match: t.concat(r, t.lookahead(/\s*\?:/)) });
30059
+ n.exports.PARAMS_CONTAINS.push([
30060
+ n.exports.CLASS_REFERENCE,
30061
+ f,
30062
+ g
30063
+ ]), n.contains = n.contains.concat([
30064
+ u,
30065
+ o,
30066
+ s,
30067
+ g
30068
+ ]), d(n, "shebang", e.SHEBANG()), d(n, "use_strict", c);
30069
+ let _ = n.contains.find((e) => e.label === "func.def");
30070
+ return _.relevance = 0, Object.assign(n, {
30050
30071
  name: "TypeScript",
30051
30072
  aliases: [
30052
30073
  "ts",
@@ -30054,7 +30075,7 @@ function typescript(e) {
30054
30075
  "mts",
30055
30076
  "cts"
30056
30077
  ]
30057
- }), t;
30078
+ }), n;
30058
30079
  }
30059
30080
  var import_markdown_it = /* @__PURE__ */ __toESM(require_markdown_it()), VueMarkdown_default = /* @__PURE__ */ defineComponent({
30060
30081
  name: "VueMarkdown",