@trilogy-data/trilogy-studio-components 0.1.26 → 0.1.28

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.
Files changed (145) hide show
  1. package/dist/AssetAutoImporter-C_7Ms9xe.js +403 -0
  2. package/dist/{ChatCreatorModal-CL-jBnc3.js → ChatCreatorModal-Cd40SvdM.js} +3 -3
  3. package/dist/{ChatModelSelect-Do-VRUFc.js → ChatModelSelect-Cz7axWjP.js} +1 -1
  4. package/dist/{CodeBlock-PT4no49I.js → CodeBlock-Dj-GfTbW.js} +4 -4
  5. package/dist/{CommunityModels-Cmro0hV3.js → CommunityModels-lX2RhHCG.js} +7 -7
  6. package/dist/{ConnectionErrorPopup-FSs7U-Yl.js → ConnectionErrorPopup-7vpqgF0s.js} +1 -1
  7. package/dist/{ConnectionView-COnTTuA4.js → ConnectionView-CZ06qjjE.js} +49 -49
  8. package/dist/{CreateEditorFromDatasourcePopup-snOh1d5h.js → CreateEditorFromDatasourcePopup-DwA938kf.js} +4 -4
  9. package/dist/{Dashboard-BH9ZwMVJ.js → Dashboard-CQsIqWZC.js} +276 -280
  10. package/dist/{DashboardImportSelector-DQSvu9T-.js → DashboardImportSelector-CkqH52FX.js} +2 -2
  11. package/dist/{DashboardMobile-BUPtdN2V.js → DashboardMobile-DWFlel5p.js} +39 -39
  12. package/dist/{DrilldownPane-CBs5ZojS.js → DrilldownPane-BheRHJMs.js} +5 -7
  13. package/dist/{Editor-DQsYpkwl.js → Editor-DQ66Vp6v.js} +105 -103
  14. package/dist/{ErrorMessage-XMn_08gJ.js → ErrorMessage-D5JeF3Iz.js} +4 -4
  15. package/dist/{GlobalChatPanel-DhnOaige.js → GlobalChatPanel-B_s3COHE.js} +20 -21
  16. package/dist/{IDE-HLa8vybk.js → IDE-4-Jg6gsM.js} +200 -203
  17. package/dist/{JobsView-B97HBoIE.js → JobsView-B5NWDUgP.js} +13 -14
  18. package/dist/{LLMChat-CxJcPLEG.js → LLMChat-eKgEc-I3.js} +3 -3
  19. package/dist/{LLMView-C1MUf0c2.js → LLMView-CdTwMLVV.js} +23 -23
  20. package/dist/{LoadingView-s1uznGwG.js → LoadingView-Bu3wLJ7J.js} +2 -2
  21. package/dist/{MarkdownRenderer-BNDuEyG-.js → MarkdownRenderer-B6lqdkgc.js} +531 -430
  22. package/dist/{MobileIDE-BpqXoaMR.js → MobileIDE-CZlg20oa.js} +179 -182
  23. package/dist/{ModelCard-BhN25jaV.js → ModelCard-Bs_d7Jis.js} +12 -13
  24. package/dist/{ModelView-DUDA_PtZ.js → ModelView-BP5yyecx.js} +7 -7
  25. package/dist/PageLoading-DKFeqkmK.js +5937 -0
  26. package/dist/{ResultComponent-CAn_r3BL.js → ResultComponent-BaDheojB.js} +8 -8
  27. package/dist/{Results-BJtlwebY.js → Results-CrpHB101.js} +17 -19
  28. package/dist/{StatusIcon-BylPx2EO.js → StatusIcon-Clfyy-Yn.js} +2 -2
  29. package/dist/{StoreTokenModal-zCSYhfrw.js → StoreTokenModal-CO5hXMs3.js} +2 -2
  30. package/dist/{SymbolsPane-KYSwN9Sv.js → SymbolsPane-XFVErDFb.js} +6 -3
  31. package/dist/{TrilogyEmbedProvider-WA_dlv9e.js → TrilogyEmbedProvider-D3h0gYnX.js} +9 -9
  32. package/dist/{TutorialPage-NRcee6Dx.js → TutorialPage-CMcTYDOV.js} +27 -28
  33. package/dist/{VegaLiteChart-D1slfOUY.js → VegaLiteChart-DX_LbF3g.js} +12131 -10947
  34. package/dist/{WelcomePage-D5mU2x1L.js → WelcomePage-B6E35FUa.js} +5 -5
  35. package/dist/{embedTheme-Bub46ILG.js → _plugin-vue_export-helper-f9Rw-Il4.js} +14 -6
  36. package/dist/assets/{css.worker-9aDGcEUy.js → css.worker-niORQtzO.js} +14 -14
  37. package/dist/assets/{html.worker-D2LKDpnG.js → html.worker-CO5LvJpF.js} +17 -17
  38. package/dist/assets/json.worker-BezHzWUV.js +58 -0
  39. package/dist/assets/{ts.worker-Bz0-EaKK.js → ts.worker-CYhxGg0r.js} +107 -107
  40. package/dist/{results-DTgAKr5j.js → base-DuKnVD-A.js} +216 -45
  41. package/dist/components/FeedbackBanner.vue.d.ts +4 -0
  42. package/dist/components/FeedbackBanner.vue.d.ts.map +1 -0
  43. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts +54 -0
  44. package/dist/components/dashboard/DashboardCreatorIcon.vue.d.ts.map +1 -0
  45. package/dist/components/dashboard/DashboardProvenance.vue.d.ts +30 -0
  46. package/dist/components/dashboard/DashboardProvenance.vue.d.ts.map +1 -0
  47. package/dist/components/dashboard/ReportLayout.vue.d.ts +19 -0
  48. package/dist/components/dashboard/ReportLayout.vue.d.ts.map +1 -0
  49. package/dist/components/editor/Editor.vue.d.ts +3 -3
  50. package/dist/components/editor/EditorCreatorIcon.vue.d.ts +62 -0
  51. package/dist/components/editor/EditorCreatorIcon.vue.d.ts.map +1 -0
  52. package/dist/components/editor/ValidationComponent.vue.d.ts +50 -0
  53. package/dist/components/editor/ValidationComponent.vue.d.ts.map +1 -0
  54. package/dist/components/model/ModelCard.vue.d.ts +3 -3
  55. package/dist/components/sidebar/LLMConnectionList.vue.d.ts.map +1 -1
  56. package/dist/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  57. package/dist/components/tutorial/TutorialPrompt.vue.d.ts +3 -3
  58. package/dist/components/tutorial/TutorialPrompt.vue.d.ts.map +1 -1
  59. package/dist/{remoteWorker-Dkv3TJ0j.js → connections-CWH3zwH2.js} +4544 -4126
  60. package/dist/connections.js +3 -4
  61. package/dist/{cssMode-D4Rzr1Cu.js → cssMode-zpO2ap2B.js} +5 -6
  62. package/dist/dashboard.js +28 -31
  63. package/dist/dashboards/dashboardQueryExecutor.d.ts +9 -0
  64. package/dist/dashboards/dashboardQueryExecutor.d.ts.map +1 -1
  65. package/dist/{dist-CXoL8kXK.js → dist-1z5KURzS.js} +55 -50
  66. package/dist/{dist-DKkuvbPb.js → dist-Bv3D2p5A.js} +20 -18
  67. package/dist/{editor.main-Cl8i7rHY.js → editor.main-BQh6DxDB.js} +33 -33
  68. package/dist/{editorRefinementRuntime-DoP9P5J2.js → editorStore-CiWH_nGN.js} +1692 -575
  69. package/dist/embed.js +2 -2
  70. package/dist/{freemarker2-fW5NBILf.js → freemarker2-DQBqlEXc.js} +1 -1
  71. package/dist/{globalChatRuntime-DWZxeS57.js → globalChatRuntime-DAERmOdu.js} +16 -16
  72. package/dist/{handlebars-dG4w8UUY.js → handlebars-tgYxaM70.js} +1 -1
  73. package/dist/{helpers-BLQAgX3C.js → helpers-C2pARJoZ.js} +34 -35
  74. package/dist/{html-1Dq70BdU.js → html-jJahD3Mi.js} +1 -1
  75. package/dist/{htmlMode--IQmLBeh.js → htmlMode-BA1-8l2e.js} +5 -6
  76. package/dist/{javascript-CTzBM4sF.js → javascript-Cypfo7va.js} +1 -1
  77. package/dist/{jsonMode-DzeJjIEH.js → jsonMode-xJye8PWS.js} +25 -25
  78. package/dist/{liquid-DlHThiki.js → liquid-BGDrv5da.js} +1 -1
  79. package/dist/llm/data/prompts.d.ts +1 -1
  80. package/dist/llm/data/prompts.d.ts.map +1 -1
  81. package/dist/llm/data/trilogySyntax.generated.d.ts +3 -3
  82. package/dist/llm/data/trilogySyntax.generated.d.ts.map +1 -1
  83. package/dist/llm-Wf4Etiu9.js +18493 -0
  84. package/dist/llm.js +2 -3
  85. package/dist/{localStorage-D9uyOFEO.js → localStorage-C3xms-ab.js} +40 -43
  86. package/dist/{lspLanguageFeatures-Cdfs3EKq.js → lspLanguageFeatures-V3e_p9oN.js} +32 -32
  87. package/dist/{mdx-fn3g4PH5.js → mdx-BUR1aImW.js} +1 -1
  88. package/dist/monaco.js +4 -4
  89. package/dist/{python-CCVj0pFt.js → python-YLkl0pc6.js} +1 -1
  90. package/dist/{razor-Cj3flYnk.js → razor-BP8TRMDY.js} +1 -1
  91. package/dist/{reconcile-Dyf4UZmj.js → reconcile-BH_ReGDR.js} +1 -1
  92. package/dist/{remoteStoreSync-Z-yjlYtI.js → remoteStoreSync-B0K8QScO.js} +3 -3
  93. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  94. package/dist/static/test_import.vue.d.ts +4 -0
  95. package/dist/static/test_import.vue.d.ts.map +1 -0
  96. package/dist/stores-DTGQZ4_B.js +2612 -0
  97. package/dist/stores.js +4 -7
  98. package/dist/trilogy-studio-components.css +1 -1
  99. package/dist/{tsMode-GI4xMYAl.js → tsMode-BH9HS_sH.js} +64 -66
  100. package/dist/{typescript-CPibXi3J.js → typescript-BM-ynfk9.js} +1 -1
  101. package/dist/{useChatWithTools-B0HZ_DVh.js → useChatWithTools-BSrzJtYI.js} +11 -11
  102. package/dist/{useDashboard-CdSnPe_6.js → useDashboard-CGeIdDuX.js} +1014 -1022
  103. package/dist/{tabulator_esm-CxLvGDp8.js → useGlobalChatPanel-D9kMZLeF.js} +1729 -711
  104. package/dist/{useResizableDialog-B0ePSts4.js → useResizableDialog-Cs90WJdF.js} +2 -2
  105. package/dist/views/ModelView.vue.d.ts +6 -6
  106. package/dist/views/ModelView.vue.d.ts.map +1 -1
  107. package/dist/views/TutorialPage.vue.d.ts +9 -9
  108. package/dist/views/TutorialPage.vue.d.ts.map +1 -1
  109. package/dist/views.js +192 -194
  110. package/dist/{vocabulary-CKLGILtR.js → vocabulary-DQK5jB7m.js} +3 -1
  111. package/dist/{editor.api2-ClD5pp8H.js → workers-B9Eybl-M.js} +16252 -15926
  112. package/dist/{xml-BNyphceI.js → xml-M5WFPSpA.js} +1 -1
  113. package/dist/{yaml-DE5Vz0PH.js → yaml-CEeFwjz9.js} +1 -1
  114. package/package.json +29 -20
  115. package/dist/AssetAutoImporter-CBzvBaOt.js +0 -405
  116. package/dist/DashboardCreatorInline-CDU7kLy3.js +0 -129
  117. package/dist/DataTable-DoRDynP1.js +0 -365
  118. package/dist/EditorCreatorInline-D6_y1H_h.js +0 -125
  119. package/dist/LoadingButton-OH3frQuO.js +0 -138
  120. package/dist/ModalDialog-D1EOG4rl.js +0 -42
  121. package/dist/ModelCreator-CCdC7EXt.js +0 -253
  122. package/dist/PageLoading-BzniJM0C.js +0 -2669
  123. package/dist/Tooltip-Dihir4zs.js +0 -103
  124. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  125. package/dist/assets/json.worker-CJ5MmO5Q.js +0 -58
  126. package/dist/base-C8IuZWqY.js +0 -164
  127. package/dist/connectionHistoryStorage-DKJHiKJY.js +0 -111
  128. package/dist/connectionHistoryStore-DQeBvStZ.js +0 -61
  129. package/dist/connections-CJSb1TZl.js +0 -229
  130. package/dist/constants-DgFEYN2b.js +0 -7
  131. package/dist/dashboardStore-ppM6nGks.js +0 -641
  132. package/dist/demoSetup-mwa-RDC6.js +0 -2942
  133. package/dist/editorRefinementToolExecutor-CVY3FA7k.js +0 -4624
  134. package/dist/editorStore-BhhmXbi-.js +0 -1019
  135. package/dist/formatting-BbJ5ICgh.js +0 -6
  136. package/dist/llm-BBOVWb-F.js +0 -11967
  137. package/dist/llmStore-DJM2JhzY.js +0 -153
  138. package/dist/monaco.contribution-ikesdolO.js +0 -128
  139. package/dist/stores-BT9hTLny.js +0 -1708
  140. package/dist/trilogy-BroD2Qmp.js +0 -4
  141. package/dist/urlStore-52HG6lsX.js +0 -55
  142. package/dist/useGlobalChatPanel-D_0luajQ.js +0 -85
  143. package/dist/useIsMobile-CNpUQAvk.js +0 -8
  144. package/dist/usePrismHighlight-DVyDiDAL.js +0 -183
  145. package/dist/workers-Br7ThUKL.js +0 -47
