@orangelogic/design-system 2.141.0 → 2.143.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 (227) hide show
  1. package/library/chunks/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
  4. package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
  5. package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
  7. package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
  8. package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
  9. package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
  10. package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
  11. package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
  12. package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
  13. package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
  14. package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
  15. package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
  16. package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
  17. package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
  18. package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
  19. package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
  20. package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
  21. package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
  22. package/library/chunks/_baseXor.DY_sP7af.js +116 -0
  23. package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
  24. package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
  25. package/library/chunks/{asset-link-format.BDuHqEN5.js → asset-link-format.BVoE-GrD.js} +246 -222
  26. package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
  27. package/library/chunks/button.styles.CATjjP1T.js +5 -0
  28. package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
  29. package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
  30. package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
  31. package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
  32. package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
  33. package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
  34. package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
  35. package/library/chunks/dialog.0TzzxNXE.js +1820 -0
  36. package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.Bb1M9uJ-.js} +9 -9
  37. package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
  38. package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.Bn_YviaU.js} +89 -88
  39. package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
  40. package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
  41. package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.5f4e8jqB.js} +7 -7
  42. package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
  43. package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
  44. package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
  45. package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
  46. package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
  47. package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
  48. package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
  49. package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
  50. package/library/chunks/{image.u2nQNoZ8.js → image.C2acLx6g.js} +4 -4
  51. package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
  52. package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
  53. package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
  54. package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
  55. package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
  56. package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
  57. package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
  58. package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
  59. package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
  60. package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
  61. package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
  62. package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
  63. package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
  64. package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
  65. package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
  66. package/library/chunks/typography.IqHbnd3C.js +52 -0
  67. package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
  68. package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
  69. package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
  70. package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
  71. package/library/components/alert.js +3 -3
  72. package/library/components/am-chart.js +2 -2
  73. package/library/components/animated-image.js +2 -2
  74. package/library/components/animation.js +2 -2
  75. package/library/components/array-line-clamp.js +1 -1
  76. package/library/components/asset-link-format.js +5 -5
  77. package/library/components/atoms.js +21 -21
  78. package/library/components/audio.js +4 -4
  79. package/library/components/avatar.js +2 -2
  80. package/library/components/border-input-group.js +2 -2
  81. package/library/components/breadcrumb-item.js +1 -1
  82. package/library/components/breadcrumb.js +2 -2
  83. package/library/components/button.js +5 -5
  84. package/library/components/checkbox.js +3 -3
  85. package/library/components/color-picker.js +79 -72
  86. package/library/components/color-swatch-group.js +7 -7
  87. package/library/components/color-swatch.js +4 -4
  88. package/library/components/confirm-popover.js +5 -5
  89. package/library/components/copy-button.js +3 -3
  90. package/library/components/corner-position-input-group.js +3 -3
  91. package/library/components/date-calendar.js +1 -1
  92. package/library/components/details.js +32 -32
  93. package/library/components/dialog.js +5 -6
  94. package/library/components/diff.js +1 -1
  95. package/library/components/divider.js +1 -1
  96. package/library/components/document-viewer.js +5 -5
  97. package/library/components/dot-pagination.js +3 -3
  98. package/library/components/drawer.js +4 -4
  99. package/library/components/dropdown.js +3 -3
  100. package/library/components/dynamic-select.js +7 -7
  101. package/library/components/e-chart.js +2 -2
  102. package/library/components/element-clamp.js +3 -3
  103. package/library/components/file-on-demand.js +1872 -36
  104. package/library/components/folder-select.js +7 -7
  105. package/library/components/format-bytes.js +1 -1
  106. package/library/components/format-date.js +1 -1
  107. package/library/components/format-number.js +1 -1
  108. package/library/components/format-time.js +2 -2
  109. package/library/components/grid-item.js +1 -1
  110. package/library/components/header.js +3 -3
  111. package/library/components/hub-connection.js +2 -2
  112. package/library/components/icon-button.js +3 -3
  113. package/library/components/icon.js +2 -2
  114. package/library/components/iframe.js +3 -3
  115. package/library/components/image-comparer.js +3 -3
  116. package/library/components/image.js +4 -4
  117. package/library/components/include.js +1 -1
  118. package/library/components/input.js +4 -4
  119. package/library/components/line-clamp.js +1 -1
  120. package/library/components/markdown.js +1 -1
  121. package/library/components/masonry.js +3 -3
  122. package/library/components/menu-item.js +3 -3
  123. package/library/components/menu.js +1 -1
  124. package/library/components/molecules.js +3 -3
  125. package/library/components/mutation-observer.js +1 -1
  126. package/library/components/option.js +4 -4
  127. package/library/components/organisms.js +6 -6
  128. package/library/components/padding-input-group.js +1 -1
  129. package/library/components/pagination.js +8 -8
  130. package/library/components/popup.js +1 -1
  131. package/library/components/position-picker.js +1 -1
  132. package/library/components/progress-bar.js +1 -1
  133. package/library/components/progress-ring.js +1 -1
  134. package/library/components/qr-code.js +1 -1
  135. package/library/components/radio-button.js +2 -2
  136. package/library/components/radio-card.js +1 -1
  137. package/library/components/radio-group.js +1 -1
  138. package/library/components/radio.js +2 -2
  139. package/library/components/range.js +2 -2
  140. package/library/components/rating.js +3 -3
  141. package/library/components/relative-time.js +1 -1
  142. package/library/components/resize-observer.js +1 -1
  143. package/library/components/select.js +5 -5
  144. package/library/components/shadow-input-group.js +1 -1
  145. package/library/components/share-option-list.js +4 -4
  146. package/library/components/sidebar.js +3 -3
  147. package/library/components/size-input-group.js +4 -4
  148. package/library/components/spinner.js +1 -1
  149. package/library/components/split-panel.js +2 -2
  150. package/library/components/step.js +1 -1
  151. package/library/components/stepper-wizard.js +1 -1
  152. package/library/components/stepper.js +1 -1
  153. package/library/components/switch.js +1 -1
  154. package/library/components/tab-group.js +5 -5
  155. package/library/components/tab-panel.js +1 -1
  156. package/library/components/tab.js +6 -6
  157. package/library/components/tag.js +2 -2
  158. package/library/components/textarea.js +1 -1
  159. package/library/components/timecode.js +2 -2
  160. package/library/components/tooltip.js +2 -2
  161. package/library/components/tree-item.js +5 -5
  162. package/library/components/tree.js +3 -3
  163. package/library/components/typeface.js +4 -4
  164. package/library/components/types.js +27465 -27792
  165. package/library/components/typography.js +1 -1
  166. package/library/components/video.js +3 -3
  167. package/library/package.json +1 -1
  168. package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
  169. package/library/packages/atoms/src/components/header/header.d.ts +1 -1
  170. package/library/packages/events/src/cx-board-change.d.ts +12 -0
  171. package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
  172. package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
  173. package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
  174. package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
  175. package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
  176. package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
  177. package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
  178. package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
  179. package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
  180. package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
  181. package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
  182. package/library/packages/events/src/events.d.ts +12 -0
  183. package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
  184. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
  185. package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
  186. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
  187. package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
  188. package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
  189. package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
  190. package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
  191. package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
  192. package/library/packages/molecules/src/index.d.ts +1 -0
  193. package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
  194. package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
  195. package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
  196. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
  197. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
  198. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
  199. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
  200. package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
  201. package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
  202. package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
  203. package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
  204. package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
  205. package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
  206. package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
  207. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +5 -2
  208. package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
  209. package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
  210. package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
  211. package/library/packages/services/src/api/asset/asset.d.ts +2 -1
  212. package/library/packages/services/src/api/endpoints.d.ts +4 -0
  213. package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
  214. package/library/packages/types/src/content-builder.d.ts +14 -1
  215. package/library/packages/types/src/font-picker.d.ts +21 -0
  216. package/library/packages/types/src/table-column-editor.d.ts +12 -0
  217. package/library/packages/types/src/table.d.ts +5 -0
  218. package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
  219. package/library/packages/utils/src/font/font.d.ts +16 -0
  220. package/library/react-web-component.d.ts +71 -5
  221. package/library/utils.js +258 -242
  222. package/package.json +1 -1
  223. package/library/chunks/button.styles.Cz4EELcL.js +0 -5
  224. package/library/chunks/dialog.C79Kd2S4.js +0 -379
  225. package/library/chunks/file-on-demand.Bxq3-Dk1.js +0 -1985
  226. package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
  227. package/library/chunks/typography.DJC_UXgs.js +0 -52
