@svgrid/grid-wc 3.0.45 → 3.0.47

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 (103) hide show
  1. package/dist/GridFind-C1YbloFh.js +39 -0
  2. package/dist/GridFooter-DOR8m9GQ.js +142 -0
  3. package/dist/GridMenus-Da8XGbc6.js +1461 -0
  4. package/dist/PinSplitter-Du4ZF8T3.js +178 -0
  5. package/dist/SvChartMenu-B6kpmwUv.js +401 -0
  6. package/dist/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-ByR-LFgf.js} +78 -77
  7. package/dist/SvDateTimePicker-BCxhFb5c.js +763 -0
  8. package/dist/{SvField-C--8r4go.js → SvField-CtzxdF7J.js} +100 -99
  9. package/dist/SvGridCellEditor-BUdVD7xM.js +594 -0
  10. package/dist/SvGridChart-DkKI8-bj.js +3684 -0
  11. package/dist/SvGridChartBuilder-BCQ3W8TY.js +1086 -0
  12. package/dist/SvGridChartPanel-uqul044E.js +1689 -0
  13. package/dist/{SvGridChartView-Bvacwk37.js → SvGridChartView-DWxEFzdM.js} +9 -8
  14. package/dist/SvGridDropdown-CnCQuXaI.js +258 -0
  15. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +12 -3
  16. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  17. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +5 -1
  18. package/dist/chart/SvChartMenu-NxEyX5kU.js +635 -0
  19. package/dist/chart/{chart-export-C43UPY8D.js → chart-export-Dj_zVsjI.js} +5 -7
  20. package/dist/chart/chart-export-pdf-pmzjhHhB.js +156 -0
  21. package/dist/chart/{client-BuB0wIgc.js → client-Y303i9Lw.js} +1317 -1214
  22. package/dist/chart/sv-chart-element.js +2390 -2405
  23. package/dist/chart-export-pdf-DyuVs1gO.js +156 -0
  24. package/dist/client-OtsRxGjS.js +3075 -0
  25. package/dist/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
  26. package/dist/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
  27. package/dist/{date-format-B0RznzxC.js → date-format-DngG1HJ5.js} +402 -407
  28. package/dist/{shadow/export-format-6jDuF2nb.js → export-format-7DhxeN27.js} +2 -2
  29. package/dist/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
  30. package/dist/grid-menu-messages-BEsB6Jhh.js +57 -0
  31. package/dist/history-Q12tf0k-.js +80 -0
  32. package/dist/list-option-DpIu99JN.js +203 -0
  33. package/dist/menu-focus-lmTebXyL.js +45 -0
  34. package/dist/range-commit-C6Rogxem.js +385 -0
  35. package/dist/react/index.d.ts +11 -0
  36. package/dist/react/index.js +2 -1
  37. package/dist/shadow/GridFind-CcoKoisE.js +39 -0
  38. package/dist/shadow/GridFooter-CDq71ytl.js +142 -0
  39. package/dist/shadow/GridMenus-RAp-E3hp.js +1461 -0
  40. package/dist/shadow/PinSplitter-BAYTAZtm.js +178 -0
  41. package/dist/shadow/SvChartMenu-C74rWwjU.js +401 -0
  42. package/dist/shadow/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-9Wq4E64y.js} +78 -77
  43. package/dist/shadow/SvDateTimePicker-y9jPLR19.js +763 -0
  44. package/dist/shadow/{SvField-C--8r4go.js → SvField-DGPj2clt.js} +100 -99
  45. package/dist/shadow/SvGridCellEditor-CzeBp9lp.js +594 -0
  46. package/dist/shadow/SvGridChart-zTsB6F3Y.js +3684 -0
  47. package/dist/shadow/SvGridChartBuilder-VUKgOcp7.js +1086 -0
  48. package/dist/shadow/SvGridChartPanel-DkjEUB7t.js +1689 -0
  49. package/dist/shadow/{SvGridChartView-Bvacwk37.js → SvGridChartView-DQmJahyT.js} +9 -8
  50. package/dist/shadow/SvGridDropdown-B_5kqHQE.js +258 -0
  51. package/dist/shadow/chart-export-pdf-BZy6f5QB.js +156 -0
  52. package/dist/shadow/client-OtsRxGjS.js +3075 -0
  53. package/dist/shadow/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
  54. package/dist/shadow/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
  55. package/dist/shadow/{date-format-B0RznzxC.js → date-format-C9UkbCig.js} +402 -407
  56. package/dist/{export-format-6jDuF2nb.js → shadow/export-format-7DhxeN27.js} +2 -2
  57. package/dist/shadow/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
  58. package/dist/shadow/grid-menu-messages-BEsB6Jhh.js +57 -0
  59. package/dist/shadow/history-Q12tf0k-.js +80 -0
  60. package/dist/shadow/list-option-DpIu99JN.js +203 -0
  61. package/dist/shadow/menu-focus-lmTebXyL.js +45 -0
  62. package/dist/shadow/range-commit-C6Rogxem.js +385 -0
  63. package/dist/shadow/sv-grid-shadow-element.d.ts +7 -0
  64. package/dist/shadow/sv-grid-shadow-element.js +4236 -4469
  65. package/dist/shadow/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
  66. package/dist/sv-grid-element.d.ts +7 -0
  67. package/dist/sv-grid-element.js +4219 -4452
  68. package/dist/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
  69. package/dist/vue/index.d.ts +6 -2
  70. package/dist/vue/index.js +1 -1
  71. package/package.json +4 -4
  72. package/dist/GridFind-DianRZxS.js +0 -39
  73. package/dist/GridFooter-Bp3o5qJX.js +0 -162
  74. package/dist/GridMenus-BYkY3nhr.js +0 -1405
  75. package/dist/PinSplitter-CinhgIrH.js +0 -130
  76. package/dist/SvChartMenu-CgAcTloT.js +0 -413
  77. package/dist/SvDateTimePicker-DyRO_e91.js +0 -770
  78. package/dist/SvGridCellEditor-DHHGSjgp.js +0 -584
  79. package/dist/SvGridChart-BFQLtNmn.js +0 -3703
  80. package/dist/SvGridChartBuilder-CtGuoAOV.js +0 -1166
  81. package/dist/SvGridChartPanel-CeaXNzmV.js +0 -1743
  82. package/dist/SvGridDropdown-CrECQYeq.js +0 -257
  83. package/dist/chart/SvChartMenu-DslxOgPN.js +0 -590
  84. package/dist/chart/chart-export-pdf-C0_y8glC.js +0 -104
  85. package/dist/chart-export-pdf-DDVtypH7.js +0 -104
  86. package/dist/client-DtIdusS4.js +0 -2974
  87. package/dist/focus-trap-Dbb2tJxb.js +0 -65
  88. package/dist/list-option-DrRyivWp.js +0 -82
  89. package/dist/shadow/GridFind-DianRZxS.js +0 -39
  90. package/dist/shadow/GridFooter-DvMFqeNV.js +0 -162
  91. package/dist/shadow/GridMenus-DKLNTKDZ.js +0 -1405
  92. package/dist/shadow/PinSplitter-CinhgIrH.js +0 -130
  93. package/dist/shadow/SvChartMenu-CgAcTloT.js +0 -413
  94. package/dist/shadow/SvDateTimePicker-DyRO_e91.js +0 -770
  95. package/dist/shadow/SvGridCellEditor-DHHGSjgp.js +0 -584
  96. package/dist/shadow/SvGridChart-BFQLtNmn.js +0 -3703
  97. package/dist/shadow/SvGridChartBuilder-CtGuoAOV.js +0 -1166
  98. package/dist/shadow/SvGridChartPanel-CeaXNzmV.js +0 -1743
  99. package/dist/shadow/SvGridDropdown-CrECQYeq.js +0 -257
  100. package/dist/shadow/chart-export-pdf-DDVtypH7.js +0 -104
  101. package/dist/shadow/client-DtIdusS4.js +0 -2974
  102. package/dist/shadow/focus-trap-Dbb2tJxb.js +0 -65
  103. package/dist/shadow/list-option-DrRyivWp.js +0 -82
