@orangelogic/design-system 3.20.0 → 3.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/library/chunks/{_baseXor.DixEm6JQ.js → _baseXor.BCxbgizO.js} +2 -2
  2. package/library/chunks/{asset-link-format.BnE0FbUH.js → asset-link-format.B5E00Je6.js} +656 -629
  3. package/library/chunks/{button.D1YIxtv-.js → button.cbDkxJHn.js} +3 -3
  4. package/library/chunks/button.styles.D3GdfF7I.js +5 -0
  5. package/library/chunks/{color-swatch-group.GEu5gVrg.js → color-swatch-group.BxmlqPZe.js} +3354 -2925
  6. package/library/chunks/color.CIHdfM_a.js +187 -0
  7. package/library/chunks/{confirm-popover.CJXyEa5A.js → confirm-popover.Dvgoz-oA.js} +4 -4
  8. package/library/chunks/content-builder.CBBdfVOl.js +55 -0
  9. package/library/chunks/{dialog.BbQ4Du0M.js → dialog.BvSMV36r.js} +2 -2
  10. package/library/chunks/{document-viewer.Bkf3JbWk.js → document-viewer.Dm9pcb0o.js} +11 -10
  11. package/library/chunks/{dom.DL-cNKsj.js → dom.D0lSUoEI.js} +1 -1
  12. package/library/chunks/{dot-pagination.CJRAtM51.js → dot-pagination.CukHxNBk.js} +1 -1
  13. package/library/chunks/{folder-select.D8_6pC8Y.js → folder-select.BQqwlVaD.js} +5 -5
  14. package/library/chunks/form-control.styles.CHC7Q08Q.js +5 -0
  15. package/library/chunks/{form.DN2v7-DH.js → form.LpappO1d.js} +1 -1
  16. package/library/chunks/{header.BioJzPlg.js → header.2RH_nPmz.js} +132 -90
  17. package/library/chunks/{i18n.rtxrs1c1.js → i18n.BSPmBQ73.js} +94 -12
  18. package/library/chunks/{icon-button.CbUddcgI.js → icon-button.DV5Fks8j.js} +1 -1
  19. package/library/chunks/{iframe.y7iCAVZP.js → iframe.ddX2kGu3.js} +1 -1
  20. package/library/chunks/{image.A2hE1WoV.js → image.BM7bPTub.js} +407 -276
  21. package/library/chunks/index.SMjV3S2z.js +1130 -0
  22. package/library/chunks/{input.D1FFprPl.js → input.7pumTpdu.js} +3 -3
  23. package/library/chunks/{markdown.Dd_GFJK8.js → markdown.LHSzm035.js} +3 -3
  24. package/library/chunks/{menu-item.0TbnDEDp.js → menu-item.DsJZ7i0J.js} +1 -1
  25. package/library/chunks/{option.CyorNG0S.js → option.C5f7yDqN.js} +1 -1
  26. package/library/chunks/{pagination.D0BeaEIi.js → pagination.CMwpX60h.js} +36 -32
  27. package/library/chunks/{position-picker.DjnhxIKF.js → position-picker.qkbJlboF.js} +12 -0
  28. package/library/chunks/{resizable-component.styles.CAfXABBc.js → resizable-component.styles.kMFDlGgv.js} +2 -2
  29. package/library/chunks/responsive.BmBJSzC4.js +17 -0
  30. package/library/chunks/{string.Demn8Xmk.js → string.CfI2ejyR.js} +3 -3
  31. package/library/chunks/{tab-group.C98CWzEH.js → tab-group.D_QAkP8s.js} +312 -310
  32. package/library/chunks/toast.D3AW3RWv.js +94 -0
  33. package/library/chunks/transformation.BwQ_H-4q.js +351 -0
  34. package/library/chunks/{tree.DB-QLic1.js → tree.BHrf5WIc.js} +1 -1
  35. package/library/chunks/{types.DrJgdbwu.js → types.BDM-NtAR.js} +58295 -35623
  36. package/library/chunks/typography.BLYdTF0n.js +102 -0
  37. package/library/components/alert.js +2 -2
  38. package/library/components/asset-link-format.js +6 -6
  39. package/library/components/atoms.js +161 -159
  40. package/library/components/audio.js +4 -4
  41. package/library/components/bicolor-picker.js +2 -2
  42. package/library/components/border-input-group.js +2 -2
  43. package/library/components/box.d.ts +3 -0
  44. package/library/components/box.js +22 -0
  45. package/library/components/breadcrumb.js +1 -1
  46. package/library/components/button.js +4 -4
  47. package/library/components/card.js +7 -7
  48. package/library/components/checkbox.js +2 -2
  49. package/library/components/color-picker.js +36 -32
  50. package/library/components/color-swatch-group.js +8 -7
  51. package/library/components/color-swatch.js +246 -22
  52. package/library/components/confirm-popover.js +5 -5
  53. package/library/components/copy-button.js +2 -2
  54. package/library/components/corner-position-input-group.js +3 -3
  55. package/library/components/date-calendar.js +1 -1
  56. package/library/components/details.js +19 -19
  57. package/library/components/dialog.js +3 -3
  58. package/library/components/diff.js +1 -1
  59. package/library/components/document-viewer.js +5 -5
  60. package/library/components/dot-pagination.js +2 -2
  61. package/library/components/drawer.js +2 -2
  62. package/library/components/dropdown.js +2 -2
  63. package/library/components/dynamic-select.js +95 -92
  64. package/library/components/e-chart.js +1 -1
  65. package/library/components/element-clamp.js +2 -2
  66. package/library/components/file-on-demand.js +12 -12
  67. package/library/components/folder-select.js +5 -5
  68. package/library/components/format-bytes.js +1 -1
  69. package/library/components/format-date.js +1 -1
  70. package/library/components/format-number.js +1 -1
  71. package/library/components/format-time.js +1 -1
  72. package/library/components/header.js +6 -3
  73. package/library/components/icon-button.js +2 -2
  74. package/library/components/iframe.js +2 -2
  75. package/library/components/image-comparer.js +1 -1
  76. package/library/components/image.js +5 -4
  77. package/library/components/input-group.js +1 -1
  78. package/library/components/input.js +4 -4
  79. package/library/components/line-clamp.js +1 -1
  80. package/library/components/markdown.js +4 -4
  81. package/library/components/masonry.js +70 -56
  82. package/library/components/menu-item.js +2 -2
  83. package/library/components/menu.js +2 -2
  84. package/library/components/molecules.js +4 -4
  85. package/library/components/mutation-observer.js +26 -24
  86. package/library/components/option.js +2 -2
  87. package/library/components/organisms.js +2 -2
  88. package/library/components/padding-input-group.js +1 -1
  89. package/library/components/pagination.js +7 -7
  90. package/library/components/popup.js +1 -1
  91. package/library/components/position-picker.js +2 -2
  92. package/library/components/progress-bar.js +1 -1
  93. package/library/components/progress-ring.js +1 -1
  94. package/library/components/radio-button.js +1 -1
  95. package/library/components/radio-card.js +1 -1
  96. package/library/components/radio-group.js +2 -2
  97. package/library/components/range.js +3 -3
  98. package/library/components/rating.js +1 -1
  99. package/library/components/relative-time.js +1 -1
  100. package/library/components/select.js +5 -5
  101. package/library/components/shadow-input-group.js +1 -1
  102. package/library/components/share-option-list.js +3 -3
  103. package/library/components/sidebar.js +1 -1
  104. package/library/components/size-input-group.js +3 -3
  105. package/library/components/spinner.js +1 -1
  106. package/library/components/split-panel.js +1 -1
  107. package/library/components/switch.js +2 -2
  108. package/library/components/tab-group.js +6 -6
  109. package/library/components/tab-panel.js +1 -1
  110. package/library/components/tab.js +16 -16
  111. package/library/components/tag.js +2 -2
  112. package/library/components/textarea.js +2 -2
  113. package/library/components/timecode.js +2 -2
  114. package/library/components/tooltip.js +1 -1
  115. package/library/components/tree-item.js +2 -2
  116. package/library/components/tree.js +2 -2
  117. package/library/components/typeface.js +3 -3
  118. package/library/components/types.js +496 -487
  119. package/library/components/typography.js +3 -2
  120. package/library/components/video.js +5277 -5209
  121. package/library/css/ol-base.css +1 -0
  122. package/library/package.json +1 -1
  123. package/library/packages/atoms/src/components/box/box.d.ts +26 -0
  124. package/library/packages/atoms/src/components/box/box.styles.d.ts +7 -0
  125. package/library/packages/atoms/src/components/button/button.d.ts +4 -0
  126. package/library/packages/atoms/src/components/card/card.d.ts +1 -0
  127. package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +11 -0
  128. package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +1 -0
  129. package/library/packages/atoms/src/components/details/details.d.ts +6 -1
  130. package/library/packages/atoms/src/components/header/header.d.ts +38 -2
  131. package/library/packages/atoms/src/components/image/image.d.ts +30 -0
  132. package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +1 -1
  133. package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -0
  134. package/library/packages/atoms/src/components/tab/tab.d.ts +17 -0
  135. package/library/packages/atoms/src/components/typography/typography.d.ts +31 -0
  136. package/library/packages/atoms/src/components/video/video.d.ts +24 -0
  137. package/library/packages/atoms/src/index.d.ts +1 -0
  138. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
  139. package/library/packages/events/src/cx-color-swatch-picker-columns-change.d.ts +15 -0
  140. package/library/packages/events/src/events.d.ts +1 -0
  141. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +2 -0
  142. package/library/packages/hybrid/table-core/src/table/table.d.ts +45 -5
  143. package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +35 -1
  144. package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +30 -1
  145. package/library/packages/molecules/src/details-group/details-group.d.ts +105 -3
  146. package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
  147. package/library/packages/molecules/src/font-picker/font-picker.d.ts +3 -0
  148. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  149. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +5 -6
  150. package/library/packages/molecules/src/index.d.ts +0 -1
  151. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  152. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +6 -0
  153. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +5 -1
  154. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
  155. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +37 -45
  156. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +210 -10
  157. package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +85 -0
  158. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +32 -9
  159. package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +24 -8
  160. package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +70 -1
  161. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -22
  162. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +7 -0
  163. package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +6 -0
  164. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -0
  165. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +7 -0
  166. package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
  167. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -1
  168. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +11 -1
  169. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +19 -1
  170. package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +11 -2
  171. package/library/packages/organisms/src/content-builder/configs/column.d.ts +13 -3
  172. package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -0
  173. package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
  174. package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +1 -0
  175. package/library/packages/organisms/src/content-builder/configs/font-kit-advanced.d.ts +19 -0
  176. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -0
  177. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +15 -1
  178. package/library/packages/organisms/src/content-builder/configs/header.d.ts +3 -1
  179. package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
  180. package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
  181. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +5 -1
  182. package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +7 -4
  183. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  184. package/library/packages/organisms/src/content-builder/configs/video.d.ts +3 -0
  185. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +168 -13
  186. package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +60 -0
  187. package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +27 -0
  188. package/library/packages/organisms/src/content-builder/content-builder.d.ts +122 -2
  189. package/library/packages/organisms/src/content-builder/content-builder.sections.utils.d.ts +78 -0
  190. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +33 -2
  191. package/library/packages/organisms/src/content-builder/plugins/font-kit-advanced.d.ts +5 -0
  192. package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +6 -0
  193. package/library/packages/organisms/src/content-builder/plugins/header.d.ts +7 -1
  194. package/library/packages/organisms/src/content-builder/plugins/index.d.ts +2 -1
  195. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +21 -1
  196. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +2 -0
  197. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/rte-configs.d.ts +14 -0
  198. package/library/packages/organisms/src/content-builder/plugins/sections/section-fragment-component.d.ts +22 -0
  199. package/library/packages/organisms/src/content-builder/plugins/sections/section-host-mounting.d.ts +15 -0
  200. package/library/packages/organisms/src/content-builder/plugins/sections/sections-canvas-patches.d.ts +20 -0
  201. package/library/packages/organisms/src/content-builder/plugins/sections/sections-plugin.d.ts +7 -0
  202. package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -1
  203. package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +20 -0
  204. package/library/packages/organisms/src/content-builder/styleController.d.ts +11 -5
  205. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +1 -0
  206. package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +176 -0
  207. package/library/packages/organisms/src/form/control-renderer/control-renderer.styles.d.ts +9 -0
  208. package/library/packages/organisms/src/list-editor/list-editor.d.ts +181 -6
  209. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
  210. package/library/packages/tools/src/tiptap/extensions/metafield/index.d.ts +12 -0
  211. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
  212. package/library/packages/types/src/asset-link-format.d.ts +0 -1
  213. package/library/packages/types/src/button.d.ts +1 -1
  214. package/library/packages/types/src/color-swatch-group.d.ts +56 -0
  215. package/library/packages/types/src/color-swatch.d.ts +22 -0
  216. package/library/packages/types/src/column.d.ts +13 -0
  217. package/library/packages/types/src/content-builder.d.ts +73 -4
  218. package/library/packages/types/src/details-group.d.ts +80 -0
  219. package/library/packages/types/src/font-kit-advanced.d.ts +28 -0
  220. package/library/packages/types/src/font-kit.d.ts +19 -0
  221. package/library/packages/types/src/font-picker.d.ts +2 -0
  222. package/library/packages/types/src/gallery-item.d.ts +3 -1
  223. package/library/packages/types/src/gallery.d.ts +2 -1
  224. package/library/packages/types/src/index.d.ts +1 -0
  225. package/library/packages/types/src/masonry.d.ts +1 -0
  226. package/library/packages/types/src/position-picker.d.ts +6 -0
  227. package/library/packages/types/src/sb-button.d.ts +7 -0
  228. package/library/packages/types/src/search-box.d.ts +4 -0
  229. package/library/packages/utils/src/color/color.d.ts +27 -3
  230. package/library/packages/utils/src/custom-element/i18n.d.ts +88 -2
  231. package/library/packages/utils/src/font/font.d.ts +12 -0
  232. package/library/packages/utils/src/transformation/transformation.d.ts +11 -3
  233. package/library/react-web-component.d.ts +514 -156
  234. package/library/utils.js +417 -397
  235. package/package.json +1 -1
  236. package/library/chunks/button.styles.BWgHrfLD.js +0 -5
  237. package/library/chunks/color-swatch.DdsUysbF.js +0 -223
  238. package/library/chunks/color.LzSGBy7o.js +0 -164
  239. package/library/chunks/form-control.styles.CaGWmeAS.js +0 -5
  240. package/library/chunks/index.Ct-dh3Y5.js +0 -20122
  241. package/library/chunks/toast.CGIDPKV8.js +0 -109
  242. package/library/chunks/transformation.OaRYixzE.js +0 -385
  243. package/library/chunks/typography.T72DuoCa.js +0 -52
  244. package/library/packages/molecules/src/search-box/search-box.d.ts +0 -114
  245. package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +0 -4
  246. /package/library/packages/{molecules/src/search-box/search-box.styles.d.ts → organisms/src/content-builder-viewer/content-builder-viewer.styles.d.ts} +0 -0
