@orangelogic/design-system 3.79.0 → 3.81.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/chunks/{alert.D8Gwfkvy.js → alert.B2tfKtSz.js} +2 -2
- package/library/chunks/{array-line-clamp.B1e77kEp.js → array-line-clamp.eDLjR1nZ.js} +2 -2
- package/library/chunks/{asset-link-format.PQt5Mb9Q.js → asset-link-format.BCaHv6rQ.js} +394 -388
- package/library/chunks/{audio.DOJNYr0C.js → audio.Dr0Hus7H.js} +8 -5
- package/library/chunks/{bicolor-picker.B8Og3cEe.js → bicolor-picker.BIxYmH8T.js} +1 -1
- package/library/chunks/{block-width.BgXEUBL9.js → block-width.DDBxasyy.js} +484 -460
- package/library/chunks/{border-input-group.D3fEj_NT.js → border-input-group.DYJ0TvAS.js} +3 -3
- package/library/chunks/{breadcrumb.C_NpOjQB.js → breadcrumb.WKQKC3f1.js} +1 -1
- package/library/chunks/{button.DeRJNqpr.js → button.D58Q0tW6.js} +2 -2
- package/library/chunks/{color-picker.YQfGbc4_.js → color-picker.DQzgEk7r.js} +10 -10
- package/library/chunks/{color-swatch-group.BQxH1WM1.js → color-swatch-group.D6W7Zrig.js} +60 -60
- package/library/chunks/{color-swatch.-69F8jvl.js → color-swatch.DlzNqa0X.js} +3 -3
- package/library/chunks/{config-manager.BO-EItzn.js → config-manager.CXUj_qfl.js} +36 -36
- package/library/chunks/{configs-controller.DS_tmFst.js → configs-controller.C34CcFSA.js} +65 -65
- package/library/chunks/{confirm-popover.D3kp6Bg-.js → confirm-popover.BF6FfiVI.js} +4 -4
- package/library/chunks/{copy-button.B4Q_8B50.js → copy-button.BzYFM1nx.js} +2 -2
- package/library/chunks/{corner-position-input-group.lsTSrT61.js → corner-position-input-group.Aos2Z9cJ.js} +4 -4
- package/library/chunks/{date-calendar.Dc3XKO0t.js → date-calendar.DzLGaro8.js} +1 -1
- package/library/chunks/{details.BacO3ROq.js → details.B_IIkM1I.js} +1 -1
- package/library/chunks/{dialog.CfbeRoZl.js → dialog.Cagz5vxR.js} +3 -3
- package/library/chunks/{document-viewer.CJ8zqnoz.js → document-viewer.BKdDZ9MG.js} +28 -19
- package/library/chunks/{dot-pagination.CH4nRyA8.js → dot-pagination.ka2dgd3K.js} +2 -2
- package/library/chunks/{drawer.DdZl0Tae.js → drawer.CqpMBED_.js} +2 -2
- package/library/chunks/{dropdown.CHSfZeHp.js → dropdown.DhjYWqJb.js} +4 -4
- package/library/chunks/{dynamic-select.BLoP9tvq.js → dynamic-select.L12vKCOX.js} +5 -5
- package/library/chunks/{e-chart.fGTLKIDX.js → e-chart.CAAz1JC5.js} +2 -2
- package/library/chunks/{element-clamp.BXz2Lc5M.js → element-clamp.M1T8iWvk.js} +2 -2
- package/library/chunks/{file-on-demand.bgCbasKa.js → file-on-demand.BAwB-Znv.js} +17 -17
- package/library/chunks/{folder-select.Cc9PkoVE.js → folder-select.BajqQkzA.js} +7 -7
- package/library/chunks/{format-time.DZCXUWmw.js → format-time.CxaGqngb.js} +1 -1
- package/library/chunks/{header.Dz7W1DJC.js → header.CfCULafs.js} +2 -2
- package/library/chunks/{i18n.BJ2p4em8.js → i18n.deOPJlBG.js} +1 -0
- package/library/chunks/{icon-button.Dd-oDRfX.js → icon-button.DSSgDKO8.js} +2 -2
- package/library/chunks/{iframe.DsOaw03m.js → iframe.BVnWzC6u.js} +1 -1
- package/library/chunks/{image-comparer.FB0ZzA0d.js → image-comparer.6hxOR7VL.js} +1 -1
- package/library/chunks/{image.WBQUoc3j.js → image.wVxvwZxr.js} +76 -81
- package/library/chunks/{input.w9KQVNnx.js → input.AS0kZ6ks.js} +1 -1
- package/library/chunks/{line-clamp.DAhcB8_D.js → line-clamp.biFX066w.js} +2 -2
- package/library/chunks/{markdown.C1P0ctPs.js → markdown.BwIil8g5.js} +2 -2
- package/library/chunks/{masonry.BnIxslnb.js → masonry.D4DxZZ03.js} +3 -3
- package/library/chunks/{menu-item.CX4NV4BU.js → menu-item.Bi9zjGsW.js} +3 -3
- package/library/chunks/{menu.Al_SBJNI.js → menu.DqKFF1tH.js} +2 -2
- package/library/chunks/{option.DckbOkYC.js → option.CKvalzr2.js} +1 -1
- package/library/chunks/{padding-input-group.BTjH4scb.js → padding-input-group.BURYDFGi.js} +1 -1
- package/library/chunks/{pagination.B17Ykd-G.js → pagination.DEGvwJXh.js} +7 -7
- package/library/chunks/{popup.Bk9xpj1E.js → popup.DQcD7riQ.js} +1 -1
- package/library/chunks/{position-picker.DwDC9gDl.js → position-picker.Cjk5OdB5.js} +1 -1
- package/library/chunks/{progress-bar.BJfkoZ6G.js → progress-bar.BSTyftIm.js} +1 -1
- package/library/chunks/{progress-ring.BSfnNF9M.js → progress-ring.cC63wJQr.js} +1 -1
- package/library/chunks/{radio-card.B7uO9Xs1.js → radio-card.Crn-znqj.js} +1 -1
- package/library/chunks/{range.20iIQxEz.js → range.BEXR2sEB.js} +2 -2
- package/library/chunks/{rating.BgUId4FT.js → rating.DZrii8F_.js} +1 -1
- package/library/chunks/{relative-time.BSSaZxeD.js → relative-time.DZ5rhLwg.js} +1 -1
- package/library/chunks/{select.BivTPBtv.js → select.CmdHRMy_.js} +6 -6
- package/library/chunks/{shadow-input-group.7NODSHPt.js → shadow-input-group.BKu3bgVT.js} +2 -2
- package/library/chunks/{share-option-list.C28_ddOP.js → share-option-list.IgLnP5Ib.js} +2 -2
- package/library/chunks/{sidebar.B1MjUxBY.js → sidebar.CGFDNY9i.js} +1 -1
- package/library/chunks/{size-input-group.CFgOvLnO.js → size-input-group.DzSQz6mI.js} +5 -5
- package/library/chunks/{spinner.o3Rjsff7.js → spinner.DagKrwY5.js} +1 -1
- package/library/chunks/{split-panel.CVyqM2Dr.js → split-panel.Gfbbe8BX.js} +1 -1
- package/library/chunks/{src.CtGMXA2r.js → src.DoJoeNZB.js} +48 -48
- package/library/chunks/src.cBRbsOdC.js +720 -0
- package/library/chunks/{step.C-T63mG1.js → step.Dw2VfEhD.js} +3 -3
- package/library/chunks/{stepper-wizard.BCmR5WiA.js → stepper-wizard.Bozu8x6U.js} +2 -2
- package/library/chunks/{stepper.DR3oqUpm.js → stepper.cJSgSSMJ.js} +1 -1
- package/library/chunks/{tab-group.BafStohF.js → tab-group.D5yMsNTe.js} +7 -7
- package/library/chunks/{tab.uRk_KNV2.js → tab.BXcVzB6d.js} +3 -3
- package/library/chunks/{tag.B6BfN7x-.js → tag.kF4Izxei.js} +3 -3
- package/library/chunks/{tooltip.fZNjia6Z.js → tooltip.O-5jGui7.js} +2 -2
- package/library/chunks/{tree.B9-viK2b.js → tree.BP9r-4UR.js} +3 -3
- package/library/chunks/{typeface.BHErcYfd.js → typeface.B75hLESf.js} +3 -3
- package/library/chunks/{url.CZO_DV8Y.js → url.BCc06dE7.js} +15 -6
- package/library/chunks/{video.D9JTlBJ9.js → video.C9tEIck_.js} +2 -2
- package/library/components/alert.js +1 -1
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +53 -53
- package/library/components/audio.js +1 -1
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +1 -1
- package/library/components/color-swatch.js +1 -1
- package/library/components/confirm-popover.js +1 -1
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dot-pagination.js +1 -1
- package/library/components/drawer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +1 -1
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/icon-button.js +1 -1
- package/library/components/iframe.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +1 -1
- package/library/components/input.js +1 -1
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +16 -16
- package/library/components/option.js +1 -1
- package/library/components/organisms.js +3 -3
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +1 -1
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/tag.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/typeface.js +1 -1
- package/library/components/types.js +10308 -10206
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
- package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +6 -0
- package/library/packages/atoms/src/components/image/image.d.ts +0 -3
- package/library/packages/events/src/events.d.ts +0 -4
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/column/column.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/blocks/document-viewer/document-viewer.d.ts +8 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +7 -6
- package/library/packages/organisms/src/content-builder/blocks/timeline/timeline.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +9 -0
- package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +11 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +13 -4
- package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -0
- package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
- package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
- package/library/packages/utils/src/url/url.d.ts +7 -0
- package/library/react-web-component.d.ts +21 -1
- package/library/utils.js +29 -707
- package/package.json +1 -1
- package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -9
- package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
- package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
package/library/utils.js
CHANGED
|
@@ -1,711 +1,33 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./chunks/event.C11S4obG.js";
|
|
2
2
|
import { t as o } from "./chunks/custom-element.BEMYNDK1.js";
|
|
3
|
-
import { r as s, t as c } from "./chunks/i18n.
|
|
3
|
+
import { r as s, t as c } from "./chunks/i18n.deOPJlBG.js";
|
|
4
4
|
import { n as l, r as u, t as d } from "./chunks/slot.CZUlACxT.js";
|
|
5
5
|
import { t as f } from "./chunks/watch.Ub5r8btz.js";
|
|
6
|
-
import { C as p, S as m, _ as h, a as g, b as _, c as
|
|
7
|
-
import { a as
|
|
8
|
-
import { a as
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { i as
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import { n as
|
|
22
|
-
import { n as
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import { n as
|
|
28
|
-
import { a as
|
|
29
|
-
import { a as
|
|
30
|
-
import { t as
|
|
31
|
-
import { n as
|
|
32
|
-
import { n as
|
|
33
|
-
|
|
34
|
-
//#region ../../packages/utils/src/date/iso-week-number.ts
|
|
35
|
-
function Mn(e) {
|
|
36
|
-
let t = /* @__PURE__ */ new Date(`${e}T00:00:00Z`);
|
|
37
|
-
if (Number.isNaN(t.getTime())) return 0;
|
|
38
|
-
let n = new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())), r = n.getUTCDay() || 7;
|
|
39
|
-
n.setUTCDate(n.getUTCDate() + 4 - r);
|
|
40
|
-
let i = new Date(Date.UTC(n.getUTCFullYear(), 0, 1)), a = (n.getTime() - i.getTime()) / 864e5;
|
|
41
|
-
return Math.ceil((a + 1) / 7);
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region ../../packages/utils/src/actions/asset-click.ts
|
|
45
|
-
function Nn(e) {
|
|
46
|
-
if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
|
|
47
|
-
let t = this.ownerDocument.defaultView?.location.origin;
|
|
48
|
-
t && this.ownerDocument?.defaultView?.postMessage({
|
|
49
|
-
detail: {
|
|
50
|
-
assetId: e,
|
|
51
|
-
mode: "Details"
|
|
52
|
-
},
|
|
53
|
-
type: "cx-cms5-view-asset"
|
|
54
|
-
}, t);
|
|
55
|
-
}
|
|
56
|
-
function Pn(e) {
|
|
57
|
-
if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
|
|
58
|
-
let t = this.ownerDocument.defaultView?.location.origin;
|
|
59
|
-
t && this.ownerDocument?.defaultView?.postMessage({
|
|
60
|
-
detail: {
|
|
61
|
-
assetId: e,
|
|
62
|
-
mode: "Container"
|
|
63
|
-
},
|
|
64
|
-
type: "cx-cms5-view-asset"
|
|
65
|
-
}, t);
|
|
66
|
-
}
|
|
67
|
-
function Fn(e, t = void 0) {
|
|
68
|
-
this.ownerDocument.defaultView?.Matrix3 && e && this.ownerDocument.defaultView?.open(D(e, "https://", !0), t ?? "_blank");
|
|
69
|
-
}
|
|
70
|
-
function In(e) {
|
|
71
|
-
if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
|
|
72
|
-
let t = this.ownerDocument.defaultView?.location.origin;
|
|
73
|
-
t && this.ownerDocument?.defaultView?.postMessage({
|
|
74
|
-
detail: { assetIds: [e] },
|
|
75
|
-
type: "cx-cms5-share-assets"
|
|
76
|
-
}, t);
|
|
77
|
-
}
|
|
78
|
-
function Ln(e, t) {
|
|
79
|
-
if (!this.ownerDocument.defaultView?.Matrix3 || !e) return;
|
|
80
|
-
let n = t || {}, r = this.ownerDocument.defaultView?.location.origin;
|
|
81
|
-
r && this.ownerDocument?.defaultView?.postMessage({
|
|
82
|
-
detail: {
|
|
83
|
-
assetIds: e,
|
|
84
|
-
formats: n
|
|
85
|
-
},
|
|
86
|
-
type: "cx-cms5-download-assets"
|
|
87
|
-
}, r);
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region ../../packages/utils/src/array/array.ts
|
|
91
|
-
function j(e, t) {
|
|
92
|
-
return e.filter((e, n) => n !== t);
|
|
93
|
-
}
|
|
94
|
-
function M(e, t) {
|
|
95
|
-
return e.filter((e, n) => !t.includes(n));
|
|
96
|
-
}
|
|
97
|
-
function N(e, t, n) {
|
|
98
|
-
return [
|
|
99
|
-
...e.slice(0, t),
|
|
100
|
-
n,
|
|
101
|
-
...e.slice(t)
|
|
102
|
-
];
|
|
103
|
-
}
|
|
104
|
-
function P(e, t, n) {
|
|
105
|
-
return [
|
|
106
|
-
...e.slice(0, t),
|
|
107
|
-
...n,
|
|
108
|
-
...e.slice(t)
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
function Rn(e, t, n) {
|
|
112
|
-
return e.findIndex((e) => e[t] === n);
|
|
113
|
-
}
|
|
114
|
-
function zn(e, t, n) {
|
|
115
|
-
let r = j([...e], t), i = n;
|
|
116
|
-
return i >= e.length - 1 && (i += 1), N(r, i, e[t]);
|
|
117
|
-
}
|
|
118
|
-
function Bn(e, t, n) {
|
|
119
|
-
return P(M([...e], t), n === 0 ? n : t.reduce((e, t) => n > t ? e - 1 : e, n), t.map((t) => e[t]));
|
|
120
|
-
}
|
|
121
|
-
function Vn(e, t) {
|
|
122
|
-
return e.reduce((e, n) => {
|
|
123
|
-
let r = n[t];
|
|
124
|
-
return e[r] ??= [], e[r].push(n), e;
|
|
125
|
-
}, {});
|
|
126
|
-
}
|
|
127
|
-
function Hn(e, t, n) {
|
|
128
|
-
if (!e.length) return [t];
|
|
129
|
-
let r = n.findIndex((e) => e.id === t), i = e[e.length - 1], a = n.findIndex((e) => e.id === i);
|
|
130
|
-
if (r < 0 || a < 0) return [t];
|
|
131
|
-
let o = n.reduce((e, t, n) => (e[t.id] = n, e), {}), s = r > a, c = s ? a : r, l = s ? r : a, u = n.slice(c, l + 1).filter((t) => !(!t || e.includes(t.id))).map((e) => e.id), d = s ? u : [...u].reverse(), f = e.includes(t) ? e.slice(0, e.indexOf(t) + 1) : [...e, ...d];
|
|
132
|
-
return f.sort((e, t) => o[e] - o[t]), f;
|
|
133
|
-
}
|
|
134
|
-
function Un(e, t, n, r, i, a) {
|
|
135
|
-
let o = n + 1;
|
|
136
|
-
if (e.length < 2) throw Error("Values array must contain at least 2 elements");
|
|
137
|
-
if (n < 0 || o >= e.length) throw Error("Invalid index or not enough values to adjust");
|
|
138
|
-
if (r < 0) throw Error("Minimum value must be non-negative");
|
|
139
|
-
let s = i + t;
|
|
140
|
-
s < r && (t = r - i, s = r);
|
|
141
|
-
let c = a - t;
|
|
142
|
-
c < r && (t = a - r, s = i + t, c = r), e[n] = parseFloat(s.toFixed(2)), e[o] = parseFloat(c.toFixed(2));
|
|
143
|
-
}
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region ../../packages/utils/src/custom-element/popup.ts
|
|
146
|
-
var Wn = class {
|
|
147
|
-
hostConnected() {}
|
|
148
|
-
hostDisconnected() {}
|
|
149
|
-
constructor(e) {
|
|
150
|
-
this.currentZIndex = v(), (this.host = e).addController(this);
|
|
151
|
-
}
|
|
152
|
-
async activatePopup() {
|
|
153
|
-
this.currentZIndex = v();
|
|
154
|
-
}
|
|
155
|
-
}, Gn = class {
|
|
156
|
-
constructor(e, t = {}) {
|
|
157
|
-
this.element = e, this.noChildDrag = t.noChildDrag ?? !1, this.dragThreshold = t.dragThreshold ?? 5, this.isDragging = !1, this.hasDragged = !1, this.startX = 0, this.startY = 0, this.lastClientX = 0, this.lastClientY = 0, this.onMouseDown = this.onMouseDown.bind(this), this.onMouseMove = this.onMouseMove.bind(this), this.onMouseUp = this.onMouseUp.bind(this), this.onClick = this.onClick.bind(this), this.attach();
|
|
158
|
-
}
|
|
159
|
-
attach() {
|
|
160
|
-
this.element.addEventListener("mousedown", this.onMouseDown), window.addEventListener("mouseup", this.onMouseUp), window.addEventListener("mousemove", this.onMouseMove), this.element.addEventListener("click", this.onClick, !0);
|
|
161
|
-
}
|
|
162
|
-
detach() {
|
|
163
|
-
this.element.removeEventListener("mousedown", this.onMouseDown), window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), this.element.removeEventListener("click", this.onClick, !0);
|
|
164
|
-
}
|
|
165
|
-
onMouseDown(e) {
|
|
166
|
-
this.noChildDrag && e.target !== this.element || (this.isDragging = !0, this.hasDragged = !1, this.startX = e.clientX, this.startY = e.clientY, this.lastClientX = e.clientX, this.lastClientY = e.clientY, e.preventDefault());
|
|
167
|
-
}
|
|
168
|
-
onMouseMove(e) {
|
|
169
|
-
if (!this.isDragging) return;
|
|
170
|
-
let t = e.clientX - this.lastClientX, n = e.clientY - this.lastClientY;
|
|
171
|
-
!this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= t, this.element.scrollTop -= n, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
|
|
172
|
-
}
|
|
173
|
-
onMouseUp() {
|
|
174
|
-
this.isDragging = !1;
|
|
175
|
-
}
|
|
176
|
-
onClick(e) {
|
|
177
|
-
this.hasDragged && (e.stopImmediatePropagation(), e.preventDefault());
|
|
178
|
-
}
|
|
179
|
-
}, Kn = (e) => e.ctrlKey || e.metaKey, qn = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
|
|
180
|
-
function Jn(e, t, n, r = qn) {
|
|
181
|
-
let i = new URL(r + "/" + e);
|
|
182
|
-
return Array.isArray(n) ? n.forEach((e) => {
|
|
183
|
-
e[1] && i.searchParams.append(e[0], e[1]);
|
|
184
|
-
}) : n && Object.keys(n).forEach((e) => {
|
|
185
|
-
n[e] && i.searchParams.append(e, n[e]);
|
|
186
|
-
}), fetch(i, t);
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region ../../packages/utils/src/font/font.ts
|
|
190
|
-
function F(e) {
|
|
191
|
-
return e.replaceAll(" ", "_");
|
|
192
|
-
}
|
|
193
|
-
function Yn(e) {
|
|
194
|
-
return e.value ?? F(e.typeface);
|
|
195
|
-
}
|
|
196
|
-
function Xn(e) {
|
|
197
|
-
return F([
|
|
198
|
-
e.value || e.name,
|
|
199
|
-
e.fontStyle,
|
|
200
|
-
e.fontWeight
|
|
201
|
-
].filter((e) => e != null && e !== "").join("_"));
|
|
202
|
-
}
|
|
203
|
-
function I(e) {
|
|
204
|
-
return e.length >= 2 && (e.startsWith("'") && e.endsWith("'") || e.startsWith("\"") && e.endsWith("\""));
|
|
205
|
-
}
|
|
206
|
-
function L(e) {
|
|
207
|
-
return I(e) || !e.includes(" ") ? e : `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
208
|
-
}
|
|
209
|
-
function R(e) {
|
|
210
|
-
return I(e) ? e.slice(1, -1).replace(/\\(.)/g, "$1") : e;
|
|
211
|
-
}
|
|
212
|
-
function z(e, t) {
|
|
213
|
-
if (!e?.document) return !1;
|
|
214
|
-
let n = e.document.createElement("canvas").getContext("2d"), r = (e) => n ? (n.font = `32px ${L(e)}, monospace`, n.measureText("mmmmmmmmmmwwwwwww").width) : 0, i = r("monospace");
|
|
215
|
-
return r(t) !== i;
|
|
216
|
-
}
|
|
217
|
-
function Zn(e, t) {
|
|
218
|
-
if (!e?.document?.fonts) return !1;
|
|
219
|
-
let n = !1;
|
|
220
|
-
return e.document.fonts.forEach((e) => {
|
|
221
|
-
e.family.replace(/['"]/g, "").toLowerCase() === t.toLowerCase() && (n = !0);
|
|
222
|
-
}), n ? !0 : z(e, t);
|
|
223
|
-
}
|
|
224
|
-
function B(e) {
|
|
225
|
-
let t = /\bitalic\b/i, n = /\b(semi[-\s]?condensed|condensed)\b/i, r = (e) => {
|
|
226
|
-
let r = e.fontFamily.toLowerCase(), i = e.fontStyle.toLowerCase(), a = t.test(i), o = n.test(r), s = 0;
|
|
227
|
-
return a && (s = 1), o && (s = a ? 3 : 2), {
|
|
228
|
-
family: e.fontFamily,
|
|
229
|
-
styleRank: s,
|
|
230
|
-
weight: Number(e.fontWeight)
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
return [...e].sort((e, t) => {
|
|
234
|
-
let n = r(e), i = r(t);
|
|
235
|
-
return n.weight === i.weight ? n.styleRank === i.styleRank ? n.family.localeCompare(i.family) : n.styleRank - i.styleRank : n.weight - i.weight;
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
function Qn(e, t, n = [
|
|
239
|
-
300,
|
|
240
|
-
400,
|
|
241
|
-
500,
|
|
242
|
-
700,
|
|
243
|
-
900
|
|
244
|
-
], r = ["normal", "italic"]) {
|
|
245
|
-
let i = [];
|
|
246
|
-
if (z(e, t)) for (let e of n) for (let n of r) i.push({
|
|
247
|
-
fontFamily: t,
|
|
248
|
-
fontStyle: n,
|
|
249
|
-
fontWeight: e.toString(),
|
|
250
|
-
src: ""
|
|
251
|
-
});
|
|
252
|
-
return B(i);
|
|
253
|
-
}
|
|
254
|
-
function $n(e, t) {
|
|
255
|
-
let n = R(t);
|
|
256
|
-
return e.find((e) => e.families.length > 0 && (e.typeface === n || e.value === n || e.families.some((e) => e.value === n)));
|
|
257
|
-
}
|
|
258
|
-
function er(e, t) {
|
|
259
|
-
let n = $n(e, t);
|
|
260
|
-
return n ? B(n.families.map((e) => ({
|
|
261
|
-
fontFamily: e.value ?? n.typeface,
|
|
262
|
-
fontStyle: e.fontStyle || "normal",
|
|
263
|
-
fontWeight: String(e.fontWeight ?? 400),
|
|
264
|
-
src: ""
|
|
265
|
-
}))) : [];
|
|
266
|
-
}
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region ../../packages/utils/src/form/form.ts
|
|
269
|
-
function tr(e) {
|
|
270
|
-
let t = new FormData(e), n = {};
|
|
271
|
-
return t.forEach((e, t) => {
|
|
272
|
-
if (Reflect.has(n, t)) {
|
|
273
|
-
let r = n[t];
|
|
274
|
-
Array.isArray(r) ? r.push(e) : n[t] = [n[t], e];
|
|
275
|
-
} else n[t] = e;
|
|
276
|
-
}), n;
|
|
277
|
-
}
|
|
278
|
-
function V(e) {
|
|
279
|
-
let t = [...e.getRootNode().querySelectorAll("*")], n = [...e.elements], r = T.get(e), i = r ? Array.from(r) : [];
|
|
280
|
-
return [...n, ...i].sort((e, n) => t.indexOf(e) < t.indexOf(n) ? -1 : +(t.indexOf(e) > t.indexOf(n)));
|
|
281
|
-
}
|
|
282
|
-
function nr(e) {
|
|
283
|
-
return V(e).some((e) => e.hasAttribute("data-user-valid") || e.hasAttribute("data-user-invalid"));
|
|
284
|
-
}
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region ../../packages/utils/src/history-manager/history-manager.ts
|
|
287
|
-
var rr = class {
|
|
288
|
-
constructor(e = null) {
|
|
289
|
-
this.history = e === null ? [] : [e], this.redoStack = [];
|
|
290
|
-
}
|
|
291
|
-
add(e) {
|
|
292
|
-
this.history.push(e), this.redoStack = [];
|
|
293
|
-
}
|
|
294
|
-
undo() {
|
|
295
|
-
if (this.history.length > 1) {
|
|
296
|
-
let e = this.history.pop();
|
|
297
|
-
return this.redoStack.push(e), this.getCurrent();
|
|
298
|
-
}
|
|
299
|
-
return null;
|
|
300
|
-
}
|
|
301
|
-
redo() {
|
|
302
|
-
if (this.redoStack.length > 0) {
|
|
303
|
-
let e = this.redoStack.pop();
|
|
304
|
-
return this.history.push(e), e;
|
|
305
|
-
}
|
|
306
|
-
return null;
|
|
307
|
-
}
|
|
308
|
-
getCurrent() {
|
|
309
|
-
return this.history[this.history.length - 1] || null;
|
|
310
|
-
}
|
|
311
|
-
clear() {
|
|
312
|
-
this.history = [], this.redoStack = [];
|
|
313
|
-
}
|
|
314
|
-
canUndo() {
|
|
315
|
-
return this.history.length > 1;
|
|
316
|
-
}
|
|
317
|
-
canRedo() {
|
|
318
|
-
return this.redoStack.length > 0;
|
|
319
|
-
}
|
|
320
|
-
getHistory() {
|
|
321
|
-
return [...this.history];
|
|
322
|
-
}
|
|
323
|
-
}, ir = /* @__PURE__ */ function(e) {
|
|
324
|
-
return e.ArrowDown = "ArrowDown", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.ArrowUp = "ArrowUp", e.Enter = "Enter", e.Escape = "Escape", e.Tab = "Tab", e;
|
|
325
|
-
}({});
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region ../../packages/utils/src/object/object.ts
|
|
328
|
-
function ar(e, t) {
|
|
329
|
-
let n = {}, r = new Set(t);
|
|
330
|
-
return Object.keys(e).forEach((t) => {
|
|
331
|
-
r.has(t) || (n[t] = e[t]);
|
|
332
|
-
}), n;
|
|
333
|
-
}
|
|
334
|
-
function or(e, t) {
|
|
335
|
-
let n = {};
|
|
336
|
-
return t.forEach((t) => {
|
|
337
|
-
t in e && (n[t] = e[t]);
|
|
338
|
-
}), n;
|
|
339
|
-
}
|
|
340
|
-
function sr(e) {
|
|
341
|
-
if (!e) return {};
|
|
342
|
-
let t;
|
|
343
|
-
try {
|
|
344
|
-
t = JSON.parse(e);
|
|
345
|
-
} catch {
|
|
346
|
-
return {};
|
|
347
|
-
}
|
|
348
|
-
return typeof t == "object" ? t : {};
|
|
349
|
-
}
|
|
350
|
-
function cr(e, t = !0) {
|
|
351
|
-
if (!e) return [];
|
|
352
|
-
let n;
|
|
353
|
-
try {
|
|
354
|
-
n = JSON.parse(e);
|
|
355
|
-
} catch {
|
|
356
|
-
return [];
|
|
357
|
-
}
|
|
358
|
-
return Array.isArray(n) ? t ? n.filter((e) => typeof e == "string") : n : [];
|
|
359
|
-
}
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region ../../packages/utils/src/storage/storage.ts
|
|
362
|
-
function lr(e, t) {
|
|
363
|
-
return typeof Storage < "u" && localStorage.getItem(e) !== null ? localStorage.getItem(e) : t;
|
|
364
|
-
}
|
|
365
|
-
function ur(e, t) {
|
|
366
|
-
typeof Storage < "u" && localStorage.setItem(e, t.toString());
|
|
367
|
-
}
|
|
368
|
-
//#endregion
|
|
369
|
-
//#region ../../packages/utils/src/toast/toast.ts
|
|
370
|
-
var dr = (e, t) => {
|
|
371
|
-
try {
|
|
372
|
-
window.Matrix3?.ShowNotification && window.Matrix3.ShowNotification(e, t ? { notificationType: t.notificationType } : void 0);
|
|
373
|
-
} catch {
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
}, H = "/AssetLink/", fr = {
|
|
377
|
-
[E.BottomCenter]: A.South,
|
|
378
|
-
[E.BottomLeft]: A.Southwest,
|
|
379
|
-
[E.BottomRight]: A.Southeast,
|
|
380
|
-
[E.CenterCenter]: A.Center,
|
|
381
|
-
[E.CenterLeft]: A.West,
|
|
382
|
-
[E.CenterRight]: A.East,
|
|
383
|
-
[E.TopCenter]: A.North,
|
|
384
|
-
[E.TopLeft]: A.Northwest,
|
|
385
|
-
[E.TopRight]: A.Northeast
|
|
386
|
-
}, U = "/t/", W = [
|
|
387
|
-
400,
|
|
388
|
-
800,
|
|
389
|
-
1200,
|
|
390
|
-
1600,
|
|
391
|
-
2400
|
|
392
|
-
];
|
|
393
|
-
function G({ asset: e, baseUrl: t, extension: n, options: r, parameters: i, transformations: a, useSession: o = "" }) {
|
|
394
|
-
if (t == null) return "";
|
|
395
|
-
let s = t, c = a?.findLast((e) => e.key === k.Quality);
|
|
396
|
-
if (c && (a = [...a?.filter((e) => e.key !== k.Quality) || [], c]), a) {
|
|
397
|
-
let e = [];
|
|
398
|
-
for (let t = 0; t < a.length; t++) {
|
|
399
|
-
let n = a[t];
|
|
400
|
-
if (n.key === k.Rotate) {
|
|
401
|
-
let r = n.value.rotation ?? 0;
|
|
402
|
-
for (; a[t + 1]?.key === k.Rotate;) t++, r += a[t].value.rotation ?? 0;
|
|
403
|
-
r !== 0 && e.push({
|
|
404
|
-
key: k.Rotate,
|
|
405
|
-
value: { rotation: r }
|
|
406
|
-
});
|
|
407
|
-
} else e.push(n);
|
|
408
|
-
}
|
|
409
|
-
a = e;
|
|
410
|
-
}
|
|
411
|
-
a && a.length > 0 && (s += "/t/"), a?.forEach(({ key: e, value: t }) => {
|
|
412
|
-
if (e === k.Resize) {
|
|
413
|
-
if (t.unit === O.AspectRatio && t.ratioWidth && t.ratioHeight) {
|
|
414
|
-
s += `re_ar_${t.ratioWidth}:${t.ratioHeight}/`;
|
|
415
|
-
return;
|
|
416
|
-
}
|
|
417
|
-
let e = [...[{
|
|
418
|
-
key: "re_w_",
|
|
419
|
-
value: Math.round(t.width ?? 0)
|
|
420
|
-
}, {
|
|
421
|
-
key: "re_h_",
|
|
422
|
-
value: Math.round(t.height ?? 0)
|
|
423
|
-
}].filter((e) => e.value !== void 0).map((e) => ({
|
|
424
|
-
key: e.key,
|
|
425
|
-
value: Math.round(Number(e.value))
|
|
426
|
-
})), {
|
|
427
|
-
key: "re_rm_",
|
|
428
|
-
value: "stretch"
|
|
429
|
-
}];
|
|
430
|
-
e.forEach(({ key: t, value: n }, r) => {
|
|
431
|
-
s += `${t}${n}${r < e.length - 1 ? "," : ""}`;
|
|
432
|
-
}), s += "/";
|
|
433
|
-
}
|
|
434
|
-
if (e === k.Crop) {
|
|
435
|
-
let e = t.unit === O.AspectRatio && !!t.ratioWidth && !!t.ratioHeight, n = !t.disabledSize && !e, i = n && (t.x !== void 0 || t.y !== void 0), a = [...[
|
|
436
|
-
{
|
|
437
|
-
key: "c_",
|
|
438
|
-
value: t.mode
|
|
439
|
-
},
|
|
440
|
-
...e ? [{
|
|
441
|
-
key: "ar_",
|
|
442
|
-
value: `${t.ratioWidth}:${t.ratioHeight}`
|
|
443
|
-
}] : [],
|
|
444
|
-
...n ? [
|
|
445
|
-
{
|
|
446
|
-
key: "c_w_",
|
|
447
|
-
value: Math.round(t.width ?? 0)
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
key: "c_h_",
|
|
451
|
-
value: Math.round(t.height ?? 0)
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
key: "c_x_",
|
|
455
|
-
value: Math.round(t.x ?? 0) === 0 && r?.omitZeroXY ? void 0 : Math.round(t.x ?? 0)
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
key: "c_y_",
|
|
459
|
-
value: Math.round(t.y ?? 0) === 0 && r?.omitZeroXY ? void 0 : Math.round(t.y ?? 0)
|
|
460
|
-
}
|
|
461
|
-
] : [],
|
|
462
|
-
...!i && t.focusMode && t.focusMode !== "manual" ? [{
|
|
463
|
-
key: t.isFocusModeAuto ? "acm_" : "c_g_",
|
|
464
|
-
value: t.focusMode
|
|
465
|
-
}] : [],
|
|
466
|
-
...!i && t.focusMode === "manual" && t.position ? [{
|
|
467
|
-
key: "c_g_",
|
|
468
|
-
value: fr[t.position]
|
|
469
|
-
}] : []
|
|
470
|
-
].filter((e) => e.value !== void 0 && e.value !== null).map((e) => ({
|
|
471
|
-
key: e.key,
|
|
472
|
-
value: e.value
|
|
473
|
-
})), ...e ? [] : [{
|
|
474
|
-
key: "c_whu_",
|
|
475
|
-
value: "pixel"
|
|
476
|
-
}]];
|
|
477
|
-
a.forEach(({ key: e, value: t }, n) => {
|
|
478
|
-
let r = [
|
|
479
|
-
"c_w_",
|
|
480
|
-
"c_h_",
|
|
481
|
-
"c_x_",
|
|
482
|
-
"c_y_"
|
|
483
|
-
].includes(e);
|
|
484
|
-
s += `${e}${r ? Math.round(Number(t)) : t}${n < a.length - 1 ? "," : ""}`;
|
|
485
|
-
}), s += "/";
|
|
486
|
-
}
|
|
487
|
-
if (e === k.Rotate && ([{
|
|
488
|
-
key: "r_a_",
|
|
489
|
-
value: t.rotation
|
|
490
|
-
}].filter((e) => e.value !== void 0).map((e) => ({
|
|
491
|
-
key: e.key,
|
|
492
|
-
value: Math.round(Number(e.value))
|
|
493
|
-
})).forEach(({ key: e, value: t }) => {
|
|
494
|
-
s += `${e}${t}`;
|
|
495
|
-
}), s += "/"), e === k.Quality) {
|
|
496
|
-
let e = [{
|
|
497
|
-
key: "q_level_",
|
|
498
|
-
value: t.quality
|
|
499
|
-
}].filter((e) => e.value !== void 0).map((e) => ({
|
|
500
|
-
key: e.key,
|
|
501
|
-
value: Math.round(Number(e.value))
|
|
502
|
-
}));
|
|
503
|
-
e.forEach(({ key: t, value: n }, r) => {
|
|
504
|
-
s += `${t}${n}${r < e.length - 1 ? "," : ""}`;
|
|
505
|
-
}), s += "/";
|
|
506
|
-
}
|
|
507
|
-
if (e === k.Metadata) {
|
|
508
|
-
let e = [{
|
|
509
|
-
key: "fl_keep_metadata",
|
|
510
|
-
value: t.keepMetadata
|
|
511
|
-
}].filter((e) => e.value !== void 0).map((e) => ({
|
|
512
|
-
key: e.key,
|
|
513
|
-
value: e.value
|
|
514
|
-
}));
|
|
515
|
-
e.forEach(({ key: t }, n) => {
|
|
516
|
-
s += `${t}${n < e.length - 1 ? "," : ""}`;
|
|
517
|
-
}), s += "/";
|
|
518
|
-
}
|
|
519
|
-
}), n && (s += `${e?.identifier ?? crypto.randomUUID()}${n}`);
|
|
520
|
-
let l = [];
|
|
521
|
-
return i && i.length > 0 && i.forEach(({ key: e, value: t }) => {
|
|
522
|
-
l.push(`${encodeURIComponent(e.trim())}=${encodeURIComponent(t.trim())}`);
|
|
523
|
-
}), t && o && l.push(`UseSession=${encodeURIComponent(o)}`), l.length > 0 && (s += `?${l.join("&")}`), s.endsWith("/") && (s = s.slice(0, -1)), s;
|
|
524
|
-
}
|
|
525
|
-
var K = ".auto";
|
|
526
|
-
function pr(e) {
|
|
527
|
-
if (Array.isArray(e)) return e;
|
|
528
|
-
if (typeof e != "string" || !e) return [];
|
|
529
|
-
try {
|
|
530
|
-
let t = JSON.parse(e);
|
|
531
|
-
return Array.isArray(t) ? t : [];
|
|
532
|
-
} catch {
|
|
533
|
-
return [];
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
function q(e, t, n = {}) {
|
|
537
|
-
let r = n.format === Y && Z(n.extension), i = !!n.autoFormat && !r;
|
|
538
|
-
if (!e || !t?.length && !i) return e;
|
|
539
|
-
let a = t?.length ? G({
|
|
540
|
-
baseUrl: "",
|
|
541
|
-
transformations: t
|
|
542
|
-
}).replace(/\/t\//g, "") : "";
|
|
543
|
-
if (!a && !i) return e;
|
|
544
|
-
let o = e.indexOf(H);
|
|
545
|
-
if (o < 0) return a ? `${e}${U}${a}` : e;
|
|
546
|
-
let s = e.slice(0, o + 11), c = e.slice(o + 11);
|
|
547
|
-
if (!c) return e;
|
|
548
|
-
let l = c.indexOf(U), u = l >= 0, d = c.indexOf("/"), f = u ? l : d, p = f >= 0 ? c.slice(0, f) : c, m = u ? c.slice(l + 3) : d >= 0 ? c.slice(d + 1) : "", h = m.slice(m.lastIndexOf("/") + 1), g = h ? `${h.replace(/\.[^.]+$/, "")}${K}` : `${p.replace(/\.[^.]+$/, "")}${K}`, _ = [a, i ? g : u ? "" : h].filter(Boolean);
|
|
549
|
-
return _.length === 0 ? e : `${s}${p}${U}${_.join("/")}`;
|
|
550
|
-
}
|
|
551
|
-
function mr(e) {
|
|
552
|
-
return `re_w_${Math.round(e)}`;
|
|
553
|
-
}
|
|
554
|
-
function J(e, t) {
|
|
555
|
-
if (!e || !Number.isFinite(t) || t <= 0) return e;
|
|
556
|
-
let n = e.indexOf(H);
|
|
557
|
-
if (n < 0) return e;
|
|
558
|
-
let r = mr(t), i = e.slice(0, n + 11), a = e.slice(n + 11), o = a.indexOf(U);
|
|
559
|
-
if (o >= 0) return `${i}${a.slice(0, o)}${U}${r}/${a.slice(o + 3)}`;
|
|
560
|
-
let s = a.indexOf("/");
|
|
561
|
-
return s >= 0 ? `${i}${a.slice(0, s)}${U}${r}${a.slice(s)}` : `${i}${a}${U}${r}`;
|
|
562
|
-
}
|
|
563
|
-
function hr(e) {
|
|
564
|
-
let t = e.indexOf(H);
|
|
565
|
-
return t < 0 ? !1 : e.slice(t + 11).includes(U);
|
|
566
|
-
}
|
|
567
|
-
function gr(e) {
|
|
568
|
-
let t = e.indexOf(H);
|
|
569
|
-
if (t < 0) return !1;
|
|
570
|
-
let n = e.slice(t + 11), r = n.indexOf(U);
|
|
571
|
-
return r < 0 ? !1 : n.slice(r + 3).includes("/");
|
|
572
|
-
}
|
|
573
|
-
var Y = "TRX", _r = "TR1", vr = /* @__PURE__ */ new Set([
|
|
574
|
-
"avif",
|
|
575
|
-
"bmp",
|
|
576
|
-
"gif",
|
|
577
|
-
"ico",
|
|
578
|
-
"jpeg",
|
|
579
|
-
"jpg",
|
|
580
|
-
"png",
|
|
581
|
-
"svg",
|
|
582
|
-
"webp"
|
|
583
|
-
]);
|
|
584
|
-
function X(e) {
|
|
585
|
-
if (!e) return "";
|
|
586
|
-
let t = e.trim().toLowerCase();
|
|
587
|
-
return t.startsWith(".") ? t.slice(1) : t;
|
|
588
|
-
}
|
|
589
|
-
function Z(e) {
|
|
590
|
-
return X(e) === "gif";
|
|
591
|
-
}
|
|
592
|
-
function yr(e) {
|
|
593
|
-
return X(e) === "svg";
|
|
594
|
-
}
|
|
595
|
-
var br = 1048576e3, xr = {
|
|
596
|
-
b: 1,
|
|
597
|
-
byte: 1,
|
|
598
|
-
bytes: 1,
|
|
599
|
-
gb: 1024 ** 3,
|
|
600
|
-
kb: 1024,
|
|
601
|
-
mb: 1024 ** 2,
|
|
602
|
-
tb: 1024 ** 4
|
|
603
|
-
};
|
|
604
|
-
function Q(e) {
|
|
605
|
-
if (typeof e == "number") return Number.isFinite(e) && e >= 0 ? e : void 0;
|
|
606
|
-
if (!e) return;
|
|
607
|
-
let t = /^\s*([\d.,]+)\s*([a-z]*)\s*$/i.exec(e);
|
|
608
|
-
if (!t) return;
|
|
609
|
-
let n = Number(t[1].replace(/,/g, ""));
|
|
610
|
-
if (!Number.isFinite(n) || n < 0) return;
|
|
611
|
-
let r = t[2].toLowerCase();
|
|
612
|
-
if (!r) return n;
|
|
613
|
-
let i = xr[r];
|
|
614
|
-
return i === void 0 ? void 0 : n * i;
|
|
615
|
-
}
|
|
616
|
-
function Sr(e, t) {
|
|
617
|
-
if (e) return;
|
|
618
|
-
let n = typeof t == "number" ? t : Number(t ?? "");
|
|
619
|
-
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
620
|
-
}
|
|
621
|
-
function Cr(e, t) {
|
|
622
|
-
if (!vr.has(X(e))) return "TR1";
|
|
623
|
-
let n = Q(t);
|
|
624
|
-
return n !== void 0 && n > 1048576e3 ? "TR1" : Y;
|
|
625
|
-
}
|
|
626
|
-
function wr(e, t = {}) {
|
|
627
|
-
if (!e.includes(H) || gr(e) || t.format === Y && (Z(t.extension) || yr(t.extension))) return "";
|
|
628
|
-
let { maxWidth: n, widths: r = W } = t, i = [...r].filter((e) => Number.isFinite(e) && e > 0).sort((e, t) => e - t);
|
|
629
|
-
if (i.length === 0) return "";
|
|
630
|
-
let a = i;
|
|
631
|
-
if (n !== void 0 && Number.isFinite(n) && n > 0) {
|
|
632
|
-
let e = i.filter((e) => e <= n);
|
|
633
|
-
a = e.length > 0 ? e : [i[0]];
|
|
634
|
-
}
|
|
635
|
-
let o = n !== void 0 && Number.isFinite(n) && n > 0, s = (o ? a.filter((e) => n > e * 1.15) : a).map((t) => `${J(e, t)} ${t}w`);
|
|
636
|
-
return o && s.push(`${e} ${n}w`), s.join(", ");
|
|
637
|
-
}
|
|
638
|
-
function Tr(e, t = 100) {
|
|
639
|
-
return !Number.isFinite(e) || e <= 0 ? "" : `${Math.ceil(e / t) * t}px`;
|
|
640
|
-
}
|
|
641
|
-
//#endregion
|
|
642
|
-
//#region ../../packages/utils/src/video/video.ts
|
|
643
|
-
var Er = 10;
|
|
644
|
-
function Dr(e, t) {
|
|
645
|
-
let n = 0, r = e.length;
|
|
646
|
-
for (; n < r;) {
|
|
647
|
-
let i = Math.floor((n + r) / 2);
|
|
648
|
-
e[i].time < t.time ? n = i + 1 : r = i;
|
|
649
|
-
}
|
|
650
|
-
e.splice(n, 0, t);
|
|
651
|
-
}
|
|
652
|
-
function $(e, t, n) {
|
|
653
|
-
return e.find((e) => e.col === t && e.row === n) ?? null;
|
|
654
|
-
}
|
|
655
|
-
function Or(e, t, n) {
|
|
656
|
-
return new Promise((r) => {
|
|
657
|
-
if (t > 0 && Math.abs(e.currentTime - t) < .001) {
|
|
658
|
-
r();
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
if (t === 0) {
|
|
662
|
-
let t = () => {
|
|
663
|
-
e.removeEventListener("seeked", t);
|
|
664
|
-
let n = () => {
|
|
665
|
-
e.removeEventListener("seeked", n), r();
|
|
666
|
-
};
|
|
667
|
-
e.addEventListener("seeked", n), e.currentTime = 0;
|
|
668
|
-
};
|
|
669
|
-
e.addEventListener("seeked", t), e.currentTime = n;
|
|
670
|
-
} else {
|
|
671
|
-
let n = () => {
|
|
672
|
-
e.removeEventListener("seeked", n), r();
|
|
673
|
-
};
|
|
674
|
-
e.addEventListener("seeked", n), e.currentTime = t;
|
|
675
|
-
}
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
async function* kr({ cache: e, canvas: t, duration: n, maxInterval: r, src: i, video: a }) {
|
|
679
|
-
if (!t) throw Error("Canvas is required");
|
|
680
|
-
if (!a) throw Error("Video is required");
|
|
681
|
-
let { columns: o, frameHeight: s, frameWidth: c, rows: l, spriteCtx: u } = t;
|
|
682
|
-
try {
|
|
683
|
-
for (let t = 0; t < l; t++) for (let d = 0; d < o; d++) {
|
|
684
|
-
let f = t * o + d, p = f * r;
|
|
685
|
-
if (p >= n) continue;
|
|
686
|
-
let m = d * c, h = t * s, g = $(e[i] ?? [], d, t), _ = d === o - 1 && t === l - 1 || p + r >= n;
|
|
687
|
-
g ? yield {
|
|
688
|
-
...g,
|
|
689
|
-
isLastFrame: _
|
|
690
|
-
} : (await Or(a, p, r), u.drawImage(a, m, h, c, s), yield {
|
|
691
|
-
col: d,
|
|
692
|
-
columns: o,
|
|
693
|
-
frameHeight: s,
|
|
694
|
-
frameWidth: c,
|
|
695
|
-
index: f,
|
|
696
|
-
isLastFrame: _,
|
|
697
|
-
row: t,
|
|
698
|
-
rows: l,
|
|
699
|
-
time: Number(p.toFixed(10)),
|
|
700
|
-
x: m,
|
|
701
|
-
y: h
|
|
702
|
-
}), await new Promise(requestAnimationFrame);
|
|
703
|
-
}
|
|
704
|
-
} catch {}
|
|
705
|
-
}
|
|
706
|
-
function Ar({ duration: e, frameWidth: t, playbackSpeed: n, scale: r }) {
|
|
707
|
-
let i = t * n / r;
|
|
708
|
-
return i > e && (i = e / 2), i;
|
|
709
|
-
}
|
|
710
|
-
//#endregion
|
|
711
|
-
export { _r as AUTO_FALLBACK_FORMAT, K as AUTO_FORMAT_EXTENSION, br as AUTO_ORIGINAL_FORMAT_MAX_BYTES, wn as CMYK_VALIDATION_REGEX, qt as CalendarGrid, yn as ColorType, Wn as CortexPopupController, kn as DEFAULT_BREAKPOINTS, Kt as DateRangePresets, Gn as DragScroll, je as FormControlController, Sn as HEX_ALPHA_VALIDATION_REGEX, gn as HEX_VALIDATION_REGEX, d as HasSlotController, rr as HistoryManager, ir as KeyboardKey, c as LocalizeController, St as MIN_GRADIENT_STOPS, Er as PRECISION, ln as RELATIVE_URL_REGEX, dn as RGB_VALIDATION_REGEX, W as SRCSET_WIDTH_LADDER, an as URL_DOMAIN_VALIDATION_REGEX, sn as URL_INTRANET_DOMAIN_VALIDATION_REGEX, nn as URL_PROTOCOL_VALIDATION_REGEX, Qt as URL_VALIDATION_REGEX, At as activeElements, Bt as addMonths, Un as adjustRelativeValues, n as animateTo, D as appendProtocol, cn as appendQueryParam, q as applyTransformationsToUrl, J as applyWidthToAssetUrl, wr as buildAssetSrcset, Tr as buildSizesFromDisplayWidth, G as buildTransformationString, ft as buildWaveformPath, ut as calculateAspectRatioFit, Tt as clamp, ot as cleanImageFileName, Ke as clearZeroDurationParts, bn as convertColor, tt as convertDataUnits, Ze as convertDurationToMilliseconds, $e as convertPixelsToAspectRatio, ct as convertSrcToBlob, vt as createStopId, it as cropImage, b as cssValueToPx, o as customElement, w as customErrorValidityState, He as debounce, pt as defaultValue, Ln as downloadAsset, Ct as drag, pe as emptyToSpace, ce as escapeXML, Cn as extractColor, de as extractExtension, kr as extractFrames, ae as extractRootData, Ye as extractValueAndUnit, dt as extractWaveformPeaks, Jn as fetchCortexApi, Be as findAncestorWithBuggyStyle, Ie as findContainingBlock, Re as findCuttingAncestor, $ as findFrameByColAndRow, Rn as findIndexByProp, Et as focusWhenVisible, T as formCollections, qe as formatAspectRatioString, fn as formatColorCodeSeparator, We as formatDurationPartsManually, _n as formatHexCode, Vt as formatIsoToDisplay, Gt as formatMonthYearLabel, Qe as formatNumberWithGrouping, g as formatSecondsToTime, le as formatTimeToSeconds, Ge as formatWithIntlDurationFormat, et as gcd, Ee as getActiveElement, Zt as getActiveModals, C as getAssociatedForm, ke as getAttributes, fe as getAttributesString, Dn as getBreakpointsFromCSS, Qn as getBrowserFontVariants, Tn as getColorType, nt as getContainedImageSize, Ce as getCortexPopupLayer, v as getCurrentZIndex, Wt as getDateMask, kt as getDeepestActiveElement, On as getDeviceType, Ue as getDurationPartsByUnitsFormat, De as getElementFromHTMLString, y as getElementFromTemplate, Ut as getFirstDayOfWeek, Xn as getFontFamilyOptionValue, er as getFontFamilyVariants, V as getFormControls, jn as getHighlightedTitle, An as getHighlightedTitleHtml, l as getInnerHTML, Ar as getInterval, pn as getLightDarkCssString, st as getNaturalWidthHeight, ye as getNeededPaddingForBoxShadow, Pe as getNextAncestor, jt as getOffset, we as getRelativeClickPercentage, ee as getRootIDString, Ot as getTabbableBoundary, Dt as getTabbableElements, u as getTextContent, Ht as getTodayIsoDate, Yn as getTypefaceOptionValue, Vn as groupBy, hr as hasTransformSegment, oe as htmlToPlainText, N as insertAtIndex, Dr as insertFrameToCache, P as insertMultipleAtIndex, bt as interpolateStopColor, Me as isChrome, Ft as isCortexAdobePlugin, x as isDomElement, be as isElementInHorizontalView, $t as isExpiredAssetUrl, Le as isFirefox, Zn as isFontFamilyAvailable, nr as isFormInteracted, me as isGalleryItemCardType, gt as isGradientString, ze as isIOS, xe as isInElement, Kn as isModKey, Ne as isSafari, lt as isSaveSrcValid, rn as isValidDomainOrIntranetUrl, Rt as isValidIsoDate, un as isValidUrl, Jt as isoToDate, Mn as isoWeekNumber, Oe as loadScript, Pt as lockBodyScrolling, mn as luminanceTextColor, Bn as moveMultipleToIndex, zn as moveToIndex, Hn as multiSelectTo, mt as normalizeAngle, Xt as normalizeToIsoDate, ar as omit, Nn as openAssetOverview, Pn as openFolderOverview, Fn as openLink, te as padPath, ne as parseBooleanString, xn as parseBorder, zt as parseDisplayToIso, i as parseDuration, Q as parseFileSizeToBytes, yt as parseGradient, Yt as parseIsoDate, sr as parseJsonString, vn as parseLightDark, cr as parseListString, hn as parseShadow, pr as parseTransformations, or as pick, Fe as popoverSupported, t as prefersReducedMotion, wt as quantizeLargestRemainder, L as quoteFontFamily, lr as readLocalStorageValue, Te as readSearchConsistency, ue as reducePathToDirectChild, s as registerTranslation, j as removeAtIndex, M as removeMultipleAtIndex, rt as resizeImage, Cr as resolveAutoFormat, Sr as resolveAutoMaxWidth, en as resolveSpaceUrl, Je as rotateBox, at as rotateImage, se as safeExtension, ie as safeString, re as sanitizeHTML, Xe as sanitizeRotation, Mt as scrollIntoView, tr as serialize, xt as serializeGradient, In as shareAsset, e as shimKeyframesHeightAuto, Se as sortByTopPosition, ht as sortStops, B as sortTypefaceVariants, It as splitBoxValues, h as splitCamelCaseFormatted, _t as splitTopLevel, r as stopAnimations, Ve as supportHLS, z as testFontAvailability, En as timecodeConverter, he as toCamelCase, Lt as toIsoDate, ve as toKebabCase, _ as toPascalCase, tn as toRelativeUrl, _e as toTitleCase, on as toUrlPathKey, dr as toast, m as truncateTextMiddle, p as unescapeXML, Nt as unlockBodyScrolling, R as unquoteFontFamily, ge as upperFirst, S as validValidityState, Ae as valueMissingValidityState, a as waitForEvent, f as watch, ur as writeLocalStorageValue };
|
|
6
|
+
import { C as p, S as m, _ as h, a as g, b as _, c as v, d as y, f as b, g as x, h as S, i as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I } from "./chunks/string.DAuTpyw8.js";
|
|
7
|
+
import { a as L, c as R, d as z, f as B, h as V, i as H, l as U, m as W, n as G, o as K, p as q, r as J, s as Y, t as X, u as Z } from "./chunks/dom.BsVeSE01.js";
|
|
8
|
+
import { a as Q, i as $, n as ee, o as te, r as ne, t as re } from "./chunks/form.JYXtmwQ2.js";
|
|
9
|
+
import { a as ie, c as ae, i as oe, l as se, n as ce, o as le, r as ue, s as de, t as fe, u as pe } from "./chunks/browser.Ct4pHP9I.js";
|
|
10
|
+
import { t as me } from "./chunks/debounce.Ci-xdsHE.js";
|
|
11
|
+
import { i as he, n as ge, r as _e, t as ve } from "./chunks/time.p1t0NCwj.js";
|
|
12
|
+
import { a as ye, c as be, i as xe, l as Se, n as Ce, o as we, r as Te, s as Ee, t as De } from "./chunks/number.CNp5LKkv.js";
|
|
13
|
+
import { a as Oe, c as ke, i as Ae, l as je, n as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./chunks/image.C0s1gL4z.js";
|
|
14
|
+
import { n as Le, t as Re } from "./chunks/waveform.BFEuRt2_.js";
|
|
15
|
+
import { t as ze } from "./chunks/default-value.opqQgoRT.js";
|
|
16
|
+
import { a as Be, c as Ve, i as He, l as Ue, n as We, o as Ge, r as Ke, s as qe, t as Je } from "./chunks/gradient.rrDxmV60.js";
|
|
17
|
+
import { t as Ye } from "./chunks/drag.s0AcVpKh.js";
|
|
18
|
+
import { n as Xe, t as Ze } from "./chunks/math.od1DVmRk.js";
|
|
19
|
+
import { t as Qe } from "./chunks/focus-when-visible.DKscgyKo.js";
|
|
20
|
+
import { n as $e, t as et } from "./chunks/tabbable.Bflg1dha.js";
|
|
21
|
+
import { n as tt, t as nt } from "./chunks/active-elements.Tk45XSNQ.js";
|
|
22
|
+
import { i as rt, n as it, r as at, t as ot } from "./chunks/scroll.CEH_a4pm.js";
|
|
23
|
+
import { t as st } from "./chunks/user-agent.D2bRhUeS.js";
|
|
24
|
+
import { t as ct } from "./chunks/parse.CDrJ-NY7.js";
|
|
25
|
+
import { S as lt, _ as ut, b as dt, d as ft, f as pt, g as mt, h as ht, m as gt, p as _t, t as vt, u as yt, v as bt, x as xt, y as St } from "./chunks/date.BL4L64Hx.js";
|
|
26
|
+
import { $ as Ct, A as wt, B as Tt, D as Et, F as Dt, G as Ot, H as kt, I as At, J as jt, K as Mt, L as Nt, M as Pt, N as Ft, O as It, P as Lt, Q as Rt, R as zt, U as Bt, V as Vt, W as Ht, X as Ut, Y as Wt, Z as Gt, _ as Kt, a as qt, at as Jt, c as Yt, ct as Xt, d as Zt, dt as Qt, et as $t, f as en, ft as tn, g as nn, h as rn, i as an, it as on, j as sn, k as cn, l as ln, lt as un, m as dn, n as fn, nt as pn, o as mn, ot as hn, p as gn, pt as _n, q as vn, r as yn, rt as bn, s as xn, st as Sn, t as Cn, tt as wn, u as Tn, ut as En, v as Dn, y as On, z as kn } from "./chunks/src.cBRbsOdC.js";
|
|
27
|
+
import { n as An } from "./chunks/modal.CrMcpGz2.js";
|
|
28
|
+
import { a as jn, c as Mn, d as Nn, f as Pn, i as Fn, l as In, m as Ln, n as Rn, o as zn, p as Bn, r as Vn, s as Hn, t as Un, u as Wn } from "./chunks/url.BCc06dE7.js";
|
|
29
|
+
import { a as Gn, c as Kn, d as qn, f as Jn, h as Yn, i as Xn, l as Zn, m as Qn, n as $n, o as er, p as tr, r as nr, s as rr, t as ir, u as ar } from "./chunks/color.CIOzHtLK.js";
|
|
30
|
+
import { t as or } from "./chunks/converters.CFh-tT4P.js";
|
|
31
|
+
import { n as sr, r as cr, t as lr } from "./chunks/responsive.L9Csz2w2.js";
|
|
32
|
+
import { n as ur, t as dr } from "./chunks/template.Cyvih0XQ.js";
|
|
33
|
+
export { mn as AUTO_FALLBACK_FORMAT, xn as AUTO_FORMAT_EXTENSION, Yt as AUTO_ORIGINAL_FORMAT_MAX_BYTES, ir as CMYK_VALIDATION_REGEX, yt as CalendarGrid, $n as ColorType, Gt as CortexPopupController, lr as DEFAULT_BREAKPOINTS, vt as DateRangePresets, Ut as DragScroll, re as FormControlController, nr as HEX_ALPHA_VALIDATION_REGEX, Xn as HEX_VALIDATION_REGEX, d as HasSlotController, Dt as HistoryManager, Lt as KeyboardKey, c as LocalizeController, Je as MIN_GRADIENT_STOPS, Cn as PRECISION, Un as RELATIVE_URL_REGEX, Gn as RGB_VALIDATION_REGEX, ln as SRCSET_WIDTH_LADDER, Rn as URL_DOMAIN_VALIDATION_REGEX, Vn as URL_INTRANET_DOMAIN_VALIDATION_REGEX, Fn as URL_PROTOCOL_VALIDATION_REGEX, jn as URL_VALIDATION_REGEX, nt as activeElements, ft as addMonths, Rt as adjustRelativeValues, n as animateTo, zn as appendProtocol, Hn as appendQueryParam, Tn as applyTransformationsToUrl, Zt as applyWidthToAssetUrl, en as buildAssetSrcset, gn as buildSizesFromDisplayWidth, dn as buildTransformationString, Re as buildWaveformPath, Ie as calculateAspectRatioFit, Ze as clamp, Me as cleanImageFileName, ve as clearZeroDurationParts, er as convertColor, De as convertDataUnits, Ce as convertDurationToMilliseconds, Te as convertPixelsToAspectRatio, Pe as convertSrcToBlob, We as createStopId, Ae as cropImage, X as cssValueToPx, o as customElement, ee as customErrorValidityState, me as debounce, ze as defaultValue, Xt as downloadAsset, Ye as drag, j as emptyToSpace, E as escapeXML, rr as extractColor, k as extractExtension, fn as extractFrames, C as extractRootData, xe as extractValueAndUnit, Le as extractWaveformPeaks, jt as fetchCortexApi, fe as findAncestorWithBuggyStyle, ce as findContainingBlock, ue as findCuttingAncestor, yn as findFrameByColAndRow, Ct as findIndexByProp, Qe as focusWhenVisible, ne as formCollections, ye as formatAspectRatioString, Kn as formatColorCodeSeparator, ge as formatDurationPartsManually, Zn as formatHexCode, pt as formatIsoToDisplay, _t as formatMonthYearLabel, we as formatNumberWithGrouping, g as formatSecondsToTime, D as formatTimeToSeconds, _e as formatWithIntlDurationFormat, Ee as gcd, G as getActiveElement, An as getActiveModals, $ as getAssociatedForm, J as getAttributes, A as getAttributesString, sr as getBreakpointsFromCSS, kn as getBrowserFontVariants, ar as getColorType, Oe as getContainedImageSize, H as getCortexPopupLayer, L as getCurrentZIndex, gt as getDateMask, tt as getDeepestActiveElement, cr as getDeviceType, he as getDurationPartsByUnitsFormat, K as getElementFromHTMLString, Y as getElementFromTemplate, ht as getFirstDayOfWeek, Tt as getFontFamilyOptionValue, Vt as getFontFamilyVariants, At as getFormControls, dr as getHighlightedTitle, ur as getHighlightedTitleHtml, l as getInnerHTML, an as getInterval, qn as getLightDarkCssString, Ne as getNaturalWidthHeight, R as getNeededPaddingForBoxShadow, oe as getNextAncestor, rt as getOffset, U as getRelativeClickPercentage, v as getRootIDString, et as getTabbableBoundary, $e as getTabbableElements, u as getTextContent, mt as getTodayIsoDate, kt as getTypefaceOptionValue, $t as groupBy, rn as hasTransformSegment, w as htmlToPlainText, wn as insertAtIndex, qt as insertFrameToCache, pn as insertMultipleAtIndex, Ke as interpolateStopColor, ie as isChrome, st as isCortexAdobePlugin, Z as isDomElement, z as isElementInHorizontalView, Mn as isExpiredAssetUrl, le as isFirefox, Bt as isFontFamilyAvailable, Nt as isFormInteracted, M as isGalleryItemCardType, He as isGradientString, de as isIOS, B as isInElement, Wt as isModKey, ae as isSafari, Fe as isSaveSrcValid, In as isValidDomainOrIntranetUrl, ut as isValidIsoDate, Wn as isValidUrl, bt as isoToDate, _n as isoWeekNumber, q as loadScript, ot as lockBodyScrolling, Jn as luminanceTextColor, bn as moveMultipleToIndex, on as moveToIndex, Jt as multiSelectTo, Be as normalizeAngle, St as normalizeToIsoDate, wt as omit, un as openAssetOverview, En as openFolderOverview, Qt as openLink, y as padPath, b as parseBooleanString, tr as parseBorder, dt as parseDisplayToIso, i as parseDuration, nn as parseFileSizeToBytes, Ge as parseGradient, xt as parseIsoDate, sn as parseJsonString, Qn as parseLightDark, Pt as parseListString, Yn as parseShadow, Kt as parseTransformations, Ft as pick, se as popoverSupported, t as prefersReducedMotion, Xe as quantizeLargestRemainder, Ht as quoteFontFamily, Nn as readAssetTokenExpiry, It as readLocalStorageValue, W as readSearchConsistency, O as reducePathToDirectChild, s as registerTranslation, hn as removeAtIndex, Sn as removeMultipleAtIndex, ke as resizeImage, Dn as resolveAutoFormat, On as resolveAutoMaxWidth, Pn as resolveSpaceUrl, be as rotateBox, je as rotateImage, T as safeExtension, S as safeString, x as sanitizeHTML, Se as sanitizeRotation, it as scrollIntoView, zt as serialize, qe as serializeGradient, tn as shareAsset, e as shimKeyframesHeightAuto, V as sortByTopPosition, Ve as sortStops, Ot as sortTypefaceVariants, ct as splitBoxValues, h as splitCamelCaseFormatted, Ue as splitTopLevel, r as stopAnimations, pe as supportHLS, Mt as testFontAvailability, or as timecodeConverter, N as toCamelCase, lt as toIsoDate, I as toKebabCase, _ as toPascalCase, Bn as toRelativeUrl, F as toTitleCase, Ln as toUrlPathKey, Et as toast, m as truncateTextMiddle, p as unescapeXML, at as unlockBodyScrolling, vn as unquoteFontFamily, P as upperFirst, Q as validValidityState, te as valueMissingValidityState, a as waitForEvent, f as watch, cn as writeLocalStorageValue };
|