@orangelogic/design-system 2.60.0 → 2.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,7 +1,9 @@
1
- import { C as tt, x as nt, n as G, c as rt } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { w as ge } from "../chunks/watch.BCJD77bD.js";
3
- import { r as st } from "../chunks/state.Cw55xXlb.js";
4
- import { o as it } from "../chunks/unsafe-html.DyO9_Rsq.js";
1
+ import { C as tt, n as G } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as nt } from "../chunks/custom-element.L4WJXn1j.js";
3
+ import { w as ge } from "../chunks/watch.q1sEjPWL.js";
4
+ import { x as rt } from "../chunks/lit-element.jLBm65_O.js";
5
+ import { r as st } from "../chunks/state.CSDxrqLd.js";
6
+ import { o as it } from "../chunks/unsafe-html.Dff7-rCx.js";
5
7
  import { c as ze } from "../chunks/_commonjsHelpers.ByX85dGu.js";
6
8
  class at extends tt {
7
9
  constructor() {
@@ -30,7 +32,7 @@ class at extends tt {
30
32
  function lt(u) {
31
33
  return u.styles !== void 0;
32
34
  }
33
- function xe() {
35
+ function me() {
34
36
  return {
35
37
  async: !1,
36
38
  breaks: !1,
@@ -44,7 +46,7 @@ function xe() {
44
46
  walkTokens: null
45
47
  };
46
48
  }
47
- let D = xe();
49
+ let D = me();
48
50
  function Oe(u) {
49
51
  D = u;
50
52
  }
@@ -91,8 +93,8 @@ function Re(u) {
91
93
  const W = { exec: () => null };
92
94
  function Ce(u, n) {
93
95
  const e = u.replace(/\|/g, (i, r, a) => {
94
- let c = !1, m = r;
95
- for (; --m >= 0 && a[m] === "\\"; )
96
+ let c = !1, x = r;
97
+ for (; --x >= 0 && a[x] === "\\"; )
96
98
  c = !c;
97
99
  return c ? "|" : " |";
98
100
  }), t = e.split(/ \|/);
@@ -262,7 +264,7 @@ class se {
262
264
  };
263
265
  t = s ? `\\d{1,9}\\${t.slice(-1)}` : `\\${t}`, this.options.pedantic && (t = s ? t : "[*+-]");
264
266
  const r = new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`);
265
- let a = "", c = "", m = !1;
267
+ let a = "", c = "", x = !1;
266
268
  for (; n; ) {
267
269
  let f = !1;
268
270
  if (!(e = r.exec(n)) || this.rules.block.hr.test(n))
@@ -294,7 +296,7 @@ class se {
294
296
  `, n = n.substring(h.length + 1), b = d.slice(v);
295
297
  }
296
298
  }
297
- i.loose || (m ? i.loose = !0 : /\n *\n *$/.test(a) && (m = !0));
299
+ i.loose || (x ? i.loose = !0 : /\n *\n *$/.test(a) && (x = !0));
298
300
  let $ = null, w;
299
301
  this.options.gfm && ($ = /^\[[ xX]\] /.exec(c), $ && (w = $[0] !== "[ ] ", c = c.replace(/^\[[ xX]\] +/, ""))), i.items.push({
300
302
  type: "list_item",
@@ -475,21 +477,21 @@ class se {
475
477
  return;
476
478
  if (!(s[1] || s[2] || "") || !t || this.rules.inline.punctuation.exec(t)) {
477
479
  const r = [...s[0]].length - 1;
478
- let a, c, m = r, f = 0;
480
+ let a, c, x = r, f = 0;
479
481
  const b = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
480
482
  for (b.lastIndex = 0, e = e.slice(-1 * n.length + r); (s = b.exec(e)) != null; ) {
481
483
  if (a = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !a)
482
484
  continue;
483
485
  if (c = [...a].length, s[3] || s[4]) {
484
- m += c;
486
+ x += c;
485
487
  continue;
486
488
  } else if ((s[5] || s[6]) && r % 3 && !((r + c) % 3)) {
487
489
  f += c;
488
490
  continue;
489
491
  }
490
- if (m -= c, m > 0)
492
+ if (x -= c, x > 0)
491
493
  continue;
492
- c = Math.min(c, c + m + f);
494
+ c = Math.min(c, c + x + f);
493
495
  const d = [...s[0]][0].length, v = n.slice(0, r + s.index + d + c);
494
496
  if (Math.min(r, c) % 2) {
495
497
  const $ = v.slice(1, -1);
@@ -599,11 +601,11 @@ class se {
599
601
  }
600
602
  }
601
603
  }
602
- const kt = /^(?: *(?:\n|$))+/, xt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, mt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, N = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, bt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, De = /(?:[*+-]|\d{1,9}[.)])/, je = T(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, De).getRegex(), me = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, wt = /^[^\n]+/, be = /(?!\s*\])(?:\\.|[^\[\]\\])+/, yt = T(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", be).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), vt = T(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, De).getRegex(), le = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", we = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, $t = T("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", we).replace("tag", le).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), He = T(me).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", le).getRegex(), At = T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", He).getRegex(), ye = {
604
+ const kt = /^(?: *(?:\n|$))+/, mt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, xt = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, N = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, bt = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, De = /(?:[*+-]|\d{1,9}[.)])/, je = T(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, De).getRegex(), xe = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, wt = /^[^\n]+/, be = /(?!\s*\])(?:\\.|[^\[\]\\])+/, yt = T(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", be).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), vt = T(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, De).getRegex(), le = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", we = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, $t = T("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", we).replace("tag", le).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), He = T(xe).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", le).getRegex(), At = T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", He).getRegex(), ye = {
603
605
  blockquote: At,
604
- code: xt,
606
+ code: mt,
605
607
  def: yt,
606
- fences: mt,
608
+ fences: xt,
607
609
  heading: bt,
608
610
  hr: N,
609
611
  html: $t,
@@ -616,7 +618,7 @@ const kt = /^(?: *(?:\n|$))+/, xt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, mt =
616
618
  }, Le = T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", le).getRegex(), Tt = {
617
619
  ...ye,
618
620
  table: Le,
619
- paragraph: T(me).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Le).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", le).getRegex()
621
+ paragraph: T(xe).replace("hr", N).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Le).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", le).getRegex()
620
622
  }, St = {
621
623
  ...ye,
622
624
  html: T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", we).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
@@ -625,7 +627,7 @@ const kt = /^(?: *(?:\n|$))+/, xt = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, mt =
625
627
  fences: W,
626
628
  // fences not supported
627
629
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
628
- paragraph: T(me).replace("hr", N).replace("heading", ` *#{1,6} *[^
630
+ paragraph: T(xe).replace("hr", N).replace("heading", ` *#{1,6} *[^
629
631
  ]`).replace("lheading", je).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
630
632
  }, Ue = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ft = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Qe = /^( {2,}|\\)\n(?!\s*$)/, _t = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, X = "\\p{P}$+<=>`^|~", zt = T(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, X).getRegex(), Et = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Rt = T(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, X).getRegex(), Ct = T("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, X).getRegex(), It = T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, X).getRegex(), Lt = T(/\\([punct])/, "gu").replace(/punct/g, X).getRegex(), Pt = T(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Mt = T(we).replace("(?:-->|$)", "-->").getRegex(), qt = T("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Mt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), ie = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ot = T(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", ie).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), We = T(/^!?\[(label)\]\[(ref)\]/).replace("label", ie).replace("ref", be).getRegex(), Ge = T(/^!?\[(ref)\](?:\[\])?/).replace("ref", be).getRegex(), Zt = T("reflink|nolink(?!\\()", "g").replace("reflink", We).replace("nolink", Ge).getRegex(), ve = {
631
633
  _backpedal: W,
@@ -725,7 +727,7 @@ class L {
725
727
  return this.inlineQueue = [], this.tokens;
726
728
  }
727
729
  blockTokens(n, e = []) {
728
- this.options.pedantic ? n = n.replace(/\t/g, " ").replace(/^ +$/gm, "") : n = n.replace(/^( *)(\t+)/gm, (a, c, m) => c + " ".repeat(m.length));
730
+ this.options.pedantic ? n = n.replace(/\t/g, " ").replace(/^ +$/gm, "") : n = n.replace(/^( *)(\t+)/gm, (a, c, x) => c + " ".repeat(x.length));
729
731
  let t, s, i, r;
730
732
  for (; n; )
731
733
  if (!(this.options.extensions && this.options.extensions.block && this.options.extensions.block.some((a) => (t = a.call({ lexer: this }, n, e)) ? (n = n.substring(t.raw.length), e.push(t), !0) : !1))) {
@@ -784,9 +786,9 @@ class L {
784
786
  if (i = n, this.options.extensions && this.options.extensions.startBlock) {
785
787
  let a = 1 / 0;
786
788
  const c = n.slice(1);
787
- let m;
789
+ let x;
788
790
  this.options.extensions.startBlock.forEach((f) => {
789
- m = f.call({ lexer: this }, c), typeof m == "number" && m >= 0 && (a = Math.min(a, m));
791
+ x = f.call({ lexer: this }, c), typeof x == "number" && x >= 0 && (a = Math.min(a, x));
790
792
  }), a < 1 / 0 && a >= 0 && (i = n.substring(0, a + 1));
791
793
  }
792
794
  if (this.state.top && (t = this.tokenizer.paragraph(i))) {
@@ -819,7 +821,7 @@ class L {
819
821
  * Lexing/Compiling
820
822
  */
821
823
  inlineTokens(n, e = []) {
822
- let t, s, i, r = n, a, c, m;
824
+ let t, s, i, r = n, a, c, x;
823
825
  if (this.tokens.links) {
824
826
  const f = Object.keys(this.tokens.links);
825
827
  if (f.length > 0)
@@ -831,7 +833,7 @@ class L {
831
833
  for (; (a = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; )
832
834
  r = r.slice(0, a.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
833
835
  for (; n; )
834
- if (c || (m = ""), c = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((f) => (t = f.call({ lexer: this }, n, e)) ? (n = n.substring(t.raw.length), e.push(t), !0) : !1))) {
836
+ if (c || (x = ""), c = !1, !(this.options.extensions && this.options.extensions.inline && this.options.extensions.inline.some((f) => (t = f.call({ lexer: this }, n, e)) ? (n = n.substring(t.raw.length), e.push(t), !0) : !1))) {
835
837
  if (t = this.tokenizer.escape(n)) {
836
838
  n = n.substring(t.raw.length), e.push(t);
837
839
  continue;
@@ -848,7 +850,7 @@ class L {
848
850
  n = n.substring(t.raw.length), s = e[e.length - 1], s && t.type === "text" && s.type === "text" ? (s.raw += t.raw, s.text += t.text) : e.push(t);
849
851
  continue;
850
852
  }
851
- if (t = this.tokenizer.emStrong(n, r, m)) {
853
+ if (t = this.tokenizer.emStrong(n, r, x)) {
852
854
  n = n.substring(t.raw.length), e.push(t);
853
855
  continue;
854
856
  }
@@ -881,7 +883,7 @@ class L {
881
883
  }), f < 1 / 0 && f >= 0 && (i = n.substring(0, f + 1));
882
884
  }
883
885
  if (t = this.tokenizer.inlineText(i)) {
884
- n = n.substring(t.raw.length), t.raw.slice(-1) !== "_" && (m = t.raw.slice(-1)), c = !0, s = e[e.length - 1], s && s.type === "text" ? (s.raw += t.raw, s.text += t.text) : e.push(t);
886
+ n = n.substring(t.raw.length), t.raw.slice(-1) !== "_" && (x = t.raw.slice(-1)), c = !0, s = e[e.length - 1], s && s.type === "text" ? (s.raw += t.raw, s.text += t.text) : e.push(t);
885
887
  continue;
886
888
  }
887
889
  if (n) {
@@ -1082,15 +1084,15 @@ class P {
1082
1084
  for (let f = 0; f < r.header.length; f++)
1083
1085
  c += this.renderer.tablecell(this.parseInline(r.header[f].tokens), { header: !0, align: r.align[f] });
1084
1086
  a += this.renderer.tablerow(c);
1085
- let m = "";
1087
+ let x = "";
1086
1088
  for (let f = 0; f < r.rows.length; f++) {
1087
1089
  const b = r.rows[f];
1088
1090
  c = "";
1089
1091
  for (let d = 0; d < b.length; d++)
1090
1092
  c += this.renderer.tablecell(this.parseInline(b[d].tokens), { header: !1, align: r.align[d] });
1091
- m += this.renderer.tablerow(c);
1093
+ x += this.renderer.tablerow(c);
1092
1094
  }
1093
- t += this.renderer.table(a, m);
1095
+ t += this.renderer.table(a, x);
1094
1096
  continue;
1095
1097
  }
1096
1098
  case "blockquote": {
@@ -1099,19 +1101,19 @@ class P {
1099
1101
  continue;
1100
1102
  }
1101
1103
  case "list": {
1102
- const r = i, a = r.ordered, c = r.start, m = r.loose;
1104
+ const r = i, a = r.ordered, c = r.start, x = r.loose;
1103
1105
  let f = "";
1104
1106
  for (let b = 0; b < r.items.length; b++) {
1105
1107
  const d = r.items[b], v = d.checked, E = d.task;
1106
1108
  let $ = "";
1107
1109
  if (d.task) {
1108
1110
  const w = this.renderer.checkbox(!!v);
1109
- m ? d.tokens.length > 0 && d.tokens[0].type === "paragraph" ? (d.tokens[0].text = w + " " + d.tokens[0].text, d.tokens[0].tokens && d.tokens[0].tokens.length > 0 && d.tokens[0].tokens[0].type === "text" && (d.tokens[0].tokens[0].text = w + " " + d.tokens[0].tokens[0].text)) : d.tokens.unshift({
1111
+ x ? d.tokens.length > 0 && d.tokens[0].type === "paragraph" ? (d.tokens[0].text = w + " " + d.tokens[0].text, d.tokens[0].tokens && d.tokens[0].tokens.length > 0 && d.tokens[0].tokens[0].type === "text" && (d.tokens[0].tokens[0].text = w + " " + d.tokens[0].tokens[0].text)) : d.tokens.unshift({
1110
1112
  type: "text",
1111
1113
  text: w + " "
1112
1114
  }) : $ += w + " ";
1113
1115
  }
1114
- $ += this.parse(d.tokens, m), f += this.renderer.listitem($, E, !!v);
1116
+ $ += this.parse(d.tokens, x), f += this.renderer.listitem($, E, !!v);
1115
1117
  }
1116
1118
  t += this.renderer.list(f, a, c);
1117
1119
  continue;
@@ -1250,7 +1252,7 @@ class ne {
1250
1252
  }
1251
1253
  }
1252
1254
  class Ne {
1253
- defaults = xe();
1255
+ defaults = me();
1254
1256
  options = this.setOptions;
1255
1257
  parse = this.#e(L.lex, P.parse);
1256
1258
  parseInline = this.#e(L.lexInline, P.parseInline);
@@ -1322,10 +1324,10 @@ class Ne {
1322
1324
  throw new Error(`renderer '${r}' does not exist`);
1323
1325
  if (r === "options")
1324
1326
  continue;
1325
- const a = r, c = t.renderer[a], m = i[a];
1327
+ const a = r, c = t.renderer[a], x = i[a];
1326
1328
  i[a] = (...f) => {
1327
1329
  let b = c.apply(i, f);
1328
- return b === !1 && (b = m.apply(i, f)), b || "";
1330
+ return b === !1 && (b = x.apply(i, f)), b || "";
1329
1331
  };
1330
1332
  }
1331
1333
  s.renderer = i;
@@ -1337,10 +1339,10 @@ class Ne {
1337
1339
  throw new Error(`tokenizer '${r}' does not exist`);
1338
1340
  if (["options", "rules", "lexer"].includes(r))
1339
1341
  continue;
1340
- const a = r, c = t.tokenizer[a], m = i[a];
1342
+ const a = r, c = t.tokenizer[a], x = i[a];
1341
1343
  i[a] = (...f) => {
1342
1344
  let b = c.apply(i, f);
1343
- return b === !1 && (b = m.apply(i, f)), b;
1345
+ return b === !1 && (b = x.apply(i, f)), b;
1344
1346
  };
1345
1347
  }
1346
1348
  s.tokenizer = i;
@@ -1352,15 +1354,15 @@ class Ne {
1352
1354
  throw new Error(`hook '${r}' does not exist`);
1353
1355
  if (r === "options")
1354
1356
  continue;
1355
- const a = r, c = t.hooks[a], m = i[a];
1357
+ const a = r, c = t.hooks[a], x = i[a];
1356
1358
  ne.passThroughHooks.has(r) ? i[a] = (f) => {
1357
1359
  if (this.defaults.async)
1358
- return Promise.resolve(c.call(i, f)).then((d) => m.call(i, d));
1360
+ return Promise.resolve(c.call(i, f)).then((d) => x.call(i, d));
1359
1361
  const b = c.call(i, f);
1360
- return m.call(i, b);
1362
+ return x.call(i, b);
1361
1363
  } : i[a] = (...f) => {
1362
1364
  let b = c.apply(i, f);
1363
- return b === !1 && (b = m.apply(i, f)), b;
1365
+ return b === !1 && (b = x.apply(i, f)), b;
1364
1366
  };
1365
1367
  }
1366
1368
  s.hooks = i;
@@ -1399,8 +1401,8 @@ class Ne {
1399
1401
  r.hooks && (t = r.hooks.preprocess(t));
1400
1402
  let c = n(t, r);
1401
1403
  r.hooks && (c = r.hooks.processAllTokens(c)), r.walkTokens && this.walkTokens(c, r.walkTokens);
1402
- let m = e(c, r);
1403
- return r.hooks && (m = r.hooks.postprocess(m)), m;
1404
+ let x = e(c, r);
1405
+ return r.hooks && (x = r.hooks.postprocess(x)), x;
1404
1406
  } catch (c) {
1405
1407
  return a(c);
1406
1408
  }
@@ -1426,7 +1428,7 @@ function A(u, n) {
1426
1428
  A.options = A.setOptions = function(u) {
1427
1429
  return B.setOptions(u), A.defaults = B.defaults, Oe(A.defaults), A;
1428
1430
  };
1429
- A.getDefaults = xe;
1431
+ A.getDefaults = me;
1430
1432
  A.defaults = D;
1431
1433
  A.use = function(...u) {
1432
1434
  return B.use(...u), A.defaults = B.defaults, Oe(A.defaults), A;
@@ -1569,8 +1571,8 @@ function jt() {
1569
1571
  return p[g];
1570
1572
  h = /** @type {Record<string, any>} */
1571
1573
  {}, p[g] = h;
1572
- for (var x in l)
1573
- l.hasOwnProperty(x) && (h[x] = o(l[x], p));
1574
+ for (var m in l)
1575
+ l.hasOwnProperty(m) && (h[m] = o(l[m], p));
1574
1576
  return (
1575
1577
  /** @type {any} */
1576
1578
  h
@@ -1799,28 +1801,28 @@ function jt() {
1799
1801
  insertBefore: function(o, l, p, h) {
1800
1802
  h = h || /** @type {any} */
1801
1803
  a.languages;
1802
- var g = h[o], x = {};
1804
+ var g = h[o], m = {};
1803
1805
  for (var y in g)
1804
1806
  if (g.hasOwnProperty(y)) {
1805
1807
  if (y == l)
1806
1808
  for (var k in p)
1807
- p.hasOwnProperty(k) && (x[k] = p[k]);
1808
- p.hasOwnProperty(y) || (x[y] = g[y]);
1809
+ p.hasOwnProperty(k) && (m[k] = p[k]);
1810
+ p.hasOwnProperty(y) || (m[y] = g[y]);
1809
1811
  }
1810
1812
  var F = h[o];
1811
- return h[o] = x, a.languages.DFS(a.languages, function(_, O) {
1812
- O === F && _ != o && (this[_] = x);
1813
- }), x;
1813
+ return h[o] = m, a.languages.DFS(a.languages, function(_, O) {
1814
+ O === F && _ != o && (this[_] = m);
1815
+ }), m;
1814
1816
  },
1815
1817
  // Traverse a language definition with Depth First Search
1816
1818
  DFS: function o(l, p, h, g) {
1817
1819
  g = g || {};
1818
- var x = a.util.objId;
1820
+ var m = a.util.objId;
1819
1821
  for (var y in l)
1820
1822
  if (l.hasOwnProperty(y)) {
1821
1823
  p.call(l, y, l[y], h || y);
1822
1824
  var k = l[y], F = a.util.type(k);
1823
- F === "Object" && !g[x(k)] ? (g[x(k)] = !0, o(k, p, null, g)) : F === "Array" && !g[x(k)] && (g[x(k)] = !0, o(k, p, y, g));
1825
+ F === "Object" && !g[m(k)] ? (g[m(k)] = !0, o(k, p, null, g)) : F === "Array" && !g[m(k)] && (g[m(k)] = !0, o(k, p, y, g));
1824
1826
  }
1825
1827
  }
1826
1828
  },
@@ -1862,8 +1864,8 @@ function jt() {
1862
1864
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
1863
1865
  };
1864
1866
  a.hooks.run("before-highlightall", h), h.elements = Array.prototype.slice.apply(h.container.querySelectorAll(h.selector)), a.hooks.run("before-all-elements-highlight", h);
1865
- for (var g = 0, x; x = h.elements[g++]; )
1866
- a.highlightElement(x, l === !0, h.callback);
1867
+ for (var g = 0, m; m = h.elements[g++]; )
1868
+ a.highlightElement(m, l === !0, h.callback);
1867
1869
  },
1868
1870
  /**
1869
1871
  * Highlights the code inside a single element.
@@ -1896,8 +1898,8 @@ function jt() {
1896
1898
  highlightElement: function(o, l, p) {
1897
1899
  var h = a.util.getLanguage(o), g = a.languages[h];
1898
1900
  a.util.setLanguage(o, h);
1899
- var x = o.parentElement;
1900
- x && x.nodeName.toLowerCase() === "pre" && a.util.setLanguage(x, h);
1901
+ var m = o.parentElement;
1902
+ m && m.nodeName.toLowerCase() === "pre" && a.util.setLanguage(m, h);
1901
1903
  var y = o.textContent, k = {
1902
1904
  element: o,
1903
1905
  language: h,
@@ -1907,7 +1909,7 @@ function jt() {
1907
1909
  function F(O) {
1908
1910
  k.highlightedCode = O, a.hooks.run("before-insert", k), k.element.innerHTML = k.highlightedCode, a.hooks.run("after-highlight", k), a.hooks.run("complete", k), p && p.call(k.element);
1909
1911
  }
1910
- if (a.hooks.run("before-sanity-check", k), x = k.element.parentElement, x && x.nodeName.toLowerCase() === "pre" && !x.hasAttribute("tabindex") && x.setAttribute("tabindex", "0"), !k.code) {
1912
+ if (a.hooks.run("before-sanity-check", k), m = k.element.parentElement, m && m.nodeName.toLowerCase() === "pre" && !m.hasAttribute("tabindex") && m.setAttribute("tabindex", "0"), !k.code) {
1911
1913
  a.hooks.run("complete", k), p && p.call(k.element);
1912
1914
  return;
1913
1915
  }
@@ -2052,43 +2054,43 @@ function jt() {
2052
2054
  classes: ["token", l.type],
2053
2055
  attributes: {},
2054
2056
  language: p
2055
- }, x = l.alias;
2056
- x && (Array.isArray(x) ? Array.prototype.push.apply(g.classes, x) : g.classes.push(x)), a.hooks.run("wrap", g);
2057
+ }, m = l.alias;
2058
+ m && (Array.isArray(m) ? Array.prototype.push.apply(g.classes, m) : g.classes.push(m)), a.hooks.run("wrap", g);
2057
2059
  var y = "";
2058
2060
  for (var k in g.attributes)
2059
2061
  y += " " + k + '="' + (g.attributes[k] || "").replace(/"/g, "&quot;") + '"';
2060
2062
  return "<" + g.tag + ' class="' + g.classes.join(" ") + '"' + y + ">" + g.content + "</" + g.tag + ">";
2061
2063
  };
2062
- function m(o, l, p, h) {
2064
+ function x(o, l, p, h) {
2063
2065
  o.lastIndex = l;
2064
2066
  var g = o.exec(p);
2065
2067
  if (g && h && g[1]) {
2066
- var x = g[1].length;
2067
- g.index += x, g[0] = g[0].slice(x);
2068
+ var m = g[1].length;
2069
+ g.index += m, g[0] = g[0].slice(m);
2068
2070
  }
2069
2071
  return g;
2070
2072
  }
2071
- function f(o, l, p, h, g, x) {
2073
+ function f(o, l, p, h, g, m) {
2072
2074
  for (var y in p)
2073
2075
  if (!(!p.hasOwnProperty(y) || !p[y])) {
2074
2076
  var k = p[y];
2075
2077
  k = Array.isArray(k) ? k : [k];
2076
2078
  for (var F = 0; F < k.length; ++F) {
2077
- if (x && x.cause == y + "," + F)
2079
+ if (m && m.cause == y + "," + F)
2078
2080
  return;
2079
2081
  var _ = k[F], O = _.inside, Te = !!_.lookbehind, Se = !!_.greedy, Je = _.alias;
2080
2082
  if (Se && !_.pattern.global) {
2081
2083
  var Ke = _.pattern.toString().match(/[imsuy]*$/)[0];
2082
2084
  _.pattern = RegExp(_.pattern.source, Ke + "g");
2083
2085
  }
2084
- for (var Fe = _.pattern || _, z = h.next, I = g; z !== l.tail && !(x && I >= x.reach); I += z.value.length, z = z.next) {
2086
+ for (var Fe = _.pattern || _, z = h.next, I = g; z !== l.tail && !(m && I >= m.reach); I += z.value.length, z = z.next) {
2085
2087
  var j = z.value;
2086
2088
  if (l.length > o.length)
2087
2089
  return;
2088
2090
  if (!(j instanceof c)) {
2089
2091
  var Y = 1, C;
2090
2092
  if (Se) {
2091
- if (C = m(Fe, I, o, Te), !C || C.index >= o.length)
2093
+ if (C = x(Fe, I, o, Te), !C || C.index >= o.length)
2092
2094
  break;
2093
2095
  var J = C.index, Ve = C.index + C[0].length, Z = I;
2094
2096
  for (Z += z.value.length; J >= Z; )
@@ -2098,10 +2100,10 @@ function jt() {
2098
2100
  for (var U = z; U !== l.tail && (Z < Ve || typeof U.value == "string"); U = U.next)
2099
2101
  Y++, Z += U.value.length;
2100
2102
  Y--, j = o.slice(I, Z), C.index -= I;
2101
- } else if (C = m(Fe, 0, j, Te), !C)
2103
+ } else if (C = x(Fe, 0, j, Te), !C)
2102
2104
  continue;
2103
2105
  var J = C.index, K = C[0], oe = j.slice(0, J), _e = j.slice(J + K.length), ce = I + j.length;
2104
- x && ce > x.reach && (x.reach = ce);
2106
+ m && ce > m.reach && (m.reach = ce);
2105
2107
  var V = z.prev;
2106
2108
  oe && (V = d(l, V, oe), I += oe.length), v(l, V, Y);
2107
2109
  var et = new c(y, O ? a.tokenize(K, O) : K, Je, K);
@@ -2110,7 +2112,7 @@ function jt() {
2110
2112
  cause: y + "," + F,
2111
2113
  reach: ce
2112
2114
  };
2113
- f(o, l, p, z.prev, I, ue), x && ue.reach > x.reach && (x.reach = ue.reach);
2115
+ f(o, l, p, z.prev, I, ue), m && ue.reach > m.reach && (m.reach = ue.reach);
2114
2116
  }
2115
2117
  }
2116
2118
  }
@@ -2541,7 +2543,7 @@ function jt() {
2541
2543
  bat: "batch",
2542
2544
  h: "c",
2543
2545
  tex: "latex"
2544
- }, a = "data-src-status", c = "loading", m = "loaded", f = "failed", b = "pre[data-src]:not([" + a + '="' + m + '"]):not([' + a + '="' + c + '"])';
2546
+ }, a = "data-src-status", c = "loading", x = "loaded", f = "failed", b = "pre[data-src]:not([" + a + '="' + x + '"]):not([' + a + '="' + c + '"])';
2545
2547
  function d($, w, S) {
2546
2548
  var o = new XMLHttpRequest();
2547
2549
  o.open("GET", $, !0), o.onreadystatechange = function() {
@@ -2576,10 +2578,10 @@ function jt() {
2576
2578
  h && h.loadLanguages(l), d(
2577
2579
  o,
2578
2580
  function(g) {
2579
- w.setAttribute(a, m);
2580
- var x = v(w.getAttribute("data-range"));
2581
- if (x) {
2582
- var y = g.split(/\r\n?|\n/g), k = x[0], F = x[1] == null ? y.length : x[1];
2581
+ w.setAttribute(a, x);
2582
+ var m = v(w.getAttribute("data-range"));
2583
+ if (m) {
2584
+ var y = g.split(/\r\n?|\n/g), k = m[0], F = m[1] == null ? y.length : m[1];
2583
2585
  k < 0 && (k += y.length), k = Math.max(0, Math.min(k - 1, y.length)), F < 0 && (F += y.length), F = Math.max(0, Math.min(F, y.length)), g = y.slice(k, F).join(`
2584
2586
  `), w.hasAttribute("data-start") || w.setAttribute("data-start", String(k + 1));
2585
2587
  }
@@ -2647,7 +2649,7 @@ let M = class extends at {
2647
2649
  qe(this, re, ke).call(this), this.markdown && (this.rendered = de(this, H).parse(this.markdown));
2648
2650
  }
2649
2651
  render() {
2650
- return nt`
2652
+ return rt`
2651
2653
  <div class=${this.classname}>${it(this.rendered)}</div>
2652
2654
  `;
2653
2655
  }
@@ -2689,7 +2691,7 @@ q([
2689
2691
  ge("extensions", { waitUntilFirstUpdate: !0 })
2690
2692
  ], M.prototype, "handleRenderedWithNewMarkdown", 1);
2691
2693
  M = q([
2692
- rt("cx-markdown")
2694
+ nt("cx-markdown")
2693
2695
  ], M);
2694
2696
  function Gt(u) {
2695
2697
  u.querySelectorAll("script").forEach((e) => {
@@ -1,23 +1,25 @@
1
1
  import _ from "./grid.js";
2
2
  import f from "./grid-item.js";
3
3
  import v from "./icon-button.js";
4
- import { C as S } from "../chunks/image.Ycf8RudS.js";
4
+ import { C as S } from "../chunks/image.DZCRhE3G.js";
5
5
  import $ from "./space.js";
6
6
  import C from "./tooltip.js";
7
- import { i as w, n, C as I, x as o, c as k } from "../chunks/custom-element.vnXBMQxc.js";
8
- import { c as U } from "../chunks/component.styles.CI-v8BZa.js";
7
+ import { n, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
8
+ import { c as I } from "../chunks/component.styles.DMSLciL5.js";
9
9
  import { a as u } from "../chunks/index.Cpamj0jB.js";
10
- import { w as A } from "../chunks/watch.BCJD77bD.js";
11
- import { r as x } from "../chunks/state.Cw55xXlb.js";
10
+ import { c as k } from "../chunks/custom-element.L4WJXn1j.js";
11
+ import { w as U } from "../chunks/watch.q1sEjPWL.js";
12
+ import { i as A, x as o } from "../chunks/lit-element.jLBm65_O.js";
13
+ import { r as x } from "../chunks/state.CSDxrqLd.js";
12
14
  import { e as E } from "../chunks/query.BBf1UFkC.js";
13
- import { e as h } from "../chunks/class-map.CoZTSvbM.js";
14
- import { o as b } from "../chunks/if-defined.MfEgpxEN.js";
15
- import { c as m } from "../chunks/repeat.CauKaXyy.js";
16
- import { o as g } from "../chunks/style-map.CZovMmo_.js";
15
+ import { e as h } from "../chunks/class-map.BiVq-cVR.js";
16
+ import { o as b } from "../chunks/if-defined.BRoBj_Rp.js";
17
+ import { c as m } from "../chunks/repeat.DbF2p5ae.js";
18
+ import { o as g } from "../chunks/style-map.llVFPd__.js";
17
19
  import { n as y } from "../chunks/when.Dr1es41R.js";
18
20
  import { S as j } from "../chunks/sortable.esm.oSzf6C5Q.js";
19
21
  var c = /* @__PURE__ */ ((t) => (t.Masonry = "masonry", t.Standard = "standard", t))(c || {});
20
- const D = w`
22
+ const D = A`
21
23
  :host {
22
24
  --actions-background-color: var(--cx-color-neutral-100);
23
25
  --border-radius: 0px;
@@ -143,12 +145,12 @@ const D = w`
143
145
  cursor: move;
144
146
  }
145
147
  `;
146
- var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, r = (t, i, a, s) => {
148
+ var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, e = (t, i, a, s) => {
147
149
  for (var l = s > 1 ? void 0 : s ? z(i, a) : i, d = t.length - 1, p; d >= 0; d--)
148
150
  (p = t[d]) && (l = (s ? p(i, a, l) : p(l)) || l);
149
151
  return s && l && K(i, a, l), l;
150
152
  };
151
- let e = class extends I {
153
+ let r = class extends w {
152
154
  constructor() {
153
155
  super(), this.data = [], this.variant = c.Standard, this.cols = 3, this.rowHeight = "auto", this.actions = [], this.sortable = !1, this.spacing = "medium", this.idKey = "id", this.sortableInstance = null, this.previous = [], this.abortDrag = !1, this.handleEnd = this.handleEnd.bind(this), this.handleStart = this.handleStart.bind(this), this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleItemClick = this.handleItemClick.bind(this);
154
156
  }
@@ -345,8 +347,8 @@ let e = class extends I {
345
347
  </div>`;
346
348
  }
347
349
  };
348
- e.styles = [U, D];
349
- e.dependencies = {
350
+ r.styles = [I, D];
351
+ r.dependencies = {
350
352
  "cx-grid": _,
351
353
  "cx-grid-item": f,
352
354
  "cx-icon-button": v,
@@ -354,48 +356,48 @@ e.dependencies = {
354
356
  "cx-space": $,
355
357
  "cx-tooltip": C
356
358
  };
357
- r([
359
+ e([
358
360
  E(".masonry-list")
359
- ], e.prototype, "list", 2);
360
- r([
361
+ ], r.prototype, "list", 2);
362
+ e([
361
363
  n({ type: Array })
362
- ], e.prototype, "data", 2);
363
- r([
364
+ ], r.prototype, "data", 2);
365
+ e([
364
366
  n({ reflect: !0, type: String })
365
- ], e.prototype, "variant", 2);
366
- r([
367
+ ], r.prototype, "variant", 2);
368
+ e([
367
369
  n({ reflect: !0, type: Number })
368
- ], e.prototype, "cols", 2);
369
- r([
370
+ ], r.prototype, "cols", 2);
371
+ e([
370
372
  n({ attribute: "row-height", type: String })
371
- ], e.prototype, "rowHeight", 2);
372
- r([
373
+ ], r.prototype, "rowHeight", 2);
374
+ e([
373
375
  n({ type: Array })
374
- ], e.prototype, "actions", 2);
375
- r([
376
+ ], r.prototype, "actions", 2);
377
+ e([
376
378
  n({ reflect: !0, type: Boolean })
377
- ], e.prototype, "sortable", 2);
378
- r([
379
+ ], r.prototype, "sortable", 2);
380
+ e([
379
381
  n({ reflect: !0, type: String })
380
- ], e.prototype, "spacing", 2);
381
- r([
382
+ ], r.prototype, "spacing", 2);
383
+ e([
382
384
  n({ attribute: "id-key", reflect: !0, type: String })
383
- ], e.prototype, "idKey", 2);
384
- r([
385
+ ], r.prototype, "idKey", 2);
386
+ e([
385
387
  x()
386
- ], e.prototype, "sortableInstance", 2);
387
- r([
388
+ ], r.prototype, "sortableInstance", 2);
389
+ e([
388
390
  x()
389
- ], e.prototype, "previous", 2);
390
- r([
391
+ ], r.prototype, "previous", 2);
392
+ e([
391
393
  x()
392
- ], e.prototype, "abortDrag", 2);
393
- r([
394
- A("sortable", { waitUntilFirstUpdate: !0 })
395
- ], e.prototype, "handleSortableChange", 1);
396
- e = r([
394
+ ], r.prototype, "abortDrag", 2);
395
+ e([
396
+ U("sortable", { waitUntilFirstUpdate: !0 })
397
+ ], r.prototype, "handleSortableChange", 1);
398
+ r = e([
397
399
  k("cx-masonry")
398
- ], e);
400
+ ], r);
399
401
  export {
400
- e as default
402
+ r as default
401
403
  };