package/library/utils.js CHANGED
@@ -1,52 +1,53 @@
1
- import { b as k } from "./chunks/url.CGdWC06g.js";
2
- import { R as At, f as xt, g as Et, h as It, U as Lt, a as Ft, d as Rt, c as Ot, i as bt, r as vt, t as Vt, e as _t } from "./chunks/url.CGdWC06g.js";
3
- import { j as Ut, f as Nt, b as Yt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.CGIDPKV8.js";
4
- import { e as jt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as le, C as ce, e as ue, H as me, R as fe, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as Se, b as we } from "./chunks/color.LzSGBy7o.js";
6
- import { a as Ce, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
7
- import { a as xe, p as Ee, c as Ie, b as Le, s as Fe, w as Re } from "./chunks/event.BeKOsirN.js";
8
- import { t as be } from "./chunks/converters.DkDtLstb.js";
9
- import { c as Ve } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as ke } from "./chunks/debounce.DaHuiSGU.js";
11
- import { d as Ne } from "./chunks/default-value.COZopaet.js";
12
- import { d as Pe } from "./chunks/drag.DenOh3AE.js";
13
- import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
- import { f as U } from "./chunks/form.DN2v7-DH.js";
15
- import { F as Be, c as Ge, g as $e, v as ze, a as qe } from "./chunks/form.DN2v7-DH.js";
16
- import { L as Ze, r as je } from "./chunks/i18n.rtxrs1c1.js";
17
- import { c as Ke, q as tr } from "./chunks/math.DuKzLacZ.js";
18
- import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
19
- import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
20
- import { k as y } from "./chunks/dom.DL-cNKsj.js";
21
- import { c as cr, d as ur, h as mr, m as fr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as Sr, l as wr, r as Mr, s as Cr } from "./chunks/dom.DL-cNKsj.js";
22
- import { H as Ar, a as xr, g as Er } from "./chunks/slot.j5oheLJC.js";
23
- import { a as Lr, g as Fr } from "./chunks/tabbable.BwnZBHrm.js";
24
- import { i as Or } from "./chunks/user-agent.D9aPuOyL.js";
25
- import { w as vr } from "./chunks/watch.DJF5K-8U.js";
26
- import { C as _r } from "./chunks/calendar-grid.BWjcZL5W.js";
27
- import { b as Ur, c as Nr, f as Yr, h as Pr, g as Wr, a as Xr, i as Hr, d as Br, n as Gr, e as $r, p as zr, t as qr } from "./chunks/date.iWq_pkIk.js";
28
- import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
29
- import { o as Zr, l as jr, p as Jr, k as Kr, a as ta, m as ea, b as ra, g as aa, d as sa, f as oa, n as na, q as ia, r as la, c as ca } from "./chunks/transformation.OaRYixzE.js";
30
- import { M as ma, c as fa, e as ha, i as ga, n as da, p as pa, b as Da, s as Ta, d as Sa } from "./chunks/gradient.CIzq8fOU.js";
31
- import { c as Ma, f as Ca, e as ya, b as Aa, g as xa, d as Ea, i as Ia, r as La, a as Fa } from "./chunks/image.Y5c_hFx8.js";
32
- import { b as Oa, e as ba } from "./chunks/waveform.1U9U_0rd.js";
33
- import { c as Va, b as _a, a as ka, e as Ua, d as Na, f as Ya, g as Pa, r as Wa, s as Xa } from "./chunks/number.Cx2ncfJJ.js";
34
- import { s as Ba } from "./chunks/parse.Cu5nBDTb.js";
35
- import { b as $a, n as za, d as qa, e as Qa, f as Za, y as ja, o as Ja, g as Ka, h as ts, l as es, p as rs, z as as, x as ss, a as os, c as ns, s as is, w as ls, r as cs, t as us, q as ms, v as fs, i as hs, m as gs, u as ds } from "./chunks/string.Demn8Xmk.js";
36
- import { g as Ds, a as Ts } from "./chunks/template.ClovJacp.js";
37
- import { c as ws, f as Ms, a as Cs, g as ys } from "./chunks/time.DYWuX2id.js";
1
+ import { b as U } from "./chunks/url.CGdWC06g.js";
2
+ import { R as Et, f as It, g as Lt, h as Ft, U as Rt, a as Ot, d as vt, c as bt, i as Vt, r as _t, t as kt, e as Ut } from "./chunks/url.CGdWC06g.js";
3
+ import { e as Yt, f as Pt, g as Wt, c as Xt, i as Ht, a as Bt, d as Gt, m as $t, b as zt, r as qt, t as Qt } from "./chunks/toast.D3AW3RWv.js";
4
+ import { e as Zt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
5
+ import { k as le, e as ce, m as ue, H as fe, R as me, d as he, o as ge, g as de, f as pe, n as De, h as Te, l as Se, i as we, p as Me, j as ye } from "./chunks/color.CIHdfM_a.js";
6
+ import { a as xe, g as Ae } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as Ie, p as Le, c as Fe, b as Re, s as Oe, w as ve } from "./chunks/event.BeKOsirN.js";
8
+ import { t as Ve } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as ke } from "./chunks/custom-element.L4WJXn1j.js";
10
+ import { d as Ne } from "./chunks/debounce.DaHuiSGU.js";
11
+ import { d as Pe } from "./chunks/default-value.COZopaet.js";
12
+ import { d as Xe } from "./chunks/drag.DenOh3AE.js";
13
+ import { f as Be } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
+ import { f as N } from "./chunks/form.LpappO1d.js";
15
+ import { F as $e, c as ze, g as qe, v as Qe, a as je } from "./chunks/form.LpappO1d.js";
16
+ import { L as Je, r as Ke } from "./chunks/i18n.BSPmBQ73.js";
17
+ import { c as er, q as rr } from "./chunks/math.DuKzLacZ.js";
18
+ import { g as sr } from "./chunks/modal.Ct0bJBSe.js";
19
+ import { g as nr, l as ir, s as lr, u as cr } from "./chunks/scroll.xtO5yojm.js";
20
+ import { k as C } from "./chunks/dom.D0lSUoEI.js";
21
+ import { c as fr, d as mr, h as hr, m as gr, a as dr, g as pr, j as Dr, b as Tr, f as Sr, i as wr, e as Mr, l as yr, r as Cr, s as xr } from "./chunks/dom.D0lSUoEI.js";
22
+ import { H as Er, a as Ir, g as Lr } from "./chunks/slot.j5oheLJC.js";
23
+ import { a as Rr, g as Or } from "./chunks/tabbable.BwnZBHrm.js";
24
+ import { i as br } from "./chunks/user-agent.D9aPuOyL.js";
25
+ import { w as _r } from "./chunks/watch.DJF5K-8U.js";
26
+ import { C as Ur } from "./chunks/calendar-grid.BWjcZL5W.js";
27
+ import { b as Yr, c as Pr, f as Wr, h as Xr, g as Hr, a as Br, i as Gr, d as $r, n as zr, e as qr, p as Qr, t as jr } from "./chunks/date.iWq_pkIk.js";
28
+ import { f as c, a as u, D as f } from "./chunks/date-picker.BGHn6qg8.js";
29
+ import { i as Jr, A as Kr, j as ta, S as ea, a as ra, g as aa, b as sa, e as oa, d as na, f as ia, h as la, k as ca, p as ua, r as fa, c as ma } from "./chunks/transformation.BwQ_H-4q.js";
30
+ import { M as ga, c as da, e as pa, i as Da, n as Ta, p as Sa, b as wa, s as Ma, d as ya } from "./chunks/gradient.CIzq8fOU.js";
31
+ import { c as xa, f as Aa, e as Ea, b as Ia, g as La, d as Fa, i as Ra, r as Oa, a as va } from "./chunks/image.Y5c_hFx8.js";
32
+ import { b as Va, e as _a } from "./chunks/waveform.1U9U_0rd.js";
33
+ import { c as Ua, b as Na, a as Ya, e as Pa, d as Wa, f as Xa, g as Ha, r as Ba, s as Ga } from "./chunks/number.Cx2ncfJJ.js";
34
+ import { s as za } from "./chunks/parse.Cu5nBDTb.js";
35
+ import { g as Qa, a as ja } from "./chunks/responsive.BmBJSzC4.js";
36
+ import { b as Ja, n as Ka, d as ts, e as es, f as rs, y as as, o as ss, g as os, h as ns, l as is, p as ls, z as cs, x as us, a as fs, c as ms, s as hs, w as gs, r as ds, t as ps, q as Ds, v as Ts, i as Ss, m as ws, u as Ms } from "./chunks/string.CfI2ejyR.js";
37
+ import { g as Cs, a as xs } from "./chunks/template.ClovJacp.js";
38
+ import { c as Es, f as Is, a as Ls, g as Fs } from "./chunks/time.DYWuX2id.js";
38
39
  function n(t) {
39
- const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
40
- return `${e}-${r}-${s}`;
40
+ const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), a = String(t.getDate()).padStart(2, "0");
41
+ return `${e}-${r}-${a}`;
41
42
  }
