@w6w/ui 0.2.0 → 0.2.54

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 (160) hide show
  1. package/CHANGELOG.md +146 -2
  2. package/README.md +28 -10
  3. package/dist/AppPicker.d.ts +58 -2
  4. package/dist/CanvasContextMenu.d.ts +19 -0
  5. package/dist/CanvasLayer.d.ts +38 -0
  6. package/dist/{CodeBlock-Dot3Pd7P.js → CodeBlock-C-oIIYfC.js} +1436 -555
  7. package/dist/CodeBlock-C-oIIYfC.js.map +1 -0
  8. package/dist/CodeBlock-CymlfyeA.cjs +15 -0
  9. package/dist/CodeBlock-CymlfyeA.cjs.map +1 -0
  10. package/dist/CodeEditor.d.ts +4 -1
  11. package/dist/ConditionEditor.d.ts +11 -0
  12. package/dist/EditConnectionModal.d.ts +6 -1
  13. package/dist/JsonEditor.d.ts +20 -0
  14. package/dist/Markdown.d.ts +25 -0
  15. package/dist/ParamCustomization.d.ts +5 -0
  16. package/dist/ParamsForm.d.ts +18 -4
  17. package/dist/RouterEditor.d.ts +5 -0
  18. package/dist/StepBuilderModal.d.ts +103 -15
  19. package/dist/StepNameEditor.d.ts +11 -0
  20. package/dist/StopEditor.d.ts +5 -0
  21. package/dist/TriggerFillForm.d.ts +14 -1
  22. package/dist/WebhookListenPanel.d.ts +28 -0
  23. package/dist/WorkflowConnections.d.ts +29 -0
  24. package/dist/WorkflowFlowEditor.d.ts +74 -7
  25. package/dist/app-pages.d.ts +2 -0
  26. package/dist/assets/script-completion.worker-DDJKkj5M.js +8290 -0
  27. package/dist/assets/script-completion.worker-DDJKkj5M.js.map +1 -0
  28. package/dist/canvas-context-menu.d.ts +27 -0
  29. package/dist/canvas-types.d.ts +36 -0
  30. package/dist/canvas-utils.d.ts +44 -0
  31. package/dist/code.cjs +1 -1
  32. package/dist/code.mjs +3 -4
  33. package/dist/code.mjs.map +1 -1
  34. package/dist/components/AnchoredFlyout.d.ts +7 -0
  35. package/dist/components/AuthFieldsForm.d.ts +11 -0
  36. package/dist/components/BudgetMeter.d.ts +15 -0
  37. package/dist/components/CallableList.d.ts +3 -2
  38. package/dist/components/ColumnsEditor.d.ts +27 -0
  39. package/dist/components/Combobox.d.ts +19 -1
  40. package/dist/components/ConnectionList.d.ts +2 -3
  41. package/dist/components/CredentialPicker.d.ts +35 -0
  42. package/dist/components/CsvPanel.d.ts +21 -0
  43. package/dist/components/DataEntryEditor.d.ts +38 -0
  44. package/dist/components/DataEntryList.d.ts +33 -0
  45. package/dist/components/DataStoreList.d.ts +33 -0
  46. package/dist/components/DataTable.d.ts +27 -0
  47. package/dist/components/DataTableGrid.d.ts +46 -0
  48. package/dist/components/EmptyState.d.ts +9 -0
  49. package/dist/components/EventbriteTriggerPicker.d.ts +7 -0
  50. package/dist/components/ExecutionDetail.d.ts +17 -1
  51. package/dist/components/ExecutionList.d.ts +19 -1
  52. package/dist/components/ExecutionLogPanel.d.ts +61 -3
  53. package/dist/components/ExpressionEditorModal.d.ts +33 -10
  54. package/dist/components/ExpressionOptions.d.ts +101 -15
  55. package/dist/components/HtmlPreview.d.ts +7 -0
  56. package/dist/components/JsonTree.d.ts +32 -0
  57. package/dist/components/ResolvedParams.d.ts +6 -1
  58. package/dist/components/ResultViewer.d.ts +46 -0
  59. package/dist/components/ScriptBindingsNotice.d.ts +31 -0
  60. package/dist/components/ScriptCodeField.d.ts +13 -0
  61. package/dist/components/StepStatusPill.d.ts +7 -0
  62. package/dist/components/expression-authoring.d.ts +13 -0
  63. package/dist/components/expression-dom.d.ts +17 -2
  64. package/dist/components/expression-template.d.ts +25 -3
  65. package/dist/components/icons.d.ts +1 -1
  66. package/dist/components/json-compose.d.ts +53 -0
  67. package/dist/components/result-format.d.ts +13 -0
  68. package/dist/condition-editor.d.ts +44 -0
  69. package/dist/data-stores/data-store-view.d.ts +371 -0
  70. package/dist/dynamic-fields.d.ts +60 -0
  71. package/dist/editor-theme.d.ts +24 -0
  72. package/dist/eventbrite-trigger-selection.d.ts +13 -0
  73. package/dist/flow-connect.d.ts +22 -16
  74. package/dist/flow-delete.d.ts +16 -0
  75. package/dist/flow-fanout.d.ts +2 -2
  76. package/dist/flow-history.d.ts +75 -0
  77. package/dist/flow-layout.d.ts +13 -0
  78. package/dist/flow-loop-colors.d.ts +39 -0
  79. package/dist/flow-loop.d.ts +98 -0
  80. package/dist/flow-node-flags.d.ts +14 -0
  81. package/dist/flow-problems.d.ts +69 -0
  82. package/dist/flow-state.d.ts +20 -0
  83. package/dist/flow-types.d.ts +155 -10
  84. package/dist/flow-utils.d.ts +33 -12
  85. package/dist/flow.cjs +4 -2
  86. package/dist/flow.cjs.map +1 -1
  87. package/dist/flow.d.ts +15 -2
  88. package/dist/flow.mjs +3737 -1350
  89. package/dist/flow.mjs.map +1 -1
  90. package/dist/index.cjs +2 -1
  91. package/dist/index.cjs.map +1 -1
  92. package/dist/index.d.ts +43 -5
  93. package/dist/index.mjs +2855 -1333
  94. package/dist/index.mjs.map +1 -1
  95. package/dist/node-samples-ChdyMBnJ.cjs +22 -0
  96. package/dist/node-samples-ChdyMBnJ.cjs.map +1 -0
  97. package/dist/node-samples-DkJL07EX.js +12302 -0
  98. package/dist/node-samples-DkJL07EX.js.map +1 -0
  99. package/dist/node-samples.d.ts +80 -0
  100. package/dist/note-markdown.d.ts +22 -0
  101. package/dist/output-shape.d.ts +30 -14
  102. package/dist/param-customization.d.ts +7 -0
  103. package/dist/provider.d.ts +174 -13
  104. package/dist/resolve-params.d.ts +50 -11
  105. package/dist/run-visuals.d.ts +18 -22
  106. package/dist/script-bindings.d.ts +63 -0
  107. package/dist/script-completion-service.d.ts +9 -0
  108. package/dist/script-completion.worker.d.ts +1 -0
  109. package/dist/script-completions.d.ts +2 -0
  110. package/dist/state-shape.d.ts +38 -0
  111. package/dist/step-preview-state.d.ts +155 -6
  112. package/dist/step-problems.d.ts +64 -0
  113. package/dist/test-inputs.d.ts +25 -0
  114. package/dist/trigger-registration.d.ts +28 -0
  115. package/dist/types.d.ts +179 -11
  116. package/dist/use-app-action-defs.d.ts +9 -1
  117. package/dist/use-dynamic-fields.d.ts +23 -0
  118. package/dist/use-test-input.d.ts +18 -0
  119. package/dist/workflow-connections.d.ts +30 -0
  120. package/package.json +18 -7
  121. package/src/code.css +60 -6
  122. package/src/styles/_budget-meter.scss +46 -0
  123. package/src/styles/_callable-list.scss +15 -6
  124. package/src/styles/_canvas.scss +353 -0
  125. package/src/styles/_code-editor.scss +35 -0
  126. package/src/styles/_code.scss +6 -5
  127. package/src/styles/_connections.scss +2 -14
  128. package/src/styles/_copyable.scss +24 -0
  129. package/src/styles/_data-stores.scss +138 -0
  130. package/src/styles/_data-table.scss +55 -0
  131. package/src/styles/_data-vars.scss +17 -6
  132. package/src/styles/_empty-state.scss +21 -0
  133. package/src/styles/_execution-history.scss +73 -0
  134. package/src/styles/_execution-log.scss +145 -1
  135. package/src/styles/_expression-modal.scss +106 -16
  136. package/src/styles/_fields.scss +11 -0
  137. package/src/styles/_flow.scss +171 -0
  138. package/src/styles/_fx.scss +26 -1
  139. package/src/styles/_incoming-state.scss +33 -0
  140. package/src/styles/_layout.scss +10 -0
  141. package/src/styles/_markdown.scss +20 -0
  142. package/src/styles/_modal.scss +12 -0
  143. package/src/styles/_multiselect.scss +35 -0
  144. package/src/styles/_sections.scss +36 -0
  145. package/src/styles/_step-builder.scss +145 -0
  146. package/src/styles/_tester.scss +57 -14
  147. package/src/styles/_tokens.scss +27 -1
  148. package/src/styles.css +1861 -115
  149. package/src/styles.scss +7 -0
  150. package/dist/CodeBlock-CZu4TFSi.cjs +0 -15
  151. package/dist/CodeBlock-CZu4TFSi.cjs.map +0 -1
  152. package/dist/CodeBlock-Dot3Pd7P.js.map +0 -1
  153. package/dist/ConfirmModal-ChoiGy2K.cjs +0 -11
  154. package/dist/ConfirmModal-ChoiGy2K.cjs.map +0 -1
  155. package/dist/ConfirmModal-Wx3i8F1n.js +0 -6359
  156. package/dist/ConfirmModal-Wx3i8F1n.js.map +0 -1
  157. package/dist/Copyable-1niV9gUa.js +0 -771
  158. package/dist/Copyable-1niV9gUa.js.map +0 -1
  159. package/dist/Copyable-CYZU1o4X.cjs +0 -2
  160. package/dist/Copyable-CYZU1o4X.cjs.map +0 -1
@@ -1,55 +1,54 @@
1
- import { jsx as $ } from "react/jsx-runtime";
2
- import { createElement as K, useCallback as V, useMemo as ge } from "react";
3
- import { C as de } from "./Copyable-1niV9gUa.js";
4
- function re(e) {
5
- var t, a, l = "";
1
+ import { jsxs as x, Fragment as h, jsx as t } from "react/jsx-runtime";
2
+ import { createElement as Q, useCallback as j, useMemo as ve, useId as ke, useState as we, useRef as se, useEffect as ie } from "react";
3
+ function le(e) {
4
+ var a, r, l = "";
6
5
  if (typeof e == "string" || typeof e == "number") l += e;
7
6
  else if (typeof e == "object") if (Array.isArray(e)) {
8
- var c = e.length;
9
- for (t = 0; t < c; t++) e[t] && (a = re(e[t])) && (l && (l += " "), l += a);
10
- } else for (a in e) e[a] && (l && (l += " "), l += a);
7
+ var u = e.length;
8
+ for (a = 0; a < u; a++) e[a] && (r = le(e[a])) && (l && (l += " "), l += r);
9
+ } else for (r in e) e[r] && (l && (l += " "), l += r);
11
10
  return l;
12
11
  }
