@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.
- package/library/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { C as tt,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
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 =
|
|
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,
|
|
95
|
-
for (; --
|
|
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 = "",
|
|
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 || (
|
|
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,
|
|
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
|
-
|
|
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 (
|
|
492
|
+
if (x -= c, x > 0)
|
|
491
493
|
continue;
|
|
492
|
-
c = Math.min(c, c +
|
|
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|$))+/,
|
|
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:
|
|
606
|
+
code: mt,
|
|
605
607
|
def: yt,
|
|
606
|
-
fences:
|
|
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(
|
|
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(
|
|
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,
|
|
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
|
|
789
|
+
let x;
|
|
788
790
|
this.options.extensions.startBlock.forEach((f) => {
|
|
789
|
-
|
|
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,
|
|
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 || (
|
|
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,
|
|
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) !== "_" && (
|
|
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
|
|
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
|
-
|
|
1093
|
+
x += this.renderer.tablerow(c);
|
|
1092
1094
|
}
|
|
1093
|
-
t += this.renderer.table(a,
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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 =
|
|
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],
|
|
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 =
|
|
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],
|
|
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 =
|
|
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],
|
|
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) =>
|
|
1360
|
+
return Promise.resolve(c.call(i, f)).then((d) => x.call(i, d));
|
|
1359
1361
|
const b = c.call(i, f);
|
|
1360
|
-
return
|
|
1362
|
+
return x.call(i, b);
|
|
1361
1363
|
} : i[a] = (...f) => {
|
|
1362
1364
|
let b = c.apply(i, f);
|
|
1363
|
-
return b === !1 && (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
|
|
1403
|
-
return r.hooks && (
|
|
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 =
|
|
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
|
|
1573
|
-
l.hasOwnProperty(
|
|
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],
|
|
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) && (
|
|
1808
|
-
p.hasOwnProperty(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] =
|
|
1812
|
-
O === F && _ != o && (this[_] =
|
|
1813
|
-
}),
|
|
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
|
|
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[
|
|
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,
|
|
1866
|
-
a.highlightElement(
|
|
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
|
|
1900
|
-
|
|
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),
|
|
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
|
-
},
|
|
2056
|
-
|
|
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, """) + '"';
|
|
2060
2062
|
return "<" + g.tag + ' class="' + g.classes.join(" ") + '"' + y + ">" + g.content + "</" + g.tag + ">";
|
|
2061
2063
|
};
|
|
2062
|
-
function
|
|
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
|
|
2067
|
-
g.index +=
|
|
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,
|
|
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 (
|
|
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 && !(
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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),
|
|
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",
|
|
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,
|
|
2580
|
-
var
|
|
2581
|
-
if (
|
|
2582
|
-
var y = g.split(/\r\n?|\n/g), k =
|
|
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
|
|
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
|
-
|
|
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.
|
|
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 {
|
|
8
|
-
import { c as
|
|
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 {
|
|
11
|
-
import {
|
|
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.
|
|
14
|
-
import { o as b } from "../chunks/if-defined.
|
|
15
|
-
import { c as m } from "../chunks/repeat.
|
|
16
|
-
import { o as g } from "../chunks/style-map.
|
|
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 =
|
|
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,
|
|
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
|
|
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
|
-
|
|
349
|
-
|
|
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
|
-
|
|
359
|
+
e([
|
|
358
360
|
E(".masonry-list")
|
|
359
|
-
],
|
|
360
|
-
|
|
361
|
+
], r.prototype, "list", 2);
|
|
362
|
+
e([
|
|
361
363
|
n({ type: Array })
|
|
362
|
-
],
|
|
363
|
-
|
|
364
|
+
], r.prototype, "data", 2);
|
|
365
|
+
e([
|
|
364
366
|
n({ reflect: !0, type: String })
|
|
365
|
-
],
|
|
366
|
-
|
|
367
|
+
], r.prototype, "variant", 2);
|
|
368
|
+
e([
|
|
367
369
|
n({ reflect: !0, type: Number })
|
|
368
|
-
],
|
|
369
|
-
|
|
370
|
+
], r.prototype, "cols", 2);
|
|
371
|
+
e([
|
|
370
372
|
n({ attribute: "row-height", type: String })
|
|
371
|
-
],
|
|
372
|
-
|
|
373
|
+
], r.prototype, "rowHeight", 2);
|
|
374
|
+
e([
|
|
373
375
|
n({ type: Array })
|
|
374
|
-
],
|
|
375
|
-
|
|
376
|
+
], r.prototype, "actions", 2);
|
|
377
|
+
e([
|
|
376
378
|
n({ reflect: !0, type: Boolean })
|
|
377
|
-
],
|
|
378
|
-
|
|
379
|
+
], r.prototype, "sortable", 2);
|
|
380
|
+
e([
|
|
379
381
|
n({ reflect: !0, type: String })
|
|
380
|
-
],
|
|
381
|
-
|
|
382
|
+
], r.prototype, "spacing", 2);
|
|
383
|
+
e([
|
|
382
384
|
n({ attribute: "id-key", reflect: !0, type: String })
|
|
383
|
-
],
|
|
384
|
-
|
|
385
|
+
], r.prototype, "idKey", 2);
|
|
386
|
+
e([
|
|
385
387
|
x()
|
|
386
|
-
],
|
|
387
|
-
|
|
388
|
+
], r.prototype, "sortableInstance", 2);
|
|
389
|
+
e([
|
|
388
390
|
x()
|
|
389
|
-
],
|
|
390
|
-
|
|
391
|
+
], r.prototype, "previous", 2);
|
|
392
|
+
e([
|
|
391
393
|
x()
|
|
392
|
-
],
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
],
|
|
396
|
-
|
|
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
|
-
],
|
|
400
|
+
], r);
|
|
399
401
|
export {
|
|
400
|
-
|
|
402
|
+
r as default
|
|
401
403
|
};
|