@@ -1,21 +1,27 @@
1
- import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { n as t, t as n } from "./usePrismHighlight-DVyDiDAL.js";
1
+ import { t as e } from "./_plugin-vue_export-helper-f9Rw-Il4.js";
2
+ import { o as t, s as n } from "./useGlobalChatPanel-D9kMZLeF.js";
3
3
  import { computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, ref as c } from "vue";
4
- //#region node_modules/.pnpm/dompurify@3.4.12/node_modules/dompurify/dist/purify.es.mjs
4
+ //#region node_modules/.pnpm/dompurify@3.4.16/node_modules/dompurify/dist/purify.es.mjs
5
5
  function l(e, t) {
6
+ this.v = e, this.k = t;
7
+ }
8
+ function u(e, t) {
6
9
  (t == null || t > e.length) && (t = e.length);
7
10
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
8
11
  return r;
9
12
  }
10
- function u(e) {
13
+ function d(e) {
11
14
  if (Array.isArray(e)) return e;
12
15
  }
13
- function d(e, t) {
16
+ function f(e, t) {
14
17
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
15
18
  if (n != null) {
16
19
  var r, i, a, o, s = [], c = !0, l = !1;
17
20
  try {
18
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
21
+ if (a = (n = n.call(e)).next, t === 0) {
22
+ if (Object(n) !== n) return;
23
+ c = !1;
24
+ } else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
19
25
  } catch (e) {
20
26
  l = !0, i = e;
21
27
  } finally {
@@ -28,94 +34,145 @@ function d(e, t) {
28
34
  return s;
29
35
  }
30
36
  }
31
- function ee() {
37
+ function p() {
32
38
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
33
39
  }
34
- function f(e, t) {
35
- return u(e) || d(e, t) || te(e, t) || ee();
40
+ function m(e, t) {
41
+ return d(e) || f(e, t) || ee(e, t) || p();
36
42
  }
37
- function te(e, t) {
43
+ function ee(e, t) {
38
44
  if (e) {
39
- if (typeof e == "string") return l(e, t);
45
+ if (typeof e == "string") return u(e, t);
40
46
  var n = {}.toString.call(e).slice(8, -1);
41
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? l(e, t) : void 0;
47
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? u(e, t) : void 0;
42
48
  }
43
49
  }
44
- var ne = Object.entries, p = Object.setPrototypeOf, m = Object.isFrozen, re = Object.getPrototypeOf, ie = Object.getOwnPropertyDescriptor, h = Object.freeze, g = Object.seal, ae = Object.create, _ = typeof Reflect < "u" && Reflect, v = _.apply, y = _.construct;
45
- h ||= function(e) {
50
+ function h(e) {
51
+ var t, n;
52
+ function r(t, n) {
53
+ try {
54
+ var a = e[t](n), o = a.value, s = o instanceof l;
55
+ Promise.resolve(s ? o.v : o).then(function(n) {
56
+ if (s) {
57
+ var c = t === "return" && o.k ? t : "next";
58
+ if (!o.k || n.done) return r(c, n);
59
+ n = e[c](n).value;
60
+ }
61
+ i(!!a.done, n);
62
+ }, function(e) {
63
+ r("throw", e);
64
+ });
65
+ } catch (e) {
66
+ i(2, e);
67
+ }
68
+ }
69
+ function i(e, i) {
70
+ e === 2 ? t.reject(i) : t.resolve({
71
+ value: i,
72
+ done: e
73
+ }), (t = t.next) ? r(t.key, t.arg) : n = null;
74
+ }
75
+ this._invoke = function(e, i) {
76
+ return new Promise(function(a, o) {
77
+ var s = {
78
+ key: e,
79
+ arg: i,
80
+ resolve: a,
81
+ reject: o,
82
+ next: null
83
+ };
84
+ n ? n = n.next = s : (t = n = s, r(e, i));
85
+ });
86
+ }, typeof e.return != "function" && (this.return = void 0);
87
+ }
88
+ h.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
89
+ return this;
90
+ }, h.prototype.next = function(e) {
91
+ return this._invoke("next", e);
92
+ }, h.prototype.throw = function(e) {
93
+ return this._invoke("throw", e);
94
+ }, h.prototype.return = function(e) {
95
+ return this._invoke("return", e);
96
+ };
97
+ var te = Object.entries, g = Object.setPrototypeOf, ne = Object.isFrozen, re = Object.getPrototypeOf, _ = Object.getOwnPropertyDescriptor, v = Object.freeze, y = Object.seal, ie = Object.create, b = typeof Reflect < "u" && Reflect, x = b.apply, S = b.construct;
98
+ v ||= function(e) {
46
99
  return e;
47
- }, g ||= function(e) {
100
+ }, y ||= function(e) {
48
101
  return e;
49
- }, v ||= function(e, t) {
102
+ }, x ||= function(e, t) {
50
103
  var n = [...arguments].slice(2);
51
104
  return e.apply(t, n);
52
- }, y ||= function(e) {
105
+ }, S ||= function(e) {
53
106
  return new e(...[...arguments].slice(1));
54
107
  };
55
- var b = k(Array.prototype.forEach), oe = k(Array.prototype.lastIndexOf), se = k(Array.prototype.pop), x = k(Array.prototype.push), ce = k(Array.prototype.splice), S = Array.isArray, le = k(String.prototype.toLowerCase), ue = k(String.prototype.toString), de = k(String.prototype.match), fe = k(String.prototype.replace), pe = k(String.prototype.indexOf), me = k(String.prototype.trim), C = k(Number.prototype.toString), he = k(Boolean.prototype.toString), ge = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), w = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), T = k(Object.prototype.hasOwnProperty), E = k(Object.prototype.toString), D = k(RegExp.prototype.test), O = _e(TypeError);
108
+ var C = k(Array.prototype.forEach);
109
+ Array.prototype.indexOf;
110
+ var ae = k(Array.prototype.lastIndexOf), oe = k(Array.prototype.pop), se = k(Array.prototype.push);
111
+ Array.prototype.slice;
112
+ var ce = k(Array.prototype.splice), le = Array.isArray, ue = k(String.prototype.toLowerCase), de = k(String.prototype.toString), fe = k(String.prototype.match), pe = k(String.prototype.replace), me = k(String.prototype.indexOf), he = k(String.prototype.trim), ge = k(Number.prototype.toString), w = k(Boolean.prototype.toString), T = typeof BigInt > "u" ? null : k(BigInt.prototype.toString), _e = typeof Symbol > "u" ? null : k(Symbol.prototype.toString), E = k(Object.prototype.hasOwnProperty), ve = k(Object.prototype.toString), D = k(RegExp.prototype.test), O = ye(TypeError);
56
113
  function k(e) {
57
114
  return function(t) {
58
115
  t instanceof RegExp && (t.lastIndex = 0);
59
116
  var n = [...arguments].slice(1);
60
- return v(e, t, n);
117
+ return x(e, t, n);
61
118
  };
62
119
  }
63
- function _e(e) {
120
+ function ye(e) {
64
121
  return function() {
65
- return y(e, [...arguments]);
122
+ return S(e, [...arguments]);
66
123
  };
67
124
  }
68
125
  function A(e, t) {
69
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : le;
70
- if (p && p(e, null), !S(t)) return e;
126
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ue;
127
+ if (g && g(e, null), !le(t)) return e;
71
128
  let r = t.length;
72
129
  for (; r--;) {
73
130
  let i = t[r];
74
131
  if (typeof i == "string") {
75
132
  let e = n(i);
76
- e !== i && (m(t) || (t[r] = e), i = e);
133
+ e !== i && (ne(t) || (t[r] = e), i = e);
77
134
  }
78
135
  e[i] = !0;
79
136
  }
80
137
  return e;
81
138
  }
82
- function ve(e) {
83
- for (let t = 0; t < e.length; t++) T(e, t) || (e[t] = null);
139
+ function j(e) {
140
+ for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
84
141
  return e;
85
142
  }
86
- function j(e) {
87
- let t = ae(null);
88
- for (let r of ne(e)) {
89
- var n = f(r, 2);
143
+ function M(e) {
144
+ let t = ie(null);
145
+ for (let r of te(e)) {
146
+ var n = m(r, 2);
90
147
  let i = n[0], a = n[1];
91
- T(e, i) && (S(a) ? t[i] = ve(a) : a && typeof a == "object" && a.constructor === Object ? t[i] = j(a) : t[i] = a);
148
+ E(e, i) && (t[i] = le(a) ? j(a) : a && typeof a == "object" && a.constructor === Object ? M(a) : a);
92
149
  }
93
150
  return t;
94
151
  }
95
- function ye(e) {
152
+ function be(e) {
96
153
  switch (typeof e) {
97
154
  case "string": return e;
98
- case "number": return C(e);
99
- case "boolean": return he(e);
100
- case "bigint": return ge ? ge(e) : "0";
101
- case "symbol": return w ? w(e) : "Symbol()";
102
- case "undefined": return E(e);
155
+ case "number": return ge(e);
156
+ case "boolean": return w(e);
157
+ case "bigint": return T ? T(e) : "0";
158
+ case "symbol": return _e ? _e(e) : "Symbol()";
159
+ case "undefined": return ve(e);
103
160
  case "function":
104
161
  case "object": {
105
- if (e === null) return E(e);
106
- let t = e, n = M(t, "toString");
162
+ if (e === null) return ve(e);
163
+ let t = e, n = N(t, "toString");
107
164
  if (typeof n == "function") {
108
165
  let e = n(t);
109
- return typeof e == "string" ? e : E(e);
166
+ return typeof e == "string" ? e : ve(e);
110
167
  }
111
- return E(e);
168
+ return ve(e);
112
169
  }
113
- default: return E(e);
170
+ default: return ve(e);
114
171
  }
115
172
  }
116
- function M(e, t) {
173
+ function N(e, t) {
117
174
  for (; e !== null;) {
118
- let n = ie(e, t);
175
+ let n = _(e, t);
119
176
  if (n) {
120
177
  if (n.get) return k(n.get);
121
178
  if (typeof n.value == "function") return k(n.value);
@@ -127,14 +184,14 @@ function M(e, t) {
127
184
  }
128
185
  return n;
129
186
  }
130
- function be(e) {
187
+ function xe(e) {
131
188
  try {
132
189
  return D(e, ""), !0;
133
190
  } catch {
134
191
  return !1;
135
192
  }
136
193
  }
137
- var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Se = h(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Ce = h([
194
+ var Se = v(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), Ce = v(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), we = v([
138
195
  "feBlend",
139
196
  "feColorMatrix",
140
197
  "feComponentTransfer",
@@ -160,7 +217,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
160
217
  "feSpotLight",
161
218
  "feTile",
162
219
  "feTurbulence"
163
- ]), we = h([
220
+ ]), Te = v([
164
221
  "animate",
165
222
  "color-profile",
166
223
  "cursor",
@@ -183,7 +240,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
183
240
  "solidcolor",
184
241
  "unknown",
185
242
  "use"
186
- ]), Te = h(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), Ee = h([
243
+ ]), Ee = v(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), De = v([
187
244
  "maction",
188
245
  "maligngroup",
189
246
  "malignmark",
@@ -199,13 +256,13 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
199
256
  "annotation-xml",
200
257
  "mprescripts",
201
258
  "none"
202
- ]), De = h(["#text"]), Oe = h(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), ke = h(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Ae = h(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), je = h([
259
+ ]), Oe = v(["#text"]), ke = v(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Ae = v(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), je = v(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Me = v([
203
260
  "xlink:href",
204
261
  "xml:id",
205
262
  "xlink:title",
206
263
  "xml:space",
207
264
  "xmlns:xlink"
208
- ]), Me = g(/{{[\w\W]*|^[\w\W]*}}/g), Ne = g(/<%[\w\W]*|^[\w\W]*%>/g), Pe = g(/\${[\w\W]*/g), Fe = g(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ie = g(/^aria-[\-\w]+$/), Le = g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Re = g(/^(?:\w+script|data):/i), ze = g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Be = g(/^html$/i), Ve = g(/^[a-z][.\w]*(-[.\w]+)+$/i), He = g(/<[/\w!]/g), Ue = g(/<[/\w]/g), We = g(/<\/no(script|embed|frames)/i), Ge = g(/\/>/i), N = {
265
+ ]), Ne = y(/{{[\w\W]*|^[\w\W]*}}/g), Pe = y(/<%[\w\W]*|^[\w\W]*%>/g), Fe = y(/\${[\w\W]*/g), Ie = y(/^data-[\-\w.\u00B7-\uFFFF]+$/), Le = y(/^aria-[\-\w]+$/), Re = y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), ze = y(/^(?:\w+script|data):/i), Be = y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ve = y(/^html$/i), He = y(/^[a-z][.\w]*(-[.\w]+)+$/i), Ue = y(/<[/\w!]/g), We = y(/<[/\w]/g), Ge = y(/<\/no(script|embed|frames)/i), Ke = y(/\/>/i), P = {
209
266
  element: 1,
210
267
  attribute: 2,
211
268
  text: 3,
@@ -218,9 +275,23 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
218
275
  documentType: 10,
219
276
  documentFragment: 11,
220
277
  notation: 12
221
- }, Ke = function() {
278
+ }, qe = [
279
+ "style",
280
+ "script",
281
+ "xmp",
282
+ "iframe",
283
+ "noembed",
284
+ "noframes",
285
+ "plaintext",
286
+ "noscript"
287
+ ], Je = v(A({}, qe)), Ye = function() {
288
+ let e = {};
289
+ return C(qe, (t) => {
290
+ e[t] = y(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
291
+ }), v(e);
292
+ }(), Xe = function() {
222
293
  return typeof window > "u" ? null : window;
223
- }, qe = function(e, t) {
294
+ }, Ze = function(e, t) {
224
295
  if (typeof e != "object" || typeof e.createPolicy != "function") return null;
225
296
  let n = null, r = "data-tt-policy-suffix";
226
297
  t && t.hasAttribute(r) && (n = t.getAttribute(r));
@@ -237,7 +308,7 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
237
308
  } catch {
238
309
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
239
310
  }
240
- }, Je = function() {
311
+ }, Qe = function() {
241
312
  return {
242
313
  afterSanitizeAttributes: [],
243
314
  afterSanitizeElements: [],
@@ -249,53 +320,60 @@ var xe = h(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
249
320
  uponSanitizeElement: [],
250
321
  uponSanitizeShadowNode: []
251
322
  };
252
- }, P = function(e, t, n, r) {
253
- return T(e, t) && S(e[t]) ? A(r.base ? j(r.base) : {}, e[t], r.transform) : n;
323
+ }, F = function(e, t, n, r) {
324
+ return E(e, t) && le(e[t]) ? A(r.base ? M(r.base) : {}, e[t], r.transform) : n;
325
+ }, $e = function(e, t, n) {
326
+ let r = E(e, t) ? e[t] : void 0;
327
+ return r && typeof r == "object" ? M(r) : n();
254
328
  };
255
- function Ye() {
256
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke(), t = (e) => Ye(e);
257
- if (t.version = "3.4.12", t.removed = [], !e || !e.document || e.document.nodeType !== N.document || !e.Element) return t.isSupported = !1, t;
329
+ function et() {
330
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe(), t = (e) => et(e);
331
+ if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== P.document || !e.Element) return t.isSupported = !1, t;
258
332
  let n = e.document, r = n, i = r.currentScript;
259
333
  e.DocumentFragment;
260
334
  let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
261
335
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
262
- let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = M(d, "cloneNode"), f = M(d, "remove"), te = M(d, "nextSibling"), p = M(d, "childNodes"), m = M(d, "parentNode"), re = M(d, "shadowRoot"), ie = M(d, "attributes"), _ = o && o.prototype ? M(o.prototype, "nodeType") : null, v = o && o.prototype ? M(o.prototype, "nodeName") : null;
336
+ let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = N(d, "cloneNode"), p = N(d, "remove"), m = N(d, "removeAttributeNode"), ee = N(d, "nextSibling"), h = N(d, "childNodes"), g = N(d, "parentNode"), ne = N(d, "shadowRoot"), re = N(d, "attributes"), _ = o && o.prototype ? N(o.prototype, "nodeType") : null, b = o && o.prototype ? N(o.prototype, "nodeName") : null, x = o && o.prototype ? N(o.prototype, "ownerDocument") : null, S = function(e) {
337
+ return _ ? _(e) : e.nodeType;
338
+ }, ge = function(e) {
339
+ return b ? b(e) : e.nodeName;
340
+ };
263
341
  if (typeof a == "function") {
264
342
  let e = n.createElement("template");
265
343
  e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
266
344
  }
267
- let y, C = "", he, ge = !1, w = 0, E = function() {
268
- if (w > 0) throw O("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
269
- }, k = function(e) {
270
- E(), w++;
345
+ let w, T = "", _e, ve = !1, k = 0, ye = function() {
346
+ if (k > 0) throw O("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
347
+ }, j = function(e) {
348
+ ye(), k++;
271
349
  try {
272
- return y.createHTML(e);
350
+ return w.createHTML(e);
273
351
  } finally {
274
- w--;
352
+ k--;
275
353
  }
276
- }, _e = function(e) {
277
- E(), w++;
354
+ }, qe = function(e) {
355
+ ye(), k++;
278
356
  try {
279
- return y.createScriptURL(e);
357
+ return w.createScriptURL(e);
280
358
  } finally {
281
- w--;
359
+ k--;
282
360
  }
283
- }, ve = function() {
284
- return ge ||= (he = qe(u, i), !0), he;
285
- }, Xe = n, Ze = Xe.implementation, Qe = Xe.createNodeIterator, $e = Xe.createDocumentFragment, et = Xe.getElementsByTagName, tt = r.importNode, F = Je();
286
- t.isSupported = typeof ne == "function" && typeof m == "function" && Ze && Ze.createHTMLDocument !== void 0;
287
- let nt = Me, rt = Ne, it = Pe, at = Fe, ot = Ie, st = Re, I = ze, ct = Ve, lt = Le, L = null, ut = A({}, [
288
- ...xe,
361
+ }, tt = function() {
362
+ return ve ||= (_e = Ze(u, i), !0), _e;
363
+ }, nt = n, I = nt.implementation, rt = nt.createNodeIterator, it = nt.createDocumentFragment, at = nt.getElementsByTagName, ot = r.importNode, L = Qe();
364
+ t.isSupported = typeof te == "function" && typeof g == "function" && I && I.createHTMLDocument !== void 0;
365
+ let st = Ne, ct = Pe, lt = Fe, R = Ie, ut = Le, dt = ze, ft = Be, pt = He, mt = Re, z = null, ht = A({}, [
289
366
  ...Se,
290
367
  ...Ce,
291
- ...Te,
292
- ...De
293
- ]), R = null, dt = A({}, [
294
- ...Oe,
368
+ ...we,
369
+ ...Ee,
370
+ ...Oe
371
+ ]), B = null, gt = A({}, [
295
372
  ...ke,
296
373
  ...Ae,
297
- ...je
298
- ]), z = Object.seal(ae(null, {
374
+ ...je,
375
+ ...Me
376
+ ]), V = Object.seal(ie(null, {
299
377
  tagNameCheck: {
300
378
  writable: !0,
301
379
  configurable: !1,
@@ -314,7 +392,7 @@ function Ye() {
314
392
  enumerable: !0,
315
393
  value: !1
316
394
  }
317
- })), B = null, ft = null, V = Object.seal(ae(null, {
395
+ })), _t = null, vt = null, H = Object.seal(ie(null, {
318
396
  tagCheck: {
319
397
  writable: !0,
320
398
  configurable: !1,
@@ -327,14 +405,14 @@ function Ye() {
327
405
  enumerable: !0,
328
406
  value: null
329
407
  }
330
- })), pt = !0, mt = !0, ht = !1, gt = !0, H = !1, U = !0, W = !1, _t = !1, vt = null, yt = null, bt = !1, G = !1, xt = !1, St = !1, Ct = !0, wt = !1, Tt = "user-content-", K = !0, Et = !1, q = {}, J = null, Dt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ot = null, kt = A({}, [
408
+ })), yt = !0, bt = !0, xt = !1, St = !0, U = !1, W = !0, G = !1, Ct = !1, wt = null, Tt = null, Et = !1, K = !1, Dt = !1, Ot = !1, kt = !0, At = !1, jt = "user-content-", Mt = !0, Nt = !1, q = {}, J = null, Pt = A({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Ft = null, It = A({}, [
331
409
  "audio",
332
410
  "video",
333
411
  "img",
334
412
  "source",
335
413
  "image",
336
414
  "track"
337
- ]), At = null, jt = A({}, [
415
+ ]), Lt = null, Rt = A({}, [
338
416
  "alt",
339
417
  "class",
340
418
  "for",
@@ -349,193 +427,207 @@ function Ye() {
349
427
  "value",
350
428
  "style",
351
429
  "xmlns"
352
- ]), Mt = "http://www.w3.org/1998/Math/MathML", Nt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Pt = Y, Ft = !1, It = null, Lt = A({}, [
353
- Mt,
354
- Nt,
430
+ ]), zt = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", Y = "http://www.w3.org/1999/xhtml", Vt = Y, Ht = !1, Ut = null, Wt = A({}, [
431
+ zt,
432
+ Bt,
355
433
  Y
356
- ], ue), Rt = h([
434
+ ], de), Gt = v([
357
435
  "mi",
358
436
  "mo",
359
437
  "mn",
360
438
  "ms",
361
439
  "mtext"
362
- ]), zt = A({}, Rt), Bt = h(["annotation-xml"]), Vt = A({}, Bt), Ht = A({}, [
440
+ ]), Kt = A({}, Gt), qt = v(["annotation-xml"]), Jt = A({}, qt), Yt = A({}, [
363
441
  "title",
364
442
  "style",
365
443
  "font",
366
444
  "a",
367
445
  "script"
368
- ]), Ut = null, Wt = ["application/xhtml+xml", "text/html"], X = null, Gt = null, Kt = n.createElement("form"), qt = function(e) {
446
+ ]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], X = null, Qt = null, $t = n.createElement("form"), en = function(e) {
369
447
  return e instanceof RegExp || e instanceof Function;
370
- }, Jt = function() {
448
+ }, tn = function() {
371
449
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
372
- if (Gt && Gt === e) return;
373
- (!e || typeof e != "object") && (e = {}), e = j(e), Ut = Wt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Ut === "application/xhtml+xml" ? ue : le, L = P(e, "ALLOWED_TAGS", ut, { transform: X }), R = P(e, "ALLOWED_ATTR", dt, { transform: X }), It = P(e, "ALLOWED_NAMESPACES", Lt, { transform: ue }), At = P(e, "ADD_URI_SAFE_ATTR", jt, {
450
+ if (Qt && Qt === e) return;
451
+ (!e || typeof e != "object") && (e = {}), e = M(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, X = Xt === "application/xhtml+xml" ? de : ue, z = F(e, "ALLOWED_TAGS", ht, { transform: X }), B = F(e, "ALLOWED_ATTR", gt, { transform: X }), Ut = F(e, "ALLOWED_NAMESPACES", Wt, { transform: de }), Lt = F(e, "ADD_URI_SAFE_ATTR", Rt, {
374
452
  transform: X,
375
- base: jt
376
- }), Ot = P(e, "ADD_DATA_URI_TAGS", kt, {
453
+ base: Rt
454
+ }), Ft = F(e, "ADD_DATA_URI_TAGS", It, {
377
455
  transform: X,
378
- base: kt
379
- }), J = P(e, "FORBID_CONTENTS", Dt, { transform: X }), B = P(e, "FORBID_TAGS", j({}), { transform: X }), ft = P(e, "FORBID_ATTR", j({}), { transform: X }), q = T(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? j(e.USE_PROFILES) : e.USE_PROFILES : !1, pt = e.ALLOW_ARIA_ATTR !== !1, mt = e.ALLOW_DATA_ATTR !== !1, ht = e.ALLOW_UNKNOWN_PROTOCOLS || !1, gt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = e.SAFE_FOR_TEMPLATES || !1, U = e.SAFE_FOR_XML !== !1, W = e.WHOLE_DOCUMENT || !1, G = e.RETURN_DOM || !1, xt = e.RETURN_DOM_FRAGMENT || !1, St = e.RETURN_TRUSTED_TYPE || !1, bt = e.FORCE_BODY || !1, Ct = e.SANITIZE_DOM !== !1, wt = e.SANITIZE_NAMED_PROPS || !1, K = e.KEEP_CONTENT !== !1, Et = e.IN_PLACE || !1, lt = be(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Le, Pt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, zt = T(e, "MATHML_TEXT_INTEGRATION_POINTS") && e.MATHML_TEXT_INTEGRATION_POINTS && typeof e.MATHML_TEXT_INTEGRATION_POINTS == "object" ? j(e.MATHML_TEXT_INTEGRATION_POINTS) : A({}, Rt), Vt = T(e, "HTML_INTEGRATION_POINTS") && e.HTML_INTEGRATION_POINTS && typeof e.HTML_INTEGRATION_POINTS == "object" ? j(e.HTML_INTEGRATION_POINTS) : A({}, Bt);
380
- let t = T(e, "CUSTOM_ELEMENT_HANDLING") && e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING == "object" ? j(e.CUSTOM_ELEMENT_HANDLING) : ae(null);
381
- if (z = ae(null), T(t, "tagNameCheck") && qt(t.tagNameCheck) && (z.tagNameCheck = t.tagNameCheck), T(t, "attributeNameCheck") && qt(t.attributeNameCheck) && (z.attributeNameCheck = t.attributeNameCheck), T(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), g(z), H && (mt = !1), xt && (G = !0), q && (L = A({}, De), R = ae(null), q.html === !0 && (A(L, xe), A(R, Oe)), q.svg === !0 && (A(L, Se), A(R, ke), A(R, je)), q.svgFilters === !0 && (A(L, Ce), A(R, ke), A(R, je)), q.mathMl === !0 && (A(L, Te), A(R, Ae), A(R, je))), V.tagCheck = null, V.attributeCheck = null, T(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? V.tagCheck = e.ADD_TAGS : S(e.ADD_TAGS) && (L === ut && (L = j(L)), A(L, e.ADD_TAGS, X))), T(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? V.attributeCheck = e.ADD_ATTR : S(e.ADD_ATTR) && (R === dt && (R = j(R)), A(R, e.ADD_ATTR, X))), T(e, "ADD_URI_SAFE_ATTR") && S(e.ADD_URI_SAFE_ATTR) && A(At, e.ADD_URI_SAFE_ATTR, X), T(e, "FORBID_CONTENTS") && S(e.FORBID_CONTENTS) && (J === Dt && (J = j(J)), A(J, e.FORBID_CONTENTS, X)), T(e, "ADD_FORBID_CONTENTS") && S(e.ADD_FORBID_CONTENTS) && (J === Dt && (J = j(J)), A(J, e.ADD_FORBID_CONTENTS, X)), K && (L["#text"] = !0), W && A(L, [
456
+ base: It
457
+ }), J = F(e, "FORBID_CONTENTS", Pt, { transform: X }), _t = F(e, "FORBID_TAGS", M({}), { transform: X }), vt = F(e, "FORBID_ATTR", M({}), { transform: X }), q = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? M(e.USE_PROFILES) : e.USE_PROFILES : !1, yt = e.ALLOW_ARIA_ATTR !== !1, bt = e.ALLOW_DATA_ATTR !== !1, xt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, St = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, W = e.SAFE_FOR_XML !== !1, G = e.WHOLE_DOCUMENT || !1, K = e.RETURN_DOM || !1, Dt = e.RETURN_DOM_FRAGMENT || !1, Ot = e.RETURN_TRUSTED_TYPE || !1, Et = e.FORCE_BODY || !1, kt = e.SANITIZE_DOM !== !1, At = e.SANITIZE_NAMED_PROPS || !1, Mt = e.KEEP_CONTENT !== !1, Nt = e.IN_PLACE || !1, mt = xe(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Re, Vt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Y, Kt = $e(e, "MATHML_TEXT_INTEGRATION_POINTS", () => A({}, Gt)), Jt = $e(e, "HTML_INTEGRATION_POINTS", () => A({}, qt));
458
+ let t = $e(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
459
+ if (V = ie(null), E(t, "tagNameCheck") && en(t.tagNameCheck) && (V.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && en(t.attributeNameCheck) && (V.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), y(V), U && (bt = !1), Dt && (K = !0), q && (z = A({}, Oe), B = ie(null), q.html === !0 && (A(z, Se), A(B, ke)), q.svg === !0 && (A(z, Ce), A(B, Ae), A(B, Me)), q.svgFilters === !0 && (A(z, we), A(B, Ae), A(B, Me)), q.mathMl === !0 && (A(z, Ee), A(B, je), A(B, Me))), H.tagCheck = null, H.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? H.tagCheck = e.ADD_TAGS : le(e.ADD_TAGS) && (z === ht && (z = M(z)), A(z, e.ADD_TAGS, X))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? H.attributeCheck = e.ADD_ATTR : le(e.ADD_ATTR) && (B === gt && (B = M(B)), A(B, e.ADD_ATTR, X))), E(e, "ADD_FORBID_CONTENTS") && le(e.ADD_FORBID_CONTENTS) && (J === Pt && (J = M(J)), A(J, e.ADD_FORBID_CONTENTS, X)), Mt && (z["#text"] = !0), G && A(z, [
382
460
  "html",
383
461
  "head",
384
462
  "body"
385
- ]), L.table && (A(L, ["tbody"]), delete B.tbody), e.TRUSTED_TYPES_POLICY) {
463
+ ]), z.table && (A(z, ["tbody"]), delete _t.tbody), e.TRUSTED_TYPES_POLICY) {
386
464
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
387
465
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw O("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
388
- let t = y;
389
- y = e.TRUSTED_TYPES_POLICY;
466
+ let t = w;
467
+ w = e.TRUSTED_TYPES_POLICY;
390
468
  try {
391
- C = k("");
469
+ T = j("");
392
470
  } catch (e) {
393
- throw y = t, e;
471
+ throw w = t, e;
394
472
  }
395
- } else e.TRUSTED_TYPES_POLICY === null ? (y = void 0, C = "") : (y === void 0 && (y = ve()), y && typeof C == "string" && (C = k("")));
396
- h && h(e), Gt = e;
397
- }, Yt = A({}, [
398
- ...Se,
473
+ } else e.TRUSTED_TYPES_POLICY === null ? (w = void 0, T = "") : (w === void 0 && (w = tt()), w && typeof T == "string" && (T = j("")));
474
+ v && v(e), Qt = e;
475
+ }, nn = A({}, [
399
476
  ...Ce,
400
- ...we
401
- ]), Xt = A({}, [...Te, ...Ee]), Zt = function(e, t, n) {
402
- return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === Mt ? e === "svg" && (n === "annotation-xml" || zt[n]) : !!Yt[e];
403
- }, Qt = function(e, t, n) {
404
- return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Nt ? e === "math" && Vt[n] : !!Xt[e];
405
- }, $t = function(e, t, n) {
406
- return t.namespaceURI === Nt && !Vt[n] || t.namespaceURI === Mt && !zt[n] ? !1 : !Xt[e] && (Ht[e] || !Yt[e]);
407
- }, en = function(e) {
408
- let t = m(e);
477
+ ...we,
478
+ ...Te
479
+ ]), rn = A({}, [...Ee, ...De]), an = function(e, t, n) {
480
+ return t.namespaceURI === Y ? e === "svg" : t.namespaceURI === zt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
481
+ }, on = function(e, t, n) {
482
+ return t.namespaceURI === Y ? e === "math" : t.namespaceURI === Bt ? e === "math" && Jt[n] : !!rn[e];
483
+ }, sn = function(e, t, n) {
484
+ return t.namespaceURI === Bt && !Jt[n] || t.namespaceURI === zt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
485
+ }, cn = function(e) {
486
+ let t = g(e);
409
487
  (!t || !t.tagName) && (t = {
410
- namespaceURI: Pt,
488
+ namespaceURI: Vt,
411
489
  tagName: "template"
412
490
  });
413
- let n = le(e.tagName), r = le(t.tagName);
414
- return It[e.namespaceURI] ? e.namespaceURI === Nt ? Zt(n, t, r) : e.namespaceURI === Mt ? Qt(n, t, r) : e.namespaceURI === Y ? $t(n, t, r) : !!(Ut === "application/xhtml+xml" && It[e.namespaceURI]) : !1;
491
+ let n = ue(e.tagName), r = ue(t.tagName);
492
+ return Ut[e.namespaceURI] ? e.namespaceURI === Bt ? an(n, t, r) : e.namespaceURI === zt ? on(n, t, r) : e.namespaceURI === Y ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
415
493
  }, Z = function(e) {
416
- x(t.removed, { element: e });
494
+ se(t.removed, { element: e });
417
495
  try {
418
- m(e).removeChild(e);
496
+ g(e).removeChild(e);
419
497
  } catch {
420
- if (f(e), !m(e)) throw O("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
498
+ if (p(e), !g(e)) throw O("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
421
499
  }
422
- }, tn = function(e) {
423
- rn(e);
424
- let t = p(e);
500
+ }, ln = function(e, t, n) {
501
+ try {
502
+ m(e, t);
503
+ } catch {
504
+ try {
505
+ e.removeAttribute(n);
506
+ } catch {}
507
+ }
508
+ }, un = function(e) {
509
+ fn(e);
510
+ let t = h(e);
425
511
  if (t) {
426
512
  let e = [];
427
- b(t, (t) => {
428
- x(e, t);
429
- }), b(e, (e) => {
513
+ C(t, (t) => {
514
+ se(e, t);
515
+ }), C(e, (e) => {
430
516
  try {
431
- f(e);
517
+ p(e);
432
518
  } catch {}
433
519
  });
434
520
  }
435
- let n = ie(e);
521
+ let n = re(e);
436
522
  if (n) for (let t = n.length - 1; t >= 0; --t) {
437
523
  let r = n[t], i = r && r.name;
438
- if (typeof i == "string") try {
439
- e.removeAttribute(i);
440
- } catch {}
524
+ typeof i == "string" && ln(e, r, i);
525
+ }
526
+ }, Q = function(e, n, r) {
527
+ if (!r) try {
528
+ r = n.getAttributeNode(e);
529
+ } catch {
530
+ r = null;
441
531
  }
442
- }, Q = function(e, n) {
532
+ se(t.removed, {
533
+ attribute: r || null,
534
+ from: n
535
+ });
443
536
  try {
444
- x(t.removed, {
445
- attribute: n.getAttributeNode(e),
446
- from: n
447
- });
537
+ r ? m(n, r) : n.removeAttribute(e);
448
538
  } catch {
449
- x(t.removed, {
450
- attribute: null,
451
- from: n
452
- });
539
+ try {
540
+ n.removeAttribute(e);
541
+ } catch {}
453
542
  }
454
- if (n.removeAttribute(e), e === "is") if (G || xt) try {
455
- Z(n);
456
- } catch {}
457
- else try {
458
- n.setAttribute(e, "");
459
- } catch {}
460
- }, nn = function(e) {
461
- let t = ie(e);
543
+ if (e === "is") {
544
+ if (K || Dt) try {
545
+ Z(n);
546
+ } catch {}
547
+ else try {
548
+ n.setAttribute(e, "");
549
+ } catch {}
550
+ }
551
+ }, dn = function(e) {
552
+ let t = re(e);
462
553
  if (t) for (let n = t.length - 1; n >= 0; --n) {
463
554
  let r = t[n], i = r && r.name;
464
- if (!(typeof i != "string" || R[X(i)])) try {
465
- e.removeAttribute(i);
466
- } catch {}
555
+ typeof i != "string" || B[X(i)] || ln(e, r, i);
467
556
  }
468
- }, rn = function(e) {
557
+ }, fn = function(e) {
469
558
  let t = [e];
470
559
  for (; t.length > 0;) {
471
560
  let e = t.pop();
472
- (_ ? _(e) : e.nodeType) === N.element && nn(e);
473
- let n = p(e);
561
+ S(e) === P.element && dn(e);
562
+ let n = h(e);
474
563
  if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
475
564
  }
476
- }, an = function(e) {
477
- if (!U) return;
565
+ }, pn = function(e, t) {
566
+ return W ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
567
+ }, mn = function(e) {
568
+ if (!W) return;
478
569
  let t = [e];
479
570
  for (; t.length > 0;) {
480
- let e = t.pop(), n = _ ? _(e) : e.nodeType;
481
- if (n === N.processingInstruction || n === N.comment && D(Ue, e.data)) {
571
+ let e = t.pop(), n = S(e);
572
+ if (n === P.processingInstruction || n === P.comment && D(We, e.data)) {
482
573
  try {
483
- f(e);
574
+ p(e);
484
575
  } catch {}
485
576
  continue;
486
577
  }
487
- if (n === N.element) {
488
- let t = e, n = X(v ? v(e) : e.nodeName);
578
+ if (n === P.element) {
579
+ let t = e, n = X(ge(e));
489
580
  try {
490
- t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && n !== "label" && n !== "output" && t.removeAttribute("for");
581
+ t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
491
582
  } catch {}
492
583
  }
493
- let r = p(e);
584
+ let r = h(e);
494
585
  if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
495
586
  }
496
- }, on = function(e) {
587
+ }, hn = function(e) {
497
588
  let t = null, r = null;
498
- if (bt) e = "<remove></remove>" + e;
589
+ if (Et) e = "<remove></remove>" + e;
499
590
  else {
500
- let t = de(e, /^[\r\n\t ]+/);
591
+ let t = fe(e, /^[\r\n\t ]+/);
501
592
  r = t && t[0];
502
593
  }
503
- Ut === "application/xhtml+xml" && Pt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
504
- let i = y ? k(e) : e;
505
- if (Pt === Y) try {
506
- t = new l().parseFromString(i, Ut);
594
+ Xt === "application/xhtml+xml" && Vt === Y && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
595
+ let i = w ? j(e) : e;
596
+ if (Vt === Y) try {
597
+ t = new l().parseFromString(i, Xt);
507
598
  } catch {}
508
599
  if (!t || !t.documentElement) {
509
- t = Ze.createDocument(Pt, "template", null);
600
+ t = I.createDocument(Vt, "template", null);
510
601
  try {
511
- t.documentElement.innerHTML = Ft ? C : i;
602
+ t.documentElement.innerHTML = Ht ? T : i;
512
603
  } catch {}
513
604
  }
514
605
  let a = t.body || t.documentElement;
515
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Pt === Y ? et.call(t, W ? "html" : "body")[0] : W ? t.documentElement : a;
516
- }, sn = function(e) {
517
- return Qe.call(e.ownerDocument || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
518
- }, cn = function(e) {
519
- return e = fe(e, nt, " "), e = fe(e, rt, " "), e = fe(e, it, " "), e;
520
- }, ln = function(e) {
606
+ return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), Vt === Y ? at.call(t, G ? "html" : "body")[0] : G ? t.documentElement : a;
607
+ }, gn = function(e) {
608
+ let t = x ? x(e) : e.ownerDocument;
609
+ return rt.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
610
+ }, _n = function(e) {
611
+ return e = pe(e, st, " "), e = pe(e, ct, " "), e = pe(e, lt, " "), e;
612
+ }, vn = function(e) {
521
613
  e.normalize();
522
- let t = Qe.call(e.ownerDocument || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), n = t.nextNode();
523
- for (; n;) n.data = cn(n.data), n = t.nextNode();
524
- let r = e.querySelectorAll?.call(e, "template");
525
- r && b(r, (e) => {
526
- dn(e.content) && ln(e.content);
614
+ let t = x ? x(e) : e.ownerDocument, n = rt.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
615
+ for (; r;) r.data = _n(r.data), r = n.nextNode();
616
+ let i = e.querySelectorAll?.call(e, "template");
617
+ i && C(i, (e) => {
618
+ bn(e.content) && vn(e.content);
527
619
  });
528
- }, un = function(e) {
529
- let t = v ? v(e) : null;
530
- return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ie(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== p(e);
531
- }, dn = function(e) {
620
+ }, yn = function(e) {
621
+ let t = b ? b(e) : null;
622
+ return typeof t != "string" || X(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== re(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== _(e) || e.childNodes !== h(e);
623
+ }, bn = function(e) {
532
624
  if (!_ || typeof e != "object" || !e) return !1;
533
625
  try {
534
- return _(e) === N.documentFragment;
626
+ return _(e) === P.documentFragment;
535
627
  } catch {
536
628
  return !1;
537
629
  }
538
- }, fn = function(e) {
630
+ }, xn = function(e) {
539
631
  if (!_ || typeof e != "object" || !e) return !1;
540
632
  try {
541
633
  return typeof _(e) == "number";
@@ -544,54 +636,55 @@ function Ye() {
544
636
  }
545
637
  };
546
638
  function $(e, n, r) {
547
- e.length !== 0 && b(e, (e) => {
548
- e.call(t, n, r, Gt);
639
+ e.length !== 0 && C(e, (e) => {
640
+ e.call(t, n, r, Qt);
549
641
  });
550
642
  }
551
- let pn = function(e, t) {
552
- return !!(U && e.hasChildNodes() && !fn(e.firstElementChild) && D(He, e.textContent) && D(He, e.innerHTML) || U && e.namespaceURI === Y && t === "style" && fn(e.firstElementChild) || e.nodeType === N.processingInstruction || U && e.nodeType === N.comment && D(Ue, e.data));
553
- }, mn = function(e, t) {
554
- if (!B[t] && vn(t) && (z.tagNameCheck instanceof RegExp && D(z.tagNameCheck, t) || z.tagNameCheck instanceof Function && z.tagNameCheck(t))) return !1;
555
- if (K && !J[t]) {
556
- let t = m(e), n = p(e);
557
- if (n && t) {
558
- let r = n.length;
559
- for (let i = r - 1; i >= 0; --i) {
560
- let r = Et ? n[i] : ee(n[i], !0);
561
- t.insertBefore(r, te(e));
643
+ let Sn = function(e, t) {
644
+ return !!(W && e.hasChildNodes() && !xn(e.firstElementChild) && D(Ue, e.textContent) && D(Ue, e.innerHTML) || W && e.namespaceURI === Y && Je[t] && (xn(e.firstElementChild) || typeof e.textContent == "string" && D(Ye[t], e.textContent)) || e.nodeType === P.processingInstruction || W && e.nodeType === P.comment && D(We, e.data));
645
+ }, Cn = function(e, t) {
646
+ return e instanceof RegExp ? D(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
647
+ }, wn = function(e, t, n) {
648
+ if (!_t[t] && An(t) && Cn(V.tagNameCheck, t)) return !1;
649
+ if (Mt && !J[t]) {
650
+ let t = g(e), r = h(e);
651
+ if (r && t) {
652
+ let i = r.length;
653
+ for (let a = i - 1; a >= 0; --a) {
654
+ let i = e === n ? f(r[a], !0) : r[a];
655
+ t.insertBefore(i, ee(e));
562
656
  }
563
657
  }
564
658
  }
565
659
  return Z(e), !0;
566
- }, hn = function(e, n) {
567
- if ($(F.beforeSanitizeElements, e, null), e !== n && m(e) === null) return !0;
568
- if (un(e)) return Z(e), !0;
569
- let r = X(v ? v(e) : e.nodeName);
570
- if ($(F.uponSanitizeElement, e, {
660
+ }, Tn = function(e, t, n, r) {
661
+ return e.length === 0 ? t : t === n || t === r ? M(t) : t;
662
+ }, En = function(e, t) {
663
+ return e === t || g(e) !== null ? !1 : (Nt && fn(e), !0);
664
+ }, Dn = function(e, n) {
665
+ if ($(L.beforeSanitizeElements, e, null), En(e, n)) return !0;
666
+ if (yn(e)) return Z(e), !0;
667
+ let r = X(ge(e));
668
+ if (z = Tn(L.uponSanitizeElement, z, ht, wt), $(L.uponSanitizeElement, e, {
571
669
  tagName: r,
572
- allowedTags: L
573
- }), e !== n && m(e) === null) return !0;
574
- if (pn(e, r)) return Z(e), !0;
575
- if (B[r] || !(V.tagCheck instanceof Function && V.tagCheck(r)) && !L[r]) {
576
- let t = mn(e, r);
577
- return t === !1 && $(F.afterSanitizeElements, e, null), t;
578
- }
579
- if ((_ ? _(e) : e.nodeType) === N.element && !en(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(We, e.innerHTML)) return Z(e), !0;
580
- if (H && e.nodeType === N.text) {
581
- let n = cn(e.textContent);
582
- e.textContent !== n && (x(t.removed, { element: e.cloneNode() }), e.textContent = n);
670
+ allowedTags: z
671
+ }), En(e, n)) return !0;
672
+ if (Sn(e, r)) return Z(e), !0;
673
+ if (_t[r] || !(H.tagCheck instanceof Function && H.tagCheck(r)) && !z[r]) {
674
+ let t = wn(e, r, n);
675
+ return t === !1 && ($(L.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
583
676
  }
584
- return $(F.afterSanitizeElements, e, null), !1;
585
- }, gn = function(e, t, r) {
586
- if (ft[t] || U && t === "patchsrc" || U && t === "for" && e !== "label" && e !== "output" || Ct && (t === "id" || t === "name") && (r in n || r in Kt)) return !1;
587
- let i = R[t] || V.attributeCheck instanceof Function && V.attributeCheck(t, e);
588
- if (!(mt && D(at, t)) && !(pt && D(ot, t))) {
589
- if (!i) {
590
- if (!(vn(e) && (z.tagNameCheck instanceof RegExp && D(z.tagNameCheck, e) || z.tagNameCheck instanceof Function && z.tagNameCheck(e)) && (z.attributeNameCheck instanceof RegExp && D(z.attributeNameCheck, t) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(t, e)) || t === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && D(z.tagNameCheck, r) || z.tagNameCheck instanceof Function && z.tagNameCheck(r)))) return !1;
591
- } else if (!At[t] && !D(lt, fe(r, I, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && pe(r, "data:") === 0 && Ot[e]) && !(ht && !D(st, fe(r, I, ""))) && r) return !1;
677
+ if (S(e) === P.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(Ge, e.innerHTML)) return Z(e), !0;
678
+ if (U && e.nodeType === P.text) {
679
+ let n = _n(e.textContent);
680
+ e.textContent !== n && (se(t.removed, { element: e.cloneNode() }), e.textContent = n);
592
681
  }
593
- return !0;
594
- }, _n = A({}, [
682
+ return $(L.afterSanitizeElements, e, null), En(e, n);
683
+ }, On = function(e, t, r) {
684
+ if (vt[t] || pn(t, e) || kt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
685
+ let i = B[t] || H.attributeCheck instanceof Function && H.attributeCheck(t, e);
686
+ return bt && D(R, t) || yt && D(ut, t) ? !0 : i ? Lt[t] || D(mt, pe(r, ft, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && me(r, "data:") === 0 && Ft[e] || xt && !D(dt, pe(r, ft, "")) ? !0 : !r : An(e) && Cn(V.tagNameCheck, e) && Cn(V.attributeNameCheck, t, e) || t === "is" && V.allowCustomizedBuiltInElements && Cn(V.tagNameCheck, r);
687
+ }, kn = A({}, [
595
688
  "annotation-xml",
596
689
  "color-profile",
597
690
  "font-face",
@@ -600,66 +693,67 @@ function Ye() {
600
693
  "font-face-src",
601
694
  "font-face-uri",
602
695
  "missing-glyph"
603
- ]), vn = function(e) {
604
- return !_n[le(e)] && D(ct, e);
605
- }, yn = function(e, t, n, r) {
606
- if (y && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
607
- case "TrustedHTML": return k(r);
608
- case "TrustedScriptURL": return _e(r);
696
+ ]), An = function(e) {
697
+ return !kn[ue(e)] && D(pt, e);
698
+ }, jn = function(e, t, n, r) {
699
+ if (w && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
700
+ case "TrustedHTML": return j(r);
701
+ case "TrustedScriptURL": return qe(r);
609
702
  }
610
703
  return r;
611
- }, bn = function(e, n, r, i) {
704
+ }, Mn = function(e, t, n, r) {
612
705
  try {
613
- r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), un(e) ? Z(e) : se(t.removed);
706
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !yn(e) || (Z(e), !1);
614
707
  } catch {
615
- Q(n, e);
708
+ return Q(t, e), !1;
616
709
  }
617
- }, xn = function(e) {
618
- $(F.beforeSanitizeAttributes, e, null);
619
- let t = e.attributes;
620
- if (!t || un(e)) return;
621
- let n = {
710
+ }, Nn = function(e, n) {
711
+ if ($(L.beforeSanitizeAttributes, e, null), En(e, n)) return;
712
+ let r = e.attributes;
713
+ if (!r || yn(e)) return;
714
+ B = Tn(L.uponSanitizeAttribute, B, gt, Tt);
715
+ let i = {
622
716
  attrName: "",
623
717
  attrValue: "",
624
718
  keepAttr: !0,
625
- allowedAttributes: R,
719
+ allowedAttributes: B,
626
720
  forceKeepAttr: void 0
627
- }, r = t.length, i = X(e.nodeName);
628
- for (; r--;) {
629
- let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = X(o), u = c, d = o === "value" ? u : me(u);
630
- if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(F.uponSanitizeAttribute, e, n), d = n.attrValue, wt && (l === "id" || l === "name") && pe(d, Tt) !== 0 && (Q(o, e), d = Tt + d), U && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
631
- Q(o, e);
721
+ }, a = r.length, o = X(e.nodeName);
722
+ for (; a--;) {
723
+ let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = X(s), d = l, f = s === "value" ? d : he(d), p = !1;
724
+ if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(L.uponSanitizeAttribute, e, i), f = i.attrValue, At && (u === "id" || u === "name") && me(f, jt) !== 0 && (Q(s, e, n), f = jt + f, p = !0), W && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
725
+ Q(s, e, n);
632
726
  continue;
633
727
  }
634
- if (l === "attributename" && de(d, "href")) {
635
- Q(o, e);
728
+ if (u === "attributename" && fe(f, "href")) {
729
+ Q(s, e, n);
636
730
  continue;
637
731
  }
638
- if (!n.forceKeepAttr) {
639
- if (!n.keepAttr) {
640
- Q(o, e);
732
+ if (!i.forceKeepAttr) {
733
+ if (!i.keepAttr) {
734
+ Q(s, e, n);
641
735
  continue;
642
736
  }
643
- if (!gt && D(Ge, d)) {
644
- Q(o, e);
737
+ if (!St && D(Ke, f)) {
738
+ Q(s, e, n);
645
739
  continue;
646
740
  }
647
- if (H && (d = cn(d)), !gn(i, l, d)) {
648
- Q(o, e);
741
+ if (U && (f = _n(f)), !On(o, u, f)) {
742
+ Q(s, e, n);
649
743
  continue;
650
744
  }
651
- d = yn(i, l, s, d), d !== u && bn(e, o, s, d);
745
+ f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && oe(t.removed);
652
746
  }
653
747
  }
654
- $(F.afterSanitizeAttributes, e, null);
655
- }, Sn = function(e) {
656
- let t = null, n = sn(e);
657
- for ($(F.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(F.uponSanitizeShadowNode, t, null), hn(t, e), xn(t), dn(t.content) && Sn(t.content), (_ ? _(t) : t.nodeType) === N.element) {
658
- let e = re(t);
659
- dn(e) && (Cn(e), Sn(e));
748
+ $(L.afterSanitizeAttributes, e, null), En(e, n);
749
+ }, Pn = function(e) {
750
+ let t = null, n = gn(e);
751
+ for ($(L.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(L.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), bn(t.content) && Pn(t.content), S(t) === P.element) {
752
+ let e = ne(t);
753
+ bn(e) && (Fn(e), Pn(e));
660
754
  }
661
- $(F.afterSanitizeShadowDOM, e, null);
662
- }, Cn = function(e) {
755
+ $(L.afterSanitizeShadowDOM, e, null);
756
+ }, Fn = function(e) {
663
757
  let t = [{
664
758
  node: e,
665
759
  shadow: null
@@ -667,27 +761,27 @@ function Ye() {
667
761
  for (; t.length > 0;) {
668
762
  let e = t.pop();
669
763
  if (e.shadow) {
670
- Sn(e.shadow);
764
+ Pn(e.shadow);
671
765
  continue;
672
766
  }
673
- let n = e.node, r = (_ ? _(n) : n.nodeType) === N.element, i = p(n);
767
+ let n = e.node, r = S(n) === P.element, i = h(n);
674
768
  if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
675
769
  node: i[e],
676
770
  shadow: null
677
771
  });
678
772
  if (r) {
679
- let e = v ? v(n) : null;
773
+ let e = b ? b(n) : null;
680
774
  if (typeof e == "string" && X(e) === "template") {
681
775
  let e = n.content;
682
- dn(e) && t.push({
776
+ bn(e) && t.push({
683
777
  node: e,
684
778
  shadow: null
685
779
  });
686
780
  }
687
781
  }
688
782
  if (r) {
689
- let e = re(n);
690
- dn(e) && t.push({
783
+ let e = ne(n);
784
+ bn(e) && t.push({
691
785
  node: null,
692
786
  shadow: e
693
787
  }, {
@@ -699,85 +793,90 @@ function Ye() {
699
793
  };
700
794
  return t.sanitize = function(e) {
701
795
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
702
- if (Ft = !e, Ft && (e = "<!-->"), typeof e != "string" && !fn(e) && (e = ye(e), typeof e != "string")) throw O("dirty is not a string, aborting");
796
+ if (Ht = !e, Ht && (e = "<!-->"), typeof e != "string" && !xn(e) && (e = be(e), typeof e != "string")) throw O("dirty is not a string, aborting");
703
797
  if (!t.isSupported) return e;
704
- _t ? (L = vt, R = yt) : Jt(n), (F.uponSanitizeElement.length > 0 || F.uponSanitizeAttribute.length > 0) && (L = j(L)), F.uponSanitizeAttribute.length > 0 && (R = j(R)), t.removed = [];
705
- let c = Et && typeof e != "string" && fn(e);
798
+ Ct ? (z = wt, B = Tt) : tn(n), (L.uponSanitizeElement.length > 0 || L.uponSanitizeAttribute.length > 0) && (z = M(z)), L.uponSanitizeAttribute.length > 0 && (B = M(B)), t.removed = [];
799
+ let c = Nt && typeof e != "string" && xn(e);
706
800
  if (c) {
707
- an(e);
708
- let t = v ? v(e) : e.nodeName;
801
+ mn(e);
802
+ let t = ge(e);
709
803
  if (typeof t == "string") {
710
804
  let n = X(t);
711
- if (!L[n] || B[n]) throw tn(e), O("root node is forbidden and cannot be sanitized in-place");
805
+ if (!z[n] || _t[n]) throw un(e), O("root node is forbidden and cannot be sanitized in-place");
712
806
  }
713
- if (un(e)) throw tn(e), O("root node is clobbered and cannot be sanitized in-place");
807
+ if (yn(e)) throw un(e), O("root node is clobbered and cannot be sanitized in-place");
714
808
  try {
715
- Cn(e);
809
+ Fn(e);
716
810
  } catch (t) {
717
- throw tn(e), t;
811
+ throw un(e), t;
718
812
  }
719
- } else if (fn(e)) i = on("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === N.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Cn(a);
813
+ } else if (xn(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === P.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
720
814
  else {
721
- if (!G && !H && !W && e.indexOf("<") === -1) return y && St ? k(e) : e;
722
- if (i = on(e), !i) return G ? null : St ? C : "";
815
+ if (!K && !U && !G && e.indexOf("<") === -1) return w && Ot ? j(e) : e;
816
+ if (i = hn(e), !i) return K ? null : Ot ? T : "";
723
817
  }
724
- i && bt && Z(i.firstChild);
725
- let l = c ? e : i, u = sn(l);
818
+ i && Et && Z(i.firstChild);
819
+ let l = c ? e : i;
726
820
  try {
727
- for (; o = u.nextNode();) hn(o, l), xn(o), dn(o.content) && Sn(o.content);
821
+ let e = gn(l);
822
+ for (; o = e.nextNode();) Dn(o, l), Nn(o, l), bn(o.content) && Pn(o.content);
728
823
  } catch (n) {
729
- throw c && (tn(e), b(t.removed, (e) => {
730
- e.element && rn(e.element);
824
+ throw c && (un(e), C(t.removed, (e) => {
825
+ e.element && fn(e.element);
731
826
  })), n;
732
827
  }
733
- if (c) return b(t.removed, (e) => {
734
- e.element && rn(e.element);
735
- }), H && ln(e), e;
736
- if (G) {
737
- if (H && ln(i), xt) for (s = $e.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
828
+ if (c) {
829
+ let n = !1;
830
+ if (C(t.removed, (t) => {
831
+ t.element && (t.element === e && (n = !0), fn(t.element));
832
+ }), n) throw O("a node selected for removal could not be safely returned; refusing to sanitize in place");
833
+ return U && vn(e), e;
834
+ }
835
+ if (K) {
836
+ if (U && vn(i), Dt) for (s = it.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
738
837
  else s = i;
739
- return (R.shadowroot || R.shadowrootmode) && (s = tt.call(r, s, !0)), s;
838
+ return (B.shadowroot || B.shadowrootmode) && (s = ot.call(r, s, !0)), s;
740
839
  }
741
- let d = W ? i.outerHTML : i.innerHTML;
742
- return W && L["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(Be, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), H && (d = cn(d)), y && St ? k(d) : d;
840
+ let u = G ? i.outerHTML : i.innerHTML;
841
+ return G && z["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(Ve, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), U && (u = _n(u)), w && Ot ? j(u) : u;
743
842
  }, t.setConfig = function() {
744
843
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
745
- Jt(e), _t = !0, vt = L, yt = R;
844
+ tn(e), Ct = !0, wt = z, Tt = B;
746
845
  }, t.clearConfig = function() {
747
- Gt = null, _t = !1, vt = null, yt = null, y = he, C = "";
846
+ Qt = null, Ct = !1, wt = null, Tt = null, w = _e, T = "";
748
847
  }, t.isValidAttribute = function(e, t, n) {
749
- Gt || Jt({});
848
+ Qt || tn({});
750
849
  let r = X(e), i = X(t);
751
- return gn(r, i, n);
850
+ return On(r, i, n);
752
851
  }, t.addHook = function(e, t) {
753
- typeof t == "function" && T(F, e) && x(F[e], t);
852
+ typeof t == "function" && E(L, e) && se(L[e], t);
754
853
  }, t.removeHook = function(e, t) {
755
- if (T(F, e)) {
854
+ if (E(L, e)) {
756
855
  if (t !== void 0) {
757
- let n = oe(F[e], t);
758
- return n === -1 ? void 0 : ce(F[e], n, 1)[0];
856
+ let n = ae(L[e], t);
857
+ return n === -1 ? void 0 : ce(L[e], n, 1)[0];
759
858
  }
760
- return se(F[e]);
859
+ return oe(L[e]);
761
860
  }
762
861
  }, t.removeHooks = function(e) {
763
- T(F, e) && (F[e] = []);
862
+ E(L, e) && (L[e] = []);
764
863
  }, t.removeAllHooks = function() {
765
- F = Je();
864
+ L = Qe();
766
865
  }, t;
767
866
  }
768
- var Xe = Ye(), Ze = {
867
+ var tt = et(), nt = {
769
868
  tip: "mdi mdi-lightbulb-on",
770
869
  warning: "mdi mdi-alert-circle-outline",
771
870
  note: "mdi mdi-note-text-outline",
772
871
  important: "mdi mdi-star-outline",
773
872
  caution: "mdi mdi-alert-circle"
774
873
  };
775
- function Qe(e) {
874
+ function I(e) {
776
875
  if (typeof e != "string") return String(e);
777
876
  let t = document.createElement("div");
778
877
  return t.textContent = e, t.innerHTML;
779
878
  }
780
- var $e = /* @__PURE__ */ new Set([
879
+ var rt = /* @__PURE__ */ new Set([
781
880
  "display",
782
881
  "width",
783
882
  "height",
@@ -799,19 +898,19 @@ var $e = /* @__PURE__ */ new Set([
799
898
  "vertical-align",
800
899
  "filter"
801
900
  ]);
802
- Xe.addHook("afterSanitizeAttributes", (e) => {
901
+ tt.addHook("afterSanitizeAttributes", (e) => {
803
902
  let t = e;
804
903
  if (typeof t.getAttribute != "function") return;
805
904
  let n = t.getAttribute("style");
806
905
  if (!n) return;
807
906
  let r = n.split(";").map((e) => e.trim()).filter((e) => {
808
907
  let t = e.split(":")[0]?.trim().toLowerCase();
809
- return !!t && $e.has(t);
908
+ return !!t && rt.has(t);
810
909
  }).join("; ");
811
910
  r ? t.setAttribute("style", r) : t.removeAttribute("style");
812
911
  });
813
- function et(e) {
814
- return Xe.sanitize(e, {
912
+ function it(e) {
913
+ return tt.sanitize(e, {
815
914
  ALLOWED_TAGS: /* @__PURE__ */ "h1.h2.h3.h4.hr.p.ul.ol.li.strong.em.a.br.span.pre.code.div.button.svg.rect.path.polyline.table.thead.tbody.tr.th.td".split("."),
816
915
  ALLOWED_ATTR: [
817
916
  "href",
@@ -853,7 +952,7 @@ function et(e) {
853
952
  ]
854
953
  });
855
954
  }
856
- function tt(e) {
955
+ function at(e) {
857
956
  return ![/\_\_proto\_\_/].some((t) => t.test(e)) && [
858
957
  /^data\[\d+\]\.[\w.]+$/,
859
958
  /^data\.length$/,
@@ -861,25 +960,25 @@ function tt(e) {
861
960
  /^[\w.]+$/
862
961
  ].some((t) => t.test(e));
863
962
  }
864
- function F(e) {
963
+ function ot(e) {
865
964
  return e = e.split("||")[0], /^[\w\s|'"\.\-]+$/.test(e);
866
965
  }
867
- function nt(e) {
966
+ function L(e) {
868
967
  return ![
869
968
  "javascript:",
870
969
  "data:",
871
970
  "vbscript:"
872
971
  ].some((t) => e.startsWith(t));
873
972
  }
874
- var rt = "​";
875
- function it(e = "Loading") {
973
+ var st = "​";
974
+ function ct(e = "Loading") {
876
975
  let t = e.length, n;
877
- return n = t <= 5 ? "60px" : t <= 10 ? "80px" : t <= 20 ? "120px" : "160px", `<span class="loading-pill" style="display: inline-block; width: ${n}; height: 1em; margin: calc((1lh - 1em) / 2) 0; vertical-align: top; border-radius: 4px; filter: blur(0.5px);"></span>${rt}`;
976
+ return n = t <= 5 ? "60px" : t <= 10 ? "80px" : t <= 20 ? "120px" : "160px", `<span class="loading-pill" style="display: inline-block; width: ${n}; height: 1em; margin: calc((1lh - 1em) / 2) 0; vertical-align: top; border-radius: 4px; filter: blur(0.5px);"></span>${st}`;
878
977
  }
879
- function at() {
978
+ function lt() {
880
979
  return "\n <style>\n @keyframes shimmer {\n 0% { background-position: -200% 0; }\n 100% { background-position: 200% 0; }\n }\n .loading-pill {\n animation: shimmer 1.5s infinite linear;\n }\n </style>\n ";
881
980
  }
882
- function ot(e, t) {
981
+ function R(e, t) {
883
982
  return t.split(".").reduce((e, t) => {
884
983
  if (e && typeof e == "object") {
885
984
  let n = t.match(/^(\w+)\[(\d+)\]$/);
@@ -891,7 +990,7 @@ function ot(e, t) {
891
990
  }
892
991
  }, e);
893
992
  }
894
- function st(e) {
993
+ function ut(e) {
895
994
  let t = e.match(/^(.+?)\s*\|\|\s*(.+?)$/);
896
995
  if (!t) return null;
897
996
  let [, n, r] = t;
@@ -900,19 +999,19 @@ function st(e) {
900
999
  fallbackExpr: r.trim()
901
1000
  };
902
1001
  }
903
- function I(e) {
1002
+ function dt(e) {
904
1003
  return e.startsWith("'") && e.endsWith("'") || e.startsWith("\"") && e.endsWith("\"") ? e.slice(1, -1) : null;
905
1004
  }
906
- function ct(e, t, n = !1) {
1005
+ function ft(e, t, n = !1) {
907
1006
  if (n || !t || !t.length) return;
908
- if (!tt(e)) {
1007
+ if (!at(e)) {
909
1008
  console.warn("Potentially unsafe expression blocked:", e);
910
1009
  return;
911
1010
  }
912
1011
  let r = e.match(/^data\[(\d+)\]\.(.+)$/);
913
1012
  if (r) {
914
1013
  let [, e, n] = r, i = parseInt(e);
915
- return t[i] ? ot(t[i], n) : void 0;
1014
+ return t[i] ? R(t[i], n) : void 0;
916
1015
  }
917
1016
  if (e === "data.length") return t.length;
918
1017
  if (t.length > 0) {
@@ -920,7 +1019,7 @@ function ct(e, t, n = !1) {
920
1019
  if (n && n[e] !== void 0) return n[e];
921
1020
  }
922
1021
  }
923
- function lt(e) {
1022
+ function pt(e) {
924
1023
  let t = 0;
925
1024
  for (let n = 0; n < e.length; n++) {
926
1025
  let r = e[n];
@@ -930,7 +1029,7 @@ function lt(e) {
930
1029
  }
931
1030
  return -1;
932
1031
  }
933
- function L(e, t) {
1032
+ function mt(e, t) {
934
1033
  if (!t || !t.length) return;
935
1034
  let n = t[0], r = e.replace(/\b([a-zA-Z_]\w*)\b/g, (e, t) => {
936
1035
  let r = n[t], i = Number(r);
@@ -943,7 +1042,7 @@ function L(e, t) {
943
1042
  return;
944
1043
  }
945
1044
  }
946
- function ut(e, t) {
1045
+ function z(e, t) {
947
1046
  if (t === ",") return e.toLocaleString("en-US");
948
1047
  let n = t.match(/^\.(\d+)f$/);
949
1048
  if (n) return e.toFixed(parseInt(n[1]));
@@ -958,14 +1057,14 @@ function ut(e, t) {
958
1057
  let i = t.match(/^\.(\d+)%$/);
959
1058
  return i ? (e * 100).toFixed(parseInt(i[1])) + "%" : String(e);
960
1059
  }
961
- function R(e, t, n) {
1060
+ function ht(e, t, n) {
962
1061
  if (n || !t || !t.length) return;
963
- let r = lt(e);
1062
+ let r = pt(e);
964
1063
  if (r === -1) return;
965
1064
  let i = e.substring(0, r).trim(), a = e.substring(r + 1).trim();
966
1065
  if (!a) return;
967
1066
  let o, s;
968
- if (/^\(.*\)$/.test(i)) o = L(i.slice(1, -1), t);
1067
+ if (/^\(.*\)$/.test(i)) o = mt(i.slice(1, -1), t);
969
1068
  else if (/^\w+$/.test(i)) {
970
1069
  s = t[0][i];
971
1070
  let e = Number(s);
@@ -975,100 +1074,102 @@ function R(e, t, n) {
975
1074
  if (e) {
976
1075
  let [, n, r] = e, i = parseInt(n);
977
1076
  if (t[i]) {
978
- s = ot(t[i], r);
1077
+ s = R(t[i], r);
979
1078
  let e = Number(s);
980
1079
  o = s != null && s !== "" && !isNaN(e) ? e : void 0;
981
1080
  }
982
1081
  }
983
1082
  }
984
- if (o === void 0 && (s == null || s === "") && (o = 0), o !== void 0) return ut(o, a);
1083
+ if (o === void 0 && (s == null || s === "") && (o = 0), o !== void 0) return z(o, a);
985
1084
  }
986
- function dt(e, t, n = !1) {
1085
+ function B(e, t, n = !1) {
987
1086
  try {
988
- let r = st(e);
1087
+ let r = ut(e);
989
1088
  if (r) {
990
1089
  let { mainExpr: e, fallbackExpr: i } = r;
991
- if (n) return it(I(i) || i);
992
- let a = ct(e, t, n);
1090
+ if (n) return ct(dt(i) || i);
1091
+ let a = ft(e, t, n);
993
1092
  if (a != null && a !== "") return String(a);
994
1093
  {
995
- let e = I(i);
1094
+ let e = dt(i);
996
1095
  if (e !== null) return e;
997
1096
  {
998
- let e = ct(i, t, n);
1097
+ let e = ft(i, t, n);
999
1098
  return e === void 0 ? i : String(e);
1000
1099
  }
1001
1100
  }
1002
- } else {
1003
- if (n) return it(e);
1004
- let r = R(e, t, n);
1101
+ }
1102
+ {
1103
+ if (n) return ct(e);
1104
+ let r = ht(e, t, n);
1005
1105
  if (r !== void 0) return r;
1006
- let i = ct(e, t, n);
1106
+ let i = ft(e, t, n);
1007
1107
  return i === null || i === "" ? "Null" : i === void 0 ? `{${e}}` : String(i);
1008
1108
  }
1009
1109
  } catch (t) {
1010
- return console.warn("Error evaluating fallback expression:", e, t), n ? it("Error") : `{${e}}`;
1110
+ return console.warn("Error evaluating fallback expression:", e, t), n ? ct("Error") : `{${e}}`;
1011
1111
  }
1012
1112
  }
1013
- function z(e) {
1113
+ function gt(e) {
1014
1114
  let t = e.trim();
1015
1115
  return t.startsWith("#") || t.startsWith("/");
1016
1116
  }
1017
- function B(e, t) {
1018
- let n = (e, n) => z(n) ? e : t(n, e);
1117
+ function V(e, t) {
1118
+ let n = (e, n) => gt(n) ? e : t(n, e);
1019
1119
  return e.replace(/\{\{([^{}]+)\}\}/g, n).replace(/\{([^{}]+)\}/g, n);
1020
1120
  }
1021
- function ft(e, t, n, r = !0) {
1121
+ function _t(e, t, n, r = !0) {
1022
1122
  let i = e.trim();
1023
1123
  if (i === "@index") return String(n);
1024
1124
  if (i === ".") return String(t);
1025
- let a = lt(i);
1125
+ let a = pt(i);
1026
1126
  if (a !== -1) {
1027
1127
  let e = i.substring(0, a).trim(), n = i.substring(a + 1).trim();
1028
1128
  if (n && /^\w+$/.test(e)) {
1029
1129
  let r = t[e], i = Number(r);
1030
- return r != null && r !== "" && !isNaN(i) ? ut(i, n) : r === void 0 ? "" : String(r);
1130
+ return r != null && r !== "" && !isNaN(i) ? z(i, n) : r === void 0 ? "" : String(r);
1031
1131
  }
1032
1132
  }
1033
- if (!F(i)) return console.warn("Potentially unsafe field expression blocked:", i), `unsafe{${i}}`;
1034
- let o = st(i);
1133
+ if (!ot(i)) return console.warn("Potentially unsafe field expression blocked:", i), `unsafe{${i}}`;
1134
+ let o = ut(i);
1035
1135
  if (o) {
1036
1136
  let { mainExpr: e, fallbackExpr: n } = o, i;
1037
- if (i = r && e.includes(".") ? ot(t, e) : t[e], i != null && i !== "") return String(i);
1137
+ if (i = r && e.includes(".") ? R(t, e) : t[e], i != null && i !== "") return String(i);
1038
1138
  {
1039
- let e = I(n);
1139
+ let e = dt(n);
1040
1140
  if (e !== null) return e;
1041
1141
  {
1042
1142
  let e;
1043
- return e = r && n.includes(".") ? ot(t, n) : t[n], e === void 0 ? n : String(e);
1143
+ return e = r && n.includes(".") ? R(t, n) : t[n], e === void 0 ? n : String(e);
1044
1144
  }
1045
1145
  }
1046
- } else {
1146
+ }
1147
+ {
1047
1148
  let e;
1048
- return e = r && i.includes(".") ? ot(t, i) : t[i], e === void 0 ? "" : String(e);
1149
+ return e = r && i.includes(".") ? R(t, i) : t[i], e === void 0 ? "" : String(e);
1049
1150
  }
1050
1151
  }
1051
- function V(e, t) {
1152
+ function vt(e, t) {
1052
1153
  let n = "", r = Math.min(t ?? 3, 3);
1053
1154
  for (let t = 0; t < r; t++) {
1054
- let t = B(e, (e) => {
1155
+ let t = V(e, (e) => {
1055
1156
  let t = e.trim();
1056
- return it(t === "@index" ? "0" : t);
1157
+ return ct(t === "@index" ? "0" : t);
1057
1158
  });
1058
1159
  n += t;
1059
1160
  }
1060
1161
  return n;
1061
1162
  }
1062
- function pt(e, t, n, r = (e) => e) {
1163
+ function H(e, t, n, r = (e) => e) {
1063
1164
  if (!Array.isArray(t) || t.length === 0) return "";
1064
1165
  let i = "";
1065
1166
  return (n === void 0 ? t : t.slice(0, n)).forEach((t, n) => {
1066
1167
  t = t.l === void 0 ? t : t.l;
1067
1168
  let a = e;
1068
- a = r(a, [t]), a = B(a, (e) => ft(e, t, n, !0)), i += a;
1169
+ a = r(a, [t]), a = V(a, (e) => _t(e, t, n, !0)), i += a;
1069
1170
  }), i;
1070
1171
  }
1071
- function mt(e, t, n) {
1172
+ function yt(e, t, n) {
1072
1173
  function r(e, t) {
1073
1174
  let n = 1, r = t;
1074
1175
  for (; r < e.length && n > 0;) {
@@ -1083,7 +1184,7 @@ function mt(e, t, n) {
1083
1184
  return -1;
1084
1185
  }
1085
1186
  function i(e, n) {
1086
- return mt(e, t, n);
1187
+ return yt(e, t, n);
1087
1188
  }
1088
1189
  let a = e, o = 0;
1089
1190
  for (;;) {
@@ -1096,43 +1197,43 @@ function mt(e, t, n) {
1096
1197
  console.warn("No matching {{/each}} found");
1097
1198
  break;
1098
1199
  }
1099
- let u = e[1], d = e[2], ee = a.substring(c, l), f = d ? parseInt(d) : void 0;
1100
- if (f !== void 0 && (isNaN(f) || f < 0 || f > 1e3)) {
1200
+ let u = e[1], d = e[2], f = a.substring(c, l), p = d ? parseInt(d) : void 0;
1201
+ if (p !== void 0 && (isNaN(p) || p < 0 || p > 1e3)) {
1101
1202
  console.warn("Invalid or unsafe limit value:", d), o = l + 9;
1102
1203
  continue;
1103
1204
  }
1104
- let te = "";
1105
- te = t.loading ? V(ee, f) : u === "data" ? pt(ee, n, f, i) : pt(ee, ct(u, n, t.loading), f, i), a = a.substring(0, s) + te + a.substring(l + 9), o = s + te.length;
1205
+ let m = "";
1206
+ m = t.loading ? vt(f, p) : u === "data" ? H(f, n, p, i) : H(f, ft(u, n, t.loading), p, i), a = a.substring(0, s) + m + a.substring(l + 9), o = s + m.length;
1106
1207
  }
1107
1208
  return a;
1108
1209
  }
1109
- function ht(e, t) {
1110
- return B(e, (e, n) => {
1111
- if (t.loading) return dt(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
1210
+ function bt(e, t) {
1211
+ return V(e, (e, n) => {
1212
+ if (t.loading) return B(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
1112
1213
  if (!t.queryResults || !t.queryResults.data) {
1113
- let t = st(e);
1214
+ let t = ut(e);
1114
1215
  if (t) {
1115
- let e = I(t.fallbackExpr);
1216
+ let e = dt(t.fallbackExpr);
1116
1217
  return e === null ? t.fallbackExpr : e;
1117
1218
  }
1118
1219
  return n;
1119
1220
  }
1120
- return dt(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
1221
+ return B(e, t.queryResults ? [...t.queryResults.data] : [], t.loading);
1121
1222
  });
1122
1223
  }
1123
- function gt(e, t, n = !1) {
1224
+ function xt(e, t, n = !1) {
1124
1225
  let r = {
1125
1226
  queryResults: t,
1126
1227
  loading: n
1127
- }, i = mt(e, r, t ? [...t.data || []] : []);
1128
- return i = ht(i, r), i;
1228
+ }, i = yt(e, r, t ? [...t.data || []] : []);
1229
+ return i = bt(i, r), i;
1129
1230
  }
1130
- function H() {
1231
+ function St() {
1131
1232
  return "code-block-" + Math.random().toString(36).substr(2, 9);
1132
1233
  }
1133
- function U(e, n, r) {
1134
- let i = t(e), a = Qe(n.trim());
1135
- return `<div class="md-code-container" data-language="${i}" data-content="${Qe(n.trim())}" id="${r}">
1234
+ function U(e, t, r) {
1235
+ let i = n(e), a = I(t.trim());
1236
+ return `<div class="md-code-container" data-language="${i}" data-content="${I(t.trim())}" id="${r}">
1136
1237
  <pre class="code-block"><code class="language-${i}">${a}</code></pre>
1137
1238
  <button class="markdown-copy-button" title="Copy code" onclick="copyCodeBlock('${r}')">
1138
1239
  <svg class="copy-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
@@ -1148,7 +1249,7 @@ function U(e, n, r) {
1148
1249
  function W(e, t) {
1149
1250
  return `<div class="md-admonition md-admonition-${e}">
1150
1251
  <div class="md-admonition-header">
1151
- <span class="md-admonition-icon ${Ze[e]}" aria-hidden="true"></span>
1252
+ <span class="md-admonition-icon ${nt[e]}" aria-hidden="true"></span>
1152
1253
  <span>${{
1153
1254
  tip: "Tip",
1154
1255
  warning: "Warning",
@@ -1157,10 +1258,10 @@ function W(e, t) {
1157
1258
  caution: "Caution"
1158
1259
  }[e]}</span>
1159
1260
  </div>
1160
- <div class="md-admonition-body">${J(t.trim())}</div>
1261
+ <div class="md-admonition-body">${q(t.trim())}</div>
1161
1262
  </div>`;
1162
1263
  }
1163
- function _t(e) {
1264
+ function G(e) {
1164
1265
  let t = {}, n = 0;
1165
1266
  return {
1166
1267
  html: e.replace(/^:::(tip|warning|note|important|caution)\s*\n([\s\S]*?)\n:::\s*$/gim, (e, r, i) => {
@@ -1170,54 +1271,54 @@ function _t(e) {
1170
1271
  placeholders: t
1171
1272
  };
1172
1273
  }
1173
- function vt(e, t) {
1274
+ function Ct(e, t) {
1174
1275
  let n = {}, r = 0;
1175
1276
  return {
1176
1277
  html: e.replace(/```(\w+)?\n?([\s\S]*?)```/g, (e, i = "", a) => {
1177
- let o = U(i, t ? t(a) : a, H()), s = `__CODEBLOCK_${r}__`;
1278
+ let o = U(i, t ? t(a) : a, St()), s = `__CODEBLOCK_${r}__`;
1178
1279
  return n[s] = o, r++, s;
1179
1280
  }),
1180
1281
  placeholders: n
1181
1282
  };
1182
1283
  }
1183
- function yt(e) {
1284
+ function wt(e) {
1184
1285
  return e.replace(/^#### (.*\S)[\s]*$/gim, "<h4 class=\"rendered-markdown-h4\">$1</h4>").replace(/^### (.*\S)[\s]*$/gim, "<h3 class=\"rendered-markdown-h3\">$1</h3>").replace(/^## (.*\S)[\s]*$/gim, "<h2 class=\"rendered-markdown-h2\">$1</h2>").replace(/^# (.*\S)[\s]*$/gim, "<h1 class=\"rendered-markdown-h1\">$1</h1>");
1185
1286
  }
1186
- function bt(e) {
1287
+ function Tt(e) {
1187
1288
  return e.replace(/^[ \t]*(?:-[ \t]*){3,}$|^[ \t]*(?:\*[ \t]*){3,}$|^[ \t]*(?:_[ \t]*){3,}$/gm, "<hr class=\"rendered-markdown-hr\">");
1188
1289
  }
1189
- function G(e) {
1290
+ function Et(e) {
1190
1291
  return e.replace(/^\* (.*$)/gim, "<ul><li>$1</li></ul>").replace(/^- (.*$)/gim, "<ul><li>$1</li></ul>").replace(/<\/ul>\s*<ul>/g, "").replace(/^\d+\. (.*$)/gim, "<ol><li>$1</li></ol>").replace(/<\/ol>\s*<ol>/g, "");
1191
1292
  }
1192
- function xt(e) {
1293
+ function K(e) {
1193
1294
  return e.replace(/\*\*\*(.*?)\*\*\*/gim, "<strong><em>$1</em></strong>").replace(/\*\*(.*?)\*\*/gim, "<strong>$1</strong>").replace(/\*(.*?)\*/gim, "<em>$1</em>");
1194
1295
  }
1195
- function St(e) {
1196
- return e.replace(/\[(.*?)\]\((.*?)\)/gim, (e, t, n) => nt(n) ? `<a href="${n}">${t}</a>` : t);
1296
+ function Dt(e) {
1297
+ return e.replace(/\[(.*?)\]\((.*?)\)/gim, (e, t, n) => L(n) ? `<a href="${n}">${t}</a>` : t);
1197
1298
  }
1198
- function Ct(e) {
1299
+ function Ot(e) {
1199
1300
  return e.replace(/\n\n/g, "</p><p>").replace(/<\/p><p><\/p><p>/g, "</p><p>").replace(/^<p><\/p>/, "").replace(/<p><\/p>$/, "");
1200
1301
  }
1201
- function wt(e) {
1302
+ function kt(e) {
1202
1303
  let t = e.split("\n"), n = [], r = !1, i = [];
1203
1304
  for (let e = 0; e < t.length; e++) {
1204
1305
  let a = t[e].trim(), o = /^\|.*\|$/.test(a) || /^[^|]+\|[^|]+/.test(a), s = /^\|?[\s\-:|]+\|[\s\-:|]*\|?$/.test(a);
1205
1306
  if (o || s) r || (r = !0, i = []), i.push(a);
1206
1307
  else if (!(r && a === "")) {
1207
1308
  if (r) {
1208
- let e = Tt(i);
1309
+ let e = At(i);
1209
1310
  e ? n.push(e) : n.push(...i), r = !1, i = [];
1210
1311
  }
1211
1312
  n.push(t[e]);
1212
1313
  }
1213
1314
  }
1214
1315
  if (r && i.length > 0) {
1215
- let e = Tt(i);
1316
+ let e = At(i);
1216
1317
  e ? n.push(e) : n.push(...i);
1217
1318
  }
1218
1319
  return n.join("\n");
1219
1320
  }
1220
- function Tt(e) {
1321
+ function At(e) {
1221
1322
  if (e.length < 2) return null;
1222
1323
  let t = -1;
1223
1324
  for (let n = 0; n < e.length; n++) if (/^\|?[\s\-:|]+\|[\s\-:|]*\|?$/.test(e[n]) && e[n].includes("-")) {
@@ -1225,42 +1326,42 @@ function Tt(e) {
1225
1326
  break;
1226
1327
  }
1227
1328
  if (t === -1 || t === 0) return null;
1228
- let n = K(e[t]).map((e) => {
1329
+ let n = jt(e[t]).map((e) => {
1229
1330
  let t = e.trim(), n = t.startsWith(":"), r = t.endsWith(":");
1230
1331
  return n && r ? "center" : r ? "right" : "left";
1231
1332
  }), r = e.slice(0, t), i = e.slice(t + 1), a = "<div class=\"md-table-wrapper\"><table class=\"md-table\">";
1232
1333
  a += "<thead>";
1233
1334
  for (let e of r) {
1234
- let t = K(e);
1335
+ let t = jt(e);
1235
1336
  a += "<tr>", t.forEach((e, t) => {
1236
1337
  let r = n[t] || "left";
1237
- a += `<th style="text-align: ${r}">${Qe(e.trim())}</th>`;
1338
+ a += `<th style="text-align: ${r}">${I(e.trim())}</th>`;
1238
1339
  }), a += "</tr>";
1239
1340
  }
1240
1341
  if (a += "</thead>", i.length > 0) {
1241
1342
  a += "<tbody>";
1242
1343
  for (let e of i) {
1243
- let t = K(e);
1344
+ let t = jt(e);
1244
1345
  a += "<tr>", t.forEach((e, t) => {
1245
1346
  let r = n[t] || "left";
1246
- a += `<td style="text-align: ${r}">${Qe(e.trim())}</td>`;
1347
+ a += `<td style="text-align: ${r}">${I(e.trim())}</td>`;
1247
1348
  }), a += "</tr>";
1248
1349
  }
1249
1350
  a += "</tbody>";
1250
1351
  }
1251
1352
  return a += "</table></div>", a;
1252
1353
  }
1253
- function K(e) {
1354
+ function jt(e) {
1254
1355
  let t = e.trim();
1255
1356
  return t.startsWith("|") && (t = t.substring(1)), t.endsWith("|") && (t = t.substring(0, t.length - 1)), t.split("|");
1256
1357
  }
1257
- function Et(e, t) {
1358
+ function Mt(e, t) {
1258
1359
  let n = e;
1259
1360
  return Object.keys(t).forEach((e) => {
1260
1361
  n = n.replace(e, t[e]);
1261
1362
  }), n;
1262
1363
  }
1263
- function q(e) {
1364
+ function Nt(e) {
1264
1365
  let t = {}, n = 0;
1265
1366
  return {
1266
1367
  html: e.replace(/<span class="loading-pill"[^>]*><\/span>​?/g, (e) => {
@@ -1270,30 +1371,30 @@ function q(e) {
1270
1371
  placeholders: t
1271
1372
  };
1272
1373
  }
1273
- function J(e) {
1274
- let { html: t, placeholders: n } = vt(e), { html: r, placeholders: i } = _t(t), { html: a, placeholders: o } = q(r), s = {}, c = 0, l = a.replace(/\{([^{}]+)\}/g, (e) => {
1374
+ function q(e) {
1375
+ let { html: t, placeholders: n } = Ct(e), { html: r, placeholders: i } = G(t), { html: a, placeholders: o } = Nt(r), s = {}, c = 0, l = a.replace(/\{([^{}]+)\}/g, (e) => {
1275
1376
  let t = `__TEMPLATEEXPR_${c}__`;
1276
1377
  return s[t] = e, c++, t;
1277
1378
  });
1278
- return l = yt(l), l = wt(l), l = bt(l), l = G(l), l = xt(l), l = St(l), l = Ct(l), Object.keys(s).forEach((e) => {
1379
+ return l = wt(l), l = kt(l), l = Tt(l), l = Et(l), l = K(l), l = Dt(l), l = Ot(l), Object.keys(s).forEach((e) => {
1279
1380
  l = l.replace(e, s[e]);
1280
- }), l = Et(l, n), l = Et(l, i), l = Et(l, o), l;
1381
+ }), l = Mt(l, n), l = Mt(l, i), l = Mt(l, o), l;
1281
1382
  }
1282
- function Dt(e, t = null, n = !1) {
1383
+ function J(e, t = null, n = !1) {
1283
1384
  if (!e) return "";
1284
- let r = {}, i = 0, a = gt(e.replace(/```(\w+)?\n?([\s\S]*?)```/g, (e) => {
1385
+ let r = {}, i = 0, a = xt(e.replace(/```(\w+)?\n?([\s\S]*?)```/g, (e) => {
1285
1386
  let t = `__CODEBLOCK_${i}__`;
1286
1387
  return r[t] = e, i++, t;
1287
1388
  }), t, n);
1288
1389
  Object.keys(r).forEach((e) => {
1289
1390
  a = a.replace(e, r[e]);
1290
- }), a = J(a);
1291
- let o = et(a);
1292
- return n ? at() + o : o;
1391
+ }), a = q(a);
1392
+ let o = it(a);
1393
+ return n ? lt() + o : o;
1293
1394
  }
1294
1395
  //#endregion
1295
1396
  //#region components/MarkdownRenderer.vue?vue&type=script&lang.ts
1296
- var Ot = o({
1397
+ var Pt = o({
1297
1398
  name: "MarkdownRenderer",
1298
1399
  props: {
1299
1400
  markdown: {
@@ -1311,8 +1412,8 @@ var Ot = o({
1311
1412
  }
1312
1413
  },
1313
1414
  setup(e) {
1314
- let t = c(null), i = r(() => Dt(e.markdown, e.results, e.loading));
1315
- return n(t, {
1415
+ let n = c(null), i = r(() => J(e.markdown, e.results, e.loading));
1416
+ return t(n, {
1316
1417
  selector: "pre code[class*=\"language-\"]",
1317
1418
  onHighlighted: (e) => {
1318
1419
  e.querySelectorAll(".markdown-copy-button").forEach((e) => {
@@ -1332,18 +1433,18 @@ var Ot = o({
1332
1433
  },
1333
1434
  watchSources: [i]
1334
1435
  }), {
1335
- markdownRoot: t,
1436
+ markdownRoot: n,
1336
1437
  renderedMarkdown: i
1337
1438
  };
1338
1439
  }
1339
- }), kt = { class: "markdown-content" }, At = ["innerHTML"];
1340
- function jt(e, t, n, r, o, c) {
1341
- return s(), i("div", kt, [a("div", {
1440
+ }), Ft = { class: "markdown-content" }, It = ["innerHTML"];
1441
+ function Lt(e, t, n, r, o, c) {
1442
+ return s(), i("div", Ft, [a("div", {
1342
1443
  ref: "markdownRoot",
1343
1444
  class: "rendered-markdown",
1344
1445
  innerHTML: e.renderedMarkdown
1345
- }, null, 8, At)]);
1446
+ }, null, 8, It)]);
1346
1447
  }
1347
- var Mt = /*#__PURE__*/ e(Ot, [["render", jt], ["__scopeId", "data-v-2039fbc8"]]);
1448
+ var Rt = /*#__PURE__*/ e(Pt, [["render", Lt], ["__scopeId", "data-v-2039fbc8"]]);
1348
1449
  //#endregion
1349
- export { Mt as t };
1450
+ export { Rt as t };