13
- function oe() {
14
- for (var e, t, a = 0, l = "", c = arguments.length; a < c; a++) (e = arguments[a]) && (t = re(e)) && (l && (l += " "), l += t);
12
+ function ce() {
13
+ for (var e, a, r = 0, l = "", u = arguments.length; r < u; r++) (e = arguments[r]) && (a = le(e)) && (l && (l += " "), l += a);
15
14
  return l;
16
15
  }
17
- var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties, be = Object.getOwnPropertyDescriptor, me = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertyNames, G = Object.getOwnPropertySymbols, he = Object.getPrototypeOf, X = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable, ee = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, C = (e, t) => {
18
- for (var a in t || (t = {}))
19
- X.call(t, a) && ee(e, a, t[a]);
20
- if (G)
21
- for (var a of G(t))
22
- le.call(t, a) && ee(e, a, t[a]);
16
+ var xe = Object.create, V = Object.defineProperty, Ee = Object.defineProperties, Ae = Object.getOwnPropertyDescriptor, Se = Object.getOwnPropertyDescriptors, ue = Object.getOwnPropertyNames, W = Object.getOwnPropertySymbols, _e = Object.getPrototypeOf, J = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable, ae = (e, a, r) => a in e ? V(e, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[a] = r, M = (e, a) => {
17
+ for (var r in a || (a = {}))
18
+ J.call(a, r) && ae(e, r, a[r]);
19
+ if (W)
20
+ for (var r of W(a))
21
+ pe.call(a, r) && ae(e, r, a[r]);
23
22
  return e;
24
- }, q = (e, t) => fe(e, me(t)), ie = (e, t) => {
25
- var a = {};
23
+ }, q = (e, a) => Ee(e, Se(a)), de = (e, a) => {
24
+ var r = {};
26
25
  for (var l in e)
27
- X.call(e, l) && t.indexOf(l) < 0 && (a[l] = e[l]);
28
- if (e != null && G)
29
- for (var l of G(e))
30
- t.indexOf(l) < 0 && le.call(e, l) && (a[l] = e[l]);
31
- return a;
32
- }, ve = (e, t) => function() {
33
- return t || (0, e[se(e)[0]])((t = { exports: {} }).exports, t), t.exports;
34
- }, we = (e, t) => {
35
- for (var a in t)
36
- Z(e, a, { get: t[a], enumerable: !0 });
37
- }, ke = (e, t, a, l) => {
38
- if (t && typeof t == "object" || typeof t == "function")
39
- for (let c of se(t))
40
- !X.call(e, c) && c !== a && Z(e, c, { get: () => t[c], enumerable: !(l = be(t, c)) || l.enumerable });
26
+ J.call(e, l) && a.indexOf(l) < 0 && (r[l] = e[l]);
27
+ if (e != null && W)
28
+ for (var l of W(e))
29
+ a.indexOf(l) < 0 && pe.call(e, l) && (r[l] = e[l]);
30
+ return r;
31
+ }, Fe = (e, a) => function() {
32
+ return a || (0, e[ue(e)[0]])((a = { exports: {} }).exports, a), a.exports;
33
+ }, Te = (e, a) => {
34
+ for (var r in a)
35
+ V(e, r, { get: a[r], enumerable: !0 });
36
+ }, Re = (e, a, r, l) => {
37
+ if (a && typeof a == "object" || typeof a == "function")
38
+ for (let u of ue(a))
39
+ !J.call(e, u) && u !== r && V(e, u, { get: () => a[u], enumerable: !(l = Ae(a, u)) || l.enumerable });
41
40
  return e;
42
- }, Ee = (e, t, a) => (a = e != null ? ye(he(e)) : {}, ke(
41
+ }, Le = (e, a, r) => (r = e != null ? xe(_e(e)) : {}, Re(
43
42
  // If the importer is in node compatibility mode or this is not an ESM
44
43
  // file that has been converted to a CommonJS file using a Babel-
45
44
  // compatible transform (i.e. "__esModule" has not been set), then set
46
45
  // "default" to the CommonJS "module.exports" for node compatibility.
47
- !e || !e.__esModule ? Z(a, "default", { value: e, enumerable: !0 }) : a,
46
+ !e || !e.__esModule ? V(r, "default", { value: e, enumerable: !0 }) : r,
48
47
  e
49
- )), xe = ve({
50
- "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
51
- var a = (function() {
52
- var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, c = 0, h = {}, p = {
48
+ )), Be = Fe({
49
+ "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, a) {
50
+ var r = (function() {
51
+ var l = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, u = 0, k = {}, p = {
53
52
  /**
54
53
  * A namespace for utility methods.
55
54
  *
@@ -60,8 +59,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
60
59
  * @memberof Prism
61
60
  */
62
61
  util: {
63
- encode: function o(r) {
64
- return r instanceof m ? new m(r.type, o(r.content), r.alias) : Array.isArray(r) ? r.map(o) : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
62
+ encode: function n(o) {
63
+ return o instanceof v ? new v(o.type, n(o.content), o.alias) : Array.isArray(o) ? o.map(n) : o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
65
64
  },
66
65
  /**
67
66
  * Returns the name of the type of the given value.
@@ -79,8 +78,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
79
78
  * type(String) === 'Function'
80
79
  * type(/abc+/) === 'RegExp'
81
80
  */
82
- type: function(o) {
83
- return Object.prototype.toString.call(o).slice(8, -1);
81
+ type: function(n) {
82
+ return Object.prototype.toString.call(n).slice(8, -1);
84
83
  },
85
84
  /**
86
85
  * Returns a unique number for the given object. Later calls will still return the same number.
@@ -88,8 +87,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
88
87
  * @param {Object} obj
89
88
  * @returns {number}
90
89
  */
91
- objId: function(o) {
92
- return o.__id || Object.defineProperty(o, "__id", { value: ++c }), o.__id;
90
+ objId: function(n) {
91
+ return n.__id || Object.defineProperty(n, "__id", { value: ++u }), n.__id;
93
92
  },
94
93
  /**
95
94
  * Creates a deep clone of the given object.
@@ -101,28 +100,28 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
101
100
  * @returns {T}
102
101
  * @template T
103
102
  */
104
- clone: function o(r, s) {
105
- s = s || {};
106
- var u, i;
107
- switch (p.util.type(r)) {
103
+ clone: function n(o, i) {
104
+ i = i || {};
105
+ var y, c;
106
+ switch (p.util.type(o)) {
108
107
  case "Object":
109
- if (i = p.util.objId(r), s[i])
110
- return s[i];
111
- u = /** @type {Record<string, any>} */
112
- {}, s[i] = u;
113
- for (var y in r)
114
- r.hasOwnProperty(y) && (u[y] = o(r[y], s));
108
+ if (c = p.util.objId(o), i[c])
109
+ return i[c];
110
+ y = /** @type {Record<string, any>} */
111
+ {}, i[c] = y;
112
+ for (var b in o)
113
+ o.hasOwnProperty(b) && (y[b] = n(o[b], i));
115
114
  return (
116
115
  /** @type {any} */
117
- u
116
+ y
118
117
  );
119
118
  case "Array":
120
- return i = p.util.objId(r), s[i] ? s[i] : (u = [], s[i] = u, r.forEach(function(w, k) {
121
- u[k] = o(w, s);
119
+ return c = p.util.objId(o), i[c] ? i[c] : (y = [], i[c] = y, o.forEach(function(E, S) {
120
+ y[S] = n(E, i);
122
121
  }), /** @type {any} */
123
- u);
122
+ y);
124
123
  default:
125
- return r;
124
+ return o;
126
125
  }
127
126
  },
128
127
  /**
@@ -133,12 +132,12 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
133
132
  * @param {Element} element
134
133
  * @returns {string}
135
134
  */
136
- getLanguage: function(o) {
137
- for (; o; ) {
138
- var r = l.exec(o.className);
139
- if (r)
140
- return r[1].toLowerCase();
141
- o = o.parentElement;
135
+ getLanguage: function(n) {
136
+ for (; n; ) {
137
+ var o = l.exec(n.className);
138
+ if (o)
139
+ return o[1].toLowerCase();
140
+ n = n.parentElement;
142
141
  }
143
142
  return "none";
144
143
  },
@@ -149,8 +148,8 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
149
148
  * @param {string} language
150
149
  * @returns {void}
151
150
  */
152
- setLanguage: function(o, r) {
153
- o.className = o.className.replace(RegExp(l, "gi"), ""), o.classList.add("language-" + r);
151
+ setLanguage: function(n, o) {
152
+ n.className = n.className.replace(RegExp(l, "gi"), ""), n.classList.add("language-" + o);
154
153
  },
155
154
  /**
156
155
  * Returns whether a given class is active for `element`.
@@ -171,16 +170,16 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
171
170
  * @param {boolean} [defaultActivation=false]
172
171
  * @returns {boolean}
173
172
  */
174
- isActive: function(o, r, s) {
175
- for (var u = "no-" + r; o; ) {
176
- var i = o.classList;
177
- if (i.contains(r))
173
+ isActive: function(n, o, i) {
174
+ for (var y = "no-" + o; n; ) {
175
+ var c = n.classList;
176
+ if (c.contains(o))
178
177
  return !0;
179
- if (i.contains(u))
178
+ if (c.contains(y))
180
179
  return !1;
181
- o = o.parentElement;
180
+ n = n.parentElement;
182
181
  }
183
- return !!s;
182
+ return !!i;
184
183
  }
185
184
  },
186
185
  /**
@@ -194,10 +193,10 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
194
193
  /**
195
194
  * The grammar for plain, unformatted text.
196
195
  */
197
- plain: h,
198
- plaintext: h,
199
- text: h,
200
- txt: h,
196
+ plain: k,
197
+ plaintext: k,
198
+ text: k,
199
+ txt: k,
201
200
  /**
202
201
  * Creates a deep copy of the language with the given id and appends the given tokens.
203
202
  *
@@ -226,11 +225,11 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
226
225
  * 'color': /\b(?:red|green|blue)\b/
227
226
  * });
228
227
  */
229
- extend: function(o, r) {
230
- var s = p.util.clone(p.languages[o]);
231
- for (var u in r)
232
- s[u] = r[u];
233
- return s;
228
+ extend: function(n, o) {
229
+ var i = p.util.clone(p.languages[n]);
230
+ for (var y in o)
231
+ i[y] = o[y];
232
+ return i;
234
233
  },
235
234
  /**
236
235
  * Inserts tokens _before_ another token in a language definition or any other grammar.
@@ -307,31 +306,31 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
307
306
  * @returns {Grammar} The new grammar object.
308
307
  * @public
309
308
  */
310
- insertBefore: function(o, r, s, u) {
311
- u = u || /** @type {any} */
309
+ insertBefore: function(n, o, i, y) {
310
+ y = y || /** @type {any} */
312
311
  p.languages;
313
- var i = u[o], y = {};
314
- for (var w in i)
315
- if (i.hasOwnProperty(w)) {
316
- if (w == r)
317
- for (var k in s)
318
- s.hasOwnProperty(k) && (y[k] = s[k]);
319
- s.hasOwnProperty(w) || (y[w] = i[w]);
312
+ var c = y[n], b = {};
313
+ for (var E in c)
314
+ if (c.hasOwnProperty(E)) {
315
+ if (E == o)
316
+ for (var S in i)
317
+ i.hasOwnProperty(S) && (b[S] = i[S]);
318
+ i.hasOwnProperty(E) || (b[E] = c[E]);
320
319
  }
321
- var A = u[o];
322
- return u[o] = y, p.languages.DFS(p.languages, function(x, S) {
323
- S === A && x != o && (this[x] = y);
324
- }), y;
320
+ var F = y[n];
321
+ return y[n] = b, p.languages.DFS(p.languages, function(_, T) {
322
+ T === F && _ != n && (this[_] = b);
323
+ }), b;
325
324
  },
326
325
  // Traverse a language definition with Depth First Search
327
- DFS: function o(r, s, u, i) {
328
- i = i || {};
329
- var y = p.util.objId;
330
- for (var w in r)
331
- if (r.hasOwnProperty(w)) {
332
- s.call(r, w, r[w], u || w);
333
- var k = r[w], A = p.util.type(k);
334
- A === "Object" && !i[y(k)] ? (i[y(k)] = !0, o(k, s, null, i)) : A === "Array" && !i[y(k)] && (i[y(k)] = !0, o(k, s, w, i));
326
+ DFS: function n(o, i, y, c) {
327
+ c = c || {};
328
+ var b = p.util.objId;
329
+ for (var E in o)
330
+ if (o.hasOwnProperty(E)) {
331
+ i.call(o, E, o[E], y || E);
332
+ var S = o[E], F = p.util.type(S);
333
+ F === "Object" && !c[b(S)] ? (c[b(S)] = !0, n(S, i, null, c)) : F === "Array" && !c[b(S)] && (c[b(S)] = !0, n(S, i, E, c));
335
334
  }
336
335
  }
337
336
  },
@@ -356,15 +355,15 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
356
355
  * @example
357
356
  * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
358
357
  */
359
- highlight: function(o, r, s) {
360
- var u = {
361
- code: o,
362
- grammar: r,
363
- language: s
358
+ highlight: function(n, o, i) {
359
+ var y = {
360
+ code: n,
361
+ grammar: o,
362
+ language: i
364
363
  };
365
- if (p.hooks.run("before-tokenize", u), !u.grammar)
366
- throw new Error('The language "' + u.language + '" has no grammar.');
367
- return u.tokens = p.tokenize(u.code, u.grammar), p.hooks.run("after-tokenize", u), m.stringify(p.util.encode(u.tokens), u.language);
364
+ if (p.hooks.run("before-tokenize", y), !y.grammar)
365
+ throw new Error('The language "' + y.language + '" has no grammar.');
366
+ return y.tokens = p.tokenize(y.code, y.grammar), p.hooks.run("after-tokenize", y), v.stringify(p.util.encode(y.tokens), y.language);
368
367
  },
369
368
  /**
370
369
  * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
@@ -390,15 +389,15 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
390
389
  * }
391
390
  * });
392
391
  */
393
- tokenize: function(o, r) {
394
- var s = r.rest;
395
- if (s) {
396
- for (var u in s)
397
- r[u] = s[u];
398
- delete r.rest;
392
+ tokenize: function(n, o) {
393
+ var i = o.rest;
394
+ if (i) {
395
+ for (var y in i)
396
+ o[y] = i[y];
397
+ delete o.rest;
399
398
  }
400
- var i = new b();
401
- return f(i, i.head, o), d(o, i, r, i.head, 0), E(i);
399
+ var c = new m();
400
+ return d(c, c.head, n), f(n, c, o, c.head, 0), A(c);
402
401
  },
403
402
  /**
404
403
  * @namespace
@@ -419,9 +418,9 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
419
418
  * @param {HookCallback} callback The callback function which is given environment variables.
420
419
  * @public
421
420
  */
422
- add: function(o, r) {
423
- var s = p.hooks.all;
424
- s[o] = s[o] || [], s[o].push(r);
421
+ add: function(n, o) {
422
+ var i = p.hooks.all;
423
+ i[n] = i[n] || [], i[n].push(o);
425
424
  },
426
425
  /**
427
426
  * Runs a hook invoking all registered callbacks with the given environment variables.
@@ -432,416 +431,416 @@ var ye = Object.create, Z = Object.defineProperty, fe = Object.defineProperties,
432
431
  * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
433
432
  * @public
434
433
  */
435
- run: function(o, r) {
436
- var s = p.hooks.all[o];
437
- if (!(!s || !s.length))
438
- for (var u = 0, i; i = s[u++]; )
439
- i(r);
434
+ run: function(n, o) {
435
+ var i = p.hooks.all[n];
436
+ if (!(!i || !i.length))
437
+ for (var y = 0, c; c = i[y++]; )
438
+ c(o);
440
439
  }
441
440
  },
442
- Token: m
441
+ Token: v
443
442
  };
444
- function m(o, r, s, u) {
445
- this.type = o, this.content = r, this.alias = s, this.length = (u || "").length | 0;
446
- }
447
- m.stringify = function o(r, s) {
448
- if (typeof r == "string")
449
- return r;
450
- if (Array.isArray(r)) {
451
- var u = "";
452
- return r.forEach(function(A) {
453
- u += o(A, s);
454
- }), u;
443
+ function v(n, o, i, y) {
444
+ this.type = n, this.content = o, this.alias = i, this.length = (y || "").length | 0;
445
+ }
446
+ v.stringify = function n(o, i) {
447
+ if (typeof o == "string")
448
+ return o;
449
+ if (Array.isArray(o)) {
450
+ var y = "";
451
+ return o.forEach(function(F) {
452
+ y += n(F, i);
453
+ }), y;
455
454
  }
456
- var i = {
457
- type: r.type,
458
- content: o(r.content, s),
455
+ var c = {
456
+ type: o.type,
457
+ content: n(o.content, i),
459
458
  tag: "span",
460
- classes: ["token", r.type],
459
+ classes: ["token", o.type],
461
460
  attributes: {},
462
- language: s
463
- }, y = r.alias;
464
- y && (Array.isArray(y) ? Array.prototype.push.apply(i.classes, y) : i.classes.push(y)), p.hooks.run("wrap", i);
465
- var w = "";
466
- for (var k in i.attributes)
467
- w += " " + k + '="' + (i.attributes[k] || "").replace(/"/g, "&quot;") + '"';
468
- return "<" + i.tag + ' class="' + i.classes.join(" ") + '"' + w + ">" + i.content + "</" + i.tag + ">";
461
+ language: i
462
+ }, b = o.alias;
463
+ b && (Array.isArray(b) ? Array.prototype.push.apply(c.classes, b) : c.classes.push(b)), p.hooks.run("wrap", c);
464
+ var E = "";
465
+ for (var S in c.attributes)
466
+ E += " " + S + '="' + (c.attributes[S] || "").replace(/"/g, "&quot;") + '"';
467
+ return "<" + c.tag + ' class="' + c.classes.join(" ") + '"' + E + ">" + c.content + "</" + c.tag + ">";
469
468
  };
470
- function g(o, r, s, u) {
471
- o.lastIndex = r;
472
- var i = o.exec(s);
473
- if (i && u && i[1]) {
474
- var y = i[1].length;
475
- i.index += y, i[0] = i[0].slice(y);
469
+ function g(n, o, i, y) {
470
+ n.lastIndex = o;
471
+ var c = n.exec(i);
472
+ if (c && y && c[1]) {
473
+ var b = c[1].length;
474
+ c.index += b, c[0] = c[0].slice(b);
476
475
  }
477
- return i;
478
- }
479
- function d(o, r, s, u, i, y) {
480
- for (var w in s)
481
- if (!(!s.hasOwnProperty(w) || !s[w])) {
482
- var k = s[w];
483
- k = Array.isArray(k) ? k : [k];
484
- for (var A = 0; A < k.length; ++A) {
485
- if (y && y.cause == w + "," + A)
476
+ return c;
477
+ }
478
+ function f(n, o, i, y, c, b) {
479
+ for (var E in i)
480
+ if (!(!i.hasOwnProperty(E) || !i[E])) {
481
+ var S = i[E];
482
+ S = Array.isArray(S) ? S : [S];
483
+ for (var F = 0; F < S.length; ++F) {
484
+ if (b && b.cause == E + "," + F)
486
485
  return;
487
- var x = k[A], S = x.inside, _ = !!x.lookbehind, L = !!x.greedy, R = x.alias;
488
- if (L && !x.pattern.global) {
489
- var O = x.pattern.toString().match(/[imsuy]*$/)[0];
490
- x.pattern = RegExp(x.pattern.source, O + "g");
486
+ var _ = S[F], T = _.inside, R = !!_.lookbehind, O = !!_.greedy, I = _.alias;
487
+ if (O && !_.pattern.global) {
488
+ var N = _.pattern.toString().match(/[imsuy]*$/)[0];
489
+ _.pattern = RegExp(_.pattern.source, N + "g");
491
490
  }
492
- for (var Q = x.pattern || x, F = u.next, N = i; F !== r.tail && !(y && N >= y.reach); N += F.value.length, F = F.next) {
493
- var B = F.value;
494
- if (r.length > o.length)
491
+ for (var ee = _.pattern || _, L = y.next, D = c; L !== o.tail && !(b && D >= b.reach); D += L.value.length, L = L.next) {
492
+ var P = L.value;
493
+ if (o.length > n.length)
495
494
  return;
496
- if (!(B instanceof m)) {
497
- var j = 1, I;
498
- if (L) {
499
- if (I = g(Q, N, o, _), !I || I.index >= o.length)
495
+ if (!(P instanceof v)) {
496
+ var Z = 1, C;
497
+ if (O) {
498
+ if (C = g(ee, D, n, R), !C || C.index >= n.length)
500
499
  break;
501
- var z = I.index, ce = I.index + I[0].length, D = N;
502
- for (D += F.value.length; z >= D; )
503
- F = F.next, D += F.value.length;
504
- if (D -= F.value.length, N = D, F.value instanceof m)
500
+ var H = C.index, he = C.index + C[0].length, $ = D;
501
+ for ($ += L.value.length; H >= $; )
502
+ L = L.next, $ += L.value.length;
503
+ if ($ -= L.value.length, D = $, L.value instanceof v)
505
504
  continue;
506
- for (var P = F; P !== r.tail && (D < ce || typeof P.value == "string"); P = P.next)
507
- j++, D += P.value.length;
508
- j--, B = o.slice(N, D), I.index -= N;
509
- } else if (I = g(Q, 0, B, _), !I)
505
+ for (var z = L; z !== o.tail && ($ < he || typeof z.value == "string"); z = z.next)
506
+ Z++, $ += z.value.length;
507
+ Z--, P = n.slice(D, $), C.index -= D;
508
+ } else if (C = g(ee, 0, P, R), !C)
510
509
  continue;
511
- var z = I.index, M = I[0], H = B.slice(0, z), J = B.slice(z + M.length), W = N + B.length;
512
- y && W > y.reach && (y.reach = W);
513
- var U = F.prev;
514
- H && (U = f(r, U, H), N += H.length), v(r, U, j);
515
- var pe = new m(w, S ? p.tokenize(M, S) : M, R, M);
516
- if (F = f(r, U, pe), J && f(r, F, J), j > 1) {
517
- var Y = {
518
- cause: w + "," + A,
519
- reach: W
510
+ var H = C.index, U = C[0], Y = P.slice(0, H), te = P.slice(H + U.length), K = D + P.length;
511
+ b && K > b.reach && (b.reach = K);
512
+ var G = L.prev;
513
+ Y && (G = d(o, G, Y), D += Y.length), w(o, G, Z);
514
+ var me = new v(E, T ? p.tokenize(U, T) : U, I, U);
515
+ if (L = d(o, G, me), te && d(o, L, te), Z > 1) {
516
+ var X = {
517
+ cause: E + "," + F,
518
+ reach: K
520
519
  };
521
- d(o, r, s, F.prev, N, Y), y && Y.reach > y.reach && (y.reach = Y.reach);
520
+ f(n, o, i, L.prev, D, X), b && X.reach > b.reach && (b.reach = X.reach);
522
521
  }
523
522
  }
524
523
  }
525
524
  }
526
525
  }
527
526
  }
528
- function b() {
529
- var o = { value: null, prev: null, next: null }, r = { value: null, prev: o, next: null };
530
- o.next = r, this.head = o, this.tail = r, this.length = 0;
527
+ function m() {
528
+ var n = { value: null, prev: null, next: null }, o = { value: null, prev: n, next: null };
529
+ n.next = o, this.head = n, this.tail = o, this.length = 0;
531
530
  }
532
- function f(o, r, s) {
533
- var u = r.next, i = { value: s, prev: r, next: u };
534
- return r.next = i, u.prev = i, o.length++, i;
531
+ function d(n, o, i) {
532
+ var y = o.next, c = { value: i, prev: o, next: y };
533
+ return o.next = c, y.prev = c, n.length++, c;
535
534
  }
536
- function v(o, r, s) {
537
- for (var u = r.next, i = 0; i < s && u !== o.tail; i++)
538
- u = u.next;
539
- r.next = u, u.prev = r, o.length -= i;
535
+ function w(n, o, i) {
536
+ for (var y = o.next, c = 0; c < i && y !== n.tail; c++)
537
+ y = y.next;
538
+ o.next = y, y.prev = o, n.length -= c;
540
539
  }
541
- function E(o) {
542
- for (var r = [], s = o.head.next; s !== o.tail; )
543
- r.push(s.value), s = s.next;
544
- return r;
540
+ function A(n) {
541
+ for (var o = [], i = n.head.next; i !== n.tail; )
542
+ o.push(i.value), i = i.next;
543
+ return o;
545
544
  }
546
545
  return p;
547
546
  })();
548
- t.exports = a, a.default = a;
547
+ a.exports = r, r.default = r;
549
548
  }
550
- }), n = Ee(xe());
551
- n.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, n.languages.markup.tag.inside["attr-value"].inside.entity = n.languages.markup.entity, n.languages.markup.doctype.inside["internal-subset"].inside = n.languages.markup, n.hooks.add("wrap", function(e) {
549
+ }), s = Le(Be());
550
+ s.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, s.languages.markup.tag.inside["attr-value"].inside.entity = s.languages.markup.entity, s.languages.markup.doctype.inside["internal-subset"].inside = s.languages.markup, s.hooks.add("wrap", function(e) {
552
551
  e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
553
- }), Object.defineProperty(n.languages.markup.tag, "addInlined", { value: function(e, l) {
554
- var a = {}, a = (a["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: n.languages[l] }, a.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: a } }), l = (a["language-" + l] = { pattern: /[\s\S]+/, inside: n.languages[l] }, {});
552
+ }), Object.defineProperty(s.languages.markup.tag, "addInlined", { value: function(e, l) {
553
+ var r = {}, r = (r["language-" + l] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: s.languages[l] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), l = (r["language-" + l] = { pattern: /[\s\S]+/, inside: s.languages[l] }, {});
555
554
  l[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
556
555
  return e;
557
- }), "i"), lookbehind: !0, greedy: !0, inside: a }, n.languages.insertBefore("markup", "cdata", l);
558
- } }), Object.defineProperty(n.languages.markup.tag, "addAttribute", { value: function(e, t) {
559
- n.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: n.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
560
- } }), n.languages.html = n.languages.markup, n.languages.mathml = n.languages.markup, n.languages.svg = n.languages.markup, n.languages.xml = n.languages.extend("markup", {}), n.languages.ssml = n.languages.xml, n.languages.atom = n.languages.xml, n.languages.rss = n.languages.xml, (function(e) {
561
- var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, a = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, l = "(?:[^\\\\-]|" + a.source + ")", l = RegExp(l + "-" + l), c = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
562
- e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: l, inside: { escape: a, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: a } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": c } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: a, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": c } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
563
- })(n), n.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, n.languages.javascript = n.languages.extend("clike", { "class-name": [n.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), n.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, n.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: n.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: n.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: n.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: n.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: n.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), n.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: n.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), n.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), n.languages.markup && (n.languages.markup.tag.addInlined("script", "javascript"), n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), n.languages.js = n.languages.javascript, n.languages.actionscript = n.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), n.languages.actionscript["class-name"].alias = "function", delete n.languages.actionscript.parameter, delete n.languages.actionscript["literal-property"], n.languages.markup && n.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: n.languages.markup } }), (function(e) {
564
- var t = /#(?!\{).+/, a = { pattern: /#\{[^}]+\}/, alias: "variable" };
565
- e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: a } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: a } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: a } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
566
- })(n), (function(e) {
567
- var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
568
- Object.defineProperty(t, "addSupport", { value: function(a, l) {
569
- (a = typeof a == "string" ? [a] : a).forEach(function(c) {
570
- var h = function(f) {
571
- f.inside || (f.inside = {}), f.inside.rest = l;
556
+ }), "i"), lookbehind: !0, greedy: !0, inside: r }, s.languages.insertBefore("markup", "cdata", l);
557
+ } }), Object.defineProperty(s.languages.markup.tag, "addAttribute", { value: function(e, a) {
558
+ s.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [a, "language-" + a], inside: s.languages[a] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
559
+ } }), s.languages.html = s.languages.markup, s.languages.mathml = s.languages.markup, s.languages.svg = s.languages.markup, s.languages.xml = s.languages.extend("markup", {}), s.languages.ssml = s.languages.xml, s.languages.atom = s.languages.xml, s.languages.rss = s.languages.xml, (function(e) {
560
+ var a = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, l = "(?:[^\\\\-]|" + r.source + ")", l = RegExp(l + "-" + l), u = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
561
+ e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: l, inside: { escape: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": a, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "special-escape": a, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": u } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": u } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
562
+ })(s), s.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, s.languages.javascript = s.languages.extend("clike", { "class-name": [s.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), s.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, s.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: s.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: s.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: s.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: s.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: s.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), s.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: s.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), s.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), s.languages.markup && (s.languages.markup.tag.addInlined("script", "javascript"), s.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), s.languages.js = s.languages.javascript, s.languages.actionscript = s.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), s.languages.actionscript["class-name"].alias = "function", delete s.languages.actionscript.parameter, delete s.languages.actionscript["literal-property"], s.languages.markup && s.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: s.languages.markup } }), (function(e) {
563
+ var a = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
564
+ e.languages.coffeescript = e.languages.extend("javascript", { comment: a, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: a, interpolation: r } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
565
+ })(s), (function(e) {
566
+ var a = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
567
+ Object.defineProperty(a, "addSupport", { value: function(r, l) {
568
+ (r = typeof r == "string" ? [r] : r).forEach(function(u) {
569
+ var k = function(d) {
570
+ d.inside || (d.inside = {}), d.inside.rest = l;
572
571
  }, p = "doc-comment";
573
- if (m = e.languages[c]) {
574
- var m, g = m[p];
575
- if ((g = g || (m = e.languages.insertBefore(c, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[p]) instanceof RegExp && (g = m[p] = { pattern: g }), Array.isArray(g))
576
- for (var d = 0, b = g.length; d < b; d++)
577
- g[d] instanceof RegExp && (g[d] = { pattern: g[d] }), h(g[d]);
572
+ if (v = e.languages[u]) {
573
+ var v, g = v[p];
574
+ if ((g = g || (v = e.languages.insertBefore(u, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[p]) instanceof RegExp && (g = v[p] = { pattern: g }), Array.isArray(g))
575
+ for (var f = 0, m = g.length; f < m; f++)
576
+ g[f] instanceof RegExp && (g[f] = { pattern: g[f] }), k(g[f]);
578
577
  else
579
- h(g);
578
+ k(g);
580
579
  }
581
580
  });
582
- } }), t.addSupport(["java", "javascript", "php"], t);
583
- })(n), (function(e) {
584
- var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
585
- t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
586
- })(n), (function(e) {
587
- var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), a = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
588
- e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: t, number: a, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: a });
589
- })(n), (function(e) {
590
- var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", c = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
581
+ } }), a.addSupport(["java", "javascript", "php"], a);
582
+ })(s), (function(e) {
583
+ var a = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, a = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + a.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + a.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + a.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + a.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: a, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
584
+ a && (a.tag.addInlined("style", "css"), a.tag.addAttribute("style", "css"));
585
+ })(s), (function(e) {
586
+ var a = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, a = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: a = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + a.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [a, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = a, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
587
+ e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: a, number: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: a, number: r });
588
+ })(s), (function(e) {
589
+ var a = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, l = "(?:" + r.source + "(?:[ ]+" + a.source + ")?|" + a.source + "(?:[ ]+" + r.source + ")?)", u = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
591
590
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
592
- }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
593
- function p(m, g) {
591
+ }), k = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
592
+ function p(v, g) {
594
593
  g = (g || "").replace(/m/g, "") + "m";
595
- var d = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
594
+ var f = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
596
595
  return l;
597
596
  }).replace(/<<value>>/g, function() {
598
- return m;
597
+ return v;
599
598
  });
600
- return RegExp(d, g);
599
+ return RegExp(f, g);
601
600
  }
602
601
  e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
603
602
  return l;
604
603
  })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
605
604
  return l;
606
605
  }).replace(/<<key>>/g, function() {
607
- return "(?:" + c + "|" + h + ")";
608
- })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: p(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: p(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: p(h), lookbehind: !0, greedy: !0 }, number: { pattern: p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: a, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
609
- })(n), (function(e) {
610
- var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
611
- function a(d) {
612
- return d = d.replace(/<inner>/g, function() {
613
- return t;
614
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + d + ")");
606
+ return "(?:" + u + "|" + k + ")";
607
+ })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: p(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: p(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: p(k), lookbehind: !0, greedy: !0 }, number: { pattern: p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: r, important: a, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
608
+ })(s), (function(e) {
609
+ var a = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
610
+ function r(f) {
611
+ return f = f.replace(/<inner>/g, function() {
612
+ return a;
613
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + f + ")");
615
614
  }
616
- var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, c = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
615
+ var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, u = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
617
616
  return l;
618
- }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, p = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + c + h + "(?:" + c + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + c + h + ")(?:" + c + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + c + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + c + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: a(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(d) {
619
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
620
- d !== b && (e.languages.markdown[d].inside.content.inside[b] = e.languages.markdown[b]);
617
+ }), k = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, p = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + u + k + "(?:" + u + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + u + k + ")(?:" + u + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(l), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + u + ")" + k + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + u + "$"), inside: { "table-header": { pattern: RegExp(l), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(f) {
618
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(m) {
619
+ f !== m && (e.languages.markdown[f].inside.content.inside[m] = e.languages.markdown[m]);
621
620
  });
622
- }), e.hooks.add("after-tokenize", function(d) {
623
- d.language !== "markdown" && d.language !== "md" || (function b(f) {
624
- if (f && typeof f != "string")
625
- for (var v = 0, E = f.length; v < E; v++) {
626
- var o, r = f[v];
627
- r.type !== "code" ? b(r.content) : (o = r.content[1], r = r.content[3], o && r && o.type === "code-language" && r.type === "code-block" && typeof o.content == "string" && (o = o.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), o = "language-" + (o = (/[a-z][\w-]*/i.exec(o) || [""])[0].toLowerCase()), r.alias ? typeof r.alias == "string" ? r.alias = [r.alias, o] : r.alias.push(o) : r.alias = [o]));
621
+ }), e.hooks.add("after-tokenize", function(f) {
622
+ f.language !== "markdown" && f.language !== "md" || (function m(d) {
623
+ if (d && typeof d != "string")
624
+ for (var w = 0, A = d.length; w < A; w++) {
625
+ var n, o = d[w];
626
+ o.type !== "code" ? m(o.content) : (n = o.content[1], o = o.content[3], n && o && n.type === "code-language" && o.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), o.alias ? typeof o.alias == "string" ? o.alias = [o.alias, n] : o.alias.push(n) : o.alias = [n]));
628
627
  }
629
- })(d.tokens);
630
- }), e.hooks.add("wrap", function(d) {
631
- if (d.type === "code-block") {
632
- for (var b = "", f = 0, v = d.classes.length; f < v; f++) {
633
- var E = d.classes[f], E = /language-(.+)/.exec(E);
634
- if (E) {
635
- b = E[1];
628
+ })(f.tokens);
629
+ }), e.hooks.add("wrap", function(f) {
630
+ if (f.type === "code-block") {
631
+ for (var m = "", d = 0, w = f.classes.length; d < w; d++) {
632
+ var A = f.classes[d], A = /language-(.+)/.exec(A);
633
+ if (A) {
634
+ m = A[1];
636
635
  break;
637
636
  }
638
637
  }
639
- var o, r = e.languages[b];
640
- r ? d.content = e.highlight((function(s) {
641
- return s = s.replace(p, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, i) {
642
- var y;
643
- return (i = i.toLowerCase())[0] === "#" ? (y = i[1] === "x" ? parseInt(i.slice(2), 16) : Number(i.slice(1)), g(y)) : m[i] || u;
638
+ var n, o = e.languages[m];
639
+ o ? f.content = e.highlight((function(i) {
640
+ return i = i.replace(p, ""), i = i.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(y, c) {
641
+ var b;
642
+ return (c = c.toLowerCase())[0] === "#" ? (b = c[1] === "x" ? parseInt(c.slice(2), 16) : Number(c.slice(1)), g(b)) : v[c] || y;
644
643
  });
645
- })(d.content), r, b) : b && b !== "none" && e.plugins.autoloader && (o = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), d.attributes.id = o, e.plugins.autoloader.loadLanguages(b, function() {
646
- var s = document.getElementById(o);
647
- s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
644
+ })(f.content), o, m) : m && m !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), f.attributes.id = n, e.plugins.autoloader.loadLanguages(m, function() {
645
+ var i = document.getElementById(n);
646
+ i && (i.innerHTML = e.highlight(i.textContent, e.languages[m], m));
648
647
  }));
649
648
  }
650
- }), RegExp(e.languages.markup.tag.pattern.source, "gi")), m = { amp: "&", lt: "<", gt: ">", quot: '"' }, g = String.fromCodePoint || String.fromCharCode;
649
+ }), RegExp(e.languages.markup.tag.pattern.source, "gi")), v = { amp: "&", lt: "<", gt: ">", quot: '"' }, g = String.fromCodePoint || String.fromCharCode;
651
650
  e.languages.md = e.languages.markdown;
652
- })(n), n.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: n.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, n.hooks.add("after-tokenize", function(e) {
651
+ })(s), s.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: s.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, s.hooks.add("after-tokenize", function(e) {
653
652
  if (e.language === "graphql")
654
- for (var t = e.tokens.filter(function(o) {
655
- return typeof o != "string" && o.type !== "comment" && o.type !== "scalar";
656
- }), a = 0; a < t.length; ) {
657
- var l = t[a++];
653
+ for (var a = e.tokens.filter(function(n) {
654
+ return typeof n != "string" && n.type !== "comment" && n.type !== "scalar";
655
+ }), r = 0; r < a.length; ) {
656
+ var l = a[r++];
658
657
  if (l.type === "keyword" && l.content === "mutation") {
659
- var c = [];
660
- if (f(["definition-mutation", "punctuation"]) && b(1).content === "(") {
661
- a += 2;
662
- var h = v(/^\($/, /^\)$/);
663
- if (h === -1)
658
+ var u = [];
659
+ if (d(["definition-mutation", "punctuation"]) && m(1).content === "(") {
660
+ r += 2;
661
+ var k = w(/^\($/, /^\)$/);
662
+ if (k === -1)
664
663
  continue;
665
- for (; a < h; a++) {
666
- var p = b(0);
667
- p.type === "variable" && (E(p, "variable-input"), c.push(p.content));
664
+ for (; r < k; r++) {
665
+ var p = m(0);
666
+ p.type === "variable" && (A(p, "variable-input"), u.push(p.content));
668
667
  }
669
- a = h + 1;
668
+ r = k + 1;
670
669
  }
671
- if (f(["punctuation", "property-query"]) && b(0).content === "{" && (a++, E(b(0), "property-mutation"), 0 < c.length)) {
672
- var m = v(/^\{$/, /^\}$/);
673
- if (m !== -1)
674
- for (var g = a; g < m; g++) {
675
- var d = t[g];
676
- d.type === "variable" && 0 <= c.indexOf(d.content) && E(d, "variable-input");
670
+ if (d(["punctuation", "property-query"]) && m(0).content === "{" && (r++, A(m(0), "property-mutation"), 0 < u.length)) {
671
+ var v = w(/^\{$/, /^\}$/);
672
+ if (v !== -1)
673
+ for (var g = r; g < v; g++) {
674
+ var f = a[g];
675
+ f.type === "variable" && 0 <= u.indexOf(f.content) && A(f, "variable-input");
677
676
  }
678
677
  }
679
678
  }
680
679
  }
681
- function b(o) {
682
- return t[a + o];
680
+ function m(n) {
681
+ return a[r + n];
683
682
  }
684
- function f(o, r) {
685
- r = r || 0;
686
- for (var s = 0; s < o.length; s++) {
687
- var u = b(s + r);
688
- if (!u || u.type !== o[s])
683
+ function d(n, o) {
684
+ o = o || 0;
685
+ for (var i = 0; i < n.length; i++) {
686
+ var y = m(i + o);
687
+ if (!y || y.type !== n[i])
689
688
  return;
690
689
  }
691
690
  return 1;
692
691
  }
693
- function v(o, r) {
694
- for (var s = 1, u = a; u < t.length; u++) {
695
- var i = t[u], y = i.content;
696
- if (i.type === "punctuation" && typeof y == "string") {
697
- if (o.test(y))
698
- s++;
699
- else if (r.test(y) && --s === 0)
700
- return u;
692
+ function w(n, o) {
693
+ for (var i = 1, y = r; y < a.length; y++) {
694
+ var c = a[y], b = c.content;
695
+ if (c.type === "punctuation" && typeof b == "string") {
696
+ if (n.test(b))
697
+ i++;
698
+ else if (o.test(b) && --i === 0)
699
+ return y;
701
700
  }
702
701
  }
703
702
  return -1;
704
703
  }
705
- function E(o, r) {
706
- var s = o.alias;
707
- s ? Array.isArray(s) || (o.alias = s = [s]) : o.alias = s = [], s.push(r);
704
+ function A(n, o) {
705
+ var i = n.alias;
706
+ i ? Array.isArray(i) || (n.alias = i = [i]) : n.alias = i = [], i.push(o);
708
707
  }
709
- }), n.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, (function(e) {
710
- var t = e.languages.javascript["template-string"], a = t.pattern.source, l = t.inside.interpolation, c = l.inside["interpolation-punctuation"], h = l.pattern.source;
711
- function p(f, v) {
712
- if (e.languages[f])
713
- return { pattern: RegExp("((?:" + v + ")\\s*)" + a), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: f } } };
708
+ }), s.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, (function(e) {
709
+ var a = e.languages.javascript["template-string"], r = a.pattern.source, l = a.inside.interpolation, u = l.inside["interpolation-punctuation"], k = l.pattern.source;
710
+ function p(d, w) {
711
+ if (e.languages[d])
712
+ return { pattern: RegExp("((?:" + w + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: d } } };
714
713
  }
715
- function m(f, v, E) {
716
- return f = { code: f, grammar: v, language: E }, e.hooks.run("before-tokenize", f), f.tokens = e.tokenize(f.code, f.grammar), e.hooks.run("after-tokenize", f), f.tokens;
714
+ function v(d, w, A) {
715
+ return d = { code: d, grammar: w, language: A }, e.hooks.run("before-tokenize", d), d.tokens = e.tokenize(d.code, d.grammar), e.hooks.run("after-tokenize", d), d.tokens;
717
716
  }
718
- function g(f, v, E) {
719
- var s = e.tokenize(f, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), o = 0, r = {}, s = m(s.map(function(i) {
720
- if (typeof i == "string")
721
- return i;
722
- for (var y, w, i = i.content; f.indexOf((w = o++, y = "___" + E.toUpperCase() + "_" + w + "___")) !== -1; )
717
+ function g(d, w, A) {
718
+ var i = e.tokenize(d, { interpolation: { pattern: RegExp(k), lookbehind: !0 } }), n = 0, o = {}, i = v(i.map(function(c) {
719
+ if (typeof c == "string")
720
+ return c;
721
+ for (var b, E, c = c.content; d.indexOf((E = n++, b = "___" + A.toUpperCase() + "_" + E + "___")) !== -1; )
723
722
  ;
724
- return r[y] = i, y;
725
- }).join(""), v, E), u = Object.keys(r);
726
- return o = 0, (function i(y) {
727
- for (var w = 0; w < y.length; w++) {
728
- if (o >= u.length)
723
+ return o[b] = c, b;
724
+ }).join(""), w, A), y = Object.keys(o);
725
+ return n = 0, (function c(b) {
726
+ for (var E = 0; E < b.length; E++) {
727
+ if (n >= y.length)
729
728
  return;
730
- var k, A, x, S, _, L, R, O = y[w];
731
- typeof O == "string" || typeof O.content == "string" ? (k = u[o], (R = (L = typeof O == "string" ? O : O.content).indexOf(k)) !== -1 && (++o, A = L.substring(0, R), _ = r[k], x = void 0, (S = {})["interpolation-punctuation"] = c, (S = e.tokenize(_, S)).length === 3 && ((x = [1, 1]).push.apply(x, m(S[1], e.languages.javascript, "javascript")), S.splice.apply(S, x)), x = new e.Token("interpolation", S, l.alias, _), S = L.substring(R + k.length), _ = [], A && _.push(A), _.push(x), S && (i(L = [S]), _.push.apply(_, L)), typeof O == "string" ? (y.splice.apply(y, [w, 1].concat(_)), w += _.length - 1) : O.content = _)) : (R = O.content, Array.isArray(R) ? i(R) : i([R]));
729
+ var S, F, _, T, R, O, I, N = b[E];
730
+ typeof N == "string" || typeof N.content == "string" ? (S = y[n], (I = (O = typeof N == "string" ? N : N.content).indexOf(S)) !== -1 && (++n, F = O.substring(0, I), R = o[S], _ = void 0, (T = {})["interpolation-punctuation"] = u, (T = e.tokenize(R, T)).length === 3 && ((_ = [1, 1]).push.apply(_, v(T[1], e.languages.javascript, "javascript")), T.splice.apply(T, _)), _ = new e.Token("interpolation", T, l.alias, R), T = O.substring(I + S.length), R = [], F && R.push(F), R.push(_), T && (c(O = [T]), R.push.apply(R, O)), typeof N == "string" ? (b.splice.apply(b, [E, 1].concat(R)), E += R.length - 1) : N.content = R)) : (I = N.content, Array.isArray(I) ? c(I) : c([I]));
732
731
  }
733
- })(s), new e.Token(E, s, "language-" + E, f);
732
+ })(i), new e.Token(A, i, "language-" + A, d);
734
733
  }
735
- e.languages.javascript["template-string"] = [p("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), p("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), p("svg", /\bsvg/.source), p("markdown", /\b(?:markdown|md)/.source), p("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), p("sql", /\bsql/.source), t].filter(Boolean);
736
- var d = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
737
- function b(f) {
738
- return typeof f == "string" ? f : Array.isArray(f) ? f.map(b).join("") : b(f.content);
734
+ e.languages.javascript["template-string"] = [p("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), p("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), p("svg", /\bsvg/.source), p("markdown", /\b(?:markdown|md)/.source), p("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), p("sql", /\bsql/.source), a].filter(Boolean);
735
+ var f = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
736
+ function m(d) {
737
+ return typeof d == "string" ? d : Array.isArray(d) ? d.map(m).join("") : m(d.content);
739
738
  }
740
- e.hooks.add("after-tokenize", function(f) {
741
- f.language in d && (function v(E) {
742
- for (var o = 0, r = E.length; o < r; o++) {
743
- var s, u, i, y = E[o];
744
- typeof y != "string" && (s = y.content, Array.isArray(s) ? y.type === "template-string" ? (y = s[1], s.length === 3 && typeof y != "string" && y.type === "embedded-code" && (u = b(y), y = y.alias, y = Array.isArray(y) ? y[0] : y, i = e.languages[y]) && (s[1] = g(u, i, y))) : v(s) : typeof s != "string" && v([s]));
739
+ e.hooks.add("after-tokenize", function(d) {
740
+ d.language in f && (function w(A) {
741
+ for (var n = 0, o = A.length; n < o; n++) {
742
+ var i, y, c, b = A[n];
743
+ typeof b != "string" && (i = b.content, Array.isArray(i) ? b.type === "template-string" ? (b = i[1], i.length === 3 && typeof b != "string" && b.type === "embedded-code" && (y = m(b), b = b.alias, b = Array.isArray(b) ? b[0] : b, c = e.languages[b]) && (i[1] = g(y, c, b))) : w(i) : typeof i != "string" && w([i]));
745
744
  }
746
- })(f.tokens);
745
+ })(d.tokens);
747
746
  });
748
- })(n), (function(e) {
747
+ })(s), (function(e) {
749
748
  e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
750
- var t = e.languages.extend("typescript", {});
751
- delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
752
- })(n), (function(e) {
753
- var t = e.languages.javascript, a = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + a + "\\s+)?)";
754
- e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
755
- return a;
756
- })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + a), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
757
- })(n), (function(e) {
749
+ var a = e.languages.extend("typescript", {});
750
+ delete a["class-name"], e.languages.typescript["class-name"].inside = a, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: a } } } }), e.languages.ts = e.languages.typescript;
751
+ })(s), (function(e) {
752
+ var a = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, l = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
753
+ e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(l + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(l + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: a, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
754
+ return r;
755
+ })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), lookbehind: !0, inside: { string: a.string, number: a.number, boolean: a.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: a, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
756
+ })(s), (function(e) {
758
757
  e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
759
- })(n), n.languages.n4js = n.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), n.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), n.languages.n4jsd = n.languages.n4js, (function(e) {
760
- function t(p, m) {
758
+ })(s), s.languages.n4js = s.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), s.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), s.languages.n4jsd = s.languages.n4js, (function(e) {
759
+ function a(p, v) {
761
760
  return RegExp(p.replace(/<ID>/g, function() {
762
761
  return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
763
- }), m);
762
+ }), v);
764
763
  }
765
- e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
766
- for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < a.length; l++) {
767
- var h = a[l], c = e.languages.javascript[h], h = (c = e.util.type(c) === "RegExp" ? e.languages.javascript[h] = { pattern: c } : c).inside || {};
768
- (c.inside = h)["maybe-class-name"] = /^[A-Z][\s\S]*/;
764
+ e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: a(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: a(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: a(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
765
+ for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], l = 0; l < r.length; l++) {
766
+ var k = r[l], u = e.languages.javascript[k], k = (u = e.util.type(u) === "RegExp" ? e.languages.javascript[k] = { pattern: u } : u).inside || {};
767
+ (u.inside = k)["maybe-class-name"] = /^[A-Z][\s\S]*/;
769
768
  }
770
- })(n), (function(e) {
771
- var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, c = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
772
- function h(g, d) {
769
+ })(s), (function(e) {
770
+ var a = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, u = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
771
+ function k(g, f) {
773
772
  return g = g.replace(/<S>/g, function() {
774
- return a;
773
+ return r;
775
774
  }).replace(/<BRACES>/g, function() {
776
775
  return l;
777
776
  }).replace(/<SPREAD>/g, function() {
778
- return c;
779
- }), RegExp(g, d);
777
+ return u;
778
+ }), RegExp(g, f);
780
779
  }
781
- c = h(c).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = h(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: h(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: h(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
780
+ u = k(u).source, e.languages.jsx = e.languages.extend("markup", a), e.languages.jsx.tag.pattern = k(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = a.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: k(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: k(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
782
781
  function p(g) {
783
- for (var d = [], b = 0; b < g.length; b++) {
784
- var f = g[b], v = !1;
785
- typeof f != "string" && (f.type === "tag" && f.content[0] && f.content[0].type === "tag" ? f.content[0].content[0].content === "</" ? 0 < d.length && d[d.length - 1].tagName === m(f.content[0].content[1]) && d.pop() : f.content[f.content.length - 1].content !== "/>" && d.push({ tagName: m(f.content[0].content[1]), openedBraces: 0 }) : 0 < d.length && f.type === "punctuation" && f.content === "{" ? d[d.length - 1].openedBraces++ : 0 < d.length && 0 < d[d.length - 1].openedBraces && f.type === "punctuation" && f.content === "}" ? d[d.length - 1].openedBraces-- : v = !0), (v || typeof f == "string") && 0 < d.length && d[d.length - 1].openedBraces === 0 && (v = m(f), b < g.length - 1 && (typeof g[b + 1] == "string" || g[b + 1].type === "plain-text") && (v += m(g[b + 1]), g.splice(b + 1, 1)), 0 < b && (typeof g[b - 1] == "string" || g[b - 1].type === "plain-text") && (v = m(g[b - 1]) + v, g.splice(b - 1, 1), b--), g[b] = new e.Token("plain-text", v, null, v)), f.content && typeof f.content != "string" && p(f.content);
782
+ for (var f = [], m = 0; m < g.length; m++) {
783
+ var d = g[m], w = !1;
784
+ typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? 0 < f.length && f[f.length - 1].tagName === v(d.content[0].content[1]) && f.pop() : d.content[d.content.length - 1].content !== "/>" && f.push({ tagName: v(d.content[0].content[1]), openedBraces: 0 }) : 0 < f.length && d.type === "punctuation" && d.content === "{" ? f[f.length - 1].openedBraces++ : 0 < f.length && 0 < f[f.length - 1].openedBraces && d.type === "punctuation" && d.content === "}" ? f[f.length - 1].openedBraces-- : w = !0), (w || typeof d == "string") && 0 < f.length && f[f.length - 1].openedBraces === 0 && (w = v(d), m < g.length - 1 && (typeof g[m + 1] == "string" || g[m + 1].type === "plain-text") && (w += v(g[m + 1]), g.splice(m + 1, 1)), 0 < m && (typeof g[m - 1] == "string" || g[m - 1].type === "plain-text") && (w = v(g[m - 1]) + w, g.splice(m - 1, 1), m--), g[m] = new e.Token("plain-text", w, null, w)), d.content && typeof d.content != "string" && p(d.content);
786
785
  }
787
786
  }
788
- var m = function(g) {
789
- return g ? typeof g == "string" ? g : typeof g.content == "string" ? g.content : g.content.map(m).join("") : "";
787
+ var v = function(g) {
788
+ return g ? typeof g == "string" ? g : typeof g.content == "string" ? g.content : g.content.map(v).join("") : "";
790
789
  };
791
790
  e.hooks.add("after-tokenize", function(g) {
792
791
  g.language !== "jsx" && g.language !== "tsx" || p(g.tokens);
793
792
  });
794
- })(n), (function(e) {
795
- var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
796
- t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
797
- })(n), n.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, n.languages.swift["string-literal"].forEach(function(e) {
798
- e.inside.interpolation.inside = n.languages.swift;
793
+ })(s), (function(e) {
794
+ var a = e.util.clone(e.languages.typescript), a = (e.languages.tsx = e.languages.extend("jsx", a), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
795
+ a.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + a.pattern.source + ")", a.pattern.flags), a.lookbehind = !0;
796
+ })(s), s.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, s.languages.swift["string-literal"].forEach(function(e) {
797
+ e.inside.interpolation.inside = s.languages.swift;
799
798
  }), (function(e) {
800
799
  e.languages.kotlin = e.languages.extend("clike", { keyword: { pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
801
- var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
802
- e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
803
- })(n), n.languages.c = n.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), n.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), n.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, n.languages.c.string], char: n.languages.c.char, comment: n.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: n.languages.c } } } }), n.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete n.languages.c.boolean, n.languages.objectivec = n.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete n.languages.objectivec["class-name"], n.languages.objc = n.languages.objectivec, n.languages.reason = n.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), n.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete n.languages.reason.function, (function(e) {
804
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, a = 0; a < 2; a++)
805
- t = t.replace(/<self>/g, function() {
806
- return t;
800
+ var a = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
801
+ e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: a }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: a }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
802
+ })(s), s.languages.c = s.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), s.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), s.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, s.languages.c.string], char: s.languages.c.char, comment: s.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: s.languages.c } } } }), s.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete s.languages.c.boolean, s.languages.objectivec = s.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete s.languages.objectivec["class-name"], s.languages.objc = s.languages.objectivec, s.languages.reason = s.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), s.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete s.languages.reason.function, (function(e) {
803
+ for (var a = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
804
+ a = a.replace(/<self>/g, function() {
805
+ return a;
807
806
  });
808
- t = t.replace(/<self>/g, function() {
807
+ a = a.replace(/<self>/g, function() {
809
808
  return /[^\s\S]/.source;
810
- }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
811
- })(n), n.languages.go = n.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), n.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete n.languages.go["class-name"], (function(e) {
812
- var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, a = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
813
- return t.source;
809
+ }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + a), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
810
+ })(s), s.languages.go = s.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/ }), s.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete s.languages.go["class-name"], (function(e) {
811
+ var a = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
812
+ return a.source;
814
813
  });
815
814
  e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
816
- return t.source;
817
- })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
818
- return a;
815
+ return a.source;
816
+ })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: a, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
817
+ return r;
819
818
  }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
820
- })(n), n.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, n.languages.python["string-interpolation"].inside.interpolation.inside.rest = n.languages.python, n.languages.py = n.languages.python, n.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, n.languages.webmanifest = n.languages.json;
821
- var Ae = {};
822
- we(Ae, {
823
- dracula: () => _e,
824
- duotoneDark: () => Te,
825
- duotoneLight: () => Ie,
826
- github: () => Oe,
827
- gruvboxMaterialDark: () => lt,
828
- gruvboxMaterialLight: () => ut,
829
- jettwaveDark: () => Je,
830
- jettwaveLight: () => tt,
831
- nightOwl: () => Ce,
832
- nightOwlLight: () => Be,
833
- oceanicNext: () => Pe,
834
- okaidia: () => ze,
835
- oneDark: () => nt,
836
- oneLight: () => ot,
837
- palenight: () => Ue,
838
- shadesOfPurple: () => Ze,
839
- synthwave84: () => He,
840
- ultramin: () => Ye,
841
- vsDark: () => ue,
842
- vsLight: () => Xe
819
+ })(s), s.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, s.languages.python["string-interpolation"].inside.interpolation.inside.rest = s.languages.python, s.languages.py = s.languages.python, s.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, s.languages.webmanifest = s.languages.json;
820
+ var Ie = {};
821
+ Te(Ie, {
822
+ dracula: () => Oe,
823
+ duotoneDark: () => De,
824
+ duotoneLight: () => $e,
825
+ github: () => ze,
826
+ gruvboxMaterialDark: () => ft,
827
+ gruvboxMaterialLight: () => ht,
828
+ jettwaveDark: () => it,
829
+ jettwaveLight: () => ct,
830
+ nightOwl: () => Ze,
831
+ nightOwlLight: () => Ue,
832
+ oceanicNext: () => We,
833
+ okaidia: () => qe,
834
+ oneDark: () => pt,
835
+ oneLight: () => gt,
836
+ palenight: () => Ke,
837
+ shadesOfPurple: () => Qe,
838
+ synthwave84: () => et,
839
+ ultramin: () => at,
840
+ vsDark: () => ge,
841
+ vsLight: () => ot
843
842
  });
844
- var Se = {
843
+ var Ce = {
845
844
  plain: {
846
845
  color: "#F8F8F2",
847
846
  backgroundColor: "#282A36"
@@ -903,7 +902,7 @@ var Se = {
903
902
  }
904
903
  }
905
904
  ]
906
- }, _e = Se, Fe = {
905
+ }, Oe = Ce, Ne = {
907
906
  plain: {
908
907
  backgroundColor: "#2a2734",
909
908
  color: "#9a86fd"
@@ -997,7 +996,7 @@ var Se = {
997
996
  }
998
997
  }
999
998
  ]
1000
- }, Te = Fe, Re = {
999
+ }, De = Ne, Me = {
1001
1000
  plain: {
1002
1001
  backgroundColor: "#faf8f5",
1003
1002
  color: "#728fcb"
@@ -1095,7 +1094,7 @@ var Se = {
1095
1094
  }
1096
1095
  }
1097
1096
  ]
1098
- }, Ie = Re, Le = {
1097
+ }, $e = Me, Pe = {
1099
1098
  plain: {
1100
1099
  color: "#393A34",
1101
1100
  backgroundColor: "#f6f8fa"
@@ -1168,7 +1167,7 @@ var Se = {
1168
1167
  }
1169
1168
  }
1170
1169
  ]
1171
- }, Oe = Le, Ne = {
1170
+ }, ze = Pe, je = {
1172
1171
  plain: {
1173
1172
  color: "#d6deeb",
1174
1173
  backgroundColor: "#011627"
@@ -1272,7 +1271,7 @@ var Se = {
1272
1271
  }
1273
1272
  }
1274
1273
  ]
1275
- }, Ce = Ne, De = {
1274
+ }, Ze = je, He = {
1276
1275
  plain: {
1277
1276
  color: "#403f53",
1278
1277
  backgroundColor: "#FBFBFB"
@@ -1364,7 +1363,7 @@ var Se = {
1364
1363
  }
1365
1364
  }
1366
1365
  ]
1367
- }, Be = De, T = {
1366
+ }, Ue = He, B = {
1368
1367
  char: "#D8DEE9",
1369
1368
  comment: "#999999",
1370
1369
  keyword: "#c5a5c5",
@@ -1375,7 +1374,7 @@ var Se = {
1375
1374
  tag: "#fc929e",
1376
1375
  function: "#79b6f2",
1377
1376
  className: "#FAC863"
1378
- }, $e = {
1377
+ }, Ge = {
1379
1378
  plain: {
1380
1379
  backgroundColor: "#282c34",
1381
1380
  color: "#ffffff"
@@ -1384,13 +1383,13 @@ var Se = {
1384
1383
  {
1385
1384
  types: ["attr-name"],
1386
1385
  style: {
1387
- color: T.keyword
1386
+ color: B.keyword
1388
1387
  }
1389
1388
  },
1390
1389
  {
1391
1390
  types: ["attr-value"],
1392
1391
  style: {
1393
- color: T.string
1392
+ color: B.string
1394
1393
  }
1395
1394
  },
1396
1395
  {
@@ -1403,7 +1402,7 @@ var Se = {
1403
1402
  "shebang"
1404
1403
  ],
1405
1404
  style: {
1406
- color: T.comment
1405
+ color: B.comment
1407
1406
  }
1408
1407
  },
1409
1408
  {
@@ -1416,61 +1415,61 @@ var Se = {
1416
1415
  "deleted"
1417
1416
  ],
1418
1417
  style: {
1419
- color: T.primitive
1418
+ color: B.primitive
1420
1419
  }
1421
1420
  },
1422
1421
  {
1423
1422
  types: ["boolean"],
1424
1423
  style: {
1425
- color: T.boolean
1424
+ color: B.boolean
1426
1425
  }
1427
1426
  },
1428
1427
  {
1429
1428
  types: ["tag"],
1430
1429
  style: {
1431
- color: T.tag
1430
+ color: B.tag
1432
1431
  }
1433
1432
  },
1434
1433
  {
1435
1434
  types: ["string"],
1436
1435
  style: {
1437
- color: T.string
1436
+ color: B.string
1438
1437
  }
1439
1438
  },
1440
1439
  {
1441
1440
  types: ["punctuation"],
1442
1441
  style: {
1443
- color: T.string
1442
+ color: B.string
1444
1443
  }
1445
1444
  },
1446
1445
  {
1447
1446
  types: ["selector", "char", "builtin", "inserted"],
1448
1447
  style: {
1449
- color: T.char
1448
+ color: B.char
1450
1449
  }
1451
1450
  },
1452
1451
  {
1453
1452
  types: ["function"],
1454
1453
  style: {
1455
- color: T.function
1454
+ color: B.function
1456
1455
  }
1457
1456
  },
1458
1457
  {
1459
1458
  types: ["operator", "entity", "url", "variable"],
1460
1459
  style: {
1461
- color: T.variable
1460
+ color: B.variable
1462
1461
  }
1463
1462
  },
1464
1463
  {
1465
1464
  types: ["keyword"],
1466
1465
  style: {
1467
- color: T.keyword
1466
+ color: B.keyword
1468
1467
  }
1469
1468
  },
1470
1469
  {
1471
1470
  types: ["atrule", "class-name"],
1472
1471
  style: {
1473
- color: T.className
1472
+ color: B.className
1474
1473
  }
1475
1474
  },
1476
1475
  {
@@ -1498,7 +1497,7 @@ var Se = {
1498
1497
  }
1499
1498
  }
1500
1499
  ]
1501
- }, Pe = $e, je = {
1500
+ }, We = Ge, Ve = {
1502
1501
  plain: {
1503
1502
  color: "#f8f8f2",
1504
1503
  backgroundColor: "#272822"
@@ -1613,7 +1612,7 @@ var Se = {
1613
1612
  }
1614
1613
  }
1615
1614
  ]
1616
- }, ze = je, Me = {
1615
+ }, qe = Ve, Ye = {
1617
1616
  plain: {
1618
1617
  color: "#bfc7d5",
1619
1618
  backgroundColor: "#292d3e"
@@ -1706,7 +1705,7 @@ var Se = {
1706
1705
  }
1707
1706
  }
1708
1707
  ]
1709
- }, Ue = Me, Ge = {
1708
+ }, Ke = Ye, Xe = {
1710
1709
  plain: {
1711
1710
  color: "#9EFEFF",
1712
1711
  backgroundColor: "#2D2A55"
@@ -1794,7 +1793,7 @@ var Se = {
1794
1793
  }
1795
1794
  }
1796
1795
  ]
1797
- }, Ze = Ge, qe = {
1796
+ }, Qe = Xe, Je = {
1798
1797
  plain: {
1799
1798
  backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
1800
1799
  backgroundImage: "#34294f",
@@ -1919,7 +1918,7 @@ var Se = {
1919
1918
  }
1920
1919
  }
1921
1920
  ]
1922
- }, He = qe, We = {
1921
+ }, et = Je, tt = {
1923
1922
  plain: {
1924
1923
  color: "#282a2e",
1925
1924
  backgroundColor: "#ffffff"
@@ -1944,7 +1943,7 @@ var Se = {
1944
1943
  }
1945
1944
  }
1946
1945
  ]
1947
- }, Ye = We, Ke = {
1946
+ }, at = tt, rt = {
1948
1947
  plain: {
1949
1948
  color: "#9CDCFE",
1950
1949
  backgroundColor: "#1E1E1E"
@@ -2046,7 +2045,7 @@ var Se = {
2046
2045
  }
2047
2046
  }
2048
2047
  ]
2049
- }, ue = Ke, Ve = {
2048
+ }, ge = rt, nt = {
2050
2049
  plain: {
2051
2050
  color: "#000000",
2052
2051
  backgroundColor: "#ffffff"
@@ -2119,7 +2118,7 @@ var Se = {
2119
2118
  }
2120
2119
  }
2121
2120
  ]
2122
- }, Xe = Ve, Qe = {
2121
+ }, ot = nt, st = {
2123
2122
  plain: {
2124
2123
  color: "#f8fafc",
2125
2124
  backgroundColor: "#011627"
@@ -2218,7 +2217,7 @@ var Se = {
2218
2217
  }
2219
2218
  }
2220
2219
  ]
2221
- }, Je = Qe, et = {
2220
+ }, it = st, lt = {
2222
2221
  plain: {
2223
2222
  color: "#0f172a",
2224
2223
  backgroundColor: "#f1f5f9"
@@ -2317,7 +2316,7 @@ var Se = {
2317
2316
  }
2318
2317
  }
2319
2318
  ]
2320
- }, tt = et, at = {
2319
+ }, ct = lt, ut = {
2321
2320
  plain: {
2322
2321
  backgroundColor: "hsl(220, 13%, 18%)",
2323
2322
  color: "hsl(220, 14%, 71%)",
@@ -2415,7 +2414,7 @@ var Se = {
2415
2414
  }
2416
2415
  }
2417
2416
  ]