42
- function A(t) {
43
- const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
44
- return `${e}:${r}:${s}`;
43
+ function x(t) {
44
+ const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0");
45
+ return `${e}:${r}:${a}`;
45
46
  }
46
47
  function h(t, e) {
47
48
  return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
48
49
  }
49
- function x(t) {
50
+ function A(t) {
50
51
  const e = t.getDay(), r = e === 0 ? -6 : 1 - e;
51
52
  return h(t, r);
52
53
  }
@@ -72,7 +73,7 @@ function O(t) {
72
73
  const e = t.getMonth() < 6 ? 0 : 6;
73
74
  return new Date(t.getFullYear(), e + 6, 0);
74
75
  }
75
- class Q {
76
+ class Z {
76
77
  /**
77
78
  * Computes a date range from a preset value.
78
79
  *
@@ -81,144 +82,144 @@ class Q {
81
82
  * @returns fromDate, toDate (YYYY-MM-DD) and fromTime, toTime (HH:mm:ss).
82
83
  */
83
84
  static getRange(e, r) {
84
- const s = n(r);
85
+ const a = n(r);
85
86
  switch (e) {
86
87
  case c.last30Minutes: {
87
- const a = new Date(r.getTime() - 18e5);
88
+ const s = new Date(r.getTime() - 18e5);
88
89
  return {
89
- fromDate: n(a),
90
- fromTime: A(a),
91
- toDate: s,
92
- toTime: A(r)
90
+ fromDate: n(s),
91
+ fromTime: x(s),
92
+ toDate: a,
93
+ toTime: x(r)
93
94
  };
94
95
  }
95
96
  case c.today:
96
97
  return {
97
- fromDate: s,
98
- fromTime: m,
99
- toDate: s,
98
+ fromDate: a,
99
+ fromTime: f,
100
+ toDate: a,
100
101
  toTime: u
101
102
  };
102
103
  case c.lastDay: {
103
- const a = n(h(r, -1));
104
+ const s = n(h(r, -1));
104
105
  return {
105
- fromDate: a,
106
- fromTime: m,
107
- toDate: a,
106
+ fromDate: s,
107
+ fromTime: f,
108
+ toDate: s,
108
109
  toTime: u
109
110
  };
110
111
  }
111
112
  case c.last2Days:
112
113
  return {
113
114
  fromDate: n(h(r, -1)),
114
- fromTime: m,
115
- toDate: s,
115
+ fromTime: f,
116
+ toDate: a,
116
117
  toTime: u
117
118
  };
118
119
  case c.last3Days:
119
120
  return {
120
121
  fromDate: n(h(r, -2)),
121
- fromTime: m,
122
- toDate: s,
122
+ fromTime: f,
123
+ toDate: a,
123
124
  toTime: u
124
125
  };
125
126
  case c.last30Days:
126
127
  return {
127
128
  fromDate: n(h(r, -29)),
128
- fromTime: m,
129
- toDate: s,
129
+ fromTime: f,
130
+ toDate: a,
130
131
  toTime: u
131
132
  };
132
133
  case c.next30Days:
133
134
  return {
134
- fromDate: s,
135
- fromTime: m,
135
+ fromDate: a,
136
+ fromTime: f,
136
137
  toDate: n(h(r, 30)),
137
138
  toTime: u
138
139
  };
139
140
  case c.thisWeek: {
140
- const a = x(r);
141
+ const s = A(r);
141
142
  return {
142
- fromDate: n(a),
143
- fromTime: m,
144
- toDate: n(h(a, 6)),
143
+ fromDate: n(s),
144
+ fromTime: f,
145
+ toDate: n(h(s, 6)),
145
146
  toTime: u
146
147
  };
147
148
  }
148
149
  case c.lastWeek: {
149
- const a = h(x(r), -7);
150
+ const s = h(A(r), -7);
150
151
  return {
151
- fromDate: n(a),
152
- fromTime: m,
153
- toDate: n(h(a, 6)),
152
+ fromDate: n(s),
153
+ fromTime: f,
154
+ toDate: n(h(s, 6)),
154
155
  toTime: u
155
156
  };
156
157
  }
157
158
  case c.thisMonth:
158
159
  return {
159
160
  fromDate: n(E(r)),
160
- fromTime: m,
161
+ fromTime: f,
161
162
  toDate: n(I(r)),
162
163
  toTime: u
163
164
  };
164
165
  case c.lastMonth: {
165
- const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
166
+ const s = new Date(r.getFullYear(), r.getMonth() - 1, 1);
166
167
  return {
167
- fromDate: n(E(a)),
168
- fromTime: m,
169
- toDate: n(I(a)),
168
+ fromDate: n(E(s)),
169
+ fromTime: f,
170
+ toDate: n(I(s)),
170
171
  toTime: u
171
172
  };
172
173
  }
173
174
  case c.thisQuarter:
174
175
  return {
175
176
  fromDate: n(L(r)),
176
- fromTime: m,
177
+ fromTime: f,
177
178
  toDate: n(F(r)),
178
179
  toTime: u
179
180
  };
180
181
  case c.lastQuarter: {
181
- const a = new Date(
182
+ const s = new Date(
182
183
  r.getFullYear(),
183
184
  r.getMonth() - 3,
184
185
  1
185
186
  );
186
187
  return {
187
- fromDate: n(L(a)),
188
- fromTime: m,
189
- toDate: n(F(a)),
188
+ fromDate: n(L(s)),
189
+ fromTime: f,
190
+ toDate: n(F(s)),
190
191
  toTime: u
191
192
  };
192
193
  }
193
194
  case c.thisHalfYear:
194
195
  return {
195
196
  fromDate: n(R(r)),
196
- fromTime: m,
197
+ fromTime: f,
197
198
  toDate: n(O(r)),
198
199
  toTime: u
199
200
  };
200
201
  case c.lastHalfYear: {
201
- const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
+ const s = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
203
  return {
203
- fromDate: n(R(a)),
204
- fromTime: m,
205
- toDate: n(O(a)),
204
+ fromDate: n(R(s)),
205
+ fromTime: f,
206
+ toDate: n(O(s)),
206
207
  toTime: u
207
208
  };
208
209
  }
209
210
  case c.thisYear:
210
211
  return {
211
212
  fromDate: `${r.getFullYear()}-01-01`,
212
- fromTime: m,
213
+ fromTime: f,
213
214
  toDate: `${r.getFullYear()}-12-31`,
214
215
  toTime: u
215
216
  };
216
217
  case c.lastYear: {
217
- const a = r.getFullYear() - 1;
218
+ const s = r.getFullYear() - 1;
218
219
  return {
219
- fromDate: `${a}-01-01`,
220
- fromTime: m,
221
- toDate: `${a}-12-31`,
220
+ fromDate: `${s}-01-01`,
221
+ fromTime: f,
222
+ toDate: `${s}-12-31`,
222
223
  toTime: u
223
224
  };
224
225
  }
@@ -226,18 +227,18 @@ class Q {
226
227
  throw new Error(`Unsupported date range preset: ${e}`);
227
228
  }
228
229
  }
229
- function Z(t) {
230
+ function J(t) {
230
231
  const e = /* @__PURE__ */ new Date(`${t}T00:00:00Z`);
231
232
  if (Number.isNaN(e.getTime()))
232
233
  return 0;
233
234
  const r = new Date(
234
235
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
235
- ), s = r.getUTCDay() || 7;
236
- r.setUTCDate(r.getUTCDate() + 4 - s);
237
- const a = new Date(Date.UTC(r.getUTCFullYear(), 0, 1)), o = (r.getTime() - a.getTime()) / 864e5;
236
+ ), a = r.getUTCDay() || 7;
237
+ r.setUTCDate(r.getUTCDate() + 4 - a);
238
+ const s = new Date(Date.UTC(r.getUTCFullYear(), 0, 1)), o = (r.getTime() - s.getTime()) / 864e5;
238
239
  return Math.ceil((o + 1) / 7);
239
240
  }
240
- function j(t) {
241
+ function K(t) {
241
242
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
242
243
  return;
243
244
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -249,7 +250,7 @@ function j(t) {
249
250
  e
250
251
  );
251
252
  }
252
- function J(t) {
253
+ function tt(t) {
253
254
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
254
255
  return;
255
256
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -261,13 +262,13 @@ function J(t) {
261
262
  e
262
263
  );
263
264
  }
264
- function K(t, e = void 0) {
265
+ function et(t, e = void 0) {
265
266
  !this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
266
- k(t, "https://", !0),
267
+ U(t, "https://", !0),
267
268
  e ?? "_blank"
268
269
  );
269
270
  }
270
- function tt(t) {
271
+ function rt(t) {
271
272
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
272
273
  return;
273
274
  const e = this.ownerDocument.defaultView?.location.origin;
@@ -279,28 +280,28 @@ function tt(t) {
279
280
  e
280
281
  );
281
282
  }
282
- function et(t, e) {
283
+ function at(t, e) {
283
284
  if (!this.ownerDocument.defaultView?.Matrix3 || !t)
284
285
  return;
285
- const r = e || {}, s = this.ownerDocument.defaultView?.location.origin;
286
- s && this.ownerDocument?.defaultView?.postMessage(
286
+ const r = e || {}, a = this.ownerDocument.defaultView?.location.origin;
287
+ a && this.ownerDocument?.defaultView?.postMessage(
287
288
  { detail: { assetIds: t, formats: r }, type: "cx-cms5-download-assets" },
288
- s
289
+ a
289
290
  );
290
291
  }
291
- class rt {
292
+ class st {
292
293
  constructor(e) {
293
- this.currentZIndex = y(), (this.host = e).addController(this);
294
+ this.currentZIndex = C(), (this.host = e).addController(this);
294
295
  }
295
296
  hostConnected() {
296
297
  }
297
298
  hostDisconnected() {
298
299
  }
299
300
  async activatePopup() {
300
- this.currentZIndex = y();
301
+ this.currentZIndex = C();
301
302
  }
302
303
  }
303
- class at {
304
+ class ot {
304
305
  constructor(e, r = {}) {
305
306
  this.element = e, this.noChildDrag = r.noChildDrag ?? !1, this.dragThreshold = r.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();
306
307
  }
@@ -316,8 +317,8 @@ class at {
316
317
  onMouseMove(e) {
317
318
  if (!this.isDragging)
318
319
  return;
319
- const r = e.clientX - this.lastClientX, s = e.clientY - this.lastClientY;
320
- !this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -= s, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
320
+ const r = e.clientX - this.lastClientX, a = e.clientY - this.lastClientY;
321
+ !this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -= a, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
321
322
  }
322
323
  onMouseUp() {
323
324
  this.isDragging = !1;
@@ -326,94 +327,109 @@ class at {
326
327
  this.hasDragged && (e.stopImmediatePropagation(), e.preventDefault());
327
328
  }
328
329
  }
329
- const st = (t) => t.ctrlKey || t.metaKey;
330
- function b(t) {
330
+ const nt = (t) => t.ctrlKey || t.metaKey;
331
+ function v(t) {
331
332
  return t.replaceAll(" ", "_");
332
333
  }
333
- function ot(t) {
334
- return t.value ?? b(t.typeface);
334
+ function it(t) {
335
+ return t.value ?? v(t.typeface);
335
336
  }
336
- function nt(t) {
337
+ function lt(t) {
337
338
  const e = [
338
339
  t.value || t.name,
339
340
  t.fontStyle,
340
341
  t.fontWeight
341
342
  ].filter((r) => r != null && r !== "").join("_");
342
- return b(e);
343
+ return v(e);
343
344
  }
344
- function v(t) {
345
+ function b(t) {
345
346
  return t.length >= 2 && (t.startsWith("'") && t.endsWith("'") || t.startsWith('"') && t.endsWith('"'));
346
347
  }
347
- function N(t) {
348
- return v(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
348
+ function Y(t) {
349
+ return b(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
349
350
  }
350
- function it(t) {
351
- return v(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
351
+ function P(t) {
352
+ return b(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
352
353
  }
353
354
  function V(t, e) {
354
355
  if (!t?.document)
355
356
  return !1;
356
- const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (f) => o ? (o.font = `${s} ${N(f)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
357
+ const r = "mmmmmmmmmmwwwwwww", a = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (m) => o ? (o.font = `${a} ${Y(m)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
357
358
  return i(e) !== l;
358
359
  }
359
- function lt(t, e) {
360
+ function ct(t, e) {
360
361
  if (!t?.document?.fonts)
361
362
  return !1;
362
363
  let r = !1;
363
- return t.document.fonts.forEach((s) => {
364
- s.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
364
+ return t.document.fonts.forEach((a) => {
365
+ a.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
365
366
  }), r ? !0 : V(t, e);
366
367
  }
367
- function Y(t) {
368
- const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, s = (a) => {
369
- const o = a.fontFamily.toLowerCase(), i = a.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
370
- let f = 0;
371
- return l && (f = 1), p && (f = l ? 3 : 2), {
372
- family: a.fontFamily,
373
- styleRank: f,
374
- weight: Number(a.fontWeight)
368
+ function _(t) {
369
+ const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, a = (s) => {
370
+ const o = s.fontFamily.toLowerCase(), i = s.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
371
+ let m = 0;
372
+ return l && (m = 1), p && (m = l ? 3 : 2), {
373
+ family: s.fontFamily,
374
+ styleRank: m,
375
+ weight: Number(s.fontWeight)
375
376
  };
376
377
  };
377
- return [...t].sort((a, o) => {
378
- const i = s(a), l = s(o);
378
+ return [...t].sort((s, o) => {
379
+ const i = a(s), l = a(o);
379
380
  return i.weight !== l.weight ? i.weight - l.weight : i.styleRank !== l.styleRank ? i.styleRank - l.styleRank : i.family.localeCompare(l.family);
380
381
  });
381
382
  }
382
- function ct(t, e, r = [300, 400, 500, 700, 900], s = ["normal", "italic"]) {
383
- const a = [];
383
+ function ut(t, e, r = [300, 400, 500, 700, 900], a = ["normal", "italic"]) {
384
+ const s = [];
384
385
  if (V(t, e))
385
386
  for (const o of r)
386
- for (const i of s)
387
- a.push({
387
+ for (const i of a)
388
+ s.push({
388
389
  fontFamily: e,
389
390
  fontStyle: i,
390
391
  fontWeight: o.toString(),
391
392
  src: ""
392
393
  });
393
- return Y(a);
394
+ return _(s);
395
+ }
396
+ function W(t, e) {
397
+ const r = P(e);
398
+ return t.find((a) => a.families.length > 0 && (a.typeface === r || a.value === r || a.families.some((s) => s.value === r)));
399
+ }
400
+ function ft(t, e) {
401
+ const r = W(t, e);
402
+ return r ? _(
403
+ r.families.map((a) => ({
404
+ fontFamily: a.value ?? r.typeface,
405
+ fontStyle: a.fontStyle || "normal",
406
+ fontWeight: String(a.fontWeight ?? 400),
407
+ src: ""
408
+ }))
409
+ ) : [];
394
410
  }
395
- function ut(t) {
411
+ function mt(t) {
396
412
  const e = new FormData(t), r = {};
397
- return e.forEach((s, a) => {
398
- if (Reflect.has(r, a)) {
399
- const o = r[a];
400
- Array.isArray(o) ? o.push(s) : r[a] = [r[a], s];
413
+ return e.forEach((a, s) => {
414
+ if (Reflect.has(r, s)) {
415
+ const o = r[s];
416
+ Array.isArray(o) ? o.push(a) : r[s] = [r[s], a];
401
417
  } else
402
- r[a] = s;
418
+ r[s] = a;
403
419
  }), r;
404
420
  }
405
- function P(t) {
406
- const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = U.get(t), o = a ? Array.from(a) : [];
407
- return [...s, ...o].sort(
421
+ function X(t) {
422
+ const r = [...t.getRootNode().querySelectorAll("*")], a = [...t.elements], s = N.get(t), o = s ? Array.from(s) : [];
423
+ return [...a, ...o].sort(
408
424
  (i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
409
425
  );
410
426
  }
411
- function mt(t) {
412
- return P(t).some(
427
+ function ht(t) {
428
+ return X(t).some(
413
429
  (r) => r.hasAttribute("data-user-valid") || r.hasAttribute("data-user-invalid")
414
430
  );
415
431
  }
416
- class ft {
432
+ class gt {
417
433
  constructor(e = null) {
418
434
  this.history = e !== null ? [e] : [], this.redoStack = [];
419
435
  }
@@ -450,20 +466,20 @@ class ft {
450
466
  return [...this.history];
451
467
  }
452
468
  }
453
- var W = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(W || {});
454
- function ht(t, e) {
455
- const r = {}, s = new Set(e);
456
- return Object.keys(t).forEach((a) => {
457
- s.has(a) || (r[a] = t[a]);
469
+ var H = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(H || {});
470
+ function dt(t, e) {
471
+ const r = {}, a = new Set(e);
472
+ return Object.keys(t).forEach((s) => {
473
+ a.has(s) || (r[s] = t[s]);
458
474
  }), r;
459
475
  }
460
- function gt(t, e) {
476
+ function pt(t, e) {
461
477
  const r = {};
462
- return e.forEach((s) => {
463
- s in t && (r[s] = t[s]);
478
+ return e.forEach((a) => {
479
+ a in t && (r[a] = t[a]);
464
480
  }), r;
465
481
  }
466
- function dt(t) {
482
+ function Dt(t) {
467
483
  if (!t)
468
484
  return {};
469
485
  let e;
@@ -474,7 +490,7 @@ function dt(t) {
474
490
  }
475
491
  return typeof e != "object" ? {} : e;
476
492
  }
477
- function pt(t, e = !0) {
493
+ function Tt(t, e = !0) {
478
494
  if (!t)
479
495
  return [];
480
496
  let r;
@@ -483,72 +499,72 @@ function pt(t, e = !0) {
483
499
  } catch {
484
500
  return [];
485
501
  }
486
- return Array.isArray(r) ? e ? r.filter((s) => typeof s == "string") : r : [];
502
+ return Array.isArray(r) ? e ? r.filter((a) => typeof a == "string") : r : [];
487
503
  }
488
- function Dt(t, e) {
504
+ function St(t, e) {
489
505
  return typeof Storage < "u" && localStorage.getItem(t) !== null ? localStorage.getItem(t) : e;
490
506
  }
491
- function Tt(t, e) {
507
+ function wt(t, e) {
492
508
  typeof Storage < "u" && localStorage.setItem(t, e.toString());
493
509
  }
494
- const X = 10;
495
- function St(t, e) {
496
- let r = 0, s = t.length;
497
- for (; r < s; ) {
498
- const a = Math.floor((r + s) / 2);
499
- t[a].time < e.time ? r = a + 1 : s = a;
510
+ const B = 10;
511
+ function Mt(t, e) {
512
+ let r = 0, a = t.length;
513
+ for (; r < a; ) {
514
+ const s = Math.floor((r + a) / 2);
515
+ t[s].time < e.time ? r = s + 1 : a = s;
500
516
  }
501
517
  t.splice(r, 0, e);
502
518
  }
503
- function H(t, e, r) {
519
+ function G(t, e, r) {
504
520
  return t.find(
505
- (s) => s.col === e && s.row === r
521
+ (a) => a.col === e && a.row === r
506
522
  ) ?? null;
507
523
  }
508
- function B(t, e, r) {
509
- return new Promise((s) => {
524
+ function $(t, e, r) {
525
+ return new Promise((a) => {
510
526
  if (e > 0 && Math.abs(t.currentTime - e) < 1e-3) {
511
- s();
527
+ a();
512
528
  return;
513
529
  }
514
530
  if (e === 0) {
515
- const a = () => {
516
- t.removeEventListener("seeked", a);
531
+ const s = () => {
532
+ t.removeEventListener("seeked", s);
517
533
  const o = () => {
518
- t.removeEventListener("seeked", o), s();
534
+ t.removeEventListener("seeked", o), a();
519
535
  };
520
536
  t.addEventListener("seeked", o), t.currentTime = 0;
521
537
  };
522
- t.addEventListener("seeked", a), t.currentTime = r;
538
+ t.addEventListener("seeked", s), t.currentTime = r;
523
539
  } else {
524
- const a = () => {
525
- t.removeEventListener("seeked", a), s();
540
+ const s = () => {
541
+ t.removeEventListener("seeked", s), a();
526
542
  };
527
- t.addEventListener("seeked", a), t.currentTime = e;
543
+ t.addEventListener("seeked", s), t.currentTime = e;
528
544
  }
529
545
  });
530
546
  }
531
- async function* wt({
547
+ async function* yt({
532
548
  cache: t,
533
549
  canvas: e,
534
550
  duration: r,
535
- maxInterval: s,
536
- src: a,
551
+ maxInterval: a,
552
+ src: s,
537
553
  video: o
538
554
  }) {
539
555
  if (!e)
540
556
  throw new Error("Canvas is required");
541
557
  if (!o)
542
558
  throw new Error("Video is required");
543
- const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: _ } = e;
559
+ const { columns: i, frameHeight: l, frameWidth: p, rows: m, spriteCtx: k } = e;
544
560
  try {
545
- for (let g = 0; g < f; g++)
561
+ for (let g = 0; g < m; g++)
546
562
  for (let d = 0; d < i; d++) {
547
- const T = g * i + d, D = T * s;
563
+ const T = g * i + d, D = T * a;
548
564
  if (D >= r)
549
565
  continue;
550
- const S = d * p, w = g * l, M = H(t[a] ?? [], d, g), C = d === i - 1 && g === f - 1 || D + s >= r;
551
- M ? yield { ...M, isLastFrame: C } : (await B(o, D, s), _.drawImage(
566
+ const S = d * p, w = g * l, M = G(t[s] ?? [], d, g), y = d === i - 1 && g === m - 1 || D + a >= r;
567
+ M ? yield { ...M, isLastFrame: y } : (await $(o, D, a), k.drawImage(
552
568
  o,
553
569
  S,
554
570
  w,
@@ -560,10 +576,10 @@ async function* wt({
560
576
  frameHeight: l,
561
577
  frameWidth: p,
562
578
  index: T,
563
- isLastFrame: C,
579
+ isLastFrame: y,
564
580
  row: g,
565
- rows: f,
566
- time: Number(D.toFixed(X)),
581
+ rows: m,
582
+ time: Number(D.toFixed(B)),
567
583
  x: S,
568
584
  y: w
569
585
  }), await new Promise(requestAnimationFrame);
@@ -571,235 +587,239 @@ async function* wt({
571
587
  } catch {
572
588
  }
573
589
  }
574
- function Mt({
590
+ function Ct({
575
591
  duration: t,
576
592
  frameWidth: e,
577
593
  playbackSpeed: r,
578
- scale: s
594
+ scale: a
579
595
  }) {
580
- let a = e * r / s;
581
- return a > t && (a = t / 2), a;
596
+ let s = e * r / a;
597
+ return s > t && (s = t / 2), s;
582
598
  }
583
599
  export {
584
- Zr as AUTO_FALLBACK_FORMAT,
585
- jr as AUTO_FORMAT_EXTENSION,
586
- Jr as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
600
+ Jr as AUTO_FALLBACK_FORMAT,
601
+ Kr as AUTO_FORMAT_EXTENSION,
602
+ ta as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
587
603
  le as CMYK_VALIDATION_REGEX,
588
- _r as CalendarGrid,
604
+ Ur as CalendarGrid,
589
605
  ce as ColorType,
590
- rt as CortexPopupController,
591
- Q as DateRangePresets,
592
- at as DragScroll,
593
- Be as FormControlController,
606
+ st as CortexPopupController,
607
+ Z as DateRangePresets,
608
+ ot as DragScroll,
609
+ $e as FormControlController,
594
610
  ue as HEX_ALPHA_VALIDATION_REGEX,
595
- me as HEX_VALIDATION_REGEX,
596
- Ar as HasSlotController,
597
- ft as HistoryManager,
598
- W as KeyboardKey,
599
- Ze as LocalizeController,
600
- ma as MIN_GRADIENT_STOPS,
601
- X as PRECISION,
602
- At as RELATIVE_URL_REGEX,
603
- fe as RGB_VALIDATION_REGEX,
604
- Kr as SRCSET_WIDTH_LADDER,
605
- xt as URL_DOMAIN_VALIDATION_REGEX,
606
- Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
607
- It as URL_PROTOCOL_VALIDATION_REGEX,
608
- Lt as URL_VALIDATION_REGEX,
609
- Ce as activeElements,
610
- Ur as addMonths,
611
- Ut as adjustRelativeValues,
612
- xe as animateTo,
613
- k as appendProtocol,
614
- Ft as appendQueryParam,
615
- ta as applyTransformationsToUrl,
616
- ea as applyWidthToAssetUrl,
617
- ra as buildAssetSrcset,
618
- aa as buildSizesFromDisplayWidth,
619
- sa as buildTransformationString,
620
- Oa as buildWaveformPath,
621
- Ma as calculateAspectRatioFit,
622
- Ke as clamp,
623
- Ca as cleanImageFileName,
624
- ws as clearZeroDurationParts,
611
+ fe as HEX_VALIDATION_REGEX,
612
+ Er as HasSlotController,
613
+ gt as HistoryManager,
614
+ H as KeyboardKey,
615
+ Je as LocalizeController,
616
+ ga as MIN_GRADIENT_STOPS,
617
+ B as PRECISION,
618
+ Et as RELATIVE_URL_REGEX,
619
+ me as RGB_VALIDATION_REGEX,
620
+ ea as SRCSET_WIDTH_LADDER,
621
+ It as URL_DOMAIN_VALIDATION_REGEX,
622
+ Lt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
623
+ Ft as URL_PROTOCOL_VALIDATION_REGEX,
624
+ Rt as URL_VALIDATION_REGEX,
625
+ xe as activeElements,
626
+ Yr as addMonths,
627
+ Yt as adjustRelativeValues,
628
+ Ie as animateTo,
629
+ U as appendProtocol,
630
+ Ot as appendQueryParam,
631
+ ra as applyTransformationsToUrl,
632
+ aa as applyWidthToAssetUrl,
633
+ sa as buildAssetSrcset,
634
+ oa as buildSizesFromDisplayWidth,
635
+ na as buildTransformationString,
636
+ Va as buildWaveformPath,
637
+ xa as calculateAspectRatioFit,
638
+ er as clamp,
639
+ Aa as cleanImageFileName,
640
+ Es as clearZeroDurationParts,
625
641
  he as convertColor,
626
- Va as convertDataUnits,
627
- _a as convertDurationToMilliseconds,
628
- ka as convertPixelsToAspectRatio,
629
- ya as convertSrcToBlob,
630
- fa as createStopId,
631
- Aa as cropImage,
632
- cr as cssValueToPx,
633
- Ve as customElement,
634
- Ge as customErrorValidityState,
635
- ke as debounce,
636
- Ne as defaultValue,
637
- et as downloadAsset,
638
- Pe as drag,
639
- $a as emptyToSpace,
640
- za as escapeXML,
642
+ Ua as convertDataUnits,
643
+ Na as convertDurationToMilliseconds,
644
+ Ya as convertPixelsToAspectRatio,
645
+ Ea as convertSrcToBlob,
646
+ da as createStopId,
647
+ Ia as cropImage,
648
+ fr as cssValueToPx,
649
+ ke as customElement,
650
+ ze as customErrorValidityState,
651
+ Ne as debounce,
652
+ Pe as defaultValue,
653
+ at as downloadAsset,
654
+ Xe as drag,
655
+ Ja as emptyToSpace,
656
+ Ka as escapeXML,
641
657
  ge as extractColor,
642
- qa as extractExtension,
643
- wt as extractFrames,
644
- Qa as extractRootData,
645
- Ua as extractValueAndUnit,
646
- ba as extractWaveformPeaks,
647
- oa as fetchCortexApi,
648
- jt as findAncestorWithBuggyStyle,
658
+ ts as extractExtension,
659
+ yt as extractFrames,
660
+ es as extractRootData,
661
+ Pa as extractValueAndUnit,
662
+ _a as extractWaveformPeaks,
663
+ ia as fetchCortexApi,
664
+ Zt as findAncestorWithBuggyStyle,
649
665
  Jt as findContainingBlock,
650
666
  Kt as findCuttingAncestor,
651
- H as findFrameByColAndRow,
652
- Nt as findIndexByProp,
653
- Xe as focusWhenVisible,
654
- U as formCollections,
655
- Na as formatAspectRatioString,
656
- Ms as formatDurationPartsManually,
657
- Nr as formatIsoToDisplay,
658
- Yr as formatMonthYearLabel,
659
- Ya as formatNumberWithGrouping,
660
- Za as formatSecondsToTime,
661
- ja as formatTimeToSeconds,
662
- Cs as formatWithIntlDurationFormat,
663
- Pa as gcd,
664
- ur as getActiveElement,
665
- rr as getActiveModals,
666
- $e as getAssociatedForm,
667
- mr as getAttributes,
668
- Ja as getAttributesString,
669
- Yt as getBreakpointsFromCSS,
670
- ct as getBrowserFontVariants,
671
- de as getColorType,
672
- xa as getContainedImageSize,
673
- fr as getCortexPopupLayer,
674
- y as getCurrentZIndex,
675
- Pr as getDateMask,
676
- ye as getDeepestActiveElement,
677
- Pt as getDeviceType,
678
- ys as getDurationPartsByUnitsFormat,
679
- hr as getElementFromHTMLString,
680
- gr as getElementFromTemplate,
681
- Wr as getFirstDayOfWeek,
682
- nt as getFontFamilyOptionValue,
683
- P as getFormControls,
684
- Ds as getHighlightedTitle,
685
- Ts as getHighlightedTitleHtml,
686
- xr as getInnerHTML,
687
- Mt as getInterval,
688
- pe as getLightDarkCssString,
689
- Ea as getNaturalWidthHeight,
690
- dr as getNeededPaddingForBoxShadow,
667
+ G as findFrameByColAndRow,
668
+ Pt as findIndexByProp,
669
+ Be as focusWhenVisible,
670
+ N as formCollections,
671
+ Wa as formatAspectRatioString,
672
+ de as formatColorCodeSeparator,
673
+ Is as formatDurationPartsManually,
674
+ pe as formatHexCode,
675
+ Pr as formatIsoToDisplay,
676
+ Wr as formatMonthYearLabel,
677
+ Xa as formatNumberWithGrouping,
678
+ rs as formatSecondsToTime,
679
+ as as formatTimeToSeconds,
680
+ Ls as formatWithIntlDurationFormat,
681
+ Ha as gcd,
682
+ mr as getActiveElement,
683
+ sr as getActiveModals,
684
+ qe as getAssociatedForm,
685
+ hr as getAttributes,
686
+ ss as getAttributesString,
687
+ Qa as getBreakpointsFromCSS,
688
+ ut as getBrowserFontVariants,
689
+ De as getColorType,
690
+ La as getContainedImageSize,
691
+ gr as getCortexPopupLayer,
692
+ C as getCurrentZIndex,
693
+ Xr as getDateMask,
694
+ Ae as getDeepestActiveElement,
695
+ ja as getDeviceType,
696
+ Fs as getDurationPartsByUnitsFormat,
697
+ dr as getElementFromHTMLString,
698
+ pr as getElementFromTemplate,
699
+ Hr as getFirstDayOfWeek,
700
+ lt as getFontFamilyOptionValue,
701
+ ft as getFontFamilyVariants,
702
+ X as getFormControls,
703
+ Cs as getHighlightedTitle,
704
+ xs as getHighlightedTitleHtml,
705
+ Ir as getInnerHTML,
706
+ Ct as getInterval,
707
+ Te as getLightDarkCssString,
708
+ Fa as getNaturalWidthHeight,
709
+ Dr as getNeededPaddingForBoxShadow,
691
710
  te as getNextAncestor,
692
- sr as getOffset,
693
- pr as getRelativeClickPercentage,
694
- Ka as getRootIDString,
695
- Lr as getTabbableBoundary,
696
- Fr as getTabbableElements,
697
- Er as getTextContent,
698
- Xr as getTodayIsoDate,
699
- ot as getTypefaceOptionValue,
711
+ nr as getOffset,
712
+ Tr as getRelativeClickPercentage,
713
+ os as getRootIDString,
714
+ Rr as getTabbableBoundary,
715
+ Or as getTabbableElements,
716
+ Lr as getTextContent,
717
+ Br as getTodayIsoDate,
718
+ it as getTypefaceOptionValue,
700
719
  Wt as groupBy,
701
- na as hasTransformSegment,
702
- ts as htmlToPlainText,
720
+ la as hasTransformSegment,
721
+ ns as htmlToPlainText,
703
722
  Xt as insertAtIndex,
704
- St as insertFrameToCache,
723
+ Mt as insertFrameToCache,
705
724
  Ht as insertMultipleAtIndex,
706
- ha as interpolateStopColor,
725
+ pa as interpolateStopColor,
707
726
  ee as isChrome,
708
- Or as isCortexAdobePlugin,
709
- Dr as isDomElement,
710
- Tr as isElementInHorizontalView,
711
- Rt as isExpiredAssetUrl,
727
+ br as isCortexAdobePlugin,
728
+ Sr as isDomElement,
729
+ wr as isElementInHorizontalView,
730
+ vt as isExpiredAssetUrl,
712
731
  re as isFirefox,
713
- lt as isFontFamilyAvailable,
714
- mt as isFormInteracted,
715
- es as isGalleryItemCardType,
716
- ga as isGradientString,
732
+ ct as isFontFamilyAvailable,
733
+ ht as isFormInteracted,
734
+ is as isGalleryItemCardType,
735
+ Da as isGradientString,
717
736
  ae as isIOS,
718
- Sr as isInElement,
719
- st as isModKey,
737
+ Mr as isInElement,
738
+ nt as isModKey,
720
739
  se as isSafari,
721
- Ia as isSaveSrcValid,
722
- Ot as isValidDomainOrIntranetUrl,
723
- Hr as isValidIsoDate,
724
- bt as isValidUrl,
725
- Br as isoToDate,
726
- Z as isoWeekNumber,
727
- wr as loadScript,
728
- or as lockBodyScrolling,
729
- De as luminanceTextColor,
740
+ Ra as isSaveSrcValid,
741
+ bt as isValidDomainOrIntranetUrl,
742
+ Gr as isValidIsoDate,
743
+ Vt as isValidUrl,
744
+ $r as isoToDate,
745
+ J as isoWeekNumber,
746
+ yr as loadScript,
747
+ ir as lockBodyScrolling,
748
+ Se as luminanceTextColor,
730
749
  Bt as moveMultipleToIndex,
731
750
  Gt as moveToIndex,
732
751
  $t as multiSelectTo,
733
- da as normalizeAngle,
734
- Gr as normalizeToIsoDate,
735
- ht as omit,
736
- j as openAssetOverview,
737
- J as openFolderOverview,
738
- K as openLink,
739
- rs as padPath,
740
- as as parseBooleanString,
741
- Te as parseBorder,
742
- $r as parseDisplayToIso,
743
- Ee as parseDuration,
744
- ia as parseFileSizeToBytes,
745
- pa as parseGradient,
746
- zr as parseIsoDate,
747
- dt as parseJsonString,
748
- Se as parseLightDark,
749
- pt as parseListString,
750
- we as parseShadow,
751
- gt as pick,
752
+ Ta as normalizeAngle,
753
+ zr as normalizeToIsoDate,
754
+ dt as omit,
755
+ K as openAssetOverview,
756
+ tt as openFolderOverview,
757
+ et as openLink,
758
+ ls as padPath,
759
+ cs as parseBooleanString,
760
+ we as parseBorder,
761
+ qr as parseDisplayToIso,
762
+ Le as parseDuration,
763
+ ca as parseFileSizeToBytes,
764
+ Sa as parseGradient,
765
+ Qr as parseIsoDate,
766
+ Dt as parseJsonString,
767
+ Me as parseLightDark,
768
+ Tt as parseListString,
769
+ ye as parseShadow,
770
+ ua as parseTransformations,
771
+ pt as pick,
752
772
  oe as popoverSupported,
753
- Ie as prefersReducedMotion,
754
- tr as quantizeLargestRemainder,
755
- N as quoteFontFamily,
756
- Dt as readLocalStorageValue,
757
- Mr as readSearchConsistency,
758
- ss as reducePathToDirectChild,
759
- je as registerTranslation,
773
+ Fe as prefersReducedMotion,
774
+ rr as quantizeLargestRemainder,
775
+ Y as quoteFontFamily,
776
+ St as readLocalStorageValue,
777
+ Cr as readSearchConsistency,
778
+ us as reducePathToDirectChild,
779
+ Ke as registerTranslation,
760
780
  zt as removeAtIndex,
761
781
  qt as removeMultipleAtIndex,
762
- La as resizeImage,
763
- la as resolveAutoFormat,
764
- ca as resolveAutoMaxWidth,
765
- vt as resolveSpaceUrl,
766
- Wa as rotateBox,
767
- Fa as rotateImage,
768
- os as safeExtension,
769
- ns as safeString,
770
- is as sanitizeHTML,
771
- Xa as sanitizeRotation,
772
- nr as scrollIntoView,
773
- ut as serialize,
774
- Da as serializeGradient,
775
- tt as shareAsset,
776
- Le as shimKeyframesHeightAuto,
777
- Cr as sortByTopPosition,
778
- Ta as sortStops,
779
- Y as sortTypefaceVariants,
780
- Ba as splitBoxValues,
781
- ls as splitCamelCaseFormatted,
782
- Sa as splitTopLevel,
783
- Fe as stopAnimations,
782
+ Oa as resizeImage,
783
+ fa as resolveAutoFormat,
784
+ ma as resolveAutoMaxWidth,
785
+ _t as resolveSpaceUrl,
786
+ Ba as rotateBox,
787
+ va as rotateImage,
788
+ fs as safeExtension,
789
+ ms as safeString,
790
+ hs as sanitizeHTML,
791
+ Ga as sanitizeRotation,
792
+ lr as scrollIntoView,
793
+ mt as serialize,
794
+ wa as serializeGradient,
795
+ rt as shareAsset,
796
+ Re as shimKeyframesHeightAuto,
797
+ xr as sortByTopPosition,
798
+ Ma as sortStops,
799
+ _ as sortTypefaceVariants,
800
+ za as splitBoxValues,
801
+ gs as splitCamelCaseFormatted,
802
+ ya as splitTopLevel,
803
+ Oe as stopAnimations,
784
804
  ne as supportHLS,
785
805
  V as testFontAvailability,
786
- be as timecodeConverter,
787
- cs as toCamelCase,
788
- qr as toIsoDate,
789
- us as toKebabCase,
790
- ms as toPascalCase,
791
- Vt as toRelativeUrl,
792
- fs as toTitleCase,
793
- _t as toUrlPathKey,
806
+ Ve as timecodeConverter,
807
+ ds as toCamelCase,
808
+ jr as toIsoDate,
809
+ ps as toKebabCase,
810
+ Ds as toPascalCase,
811
+ kt as toRelativeUrl,
812
+ Ts as toTitleCase,
813
+ Ut as toUrlPathKey,
794
814
  Qt as toast,
795
- hs as truncateTextMiddle,
796
- gs as unescapeXML,
797
- ir as unlockBodyScrolling,
798
- it as unquoteFontFamily,
799
- ds as upperFirst,
800
- ze as validValidityState,
801
- qe as valueMissingValidityState,
802
- Re as waitForEvent,
803
- vr as watch,
804
- Tt as writeLocalStorageValue
815
+ Ss as truncateTextMiddle,
816
+ ws as unescapeXML,
817
+ cr as unlockBodyScrolling,
818
+ P as unquoteFontFamily,
819
+ Ms as upperFirst,
820
+ Qe as validValidityState,
821
+ je as valueMissingValidityState,
822
+ ve as waitForEvent,
823
+ _r as watch,
824
+ wt as writeLocalStorageValue
805
825
  };