@@ -0,0 +1,1820 @@
1
+ import { n as _t, C as hr } from "./lib-cortex-element.CVMmyPMC.js";
2
+ import { c as vr } from "./component.styles.CRO4Odto.js";
3
+ import { i as _s, x as He, E as fr } from "./lit-element.jLBm65_O.js";
4
+ import { a as ie, s as Te, w as os } from "./event.BeKOsirN.js";
5
+ import { c as br } from "./custom-element.L4WJXn1j.js";
6
+ import { L as yr } from "./i18n.C4wPyPTR.js";
7
+ import { M as gr } from "./modal.U1QltQKe.js";
8
+ import { l as ss, u as rs } from "./scroll.xtO5yojm.js";
9
+ import { H as mr } from "./slot.j5oheLJC.js";
10
+ import { w as $s } from "./watch.CkGTlwIo.js";
11
+ import { r as Do } from "./state.CSDxrqLd.js";
12
+ import { e as Eo } from "./query.BBf1UFkC.js";
13
+ import { e as co } from "./class-map.BiVq-cVR.js";
14
+ import { o as ns } from "./if-defined.BRoBj_Rp.js";
15
+ import { o as wr } from "./style-map.llVFPd__.js";
16
+ import { n as lo } from "./when.Dr1es41R.js";
17
+ import { s as be, g as ae } from "./animation-registry.HmpwNuGH.js";
18
+ import xr from "../components/divider.js";
19
+ import { C as Sr } from "./icon-button.Ce2tPGuf.js";
20
+ import zr from "../components/popup.js";
21
+ const Cr = _s`.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;visibility:hidden;box-sizing:border-box;overflow:hidden;scroll-behavior:auto!important}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;top:0;left:0}.os-size-observer{z-index:-1;contain:strict;padding:inherit;border:inherit;box-sizing:inherit;flex-flow:row;margin:-133px;display:flex;inset:0;transform:scale(.1)}.os-size-observer:before{content:"";box-sizing:inherit;flex:none;width:10px;height:10px;padding:10px}.os-size-observer-appear{animation:1ms forwards os-size-observer-appear-animation}.os-size-observer-listener{box-sizing:border-box;padding:inherit;border:inherit;flex:auto;margin:-133px;position:relative;transform:scale(10)}.os-size-observer-listener.ltr{margin-left:0;margin-right:-266px}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{padding:inherit;border:inherit;box-sizing:content-box;flex:auto;display:block;position:relative}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{direction:ltr;flex:none;bottom:0;right:0;overflow:hidden}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{box-sizing:border-box;z-index:-1;contain:strict;border:none;flex:none;max-width:0;height:0;max-height:1px;margin:0;padding:0;position:relative;top:calc(100% + 1px);overflow:hidden}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;min-width:1px;height:1000%;min-height:1px}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport]),[data-overlayscrollbars-viewport~=scrollbarHidden]{scrollbar-width:none!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar,[data-overlayscrollbars-initialize]:not([data-overlayscrollbars-viewport])::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner{-webkit-appearance:none!important;appearance:none!important;width:0!important;height:0!important;display:none!important}[data-overlayscrollbars-initialize]:not([data-overlayscrollbars]):not(html):not(body){overflow:auto}html[data-overlayscrollbars-body]{overflow:hidden}html[data-overlayscrollbars-body],html[data-overlayscrollbars-body]>body{width:100%;height:100%;margin:0}html[data-overlayscrollbars-body]>body{margin:0;overflow:visible}[data-overlayscrollbars]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;scroll-behavior:auto!important;flex-flow:row!important;align-items:stretch!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){box-sizing:inherit;z-index:0;border:none;flex:auto;width:100%;min-width:0;height:auto;margin:0;padding:0;position:relative}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]){--os-vaw:0;--os-vah:0;outline:none}[data-overlayscrollbars-viewport]:not([data-overlayscrollbars]):focus{outline:none}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah);position:absolute}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{overflow:hidden!important}[data-overlayscrollbars~=host][data-overlayscrollbars~=noClipping],[data-overlayscrollbars-padding~=noClipping]{overflow:visible!important}[data-overlayscrollbars-viewport]{--os-viewport-overflow-x:hidden;--os-viewport-overflow-y:hidden;overflow-x:var(--os-viewport-overflow-x);overflow-y:var(--os-viewport-overflow-y)}[data-overlayscrollbars-viewport~=overflowXVisible]{--os-viewport-overflow-x:visible}[data-overlayscrollbars-viewport~=overflowXHidden]{--os-viewport-overflow-x:hidden}[data-overlayscrollbars-viewport~=overflowXScroll]{--os-viewport-overflow-x:scroll}[data-overlayscrollbars-viewport~=overflowYVisible]{--os-viewport-overflow-y:visible}[data-overlayscrollbars-viewport~=overflowYHidden]{--os-viewport-overflow-y:hidden}[data-overlayscrollbars-viewport~=overflowYScroll]{--os-viewport-overflow-y:scroll}[data-overlayscrollbars-viewport~=overflowImportant]{overflow-x:var(--os-viewport-overflow-x)!important;overflow-y:var(--os-viewport-overflow-y)!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId){font-size:0!important;line-height:0!important}[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):before,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId):after,[data-overlayscrollbars-viewport~=noContent]:not(#osFakeId)>*{clip:rect(0, 0, 0, 0)!important;white-space:nowrap!important;border-width:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;display:none!important;position:absolute!important;overflow:hidden!important}[data-overlayscrollbars-viewport~=measuring],[data-overlayscrollbars-viewport~=scrolling]{scroll-behavior:auto!important;scroll-snap-type:none!important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowXVisible]{overflow-x:hidden!important}[data-overlayscrollbars-viewport~=measuring][data-overlayscrollbars-viewport~=overflowYVisible]{overflow-y:hidden!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not(#osFakeId):not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{grid-template:1fr/1fr;display:grid}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{width:auto!important;height:auto!important}@property --os-scroll-percent{syntax:"<number>";inherits:true;initial-value:0}@property --os-viewport-percent{syntax:"<number>";inherits:true;initial-value:0}.os-scrollbar{--os-viewport-percent:0;--os-scroll-percent:0;--os-scroll-direction:0;--os-scroll-percent-directional:calc(var(--os-scroll-percent) - (var(--os-scroll-percent) + (1 - var(--os-scroll-percent)) * -1) * var(--os-scroll-direction));contain:size layout;contain:size layout style;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;position:absolute}body>.os-scrollbar{z-index:99999;position:fixed}.os-scrollbar-transitionless{transition:none!important}.os-scrollbar-track{position:relative;border:none!important;padding:0!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{left:0;right:auto}.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important;transition:none!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0;left:calc(var(--os-scroll-percent-directional) * 100%);transform:translateX(calc(var(--os-scroll-percent-directional) * -100%));width:calc(var(--os-viewport-percent) * 100%)}.os-scrollbar-vertical .os-scrollbar-handle{right:0;top:calc(var(--os-scroll-percent-directional) * 100%);transform:translateY(calc(var(--os-scroll-percent-directional) * -100%));height:calc(var(--os-viewport-percent) * 100%)}@supports (container-type:size){.os-scrollbar-track{container-type:size}.os-scrollbar-horizontal .os-scrollbar-handle{transform:translateX(calc(var(--os-scroll-percent-directional) * 100cqw + var(--os-scroll-percent-directional) * -100%));left:auto}.os-scrollbar-vertical .os-scrollbar-handle{transform:translateY(calc(var(--os-scroll-percent-directional) * 100cqh + var(--os-scroll-percent-directional) * -100%));top:auto}.os-scrollbar-rtl.os-scrollbar-horizontal .os-scrollbar-handle{left:0;right:auto}}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{left:0;right:auto}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}@media print{.os-scrollbar{display:none}}.os-scrollbar{--os-size:10px;--os-padding-perpendicular:4px;--os-padding-axis:2px;--os-track-border-radius:10px;--os-track-bg:none;--os-track-bg-hover:none;--os-track-bg-active:none;--os-track-border:none;--os-track-border-hover:none;--os-track-border-active:none;--os-handle-border-radius:13px;--os-handle-bg:var(--cx-color-neutral-400);--os-handle-bg-hover:var(--cx-color-neutral-500);--os-handle-bg-active:var(--cx-color-neutral-500);--os-handle-border:4px solid #0000;--os-handle-border-hover:4px solid #0000;--os-handle-border-active:4px solid #0000;--os-handle-min-size:50px;--os-handle-max-size:none;--os-handle-perpendicular-size:100%;--os-handle-perpendicular-size-hover:100%;--os-handle-perpendicular-size-active:100%;--os-handle-interactive-area-offset:4px}.os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar-handle:hover{background:var(--os-handle-bg-hover);border:var(--os-handle-border-hover)}.os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-track:before,.os-scrollbar-handle:before{content:"";display:block;position:absolute;inset:0}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-track:before{top:calc(var(--os-padding-perpendicular) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-track:before{left:calc(var(--os-padding-perpendicular) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc(( var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset) ) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars-viewport~=measuring]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size:10px;--os-padding-perpendicular:4px;--os-padding-axis:2px;--os-track-border-radius:10px;--os-handle-interactive-area-offset:4px;--os-handle-border-radius:10px}`;
22
+ var jt = /* @__PURE__ */ ((t) => (t.Both = "both", t.Footer = "footer", t.Header = "header", t.None = "none", t))(jt || {});
23
+ /*!
24
+ * OverlayScrollbars
25
+ * Version: 2.11.4
26
+ *
27
+ * Copyright (c) Rene Haas | KingSora.
28
+ * https://github.com/KingSora
29
+ *
30
+ * Released under the MIT license.
31
+ */
32
+ const bt = (t, e) => {
33
+ const { o, i: s, u: r } = t;
34
+ let n = o, i;
35
+ const l = (a, p) => {
36
+ const g = n, m = a, d = p || (s ? !s(g, m) : g !== m);
37
+ return (d || r) && (n = m, i = g), [n, d, i];
38
+ };
39
+ return [e ? (a) => l(e(n, i), a) : l, (a) => [n, !!a, i]];
40
+ }, kr = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, ft = kr ? window : {}, Be = Math.max, Or = Math.min, yo = Math.round, Ve = Math.abs, is = Math.sign, Ke = ft.cancelAnimationFrame, Jt = ft.requestAnimationFrame, Ho = ft.setTimeout, As = ft.clearTimeout, Qe = (t) => typeof ft[t] < "u" ? ft[t] : void 0, _r = Qe("MutationObserver"), as = Qe("IntersectionObserver"), Yt = Qe("ResizeObserver"), ce = Qe("ScrollTimeline"), To = (t) => t === void 0, Ze = (t) => t === null, Tt = (t) => typeof t == "number", ye = (t) => typeof t == "string", Je = (t) => typeof t == "boolean", St = (t) => typeof t == "function", kt = (t) => Array.isArray(t), Ne = (t) => typeof t == "object" && !kt(t) && !Ze(t), Lo = (t) => {
41
+ const e = !!t && t.length, o = Tt(e) && e > -1 && e % 1 == 0;
42
+ return kt(t) || !St(t) && o ? e > 0 && Ne(t) ? e - 1 in t : !0 : !1;
43
+ }, Ue = (t) => !!t && t.constructor === Object, We = (t) => t instanceof HTMLElement, Ge = (t) => t instanceof Element, cs = () => performance.now(), po = (t, e, o, s, r) => {
44
+ let n = 0;
45
+ const i = cs(), l = Be(0, o), c = (u) => {
46
+ const a = cs(), g = a - i >= l, m = u ? 1 : 1 - (Be(0, i + l - a) / l || 0), d = (e - t) * (St(r) ? r(m, m * l, 0, 1, l) : m) + t, _ = g || m === 1;
47
+ s && s(d, m, _), n = _ ? 0 : Jt(() => c());
48
+ };
49
+ return c(), (u) => {
50
+ Ke(n), u && c(u);
51
+ };
52
+ };
53
+ function K(t, e) {
54
+ if (Lo(t))
55
+ for (let o = 0; o < t.length && e(t[o], o, t) !== !1; o++)
56
+ ;
57
+ else t && K(Object.keys(t), (o) => e(t[o], o, t));
58
+ return t;
59
+ }
60
+ const Ds = (t, e) => t.indexOf(e) >= 0, ve = (t, e) => t.concat(e), st = (t, e, o) => (!ye(e) && Lo(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Bt = (t) => Array.from(t || []), Po = (t) => kt(t) ? t : !ye(t) && Lo(t) ? Bt(t) : [t], qe = (t) => !!t && !t.length, go = (t) => Bt(new Set(t)), gt = (t, e, o) => {
61
+ K(t, (r) => r ? r.apply(void 0, e || []) : !0), o || (t.length = 0);
62
+ }, Mo = "paddingTop", le = "paddingRight", de = "paddingLeft", pe = "paddingBottom", ue = "marginLeft", he = "marginRight", Xt = "marginBottom", Io = "overflowX", Ro = "overflowY", te = "width", ge = "height", Ht = "visible", Ct = "hidden", Ft = "scroll", $r = (t) => {
63
+ const e = String(t || "");
64
+ return e ? e[0].toUpperCase() + e.slice(1) : "";
65
+ }, to = (t, e, o, s) => {
66
+ if (t && e) {
67
+ let r = !0;
68
+ return K(o, (n) => {
69
+ const i = t[n], l = e[n];
70
+ i !== l && (r = !1);
71
+ }), r;
72
+ }
73
+ return !1;
74
+ }, Fo = (t, e) => to(t, e, ["w", "h"]), Me = (t, e) => to(t, e, ["x", "y"]), Ar = (t, e) => to(t, e, ["t", "r", "b", "l"]), M = (t, ...e) => t.bind(0, ...e), Nt = (t) => {
75
+ let e;
76
+ const o = t ? Ho : Jt, s = t ? As : Ke;
77
+ return [(r) => {
78
+ s(e), e = o(() => r(), St(t) ? t() : t);
79
+ }, () => s(e)];
80
+ }, ls = (t) => {
81
+ const e = St(t) ? t() : t;
82
+ if (Tt(e)) {
83
+ const o = e ? Ho : Jt, s = e ? As : Ke;
84
+ return (r) => {
85
+ const n = o(() => r(), e);
86
+ return () => {
87
+ s(n);
88
+ };
89
+ };
90
+ }
91
+ return e && e._;
92
+ }, je = (t, e) => {
93
+ const { p: o, v: s, S: r, m: n } = e || {};
94
+ let i, l, c, u, a;
95
+ const p = function($) {
96
+ l && l(), i && i(), a = l = i = c = void 0, t.apply(this, $);
97
+ }, g = (_) => n && c ? n(c, _) : _, m = () => {
98
+ l && p(g(u) || u);
99
+ }, d = function() {
100
+ const $ = Bt(arguments), y = ls(o);
101
+ if (y) {
102
+ const S = ls(s), b = g($) || $, A = p.bind(0, b);
103
+ l && l(), r && !a ? (A(), a = !0, l = y(() => a = void 0)) : (l = y(A), S && !i && (i = S(m))), c = u = b;
104
+ } else
105
+ p($);
106
+ };
107
+ return d.O = m, d;
108
+ }, Es = (t, e) => Object.prototype.hasOwnProperty.call(t, e), xt = (t) => t ? Object.keys(t) : [], q = (t, e, o, s, r, n, i) => {
109
+ const l = [e, o, s, r, n, i];
110
+ return (typeof t != "object" || Ze(t)) && !St(t) && (t = {}), K(l, (c) => {
111
+ K(c, (u, a) => {
112
+ const p = c[a];
113
+ if (t === p)
114
+ return !0;
115
+ const g = kt(p);
116
+ if (p && Ue(p)) {
117
+ const m = t[a];
118
+ let d = m;
119
+ g && !kt(m) ? d = [] : !g && !Ue(m) && (d = {}), t[a] = q(d, p);
120
+ } else
121
+ t[a] = g ? p.slice() : p;
122
+ });
123
+ }), t;
124
+ }, Hs = (t, e) => K(q({}, t), (o, s, r) => {
125
+ o === void 0 ? delete r[s] : o && Ue(o) && (r[s] = Hs(o));
126
+ }), Bo = (t) => !xt(t).length, Wt = () => {
127
+ }, Ts = (t, e, o) => Be(t, Or(e, o)), Ut = (t) => go((kt(t) ? t : (t || "").split(" ")).filter((e) => e)), Vo = (t, e) => t && t.getAttribute(e), ds = (t, e) => t && t.hasAttribute(e), Et = (t, e, o) => {
128
+ K(Ut(e), (s) => {
129
+ t && t.setAttribute(s, String(o || ""));
130
+ });
131
+ }, $t = (t, e) => {
132
+ K(Ut(e), (o) => t && t.removeAttribute(o));
133
+ }, eo = (t, e) => {
134
+ const o = Ut(Vo(t, e)), s = M(Et, t, e), r = (n, i) => {
135
+ const l = new Set(o);
136
+ return K(Ut(n), (c) => {
137
+ l[i](c);
138
+ }), Bt(l).join(" ");
139
+ };
140
+ return {
141
+ $: (n) => s(r(n, "delete")),
142
+ C: (n) => s(r(n, "add")),
143
+ H: (n) => {
144
+ const i = Ut(n);
145
+ return i.reduce((l, c) => l && o.includes(c), i.length > 0);
146
+ }
147
+ };
148
+ }, No = (t, e, o) => (eo(t, e).$(o), M(Uo, t, e, o)), Uo = (t, e, o) => (eo(t, e).C(o), M(No, t, e, o)), Ye = (t, e, o, s) => (s ? Uo : No)(t, e, o), Wo = (t, e, o) => eo(t, e).H(o), Ls = (t) => eo(t, "class"), Ps = (t, e) => {
149
+ Ls(t).$(e);
150
+ }, oo = (t, e) => (Ls(t).C(e), M(Ps, t, e)), Ms = (t, e) => {
151
+ const o = e ? Ge(e) && e : document;
152
+ return o ? Bt(o.querySelectorAll(t)) : [];
153
+ }, Dr = (t, e) => {
154
+ const o = e ? Ge(e) && e : document;
155
+ return o && o.querySelector(t);
156
+ }, mo = (t, e) => Ge(t) && t.matches(e), Is = (t) => mo(t, "body"), wo = (t) => t ? Bt(t.childNodes) : [], fe = (t) => t && t.parentElement, Kt = (t, e) => Ge(t) && t.closest(e), xo = (t) => document.activeElement, Er = (t, e, o) => {
157
+ const s = Kt(t, e), r = t && Dr(o, s), n = Kt(r, e) === s;
158
+ return s && r ? s === t || r === t || n && Kt(Kt(t, o), e) !== s : !1;
159
+ }, Gt = (t) => {
160
+ K(Po(t), (e) => {
161
+ const o = fe(e);
162
+ e && o && o.removeChild(e);
163
+ });
164
+ }, vt = (t, e) => M(Gt, t && e && K(Po(e), (o) => {
165
+ o && t.appendChild(o);
166
+ }));
167
+ let Rs;
168
+ const Hr = () => Rs, Tr = (t) => {
169
+ Rs = t;
170
+ }, Zt = (t) => {
171
+ const e = document.createElement("div");
172
+ return Et(e, "class", t), e;
173
+ }, qo = (t) => {
174
+ const e = Zt(), o = Hr(), s = t.trim();
175
+ return e.innerHTML = o ? o.createHTML(s) : s, K(wo(e), (r) => Gt(r));
176
+ }, ps = (t, e) => t.getPropertyValue(e) || t[e] || "", Fs = (t) => {
177
+ const e = t || 0;
178
+ return isFinite(e) ? e : 0;
179
+ }, Le = (t) => Fs(parseFloat(t || "")), So = (t) => Math.round(t * 1e4) / 1e4, Bs = (t) => `${So(Fs(t))}px`;
180
+ function Lt(t, e) {
181
+ t && e && K(e, (o, s) => {
182
+ try {
183
+ const r = t.style, n = Ze(o) || Je(o) ? "" : Tt(o) ? Bs(o) : o;
184
+ s.indexOf("--") === 0 ? r.setProperty(s, n) : r[s] = n;
185
+ } catch {
186
+ }
187
+ });
188
+ }
189
+ function Ot(t, e, o) {
190
+ const s = ye(e);
191
+ let r = s ? "" : {};
192
+ if (t) {
193
+ const n = ft.getComputedStyle(t, o) || t.style;
194
+ r = s ? ps(n, e) : Bt(e).reduce((i, l) => (i[l] = ps(n, l), i), r);
195
+ }
196
+ return r;
197
+ }
198
+ const us = (t, e, o) => {
199
+ const s = e ? `${e}-` : "", r = o ? `-${o}` : "", n = `${s}top${r}`, i = `${s}right${r}`, l = `${s}bottom${r}`, c = `${s}left${r}`, u = Ot(t, [n, i, l, c]);
200
+ return {
201
+ t: Le(u[n]),
202
+ r: Le(u[i]),
203
+ b: Le(u[l]),
204
+ l: Le(u[c])
205
+ };
206
+ }, uo = (t, e) => `translate${Ne(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Lr = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Pr = {
207
+ w: 0,
208
+ h: 0
209
+ }, so = (t, e) => e ? {
210
+ w: e[`${t}Width`],
211
+ h: e[`${t}Height`]
212
+ } : Pr, Mr = (t) => so("inner", t || ft), It = M(so, "offset"), Vs = M(so, "client"), Xe = M(so, "scroll"), jo = (t) => {
213
+ const e = parseFloat(Ot(t, te)) || 0, o = parseFloat(Ot(t, ge)) || 0;
214
+ return {
215
+ w: e - yo(e),
216
+ h: o - yo(o)
217
+ };
218
+ }, ho = (t) => t.getBoundingClientRect(), Ir = (t) => !!t && Lr(t), zo = (t) => !!(t && (t[ge] || t[te])), Ns = (t, e) => {
219
+ const o = zo(t);
220
+ return !zo(e) && o;
221
+ }, hs = (t, e, o, s) => {
222
+ K(Ut(e), (r) => {
223
+ t && t.removeEventListener(r, o, s);
224
+ });
225
+ }, J = (t, e, o, s) => {
226
+ var r;
227
+ const n = (r = s && s.T) != null ? r : !0, i = s && s.I || !1, l = s && s.A || !1, c = {
228
+ passive: n,
229
+ capture: i
230
+ };
231
+ return M(gt, Ut(e).map((u) => {
232
+ const a = l ? (p) => {
233
+ hs(t, u, a, i), o && o(p);
234
+ } : o;
235
+ return t && t.addEventListener(u, a, c), M(hs, t, u, a, i);
236
+ }));
237
+ }, Yo = (t) => t.stopPropagation(), Co = (t) => t.preventDefault(), Us = (t) => Yo(t) || Co(t), wt = (t, e) => {
238
+ const { x: o, y: s } = Tt(e) ? {
239
+ x: e,
240
+ y: e
241
+ } : e || {};
242
+ Tt(o) && (t.scrollLeft = o), Tt(s) && (t.scrollTop = s);
243
+ }, yt = (t) => ({
244
+ x: t.scrollLeft,
245
+ y: t.scrollTop
246
+ }), Ws = () => ({
247
+ D: {
248
+ x: 0,
249
+ y: 0
250
+ },
251
+ M: {
252
+ x: 0,
253
+ y: 0
254
+ }
255
+ }), Rr = (t, e) => {
256
+ const { D: o, M: s } = t, { w: r, h: n } = e, i = (p, g, m) => {
257
+ let d = is(p) * m, _ = is(g) * m;
258
+ if (d === _) {
259
+ const $ = Ve(p), y = Ve(g);
260
+ _ = $ > y ? 0 : _, d = $ < y ? 0 : d;
261
+ }
262
+ return d = d === _ ? 0 : d, [d + 0, _ + 0];
263
+ }, [l, c] = i(o.x, s.x, r), [u, a] = i(o.y, s.y, n);
264
+ return {
265
+ D: {
266
+ x: l,
267
+ y: u
268
+ },
269
+ M: {
270
+ x: c,
271
+ y: a
272
+ }
273
+ };
274
+ }, vo = ({ D: t, M: e }) => {
275
+ const o = (s, r) => s === 0 && s <= r;
276
+ return {
277
+ x: o(t.x, e.x),
278
+ y: o(t.y, e.y)
279
+ };
280
+ }, vs = ({ D: t, M: e }, o) => {
281
+ const s = (r, n, i) => Ts(0, 1, (r - i) / (r - n) || 0);
282
+ return {
283
+ x: s(t.x, e.x, o.x),
284
+ y: s(t.y, e.y, o.y)
285
+ };
286
+ }, ko = (t) => {
287
+ t && t.focus && t.focus({
288
+ preventScroll: !0
289
+ });
290
+ }, fs = (t, e) => {
291
+ K(Po(e), t);
292
+ }, Oo = (t) => {
293
+ const e = /* @__PURE__ */ new Map(), o = (n, i) => {
294
+ if (n) {
295
+ const l = e.get(n);
296
+ fs((c) => {
297
+ l && l[c ? "delete" : "clear"](c);
298
+ }, i);
299
+ } else
300
+ e.forEach((l) => {
301
+ l.clear();
302
+ }), e.clear();
303
+ }, s = (n, i) => {
304
+ if (ye(n)) {
305
+ const u = e.get(n) || /* @__PURE__ */ new Set();
306
+ return e.set(n, u), fs((a) => {
307
+ St(a) && u.add(a);
308
+ }, i), M(o, n, i);
309
+ }
310
+ Je(i) && i && o();
311
+ const l = xt(n), c = [];
312
+ return K(l, (u) => {
313
+ const a = n[u];
314
+ a && st(c, s(u, a));
315
+ }), M(gt, c);
316
+ }, r = (n, i) => {
317
+ K(Bt(e.get(n)), (l) => {
318
+ i && !qe(i) ? l.apply(0, i) : l();
319
+ });
320
+ };
321
+ return s(t || {}), [s, o, r];
322
+ }, qs = {}, js = {}, Fr = (t) => {
323
+ K(t, (e) => K(e, (o, s) => {
324
+ qs[s] = e[s];
325
+ }));
326
+ }, Ys = (t, e, o) => xt(t).map((s) => {
327
+ const { static: r, instance: n } = t[s], [i, l, c] = o || [], u = o ? n : r;
328
+ if (u) {
329
+ const a = o ? u(i, l, e) : u(e);
330
+ return (c || js)[s] = a;
331
+ }
332
+ }), me = (t) => js[t], Br = "__osOptionsValidationPlugin", ee = "data-overlayscrollbars", Ie = "os-environment", Pe = `${Ie}-scrollbar-hidden`, fo = `${ee}-initialize`, Re = "noClipping", bs = `${ee}-body`, Rt = ee, Vr = "host", At = `${ee}-viewport`, Nr = Io, Ur = Ro, Xs = "arrange", Ks = "measuring", Wr = "scrolling", Qs = "scrollbarHidden", qr = "noContent", _o = `${ee}-padding`, ys = `${ee}-content`, Xo = "os-size-observer", jr = `${Xo}-appear`, Ko = `${Xo}-listener`, Yr = `${Ko}-scroll`, Fe = `${Ko}-item`, gs = `${Fe}-final`, Xr = "os-trinsic-observer", Kr = "os-theme-none", mt = "os-scrollbar", Qr = `${mt}-rtl`, Zr = `${mt}-horizontal`, Jr = `${mt}-vertical`, Zs = `${mt}-track`, Qo = `${mt}-handle`, Gr = `${mt}-visible`, tn = `${mt}-cornerless`, ms = `${mt}-interaction`, ws = `${mt}-unusable`, $o = `${mt}-auto-hide`, xs = `${$o}-hidden`, Ss = `${mt}-wheel`, en = `${Zs}-interactive`, on = `${Qo}-interactive`, Js = "__osSizeObserverPlugin", sn = {
333
+ [Js]: {
334
+ static: () => (t, e, o) => {
335
+ const r = "scroll", n = qo(`<div class="${Fe}" dir="ltr"><div class="${Fe}"><div class="${gs}"></div></div><div class="${Fe}"><div class="${gs}" style="width: 200%; height: 200%"></div></div></div>`), i = n[0], l = i.lastChild, c = i.firstChild, u = c?.firstChild;
336
+ let a = It(i), p = a, g = !1, m;
337
+ const d = () => {
338
+ wt(c, 3333333), wt(l, 3333333);
339
+ }, _ = (S) => {
340
+ m = 0, g && (a = p, e(S === !0));
341
+ }, $ = (S) => {
342
+ p = It(i), g = !S || !Fo(p, a), S ? (Yo(S), g && !m && (Ke(m), m = Jt(_))) : _(S === !1), d();
343
+ }, y = [vt(t, n), J(c, r, $), J(l, r, $)];
344
+ return oo(t, Yr), Lt(u, {
345
+ [te]: 3333333,
346
+ [ge]: 3333333
347
+ }), Jt(d), [o ? M($, !1) : d, y];
348
+ }
349
+ }
350
+ }, Gs = (t, e) => {
351
+ const { k: o } = e, [s, r] = t("showNativeOverlaidScrollbars");
352
+ return [s && o.x && o.y, r];
353
+ }, Qt = (t) => t.indexOf(Ht) === 0, rn = (t) => t.replace(`${Ht}-`, ""), Ao = (t, e) => {
354
+ if (t === "auto")
355
+ return e ? Ft : Ct;
356
+ const o = t || Ct;
357
+ return [Ct, Ft, Ht].includes(o) ? o : Ct;
358
+ }, tr = (t, e) => {
359
+ const { overflowX: o, overflowY: s } = Ot(t, [Io, Ro]);
360
+ return {
361
+ x: Ao(o, e.x),
362
+ y: Ao(s, e.y)
363
+ };
364
+ }, Zo = "__osScrollbarsHidingPlugin", nn = {
365
+ [Zo]: {
366
+ static: () => ({
367
+ R: (t, e, o, s, r) => {
368
+ const { V: n, L: i } = t, { U: l, k: c, P: u } = s, a = !n && !l && (c.x || c.y), [p] = Gs(r, s), g = ($) => {
369
+ const y = l || p ? 0 : 42, S = (H, P, D) => [P && !l ? H ? y : D : 0, H && !!y], [F, b] = S(c.x, $.x === Ft, u.x), [A, E] = S(c.y, $.y === Ft, u.y);
370
+ return {
371
+ N: {
372
+ x: F,
373
+ y: A
374
+ },
375
+ q: {
376
+ x: b,
377
+ y: E
378
+ }
379
+ };
380
+ }, m = ($) => {
381
+ if (!n) {
382
+ const { B: y } = o, S = q({}, {
383
+ [he]: 0,
384
+ [Xt]: 0,
385
+ [ue]: 0
386
+ }), { N: F, q: b } = g($), { x: A, y: E } = b, { x: H, y: P } = F, { F: D } = e, w = y ? ue : he, C = y ? de : le, k = D[w], I = D[Xt], B = D[C], N = D[pe];
387
+ return S[te] = `calc(100% + ${P + k * -1}px)`, S[w] = -P + k, S[Xt] = -H + I, a && (S[C] = B + (E ? P : 0), S[pe] = N + (A ? H : 0)), S;
388
+ }
389
+ };
390
+ return {
391
+ X: ($, y, S) => {
392
+ if (a) {
393
+ const { F } = e, { N: b, q: A } = g($), { x: E, y: H } = A, { x: P, y: D } = b, { B: w } = o, k = F[w ? le : de], I = F.paddingTop, B = y.w + S.w, N = y.h + S.h, W = {
394
+ w: D && H ? `${D + B - k}px` : "",
395
+ h: P && E ? `${P + N - I}px` : ""
396
+ };
397
+ Lt(i, {
398
+ "--os-vaw": W.w,
399
+ "--os-vah": W.h
400
+ });
401
+ }
402
+ return a;
403
+ },
404
+ Y: () => {
405
+ if (a) {
406
+ const { j: $, F: y } = e, S = tr(i, $), { q: F } = g(S), { x: b, y: A } = F, E = {}, H = (w) => K(w, (C) => {
407
+ E[C] = y[C];
408
+ });
409
+ b && H([Xt, Mo, pe]), A && H([ue, he, de, le]);
410
+ const P = Ot(i, xt(E)), D = No(i, At, Xs);
411
+ return Lt(i, E), () => {
412
+ Lt(i, q({}, P, m(S))), D();
413
+ };
414
+ }
415
+ return Wt;
416
+ },
417
+ W: m
418
+ };
419
+ }
420
+ })
421
+ }
422
+ }, er = "__osClickScrollPlugin", an = {
423
+ [er]: {
424
+ static: () => (t, e, o, s) => {
425
+ let r = !1, n = Wt;
426
+ const i = 133, l = 222, [c, u] = Nt(i), a = Math.sign(e), p = o * a, g = p / 2, m = (y) => 1 - (1 - y) * (1 - y), d = (y, S) => po(y, S, l, t, m), _ = (y, S) => po(y, e - p, i * S, (F, b, A) => {
427
+ t(F), A && (n = d(F, e));
428
+ }), $ = po(0, p, l, (y, S, F) => {
429
+ if (t(y), F && (s(r), !r)) {
430
+ const b = e - y;
431
+ Math.sign(b - g) === a && c(() => {
432
+ const E = b - p;
433
+ n = Math.sign(E) === a ? _(y, Math.abs(E) / o) : d(y, e);
434
+ });
435
+ }
436
+ }, m);
437
+ return (y) => {
438
+ r = !0, y && $(), u(), n();
439
+ };
440
+ }
441
+ }
442
+ }, zs = (t) => JSON.stringify(t, (e, o) => {
443
+ if (St(o))
444
+ throw 0;
445
+ return o;
446
+ }), Cs = (t, e) => t ? `${e}`.split(".").reduce((o, s) => o && Es(o, s) ? o[s] : void 0, t) : void 0, cn = {
447
+ paddingAbsolute: !1,
448
+ showNativeOverlaidScrollbars: !1,
449
+ update: {
450
+ elementEvents: [["img", "load"]],
451
+ debounce: [0, 33],
452
+ attributes: null,
453
+ ignoreMutation: null
454
+ },
455
+ overflow: {
456
+ x: "scroll",
457
+ y: "scroll"
458
+ },
459
+ scrollbars: {
460
+ theme: "os-theme-dark",
461
+ visibility: "auto",
462
+ autoHide: "never",
463
+ autoHideDelay: 1300,
464
+ autoHideSuspend: !1,
465
+ dragScroll: !0,
466
+ clickScroll: !1,
467
+ pointers: ["mouse", "touch", "pen"]
468
+ }
469
+ }, or = (t, e) => {
470
+ const o = {}, s = ve(xt(e), xt(t));
471
+ return K(s, (r) => {
472
+ const n = t[r], i = e[r];
473
+ if (Ne(n) && Ne(i))
474
+ q(o[r] = {}, or(n, i)), Bo(o[r]) && delete o[r];
475
+ else if (Es(e, r) && i !== n) {
476
+ let l = !0;
477
+ if (kt(n) || kt(i))
478
+ try {
479
+ zs(n) === zs(i) && (l = !1);
480
+ } catch {
481
+ }
482
+ l && (o[r] = i);
483
+ }
484
+ }), o;
485
+ }, ks = (t, e, o) => (s) => [Cs(t, s), o || Cs(e, s) !== void 0];
486
+ let sr;
487
+ const ln = () => sr, dn = (t) => {
488
+ sr = t;
489
+ };
490
+ let bo;
491
+ const pn = () => {
492
+ const t = (b, A, E) => {
493
+ vt(document.body, b), vt(document.body, b);
494
+ const H = Vs(b), P = It(b), D = jo(A);
495
+ return E && Gt(b), {
496
+ x: P.h - H.h + D.h,
497
+ y: P.w - H.w + D.w
498
+ };
499
+ }, e = (b) => {
500
+ let A = !1;
501
+ const E = oo(b, Pe);
502
+ try {
503
+ A = Ot(b, "scrollbar-width") === "none" || Ot(b, "display", "::-webkit-scrollbar") === "none";
504
+ } catch {
505
+ }
506
+ return E(), A;
507
+ }, o = `.${Ie}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Ie} div{width:200%;height:200%;margin:10px 0}.${Pe}{scrollbar-width:none!important}.${Pe}::-webkit-scrollbar,.${Pe}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, r = qo(`<div class="${Ie}"><div></div><style>${o}</style></div>`)[0], n = r.firstChild, i = r.lastChild, l = ln();
508
+ l && (i.nonce = l);
509
+ const [c, , u] = Oo(), [a, p] = bt({
510
+ o: t(r, n),
511
+ i: Me
512
+ }, M(t, r, n, !0)), [g] = p(), m = e(r), d = {
513
+ x: g.x === 0,
514
+ y: g.y === 0
515
+ }, _ = {
516
+ elements: {
517
+ host: null,
518
+ padding: !m,
519
+ viewport: (b) => m && Is(b) && b,
520
+ content: !1
521
+ },
522
+ scrollbars: {
523
+ slot: !0
524
+ },
525
+ cancel: {
526
+ nativeScrollbarsOverlaid: !1,
527
+ body: null
528
+ }
529
+ }, $ = q({}, cn), y = M(q, {}, $), S = M(q, {}, _), F = {
530
+ P: g,
531
+ k: d,
532
+ U: m,
533
+ J: !!ce,
534
+ G: M(c, "r"),
535
+ K: S,
536
+ Z: (b) => q(_, b) && S(),
537
+ tt: y,
538
+ nt: (b) => q($, b) && y(),
539
+ ot: q({}, _),
540
+ st: q({}, $)
541
+ };
542
+ if ($t(r, "style"), Gt(r), J(ft, "resize", () => {
543
+ u("r", []);
544
+ }), St(ft.matchMedia) && !m && (!d.x || !d.y)) {
545
+ const b = (A) => {
546
+ const E = ft.matchMedia(`(resolution: ${ft.devicePixelRatio}dppx)`);
547
+ J(E, "change", () => {
548
+ A(), b(A);
549
+ }, {
550
+ A: !0
551
+ });
552
+ };
553
+ b(() => {
554
+ const [A, E] = a();
555
+ q(F.P, A), u("r", [E]);
556
+ });
557
+ }
558
+ return F;
559
+ }, Dt = () => (bo || (bo = pn()), bo), un = (t, e, o) => {
560
+ let s = !1;
561
+ const r = o ? /* @__PURE__ */ new WeakMap() : !1, n = () => {
562
+ s = !0;
563
+ }, i = (l) => {
564
+ if (r && o) {
565
+ const c = o.map((u) => {
566
+ const [a, p] = u || [];
567
+ return [p && a ? (l || Ms)(a, t) : [], p];
568
+ });
569
+ K(c, (u) => K(u[0], (a) => {
570
+ const p = u[1], g = r.get(a) || [];
571
+ if (t.contains(a) && p) {
572
+ const d = J(a, p, (_) => {
573
+ s ? (d(), r.delete(a)) : e(_);
574
+ });
575
+ r.set(a, st(g, d));
576
+ } else
577
+ gt(g), r.delete(a);
578
+ }));
579
+ }
580
+ };
581
+ return i(), [n, i];
582
+ }, Os = (t, e, o, s) => {
583
+ let r = !1;
584
+ const { et: n, ct: i, rt: l, it: c, lt: u, ut: a } = s || {}, p = je(() => r && o(!0), {
585
+ p: 33,
586
+ v: 99
587
+ }), [g, m] = un(t, p, l), d = n || [], _ = i || [], $ = ve(d, _), y = (F, b) => {
588
+ if (!qe(b)) {
589
+ const A = u || Wt, E = a || Wt, H = [], P = [];
590
+ let D = !1, w = !1;
591
+ if (K(b, (C) => {
592
+ const { attributeName: k, target: I, type: B, oldValue: N, addedNodes: W, removedNodes: Y } = C, Q = B === "attributes", j = B === "childList", rt = t === I, L = Q && k, x = L && Vo(I, k || ""), h = ye(x) ? x : null, z = L && N !== h, v = Ds(_, k) && z;
593
+ if (e && (j || !rt)) {
594
+ const f = Q && z, O = f && c && mo(I, c), R = (O ? !A(I, k, N, h) : !Q || f) && !E(C, !!O, t, s);
595
+ K(W, (U) => st(H, U)), K(Y, (U) => st(H, U)), w = w || R;
596
+ }
597
+ !e && rt && z && !A(I, k, N, h) && (st(P, k), D = D || v);
598
+ }), m((C) => go(H).reduce((k, I) => (st(k, Ms(C, I)), mo(I, C) ? st(k, I) : k), [])), e)
599
+ return !F && w && o(!1), [!1];
600
+ if (!qe(P) || D) {
601
+ const C = [go(P), D];
602
+ return F || o.apply(0, C), C;
603
+ }
604
+ }
605
+ }, S = new _r(M(y, !1));
606
+ return [() => (S.observe(t, {
607
+ attributes: !0,
608
+ attributeOldValue: !0,
609
+ attributeFilter: $,
610
+ subtree: e,
611
+ childList: e,
612
+ characterData: e
613
+ }), r = !0, () => {
614
+ r && (g(), S.disconnect(), r = !1);
615
+ }), () => {
616
+ if (r)
617
+ return p.O(), y(!0, S.takeRecords());
618
+ }];
619
+ };
620
+ let Vt = null;
621
+ const rr = (t, e, o) => {
622
+ const { ft: s } = o || {}, r = me(Js), [n] = bt({
623
+ o: !1,
624
+ u: !0
625
+ });
626
+ return () => {
627
+ const i = [], c = qo(`<div class="${Xo}"><div class="${Ko}"></div></div>`)[0], u = c.firstChild, a = (p) => {
628
+ const g = kt(p) && !qe(p);
629
+ let m = !1, d = !1;
630
+ if (g) {
631
+ const _ = p[0], [$, , y] = n(_.contentRect), S = zo($);
632
+ d = Ns($, y), m = !d && !S;
633
+ } else
634
+ d = p === !0;
635
+ m || e({
636
+ _t: !0,
637
+ ft: d
638
+ });
639
+ };
640
+ if (Yt) {
641
+ if (!Je(Vt)) {
642
+ const d = new Yt(Wt);
643
+ d.observe(t, {
644
+ get box() {
645
+ Vt = !0;
646
+ }
647
+ }), Vt = Vt || !1, d.disconnect();
648
+ }
649
+ const p = je(a, {
650
+ p: 0,
651
+ v: 0
652
+ }), g = (d) => p(d), m = new Yt(g);
653
+ if (m.observe(Vt ? t : u), st(i, [() => {
654
+ m.disconnect();
655
+ }, !Vt && vt(t, c)]), Vt) {
656
+ const d = new Yt(g);
657
+ d.observe(t, {
658
+ box: "border-box"
659
+ }), st(i, () => d.disconnect());
660
+ }
661
+ } else if (r) {
662
+ const [p, g] = r(u, a, s);
663
+ st(i, ve([oo(c, jr), J(c, "animationstart", p), vt(t, c)], g));
664
+ } else
665
+ return Wt;
666
+ return M(gt, i);
667
+ };
668
+ }, hn = (t, e) => {
669
+ let o;
670
+ const s = (c) => c.h === 0 || c.isIntersecting || c.intersectionRatio > 0, r = Zt(Xr), [n] = bt({
671
+ o: !1
672
+ }), i = (c, u) => {
673
+ if (c) {
674
+ const a = n(s(c)), [, p] = a;
675
+ return p && !u && e(a) && [a];
676
+ }
677
+ }, l = (c, u) => i(u.pop(), c);
678
+ return [() => {
679
+ const c = [];
680
+ if (as)
681
+ o = new as(M(l, !1), {
682
+ root: t
683
+ }), o.observe(r), st(c, () => {
684
+ o.disconnect();
685
+ });
686
+ else {
687
+ const u = () => {
688
+ const a = It(r);
689
+ i(a);
690
+ };
691
+ st(c, rr(r, u)()), u();
692
+ }
693
+ return M(gt, st(c, vt(t, r)));
694
+ }, () => o && l(!0, o.takeRecords())];
695
+ }, vn = (t, e, o, s) => {
696
+ let r, n, i, l, c, u;
697
+ const a = `[${Rt}]`, p = `[${At}]`, g = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: m, vt: d, L: _, gt: $, ht: y, V: S, bt: F, wt: b, yt: A, St: E } = t, H = (v) => Ot(v, "direction") === "rtl", P = {
698
+ Ot: !1,
699
+ B: H(m)
700
+ }, D = Dt(), w = me(Zo), [C] = bt({
701
+ i: Fo,
702
+ o: {
703
+ w: 0,
704
+ h: 0
705
+ }
706
+ }, () => {
707
+ const v = w && w.R(t, e, P, D, o).Y, O = !(F && S) && Wo(d, Rt, Re), T = !S && b(Xs), R = T && yt($), U = R && E(), tt = A(Ks, O), X = T && v && v(), et = Xe(_), V = jo(_);
708
+ return X && X(), wt($, R), U && U(), O && tt(), {
709
+ w: et.w + V.w,
710
+ h: et.h + V.h
711
+ };
712
+ }), k = je(s, {
713
+ p: () => r,
714
+ v: () => n,
715
+ m(v, f) {
716
+ const [O] = v, [T] = f;
717
+ return [ve(xt(O), xt(T)).reduce((R, U) => (R[U] = O[U] || T[U], R), {})];
718
+ }
719
+ }), I = (v) => {
720
+ const f = H(m);
721
+ q(v, {
722
+ $t: u !== f
723
+ }), q(P, {
724
+ B: f
725
+ }), u = f;
726
+ }, B = (v, f) => {
727
+ const [O, T] = v, R = {
728
+ Ct: T
729
+ };
730
+ return q(P, {
731
+ Ot: O
732
+ }), f || s(R), R;
733
+ }, N = ({ _t: v, ft: f }) => {
734
+ const T = !(v && !f) && D.U ? k : s, R = {
735
+ _t: v || f,
736
+ ft: f
737
+ };
738
+ I(R), T(R);
739
+ }, W = (v, f) => {
740
+ const [, O] = C(), T = {
741
+ xt: O
742
+ };
743
+ return I(T), O && !f && (v ? s : k)(T), T;
744
+ }, Y = (v, f, O) => {
745
+ const T = {
746
+ Ht: f
747
+ };
748
+ return I(T), f && !O && k(T), T;
749
+ }, [Q, j] = y ? hn(d, B) : [], rt = !S && rr(d, N, {
750
+ ft: !0
751
+ }), [L, x] = Os(d, !1, Y, {
752
+ ct: g,
753
+ et: g
754
+ }), h = S && Yt && new Yt((v) => {
755
+ const f = v[v.length - 1].contentRect;
756
+ N({
757
+ _t: !0,
758
+ ft: Ns(f, c)
759
+ }), c = f;
760
+ }), z = je(() => {
761
+ const [, v] = C();
762
+ s({
763
+ xt: v
764
+ });
765
+ }, {
766
+ p: 222,
767
+ S: !0
768
+ });
769
+ return [() => {
770
+ h && h.observe(d);
771
+ const v = rt && rt(), f = Q && Q(), O = L(), T = D.G((R) => {
772
+ R ? k({
773
+ Et: R
774
+ }) : z();
775
+ });
776
+ return () => {
777
+ h && h.disconnect(), v && v(), f && f(), l && l(), O(), T();
778
+ };
779
+ }, ({ zt: v, Tt: f, It: O }) => {
780
+ const T = {}, [R] = v("update.ignoreMutation"), [U, tt] = v("update.attributes"), [X, et] = v("update.elementEvents"), [V, at] = v("update.debounce"), ut = et || tt, lt = f || O, pt = (ot) => St(R) && R(ot);
781
+ if (ut) {
782
+ i && i(), l && l();
783
+ const [ot, nt] = Os(y || _, !0, W, {
784
+ et: ve(g, U || []),
785
+ rt: X,
786
+ it: a,
787
+ ut: (it, G) => {
788
+ const { target: dt, attributeName: ht } = it;
789
+ return (!G && ht && !S ? Er(dt, a, p) : !1) || !!Kt(dt, `.${mt}`) || !!pt(it);
790
+ }
791
+ });
792
+ l = ot(), i = nt;
793
+ }
794
+ if (at)
795
+ if (k.O(), kt(V)) {
796
+ const ot = V[0], nt = V[1];
797
+ r = Tt(ot) && ot, n = Tt(nt) && nt;
798
+ } else Tt(V) ? (r = V, n = !1) : (r = !1, n = !1);
799
+ if (lt) {
800
+ const ot = x(), nt = j && j(), it = i && i();
801
+ ot && q(T, Y(ot[0], ot[1], lt)), nt && q(T, B(nt[0], lt)), it && q(T, W(it[0], lt));
802
+ }
803
+ return I(T), T;
804
+ }, P];
805
+ }, nr = (t, e) => St(e) ? e.apply(0, t) : e, fn = (t, e, o, s) => {
806
+ const r = To(s) ? o : s;
807
+ return nr(t, r) || e.apply(0, t);
808
+ }, ir = (t, e, o, s) => {
809
+ const r = To(s) ? o : s, n = nr(t, r);
810
+ return !!n && (We(n) ? n : e.apply(0, t));
811
+ }, bn = (t, e) => {
812
+ const { nativeScrollbarsOverlaid: o, body: s } = e || {}, { k: r, U: n, K: i } = Dt(), { nativeScrollbarsOverlaid: l, body: c } = i().cancel, u = o ?? l, a = To(s) ? c : s, p = (r.x || r.y) && u, g = t && (Ze(a) ? !n : a);
813
+ return !!p || !!g;
814
+ }, yn = (t, e, o, s) => {
815
+ const r = "--os-viewport-percent", n = "--os-scroll-percent", i = "--os-scroll-direction", { K: l } = Dt(), { scrollbars: c } = l(), { slot: u } = c, { dt: a, vt: p, L: g, At: m, gt: d, bt: _, V: $ } = e, { scrollbars: y } = m ? {} : t, { slot: S } = y || {}, F = [], b = [], A = [], E = ir([a, p, g], () => $ && _ ? a : p, u, S), H = (L) => {
816
+ if (ce) {
817
+ let x = null, h = [];
818
+ const z = new ce({
819
+ source: d,
820
+ axis: L
821
+ }), v = () => {
822
+ x && x.cancel(), x = null;
823
+ };
824
+ return {
825
+ kt: (O) => {
826
+ const { Dt: T } = o, R = vo(T)[L], U = L === "x", tt = [uo(0, U), uo(`calc(100cq${U ? "w" : "h"} + -100%)`, U)], X = R ? tt : tt.reverse();
827
+ return h[0] === X[0] && h[1] === X[1] || (v(), h = X, x = O.Mt.animate({
828
+ clear: ["left"],
829
+ transform: X
830
+ }, {
831
+ timeline: z
832
+ })), v;
833
+ }
834
+ };
835
+ }
836
+ }, P = {
837
+ x: H("x"),
838
+ y: H("y")
839
+ }, D = () => {
840
+ const { Rt: L, Vt: x } = o, h = (z, v) => Ts(0, 1, z / (z + v) || 0);
841
+ return {
842
+ x: h(x.x, L.x),
843
+ y: h(x.y, L.y)
844
+ };
845
+ }, w = (L, x, h) => {
846
+ const z = h ? oo : Ps;
847
+ K(L, (v) => {
848
+ z(v.Lt, x);
849
+ });
850
+ }, C = (L, x) => {
851
+ K(L, (h) => {
852
+ const [z, v] = x(h);
853
+ Lt(z, v);
854
+ });
855
+ }, k = (L, x, h) => {
856
+ const z = Je(h), v = z ? h : !0, f = z ? !h : !0;
857
+ v && w(b, L, x), f && w(A, L, x);
858
+ }, I = () => {
859
+ const L = D(), x = (h) => (z) => [z.Lt, {
860
+ [r]: So(h) + ""
861
+ }];
862
+ C(b, x(L.x)), C(A, x(L.y));
863
+ }, B = () => {
864
+ if (!ce) {
865
+ const { Dt: L } = o, x = vs(L, yt(d)), h = (z) => (v) => [v.Lt, {
866
+ [n]: So(z) + ""
867
+ }];
868
+ C(b, h(x.x)), C(A, h(x.y));
869
+ }
870
+ }, N = () => {
871
+ const { Dt: L } = o, x = vo(L), h = (z) => (v) => [v.Lt, {
872
+ [i]: z ? "0" : "1"
873
+ }];
874
+ C(b, h(x.x)), C(A, h(x.y)), ce && (b.forEach(P.x.kt), A.forEach(P.y.kt));
875
+ }, W = () => {
876
+ if ($ && !_) {
877
+ const { Rt: L, Dt: x } = o, h = vo(x), z = vs(x, yt(d)), v = (f) => {
878
+ const { Lt: O } = f, T = fe(O) === g && O, R = (U, tt, X) => {
879
+ const et = tt * U;
880
+ return Bs(X ? et : -et);
881
+ };
882
+ return [T, T && {
883
+ transform: uo({
884
+ x: R(z.x, L.x, h.x),
885
+ y: R(z.y, L.y, h.y)
886
+ })
887
+ }];
888
+ };
889
+ C(b, v), C(A, v);
890
+ }
891
+ }, Y = (L) => {
892
+ const x = L ? "x" : "y", z = Zt(`${mt} ${L ? Zr : Jr}`), v = Zt(Zs), f = Zt(Qo), O = {
893
+ Lt: z,
894
+ Ut: v,
895
+ Mt: f
896
+ }, T = P[x];
897
+ return st(L ? b : A, O), st(F, [vt(z, v), vt(v, f), M(Gt, z), T && T.kt(O), s(O, k, L)]), O;
898
+ }, Q = M(Y, !0), j = M(Y, !1), rt = () => (vt(E, b[0].Lt), vt(E, A[0].Lt), M(gt, F));
899
+ return Q(), j(), [{
900
+ Pt: I,
901
+ Nt: B,
902
+ qt: N,
903
+ Bt: W,
904
+ Ft: k,
905
+ jt: {
906
+ Xt: b,
907
+ Yt: Q,
908
+ Wt: M(C, b)
909
+ },
910
+ Jt: {
911
+ Xt: A,
912
+ Yt: j,
913
+ Wt: M(C, A)
914
+ }
915
+ }, rt];
916
+ }, gn = (t, e, o, s) => (r, n, i) => {
917
+ const { vt: l, L: c, V: u, gt: a, Gt: p, St: g } = e, { Lt: m, Ut: d, Mt: _ } = r, [$, y] = Nt(333), [S, F] = Nt(444), b = (H) => {
918
+ St(a.scrollBy) && a.scrollBy({
919
+ behavior: "smooth",
920
+ left: H.x,
921
+ top: H.y
922
+ });
923
+ }, A = () => {
924
+ const H = "pointerup pointercancel lostpointercapture", P = `client${i ? "X" : "Y"}`, D = i ? te : ge, w = i ? "left" : "top", C = i ? "w" : "h", k = i ? "x" : "y", I = (N, W) => (Y) => {
925
+ const { Rt: Q } = o, j = It(d)[C] - It(_)[C], L = W * Y / j * Q[k];
926
+ wt(a, {
927
+ [k]: N + L
928
+ });
929
+ }, B = [];
930
+ return J(d, "pointerdown", (N) => {
931
+ const W = Kt(N.target, `.${Qo}`) === _, Y = W ? _ : d, Q = t.scrollbars, j = Q[W ? "dragScroll" : "clickScroll"], { button: rt, isPrimary: L, pointerType: x } = N, { pointers: h } = Q;
932
+ if (rt === 0 && L && j && (h || []).includes(x)) {
933
+ gt(B), F();
934
+ const v = !W && (N.shiftKey || j === "instant"), f = M(ho, _), O = M(ho, d), T = (G, dt) => (G || f())[w] - (dt || O())[w], R = yo(ho(a)[D]) / It(a)[C] || 1, U = I(yt(a)[k], 1 / R), tt = N[P], X = f(), et = O(), V = X[D], at = T(X, et) + V / 2, ut = tt - et[w], lt = W ? 0 : ut - at, pt = (G) => {
935
+ gt(it), Y.releasePointerCapture(G.pointerId);
936
+ }, ot = W || v, nt = g(), it = [J(p, H, pt), J(p, "selectstart", (G) => Co(G), {
937
+ T: !1
938
+ }), J(d, H, pt), ot && J(d, "pointermove", (G) => U(lt + (G[P] - tt))), ot && (() => {
939
+ const G = yt(a);
940
+ nt();
941
+ const dt = yt(a), ht = {
942
+ x: dt.x - G.x,
943
+ y: dt.y - G.y
944
+ };
945
+ (Ve(ht.x) > 3 || Ve(ht.y) > 3) && (g(), wt(a, G), b(ht), S(nt));
946
+ })];
947
+ if (Y.setPointerCapture(N.pointerId), v)
948
+ U(lt);
949
+ else if (!W) {
950
+ const G = me(er);
951
+ if (G) {
952
+ const dt = G(U, lt, V, (ht) => {
953
+ ht ? nt() : st(it, nt);
954
+ });
955
+ st(it, dt), st(B, M(dt, !0));
956
+ }
957
+ }
958
+ }
959
+ });
960
+ };
961
+ let E = !0;
962
+ return M(gt, [J(_, "pointermove pointerleave", s), J(m, "pointerenter", () => {
963
+ n(ms, !0);
964
+ }), J(m, "pointerleave pointercancel", () => {
965
+ n(ms, !1);
966
+ }), !u && J(m, "mousedown", () => {
967
+ const H = xo();
968
+ (ds(H, At) || ds(H, Rt) || H === document.body) && Ho(M(ko, c), 25);
969
+ }), J(m, "wheel", (H) => {
970
+ const { deltaX: P, deltaY: D, deltaMode: w } = H;
971
+ E && w === 0 && fe(m) === l && b({
972
+ x: P,
973
+ y: D
974
+ }), E = !1, n(Ss, !0), $(() => {
975
+ E = !0, n(Ss);
976
+ }), Co(H);
977
+ }, {
978
+ T: !1,
979
+ I: !0
980
+ }), J(m, "pointerdown", () => {
981
+ const H = J(p, "click", (D) => {
982
+ P(), Us(D);
983
+ }, {
984
+ A: !0,
985
+ I: !0,
986
+ T: !1
987
+ }), P = J(p, "pointerup pointercancel", () => {
988
+ P(), setTimeout(H, 150);
989
+ }, {
990
+ I: !0,
991
+ T: !0
992
+ });
993
+ }, {
994
+ I: !0,
995
+ T: !0
996
+ }), A(), y, F]);
997
+ }, mn = (t, e, o, s, r, n) => {
998
+ let i, l, c, u, a, p = Wt, g = 0;
999
+ const m = ["mouse", "pen"], d = (x) => m.includes(x.pointerType), [_, $] = Nt(), [y, S] = Nt(100), [F, b] = Nt(100), [A, E] = Nt(() => g), [H, P] = yn(t, r, s, gn(e, r, s, (x) => d(x) && Q())), { vt: D, Kt: w, bt: C } = r, { Ft: k, Pt: I, Nt: B, qt: N, Bt: W } = H, Y = (x, h) => {
1000
+ if (E(), x)
1001
+ k(xs);
1002
+ else {
1003
+ const z = M(k, xs, !0);
1004
+ g > 0 && !h ? A(z) : z();
1005
+ }
1006
+ }, Q = () => {
1007
+ (c ? !i : !u) && (Y(!0), y(() => {
1008
+ Y(!1);
1009
+ }));
1010
+ }, j = (x) => {
1011
+ k($o, x, !0), k($o, x, !1);
1012
+ }, rt = (x) => {
1013
+ d(x) && (i = c, c && Y(!0));
1014
+ }, L = [E, S, b, $, () => p(), J(D, "pointerover", rt, {
1015
+ A: !0
1016
+ }), J(D, "pointerenter", rt), J(D, "pointerleave", (x) => {
1017
+ d(x) && (i = !1, c && Y(!1));
1018
+ }), J(D, "pointermove", (x) => {
1019
+ d(x) && l && Q();
1020
+ }), J(w, "scroll", (x) => {
1021
+ _(() => {
1022
+ B(), Q();
1023
+ }), n(x), W();
1024
+ })];
1025
+ return [() => M(gt, st(L, P())), ({ zt: x, It: h, Qt: z, Zt: v }) => {
1026
+ const { tn: f, nn: O, sn: T, en: R } = v || {}, { $t: U, ft: tt } = z || {}, { B: X } = o, { k: et } = Dt(), { cn: V, j: at } = s, [ut, lt] = x("showNativeOverlaidScrollbars"), [pt, ot] = x("scrollbars.theme"), [nt, it] = x("scrollbars.visibility"), [G, dt] = x("scrollbars.autoHide"), [ht, oe] = x("scrollbars.autoHideSuspend"), [we] = x("scrollbars.autoHideDelay"), [xe, Se] = x("scrollbars.dragScroll"), [ze, Ce] = x("scrollbars.clickScroll"), [Mt, se] = x("overflow"), ro = tt && !h, no = at.x || at.y, io = f || O || R || U || h, ao = T || it || se, zt = ut && et.x && et.y, ke = (qt, re, Oe) => {
1027
+ const _e = qt.includes(Ft) && (nt === Ht || nt === "auto" && re === Ft);
1028
+ return k(Gr, _e, Oe), _e;
1029
+ };
1030
+ if (g = we, ro && (ht && no ? (j(!1), p(), F(() => {
1031
+ p = J(w, "scroll", M(j, !0), {
1032
+ A: !0
1033
+ });
1034
+ })) : j(!0)), lt && k(Kr, zt), ot && (k(a), k(pt, !0), a = pt), oe && !ht && j(!0), dt && (l = G === "move", c = G === "leave", u = G === "never", Y(u, !0)), Se && k(on, xe), Ce && k(en, !!ze), ao) {
1035
+ const qt = ke(Mt.x, V.x, !0), re = ke(Mt.y, V.y, !1);
1036
+ k(tn, !(qt && re));
1037
+ }
1038
+ io && (B(), I(), W(), R && N(), k(ws, !at.x, !0), k(ws, !at.y, !1), k(Qr, X && !C));
1039
+ }, {}, H];
1040
+ }, wn = (t) => {
1041
+ const e = Dt(), { K: o, U: s } = e, { elements: r } = o(), { padding: n, viewport: i, content: l } = r, c = We(t), u = c ? {} : t, { elements: a } = u, { padding: p, viewport: g, content: m } = a || {}, d = c ? t : u.target, _ = Is(d), $ = d.ownerDocument, y = $.documentElement, S = () => $.defaultView || ft, F = M(fn, [d]), b = M(ir, [d]), A = M(Zt, ""), E = M(F, A, i), H = M(b, A, l), P = (V) => {
1042
+ const at = It(V), ut = Xe(V), lt = Ot(V, Io), pt = Ot(V, Ro);
1043
+ return ut.w - at.w > 0 && !Qt(lt) || ut.h - at.h > 0 && !Qt(pt);
1044
+ }, D = E(g), w = D === d, C = w && _, k = !w && H(m), I = !w && D === k, B = C ? y : D, N = C ? B : d, W = !w && b(A, n, p), Y = !I && k, Q = [Y, B, W, N].map((V) => We(V) && !fe(V) && V), j = (V) => V && Ds(Q, V), rt = !j(B) && P(B) ? B : d, L = C ? y : B, h = {
1045
+ dt: d,
1046
+ vt: N,
1047
+ L: B,
1048
+ rn: W,
1049
+ ht: Y,
1050
+ gt: L,
1051
+ Kt: C ? $ : B,
1052
+ ln: _ ? y : rt,
1053
+ Gt: $,
1054
+ bt: _,
1055
+ At: c,
1056
+ V: w,
1057
+ an: S,
1058
+ wt: (V) => Wo(B, At, V),
1059
+ yt: (V, at) => Ye(B, At, V, at),
1060
+ St: () => Ye(L, At, Wr, !0)
1061
+ }, { dt: z, vt: v, rn: f, L: O, ht: T } = h, R = [() => {
1062
+ $t(v, [Rt, fo]), $t(z, fo), _ && $t(y, [fo, Rt]);
1063
+ }];
1064
+ let U = wo([T, O, f, v, z].find((V) => V && !j(V)));
1065
+ const tt = C ? z : T || O, X = M(gt, R);
1066
+ return [h, () => {
1067
+ const V = S(), at = xo(), ut = (it) => {
1068
+ vt(fe(it), wo(it)), Gt(it);
1069
+ }, lt = (it) => J(it, "focusin focusout focus blur", Us, {
1070
+ I: !0,
1071
+ T: !1
1072
+ }), pt = "tabindex", ot = Vo(O, pt), nt = lt(at);
1073
+ return Et(v, Rt, w ? "" : Vr), Et(f, _o, ""), Et(O, At, ""), Et(T, ys, ""), w || (Et(O, pt, ot || "-1"), _ && Et(y, bs, "")), vt(tt, U), vt(v, f), vt(f || v, !w && O), vt(O, T), st(R, [nt, () => {
1074
+ const it = xo(), G = j(O), dt = G && it === O ? z : it, ht = lt(dt);
1075
+ $t(f, _o), $t(T, ys), $t(O, At), _ && $t(y, bs), ot ? Et(O, pt, ot) : $t(O, pt), j(T) && ut(T), G && ut(O), j(f) && ut(f), ko(dt), ht();
1076
+ }]), s && !w && (Uo(O, At, Qs), st(R, M($t, O, At))), ko(!w && _ && at === z && V.top === V ? O : at), nt(), U = 0, X;
1077
+ }, X];
1078
+ }, xn = ({ ht: t }) => ({ Qt: e, un: o, It: s }) => {
1079
+ const { Ct: r } = e || {}, { Ot: n } = o;
1080
+ t && (r || s) && Lt(t, {
1081
+ [ge]: n && "100%"
1082
+ });
1083
+ }, Sn = ({ vt: t, rn: e, L: o, V: s }, r) => {
1084
+ const [n, i] = bt({
1085
+ i: Ar,
1086
+ o: us()
1087
+ }, M(us, t, "padding", ""));
1088
+ return ({ zt: l, Qt: c, un: u, It: a }) => {
1089
+ let [p, g] = i(a);
1090
+ const { U: m } = Dt(), { _t: d, xt: _, $t: $ } = c || {}, { B: y } = u, [S, F] = l("paddingAbsolute");
1091
+ (d || g || (a || _)) && ([p, g] = n(a));
1092
+ const A = !s && (F || $ || g);
1093
+ if (A) {
1094
+ const E = !S || !e && !m, H = p.r + p.l, P = p.t + p.b, D = {
1095
+ [he]: E && !y ? -H : 0,
1096
+ [Xt]: E ? -P : 0,
1097
+ [ue]: E && y ? -H : 0,
1098
+ top: E ? -p.t : 0,
1099
+ right: E ? y ? -p.r : "auto" : 0,
1100
+ left: E ? y ? "auto" : -p.l : 0,
1101
+ [te]: E && `calc(100% + ${H}px)`
1102
+ }, w = {
1103
+ [Mo]: E ? p.t : 0,
1104
+ [le]: E ? p.r : 0,
1105
+ [pe]: E ? p.b : 0,
1106
+ [de]: E ? p.l : 0
1107
+ };
1108
+ Lt(e || o, D), Lt(o, w), q(r, {
1109
+ rn: p,
1110
+ fn: !E,
1111
+ F: e ? w : q({}, D, w)
1112
+ });
1113
+ }
1114
+ return {
1115
+ _n: A
1116
+ };
1117
+ };
1118
+ }, zn = (t, e) => {
1119
+ const o = Dt(), { vt: s, rn: r, L: n, V: i, Kt: l, gt: c, bt: u, yt: a, an: p } = t, { U: g } = o, m = u && i, d = M(Be, 0), _ = {
1120
+ display: () => !1,
1121
+ direction: (h) => h !== "ltr",
1122
+ flexDirection: (h) => h.endsWith("-reverse"),
1123
+ writingMode: (h) => h !== "horizontal-tb"
1124
+ }, $ = xt(_), y = {
1125
+ i: Fo,
1126
+ o: {
1127
+ w: 0,
1128
+ h: 0
1129
+ }
1130
+ }, S = {
1131
+ i: Me,
1132
+ o: {}
1133
+ }, F = (h) => {
1134
+ a(Ks, !m && h);
1135
+ }, b = (h) => {
1136
+ if (!$.some((X) => {
1137
+ const et = h[X];
1138
+ return et && _[X](et);
1139
+ }))
1140
+ return {
1141
+ D: {
1142
+ x: 0,
1143
+ y: 0
1144
+ },
1145
+ M: {
1146
+ x: 1,
1147
+ y: 1
1148
+ }
1149
+ };
1150
+ F(!0);
1151
+ const v = yt(c), f = a(qr, !0), O = J(l, Ft, (X) => {
1152
+ const et = yt(c);
1153
+ X.isTrusted && et.x === v.x && et.y === v.y && Yo(X);
1154
+ }, {
1155
+ I: !0,
1156
+ A: !0
1157
+ });
1158
+ wt(c, {
1159
+ x: 0,
1160
+ y: 0
1161
+ }), f();
1162
+ const T = yt(c), R = Xe(c);
1163
+ wt(c, {
1164
+ x: R.w,
1165
+ y: R.h
1166
+ });
1167
+ const U = yt(c);
1168
+ wt(c, {
1169
+ x: U.x - T.x < 1 && -R.w,
1170
+ y: U.y - T.y < 1 && -R.h
1171
+ });
1172
+ const tt = yt(c);
1173
+ return wt(c, v), Jt(() => O()), {
1174
+ D: T,
1175
+ M: tt
1176
+ };
1177
+ }, A = (h, z) => {
1178
+ const v = ft.devicePixelRatio % 1 !== 0 ? 1 : 0, f = {
1179
+ w: d(h.w - z.w),
1180
+ h: d(h.h - z.h)
1181
+ };
1182
+ return {
1183
+ w: f.w > v ? f.w : 0,
1184
+ h: f.h > v ? f.h : 0
1185
+ };
1186
+ }, E = (h, z) => {
1187
+ const v = (f, O, T, R) => {
1188
+ const U = f === Ht ? Ct : rn(f), tt = Qt(f), X = Qt(T);
1189
+ return !O && !R ? Ct : tt && X ? Ht : tt ? O && R ? U : O ? Ht : Ct : O ? U : X && R ? Ht : Ct;
1190
+ };
1191
+ return {
1192
+ x: v(z.x, h.x, z.y, h.y),
1193
+ y: v(z.y, h.y, z.x, h.x)
1194
+ };
1195
+ }, H = (h) => {
1196
+ const z = (f) => [Ht, Ct, Ft].map((O) => x(Ao(O), f)), v = z(!0).concat(z()).join(" ");
1197
+ a(v), a(xt(h).map((f) => x(h[f], f === "x")).join(" "), !0);
1198
+ }, [P, D] = bt(y, M(jo, n)), [w, C] = bt(y, M(Xe, n)), [k, I] = bt(y), [B] = bt(S), [N, W] = bt(y), [Y] = bt(S), [Q] = bt({
1199
+ i: (h, z) => to(h, z, $),
1200
+ o: {}
1201
+ }, () => Ir(n) ? Ot(n, $) : {}), [j, rt] = bt({
1202
+ i: (h, z) => Me(h.D, z.D) && Me(h.M, z.M),
1203
+ o: Ws()
1204
+ }), L = me(Zo), x = (h, z) => `${z ? Nr : Ur}${$r(h)}`;
1205
+ return ({ zt: h, Qt: z, un: v, It: f }, { _n: O }) => {
1206
+ const { _t: T, Ht: R, xt: U, $t: tt, ft: X, Et: et } = z || {}, V = L && L.R(t, e, v, o, h), { X: at, Y: ut, W: lt } = V || {}, [pt, ot] = Gs(h, o), [nt, it] = h("overflow"), G = Qt(nt.x), dt = Qt(nt.y), ht = T || O || U || tt || et || ot;
1207
+ let oe = D(f), we = C(f), xe = I(f), Se = W(f);
1208
+ if (ot && g && a(Qs, !pt), ht) {
1209
+ Wo(s, Rt, Re) && F(!0);
1210
+ const ts = ut && ut(), [$e] = oe = P(f), [Ae] = we = w(f), De = Vs(n), Ee = m && Mr(p()), ur = {
1211
+ w: d(Ae.w + $e.w),
1212
+ h: d(Ae.h + $e.h)
1213
+ }, es = {
1214
+ w: d((Ee ? Ee.w : De.w + d(De.w - Ae.w)) + $e.w),
1215
+ h: d((Ee ? Ee.h : De.h + d(De.h - Ae.h)) + $e.h)
1216
+ };
1217
+ ts && ts(), Se = N(es), xe = k(A(ur, es), f);
1218
+ }
1219
+ const [ze, Ce] = Se, [Mt, se] = xe, [ro, no] = we, [io, ao] = oe, [zt, ke] = B({
1220
+ x: Mt.w > 0,
1221
+ y: Mt.h > 0
1222
+ }), qt = G && dt && (zt.x || zt.y) || G && zt.x && !zt.y || dt && zt.y && !zt.x, re = O || tt || et || ao || no || Ce || se || it || ot || ht || R && m, [Oe, _e] = Q(f), Go = tt || X || _e || ke || f, [cr, lr] = Go ? j(b(Oe), f) : rt();
1223
+ let ne = E(zt, nt);
1224
+ F(!1), re && (H(ne), ne = tr(n, zt), lt && at && (at(ne, ro, io), Lt(n, lt(ne))));
1225
+ const [dr, pr] = Y(ne);
1226
+ return Ye(s, Rt, Re, qt), Ye(r, _o, Re, qt), q(e, {
1227
+ cn: dr,
1228
+ Vt: {
1229
+ x: ze.w,
1230
+ y: ze.h
1231
+ },
1232
+ Rt: {
1233
+ x: Mt.w,
1234
+ y: Mt.h
1235
+ },
1236
+ j: zt,
1237
+ Dt: Rr(cr, Mt)
1238
+ }), {
1239
+ sn: pr,
1240
+ tn: Ce,
1241
+ nn: se,
1242
+ en: lr || se,
1243
+ dn: Go
1244
+ };
1245
+ };
1246
+ }, Cn = (t) => {
1247
+ const [e, o, s] = wn(t), r = {
1248
+ rn: {
1249
+ t: 0,
1250
+ r: 0,
1251
+ b: 0,
1252
+ l: 0
1253
+ },
1254
+ fn: !1,
1255
+ F: {
1256
+ [he]: 0,
1257
+ [Xt]: 0,
1258
+ [ue]: 0,
1259
+ [Mo]: 0,
1260
+ [le]: 0,
1261
+ [pe]: 0,
1262
+ [de]: 0
1263
+ },
1264
+ Vt: {
1265
+ x: 0,
1266
+ y: 0
1267
+ },
1268
+ Rt: {
1269
+ x: 0,
1270
+ y: 0
1271
+ },
1272
+ cn: {
1273
+ x: Ct,
1274
+ y: Ct
1275
+ },
1276
+ j: {
1277
+ x: !1,
1278
+ y: !1
1279
+ },
1280
+ Dt: Ws()
1281
+ }, { dt: n, gt: i, V: l, St: c } = e, { U: u, k: a } = Dt(), p = !u && (a.x || a.y), g = [xn(e), Sn(e, r), zn(e, r)];
1282
+ return [o, (m) => {
1283
+ const d = {}, $ = p && yt(i), y = $ && c();
1284
+ return K(g, (S) => {
1285
+ q(d, S(m, d) || {});
1286
+ }), wt(i, $), y && y(), l || wt(n, 0), d;
1287
+ }, r, e, s];
1288
+ }, kn = (t, e, o, s, r) => {
1289
+ let n = !1;
1290
+ const i = ks(e, {}), [l, c, u, a, p] = Cn(t), [g, m, d] = vn(a, u, i, (b) => {
1291
+ F({}, b);
1292
+ }), [_, $, , y] = mn(t, e, d, u, a, r), S = (b) => xt(b).some((A) => !!b[A]), F = (b, A) => {
1293
+ if (o())
1294
+ return !1;
1295
+ const { pn: E, It: H, Tt: P, vn: D } = b, w = E || {}, C = !!H || !n, k = {
1296
+ zt: ks(e, w, C),
1297
+ pn: w,
1298
+ It: C
1299
+ };
1300
+ if (D)
1301
+ return $(k), !1;
1302
+ const I = A || m(q({}, k, {
1303
+ Tt: P
1304
+ })), B = c(q({}, k, {
1305
+ un: d,
1306
+ Qt: I
1307
+ }));
1308
+ $(q({}, k, {
1309
+ Qt: I,
1310
+ Zt: B
1311
+ }));
1312
+ const N = S(I), W = S(B), Y = N || W || !Bo(w) || C;
1313
+ return n = !0, Y && s(b, {
1314
+ Qt: I,
1315
+ Zt: B
1316
+ }), Y;
1317
+ };
1318
+ return [() => {
1319
+ const { ln: b, gt: A, St: E } = a, H = yt(b), P = [g(), l(), _()], D = E();
1320
+ return wt(A, H), D(), M(gt, P);
1321
+ }, F, () => ({
1322
+ gn: d,
1323
+ hn: u
1324
+ }), {
1325
+ bn: a,
1326
+ wn: y
1327
+ }, p];
1328
+ }, Jo = /* @__PURE__ */ new WeakMap(), On = (t, e) => {
1329
+ Jo.set(t, e);
1330
+ }, _n = (t) => {
1331
+ Jo.delete(t);
1332
+ }, ar = (t) => Jo.get(t), Pt = (t, e, o) => {
1333
+ const { tt: s } = Dt(), r = We(t), n = r ? t : t.target, i = ar(n);
1334
+ if (e && !i) {
1335
+ let l = !1;
1336
+ const c = [], u = {}, a = (w) => {
1337
+ const C = Hs(w), k = me(Br);
1338
+ return k ? k(C, !0) : C;
1339
+ }, p = q({}, s(), a(e)), [g, m, d] = Oo(), [_, $, y] = Oo(o), S = (w, C) => {
1340
+ y(w, C), d(w, C);
1341
+ }, [F, b, A, E, H] = kn(t, p, () => l, ({ pn: w, It: C }, { Qt: k, Zt: I }) => {
1342
+ const { _t: B, $t: N, Ct: W, xt: Y, Ht: Q, ft: j } = k, { tn: rt, nn: L, sn: x, en: h } = I;
1343
+ S("updated", [D, {
1344
+ updateHints: {
1345
+ sizeChanged: !!B,
1346
+ directionChanged: !!N,
1347
+ heightIntrinsicChanged: !!W,
1348
+ overflowEdgeChanged: !!rt,
1349
+ overflowAmountChanged: !!L,
1350
+ overflowStyleChanged: !!x,
1351
+ scrollCoordinatesChanged: !!h,
1352
+ contentMutation: !!Y,
1353
+ hostMutation: !!Q,
1354
+ appear: !!j
1355
+ },
1356
+ changedOptions: w || {},
1357
+ force: !!C
1358
+ }]);
1359
+ }, (w) => S("scroll", [D, w])), P = (w) => {
1360
+ _n(n), gt(c), l = !0, S("destroyed", [D, w]), m(), $();
1361
+ }, D = {
1362
+ options(w, C) {
1363
+ if (w) {
1364
+ const k = C ? s() : {}, I = or(p, q(k, a(w)));
1365
+ Bo(I) || (q(p, I), b({
1366
+ pn: I
1367
+ }));
1368
+ }
1369
+ return q({}, p);
1370
+ },
1371
+ on: _,
1372
+ off: (w, C) => {
1373
+ w && C && $(w, C);
1374
+ },
1375
+ state() {
1376
+ const { gn: w, hn: C } = A(), { B: k } = w, { Vt: I, Rt: B, cn: N, j: W, rn: Y, fn: Q, Dt: j } = C;
1377
+ return q({}, {
1378
+ overflowEdge: I,
1379
+ overflowAmount: B,
1380
+ overflowStyle: N,
1381
+ hasOverflow: W,
1382
+ scrollCoordinates: {
1383
+ start: j.D,
1384
+ end: j.M
1385
+ },
1386
+ padding: Y,
1387
+ paddingAbsolute: Q,
1388
+ directionRTL: k,
1389
+ destroyed: l
1390
+ });
1391
+ },
1392
+ elements() {
1393
+ const { dt: w, vt: C, rn: k, L: I, ht: B, gt: N, Kt: W } = E.bn, { jt: Y, Jt: Q } = E.wn, j = (L) => {
1394
+ const { Mt: x, Ut: h, Lt: z } = L;
1395
+ return {
1396
+ scrollbar: z,
1397
+ track: h,
1398
+ handle: x
1399
+ };
1400
+ }, rt = (L) => {
1401
+ const { Xt: x, Yt: h } = L, z = j(x[0]);
1402
+ return q({}, z, {
1403
+ clone: () => {
1404
+ const v = j(h());
1405
+ return b({
1406
+ vn: !0
1407
+ }), v;
1408
+ }
1409
+ });
1410
+ };
1411
+ return q({}, {
1412
+ target: w,
1413
+ host: C,
1414
+ padding: k || I,
1415
+ viewport: I,
1416
+ content: B || I,
1417
+ scrollOffsetElement: N,
1418
+ scrollEventElement: W,
1419
+ scrollbarHorizontal: rt(Y),
1420
+ scrollbarVertical: rt(Q)
1421
+ });
1422
+ },
1423
+ update: (w) => b({
1424
+ It: w,
1425
+ Tt: !0
1426
+ }),
1427
+ destroy: M(P, !1),
1428
+ plugin: (w) => u[xt(w)[0]]
1429
+ };
1430
+ return st(c, [H]), On(n, D), Ys(qs, Pt, [D, g, u]), bn(E.bn.bt, !r && t.cancel) ? (P(!0), D) : (st(c, F()), S("initialized", [D]), D.update(), D);
1431
+ }
1432
+ return i;
1433
+ };
1434
+ Pt.plugin = (t) => {
1435
+ const e = kt(t), o = e ? t : [t], s = o.map((r) => Ys(r, Pt)[0]);
1436
+ return Fr(o), e ? s : s[0];
1437
+ };
1438
+ Pt.valid = (t) => {
1439
+ const e = t && t.elements, o = St(e) && e();
1440
+ return Ue(o) && !!ar(o.target);
1441
+ };
1442
+ Pt.env = () => {
1443
+ const { P: t, k: e, U: o, J: s, ot: r, st: n, K: i, Z: l, tt: c, nt: u } = Dt();
1444
+ return q({}, {
1445
+ scrollbarsSize: t,
1446
+ scrollbarsOverlaid: e,
1447
+ scrollbarsHiding: o,
1448
+ scrollTimeline: s,
1449
+ staticDefaultInitialization: r,
1450
+ staticDefaultOptions: n,
1451
+ getDefaultInitialization: i,
1452
+ setDefaultInitialization: l,
1453
+ getDefaultOptions: c,
1454
+ setDefaultOptions: u
1455
+ });
1456
+ };
1457
+ Pt.nonce = dn;
1458
+ Pt.trustedTypePolicy = Tr;
1459
+ const $n = _s`:host{--width:31rem;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large);--body-spacing:var(--cx-spacing-medium) var(--cx-spacing-large);--divider-spacing:0;--footer-spacing:var(--cx-spacing-medium);--max-width:100%;--max-height:100%;--overlay-background-color:var(--cx-overlay-background-color);display:contents}.dialog{justify-content:center;align-items:center;display:flex}.dialog--absolute{position:absolute}.dialog__panel{width:var(--width);height:var(--dialog-height,auto);background-color:var(--cx-panel-background-color);border-radius:var(--cx-border-radius-medium);box-shadow:var(--cx-shadow-x-large);max-width:calc(var(--max-width) - var(--cx-spacing-2x-large));max-height:calc(var(--max-height) - var(--cx-spacing-2x-large));flex-direction:column;display:flex;overflow:hidden}.dialog__panel:focus{outline:none}@media screen and (width<=420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{opacity:1;display:flex}.dialog__header{padding:var(--header-spacing);flex:none;display:flex}.dialog__header-divider,.dialog__footer-divider{--spacing:0;padding:var(--divider-spacing)}.dialog__title{font:inherit;font-family:var(--cx-font-sans);font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-large);flex:auto;align-items:center;margin:0;display:flex}.dialog__header-actions{justify-content:end;gap:var(--cx-spacing-2x-small);flex-wrap:wrap;flex-shrink:0;display:flex}.dialog__header-actions cx-icon-button,.dialog__header-actions ::slotted(cx-icon-button){font-size:var(--cx-font-size-3x-large);flex:none;align-items:center;display:flex}.dialog__body{padding:var(--body-spacing);-webkit-overflow-scrolling:touch;font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);line-height:var(--cx-line-height-small);z-index:2;flex:auto;display:block;position:relative;overflow:auto}.dialog--overlay-scrollbar .dialog__body{flex-direction:column;display:flex}.dialog__footer{text-align:right;padding:var(--footer-spacing);z-index:1;flex:none;position:relative}.dialog__footer ::slotted(cx-button:not(:first-of-type)){margin-inline-start:var(--cx-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}@media (forced-colors:active){.dialog__panel{border:solid 1px var(--cx-color-neutral-0)}}.dialog__overlay{background-color:var(--overlay-background-color);opacity:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;display:flex}.dialog--open .dialog__overlay{opacity:1;pointer-events:auto}`;
1460
+ var An = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, ct = (t, e, o, s) => {
1461
+ for (var r = s > 1 ? void 0 : s ? Dn(e, o) : e, n = t.length - 1, i; n >= 0; n--)
1462
+ (i = t[n]) && (r = (s ? i(e, o, r) : i(r)) || r);
1463
+ return s && r && An(e, o, r), r;
1464
+ };
1465
+ Pt.plugin({
1466
+ ClickScroll: an,
1467
+ ScrollbarsHiding: nn,
1468
+ SizeObserver: sn
1469
+ });
1470
+ let Z = class extends hr {
1471
+ constructor() {
1472
+ super(), this.hasSlotController = new mr(this, "footer"), this.localize = new yr(this), this.modal = new gr(this), this.open = !1, this.label = "", this.noHeader = !1, this.boundary = document.body, this.dividerPosition = jt.Header, this.useOverlayScrollbar = !1, this.overlayScrollbarAutoHide = "scroll", this.overlayScrollbarAutoHideDelay = 1e3, this.disableOverlayClick = !1, this.stayOpenOutsideClick = !1, this.strategy = "fixed", this.osInstance = null, this.boundaryObserver = null, this.boundarySize = {
1473
+ height: 0,
1474
+ width: 0
1475
+ }, this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.preventBoundaryDialogClose = this.preventBoundaryDialogClose.bind(this), this.handleWindowResize = this.handleWindowResize.bind(this);
1476
+ }
1477
+ runFirstUpdated() {
1478
+ this.overlay = this.shadowRoot?.querySelector(
1479
+ ".dialog__overlay"
1480
+ );
1481
+ }
1482
+ connectedUpdatedCallback() {
1483
+ this.popup.hidden = !this.open, this.open && (this.addOpenListeners(), this.modal.activate(), (!this.boundary || this.boundary === document.body) && ss(this)), this.updatePopupAnchor();
1484
+ }
1485
+ disconnectedCallback() {
1486
+ super.disconnectedCallback(), this.modal.deactivate(), (!this.boundary || this.boundary === document.body) && rs(this), this.removeOpenListeners(), window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null;
1487
+ }
1488
+ shouldUpdate(t) {
1489
+ if (t.has("boundary")) {
1490
+ const e = t.get("boundary");
1491
+ e instanceof Z && e.removeEventListener(
1492
+ "cx-request-close",
1493
+ this.preventBoundaryDialogClose
1494
+ ), e === document.body && window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null, this.open && this.boundary instanceof Z && this.boundary.addEventListener(
1495
+ "cx-request-close",
1496
+ this.preventBoundaryDialogClose
1497
+ );
1498
+ }
1499
+ return !0;
1500
+ }
1501
+ async updatePopupAnchor() {
1502
+ if (!this.boundary || !this.popup || (this.popup.anchor = this.boundary, !this.overlay))
1503
+ return;
1504
+ let t = this.boundary;
1505
+ this.boundary instanceof Z && (this.boundary.hasUpdated || await this.boundary.updateComplete, t = this.boundary.panel), this.boundary === document.body ? (this.boundarySize = {
1506
+ height: window.innerHeight,
1507
+ width: window.innerWidth
1508
+ }, this.boundaryObserver = null, window.addEventListener("resize", this.handleWindowResize)) : (this.boundarySize = {
1509
+ height: t.clientHeight,
1510
+ width: t.clientWidth
1511
+ }, this.boundaryObserver = new ResizeObserver((e) => {
1512
+ for (const o of e)
1513
+ this.boundarySize = {
1514
+ height: o.contentRect.height,
1515
+ width: o.contentRect.width
1516
+ };
1517
+ }), this.boundaryObserver.observe(t));
1518
+ }
1519
+ handleWindowResize() {
1520
+ this.boundary === document.body && (this.boundarySize = {
1521
+ height: window.innerHeight,
1522
+ width: window.innerWidth
1523
+ });
1524
+ }
1525
+ requestClose(t) {
1526
+ const e = this.emit("cx-request-close", {
1527
+ cancelable: !0,
1528
+ detail: { source: t }
1529
+ });
1530
+ if (e.defaultPrevented || this.disableOverlayClick && t === "overlay") {
1531
+ if (e.detail.preventedReason === "nested" || !this.disableOverlayClick && t === "overlay")
1532
+ return !1;
1533
+ const o = ae(this, "dialog.denyClose", {
1534
+ dir: this.localize.dir()
1535
+ });
1536
+ return ie(this.panel, o.keyframes, o.options), !1;
1537
+ }
1538
+ return this.hide(), !0;
1539
+ }
1540
+ /**
1541
+ * If there are multiple dialogs open, should only close the top-most dialog when clicking outside dialog panel.
1542
+ * @param event - The event object.
1543
+ */
1544
+ preventBoundaryDialogClose(t) {
1545
+ t.target === this.boundary && (t.detail.preventedReason = "nested", t.preventDefault());
1546
+ }
1547
+ addOpenListeners() {
1548
+ "CloseWatcher" in window && (this.closeWatcher?.destroy(), this.closeWatcher = new CloseWatcher(), this.closeWatcher.onclose = () => {
1549
+ this.requestClose("keyboard");
1550
+ }), document.addEventListener("keydown", this.handleDocumentKeyDown, !0), document.addEventListener("mousedown", this.handleDocumentMouseDown, !0), this.boundary instanceof Z && this.boundary.addEventListener(
1551
+ "cx-request-close",
1552
+ this.preventBoundaryDialogClose
1553
+ );
1554
+ }
1555
+ removeOpenListeners() {
1556
+ this.closeWatcher?.destroy(), document.removeEventListener("keydown", this.handleDocumentKeyDown, !0), document.removeEventListener(
1557
+ "mousedown",
1558
+ this.handleDocumentMouseDown,
1559
+ !0
1560
+ ), this.boundary instanceof Z && this.boundary.removeEventListener(
1561
+ "cx-request-close",
1562
+ this.preventBoundaryDialogClose
1563
+ );
1564
+ }
1565
+ handleDocumentMouseDown(t) {
1566
+ const e = t.composedPath(), o = e[0], s = e.some((n) => n === this.panel), r = !this.contains(o) && !this.shadowRoot?.contains(o);
1567
+ s || this.stayOpenOutsideClick && r || this.requestClose("overlay");
1568
+ }
1569
+ handleDocumentKeyDown(t) {
1570
+ t.key === "Escape" && this.modal.isActive() && this.open && this.requestClose("keyboard") && (t.stopPropagation(), t.stopImmediatePropagation());
1571
+ }
1572
+ handleCloseButtonClick() {
1573
+ this.requestClose("close-button");
1574
+ }
1575
+ async handleOpenChange() {
1576
+ if (this.open) {
1577
+ this.emit("cx-show"), this.originalTrigger = document.activeElement, this.modal.activate(), this.useOverlayScrollbar && (this.osInstance = Pt(this.body, {
1578
+ scrollbars: {
1579
+ autoHide: this.overlayScrollbarAutoHide,
1580
+ autoHideDelay: this.overlayScrollbarAutoHideDelay
1581
+ }
1582
+ })), (!this.boundary || this.boundary === document.body) && ss(this);
1583
+ const t = this.querySelector("[autofocus]");
1584
+ if (t && t.removeAttribute("autofocus"), await Promise.all([
1585
+ Te(this.popup),
1586
+ (() => {
1587
+ this.overlay && Te(this.overlay);
1588
+ })()
1589
+ ]), this.popup.hidden = !1, await this.popup.updateComplete, !this.open) {
1590
+ t && t.setAttribute("autofocus", "");
1591
+ return;
1592
+ }
1593
+ const e = () => {
1594
+ this.emit("cx-initial-focus", {
1595
+ cancelable: !0
1596
+ }).defaultPrevented || (t ? t.focus({
1597
+ preventScroll: !0
1598
+ }) : this.panel.focus({ preventScroll: !0 })), t && t.setAttribute("autofocus", "");
1599
+ }, o = ae(this, "dialog.show", {
1600
+ dir: this.localize.dir()
1601
+ }), s = ae(this, "dialog.overlay.show", {
1602
+ dir: this.localize.dir()
1603
+ });
1604
+ if (await Promise.all([
1605
+ ie(this.panel, o.keyframes, o.options),
1606
+ (async () => {
1607
+ this.overlay && await ie(
1608
+ this.overlay,
1609
+ s.keyframes,
1610
+ s.options
1611
+ );
1612
+ })()
1613
+ ]), !this.open) {
1614
+ t && t.setAttribute("autofocus", "");
1615
+ return;
1616
+ }
1617
+ e(), this.emit("cx-after-show"), this.addOpenListeners();
1618
+ } else {
1619
+ this.emit("cx-hide"), this.removeOpenListeners(), this.modal.deactivate(), this.osInstance?.destroy(), await Promise.all([
1620
+ Te(this.popup),
1621
+ (() => {
1622
+ this.overlay && Te(this.overlay);
1623
+ })()
1624
+ ]);
1625
+ const t = ae(this, "dialog.hide", {
1626
+ dir: this.localize.dir()
1627
+ }), e = ae(this, "dialog.overlay.hide", {
1628
+ dir: this.localize.dir()
1629
+ });
1630
+ await Promise.all([
1631
+ (async () => {
1632
+ this.overlay && (await ie(
1633
+ this.overlay,
1634
+ e.keyframes,
1635
+ e.options
1636
+ ), this.overlay.hidden = !0);
1637
+ })(),
1638
+ ie(
1639
+ this.panel,
1640
+ t.keyframes,
1641
+ t.options
1642
+ ).then(() => {
1643
+ this.panel.hidden = !0;
1644
+ })
1645
+ ]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) && rs(this);
1646
+ const o = this.originalTrigger;
1647
+ typeof o?.focus == "function" && setTimeout(() => o.focus()), this.emit("cx-after-hide");
1648
+ }
1649
+ }
1650
+ /** Shows the dialog. */
1651
+ async show() {
1652
+ if (!this.open)
1653
+ return this.open = !0, os(this, "cx-after-show");
1654
+ }
1655
+ /** Hides the dialog */
1656
+ async hide() {
1657
+ if (this.open)
1658
+ return this.open = !1, os(this, "cx-after-hide");
1659
+ }
1660
+ render() {
1661
+ return He`<cx-popup part="base" ?active=${this.open} strategy=${this.strategy === "overlay" ? "overlay" : "fixed"} class=${co({
1662
+ popup: !0
1663
+ })} placement="center"><div class=${co({
1664
+ dialog: !0,
1665
+ "dialog--has-footer": this.hasSlotController.test("footer"),
1666
+ "dialog--open": this.open,
1667
+ "dialog--overlay-scrollbar": this.useOverlayScrollbar
1668
+ })}><div part="overlay" class=${co({
1669
+ dialog__overlay: !0
1670
+ })} tabindex="-1" style=${wr({
1671
+ height: `${this.boundarySize.height}px`,
1672
+ width: `${this.boundarySize.width}px`
1673
+ })}><div part="panel" class="dialog__panel" role="dialog" aria-modal="true" aria-hidden=${this.open ? "false" : "true"} aria-label=${ns(this.noHeader ? this.label : void 0)} aria-labelledby=${ns(this.noHeader ? void 0 : "title")} tabindex="-1">${lo(
1674
+ this.noHeader,
1675
+ () => fr,
1676
+ () => He`<header part="header" class="dialog__header"><h2 part="title" class="dialog__title" id="title"><slot name="label">${this.label.length > 0 ? this.label : "\uFEFF"}</slot></h2><div part="header-actions" class="dialog__header-actions"><slot name="header-actions"></slot><cx-icon-button part="close-button" exportparts="base:close-button__base" class="dialog__close" name="close" label=${this.localize.term("close")} @click=${this.handleCloseButtonClick}></cx-icon-button></div></header>${lo(
1677
+ [
1678
+ jt.Header,
1679
+ jt.Both
1680
+ ].includes(this.dividerPosition),
1681
+ () => He`<cx-divider class="dialog__header-divider"></cx-divider>`
1682
+ )}
1683
+ `
1684
+ )}<!-- The tabindex="-1" is here because the body is technically scrollable if overflowing.
1685
+ However, if there's no focusable elements inside, you won't actually be able to scroll it via keyboard.
1686
+ Previously this was just a <slot>, but tabindex="-1" on the slot causes children to not be focusable.
1687
+ https://github.com/shoelace-style/shoelace/issues/1753#issuecomment-1836803277 --><div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>${lo(
1688
+ [
1689
+ jt.Footer,
1690
+ jt.Both
1691
+ ].includes(this.dividerPosition),
1692
+ () => He`<cx-divider class="dialog__footer-divider"></cx-divider>`
1693
+ )}<footer part="footer" class="dialog__footer"><slot name="footer"></slot></footer></div></div></div></cx-popup>`;
1694
+ }
1695
+ };
1696
+ Z.styles = [
1697
+ vr,
1698
+ Cr,
1699
+ $n
1700
+ ];
1701
+ Z.dependencies = {
1702
+ "cx-divider": xr,
1703
+ "cx-icon-button": Sr,
1704
+ "cx-popup": zr
1705
+ };
1706
+ ct([
1707
+ Eo(".popup")
1708
+ ], Z.prototype, "popup", 2);
1709
+ ct([
1710
+ Eo(".dialog__panel")
1711
+ ], Z.prototype, "panel", 2);
1712
+ ct([
1713
+ Eo(".dialog__body")
1714
+ ], Z.prototype, "body", 2);
1715
+ ct([
1716
+ _t({ reflect: !0, type: Boolean })
1717
+ ], Z.prototype, "open", 2);
1718
+ ct([
1719
+ _t({ reflect: !0 })
1720
+ ], Z.prototype, "label", 2);
1721
+ ct([
1722
+ _t({ attribute: "no-header", reflect: !0, type: Boolean })
1723
+ ], Z.prototype, "noHeader", 2);
1724
+ ct([
1725
+ _t({ type: Object })
1726
+ ], Z.prototype, "boundary", 2);
1727
+ ct([
1728
+ _t({ attribute: "divider-position", reflect: !0, type: String })
1729
+ ], Z.prototype, "dividerPosition", 2);
1730
+ ct([
1731
+ _t({
1732
+ attribute: "use-overlay-scrollbar",
1733
+ reflect: !0,
1734
+ type: Boolean
1735
+ })
1736
+ ], Z.prototype, "useOverlayScrollbar", 2);
1737
+ ct([
1738
+ _t({
1739
+ attribute: "overlay-scrollbar-auto-hide",
1740
+ reflect: !0,
1741
+ type: String
1742
+ })
1743
+ ], Z.prototype, "overlayScrollbarAutoHide", 2);
1744
+ ct([
1745
+ _t({
1746
+ attribute: "overlay-scrollbar-auto-hide-delay",
1747
+ reflect: !0,
1748
+ type: Number
1749
+ })
1750
+ ], Z.prototype, "overlayScrollbarAutoHideDelay", 2);
1751
+ ct([
1752
+ _t({
1753
+ attribute: "disable-overlay-click",
1754
+ reflect: !0,
1755
+ type: Boolean
1756
+ })
1757
+ ], Z.prototype, "disableOverlayClick", 2);
1758
+ ct([
1759
+ _t({
1760
+ attribute: "stay-open-outside-click",
1761
+ reflect: !0,
1762
+ type: Boolean
1763
+ })
1764
+ ], Z.prototype, "stayOpenOutsideClick", 2);
1765
+ ct([
1766
+ _t({ reflect: !0 })
1767
+ ], Z.prototype, "strategy", 2);
1768
+ ct([
1769
+ Do()
1770
+ ], Z.prototype, "overlay", 2);
1771
+ ct([
1772
+ Do()
1773
+ ], Z.prototype, "boundaryObserver", 2);
1774
+ ct([
1775
+ Do()
1776
+ ], Z.prototype, "boundarySize", 2);
1777
+ ct([
1778
+ $s(["boundary"], { waitUntilFirstUpdate: !0 })
1779
+ ], Z.prototype, "updatePopupAnchor", 1);
1780
+ ct([
1781
+ $s("open", { waitUntilFirstUpdate: !0 })
1782
+ ], Z.prototype, "handleOpenChange", 1);
1783
+ Z = ct([
1784
+ br("cx-dialog")
1785
+ ], Z);
1786
+ be("dialog.show", {
1787
+ keyframes: [
1788
+ { opacity: 0 },
1789
+ { opacity: 1 }
1790
+ ],
1791
+ options: { duration: 250, easing: "ease" }
1792
+ });
1793
+ be("dialog.hide", {
1794
+ keyframes: [
1795
+ { opacity: 1 },
1796
+ { opacity: 0 }
1797
+ ],
1798
+ options: { duration: 250, easing: "ease" }
1799
+ });
1800
+ be("dialog.denyClose", {
1801
+ keyframes: [{ scale: 1 }, { scale: 1.02 }, { scale: 1 }],
1802
+ options: { duration: 250 }
1803
+ });
1804
+ be("dialog.overlay.show", {
1805
+ keyframes: [{ opacity: 0 }, { opacity: 1 }],
1806
+ options: { duration: 250 }
1807
+ });
1808
+ be("dialog.overlay.hide", {
1809
+ keyframes: [{ opacity: 1 }, { opacity: 0 }],
1810
+ options: { duration: 250 }
1811
+ });
1812
+ export {
1813
+ Z as C,
1814
+ jt as D,
1815
+ nn as H,
1816
+ Pt as O,
1817
+ sn as a,
1818
+ Cr as o,
1819
+ an as z
1820
+ };