@@ -1,37 +1,38 @@
1
- (function(){try{var c=".sv-cal.svelte-n0hrlh{--_accent:var(--sg-accent,#2563eb);--_bg:var(--sg-bg,#fff);--_fg:var(--sg-fg,#0f172a);--_muted:var(--sg-muted,#64748b);--_border:var(--sg-border,#e2e8f0);--_hover:var(--sg-row-hover-bg,#2563eb14);--_radius:var(--sg-radius,8px);background:var(--_bg);width:max-content;color:var(--_fg);border:1px solid var(--_border);border-radius:calc(var(--_radius) + 4px);-webkit-user-select:none;user-select:none;gap:10px;padding:10px;font-size:13px;display:inline-flex}.sv-cal--disabled.svelte-n0hrlh{opacity:.55;pointer-events:none}.sv-cal--invalid.svelte-n0hrlh{border-color:var(--sg-danger,#dc2626)}.sv-cal__main.svelte-n0hrlh{flex-direction:column;gap:6px;min-width:0;display:flex}.sv-cal__view.svelte-n0hrlh{display:block;overflow:hidden}.sv-cal__presets.svelte-n0hrlh{border-inline-end:1px solid var(--_border);flex-direction:column;align-self:stretch;gap:2px;min-width:118px;padding-inline-end:10px;display:flex}.sv-cal__preset.svelte-n0hrlh{text-align:start;font:inherit;border-radius:var(--_radius);color:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:6px 10px;font-size:12px;font-weight:550}.sv-cal[dir=rtl].svelte-n0hrlh .sv-cal__nav:where(.svelte-n0hrlh) svg:where(.svelte-n0hrlh){transform:scaleX(-1)}.sv-cal__preset.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_accent)}.sv-cal__preset.svelte-n0hrlh:disabled{opacity:.5;cursor:default}.sv-cal__header.svelte-n0hrlh{align-items:center;gap:4px;display:flex}.sv-cal__title.svelte-n0hrlh{text-align:center;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;flex:1;padding:6px 8px;font-size:13.5px;font-weight:650}.sv-cal__title.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}.sv-cal__title.svelte-n0hrlh:disabled{cursor:default}.sv-cal__nav.svelte-n0hrlh{width:30px;height:30px;color:var(--_muted);cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;display:grid}.sv-cal__nav.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_fg)}.sv-cal__nav.svelte-n0hrlh:disabled{opacity:.4;cursor:default}.sv-cal__panels.svelte-n0hrlh{gap:14px;display:flex}.sv-cal__panel-title.svelte-n0hrlh{text-align:center;color:var(--_muted);margin-bottom:4px;font-size:12.5px;font-weight:600}.sv-cal__weekdays.svelte-n0hrlh,.sv-cal__week.svelte-n0hrlh{grid-template-columns:repeat(7,34px);display:grid}:is(.sv-cal__weekdays.svelte-n0hrlh:has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal__week.svelte-n0hrlh:has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,34px)}.sv-cal__weekday.svelte-n0hrlh,.sv-cal__wk-head.svelte-n0hrlh{height:28px;color:var(--_muted);text-transform:uppercase;letter-spacing:.02em;place-items:center;font-size:11px;font-weight:600;display:grid}.sv-cal__wk.svelte-n0hrlh{height:34px;color:var(--_muted);opacity:.7;place-items:center;font-size:10.5px;display:grid}.sv-cal__day.svelte-n0hrlh{box-sizing:border-box;width:34px;height:34px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid;position:relative}.sv-cal__day--empty.svelte-n0hrlh{visibility:hidden}.sv-cal__day.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__day.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__day.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.55}.sv-cal__day.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:750}.sv-cal__day.is-important.svelte-n0hrlh:after{content:\"\";background:var(--sg-danger,#dc2626);border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.sv-cal__day.is-recurring.svelte-n0hrlh:before{content:\"\";top:4px;pointer-events:none;border:1.5px solid color-mix(in srgb, var(--_accent) 75%, transparent);border-radius:50%;width:5px;height:5px;position:absolute;inset-inline-end:4px}.sv-cal.svelte-n0hrlh:not(.sv-cal--rich) .sv-cal__day.is-selected.is-recurring:where(.svelte-n0hrlh):before{border-color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh){grid-template-columns:repeat(7,minmax(0,1fr))}:is(.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh):has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh):has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,minmax(0,1fr))}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekday:where(.svelte-n0hrlh){justify-items:start;padding-inline-start:6px}.sv-cal--rich.svelte-n0hrlh .sv-cal__day:where(.svelte-n0hrlh){text-align:start;border-radius:8px;flex-direction:column;align-items:stretch;gap:3px;width:auto;height:auto;min-height:90px;padding:4px 5px 6px;display:flex}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh){box-shadow:none}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-selected:where(.svelte-n0hrlh){background:color-mix(in srgb, var(--_accent) 9%, transparent);color:inherit}.sv-cal--rich.svelte-n0hrlh .sv-cal__daynum:where(.svelte-n0hrlh){border-radius:50%;flex:none;align-self:flex-start;place-items:center;width:24px;height:24px;font-size:12.5px;font-weight:600;display:grid}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh) .sv-cal__daynum:where(.svelte-n0hrlh){background:var(--_accent);color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__daybody:where(.svelte-n0hrlh){flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-important:where(.svelte-n0hrlh):after{display:none}.sv-cal__day.is-preview.svelte-n0hrlh{background:color-mix(in srgb, var(--_accent) 16%, transparent);border-radius:0}.sv-cal__day.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal.svelte-n0hrlh:not(.sv-cal--band) .sv-cal__day.is-selected:where(.svelte-n0hrlh){background-clip:content-box;padding:2px}.sv-cal__day.is-selected.is-important.svelte-n0hrlh:after{background:var(--sg-on-accent,#fff)}.sv-cal__day.svelte-n0hrlh:disabled{color:var(--_muted);opacity:.35;cursor:default;text-decoration:line-through}.sv-cal__day.is-focused.svelte-n0hrlh:focus-visible,.sv-cal__day.svelte-n0hrlh:focus-visible,.sv-cal__cell.svelte-n0hrlh:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px}.sv-cal__grid-mode.svelte-n0hrlh{grid-template-columns:repeat(3,1fr);gap:4px;min-width:252px;display:grid}.sv-cal__cell.svelte-n0hrlh{height:44px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid}.sv-cal__cell.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__cell.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__cell.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.5}.sv-cal__cell.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:700}.sv-cal__cell.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal__footer.svelte-n0hrlh{border-top:1px solid var(--_border);justify-content:center;gap:8px;margin-top:2px;padding-top:8px;display:flex}.sv-cal__foot-btn.svelte-n0hrlh{font:inherit;border:1px solid var(--_border);border-radius:var(--_radius);color:var(--_accent);cursor:pointer;background:0 0;padding:5px 12px;font-size:12px;font-weight:600}.sv-cal__foot-btn.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:date-format-B0RznzxC.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:date-format-B0RznzxC.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { $ as e, A as t, D as n, I as r, L as i, M as a, O as o, Q as s, T as c, U as l, V as u, W as d, X as f, Y as p, Z as m, a as h, c as g, d as _, et as v, f as y, h as b, it as x, j as ee, k as S, n as C, nt as w, ot as T, rt as te, tt as E, u as D, w as O, x as ne, y as re, z as k } from "./client-DtIdusS4.js";
3
- import { a as ie, i as A } from "./editor-contract-peBDxir_.js";
4
- import { t as j } from "./SvField-C--8r4go.js";
1
+ (function(){try{var c=".sv-cal.svelte-n0hrlh{--_accent:var(--sg-accent,#2563eb);--_bg:var(--sg-bg,#fff);--_fg:var(--sg-fg,#0f172a);--_muted:var(--sg-muted,#64748b);--_border:var(--sg-border,#e2e8f0);--_hover:var(--sg-row-hover-bg,#2563eb14);--_radius:var(--sg-radius,8px);background:var(--_bg);width:max-content;color:var(--_fg);border:1px solid var(--_border);border-radius:calc(var(--_radius) + 4px);-webkit-user-select:none;user-select:none;gap:10px;padding:10px;font-size:13px;display:inline-flex}.sv-cal--disabled.svelte-n0hrlh{opacity:.55;pointer-events:none}.sv-cal--invalid.svelte-n0hrlh{border-color:var(--sg-danger,#dc2626)}.sv-cal__main.svelte-n0hrlh{flex-direction:column;gap:6px;min-width:0;display:flex}.sv-cal__view.svelte-n0hrlh{display:block;overflow:hidden}.sv-cal__presets.svelte-n0hrlh{border-inline-end:1px solid var(--_border);flex-direction:column;align-self:stretch;gap:2px;min-width:118px;padding-inline-end:10px;display:flex}.sv-cal__preset.svelte-n0hrlh{text-align:start;font:inherit;border-radius:var(--_radius);color:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:6px 10px;font-size:12px;font-weight:550}.sv-cal[dir=rtl].svelte-n0hrlh .sv-cal__nav:where(.svelte-n0hrlh) svg:where(.svelte-n0hrlh){transform:scaleX(-1)}.sv-cal__preset.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_accent)}.sv-cal__preset.svelte-n0hrlh:disabled{opacity:.5;cursor:default}.sv-cal__header.svelte-n0hrlh{align-items:center;gap:4px;display:flex}.sv-cal__title.svelte-n0hrlh{text-align:center;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;flex:1;padding:6px 8px;font-size:13.5px;font-weight:650}.sv-cal__title.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}.sv-cal__title.svelte-n0hrlh:disabled{cursor:default}.sv-cal__nav.svelte-n0hrlh{width:30px;height:30px;color:var(--_muted);cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;display:grid}.sv-cal__nav.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover);color:var(--_fg)}.sv-cal__nav.svelte-n0hrlh:disabled{opacity:.4;cursor:default}.sv-cal__panels.svelte-n0hrlh{gap:14px;display:flex}.sv-cal__panel-title.svelte-n0hrlh{text-align:center;color:var(--_muted);margin-bottom:4px;font-size:12.5px;font-weight:600}.sv-cal__weekdays.svelte-n0hrlh,.sv-cal__week.svelte-n0hrlh{grid-template-columns:repeat(7,34px);display:grid}:is(.sv-cal__weekdays.svelte-n0hrlh:has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal__week.svelte-n0hrlh:has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,34px)}.sv-cal__weekday.svelte-n0hrlh,.sv-cal__wk-head.svelte-n0hrlh{height:28px;color:var(--_muted);text-transform:uppercase;letter-spacing:.02em;place-items:center;font-size:11px;font-weight:600;display:grid}.sv-cal__wk.svelte-n0hrlh{height:34px;color:var(--_muted);opacity:.7;place-items:center;font-size:10.5px;display:grid}.sv-cal__day.svelte-n0hrlh{box-sizing:border-box;width:34px;height:34px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid;position:relative}.sv-cal__day--empty.svelte-n0hrlh{visibility:hidden}.sv-cal__day.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__day.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__day.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.55}.sv-cal__day.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:750}.sv-cal__day.is-important.svelte-n0hrlh:after{content:\"\";background:var(--sg-danger,#dc2626);border-radius:50%;width:4px;height:4px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.sv-cal__day.is-recurring.svelte-n0hrlh:before{content:\"\";top:4px;pointer-events:none;border:1.5px solid color-mix(in srgb, var(--_accent) 75%, transparent);border-radius:50%;width:5px;height:5px;position:absolute;inset-inline-end:4px}.sv-cal.svelte-n0hrlh:not(.sv-cal--rich) .sv-cal__day.is-selected.is-recurring:where(.svelte-n0hrlh):before{border-color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh){grid-template-columns:repeat(7,minmax(0,1fr))}:is(.sv-cal--rich.svelte-n0hrlh .sv-cal__weekdays:where(.svelte-n0hrlh):has(.sv-cal__wk-head:where(.svelte-n0hrlh)),.sv-cal--rich.svelte-n0hrlh .sv-cal__week:where(.svelte-n0hrlh):has(.sv-cal__wk:where(.svelte-n0hrlh))){grid-template-columns:26px repeat(7,minmax(0,1fr))}.sv-cal--rich.svelte-n0hrlh .sv-cal__weekday:where(.svelte-n0hrlh){justify-items:start;padding-inline-start:6px}.sv-cal--rich.svelte-n0hrlh .sv-cal__day:where(.svelte-n0hrlh){text-align:start;border-radius:8px;flex-direction:column;align-items:stretch;gap:3px;width:auto;height:auto;min-height:90px;padding:4px 5px 6px;display:flex}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh){box-shadow:none}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-selected:where(.svelte-n0hrlh){background:color-mix(in srgb, var(--_accent) 9%, transparent);color:inherit}.sv-cal--rich.svelte-n0hrlh .sv-cal__daynum:where(.svelte-n0hrlh){border-radius:50%;flex:none;align-self:flex-start;place-items:center;width:24px;height:24px;font-size:12.5px;font-weight:600;display:grid}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-today:where(.svelte-n0hrlh) .sv-cal__daynum:where(.svelte-n0hrlh){background:var(--_accent);color:var(--sg-on-accent,#fff)}.sv-cal--rich.svelte-n0hrlh .sv-cal__daybody:where(.svelte-n0hrlh){flex-direction:column;flex:1;gap:2px;min-width:0;display:flex;overflow:hidden}.sv-cal--rich.svelte-n0hrlh .sv-cal__day.is-important:where(.svelte-n0hrlh):after{display:none}.sv-cal__day.is-preview.svelte-n0hrlh{background:color-mix(in srgb, var(--_accent) 16%, transparent);border-radius:0}.sv-cal__day.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal.svelte-n0hrlh:not(.sv-cal--band) .sv-cal__day.is-selected:where(.svelte-n0hrlh){background-clip:content-box;padding:2px}.sv-cal__day.is-selected.is-important.svelte-n0hrlh:after{background:var(--sg-on-accent,#fff)}.sv-cal__day.svelte-n0hrlh:disabled{color:var(--_muted);opacity:.35;cursor:default;text-decoration:line-through}.sv-cal__day.is-focused.svelte-n0hrlh:focus-visible,.sv-cal__day.svelte-n0hrlh:focus-visible,.sv-cal__cell.svelte-n0hrlh:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px}.sv-cal__grid-mode.svelte-n0hrlh{grid-template-columns:repeat(3,1fr);gap:4px;min-width:252px;display:grid}.sv-cal__cell.svelte-n0hrlh{height:44px;color:inherit;cursor:pointer;border-radius:var(--_radius);background:0 0;border:0;place-items:center;font-size:12.5px;display:grid}.sv-cal__cell.svelte-n0hrlh:hover:not(:disabled):not(.is-selected){background:var(--_hover)}.sv-cal__cell.is-selected.svelte-n0hrlh:hover:not(:disabled){background:color-mix(in srgb, var(--_accent) 86%, var(--_fg))}.sv-cal__cell.is-outside.svelte-n0hrlh{color:var(--_muted);opacity:.5}.sv-cal__cell.is-today.svelte-n0hrlh{box-shadow:inset 0 0 0 1px var(--_accent);font-weight:700}.sv-cal__cell.is-selected.svelte-n0hrlh{background:var(--_accent);color:var(--sg-on-accent,#fff);font-weight:650}.sv-cal__footer.svelte-n0hrlh{border-top:1px solid var(--_border);justify-content:center;gap:8px;margin-top:2px;padding-top:8px;display:flex}.sv-cal__foot-btn.svelte-n0hrlh{font:inherit;border:1px solid var(--_border);border-radius:var(--_radius);color:var(--_accent);cursor:pointer;background:0 0;padding:5px 12px;font-size:12px;font-weight:600}.sv-cal__foot-btn.svelte-n0hrlh:hover:not(:disabled){background:var(--_hover)}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="grid:date-format-DngG1HJ5.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:date-format-DngG1HJ5.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
+ import { $ as e, A as t, D as n, I as r, J as i, L as a, M as o, O as s, Q as c, T as l, U as u, V as d, W as f, X as p, Y as m, Z as h, a as g, at as _, c as v, d as ee, et as y, f as b, h as te, it as x, j as S, k as C, n as w, q as T, st as E, tt as D, u as O, w as k, x as ne, y as re, z as A } from "./client-OtsRxGjS.js";
3
+ import { a as j, i as ie } from "./editor-contract-peBDxir_.js";
4
+ import { t as M } from "./SvField-CtzxdF7J.js";
5
+ import "./sv-grid-element.js";
5
6
  //#region ../grid/dist/datetime/date-core.js
6
- function M(e) {
7
+ function N(e) {
7
8
  if (e == null) return null;
8
9
  let t = e instanceof Date ? new Date(e.getTime()) : new Date(e);
9
10
  return isNaN(t.getTime()) ? null : t;
10
11
  }
11
- function N(e) {
12
+ function P(e) {
12
13
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
13
14
  }
14
- function P(e) {
15
+ function ae(e) {
15
16
  return new Date(e.getFullYear(), e.getMonth(), 1);
16
17
  }
17
- function ae(e) {
18
+ function oe(e) {
18
19
  return new Date(e.getFullYear(), e.getMonth() + 1, 0);
19
20
  }
20
- function oe(e) {
21
- return ae(e).getDate();
21
+ function se(e) {
22
+ return oe(e).getDate();
22
23
  }
23
24
  function F(e, t = 0) {
24
- let n = N(e), r = (n.getDay() - t + 7) % 7;
25
+ let n = P(e), r = (n.getDay() - t + 7) % 7;
25
26
  return n.setDate(n.getDate() - r), n;
26
27
  }
27
28
  function I(e, t) {
28
29
  return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
29
30
  }
30
- function se(e, t) {
31
+ function ce(e, t) {
31
32
  return !e || !t ? !1 : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
32
33
  }
33
34
  function L(e, t) {
34
- let n = N(e).getTime(), r = N(t).getTime();
35
+ let n = P(e).getTime(), r = P(t).getTime();
35
36
  return n < r ? -1 : +(n > r);
36
37
  }
37
38
  function R(e, t) {
@@ -40,7 +41,7 @@ function R(e, t) {
40
41
  }
41
42
  function z(e, t) {
42
43
  let n = e.getDate(), r = new Date(e.getFullYear(), e.getMonth() + t, 1, e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
43
- return r.setDate(Math.min(n, oe(r))), r;
44
+ return r.setDate(Math.min(n, se(r))), r;
44
45
  }
45
46
  function B(e, t) {
46
47
  return z(e, t * 12);
@@ -49,14 +50,14 @@ function V(e, t, n) {
49
50
  return t && e.getTime() < t.getTime() ? new Date(t.getTime()) : n && e.getTime() > n.getTime() ? new Date(n.getTime()) : e;
50
51
  }
51
52
  function H(e) {
52
- let t = N(e), n = (t.getDay() + 6) % 7;
53
+ let t = P(e), n = (t.getDay() + 6) % 7;
53
54
  t.setDate(t.getDate() - n + 3);
54
55
  let r = new Date(t.getFullYear(), 0, 4), i = (r.getDay() + 6) % 7;
55
56
  r.setDate(r.getDate() - i + 3);
56
57
  let a = t.getTime() - r.getTime();
57
58
  return 1 + Math.round(a / 6048e5);
58
59
  }
59
- function ce(e) {
60
+ function le(e) {
60
61
  let t = Math.floor(e / 10) * 10;
61
62
  return {
62
63
  start: t,
@@ -64,7 +65,7 @@ function ce(e) {
64
65
  };
65
66
  }
66
67
  function U(e, t = 0, n = 6) {
67
- let r = P(e), i = F(r, t), a = [], o = i;
68
+ let r = ae(e), i = F(r, t), a = [], o = i;
68
69
  for (let e = 0; e < n; e++) {
69
70
  let e = [], t = H(o);
70
71
  for (let n = 0; n < 7; n++) e.push({
@@ -76,41 +77,41 @@ function U(e, t = 0, n = 6) {
76
77
  }
77
78
  return a;
78
79
  }
79
- function le(e = 0) {
80
+ function ue(e = 0) {
80
81
  return Array.from({ length: 7 }, (t, n) => (e + n) % 7);
81
82
  }
82
- function W(e, t) {
83
+ function de(e, t) {
83
84
  return new Date(e.getFullYear(), e.getMonth(), e.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
84
85
  }
85
86
  //#endregion
86
87
  //#region ../grid/dist/recurrence.js
87
- var G = 864e5, K = (e) => Math.round(N(e).getTime() / G), q = (e) => new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
88
- function J(e, t) {
89
- return t === -1 ? e.getDate() + 7 > q(e) : Math.floor((e.getDate() - 1) / 7) + 1 === t;
88
+ var W = 864e5, G = (e) => Math.round(P(e).getTime() / W), K = (e) => new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
89
+ function fe(e, t) {
90
+ return t === -1 ? e.getDate() + 7 > K(e) : Math.floor((e.getDate() - 1) / 7) + 1 === t;
90
91
  }
91
- function ue(e, t) {
92
- let n = t.count && t.count >= 1 && t.from != null ? fe(t) : t, r = N(e), i = n.from == null ? null : N(M(n.from) ?? r), a = n.until == null ? null : N(M(n.until) ?? r);
92
+ function pe(e, t) {
93
+ let n = t.count && t.count >= 1 && t.from != null ? me(t) : t, r = P(e), i = n.from == null ? null : P(N(n.from) ?? r), a = n.until == null ? null : P(N(n.until) ?? r);
93
94
  if (i && r < i || a && r > a) return !1;
94
95
  let o = Math.max(1, Math.floor(n.interval ?? 1));
95
96
  switch (n.freq) {
96
- case "daily": return !i || (K(r) - K(i)) % o === 0;
97
+ case "daily": return !i || (G(r) - G(i)) % o === 0;
97
98
  case "weekly": {
98
99
  let e = n.weekdays && n.weekdays.length ? n.weekdays : i ? [i.getDay()] : null;
99
- return !(!e || !e.includes(r.getDay()) || o > 1 && i && Math.round((F(r, 0).getTime() - F(i, 0).getTime()) / (G * 7)) % o !== 0);
100
+ return !(!e || !e.includes(r.getDay()) || o > 1 && i && Math.round((F(r, 0).getTime() - F(i, 0).getTime()) / (W * 7)) % o !== 0);
100
101
  }
101
- case "monthly": return de(r, n) ? !i || ((r.getFullYear() - i.getFullYear()) * 12 + (r.getMonth() - i.getMonth())) % o === 0 : !1;
102
- case "yearly": return n.month != null && r.getMonth() !== n.month || !de(r, n) ? !1 : i ? (r.getFullYear() - i.getFullYear()) % o === 0 : n.month != null || n.day != null || n.weekOfMonth != null;
102
+ case "monthly": return q(r, n) ? !i || ((r.getFullYear() - i.getFullYear()) * 12 + (r.getMonth() - i.getMonth())) % o === 0 : !1;
103
+ case "yearly": return n.month != null && r.getMonth() !== n.month || !q(r, n) ? !1 : i ? (r.getFullYear() - i.getFullYear()) % o === 0 : n.month != null || n.day != null || n.weekOfMonth != null;
103
104
  }
104
105
  }
105
- function de(e, t) {
106
- if (t.weekOfMonth != null && t.weekdays && t.weekdays.length) return t.weekdays.includes(e.getDay()) && J(e, t.weekOfMonth);
107
- let n = t.from == null ? null : (M(t.from) ?? e).getDate(), r = t.day ?? n;
106
+ function q(e, t) {
107
+ if (t.weekOfMonth != null && t.weekdays && t.weekdays.length) return t.weekdays.includes(e.getDay()) && fe(e, t.weekOfMonth);
108
+ let n = t.from == null ? null : (N(t.from) ?? e).getDate(), r = t.day ?? n;
108
109
  if (r == null) return !1;
109
- let i = r < 0 ? q(e) + r + 1 : r;
110
+ let i = r < 0 ? K(e) + r + 1 : r;
110
111
  return e.getDate() === i;
111
112
  }
112
- function fe(e) {
113
- let t = M(e.from);
113
+ function me(e) {
114
+ let t = N(e.from);
114
115
  if (!t) return {
115
116
  ...e,
116
117
  count: void 0
@@ -118,42 +119,42 @@ function fe(e) {
118
119
  let n = {
119
120
  ...e,
120
121
  count: void 0
121
- }, r = N(t), i = 0, a = r, o = 0;
122
- for (; o++ < 48e3 && !(ue(r, n) && (i++, a = r, i >= e.count));) r = new Date(r.getFullYear(), r.getMonth(), r.getDate() + 1);
123
- let s = a, c = e.until == null ? null : N(M(e.until) ?? s), l = c && c < s ? c : s;
122
+ }, r = P(t), i = 0, a = r, o = 0;
123
+ for (; o++ < 48e3 && !(pe(r, n) && (i++, a = r, i >= e.count));) r = new Date(r.getFullYear(), r.getMonth(), r.getDate() + 1);
124
+ let s = a, c = e.until == null ? null : P(N(e.until) ?? s), l = c && c < s ? c : s;
124
125
  return {
125
126
  ...n,
126
127
  until: l
127
128
  };
128
129
  }
129
- function pe(e, t) {
130
- return t ? (Array.isArray(t) ? t : [t]).some((t) => ue(e, t)) : !1;
130
+ function he(e, t) {
131
+ return t ? (Array.isArray(t) ? t : [t]).some((t) => pe(e, t)) : !1;
131
132
  }
132
133
  //#endregion
133
134
  //#region ../grid/dist/datetime/date-selection.js
134
- var me = () => ({
135
+ var ge = () => ({
135
136
  dates: [],
136
137
  anchor: null,
137
138
  rangeStart: null
138
139
  });
139
- function Y(e, t) {
140
+ function J(e, t) {
140
141
  return e.some((e) => I(e, t));
141
142
  }
142
- function X(e, t) {
143
- let n = L(e, t) <= 0 ? N(e) : N(t), r = L(e, t) <= 0 ? N(t) : N(e), i = [], a = n;
143
+ function Y(e, t) {
144
+ let n = L(e, t) <= 0 ? P(e) : P(t), r = L(e, t) <= 0 ? P(t) : P(e), i = [], a = n;
144
145
  for (; L(a, r) <= 0;) i.push(a), a = R(a, 1);
145
146
  return i;
146
147
  }
147
- function he(e) {
148
+ function X(e) {
148
149
  let t = [];
149
- for (let n of e) t.some((e) => I(e, n)) || t.push(N(n));
150
+ for (let n of e) t.some((e) => I(e, n)) || t.push(P(n));
150
151
  return t.sort((e, t) => e.getTime() - t.getTime()), t;
151
152
  }
152
153
  function Z(e, t) {
153
- return Y(e, t) ? e.filter((e) => !I(e, t)) : [...e, N(t)];
154
+ return J(e, t) ? e.filter((e) => !I(e, t)) : [...e, P(t)];
154
155
  }
155
- function ge(e, t, n, r = {}, i = 0) {
156
- let a = N(t), o = () => ({
156
+ function _e(e, t, n, r = {}, i = 0) {
157
+ let a = P(t), o = () => ({
157
158
  dates: [a],
158
159
  anchor: a,
159
160
  rangeStart: null
@@ -162,27 +163,27 @@ function ge(e, t, n, r = {}, i = 0) {
162
163
  case "none": return { ...e };
163
164
  case "default":
164
165
  case "one": return o();
165
- case "zeroOrOne": return Y(e.dates, a) && e.dates.length === 1 ? me() : o();
166
+ case "zeroOrOne": return J(e.dates, a) && e.dates.length === 1 ? ge() : o();
166
167
  case "many":
167
168
  case "zeroOrMany": return {
168
- dates: he(Z(e.dates, a)),
169
+ dates: X(Z(e.dates, a)),
169
170
  anchor: a,
170
171
  rangeStart: null
171
172
  };
172
173
  case "oneOrMany": {
173
174
  let t = Z(e.dates, a);
174
175
  return {
175
- dates: he(t.length === 0 ? [a] : t),
176
+ dates: X(t.length === 0 ? [a] : t),
176
177
  anchor: a,
177
178
  rangeStart: null
178
179
  };
179
180
  }
180
181
  case "oneExtended": return r.shift && e.anchor ? {
181
- dates: X(e.anchor, a),
182
+ dates: Y(e.anchor, a),
182
183
  anchor: e.anchor,
183
184
  rangeStart: null
184
185
  } : r.ctrl ? {
185
- dates: he(Z(e.dates, a)),
186
+ dates: X(Z(e.dates, a)),
186
187
  anchor: a,
187
188
  rangeStart: null
188
189
  } : o();
@@ -195,7 +196,7 @@ function ge(e, t, n, r = {}, i = 0) {
195
196
  };
196
197
  }
197
198
  case "range": return e.rangeStart ? {
198
- dates: X(e.rangeStart, a),
199
+ dates: Y(e.rangeStart, a),
199
200
  anchor: e.rangeStart,
200
201
  rangeStart: null
201
202
  } : {
@@ -212,549 +213,543 @@ function Q(e) {
212
213
  if (!e) return [];
213
214
  let t = [];
214
215
  for (let n of e) {
215
- let e = M(n);
216
+ let e = N(n);
216
217
  e && t.push(e);
217
218
  }
218
219
  return t;
219
220
  }
220
- function _e(e, t, n) {
221
- let r = M(t ?? null), i = M(n ?? null);
221
+ function ve(e, t, n) {
222
+ let r = N(t ?? null), i = N(n ?? null);
222
223
  return !!(r && L(e, r) < 0 || i && L(e, i) > 0);
223
224
  }
224
- function ve(e, t) {
225
- return t ? typeof t == "function" ? t(e) : Q(t).some((t) => I(t, e)) : !1;
226
- }
227
225
  function ye(e, t) {
228
- return _e(e, t.min, t.max) || ve(e, t.restrictedDates);
226
+ return t ? typeof t == "function" ? t(e) : Q(t).some((t) => I(t, e)) : !1;
229
227
  }
230
228
  function be(e, t) {
229
+ return ve(e, t.min, t.max) || ye(e, t.restrictedDates);
230
+ }
231
+ function xe(e, t) {
231
232
  return t ? typeof t == "function" ? t(e) : Q(t).some((t) => I(t, e)) : !1;
232
233
  }
233
234
  //#endregion
234
235
  //#region ../grid/dist/createCalendar.svelte.js
235
- var xe = () => typeof navigator < "u" ? navigator.language : "en-US";
236
- function Se(e) {
236
+ var Se = () => typeof navigator < "u" ? navigator.language : "en-US";
237
+ function Ce(e) {
237
238
  if (e == null) return [];
238
239
  let t = Array.isArray(e) ? e : [e], n = [];
239
240
  for (let e of t) {
240
- let t = M(e);
241
- t && n.push(N(t));
241
+ let t = N(e);
242
+ t && n.push(P(t));
242
243
  }
243
244
  return n;
244
245
  }
245
- function Ce(t) {
246
- let n = () => t.selectionMode?.() ?? "one", r = () => t.firstDayOfWeek?.() ?? 0, i = () => t.weeks?.() ?? 6, a = () => Math.max(1, t.months?.() ?? 1), o = () => t.displayMode?.() ?? "month", c = () => t.disabled?.() ?? !1, l = () => t.readonly?.() ?? !1, u = () => t.locale?.() ?? xe(), f = () => t.dayNameFormat?.() ?? "short", p = () => t.monthNameFormat?.() ?? "long", m = v(s(me())), h = v(s(N(/* @__PURE__ */ new Date()))), g = v("month"), _ = v(s(N(/* @__PURE__ */ new Date()))), y = v(null), b = "fade", x = v(0), ee = w(() => ({
246
+ function we(t) {
247
+ let n = () => t.selectionMode?.() ?? "one", r = () => t.firstDayOfWeek?.() ?? 0, i = () => t.weeks?.() ?? 6, a = () => Math.max(1, t.months?.() ?? 1), o = () => t.displayMode?.() ?? "month", s = () => t.disabled?.() ?? !1, l = () => t.readonly?.() ?? !1, u = () => t.locale?.() ?? Se(), d = () => t.dayNameFormat?.() ?? "short", p = () => t.monthNameFormat?.() ?? "long", m = e(h(ge())), g = e(h(P(/* @__PURE__ */ new Date()))), _ = e("month"), v = e(h(P(/* @__PURE__ */ new Date()))), ee = e(null), b = "fade", te = e(0), x = D(() => ({
247
248
  min: t.min?.() ?? null,
248
249
  max: t.max?.() ?? null,
249
250
  restrictedDates: t.restrictedDates?.() ?? null
250
- })), S = w(() => !c() && !l()), C = "￿", T = !1;
251
- d(() => {
252
- let n = Se(t.value()), r = n.map((e) => e.getTime()).join(",");
253
- if (r !== C && (C = r, e(m, {
254
- dates: n,
255
- anchor: n[n.length - 1] ?? null,
251
+ })), S = D(() => !s() && !l()), C = "￿", w = !1;
252
+ f(() => {
253
+ let e = Ce(t.value()), n = e.map((e) => e.getTime()).join(",");
254
+ if (n !== C && (C = n, c(m, {
255
+ dates: e,
256
+ anchor: e[e.length - 1] ?? null,
256
257
  rangeStart: null
257
- }, !0), !T)) {
258
- T = !0;
259
- let t = n[0] ?? N(/* @__PURE__ */ new Date());
260
- e(h, N(t), !0), e(_, N(t), !0), e(g, o(), !0);
258
+ }, !0), !w)) {
259
+ w = !0;
260
+ let t = e[0] ?? P(/* @__PURE__ */ new Date());
261
+ c(g, P(t), !0), c(v, P(t), !0), c(_, o(), !0);
261
262
  }
262
263
  });
263
- let te = w(() => new Intl.DateTimeFormat(u(), { weekday: f() })), D = w(() => new Intl.DateTimeFormat(u(), {
264
+ let T = D(() => new Intl.DateTimeFormat(u(), { weekday: d() })), E = D(() => new Intl.DateTimeFormat(u(), {
264
265
  month: p(),
265
266
  year: "numeric"
266
- })), O = w(() => new Intl.DateTimeFormat(u(), { month: "short" })), ne = w(() => new Intl.DateTimeFormat(u(), {
267
+ })), O = D(() => new Intl.DateTimeFormat(u(), { month: "short" })), k = D(() => new Intl.DateTimeFormat(u(), {
267
268
  weekday: "long",
268
269
  year: "numeric",
269
270
  month: "long",
270
271
  day: "numeric"
271
- })), re = w(() => le(r()).map((e) => {
272
+ })), ne = D(() => ue(r()).map((e) => {
272
273
  let t = new Date(2021, 7, 1 + e);
273
274
  return {
274
- label: k(te).format(t),
275
+ label: A(T).format(t),
275
276
  weekday: e
276
277
  };
277
- })), ie = w(() => Array.from({ length: a() }, (e, t) => {
278
- let n = z(k(h), t);
278
+ })), re = D(() => Array.from({ length: a() }, (e, t) => {
279
+ let n = z(A(g), t);
279
280
  return {
280
281
  month: n,
281
- title: k(D).format(n),
282
+ title: A(E).format(n),
282
283
  matrix: U(n, r(), i())
283
284
  };
284
- })), A = w(() => {
285
+ })), j = D(() => {
285
286
  if (n() !== "range") return null;
286
- let e = k(m).rangeStart;
287
- return !e || !k(y) ? null : X(e, k(y));
288
- }), j = (e) => !!k(A) && k(A).some((t) => I(t, e));
289
- function P(e, n) {
287
+ let e = A(m).rangeStart;
288
+ return !e || !A(ee) ? null : Y(e, A(ee));
289
+ }), ie = (e) => !!A(j) && A(j).some((t) => I(t, e));
290
+ function M(e, n) {
290
291
  return {
291
- disabled: ye(e, k(ee)),
292
- selected: Y(k(m).dates, e),
293
- important: be(e, t.importantDates?.() ?? null),
292
+ disabled: be(e, A(x)),
293
+ selected: J(A(m).dates, e),
294
+ important: xe(e, t.importantDates?.() ?? null),
294
295
  today: I(e, /* @__PURE__ */ new Date()),
295
- outside: !se(e, n),
296
- focused: I(e, k(_)),
297
- preview: j(e),
298
- recurring: pe(e, t.recurrence?.() ?? null)
296
+ outside: !ce(e, n),
297
+ focused: I(e, A(v)),
298
+ preview: ie(e),
299
+ recurring: he(e, t.recurrence?.() ?? null)
299
300
  };
300
301
  }
301
- let ae = w(() => k(g) === "month" ? k(D).format(k(h)) : k(g) === "year" ? String(k(h).getFullYear()) : (() => {
302
- let { start: e, end: t } = ce(k(h).getFullYear());
302
+ let ae = D(() => A(_) === "month" ? A(E).format(A(g)) : A(_) === "year" ? String(A(g).getFullYear()) : (() => {
303
+ let { start: e, end: t } = le(A(g).getFullYear());
303
304
  return `${e} - ${t}`;
304
- })()), oe = w(() => Array.from({ length: 12 }, (e, t) => ({
305
+ })()), oe = D(() => Array.from({ length: 12 }, (e, t) => ({
305
306
  index: t,
306
- label: k(O).format(new Date(k(h).getFullYear(), t, 1)),
307
- current: t === (/* @__PURE__ */ new Date()).getMonth() && k(h).getFullYear() === (/* @__PURE__ */ new Date()).getFullYear(),
308
- selected: k(m).dates.some((e) => e.getMonth() === t && e.getFullYear() === k(h).getFullYear())
309
- }))), F = w(() => {
310
- let { start: e } = ce(k(h).getFullYear());
307
+ label: A(O).format(new Date(A(g).getFullYear(), t, 1)),
308
+ current: t === (/* @__PURE__ */ new Date()).getMonth() && A(g).getFullYear() === (/* @__PURE__ */ new Date()).getFullYear(),
309
+ selected: A(m).dates.some((e) => e.getMonth() === t && e.getFullYear() === A(g).getFullYear())
310
+ }))), se = D(() => {
311
+ let { start: e } = le(A(g).getFullYear());
311
312
  return Array.from({ length: 12 }, (t, n) => {
312
313
  let r = e - 1 + n;
313
314
  return {
314
315
  year: r,
315
316
  outside: n === 0 || n === 11,
316
317
  current: r === (/* @__PURE__ */ new Date()).getFullYear(),
317
- selected: k(m).dates.some((e) => e.getFullYear() === r)
318
+ selected: A(m).dates.some((e) => e.getFullYear() === r)
318
319
  };
319
320
  });
320
- }), L = w(() => n() === "zeroOrOne" || n() === "zeroOrMany" || n() === "none");
321
- function V(n) {
322
- e(m, n, !0), C = n.dates.map((e) => e.getTime()).join(","), t.onChange?.(n.dates.map((e) => new Date(e.getTime())));
321
+ }), F = D(() => n() === "zeroOrOne" || n() === "zeroOrMany" || n() === "none");
322
+ function L(e) {
323
+ c(m, e, !0), C = e.dates.map((e) => e.getTime()).join(","), t.onChange?.(e.dates.map((e) => new Date(e.getTime())));
323
324
  }
324
- function H(t, i) {
325
- !k(S) || ye(t, k(ee)) || (e(_, N(t), !0), V(ge(k(m), t, n(), {
326
- ctrl: i?.ctrlKey || i?.metaKey,
327
- shift: i?.shiftKey
325
+ function V(e, t) {
326
+ !A(S) || be(e, A(x)) || (c(v, P(e), !0), L(_e(A(m), e, n(), {
327
+ ctrl: t?.ctrlKey || t?.metaKey,
328
+ shift: t?.shiftKey
328
329
  }, r())));
329
330
  }
330
- function W(n, r = k(g)) {
331
- e(h, N(n), !0), e(g, r, !0), E(x), t.onNavigate?.(k(h), k(g));
331
+ function H(e, n = A(_)) {
332
+ c(g, P(e), !0), c(_, n, !0), y(te), t.onNavigate?.(A(g), A(_));
332
333
  }
333
- function G() {
334
- b = "drillUp", k(g) === "month" ? W(k(h), "year") : k(g) === "year" && W(k(h), "decade");
334
+ function de() {
335
+ b = "drillUp", A(_) === "month" ? H(A(g), "year") : A(_) === "year" && H(A(g), "decade");
335
336
  }
336
- function K(e) {
337
- b = e === 1 ? "next" : "prev", k(g) === "month" ? W(z(k(h), e)) : k(g) === "year" ? W(B(k(h), e)) : W(B(k(h), e * 10));
337
+ function W(e) {
338
+ b = e === 1 ? "next" : "prev", A(_) === "month" ? H(z(A(g), e)) : A(_) === "year" ? H(B(A(g), e)) : H(B(A(g), e * 10));
338
339
  }
339
- function q(t) {
340
- b = "drillDown", W(new Date(k(h).getFullYear(), t, 1), "month"), e(_, new Date(k(h).getFullYear(), t, Math.min(k(_).getDate(), 28)), !0);
340
+ function G(e) {
341
+ b = "drillDown", H(new Date(A(g).getFullYear(), e, 1), "month"), c(v, new Date(A(g).getFullYear(), e, Math.min(A(v).getDate(), 28)), !0);
341
342
  }
342
- function J(e) {
343
- b = "drillDown", W(new Date(e, k(h).getMonth(), 1), "year");
343
+ function K(e) {
344
+ b = "drillDown", H(new Date(e, A(g).getMonth(), 1), "year");
344
345
  }
345
- function ue() {
346
+ function fe() {
346
347
  b = "fade";
347
- let t = /* @__PURE__ */ new Date();
348
- W(t, "month"), e(_, N(t), !0), k(S) && H(t);
348
+ let e = /* @__PURE__ */ new Date();
349
+ H(e, "month"), c(v, P(e), !0), A(S) && V(e);
349
350
  }
350
- let de = (e) => new Date(e.getFullYear(), e.getMonth(), 1);
351
- function fe(t) {
352
- if (!k(S)) return;
353
- let n = typeof t.value == "function" ? t.value() : t.value, r = Array.isArray(n), i = r ? n : [n, n], a = M(i[0]), o = M(i[1]);
354
- a && (e(_, N(a), !0), b = "fade", e(h, de(a), !0), E(x), V(r && o ? {
355
- dates: X(a, o),
356
- anchor: N(o),
351
+ let pe = (e) => new Date(e.getFullYear(), e.getMonth(), 1);
352
+ function q(e) {
353
+ if (!A(S)) return;
354
+ let t = typeof e.value == "function" ? e.value() : e.value, n = Array.isArray(t), r = n ? t : [t, t], i = N(r[0]), a = N(r[1]);
355
+ i && (c(v, P(i), !0), b = "fade", c(g, pe(i), !0), y(te), L(n && a ? {
356
+ dates: Y(i, a),
357
+ anchor: P(a),
357
358
  rangeStart: null
358
359
  } : {
359
- dates: [N(a)],
360
- anchor: N(a),
360
+ dates: [P(i)],
361
+ anchor: P(i),
361
362
  rangeStart: null
362
363
  }));
363
364
  }
364
- function he() {
365
- k(S) && V(me());
365
+ function me() {
366
+ A(S) && L(ge());
366
367
  }
367
- let Z = (t) => e(y, t, !0);
368
- function Q(e) {
369
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), k(g) === "year" ? q(k(_).getMonth()) : J(k(_).getFullYear()));
368
+ let X = (e) => c(ee, e, !0);
369
+ function Z(e) {
370
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), A(_) === "year" ? G(A(v).getMonth()) : K(A(v).getFullYear()));
370
371
  }
371
- function _e(t) {
372
- if (k(g) !== "month") return Q(t);
373
- let n = null;
374
- switch (t.key) {
372
+ function Q(e) {
373
+ if (A(_) !== "month") return Z(e);
374
+ let t = null;
375
+ switch (e.key) {
375
376
  case "ArrowLeft":
376
- n = R(k(_), -1);
377
+ t = R(A(v), -1);
377
378
  break;
378
379
  case "ArrowRight":
379
- n = R(k(_), 1);
380
+ t = R(A(v), 1);
380
381
  break;
381
382
  case "ArrowUp":
382
- n = R(k(_), -7);
383
+ t = R(A(v), -7);
383
384
  break;
384
385
  case "ArrowDown":
385
- n = R(k(_), 7);
386
+ t = R(A(v), 7);
386
387
  break;
387
388
  case "Home":
388
- n = R(k(_), -((k(_).getDay() - r() + 7) % 7));
389
+ t = R(A(v), -((A(v).getDay() - r() + 7) % 7));
389
390
  break;
390
391
  case "End":
391
- n = R(k(_), 6 - (k(_).getDay() - r() + 7) % 7);
392
+ t = R(A(v), 6 - (A(v).getDay() - r() + 7) % 7);
392
393
  break;
393
394
  case "PageUp":
394
- n = t.shiftKey ? B(k(_), -1) : z(k(_), -1);
395
+ t = e.shiftKey ? B(A(v), -1) : z(A(v), -1);
395
396
  break;
396
397
  case "PageDown":
397
- n = t.shiftKey ? B(k(_), 1) : z(k(_), 1);
398
+ t = e.shiftKey ? B(A(v), 1) : z(A(v), 1);
398
399
  break;
399
400
  case "Enter":
400
401
  case " ":
401
- t.preventDefault(), H(k(_), t);
402
+ e.preventDefault(), V(A(v), e);
402
403
  return;
403
404
  default: return;
404
405
  }
405
- n && (t.preventDefault(), e(_, N(n), !0), se(k(_), k(h)) || W(k(_), "month"));
406
+ t && (e.preventDefault(), c(v, P(t), !0), ce(A(v), A(g)) || H(A(v), "month"));
406
407
  }
407
408
  return {
408
409
  get view() {
409
- return k(h);
410
+ return A(g);
410
411
  },
411
412
  get mode() {
412
- return k(g);
413
+ return A(_);
413
414
  },
414
415
  get title() {
415
- return k(ae);
416
+ return A(ae);
416
417
  },
417
418
  get panels() {
418
- return k(ie);
419
+ return A(re);
419
420
  },
420
421
  get weekdayHeaders() {
421
- return k(re);
422
+ return A(ne);
422
423
  },
423
424
  get yearCells() {
424
- return k(oe);
425
+ return A(oe);
425
426
  },
426
427
  get decadeCells() {
427
- return k(F);
428
+ return A(se);
428
429
  },
429
430
  get selectedDates() {
430
- return k(m).dates;
431
+ return A(m).dates;
431
432
  },
432
433
  get previewRange() {
433
- return k(A);
434
+ return A(j);
434
435
  },
435
436
  get focusDate() {
436
- return k(_);
437
+ return A(v);
437
438
  },
438
439
  get hoverDate() {
439
- return k(y);
440
+ return A(ee);
440
441
  },
441
442
  get canClear() {
442
- return k(L);
443
+ return A(F);
443
444
  },
444
445
  get isInteractive() {
445
- return k(S);
446
+ return A(S);
446
447
  },
447
448
  get navToken() {
448
- return k(x);
449
+ return A(te);
449
450
  },
450
451
  get navDir() {
451
452
  return b;
452
453
  },
453
- dayState: P,
454
- inPreview: j,
455
- formatFullDate: (e) => k(ne).format(e),
456
- formatMonthTitle: (e) => k(D).format(e),
457
- pickDay: H,
458
- step: K,
459
- drillUp: G,
460
- pickMonth: q,
461
- pickYear: J,
462
- goToday: ue,
463
- applyPreset: fe,
464
- clearSelection: he,
465
- setHover: Z,
466
- onKeydown: _e,
454
+ dayState: M,
455
+ inPreview: ie,
456
+ formatFullDate: (e) => A(k).format(e),
457
+ formatMonthTitle: (e) => A(E).format(e),
458
+ pickDay: V,
459
+ step: W,
460
+ drillUp: de,
461
+ pickMonth: G,
462
+ pickYear: K,
463
+ goToday: fe,
464
+ applyPreset: q,
465
+ clearSelection: me,
466
+ setHover: X,
467
+ onKeydown: Q,
467
468
  navProps(e) {
468
469
  return {
469
470
  type: "button",
470
- disabled: c(),
471
+ disabled: s(),
471
472
  "aria-label": e === 1 ? "Next" : "Previous",
472
- onclick: () => K(e)
473
+ onclick: () => W(e)
473
474
  };
474
475
  },
475
476
  titleProps() {
476
477
  return {
477
478
  type: "button",
478
- disabled: c() || k(g) === "decade",
479
+ disabled: s() || A(_) === "decade",
479
480
  "aria-live": "polite",
480
- onclick: G
481
+ onclick: de
481
482
  };
482
483
  },
483
484
  gridProps() {
484
485
  return {
485
486
  role: "grid",
486
- "aria-label": k(ae),
487
+ "aria-label": A(ae),
487
488
  tabindex: -1,
488
- onkeydown: _e
489
+ onkeydown: Q
489
490
  };
490
491
  },
491
492
  dayProps(e, n) {
492
- let r = P(e.date, n);
493
+ let r = M(e.date, n);
493
494
  return {
494
495
  type: "button",
495
496
  role: "gridcell",
496
497
  "aria-selected": r.selected,
497
498
  "aria-disabled": r.disabled,
498
499
  "aria-current": r.today ? "date" : void 0,
499
- "aria-label": k(ne).format(e.date),
500
+ "aria-label": A(k).format(e.date),
500
501
  title: t.dateTooltip?.()?.(e.date) ?? void 0,
501
502
  tabindex: r.focused ? 0 : -1,
502
- disabled: r.disabled || c(),
503
- onclick: (t) => H(e.date, t),
504
- onpointerenter: () => Z(e.date),
505
- onpointerleave: () => Z(null)
503
+ disabled: r.disabled || s(),
504
+ onclick: (t) => V(e.date, t),
505
+ onpointerenter: () => X(e.date),
506
+ onpointerleave: () => X(null)
506
507
  };
507
508
  },
508
509
  monthCellProps(e) {
509
510
  return {
510
511
  type: "button",
511
- disabled: c(),
512
- onclick: () => q(e)
512
+ disabled: s(),
513
+ onclick: () => G(e)
513
514
  };
514
515
  },
515
516
  yearCellProps(e) {
516
517
  return {
517
518
  type: "button",
518
- disabled: c(),
519
- onclick: () => J(e)
519
+ disabled: s(),
520
+ onclick: () => K(e)
520
521
  };
521
522
  },
522
523
  presetProps(e) {
523
524
  return {
524
525
  type: "button",
525
- disabled: !k(S),
526
- onclick: () => fe(e)
526
+ disabled: !A(S),
527
+ onclick: () => q(e)
527
528
  };
528
529
  }
529
530
  };
530
531
  }
531
532
  //#endregion
532
533
  //#region ../grid/dist/SvCalendar.svelte
533
- var we = a("<button> </button>"), Te = a("<div class=\"sv-cal__presets svelte-n0hrlh\" role=\"group\"></div>"), Ee = a("<div class=\"sv-cal__panel-title svelte-n0hrlh\"> </div>"), De = a("<span class=\"sv-cal__wk-head svelte-n0hrlh\" aria-hidden=\"true\">#</span>"), Oe = a("<span class=\"sv-cal__weekday svelte-n0hrlh\" role=\"columnheader\"> </span>"), ke = a("<div class=\"sv-cal__weekdays svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Ae = a("<span class=\"sv-cal__wk svelte-n0hrlh\" aria-hidden=\"true\"> </span>"), je = a("<span class=\"sv-cal__day sv-cal__day--empty svelte-n0hrlh\" role=\"gridcell\" aria-hidden=\"true\"></span>"), Me = a("<span class=\"sv-cal__daybody svelte-n0hrlh\"><!></span>"), Ne = a("<button><span class=\"sv-cal__daynum svelte-n0hrlh\"> </span><!></button>"), Pe = a("<div class=\"sv-cal__week svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Fe = a("<div class=\"sv-cal__panel\"><!> <!> <!></div>"), Ie = a("<div></div>"), Le = a("<button> </button>"), Re = a("<div></div>"), ze = a("<button> </button>"), Be = a("<div></div>"), Ve = a("<button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button>"), He = a("<div class=\"sv-cal__footer svelte-n0hrlh\"><button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button> <!></div>"), Ue = a("<input type=\"hidden\"/>"), We = a("<div role=\"group\"><!> <div class=\"sv-cal__main svelte-n0hrlh\"><div class=\"sv-cal__header svelte-n0hrlh\"><button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button> <button> </button> <button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M9 18l6-6-6-6\"></path></svg></button></div> <div class=\"sv-cal__view svelte-n0hrlh\"><!></div> <!></div> <!></div>");
534
- function Ge(r, a) {
535
- x(a, !0);
536
- let s = (r) => {
537
- var s = We();
538
- let u;
539
- var d = p(s), v = (e) => {
540
- var n = Te();
541
- O(n, 21, () => a.presets, c, (e, n) => {
542
- var r = we();
543
- D(r, (e) => ({
534
+ var Te = o("<button> </button>"), Ee = o("<div class=\"sv-cal__presets svelte-n0hrlh\" role=\"group\"></div>"), De = o("<div class=\"sv-cal__panel-title svelte-n0hrlh\"> </div>"), Oe = o("<span class=\"sv-cal__wk-head svelte-n0hrlh\" aria-hidden=\"true\">#</span>"), ke = o("<span class=\"sv-cal__weekday svelte-n0hrlh\" role=\"columnheader\"> </span>"), Ae = o("<div class=\"sv-cal__weekdays svelte-n0hrlh\" role=\"row\"><!> <!></div>"), je = o("<span class=\"sv-cal__wk svelte-n0hrlh\" aria-hidden=\"true\"> </span>"), Me = o("<span class=\"sv-cal__day sv-cal__day--empty svelte-n0hrlh\" role=\"gridcell\" aria-hidden=\"true\"></span>"), Ne = o("<span class=\"sv-cal__daybody svelte-n0hrlh\"><!></span>"), Pe = o("<button><span class=\"sv-cal__daynum svelte-n0hrlh\"> </span><!></button>"), Fe = o("<div class=\"sv-cal__week svelte-n0hrlh\" role=\"row\"><!> <!></div>"), Ie = o("<div class=\"sv-cal__panel\"><!> <!> <!></div>"), Le = o("<div></div>"), Re = o("<button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button>"), ze = o("<div class=\"sv-cal__footer svelte-n0hrlh\"><button type=\"button\" class=\"sv-cal__foot-btn svelte-n0hrlh\"> </button> <!></div>"), Be = o("<input type=\"hidden\"/>"), Ve = o("<div role=\"group\"><!> <div class=\"sv-cal__main svelte-n0hrlh\"><div class=\"sv-cal__header svelte-n0hrlh\"><button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button> <button> </button> <button><svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-n0hrlh\"><path d=\"M9 18l6-6-6-6\"></path></svg></button></div> <div class=\"sv-cal__view svelte-n0hrlh\"><!></div> <!></div> <!></div>");
535
+ function He(r, o) {
536
+ _(o, !0);
537
+ let h = (e) => {
538
+ var r = Ve();
539
+ let d;
540
+ var f = T(r), h = (e) => {
541
+ var n = Ee();
542
+ k(n, 21, () => o.presets, l, (e, n) => {
543
+ var r = Te();
544
+ O(r, (e) => ({
544
545
  class: "sv-cal__preset",
545
546
  ...e
546
- }), [() => Z.presetProps(k(n))], void 0, void 0, "svelte-n0hrlh");
547
- var i = p(r, !0);
548
- T(r), l(() => S(i, k(n).label)), t(e, r);
549
- }), T(n), l(() => y(n, "aria-label", k(Y).shortcuts)), t(e, n);
547
+ }), [() => Z.presetProps(A(n))], void 0, void 0, "svelte-n0hrlh");
548
+ var i = m(r, !0);
549
+ u(() => C(i, A(n).label)), t(e, r);
550
+ }), E(n), u(() => b(n, "aria-label", A(J).shortcuts)), t(e, n);
550
551
  };
551
- n(d, (e) => {
552
- a.presets && a.presets.length && e(v);
552
+ n(f, (e) => {
553
+ o.presets && o.presets.length && e(h);
553
554
  });
554
- var x = m(d, 2), C = p(x), te = p(C);
555
- D(te, (e) => ({
555
+ var _ = p(f, 2), y = T(_), x = T(y);
556
+ O(x, (e) => ({
556
557
  class: "sv-cal__nav",
557
558
  ...e
558
559
  }), [() => Z.navProps(-1)], void 0, void 0, "svelte-n0hrlh");
559
- var E = m(te, 2);
560
- D(E, (e) => ({
560
+ var w = p(x, 2);
561
+ O(w, (e) => ({
561
562
  class: "sv-cal__title",
562
563
  ...e
563
564
  }), [() => Z.titleProps()], void 0, void 0, "svelte-n0hrlh");
564
- var ie = p(E, !0);
565
- T(E);
566
- var A = m(E, 2);
567
- D(A, (e) => ({
565
+ var j = m(w, !0), ie = p(w, 2);
566
+ O(ie, (e) => ({
568
567
  class: "sv-cal__nav",
569
568
  ...e
570
- }), [() => Z.navProps(1)], void 0, void 0, "svelte-n0hrlh"), T(C);
571
- var j = m(C, 2), M = p(j), P = (e) => {
572
- var r = Ie();
573
- D(r, (e) => ({
569
+ }), [() => Z.navProps(1)], void 0, void 0, "svelte-n0hrlh"), E(y);
570
+ var M = p(y, 2), N = T(M), ae = (e) => {
571
+ var r = Le();
572
+ O(r, (e) => ({
574
573
  class: "sv-cal__panels",
575
574
  ...e
576
- }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), O(r, 21, () => Z.panels, (e) => e.month.getTime(), (e, r) => {
577
- var i = Fe(), s = p(i), u = (e) => {
578
- var n = Ee(), i = p(n, !0);
579
- T(n), l(() => S(i, k(r).title)), t(e, n);
575
+ }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), k(r, 21, () => Z.panels, (e) => e.month.getTime(), (e, r) => {
576
+ var a = Ie(), c = T(a), d = (e) => {
577
+ var n = De(), i = m(n, !0);
578
+ u(() => C(i, A(r).title)), t(e, n);
580
579
  };
581
- n(s, (e) => {
582
- R() > 1 && e(u);
580
+ n(c, (e) => {
581
+ R() > 1 && e(d);
583
582
  });
584
- var d = m(s, 2), h = (e) => {
585
- var r = ke(), i = p(r), a = (e) => {
586
- var n = De();
583
+ var f = p(c, 2), h = (e) => {
584
+ var r = Ae(), i = T(r), a = (e) => {
585
+ var n = Oe();
587
586
  t(e, n);
588
587
  };
589
588
  n(i, (e) => {
590
589
  L() && e(a);
591
590
  });
592
- var o = m(i, 2);
593
- O(o, 17, () => Z.weekdayHeaders, (e) => e.weekday, (e, n) => {
594
- var r = Oe(), i = p(r, !0);
595
- T(r), l(() => S(i, k(n).label)), t(e, r);
596
- }), T(r), t(e, r);
591
+ var o = p(i, 2);
592
+ k(o, 17, () => Z.weekdayHeaders, (e) => e.weekday, (e, n) => {
593
+ var r = ke(), i = m(r, !0);
594
+ u(() => C(i, A(n).label)), t(e, r);
595
+ }), E(r), t(e, r);
597
596
  };
598
- n(d, (e) => {
597
+ n(f, (e) => {
599
598
  z() || e(h);
600
599
  });
601
- var _ = m(d, 2);
602
- O(_, 17, () => k(r).matrix, c, (e, i) => {
603
- var s = Pe(), c = p(s), u = (e) => {
604
- var n = Ae(), r = p(n, !0);
605
- T(n), l(() => S(r, k(i)[0]?.week)), t(e, n);
600
+ var g = p(f, 2);
601
+ k(g, 17, () => A(r).matrix, l, (e, a) => {
602
+ var c = Fe(), l = T(c), d = (e) => {
603
+ var n = je(), r = m(n, !0);
604
+ u(() => C(r, A(a)[0]?.week)), t(e, n);
606
605
  };
607
- n(c, (e) => {
608
- L() && e(u);
606
+ n(l, (e) => {
607
+ L() && e(d);
609
608
  });
610
- var d = m(c, 2);
611
- O(d, 17, () => k(i), (e) => e.date.getTime(), (e, i) => {
612
- let s = w(() => Z.dayState(k(i).date, k(r).month));
613
- var c = ee(), u = f(c), d = (e) => {
614
- var n = je();
609
+ var f = p(l, 2);
610
+ k(f, 17, () => A(a), (e) => e.date.getTime(), (e, a) => {
611
+ let c = D(() => Z.dayState(A(a).date, A(r).month));
612
+ var l = S(), d = i(l), f = (e) => {
613
+ var n = Me();
615
614
  t(e, n);
616
615
  }, h = (e) => {
617
- var c = Ne();
618
- D(c, (e) => ({
616
+ var i = Pe();
617
+ O(i, (e) => ({
619
618
  class: "sv-cal__day",
620
619
  ...e,
621
- [g]: {
622
- "is-selected": k(s).selected,
623
- "is-today": k(s).today,
624
- "is-outside": k(s).outside,
625
- "is-important": k(s).important,
626
- "is-preview": k(s).preview,
627
- "is-focused": k(s).focused,
628
- "is-recurring": k(s).recurring
620
+ [v]: {
621
+ "is-selected": A(c).selected,
622
+ "is-today": A(c).today,
623
+ "is-outside": A(c).outside,
624
+ "is-important": A(c).important,
625
+ "is-preview": A(c).preview,
626
+ "is-focused": A(c).focused,
627
+ "is-recurring": A(c).recurring
629
628
  }
630
- }), [() => Z.dayProps(k(i), k(r).month)], void 0, void 0, "svelte-n0hrlh");
631
- var u = p(c), d = p(u, !0);
632
- T(u);
633
- var f = m(u), h = (e) => {
634
- var n = Me(), r = p(n);
635
- o(r, () => a.day, () => k(i).date, () => k(s)), T(n), t(e, n);
629
+ }), [() => Z.dayProps(A(a), A(r).month)], void 0, void 0, "svelte-n0hrlh");
630
+ var l = T(i), d = m(l, !0), f = p(l), h = (e) => {
631
+ var n = Ne(), r = T(n);
632
+ s(r, () => o.day, () => A(a).date, () => A(c)), E(n), t(e, n);
636
633
  };
637
634
  n(f, (e) => {
638
- a.day && e(h);
639
- }), T(c), l((e) => S(d, e), [() => k(i).date.getDate()]), t(e, c);
635
+ o.day && e(h);
636
+ }), E(i), u((e) => C(d, e), [() => A(a).date.getDate()]), t(e, i);
640
637
  };
641
- n(u, (e) => {
642
- k(s).outside && k(he) ? e(d) : e(h, -1);
643
- }), t(e, c);
644
- }), T(s), t(e, s);
645
- }), T(i), t(e, i);
646
- }), T(r), t(e, r);
647
- }, ae = (e) => {
648
- var n = Re();
649
- D(n, (e) => ({
638
+ n(d, (e) => {
639
+ A(c).outside && A(X) ? e(f) : e(h, -1);
640
+ }), t(e, l);
641
+ }), E(c), t(e, c);
642
+ }), E(a), t(e, a);
643
+ }), E(r), t(e, r);
644
+ }, oe = (e) => {
645
+ var n = Le();
646
+ O(n, (e) => ({
650
647
  class: "sv-cal__grid-mode",
651
648
  ...e
652
- }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), O(n, 21, () => Z.yearCells, (e) => e.index, (e, n) => {
653
- var r = Le();
654
- D(r, (e) => ({
649
+ }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), k(n, 21, () => Z.yearCells, (e) => e.index, (e, n) => {
650
+ var r = Te();
651
+ O(r, (e) => ({
655
652
  class: "sv-cal__cell",
656
653
  ...e,
657
- [g]: {
658
- "is-today": k(n).current,
659
- "is-selected": k(n).selected
654
+ [v]: {
655
+ "is-today": A(n).current,
656
+ "is-selected": A(n).selected
660
657
  }
661
- }), [() => Z.monthCellProps(k(n).index)], void 0, void 0, "svelte-n0hrlh");
662
- var i = p(r, !0);
663
- T(r), l(() => S(i, k(n).label)), t(e, r);
664
- }), T(n), t(e, n);
665
- }, oe = (e) => {
666
- var n = Be();
667
- D(n, (e) => ({
658
+ }), [() => Z.monthCellProps(A(n).index)], void 0, void 0, "svelte-n0hrlh");
659
+ var i = m(r, !0);
660
+ u(() => C(i, A(n).label)), t(e, r);
661
+ }), E(n), t(e, n);
662
+ }, se = (e) => {
663
+ var n = Le();
664
+ O(n, (e) => ({
668
665
  class: "sv-cal__grid-mode",
669
666
  ...e
670
- }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), O(n, 21, () => Z.decadeCells, (e) => e.year, (e, n) => {
671
- var r = ze();
672
- D(r, (e) => ({
667
+ }), [() => Z.gridProps()], void 0, void 0, "svelte-n0hrlh"), k(n, 21, () => Z.decadeCells, (e) => e.year, (e, n) => {
668
+ var r = Te();
669
+ O(r, (e) => ({
673
670
  class: "sv-cal__cell",
674
671
  ...e,
675
- [g]: {
676
- "is-outside": k(n).outside,
677
- "is-today": k(n).current,
678
- "is-selected": k(n).selected
672
+ [v]: {
673
+ "is-outside": A(n).outside,
674
+ "is-today": A(n).current,
675
+ "is-selected": A(n).selected
679
676
  }
680
- }), [() => Z.yearCellProps(k(n).year)], void 0, void 0, "svelte-n0hrlh");
681
- var i = p(r, !0);
682
- T(r), l(() => S(i, k(n).year)), t(e, r);
683
- }), T(n), t(e, n);
677
+ }), [() => Z.yearCellProps(A(n).year)], void 0, void 0, "svelte-n0hrlh");
678
+ var i = m(r, !0);
679
+ u(() => C(i, A(n).year)), t(e, r);
680
+ }), E(n), t(e, n);
684
681
  };
685
- n(M, (e) => {
686
- Z.mode === "month" ? e(P) : Z.mode === "year" ? e(ae, 1) : e(oe, -1);
687
- }), T(j), h(j, (t) => e(Q, t), () => k(Q));
688
- var F = m(j, 2), I = (e) => {
689
- var r = He(), a = p(r), o = p(a, !0);
690
- T(a);
691
- var s = m(a, 2), c = (e) => {
692
- var n = Ve(), r = p(n, !0);
693
- T(n), l(() => {
694
- n.disabled = U(), S(r, k(Y).clear);
695
- }), i("click", n, function(...e) {
682
+ n(N, (e) => {
683
+ Z.mode === "month" ? e(ae) : Z.mode === "year" ? e(oe, 1) : e(se, -1);
684
+ }), E(M), g(M, (e) => c(Q, e), () => A(Q));
685
+ var F = p(M, 2), I = (e) => {
686
+ var r = ze(), i = T(r), o = m(i, !0), s = p(i, 2), c = (e) => {
687
+ var n = Re(), r = m(n, !0);
688
+ u(() => {
689
+ n.disabled = U(), C(r, A(J).clear);
690
+ }), a("click", n, function(...e) {
696
691
  Z.clearSelection?.apply(this, e);
697
692
  }), t(e, n);
698
693
  };
699
694
  n(s, (e) => {
700
695
  Z.canClear && e(c);
701
- }), T(r), l(() => {
702
- a.disabled = U(), S(o, k(Y).today);
703
- }), i("click", a, function(...e) {
696
+ }), E(r), u(() => {
697
+ i.disabled = U(), C(o, A(J).today);
698
+ }), a("click", i, function(...e) {
704
699
  Z.goToday?.apply(this, e);
705
700
  }), t(e, r);
706
701
  };
707
702
  n(F, (e) => {
708
- ce() && e(I);
709
- }), T(x), ne(x, (e) => ye?.(e));
710
- var se = m(x, 2), B = (e) => {
711
- var n = Ue();
712
- _(n), l((e) => {
713
- y(n, "name", a.name), b(n, e);
703
+ le() && e(I);
704
+ }), E(_), ne(_, (e) => be?.(e));
705
+ var ce = p(_, 2), B = (e) => {
706
+ var n = Be();
707
+ ee(n), u((e) => {
708
+ b(n, "name", o.name), te(n, e);
714
709
  }, [() => Z.selectedDates.map((e) => e.toISOString()).join(",")]), t(e, n);
715
710
  };
716
- n(se, (e) => {
717
- a.name && e(B);
718
- }), T(s), l(() => {
719
- u = re(s, 1, "sv-cal svelte-n0hrlh", null, u, {
711
+ n(ce, (e) => {
712
+ o.name && e(B);
713
+ }), E(r), u(() => {
714
+ d = re(r, 1, "sv-cal svelte-n0hrlh", null, d, {
720
715
  "sv-cal--disabled": U(),
721
- "sv-cal--invalid": de(),
722
- "sv-cal--with-presets": a.presets && a.presets.length,
723
- "sv-cal--band": N() === "range" || N() === "week",
724
- "sv-cal--rich": !!a.day
725
- }), y(s, "id", k(pe)), y(s, "aria-label", a.label ?? k(Y).label), y(s, "aria-disabled", U()), y(s, "dir", k(X)), S(ie, Z.title), s.dir = s.dir;
726
- }), t(r, s);
727
- }, E = {
716
+ "sv-cal--invalid": q(),
717
+ "sv-cal--with-presets": o.presets && o.presets.length,
718
+ "sv-cal--band": P() === "range" || P() === "week",
719
+ "sv-cal--rich": !!o.day
720
+ }), b(r, "id", A(he)), b(r, "aria-label", o.label ?? A(J).label), b(r, "aria-disabled", U()), b(r, "dir", A(Y)), C(j, Z.title), r.dir = r.dir;
721
+ }), t(e, r);
722
+ }, y = {
728
723
  label: "Calendar",
729
724
  shortcuts: "Shortcuts",
730
725
  today: "Today",
731
726
  clear: "Clear",
732
727
  prev: "Previous",
733
728
  next: "Next"
734
- }, M = C(a, "value", 3, null), N = C(a, "selectionMode", 3, "one"), P = C(a, "min", 3, null), ae = C(a, "max", 3, null), oe = C(a, "restrictedDates", 3, null), F = C(a, "importantDates", 3, null), I = C(a, "firstDayOfWeek", 3, 0), se = C(a, "weeks", 3, 6), L = C(a, "weekNumbers", 3, !1), R = C(a, "months", 3, 1), z = C(a, "hideDayNames", 3, !1), B = C(a, "hideOtherMonthDays", 3, !1), V = C(a, "dayNameFormat", 3, "short"), H = C(a, "monthNameFormat", 3, "long"), ce = C(a, "footer", 3, !1), U = C(a, "disabled", 3, !1), le = C(a, "readonly", 3, !1), W = C(a, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), G = C(a, "displayMode", 3, "month"), K = C(a, "animate", 3, !1), q = C(a, "wheelNavigation", 3, !1), J = C(a, "recurrence", 3, null), ue = C(a, "required", 3, !1), de = C(a, "invalid", 3, !1), fe = A("sv-cal"), pe = w(() => a.id ?? fe), me = w(() => !!(a.label || a.hint || a.error)), Y = w(() => ie(E, a.messages)), X = w(() => a.dir === "ltr" || a.dir === "rtl" ? a.dir : void 0), he = w(() => B() || R() > 1), Z = Ce({
735
- value: () => M(),
736
- onChange: (e) => a.onChange?.(e),
737
- onNavigate: (e, t) => a.onNavigate?.(e, t),
738
- selectionMode: () => N(),
739
- min: () => P(),
740
- max: () => ae(),
741
- restrictedDates: () => oe(),
729
+ }, N = w(o, "value", 3, null), P = w(o, "selectionMode", 3, "one"), ae = w(o, "min", 3, null), oe = w(o, "max", 3, null), se = w(o, "restrictedDates", 3, null), F = w(o, "importantDates", 3, null), I = w(o, "firstDayOfWeek", 3, 0), ce = w(o, "weeks", 3, 6), L = w(o, "weekNumbers", 3, !1), R = w(o, "months", 3, 1), z = w(o, "hideDayNames", 3, !1), B = w(o, "hideOtherMonthDays", 3, !1), V = w(o, "dayNameFormat", 3, "short"), H = w(o, "monthNameFormat", 3, "long"), le = w(o, "footer", 3, !1), U = w(o, "disabled", 3, !1), ue = w(o, "readonly", 3, !1), de = w(o, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), W = w(o, "displayMode", 3, "month"), G = w(o, "animate", 3, !1), K = w(o, "wheelNavigation", 3, !1), fe = w(o, "recurrence", 3, null), pe = w(o, "required", 3, !1), q = w(o, "invalid", 3, !1), me = ie("sv-cal"), he = D(() => o.id ?? me), ge = D(() => !!(o.label || o.hint || o.error)), J = D(() => j(y, o.messages)), Y = D(() => o.dir === "ltr" || o.dir === "rtl" ? o.dir : void 0), X = D(() => B() || R() > 1), Z = we({
730
+ value: () => N(),
731
+ onChange: (e) => o.onChange?.(e),
732
+ onNavigate: (e, t) => o.onNavigate?.(e, t),
733
+ selectionMode: () => P(),
734
+ min: () => ae(),
735
+ max: () => oe(),
736
+ restrictedDates: () => se(),
742
737
  importantDates: () => F(),
743
738
  firstDayOfWeek: () => I(),
744
- weeks: () => se(),
739
+ weeks: () => ce(),
745
740
  months: () => R(),
746
- displayMode: () => G(),
741
+ displayMode: () => W(),
747
742
  disabled: () => U(),
748
- readonly: () => le(),
749
- locale: () => W(),
743
+ readonly: () => ue(),
744
+ locale: () => de(),
750
745
  dayNameFormat: () => V(),
751
746
  monthNameFormat: () => H(),
752
- dateTooltip: () => a.dateTooltip,
753
- recurrence: () => J()
754
- }), ge = w(() => K() === !0 ? "slide" : K() || "none"), Q = v(void 0), _e = !1;
755
- function ve() {
756
- if (k(ge) === "none" || !k(Q) || typeof k(Q).animate != "function") return;
757
- let e = k(ge) === "slide", t = Z.navDir, n = e ? t === "next" ? {
747
+ dateTooltip: () => o.dateTooltip,
748
+ recurrence: () => fe()
749
+ }), _e = D(() => G() === !0 ? "slide" : G() || "none"), Q = e(void 0), ve = !1;
750
+ function ye() {
751
+ if (A(_e) === "none" || !A(Q) || typeof A(Q).animate != "function") return;
752
+ let e = A(_e) === "slide", t = Z.navDir, n = e ? t === "next" ? {
758
753
  transform: "translateX(34px)",
759
754
  opacity: 0
760
755
  } : t === "prev" ? {
@@ -770,7 +765,7 @@ function Ge(r, a) {
770
765
  opacity: 0,
771
766
  transform: "scale(0.98)"
772
767
  };
773
- k(Q).animate([n, {
768
+ A(Q).animate([n, {
774
769
  transform: "none",
775
770
  opacity: 1
776
771
  }], {
@@ -778,55 +773,55 @@ function Ge(r, a) {
778
773
  easing: "cubic-bezier(0.16, 1, 0.3, 1)"
779
774
  });
780
775
  }
781
- d(() => {
782
- if (Z.navToken, !_e) {
783
- _e = !0;
776
+ f(() => {
777
+ if (Z.navToken, !ve) {
778
+ ve = !0;
784
779
  return;
785
780
  }
786
- u(ve);
781
+ d(ye);
787
782
  });
788
- function ye(e) {
783
+ function be(e) {
789
784
  let t = (e) => {
790
- !q() || U() || (e.preventDefault(), Z.step(e.deltaY > 0 || e.deltaX > 0 ? 1 : -1));
785
+ !K() || U() || (e.preventDefault(), Z.step(e.deltaY > 0 || e.deltaX > 0 ? 1 : -1));
791
786
  };
792
787
  return e.addEventListener("wheel", t, { passive: !1 }), { destroy: () => e.removeEventListener("wheel", t) };
793
788
  }
794
- var be = ee(), xe = f(be), Se = (e) => {
795
- j(e, {
789
+ var xe = S(), Se = i(xe), Ce = (e) => {
790
+ M(e, {
796
791
  get id() {
797
- return k(pe);
792
+ return A(he);
798
793
  },
799
794
  get label() {
800
- return a.label;
795
+ return o.label;
801
796
  },
802
797
  get hint() {
803
- return a.hint;
798
+ return o.hint;
804
799
  },
805
800
  get error() {
806
- return a.error;
801
+ return o.error;
807
802
  },
808
803
  get required() {
809
- return ue();
804
+ return pe();
810
805
  },
811
806
  get dir() {
812
- return a.dir;
807
+ return o.dir;
813
808
  },
814
809
  children: (e, t) => {
815
- s(e);
810
+ h(e);
816
811
  },
817
812
  $$slots: { default: !0 }
818
813
  });
819
- }, Ge = (e) => {
820
- s(e);
814
+ }, He = (e) => {
815
+ h(e);
821
816
  };
822
- n(xe, (e) => {
823
- k(me) ? e(Se) : e(Ge, -1);
824
- }), t(r, be), te();
817
+ n(Se, (e) => {
818
+ A(ge) ? e(Ce) : e(He, -1);
819
+ }), t(r, xe), x();
825
820
  }
826
821
  r(["click"]);
827
822
  //#endregion
828
823
  //#region ../grid/dist/datetime/date-format.js
829
- var Ke = [
824
+ var Ue = [
830
825
  "dddd",
831
826
  "ddd",
832
827
  "dd",
@@ -851,7 +846,7 @@ var Ke = [
851
846
  "tt",
852
847
  "t"
853
848
  ];
854
- function qe(e) {
849
+ function We(e) {
855
850
  let t = [], n = 0;
856
851
  for (; n < e.length;) {
857
852
  let r = e[n];
@@ -866,7 +861,7 @@ function qe(e) {
866
861
  continue;
867
862
  }
868
863
  let i = null;
869
- for (let t of Ke) if (e.startsWith(t, n)) {
864
+ for (let t of Ue) if (e.startsWith(t, n)) {
870
865
  i = t;
871
866
  break;
872
867
  }
@@ -874,31 +869,31 @@ function qe(e) {
874
869
  }
875
870
  return t;
876
871
  }
877
- var $ = (e, t) => String(Math.abs(e)).padStart(t, "0"), Je = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), Xe = /* @__PURE__ */ new Map();
878
- function Ze(e) {
879
- let t = Je.get(e);
872
+ var $ = (e, t) => String(Math.abs(e)).padStart(t, "0"), Ge = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map();
873
+ function Je(e) {
874
+ let t = Ge.get(e);
880
875
  if (!t) {
881
876
  let n = new Intl.DateTimeFormat(e, { month: "long" }), r = new Intl.DateTimeFormat(e, { month: "short" });
882
877
  t = {
883
878
  long: Array.from({ length: 12 }, (e, t) => n.format(new Date(2021, t, 1))),
884
879
  short: Array.from({ length: 12 }, (e, t) => r.format(new Date(2021, t, 1)))
885
- }, Je.set(e, t);
880
+ }, Ge.set(e, t);
886
881
  }
887
882
  return t;
888
883
  }
889
- function Qe(e) {
890
- let t = Ye.get(e);
884
+ function Ye(e) {
885
+ let t = Ke.get(e);
891
886
  if (!t) {
892
887
  let n = new Intl.DateTimeFormat(e, { weekday: "long" }), r = new Intl.DateTimeFormat(e, { weekday: "short" });
893
888
  t = {
894
889
  long: Array.from({ length: 7 }, (e, t) => n.format(new Date(2021, 7, 1 + t))),
895
890
  short: Array.from({ length: 7 }, (e, t) => r.format(new Date(2021, 7, 1 + t)))
896
- }, Ye.set(e, t);
891
+ }, Ke.set(e, t);
897
892
  }
898
893
  return t;
899
894
  }
900
- function $e(e) {
901
- let t = Xe.get(e);
895
+ function Xe(e) {
896
+ let t = qe.get(e);
902
897
  if (!t) {
903
898
  let n = new Intl.DateTimeFormat(e, {
904
899
  hour: "numeric",
@@ -907,12 +902,12 @@ function $e(e) {
907
902
  t = {
908
903
  am: n.formatToParts(new Date(2021, 0, 1, 9)).find((e) => e.type === "dayPeriod")?.value ?? "AM",
909
904
  pm: n.formatToParts(new Date(2021, 0, 1, 21)).find((e) => e.type === "dayPeriod")?.value ?? "PM"
910
- }, Xe.set(e, t);
905
+ }, qe.set(e, t);
911
906
  }
912
907
  return t;
913
908
  }
914
- function et(e, t, n = "en-US") {
915
- let r = qe(t), i = e.getHours(), a = i % 12 == 0 ? 12 : i % 12, o = e.getMilliseconds(), s = "";
909
+ function Ze(e, t, n = "en-US") {
910
+ let r = We(t), i = e.getHours(), a = i % 12 == 0 ? 12 : i % 12, o = e.getMilliseconds(), s = "";
916
911
  for (let t of r) {
917
912
  if ("literal" in t) {
918
913
  s += t.literal;
@@ -926,10 +921,10 @@ function et(e, t, n = "en-US") {
926
921
  s += $(e.getDate(), 2);
927
922
  break;
928
923
  case "ddd":
929
- s += Qe(n).short[e.getDay()];
924
+ s += Ye(n).short[e.getDay()];
930
925
  break;
931
926
  case "dddd":
932
- s += Qe(n).long[e.getDay()];
927
+ s += Ye(n).long[e.getDay()];
933
928
  break;
934
929
  case "M":
935
930
  s += String(e.getMonth() + 1);
@@ -938,10 +933,10 @@ function et(e, t, n = "en-US") {
938
933
  s += $(e.getMonth() + 1, 2);
939
934
  break;
940
935
  case "MMM":
941
- s += Ze(n).short[e.getMonth()];
936
+ s += Je(n).short[e.getMonth()];
942
937
  break;
943
938
  case "MMMM":
944
- s += Ze(n).long[e.getMonth()];
939
+ s += Je(n).long[e.getMonth()];
945
940
  break;
946
941
  case "yy":
947
942
  s += $(e.getFullYear() % 100, 2);
@@ -983,17 +978,17 @@ function et(e, t, n = "en-US") {
983
978
  s += $(o, 3);
984
979
  break;
985
980
  case "t":
986
- s += (i < 12 ? $e(n).am : $e(n).pm).slice(0, 1);
981
+ s += (i < 12 ? Xe(n).am : Xe(n).pm).slice(0, 1);
987
982
  break;
988
983
  case "tt":
989
- s += i < 12 ? $e(n).am : $e(n).pm;
984
+ s += i < 12 ? Xe(n).am : Xe(n).pm;
990
985
  break;
991
986
  default: s += t.token;
992
987
  }
993
988
  }
994
989
  return s;
995
990
  }
996
- var tt = {
991
+ var Qe = {
997
992
  d: 2,
998
993
  dd: 2,
999
994
  M: 2,
@@ -1012,7 +1007,7 @@ var tt = {
1012
1007
  ff: 2,
1013
1008
  fff: 3
1014
1009
  };
1015
- function nt(e, t, n) {
1010
+ function $e(e, t, n) {
1016
1011
  let r = 0;
1017
1012
  for (; r < n && t + r < e.length && e[t + r] >= "0" && e[t + r] <= "9";) r++;
1018
1013
  return r === 0 ? null : {
@@ -1020,7 +1015,7 @@ function nt(e, t, n) {
1020
1015
  len: r
1021
1016
  };
1022
1017
  }
1023
- function rt(e, t, n) {
1018
+ function et(e, t, n) {
1024
1019
  let r = n.map((e, t) => ({
1025
1020
  name: e,
1026
1021
  index: t
@@ -1031,8 +1026,8 @@ function rt(e, t, n) {
1031
1026
  };
1032
1027
  return null;
1033
1028
  }
1034
- function it(e, t, n = "en-US", r = 2029, i) {
1035
- let a = qe(t), o = {}, s = 0, c = e;
1029
+ function tt(e, t, n = "en-US", r = 2029, i) {
1030
+ let a = We(t), o = {}, s = 0, c = e;
1036
1031
  for (let e of a) {
1037
1032
  if ("literal" in e) {
1038
1033
  for (let t of e.literal) {
@@ -1049,21 +1044,21 @@ function it(e, t, n = "en-US", r = 2029, i) {
1049
1044
  switch (t) {
1050
1045
  case "ddd":
1051
1046
  case "dddd": {
1052
- let e = rt(c, s, Qe(n)[t === "ddd" ? "short" : "long"]);
1047
+ let e = et(c, s, Ye(n)[t === "ddd" ? "short" : "long"]);
1053
1048
  if (!e) return null;
1054
1049
  s += e.len;
1055
1050
  break;
1056
1051
  }
1057
1052
  case "MMM":
1058
1053
  case "MMMM": {
1059
- let e = rt(c, s, Ze(n)[t === "MMM" ? "short" : "long"]);
1054
+ let e = et(c, s, Je(n)[t === "MMM" ? "short" : "long"]);
1060
1055
  if (!e) return null;
1061
1056
  o.month = e.index, s += e.len;
1062
1057
  break;
1063
1058
  }
1064
1059
  case "t":
1065
1060
  case "tt": {
1066
- let e = $e(n), t = c.slice(s).toLowerCase();
1061
+ let e = Xe(n), t = c.slice(s).toLowerCase();
1067
1062
  if (t.startsWith(e.pm.toLowerCase())) o.isPm = !0, s += e.pm.length;
1068
1063
  else if (t.startsWith(e.am.toLowerCase())) o.isPm = !1, s += e.am.length;
1069
1064
  else if (t.startsWith(e.pm.slice(0, 1).toLowerCase())) o.isPm = !0, s += 1;
@@ -1072,7 +1067,7 @@ function it(e, t, n = "en-US", r = 2029, i) {
1072
1067
  break;
1073
1068
  }
1074
1069
  default: {
1075
- let e = nt(c, s, tt[t] ?? 2);
1070
+ let e = $e(c, s, Qe[t] ?? 2);
1076
1071
  if (!e) return null;
1077
1072
  s += e.len;
1078
1073
  let n = e.value;
@@ -1125,4 +1120,4 @@ function it(e, t, n = "en-US", r = 2029, i) {
1125
1120
  return o.day != null && m.getDate() !== p || o.month != null && m.getMonth() !== f || isNaN(m.getTime()) ? null : m;
1126
1121
  }
1127
1122
  //#endregion
1128
- export { V as a, W as c, X as i, it as n, N as o, Ge as r, M as s, et as t };
1123
+ export { V as a, de as c, Y as i, tt as n, P as o, He as r, N as s, Ze as t };