2418
- }, nt = at, rt = {
2417
+ }, pt = ut, dt = {
2419
2418
  plain: {
2420
2419
  backgroundColor: "hsl(230, 1%, 98%)",
2421
2420
  color: "hsl(230, 8%, 24%)"
@@ -2516,7 +2515,7 @@ var Se = {
2516
2515
  }
2517
2516
  }
2518
2517
  ]
2519
- }, ot = rt, st = {
2518
+ }, gt = dt, yt = {
2520
2519
  plain: {
2521
2520
  color: "#ebdbb2",
2522
2521
  backgroundColor: "#292828"
@@ -2589,7 +2588,7 @@ var Se = {
2589
2588
  }
2590
2589
  }
2591
2590
  ]
2592
- }, lt = st, it = {
2591
+ }, ft = yt, bt = {
2593
2592
  plain: {
2594
2593
  color: "#654735",
2595
2594
  backgroundColor: "#f9f5d7"
@@ -2661,46 +2660,46 @@ var Se = {
2661
2660
  }
2662
2661
  }
2663
2662
  ]
2664
- }, ut = it, ct = (e) => V(
2665
- (t) => {
2666
- var a = t, { className: l, style: c, line: h } = a, p = ie(a, ["className", "style", "line"]);
2667
- const m = q(C({}, p), {
2668
- className: oe("token-line", l)
2663
+ }, ht = bt, mt = (e) => j(
2664
+ (a) => {
2665
+ var r = a, { className: l, style: u, line: k } = r, p = de(r, ["className", "style", "line"]);
2666
+ const v = q(M({}, p), {
2667
+ className: ce("token-line", l)
2669
2668
  });
2670
- return typeof e == "object" && "plain" in e && (m.style = e.plain), typeof c == "object" && (m.style = C(C({}, m.style || {}), c)), m;
2669
+ return typeof e == "object" && "plain" in e && (v.style = e.plain), typeof u == "object" && (v.style = M(M({}, v.style || {}), u)), v;
2671
2670
  },
2672
2671
  [e]
2673
- ), pt = (e) => {
2674
- const t = V(
2675
- ({ types: a, empty: l }) => {
2672
+ ), vt = (e) => {
2673
+ const a = j(
2674
+ ({ types: r, empty: l }) => {
2676
2675
  if (e != null) {
2677
2676
  {
2678
- if (a.length === 1 && a[0] === "plain")
2677
+ if (r.length === 1 && r[0] === "plain")
2679
2678
  return l != null ? { display: "inline-block" } : void 0;
2680
- if (a.length === 1 && l != null)
2681
- return e[a[0]];
2679
+ if (r.length === 1 && l != null)
2680
+ return e[r[0]];
2682
2681
  }
2683
2682
  return Object.assign(
2684
2683
  l != null ? { display: "inline-block" } : {},
2685
- ...a.map((c) => e[c])
2684
+ ...r.map((u) => e[u])
2686
2685
  );
2687
2686
  }
2688
2687
  },
2689
2688
  [e]
2690
2689
  );
2691
- return V(
2692
- (a) => {
2693
- var l = a, { token: c, className: h, style: p } = l, m = ie(l, ["token", "className", "style"]);
2694
- const g = q(C({}, m), {
2695
- className: oe("token", ...c.types, h),
2696
- children: c.content,
2697
- style: t(c)
2690
+ return j(
2691
+ (r) => {
2692
+ var l = r, { token: u, className: k, style: p } = l, v = de(l, ["token", "className", "style"]);
2693
+ const g = q(M({}, v), {
2694
+ className: ce("token", ...u.types, k),
2695
+ children: u.content,
2696
+ style: a(u)
2698
2697
  });
2699
- return p != null && (g.style = C(C({}, g.style || {}), p)), g;
2698
+ return p != null && (g.style = M(M({}, g.style || {}), p)), g;
2700
2699
  },
2701
- [t]
2700
+ [a]
2702
2701
  );
2703
- }, gt = /\r\n|\r|\n/, te = (e) => {
2702
+ }, kt = /\r\n|\r|\n/, re = (e) => {
2704
2703
  e.length === 0 ? e.push({
2705
2704
  types: ["plain"],
2706
2705
  content: `
@@ -2708,78 +2707,78 @@ var Se = {
2708
2707
  empty: !0
2709
2708
  }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2710
2709
  `, e[0].empty = !0);
2711
- }, ae = (e, t) => {
2712
- const a = e.length;
2713
- return a > 0 && e[a - 1] === t ? e : e.concat(t);
2714
- }, dt = (e) => {
2715
- const t = [[]], a = [e], l = [0], c = [e.length];
2716
- let h = 0, p = 0, m = [];
2717
- const g = [m];
2710
+ }, ne = (e, a) => {
2711
+ const r = e.length;
2712
+ return r > 0 && e[r - 1] === a ? e : e.concat(a);
2713
+ }, wt = (e) => {
2714
+ const a = [[]], r = [e], l = [0], u = [e.length];
2715
+ let k = 0, p = 0, v = [];
2716
+ const g = [v];
2718
2717
  for (; p > -1; ) {
2719
- for (; (h = l[p]++) < c[p]; ) {
2720
- let d, b = t[p];
2721
- const v = a[p][h];
2722
- if (typeof v == "string" ? (b = p > 0 ? b : ["plain"], d = v) : (b = ae(b, v.type), v.alias && (b = ae(b, v.alias)), d = v.content), typeof d != "string") {
2723
- p++, t.push(b), a.push(d), l.push(0), c.push(d.length);
2718
+ for (; (k = l[p]++) < u[p]; ) {
2719
+ let f, m = a[p];
2720
+ const w = r[p][k];
2721
+ if (typeof w == "string" ? (m = p > 0 ? m : ["plain"], f = w) : (m = ne(m, w.type), w.alias && (m = ne(m, w.alias)), f = w.content), typeof f != "string") {
2722
+ p++, a.push(m), r.push(f), l.push(0), u.push(f.length);
2724
2723
  continue;
2725
2724
  }
2726
- const E = d.split(gt), o = E.length;
2727
- m.push({
2728
- types: b,
2729
- content: E[0]
2725
+ const A = f.split(kt), n = A.length;
2726
+ v.push({
2727
+ types: m,
2728
+ content: A[0]
2730
2729
  });
2731
- for (let r = 1; r < o; r++)
2732
- te(m), g.push(m = []), m.push({
2733
- types: b,
2734
- content: E[r]
2730
+ for (let o = 1; o < n; o++)
2731
+ re(v), g.push(v = []), v.push({
2732
+ types: m,
2733
+ content: A[o]
2735
2734
  });
2736
2735
  }
2737
- p--, t.pop(), a.pop(), l.pop(), c.pop();
2736
+ p--, a.pop(), r.pop(), l.pop(), u.pop();
2738
2737
  }
2739
- return te(m), g;
2740
- }, ne = dt, yt = ({ prism: e, code: t, grammar: a, language: l }) => ge(() => {
2741
- if (a == null)
2742
- return ne([t]);
2743
- const c = {
2744
- code: t,
2745
- grammar: a,
2738
+ return re(v), g;
2739
+ }, oe = wt, xt = ({ prism: e, code: a, grammar: r, language: l }) => ve(() => {
2740
+ if (r == null)
2741
+ return oe([a]);
2742
+ const u = {
2743
+ code: a,
2744
+ grammar: r,
2746
2745
  language: l,
2747
2746
  tokens: []
2748
2747
  };
2749
- return e.hooks.run("before-tokenize", c), c.tokens = e.tokenize(t, a), e.hooks.run("after-tokenize", c), ne(c.tokens);
2748
+ return e.hooks.run("before-tokenize", u), u.tokens = e.tokenize(a, r), e.hooks.run("after-tokenize", u), oe(u.tokens);
2750
2749
  }, [
2751
- t,
2752
2750
  a,
2751
+ r,
2753
2752
  l,
2754
2753
  // prism is a stable import
2755
2754
  e
2756
- ]), ft = (e, t) => {
2757
- const { plain: a } = e, l = e.styles.reduce((c, h) => {
2758
- const { languages: p, style: m } = h;
2759
- return p && !p.includes(t) || h.types.forEach((g) => {
2760
- const d = C(C({}, c[g]), m);
2761
- c[g] = d;
2762
- }), c;
2755
+ ]), Et = (e, a) => {
2756
+ const { plain: r } = e, l = e.styles.reduce((u, k) => {
2757
+ const { languages: p, style: v } = k;
2758
+ return p && !p.includes(a) || k.types.forEach((g) => {
2759
+ const f = M(M({}, u[g]), v);
2760
+ u[g] = f;
2761
+ }), u;
2763
2762
  }, {});
2764
- return l.root = a, l.plain = q(C({}, a), { backgroundColor: void 0 }), l;
2765
- }, bt = ft, mt = ({
2763
+ return l.root = r, l.plain = q(M({}, r), { backgroundColor: void 0 }), l;
2764
+ }, At = Et, St = ({
2766
2765
  children: e,
2767
- language: t,
2768
- code: a,
2766
+ language: a,
2767
+ code: r,
2769
2768
  theme: l,
2770
- prism: c
2769
+ prism: u
2771
2770
  }) => {
2772
- const h = t.toLowerCase(), p = bt(l, h), m = ct(p), g = pt(p), d = c.languages[h], b = yt({ prism: c, language: h, code: a, grammar: d });
2771
+ const k = a.toLowerCase(), p = At(l, k), v = mt(p), g = vt(p), f = u.languages[k], m = xt({ prism: u, language: k, code: r, grammar: f });
2773
2772
  return e({
2774
- tokens: b,
2775
- className: `prism-code language-${h}`,
2773
+ tokens: m,
2774
+ className: `prism-code language-${k}`,
2776
2775
  style: p != null ? p.root : {},
2777
- getLineProps: m,
2776
+ getLineProps: v,
2778
2777
  getTokenProps: g
2779
2778
  });
2780
- }, ht = (e) => K(mt, q(C({}, e), {
2781
- prism: e.prism || n,
2782
- theme: e.theme || ue,
2779
+ }, _t = (e) => Q(St, q(M({}, e), {
2780
+ prism: e.prism || s,
2781
+ theme: e.theme || ge,
2783
2782
  code: e.code,
2784
2783
  language: e.language
2785
2784
  }));
@@ -2795,7 +2794,883 @@ prismjs/prism.js:
2795
2794
  * @public
2796
2795
  *)
2797
2796
  */
2798
- const vt = {
2797
+ function Ft() {
2798
+ const e = `w6w-py-eyes-${ke()}`;
2799
+ return /* @__PURE__ */ x(h, { children: [
2800
+ /* @__PURE__ */ t("title", { children: "Python" }),
2801
+ /* @__PURE__ */ x("mask", { id: e, children: [
2802
+ /* @__PURE__ */ t("rect", { x: "0", y: "0", width: "24", height: "24", fill: "white" }),
2803
+ /* @__PURE__ */ t("circle", { cx: "9.1", cy: "5.2", r: "1", fill: "black" }),
2804
+ /* @__PURE__ */ t("circle", { cx: "14.9", cy: "18.8", r: "1", fill: "black" })
2805
+ ] }),
2806
+ /* @__PURE__ */ x("g", { mask: `url(#${e})`, fill: "currentColor", children: [
2807
+ /* @__PURE__ */ t("path", { d: "M11.6 2.6c-3 0-4.9.7-4.9 2.6v2.2h5v.9H5.2C3.2 8.3 2 9.9 2 12v1.4c0 2 1.2 3.5 3.2 3.5h1.6v-2.5c0-2 1.6-3.6 3.6-3.6h4.3c1.6 0 2.9-1.3 2.9-2.9V5.2c0-1.8-1.8-2.6-4.8-2.6z" }),
2808
+ /* @__PURE__ */ t("path", { d: "M12.4 21.4c3 0 4.9-.7 4.9-2.6v-2.2h-5v-.9h6.5c2 0 3.2-1.6 3.2-3.6v-1.4c0-2-1.2-3.5-3.2-3.5h-1.6v2.5c0 2-1.6 3.6-3.6 3.6H9.3c-1.6 0-2.9 1.3-2.9 2.9v3.3c0 1.8 1.8 2.6 4.8 2.6z" })
2809
+ ] })
2810
+ ] });
2811
+ }
2812
+ const ye = {
2813
+ /**
2814
+ * ui/src/components/EditButton.tsx (the two-path Feather pencil) — also drawn by `WorkflowFlowEditor.tsx`.
2815
+ */
2816
+ edit: {
2817
+ viewBox: "0 0 24 24",
2818
+ variant: "stroke",
2819
+ strokeWidth: 2,
2820
+ body: /* @__PURE__ */ x(h, { children: [
2821
+ /* @__PURE__ */ t("path", { d: "M12 20h9" }),
2822
+ /* @__PURE__ */ t("path", { d: "M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" })
2823
+ ] })
2824
+ },
2825
+ /**
2826
+ * studio/src/pages/FunctionsPage.tsx — byte-identical to `EndpointsPage.tsx`'s pencil, and NOT the `edit` above: this one is Feather `edit-2`, a bare outline with no baseline.
2827
+ */
2828
+ "edit-2": {
2829
+ viewBox: "0 0 24 24",
2830
+ variant: "stroke",
2831
+ strokeWidth: 2,
2832
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" }) })
2833
+ },
2834
+ /**
2835
+ * ui/src/components/DeleteButton.tsx — byte-identical to `studio/src/pages/AppsPage.tsx`'s `TrashIcon`.
2836
+ */
2837
+ delete: {
2838
+ viewBox: "0 0 24 24",
2839
+ variant: "stroke",
2840
+ strokeWidth: 2,
2841
+ body: /* @__PURE__ */ x(h, { children: [
2842
+ /* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
2843
+ /* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }),
2844
+ /* @__PURE__ */ t("line", { x1: "10", y1: "11", x2: "10", y2: "17" }),
2845
+ /* @__PURE__ */ t("line", { x1: "14", y1: "11", x2: "14", y2: "17" })
2846
+ ] })
2847
+ },
2848
+ /**
2849
+ * ui/src/components/Copyable.tsx — the same glyph `studio/src/components/CallFromCodeButton.tsx` copies around.
2850
+ */
2851
+ copy: {
2852
+ viewBox: "0 0 24 24",
2853
+ variant: "stroke",
2854
+ strokeWidth: 2,
2855
+ body: /* @__PURE__ */ x(h, { children: [
2856
+ /* @__PURE__ */ t("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
2857
+ /* @__PURE__ */ t("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
2858
+ ] })
2859
+ },
2860
+ /**
2861
+ * ui/src/components/Copyable.tsx — the copy affordance's "copied" state.
2862
+ */
2863
+ check: {
2864
+ viewBox: "0 0 24 24",
2865
+ variant: "stroke",
2866
+ strokeWidth: 2,
2867
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polyline", { points: "20 6 9 17 4 12" }) })
2868
+ },
2869
+ /**
2870
+ * Feather `x` — the dismiss glyph for the `✕`/`×` characters studio's close and
2871
+ * remove buttons drew as text until now (T2), so those read as a drawing rather
2872
+ * than a font's idea of one. Drawn here rather than copied: the sources had no
2873
+ * `<svg>` to lift the paths from.
2874
+ */
2875
+ close: {
2876
+ viewBox: "0 0 24 24",
2877
+ variant: "stroke",
2878
+ strokeWidth: 2,
2879
+ body: /* @__PURE__ */ x(h, { children: [
2880
+ /* @__PURE__ */ t("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
2881
+ /* @__PURE__ */ t("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
2882
+ ] })
2883
+ },
2884
+ /**
2885
+ * Feather "info" — a circle with an "i"; the glyph `InfoTip` renders.
2886
+ */
2887
+ info: {
2888
+ viewBox: "0 0 24 24",
2889
+ variant: "stroke",
2890
+ strokeWidth: 2,
2891
+ body: /* @__PURE__ */ x(h, { children: [
2892
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
2893
+ /* @__PURE__ */ t("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
2894
+ /* @__PURE__ */ t("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
2895
+ ] })
2896
+ },
2897
+ /**
2898
+ * studio/src/components/HistoryIcon.tsx — Material `query_stats`: a chart line under a magnifier.
2899
+ */
2900
+ history: {
2901
+ viewBox: "0 0 24 24",
2902
+ variant: "fill",
2903
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm-.36-8.5c-.74.02-1.45.18-2.1.45l-.55-.83-3.8 6.18-3.01-3.52-3.63 5.81L1 17l5-8 3 3.5L13 6l2.72 4.08zm2.59.5c-.64-.28-1.33-.45-2.05-.49L21.38 2 23 3.18l-4.69 7.4z" }) })
2904
+ },
2905
+ /**
2906
+ * studio/src/ui/rail/SettingsTool.tsx (the rail's "Version history" button) — a second glyph for the history MEANING; kept beside `history` under its own name because the two do not look alike.
2907
+ */
2908
+ clock: {
2909
+ viewBox: "0 0 24 24",
2910
+ variant: "stroke",
2911
+ strokeWidth: 2,
2912
+ body: /* @__PURE__ */ x(h, { children: [
2913
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" }),
2914
+ /* @__PURE__ */ t("polyline", { points: "12 7 12 12 15.5 14" })
2915
+ ] })
2916
+ },
2917
+ /**
2918
+ * studio/src/components/JsonToggle.tsx — curly braces, the raw-JSON toggle.
2919
+ */
2920
+ json: {
2921
+ viewBox: "0 0 24 24",
2922
+ variant: "stroke",
2923
+ strokeWidth: 2,
2924
+ body: /* @__PURE__ */ x(h, { children: [
2925
+ /* @__PURE__ */ t("path", { d: "M8 3c-1.5 0-2 .8-2 2v3c0 1-.5 1.5-2 1.5v1c1.5 0 2 .5 2 1.5v3c0 1.2.5 2 2 2" }),
2926
+ /* @__PURE__ */ t("path", { d: "M16 3c1.5 0 2 .8 2 2v3c0 1 .5 1.5 2 1.5v1c-1.5 0-2 .5-2 1.5v3c0 1.2-.5 2-2 2" })
2927
+ ] })
2928
+ },
2929
+ /**
2930
+ * studio/src/components/CallFromCodeButton.tsx — `< />`; byte-identical to `studio/src/ui/rail/CodeTool.tsx`'s `CodeToolIcon`.
2931
+ */
2932
+ code: {
2933
+ viewBox: "0 0 24 24",
2934
+ variant: "stroke",
2935
+ strokeWidth: 2,
2936
+ body: /* @__PURE__ */ x(h, { children: [
2937
+ /* @__PURE__ */ t("polyline", { points: "16 18 22 12 16 6" }),
2938
+ /* @__PURE__ */ t("polyline", { points: "8 6 2 12 8 18" })
2939
+ ] })
2940
+ },
2941
+ /**
2942
+ * studio/src/components/SyncButton.tsx — Feather `refresh-cw`; byte-identical to `studio/src/pages/AppsPage.tsx`'s `RefreshIcon`.
2943
+ */
2944
+ sync: {
2945
+ viewBox: "0 0 24 24",
2946
+ variant: "stroke",
2947
+ strokeWidth: 2,
2948
+ body: /* @__PURE__ */ x(h, { children: [
2949
+ /* @__PURE__ */ t("polyline", { points: "23 4 23 10 17 10" }),
2950
+ /* @__PURE__ */ t("polyline", { points: "1 20 1 14 7 14" }),
2951
+ /* @__PURE__ */ t("path", { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" })
2952
+ ] })
2953
+ },
2954
+ /**
2955
+ * studio/src/pages/AppsPage.tsx — a cloud with a down arrow: "re-fetch fresh from the remote".
2956
+ */
2957
+ "cloud-download": {
2958
+ viewBox: "0 0 24 24",
2959
+ variant: "stroke",
2960
+ strokeWidth: 2,
2961
+ body: /* @__PURE__ */ x(h, { children: [
2962
+ /* @__PURE__ */ t("path", { d: "M8 17l4 4 4-4" }),
2963
+ /* @__PURE__ */ t("path", { d: "M12 12v9" }),
2964
+ /* @__PURE__ */ t("path", { d: "M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29" })
2965
+ ] })
2966
+ },
2967
+ /**
2968
+ * studio/src/pages/AppsPage.tsx — inspect.
2969
+ */
2970
+ eye: {
2971
+ viewBox: "0 0 24 24",
2972
+ variant: "stroke",
2973
+ strokeWidth: 2,
2974
+ body: /* @__PURE__ */ x(h, { children: [
2975
+ /* @__PURE__ */ t("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z" }),
2976
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" })
2977
+ ] })
2978
+ },
2979
+ /**
2980
+ * studio/src/pages/WorkflowsPage.tsx — the run button.
2981
+ */
2982
+ play: {
2983
+ viewBox: "0 0 24 24",
2984
+ variant: "stroke",
2985
+ strokeWidth: 2,
2986
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polygon", { points: "5 3 19 12 5 21 5 3" }) })
2987
+ },
2988
+ /**
2989
+ * studio/src/pages/WorkflowsPage.tsx — the stop button's filled square.
2990
+ */
2991
+ stop: {
2992
+ viewBox: "0 0 24 24",
2993
+ variant: "fill",
2994
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("rect", { x: "5", y: "5", width: "14", height: "14", rx: "1" }) })
2995
+ },
2996
+ /**
2997
+ * studio/src/ui/rail/ErrorHandlingTool.tsx — Feather `alert-triangle`.
2998
+ */
2999
+ warning: {
3000
+ viewBox: "0 0 24 24",
3001
+ variant: "stroke",
3002
+ strokeWidth: 2,
3003
+ body: /* @__PURE__ */ x(h, { children: [
3004
+ /* @__PURE__ */ t("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
3005
+ /* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
3006
+ /* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
3007
+ ] })
3008
+ },
3009
+ /**
3010
+ * studio/src/ui/rail/SettingsTool.tsx — a document with text lines (Feather `file-text`), the export/edit-JSON affordance. Distinct from `file` below, which has a folded corner and no lines.
3011
+ */
3012
+ "file-text": {
3013
+ viewBox: "0 0 24 24",
3014
+ variant: "stroke",
3015
+ strokeWidth: 2,
3016
+ body: /* @__PURE__ */ x(h, { children: [
3017
+ /* @__PURE__ */ t("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
3018
+ /* @__PURE__ */ t("polyline", { points: "14 2 14 8 20 8" }),
3019
+ /* @__PURE__ */ t("line", { x1: "8", y1: "13", x2: "16", y2: "13" }),
3020
+ /* @__PURE__ */ t("line", { x1: "8", y1: "17", x2: "16", y2: "17" })
3021
+ ] })
3022
+ },
3023
+ /**
3024
+ * studio/src/components/Layout.tsx — gear; byte-identical to `ui/rail/AliasesTool.tsx`'s and `ui/rail/SettingsTool.tsx`'s own copies.
3025
+ */
3026
+ settings: {
3027
+ viewBox: "0 0 24 24",
3028
+ variant: "fill",
3029
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M10.09 2.18h3.82l-.47 2.76 2.53 1.06 1.62-2.29 2.7 2.7-2.29 1.62 1.06 2.53 2.76-.47v3.82l-2.76-.47-1.06 2.53 2.29 1.62-2.7 2.7-1.62-2.29-2.53 1.06.47 2.76h-3.82l.47-2.76-2.53-1.06-1.62 2.29-2.7-2.7 2.29-1.62-1.06-2.53-2.76.47v-3.82l2.76.47 1.06-2.53-2.29-1.62 2.7-2.7 1.62 2.29 2.53-1.06-.47-2.76ZM12 8.8a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4Z" }) })
3030
+ },
3031
+ /**
3032
+ * studio/src/components/Layout.tsx — the GitHub mark; byte-identical to `studio/src/pages/RepositoryPage.tsx`'s `GitHubMark` (which renders it at 16px, the header at 18px — hence `size`).
3033
+ */
3034
+ github: {
3035
+ viewBox: "0 0 24 24",
3036
+ variant: "fill",
3037
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 0 0 7.86 10.92c.58.11.79-.25.79-.56v-2c-3.2.7-3.88-1.37-3.88-1.37-.53-1.34-1.29-1.7-1.29-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.04 1.78 2.72 1.26 3.38.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.51-1.47.11-3.06 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.79 0c2.2-1.49 3.17-1.18 3.17-1.18.62 1.59.23 2.77.11 3.06.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.41.36.78 1.06.78 2.15v3.18c0 .31.21.68.8.56A11.5 11.5 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z" }) })
3038
+ },
3039
+ /**
3040
+ * studio/src/components/Layout.tsx — a robot head, the Agents nav item. Separate from `user`.
3041
+ */
3042
+ bot: {
3043
+ viewBox: "0 0 24 24",
3044
+ variant: "fill",
3045
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M11 2h2v2h4a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h4V2ZM9 9.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM8 15v1.5h8V15H8ZM2 10h1v5H2v-5Zm19 0h1v5h-1v-5Z" }) })
3046
+ },
3047
+ /**
3048
+ * studio/src/components/Layout.tsx — one person, the user chip.
3049
+ */
3050
+ user: {
3051
+ viewBox: "0 0 24 24",
3052
+ variant: "fill",
3053
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z" }) })
3054
+ },
3055
+ /**
3056
+ * studio/src/components/Layout.tsx — two overlapping people, the team roster. Deliberately separate from `user`.
3057
+ */
3058
+ users: {
3059
+ viewBox: "0 0 24 24",
3060
+ variant: "fill",
3061
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M9 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0 2c-4 0-7 2-7 4.5V20h14v-1.5C16 16 13 14 9 14Zm8.5-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 2c-.7 0-1.36.1-1.96.3 1.2.98 1.96 2.4 1.96 4.2V20h5v-1.5c0-2.2-2.4-4-5-4Z" }) })
3062
+ },
3063
+ /**
3064
+ * studio/src/components/Layout.tsx — an exit door and arrow.
3065
+ */
3066
+ logout: {
3067
+ viewBox: "0 0 24 24",
3068
+ variant: "fill",
3069
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 3h9v2H6v14h7v2H4V3Zm10.3 4.3 1.4-1.4L21.8 12l-6.1 6.1-1.4-1.4 3.7-3.7H9v-2h9l-3.7-3.7Z" }) })
3070
+ },
3071
+ /**
3072
+ * studio/src/components/SessionButton.tsx — an ID badge for the current session.
3073
+ */
3074
+ "id-card": {
3075
+ viewBox: "0 0 24 24",
3076
+ variant: "fill",
3077
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm3 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-3 8c0-2 2-3 3-3s3 1 3 3H4Zm10-8h6v2h-6V8Zm0 4h6v2h-6v-2Z" }) })
3078
+ },
3079
+ /**
3080
+ * studio/src/components/Layout.tsx — 2x2 panels, the account dashboard. Distinct from `grid`, whose four cells are equal.
3081
+ */
3082
+ dashboard: {
3083
+ viewBox: "0 0 24 24",
3084
+ variant: "fill",
3085
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 3h8v6H3V3Zm0 8h8v10H3V11Zm10 4h8v6h-8v-6Zm0-12h8v10h-8V3Z" }) })
3086
+ },
3087
+ /**
3088
+ * studio/src/components/Layout.tsx — a heartbeat trace, the reliability board.
3089
+ */
3090
+ pulse: {
3091
+ viewBox: "0 0 24 24",
3092
+ variant: "fill",
3093
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M2 11h4.4l2-5 3.4 12 3-9 1.8 2H22v2h-6.4l-1-1.2-3.4 10.2-3.4-12-1 3H2v-2Z" }) })
3094
+ },
3095
+ /**
3096
+ * studio/src/components/Layout.tsx — three step boxes and their edges.
3097
+ */
3098
+ workflow: {
3099
+ viewBox: "0 0 24 24",
3100
+ variant: "fill",
3101
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M2 3h7v7H2V3Zm13 0h7v7h-7V3ZM9 5.5h6v2H9v-2ZM15 15h7v7h-7v-7Zm2.5-5h2v5h-2v-5Z" }) })
3102
+ },
3103
+ /**
3104
+ * studio/src/components/Layout.tsx — a globe, an Endpoint being a web address. Stroked at 1.75, the rail's own weight.
3105
+ */
3106
+ globe: {
3107
+ viewBox: "0 0 24 24",
3108
+ variant: "stroke",
3109
+ strokeWidth: 1.75,
3110
+ body: /* @__PURE__ */ x(h, { children: [
3111
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9" }),
3112
+ /* @__PURE__ */ t("path", { d: "M3 12h18" }),
3113
+ /* @__PURE__ */ t("path", { d: "M12 3c2.4 2.4 3.8 5.8 3.8 9s-1.4 6.6-3.8 9c-2.4-2.4-3.8-5.8-3.8-9s1.4-6.6 3.8-9Z" })
3114
+ ] })
3115
+ },
3116
+ /**
3117
+ * studio/src/components/Layout.tsx — a lambda, reusable functions.
3118
+ */
3119
+ lambda: {
3120
+ viewBox: "0 0 24 24",
3121
+ variant: "fill",
3122
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M14 3a3 3 0 0 0-3 3v3H8v2h3v4a1 1 0 0 1-1 1H8v2h2a3 3 0 0 0 3-3v-4h3V9h-3V6a1 1 0 0 1 1-1h2V3h-2Z" }) })
3123
+ },
3124
+ /**
3125
+ * studio/src/components/Layout.tsx — three adjustable tracks (secrets AND variables; a padlock was rejected, it names only the security half). The knob dots are filled over the stroked tracks.
3126
+ */
3127
+ sliders: {
3128
+ viewBox: "0 0 24 24",
3129
+ variant: "stroke",
3130
+ strokeWidth: 1.75,
3131
+ body: /* @__PURE__ */ x(h, { children: [
3132
+ /* @__PURE__ */ t("path", { d: "M3 6h9M17 6h4M3 12h4M11 12h10M3 18h13M20 18h1" }),
3133
+ /* @__PURE__ */ t("circle", { cx: "13", cy: "6", r: "2.25", fill: "currentColor", stroke: "none" }),
3134
+ /* @__PURE__ */ t("circle", { cx: "7.5", cy: "12", r: "2.25", fill: "currentColor", stroke: "none" }),
3135
+ /* @__PURE__ */ t("circle", { cx: "16.5", cy: "18", r: "2.25", fill: "currentColor", stroke: "none" })
3136
+ ] })
3137
+ },
3138
+ /**
3139
+ * studio/src/components/Layout.tsx — a document with a folded corner, the JSON document store.
3140
+ */
3141
+ file: {
3142
+ viewBox: "0 0 24 24",
3143
+ variant: "fill",
3144
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm7 1.5V7h3.5L13 3.5ZM8 12h8v2H8v-2Zm0 4h8v2H8v-2Z" }) })
3145
+ },
3146
+ /**
3147
+ * studio/src/components/Layout.tsx — a power plug, external connections.
3148
+ */
3149
+ plug: {
3150
+ viewBox: "0 0 24 24",
3151
+ variant: "fill",
3152
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M8 2h2v4H8V2Zm6 0h2v4h-2V2ZM6 6h12v4a4 4 0 0 1-4 4h-1v5h-2v-5h-1a4 4 0 0 1-4-4V6Z" }) })
3153
+ },
3154
+ /**
3155
+ * studio/src/components/Layout.tsx — 2x2 equal squares, the app catalog.
3156
+ */
3157
+ grid: {
3158
+ viewBox: "0 0 24 24",
3159
+ variant: "fill",
3160
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 3h8v8H3V3Zm10 0h8v8h-8V3ZM3 13h8v8H3v-8Zm10 0h8v8h-8v-8Z" }) })
3161
+ },
3162
+ /**
3163
+ * studio/src/components/Layout.tsx — stacked folders, projects.
3164
+ */
3165
+ folder: {
3166
+ viewBox: "0 0 24 24",
3167
+ variant: "fill",
3168
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M3 5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm2 2v10h14V7H5Z" }) })
3169
+ },
3170
+ /**
3171
+ * studio/src/components/Layout.tsx — a branching line, a bound git repository.
3172
+ */
3173
+ "git-branch": {
3174
+ viewBox: "0 0 24 24",
3175
+ variant: "stroke",
3176
+ strokeWidth: 2,
3177
+ body: /* @__PURE__ */ x(h, { children: [
3178
+ /* @__PURE__ */ t("line", { x1: "6", y1: "3", x2: "6", y2: "15" }),
3179
+ /* @__PURE__ */ t("circle", { cx: "18", cy: "6", r: "3" }),
3180
+ /* @__PURE__ */ t("circle", { cx: "6", cy: "18", r: "3" }),
3181
+ /* @__PURE__ */ t("path", { d: "M18 9a9 9 0 0 1-9 9" })
3182
+ ] })
3183
+ },
3184
+ /**
3185
+ * studio/src/components/Layout.tsx — a ring, API tokens.
3186
+ */
3187
+ coin: {
3188
+ viewBox: "0 0 24 24",
3189
+ variant: "fill",
3190
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12Zm0 3.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z" }) })
3191
+ },
3192
+ /**
3193
+ * studio/src/components/Layout.tsx — a building, tenant administration.
3194
+ */
3195
+ building: {
3196
+ viewBox: "0 0 24 24",
3197
+ variant: "fill",
3198
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M5 21V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v17h4v2H3v-2h2Zm2-15v2h2V6H7Zm0 4v2h2v-2H7Zm0 4v2h2v-2H7Zm4-8v2h2V6h-2Zm0 4v2h2v-2h-2Zm0 4v2h2v-2h-2Z" }) })
3199
+ },
3200
+ /**
3201
+ * studio/src/components/Layout.tsx — stacked server units, the Installation panel.
3202
+ */
3203
+ server: {
3204
+ viewBox: "0 0 24 24",
3205
+ variant: "fill",
3206
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M4 4h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM4 13h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Zm3 3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" }) })
3207
+ },
3208
+ /**
3209
+ * studio/src/components/Layout.tsx — a price tag with a dollar mark, the plan + invoices.
3210
+ */
3211
+ "price-tag": {
3212
+ viewBox: "0 0 24 24",
3213
+ variant: "fill",
3214
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M12.41 2H4a2 2 0 0 0-2 2v8.41a2 2 0 0 0 .59 1.41l9 9a2 2 0 0 0 2.82 0l7.59-7.59a2 2 0 0 0 0-2.82l-9-9A2 2 0 0 0 12.41 2ZM7 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4.5 8.5-1-1L15 11l1 1-4.5 4.5Z" }) })
3215
+ },
3216
+ /**
3217
+ * studio/src/components/CallFromCodeButton.tsx — the Node mark, named for what it depicts.
3218
+ */
3219
+ "lang-node": {
3220
+ viewBox: "0 0 24 24",
3221
+ variant: "mixed",
3222
+ body: /* @__PURE__ */ x(h, { children: [
3223
+ /* @__PURE__ */ t("title", { children: "Node" }),
3224
+ /* @__PURE__ */ t(
3225
+ "path",
3226
+ {
3227
+ d: "M12 2.4 20.4 7.2v9.6L12 21.6 3.6 16.8V7.2z",
3228
+ fill: "none",
3229
+ stroke: "currentColor",
3230
+ strokeWidth: "1.6",
3231
+ strokeLinejoin: "round"
3232
+ }
3233
+ ),
3234
+ /* @__PURE__ */ t(
3235
+ "path",
3236
+ {
3237
+ d: "M9.4 15.4V8.9l5.2 6.2V8.6",
3238
+ fill: "none",
3239
+ stroke: "currentColor",
3240
+ strokeWidth: "1.6",
3241
+ strokeLinecap: "round",
3242
+ strokeLinejoin: "round"
3243
+ }
3244
+ )
3245
+ ] })
3246
+ },
3247
+ /**
3248
+ * studio/src/components/CallFromCodeButton.tsx — a terminal with a `>_` prompt, the CLI tab.
3249
+ */
3250
+ terminal: {
3251
+ viewBox: "0 0 24 24",
3252
+ variant: "mixed",
3253
+ body: /* @__PURE__ */ x(h, { children: [
3254
+ /* @__PURE__ */ t("title", { children: "CLI" }),
3255
+ /* @__PURE__ */ t(
3256
+ "rect",
3257
+ {
3258
+ x: "2.6",
3259
+ y: "4.4",
3260
+ width: "18.8",
3261
+ height: "15.2",
3262
+ rx: "2.2",
3263
+ fill: "none",
3264
+ stroke: "currentColor",
3265
+ strokeWidth: "1.6"
3266
+ }
3267
+ ),
3268
+ /* @__PURE__ */ t(
3269
+ "polyline",
3270
+ {
3271
+ points: "6.8 9.6 9.8 12 6.8 14.4",
3272
+ fill: "none",
3273
+ stroke: "currentColor",
3274
+ strokeWidth: "1.6",
3275
+ strokeLinecap: "round",
3276
+ strokeLinejoin: "round"
3277
+ }
3278
+ ),
3279
+ /* @__PURE__ */ t(
3280
+ "line",
3281
+ {
3282
+ x1: "12.4",
3283
+ y1: "15",
3284
+ x2: "17",
3285
+ y2: "15",
3286
+ stroke: "currentColor",
3287
+ strokeWidth: "1.6",
3288
+ strokeLinecap: "round"
3289
+ }
3290
+ )
3291
+ ] })
3292
+ },
3293
+ /**
3294
+ * studio/src/components/CallFromCodeButton.tsx — the Python mark (see `PythonEyes` below, which owns its mask id).
3295
+ */
3296
+ "lang-python": {
3297
+ viewBox: "0 0 24 24",
3298
+ variant: "mixed",
3299
+ body: /* @__PURE__ */ t(Ft, {})
3300
+ },
3301
+ /**
3302
+ * studio/src/components/CallFromCodeButton.tsx — curl's swoosh over a request in flight.
3303
+ */
3304
+ "lang-curl": {
3305
+ viewBox: "0 0 24 24",
3306
+ variant: "mixed",
3307
+ body: /* @__PURE__ */ x(h, { children: [
3308
+ /* @__PURE__ */ t("title", { children: "curl" }),
3309
+ /* @__PURE__ */ t(
3310
+ "path",
3311
+ {
3312
+ d: "M3 15.5c2.4 0 3.6-2.2 5.1-4.6C9.8 8.2 11.3 5.5 14 5.5c2.6 0 4 2 4 4.2 0 2.1-1.4 3.6-3.2 3.6-1.5 0-2.5-1-2.5-2.2 0-1.1.8-1.9 1.8-1.9",
3313
+ fill: "none",
3314
+ stroke: "currentColor",
3315
+ strokeWidth: "1.7",
3316
+ strokeLinecap: "round"
3317
+ }
3318
+ ),
3319
+ /* @__PURE__ */ t("circle", { cx: "4.4", cy: "18.6", r: "1.5", fill: "currentColor" }),
3320
+ /* @__PURE__ */ t("circle", { cx: "20", cy: "18.6", r: "1.5", fill: "currentColor" }),
3321
+ /* @__PURE__ */ t(
3322
+ "line",
3323
+ {
3324
+ x1: "7.4",
3325
+ y1: "18.6",
3326
+ x2: "17",
3327
+ y2: "18.6",
3328
+ stroke: "currentColor",
3329
+ strokeWidth: "1.7",
3330
+ strokeLinecap: "round",
3331
+ strokeDasharray: "0.1 3.6"
3332
+ }
3333
+ )
3334
+ ] })
3335
+ },
3336
+ /**
3337
+ * studio/src/components/Layout.tsx's theme toggle — the three glyphs that
3338
+ * button draws for its three states. It used to draw the text characters
3339
+ * `◐`/`☀︎`/`☾`, which no shared set can hold: a text glyph is not a drawn
3340
+ * shape, and `IconButton` names its glyph instead. Feather-style outline
3341
+ * (`strokeWidth` 2, like the rest of the Feather-derived entries) so all
3342
+ * three read as one family at 16px. `circle-half`'s filled half is the
3343
+ * "system" state — half light, half dark.
3344
+ */
3345
+ sun: {
3346
+ viewBox: "0 0 24 24",
3347
+ variant: "stroke",
3348
+ body: /* @__PURE__ */ x(h, { children: [
3349
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "5" }),
3350
+ /* @__PURE__ */ t("line", { x1: "12", y1: "1", x2: "12", y2: "3" }),
3351
+ /* @__PURE__ */ t("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
3352
+ /* @__PURE__ */ t("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }),
3353
+ /* @__PURE__ */ t("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }),
3354
+ /* @__PURE__ */ t("line", { x1: "1", y1: "12", x2: "3", y2: "12" }),
3355
+ /* @__PURE__ */ t("line", { x1: "21", y1: "12", x2: "23", y2: "12" }),
3356
+ /* @__PURE__ */ t("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }),
3357
+ /* @__PURE__ */ t("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
3358
+ ] })
3359
+ },
3360
+ moon: {
3361
+ viewBox: "0 0 24 24",
3362
+ variant: "stroke",
3363
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79Z" }) })
3364
+ },
3365
+ "circle-half": {
3366
+ viewBox: "0 0 24 24",
3367
+ variant: "mixed",
3368
+ body: /* @__PURE__ */ x(h, { children: [
3369
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "9", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
3370
+ /* @__PURE__ */ t("path", { d: "M12 3a9 9 0 0 1 0 18V3Z", fill: "currentColor" })
3371
+ ] })
3372
+ },
3373
+ /**
3374
+ * ui/src/WorkflowFlowEditor.tsx's `AutoLayoutIcon` — the auto-layout control's
3375
+ * three-box hierarchy (one parent over two children), on a `0 0 24 24` box.
3376
+ *
3377
+ * `mixed` — rooted in the "the root adds NO paint" half of that variant, which
3378
+ * this glyph needs literally: its source `<svg>` carried no paint attribute at
3379
+ * all, and neither does its path, so a `fill="currentColor"` on the root would
3380
+ * NOT be the source's markup and a `fill="none" stroke=…` root would render
3381
+ * NOTHING at all here. The colour comes from the context — the path sits inside
3382
+ * a `@xyflow/react` control button whose `svg { fill: currentColor }` paints it
3383
+ * (`@xyflow/react/dist/style.css`), exactly as it does today.
3384
+ */
3385
+ layout: {
3386
+ viewBox: "0 0 24 24",
3387
+ variant: "mixed",
3388
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("path", { d: "M9 3h6v6H9zM11 9h2v2h-2zM4 11h16v2H4zM4 13h2v2H4zM18 13h2v2h-2zM2 15h6v6H2zM16 15h6v6h-6z" }) })
3389
+ },
3390
+ /**
3391
+ * ui/src/WorkflowFlowEditor.tsx's node-toolbar "Test-run this step" button — a
3392
+ * play triangle, but NOT `play` above: its points are its own (14 wide × 16
3393
+ * tall against `play`'s 14 × 18), so it keeps its own entry rather than being
3394
+ * redrawn to match.
3395
+ */
3396
+ run: {
3397
+ viewBox: "0 0 24 24",
3398
+ variant: "stroke",
3399
+ strokeWidth: 2,
3400
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polygon", { points: "6 4 20 12 6 20 6 4" }) })
3401
+ },
3402
+ /**
3403
+ * ui/src/WorkflowFlowEditor.tsx's node-toolbar pause toggle — Feather `pause`
3404
+ * (two bars): a test run started from ▶ stops before a paused node.
3405
+ */
3406
+ pause: {
3407
+ viewBox: "0 0 24 24",
3408
+ variant: "stroke",
3409
+ strokeWidth: 2,
3410
+ body: /* @__PURE__ */ x(h, { children: [
3411
+ /* @__PURE__ */ t("rect", { x: "6", y: "4", width: "4", height: "16" }),
3412
+ /* @__PURE__ */ t("rect", { x: "14", y: "4", width: "4", height: "16" })
3413
+ ] })
3414
+ },
3415
+ /**
3416
+ * ui/src/WorkflowFlowEditor.tsx's node-toolbar disable toggle — Feather `slash`
3417
+ * (a circle with a diagonal line): a disabled node is skipped in every run.
3418
+ */
3419
+ ban: {
3420
+ viewBox: "0 0 24 24",
3421
+ variant: "stroke",
3422
+ strokeWidth: 2,
3423
+ body: /* @__PURE__ */ x(h, { children: [
3424
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10" }),
3425
+ /* @__PURE__ */ t("line", { x1: "4.93", y1: "4.93", x2: "19.07", y2: "19.07" })
3426
+ ] })
3427
+ },
3428
+ /**
3429
+ * ui/src/WorkflowFlowEditor.tsx's node-toolbar delete button — Feather `trash`
3430
+ * (lid + body, no inner lines); distinct from `delete` above, which is the
3431
+ * fuller 4-shape `trash-2`.
3432
+ */
3433
+ trash: {
3434
+ viewBox: "0 0 24 24",
3435
+ variant: "stroke",
3436
+ strokeWidth: 2,
3437
+ body: /* @__PURE__ */ x(h, { children: [
3438
+ /* @__PURE__ */ t("polyline", { points: "3 6 5 6 21 6" }),
3439
+ /* @__PURE__ */ t("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })
3440
+ ] })
3441
+ },
3442
+ /**
3443
+ * ui/src/ParamsForm.tsx's JSON field — "Open in full view": Feather
3444
+ * `maximize-2`, the two diagonal expand arrows.
3445
+ */
3446
+ maximize: {
3447
+ viewBox: "0 0 24 24",
3448
+ variant: "stroke",
3449
+ strokeWidth: 2,
3450
+ body: /* @__PURE__ */ x(h, { children: [
3451
+ /* @__PURE__ */ t("polyline", { points: "15 3 21 3 21 9" }),
3452
+ /* @__PURE__ */ t("polyline", { points: "9 21 3 21 3 15" }),
3453
+ /* @__PURE__ */ t("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
3454
+ /* @__PURE__ */ t("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3455
+ ] })
3456
+ },
3457
+ /**
3458
+ * ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS.props` — a bordered panel
3459
+ * with three text lines: the step's field form. Distinct from `file-text`,
3460
+ * which is a document with a folded corner.
3461
+ */
3462
+ form: {
3463
+ viewBox: "0 0 24 24",
3464
+ variant: "stroke",
3465
+ strokeWidth: 2,
3466
+ body: /* @__PURE__ */ x(h, { children: [
3467
+ /* @__PURE__ */ t("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
3468
+ /* @__PURE__ */ t("line", { x1: "7", y1: "8", x2: "17", y2: "8" }),
3469
+ /* @__PURE__ */ t("line", { x1: "7", y1: "12", x2: "17", y2: "12" }),
3470
+ /* @__PURE__ */ t("line", { x1: "7", y1: "16", x2: "13", y2: "16" })
3471
+ ] })
3472
+ },
3473
+ /**
3474
+ * ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS["params-code"]` — square
3475
+ * braces, the params as a VALUE. A second glyph for the braces meaning beside
3476
+ * `json` (whose curved `<path>` braces it does not share); its own name rather
3477
+ * than a redraw, so the two views stay tellable apart at 15px.
3478
+ */
3479
+ braces: {
3480
+ viewBox: "0 0 24 24",
3481
+ variant: "stroke",
3482
+ strokeWidth: 2,
3483
+ body: /* @__PURE__ */ x(h, { children: [
3484
+ /* @__PURE__ */ t("polyline", { points: "9 4 7 4 7 10 5 12 7 14 7 20 9 20" }),
3485
+ /* @__PURE__ */ t("polyline", { points: "15 4 17 4 17 10 19 12 17 14 17 20 15 20" })
3486
+ ] })
3487
+ },
3488
+ /**
3489
+ * ui/src/StepBuilderModal.tsx's `CONFIG_VIEW_GLYPHS.config` — Feather
3490
+ * `settings`, the node-settings gear. Distinct from `settings` above (the
3491
+ * filled Material gear Layout.tsx draws): this one is the stroked outline.
3492
+ */
3493
+ "settings-2": {
3494
+ viewBox: "0 0 24 24",
3495
+ variant: "stroke",
3496
+ strokeWidth: 2,
3497
+ body: /* @__PURE__ */ x(h, { children: [
3498
+ /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "3" }),
3499
+ /* @__PURE__ */ t("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
3500
+ ] })
3501
+ },
3502
+ /**
3503
+ * ui/src/WorkflowFlowEditor.tsx's "Add note" canvas button — a sheet with a
3504
+ * folded corner (Lucide `sticky-note`). Drawn here, not copied from a studio
3505
+ * site: the canvas toolbar is its first and only user.
3506
+ */
3507
+ "sticky-note": {
3508
+ viewBox: "0 0 24 24",
3509
+ variant: "stroke",
3510
+ strokeWidth: 2,
3511
+ body: /* @__PURE__ */ x(h, { children: [
3512
+ /* @__PURE__ */ t("path", { d: "M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z" }),
3513
+ /* @__PURE__ */ t("path", { d: "M15 3v4a2 2 0 0 0 2 2h4" })
3514
+ ] })
3515
+ },
3516
+ /**
3517
+ * ui/src/WorkflowFlowEditor.tsx's "Draw section" canvas tool — four crossing
3518
+ * lines marking out a frame (Feather/Lucide `frame`). Drawn here; first user.
3519
+ */
3520
+ frame: {
3521
+ viewBox: "0 0 24 24",
3522
+ variant: "stroke",
3523
+ strokeWidth: 2,
3524
+ body: /* @__PURE__ */ x(h, { children: [
3525
+ /* @__PURE__ */ t("line", { x1: "22", y1: "6", x2: "2", y2: "6" }),
3526
+ /* @__PURE__ */ t("line", { x1: "22", y1: "18", x2: "2", y2: "18" }),
3527
+ /* @__PURE__ */ t("line", { x1: "6", y1: "2", x2: "6", y2: "22" }),
3528
+ /* @__PURE__ */ t("line", { x1: "18", y1: "2", x2: "18", y2: "22" })
3529
+ ] })
3530
+ },
3531
+ /**
3532
+ * ui/src/CanvasLayer.tsx's note toolbar — Feather `bold`. Drawn here; first user.
3533
+ */
3534
+ bold: {
3535
+ viewBox: "0 0 24 24",
3536
+ variant: "stroke",
3537
+ strokeWidth: 2.5,
3538
+ body: /* @__PURE__ */ x(h, { children: [
3539
+ /* @__PURE__ */ t("path", { d: "M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z" }),
3540
+ /* @__PURE__ */ t("path", { d: "M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z" })
3541
+ ] })
3542
+ },
3543
+ /**
3544
+ * ui/src/CanvasLayer.tsx's note drag handle — two columns of three dots
3545
+ * (Lucide `grip-vertical`). Drawn here; first user.
3546
+ */
3547
+ grip: {
3548
+ viewBox: "0 0 24 24",
3549
+ variant: "stroke",
3550
+ strokeWidth: 2,
3551
+ body: /* @__PURE__ */ x(h, { children: [
3552
+ /* @__PURE__ */ t("circle", { cx: "9", cy: "12", r: "1" }),
3553
+ /* @__PURE__ */ t("circle", { cx: "9", cy: "5", r: "1" }),
3554
+ /* @__PURE__ */ t("circle", { cx: "9", cy: "19", r: "1" }),
3555
+ /* @__PURE__ */ t("circle", { cx: "15", cy: "12", r: "1" }),
3556
+ /* @__PURE__ */ t("circle", { cx: "15", cy: "5", r: "1" }),
3557
+ /* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1" })
3558
+ ] })
3559
+ },
3560
+ /**
3561
+ * ui/src/CanvasLayer.tsx's note toolbar menus — Feather `chevron-down`.
3562
+ * Drawn here; first user.
3563
+ */
3564
+ "chevron-down": {
3565
+ viewBox: "0 0 24 24",
3566
+ variant: "stroke",
3567
+ strokeWidth: 2,
3568
+ body: /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t("polyline", { points: "6 9 12 15 18 9" }) })
3569
+ },
3570
+ /**
3571
+ * The workflow toolbar's State button (embed `WorkflowEditor.tsx`) — Feather `database`, a
3572
+ * stack of records: the run's state tree.
3573
+ */
3574
+ database: {
3575
+ viewBox: "0 0 24 24",
3576
+ variant: "stroke",
3577
+ strokeWidth: 2,
3578
+ body: /* @__PURE__ */ x(h, { children: [
3579
+ /* @__PURE__ */ t("ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }),
3580
+ /* @__PURE__ */ t("path", { d: "M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" }),
3581
+ /* @__PURE__ */ t("path", { d: "M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" })
3582
+ ] })
3583
+ }
3584
+ }, Mt = Object.keys(ye);
3585
+ function Tt(e) {
3586
+ return e.variant === "fill" ? { fill: "currentColor" } : e.variant === "stroke" ? {
3587
+ fill: "none",
3588
+ stroke: "currentColor",
3589
+ strokeWidth: e.strokeWidth ?? 2,
3590
+ strokeLinecap: "round",
3591
+ strokeLinejoin: "round"
3592
+ } : {};
3593
+ }
3594
+ function fe(e) {
3595
+ const { name: a, size: r = 16, label: l, className: u } = e, k = ye[a], p = !!l;
3596
+ return /* @__PURE__ */ t(
3597
+ "svg",
3598
+ {
3599
+ className: ["w6w-icon", u ?? ""].filter(Boolean).join(" "),
3600
+ width: r,
3601
+ height: r,
3602
+ viewBox: k.viewBox,
3603
+ ...Tt(k),
3604
+ role: p ? "img" : void 0,
3605
+ "aria-label": p ? l : void 0,
3606
+ "aria-hidden": p ? void 0 : "true",
3607
+ focusable: p ? void 0 : "false",
3608
+ children: k.body
3609
+ }
3610
+ );
3611
+ }
3612
+ const be = 1500;
3613
+ function Rt(e, a = be) {
3614
+ const [r, l] = we(!1), u = se(null);
3615
+ ie(() => () => {
3616
+ u.current !== null && clearTimeout(u.current);
3617
+ }, []);
3618
+ const k = j(async () => {
3619
+ var p;
3620
+ try {
3621
+ await ((p = navigator.clipboard) == null ? void 0 : p.writeText(e)), l(!0), u.current !== null && clearTimeout(u.current), u.current = setTimeout(() => l(!1), a);
3622
+ } catch {
3623
+ }
3624
+ }, [e, a]);
3625
+ return { copied: r, copy: k };
3626
+ }
3627
+ function Lt() {
3628
+ return /* @__PURE__ */ t(fe, { name: "copy", size: 14 });
3629
+ }
3630
+ function Bt() {
3631
+ return /* @__PURE__ */ t(fe, { name: "check", size: 14 });
3632
+ }
3633
+ function It(e) {
3634
+ const {
3635
+ value: a,
3636
+ copiedMs: r = be,
3637
+ readOnly: l = !1,
3638
+ label: u = "Copy",
3639
+ className: k,
3640
+ children: p
3641
+ } = e, { copied: v, copy: g } = Rt(a, r), f = se(null), m = j(() => {
3642
+ var w;
3643
+ const d = (w = f.current) == null ? void 0 : w.querySelector("input, textarea");
3644
+ d == null || d.select();
3645
+ }, []);
3646
+ return ie(() => {
3647
+ if (!l) return;
3648
+ const d = f.current;
3649
+ if (!d) return;
3650
+ const w = (A) => {
3651
+ var i;
3652
+ const n = A.target;
3653
+ if ((i = n == null ? void 0 : n.closest) != null && i.call(n, "button")) return;
3654
+ const o = window.getSelection();
3655
+ o && !o.isCollapsed && d.contains(o.anchorNode) || (g(), m());
3656
+ };
3657
+ return d.addEventListener("click", w), () => d.removeEventListener("click", w);
3658
+ }, [l, g, m]), /* @__PURE__ */ x("div", { ref: f, className: ["w6w-copyable", k ?? ""].filter(Boolean).join(" "), children: [
3659
+ p,
3660
+ /* @__PURE__ */ t(
3661
+ "button",
3662
+ {
3663
+ type: "button",
3664
+ className: `w6w-icon-btn w6w-copyable-btn${v ? " is-copied" : ""}`,
3665
+ "aria-label": u,
3666
+ onClick: () => void g(),
3667
+ children: v ? /* @__PURE__ */ t(Bt, {}) : /* @__PURE__ */ t(Lt, {})
3668
+ }
3669
+ ),
3670
+ /* @__PURE__ */ t("span", { className: "w6w-copyable-status", "aria-live": "polite", children: v ? "Copied" : "" })
3671
+ ] });
3672
+ }
3673
+ const Ct = {
2799
3674
  comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 },
2800
3675
  // Before `string`, so the `\` ending a continued line never opens one.
2801
3676
  continuation: { pattern: /\\$/m, alias: "punctuation" },
@@ -2812,8 +3687,8 @@ const vt = {
2812
3687
  operator: /\|\||&&|[|&;<>]/,
2813
3688
  punctuation: /[{}[\]()]/
2814
3689
  };
2815
- n.languages.shell || (n.languages.shell = vt, n.languages.bash = n.languages.shell, n.languages.sh = n.languages.shell);
2816
- const wt = {
3690
+ s.languages.shell || (s.languages.shell = Ct, s.languages.bash = s.languages.shell, s.languages.sh = s.languages.shell);
3691
+ const Ot = {
2817
3692
  plain: { color: "var(--w6w-text)", backgroundColor: "transparent" },
2818
3693
  styles: [
2819
3694
  {
@@ -2842,48 +3717,54 @@ const wt = {
2842
3717
  { types: ["regex", "important"], style: { color: "var(--w6w-code-number)" } }
2843
3718
  ]
2844
3719
  };
2845
- function At(e) {
3720
+ function $t(e) {
2846
3721
  const {
2847
- code: t,
2848
- language: a = "plaintext",
3722
+ code: a,
3723
+ language: r = "plaintext",
2849
3724
  wrap: l,
2850
- showLineNumbers: c,
2851
- maxHeight: h,
3725
+ showLineNumbers: u,
3726
+ maxHeight: k,
2852
3727
  className: p,
2853
- copyable: m = !0,
3728
+ copyable: v = !0,
2854
3729
  copiedMs: g
2855
- } = e, d = t.replace(/\n+$/, "");
2856
- return /* @__PURE__ */ $(ht, { theme: wt, code: d, language: a, children: ({ className: b, style: f, tokens: v, getLineProps: E, getTokenProps: o }) => {
2857
- const r = /* @__PURE__ */ $(
3730
+ } = e, f = a.replace(/\n+$/, "");
3731
+ return /* @__PURE__ */ t(_t, { theme: Ot, code: f, language: r, children: ({ className: m, style: d, tokens: w, getLineProps: A, getTokenProps: n }) => {
3732
+ const o = /* @__PURE__ */ t(
2858
3733
  "pre",
2859
3734
  {
2860
3735
  className: [
2861
3736
  "w6w-code-block",
2862
3737
  l ? "w6w-code-block--wrap" : "",
2863
- c ? "w6w-code-block--numbered" : "",
2864
- b,
3738
+ u ? "w6w-code-block--numbered" : "",
3739
+ m,
2865
3740
  p ?? ""
2866
3741
  ].filter(Boolean).join(" "),
2867
- style: { ...f, ...h ? { maxHeight: h, overflowY: "auto" } : null },
2868
- "aria-label": e["aria-label"] ?? `${a} code`,
2869
- children: /* @__PURE__ */ $("code", { children: (() => {
2870
- let s = 0;
2871
- return v.map((u, i) => {
2872
- const y = E({ line: u }), w = `w6w-code-line ${y.className ?? ""}`, k = `L${s}`;
2873
- let A = s;
2874
- const x = u.map((S, _) => {
2875
- const L = o({ token: S }), R = `T${A}-${_}`;
2876
- return A += S.content.length, /* @__PURE__ */ K("span", { ...L, key: R });
3742
+ style: { ...d, ...k ? { maxHeight: k, overflowY: "auto" } : null },
3743
+ "aria-label": e["aria-label"] ?? `${r} code`,
3744
+ children: /* @__PURE__ */ t("code", { children: (() => {
3745
+ let i = 0;
3746
+ return w.map((y, c) => {
3747
+ const b = A({ line: y }), E = `w6w-code-line ${b.className ?? ""}`, S = `L${i}`;
3748
+ let F = i;
3749
+ const _ = y.map((T, R) => {
3750
+ const O = n({ token: T }), I = `T${F}-${R}`;
3751
+ return F += T.content.length, /* @__PURE__ */ Q("span", { ...O, key: I });
2877
3752
  });
2878
- return s = A + 1, /* @__PURE__ */ K("span", { ...y, key: k, className: w }, c && /* @__PURE__ */ $("span", { className: "w6w-code-line-no", "aria-hidden": "true", children: i + 1 }), /* @__PURE__ */ $("span", { className: "w6w-code-line-text", children: x }));
3753
+ return i = F + 1, /* @__PURE__ */ Q("span", { ...b, key: S, className: E }, u && /* @__PURE__ */ t("span", { className: "w6w-code-line-no", "aria-hidden": "true", children: c + 1 }), /* @__PURE__ */ t("span", { className: "w6w-code-line-text", children: _ }));
2879
3754
  });
2880
3755
  })() })
2881
3756
  }
2882
3757
  );
2883
- return m ? /* @__PURE__ */ $(de, { value: d, copiedMs: g, readOnly: !0, children: r }) : r;
3758
+ return v ? /* @__PURE__ */ t(It, { value: f, copiedMs: g, readOnly: !0, children: o }) : o;
2884
3759
  } });
2885
3760
  }
2886
3761
  export {
2887
- At as C
3762
+ $t as C,
3763
+ fe as I,
3764
+ It as a,
3765
+ Bt as b,
3766
+ Lt as c,
3767
+ Mt as i,
3768
+ Rt as u
2888
3769
  };
2889
- //# sourceMappingURL=CodeBlock-Dot3Pd7P.js.map
3770
+ //# sourceMappingURL=CodeBlock-C-oIIYfC.js.map