From 8ca22f14bad09734e5a754f71dd22af716ace0d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sko=C4=8D=C3=ADk?= Date: Sat, 23 Jul 2022 18:18:20 +0200 Subject: [PATCH] v2.1.1 --- .../assets/SveltyPicker-31152ba0.css | 1 + .../assets/SveltyPicker-eefb95f0.css | 1 - .../immutable/chunks/SveltyPicker-15fcdb01.js | 4 + .../immutable/chunks/SveltyPicker-f3a80465.js | 4 - .../{index-7de3b327.js => index-840fc8fa.js} | 2 +- ...e.js => custom-element.svelte-a0f6cc30.js} | 2 +- ...54c53.js => formatting.svelte-07ad7b3a.js} | 2 +- ....svx-a4a1023a.js => index.svx-f19385ff.js} | 2 +- ...js => playground@empty.svelte-95d882ed.js} | 2 +- ...9f359f0c.js => styling.svelte-a896d183.js} | 2 +- .../{start-c562367a.js => start-b528e9b5.js} | 2 +- docs/_app/manifest.json | 46 ++-- docs/_app/version.json | 2 +- docs/custom-element.html | 8 +- docs/formatting.html | 10 +- docs/i18n.html | 4 +- docs/index.html | 110 +++++----- docs/options.html | 4 +- docs/playground.html | 16 +- docs/styling.html | 206 +++++++++--------- package.json | 2 +- 21 files changed, 216 insertions(+), 216 deletions(-) create mode 100644 docs/_app/immutable/assets/SveltyPicker-31152ba0.css delete mode 100644 docs/_app/immutable/assets/SveltyPicker-eefb95f0.css create mode 100644 docs/_app/immutable/chunks/SveltyPicker-15fcdb01.js delete mode 100644 docs/_app/immutable/chunks/SveltyPicker-f3a80465.js rename docs/_app/immutable/chunks/{index-7de3b327.js => index-840fc8fa.js} (95%) rename docs/_app/immutable/pages/{custom-element.svelte-69ea5e4e.js => custom-element.svelte-a0f6cc30.js} (96%) rename docs/_app/immutable/pages/{formatting.svelte-84f54c53.js => formatting.svelte-07ad7b3a.js} (98%) rename docs/_app/immutable/pages/{index.svx-a4a1023a.js => index.svx-f19385ff.js} (99%) rename docs/_app/immutable/pages/{playground@empty.svelte-ef244e83.js => playground@empty.svelte-95d882ed.js} (99%) rename docs/_app/immutable/pages/{styling.svelte-9f359f0c.js => styling.svelte-a896d183.js} (99%) rename docs/_app/immutable/{start-c562367a.js => start-b528e9b5.js} (94%) diff --git a/docs/_app/immutable/assets/SveltyPicker-31152ba0.css b/docs/_app/immutable/assets/SveltyPicker-31152ba0.css new file mode 100644 index 0000000..ae572bf --- /dev/null +++ b/docs/_app/immutable/assets/SveltyPicker-31152ba0.css @@ -0,0 +1 @@ +.sdt-cal-td.svelte-12apus2.svelte-12apus2{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main)}.sdt-cal-th.svelte-12apus2.svelte-12apus2{height:24px}.sdt-calendar.svelte-12apus2.svelte-12apus2{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-12apus2.svelte-12apus2{display:grid}.sdt-calendar.is-grid.svelte-12apus2 .sdt-table.svelte-12apus2{grid-column:1/2;grid-row:1/2}.sdt-table.svelte-12apus2.svelte-12apus2{width:100%;border-collapse:collapse}.sdt-table-height.svelte-12apus2.svelte-12apus2{height:222px}.animate-transition.svelte-12apus2.svelte-12apus2{will-change:transform;transition:transform .3s ease}.not-current.svelte-12apus2.svelte-12apus2{opacity:.3}.not-current.svelte-12apus2.svelte-12apus2:hover{opacity:.55}.std-btn.svelte-12apus2.svelte-12apus2{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-12apus2.svelte-12apus2{max-height:32px}.std-btn[disabled].svelte-12apus2.svelte-12apus2{cursor:not-allowed;opacity:.35}.std-btn-header.svelte-12apus2.svelte-12apus2{width:auto;font-weight:700;padding:.375rem .5rem}.std-btn-header.icon-btn.svelte-12apus2.svelte-12apus2:first-of-type{padding-left:.375rem;padding-right:.375rem}.std-btn-header.icon-btn.svelte-12apus2.svelte-12apus2{padding-left:.25rem;padding-right:.25rem}.std-btn.svelte-12apus2.svelte-12apus2:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-12apus2 .std-btn.svelte-12apus2{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:.9}.std-btn-header.svelte-12apus2.svelte-12apus2:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-12apus2.svelte-12apus2{margin-right:-4px}.sdt-time-icon.svelte-12apus2 svg.svelte-12apus2{margin:4px 0}.sdt-tbody-lg.svelte-12apus2.svelte-12apus2{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-12apus2 .std-btn.svelte-12apus2{height:74px}.sdt-thead-nav.svelte-12apus2.svelte-12apus2{display:flex;margin-bottom:.25rem}.sdt-nav-btns.svelte-12apus2.svelte-12apus2{white-space:nowrap}.sdt-toggle-btn.svelte-12apus2.svelte-12apus2{width:100%;text-align:left}.sdt-today.svelte-12apus2.svelte-12apus2:before{box-sizing:border-box;position:absolute;content:"";margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-12apus2.svelte-12apus2{fill:var(--sdt-color)}.sdt-today.svelte-12apus2.svelte-12apus2:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-12apus2.svelte-12apus2:before{border-left-color:#eee;border-top-color:#eee}.sdt-timer.svelte-163fzlc.svelte-163fzlc{position:relative;width:272px}.sdt-time-head.svelte-163fzlc.svelte-163fzlc{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:4px}.sdt-time-figure.svelte-163fzlc.svelte-163fzlc{font-size:1.5rem;font-weight:700}.sdt-clock.svelte-163fzlc.svelte-163fzlc{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color .3s;overflow:hidden}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0 .375rem;color:var(--sdt-color)}.sdt-svg.svelte-163fzlc.svelte-163fzlc{fill:var(--sdt-color)}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc:not(.is-active){opacity:.5}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-163fzlc.svelte-163fzlc{position:absolute;top:0;left:0;padding:.375rem;opacity:1!important}.sdt-meridian.svelte-163fzlc.svelte-163fzlc{position:absolute;top:0;right:40px;display:flex}.sdt-meridian.svelte-163fzlc .sdt-time-btn.svelte-163fzlc{width:56px;font-weight:700}.sdt-middle-dot.svelte-163fzlc.svelte-163fzlc{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-163fzlc.svelte-163fzlc{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform .3s ease,height .15s ease}.sdt-hand-circle.svelte-163fzlc.svelte-163fzlc{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-163fzlc.svelte-163fzlc{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%,-50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent;transition:all .3s}.sdt-tick[disabled].svelte-163fzlc.svelte-163fzlc{cursor:not-allowed}.sdt-tick.outer-tick.svelte-163fzlc.svelte-163fzlc{opacity:0}.sdt-tick.is-selected.svelte-163fzlc.svelte-163fzlc{-webkit-animation:svelte-163fzlc-tick-selection 0s .175s ease-out forwards;animation:svelte-163fzlc-tick-selection 0s .175s ease-out forwards}@-webkit-keyframes svelte-163fzlc-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}@keyframes svelte-163fzlc-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}.sdt-calendar-colors.svelte-pg9n00{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, .25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-pg9n00{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:.25rem .25rem .5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-pg9n00{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-pg9n00{margin-top:.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-pg9n00{padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem}.sdt-today-btn.svelte-pg9n00{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-pg9n00{opacity:.5;cursor:not-allowed}.sdt-today-btn.svelte-pg9n00:focus,.sdt-today-btn.svelte-pg9n00:active,.sdt-today-btn.svelte-pg9n00:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-pg9n00{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-pg9n00:focus,.sdt-clear-btn.svelte-pg9n00:active:not([disabled]),.sdt-clear-btn.svelte-pg9n00:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))} diff --git a/docs/_app/immutable/assets/SveltyPicker-eefb95f0.css b/docs/_app/immutable/assets/SveltyPicker-eefb95f0.css deleted file mode 100644 index f8f456a..0000000 --- a/docs/_app/immutable/assets/SveltyPicker-eefb95f0.css +++ /dev/null @@ -1 +0,0 @@ -.sdt-cal-td.svelte-bnmqg0.svelte-bnmqg0{padding:0;font-size:90%;text-align:center;background-color:var(--sdt-bg-main)}.sdt-cal-th.svelte-bnmqg0.svelte-bnmqg0{height:24px}.sdt-calendar.svelte-bnmqg0.svelte-bnmqg0{height:221px;overflow:hidden}.sdt-calendar.is-grid.svelte-bnmqg0.svelte-bnmqg0{display:grid}.sdt-calendar.is-grid.svelte-bnmqg0 .sdt-table.svelte-bnmqg0{grid-column:1/2;grid-row:1/2}.sdt-table.svelte-bnmqg0.svelte-bnmqg0{width:100%;border-collapse:collapse}.sdt-table-height.svelte-bnmqg0.svelte-bnmqg0{height:222px}.animate-transition.svelte-bnmqg0.svelte-bnmqg0{will-change:transform;transition:transform .3s ease}.not-current.svelte-bnmqg0.svelte-bnmqg0{opacity:.3}.not-current.svelte-bnmqg0.svelte-bnmqg0:hover{opacity:.55}.std-btn.svelte-bnmqg0.svelte-bnmqg0{margin:0;border:0;background:transparent;text-align:center;width:100%;border-radius:4px;cursor:pointer;padding:.3rem;box-sizing:border-box;color:var(--sdt-color)}.sdt-btn-day.svelte-bnmqg0.svelte-bnmqg0{max-height:32px}.std-btn[disabled].svelte-bnmqg0.svelte-bnmqg0{cursor:not-allowed;opacity:.35}.std-btn-header.svelte-bnmqg0.svelte-bnmqg0{width:auto;font-weight:700;padding:.375rem .5rem}.std-btn-header.icon-btn.svelte-bnmqg0.svelte-bnmqg0:first-of-type{padding-left:.375rem;padding-right:.375rem}.std-btn-header.icon-btn.svelte-bnmqg0.svelte-bnmqg0{padding-left:.25rem;padding-right:.25rem}.std-btn.svelte-bnmqg0.svelte-bnmqg0:hover{background-color:var(--sdt-btn-bg-hover)}.is-selected.svelte-bnmqg0 .std-btn.svelte-bnmqg0{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main));opacity:.9}.std-btn-header.svelte-bnmqg0.svelte-bnmqg0:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-time-icon.svelte-bnmqg0.svelte-bnmqg0{margin-right:-4px}.sdt-time-icon.svelte-bnmqg0 svg.svelte-bnmqg0{margin:4px 0}.sdt-tbody-lg.svelte-bnmqg0.svelte-bnmqg0{background-color:var(--sdt-bg-main)}.sdt-tbody-lg.svelte-bnmqg0 .std-btn.svelte-bnmqg0{height:72px}.sdt-thead-nav.svelte-bnmqg0.svelte-bnmqg0{display:flex;margin-bottom:.25rem}.sdt-nav-btns.svelte-bnmqg0.svelte-bnmqg0{white-space:nowrap}.sdt-toggle-btn.svelte-bnmqg0.svelte-bnmqg0{width:100%;text-align:left}.sdt-today.svelte-bnmqg0.svelte-bnmqg0:before{box-sizing:border-box;position:absolute;content:"";margin-left:4px;margin-top:4px;border-left:4px solid var(--sdt-shadow);border-top:4px solid var(--sdt-shadow);border-bottom:4px solid transparent;border-right:4px solid transparent;border-radius:2px;height:4px;z-index:2}.sdt-svg.svelte-bnmqg0.svelte-bnmqg0{fill:var(--sdt-color)}.sdt-today.svelte-bnmqg0.svelte-bnmqg0:hover:before{border-left-color:var(--sdt-primary);border-top-color:var(--sdt-primary)}.is-selected.sdt-today.svelte-bnmqg0.svelte-bnmqg0:before{border-left-color:#eee;border-top-color:#eee}.sdt-timer.svelte-163fzlc.svelte-163fzlc{position:relative;width:272px}.sdt-time-head.svelte-163fzlc.svelte-163fzlc{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:4px}.sdt-time-figure.svelte-163fzlc.svelte-163fzlc{font-size:1.5rem;font-weight:700}.sdt-clock.svelte-163fzlc.svelte-163fzlc{margin:auto;position:relative;width:260px;height:260px;background-color:var(--sdt-clock-bg);border-radius:50%;transition:background-color .3s;overflow:hidden}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc{border:0;background:transparent;text-align:center;border-radius:4px;cursor:pointer;padding:0 .375rem;color:var(--sdt-color)}.sdt-svg.svelte-163fzlc.svelte-163fzlc{fill:var(--sdt-color)}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc:not(.is-active){opacity:.5}.sdt-time-btn.svelte-163fzlc.svelte-163fzlc:hover{background-color:var(--sdt-btn-header-bg-hover)}.sdt-back-btn.svelte-163fzlc.svelte-163fzlc{position:absolute;top:0;left:0;padding:.375rem;opacity:1!important}.sdt-meridian.svelte-163fzlc.svelte-163fzlc{position:absolute;top:0;right:40px;display:flex}.sdt-meridian.svelte-163fzlc .sdt-time-btn.svelte-163fzlc{width:56px;font-weight:700}.sdt-middle-dot.svelte-163fzlc.svelte-163fzlc{left:50%;top:50%;width:6px;height:6px;position:absolute;transform:translate(-50%,-50%);background-color:var(--sdt-primary);border-radius:50%}.sdt-hand-pointer.svelte-163fzlc.svelte-163fzlc{width:2px;height:calc(40% + 1px);bottom:50%;left:calc(50% - 1px);position:absolute;background-color:var(--sdt-primary);transform-origin:center bottom 0;transition:transform .3s ease,height .15s ease}.sdt-hand-circle.svelte-163fzlc.svelte-163fzlc{left:-15px;top:-21px;position:relative;width:4px;height:4px;background-color:transparent;border:14px solid var(--sdt-primary);border-radius:50%;box-sizing:content-box}.sdt-tick.svelte-163fzlc.svelte-163fzlc{position:absolute;width:30px;height:30px;border-width:0;transform:translate(-50%,-50%);text-align:center;border-radius:50%;line-height:20px;cursor:pointer;background-color:transparent;transition:all .3s}.sdt-tick[disabled].svelte-163fzlc.svelte-163fzlc{cursor:not-allowed}.sdt-tick.outer-tick.svelte-163fzlc.svelte-163fzlc{opacity:0}.sdt-tick.is-selected.svelte-163fzlc.svelte-163fzlc{-webkit-animation:svelte-163fzlc-tick-selection 0s .175s ease-out forwards;animation:svelte-163fzlc-tick-selection 0s .175s ease-out forwards}@-webkit-keyframes svelte-163fzlc-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}@keyframes svelte-163fzlc-tick-selection{0%{color:initial;background-color:transparent}to{background-color:var(--sdt-primary);color:var(--sdt-color-selected, var(--sdt-bg-main))}}.sdt-calendar-colors.svelte-pg9n00{--sdt-primary:#286090;--sdt-color:#000;--sdt-bg-main:#fff;--sdt-bg-today:var(--sdt-primary);--sdt-bg-clear:#dc3545;--sdt-today-bg:#1e486d;--sdt-clear-color:#dc3545;--sdt-btn-bg-hover:#eee;--sdt-btn-header-bg-hover:#dfdfdf;--sdt-clock-bg:#eeeded;--sdt-clock-bg-minute:rgb(238, 237, 237, .25);--sdt-clock-bg-shadow:0 0 128px 2px #ddd inset;--sdt-shadow:#ccc}.std-calendar-wrap.svelte-pg9n00{width:280px;background-color:var(--sdt-bg-main);box-shadow:0 1px 6px var(--sdt-shadow);border-radius:4px;padding:.25rem .25rem .5rem;color:var(--sdt-color)}.std-calendar-wrap.is-popup.svelte-pg9n00{box-shadow:0 1px 6px var(--sdt-shadow)}.std-btn-row.svelte-pg9n00{margin-top:.5rem;display:flex;justify-content:space-evenly}.sdt-action-btn.svelte-pg9n00{padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem}.sdt-today-btn.svelte-pg9n00{background-color:var(--sdt-primary);color:var(--sdt-today-color, var(--sdt-bg-main));padding:.25rem .5rem;font-size:.875rem;border-radius:.2rem;border:1px solid var(--sdt-today-bg)}.sdt-today-btn[disabled].svelte-pg9n00{opacity:.5;cursor:not-allowed}.sdt-today-btn.svelte-pg9n00:focus,.sdt-today-btn.svelte-pg9n00:active,.sdt-today-btn.svelte-pg9n00:hover:not([disabled]){background-color:var(--sdt-today-bg)}.sdt-clear-btn.svelte-pg9n00{border:1px solid var(--sdt-clear-color);background-color:transparent;color:var(--sdt-clear-color)}.sdt-clear-btn.svelte-pg9n00:focus,.sdt-clear-btn.svelte-pg9n00:active:not([disabled]),.sdt-clear-btn.svelte-pg9n00:hover:not([disabled]){background-color:var(--sdt-clear-color);color:var(--sdt-clear-hover-color, var(--sdt-bg-main))} diff --git a/docs/_app/immutable/chunks/SveltyPicker-15fcdb01.js b/docs/_app/immutable/chunks/SveltyPicker-15fcdb01.js new file mode 100644 index 0000000..25ddd40 --- /dev/null +++ b/docs/_app/immutable/chunks/SveltyPicker-15fcdb01.js @@ -0,0 +1,4 @@ +import{W as Kt,S as We,i as Ze,s as Xe,l as A,r as fe,a as le,H as _e,m as V,n as B,u as he,h as M,c as ne,I as be,p as b,K as G,b as W,L as F,M as j,X as ye,v as ce,f as ie,g as we,t as re,d as ve,V as Ye,Y as Qe,q as lt,Z as Fe,_ as Pe,$ as Ke,Q as Ne,a0 as Re,a1 as xe,D as Nt,a2 as Se,a3 as xt,a4 as Ue,e as ze,o as $t,a5 as Ee,a6 as At,a7 as el,a8 as je,w as Vt,x as It,y as Ut,B as zt}from"./index-bba13a04.js";const tl={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"},ll={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,inputClasses:"",todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:tl};function nl(l){const t=l-1;return t*t*t+1}function Te(l,{delay:t=0,duration:e=400,easing:n=Kt}={}){const s=+getComputedStyle(l).opacity;return{delay:t,duration:e,easing:n,css:a=>`opacity: ${a*s}`}}const me=0,Ae=1,pe=2;function Ve(l,t,e,n,s){if(e===me){let I=10,w=20;const _=-1,C=[];let T=[],O=l.getFullYear()-l.getFullYear()%10;O-=O%20?12:10,O%10&&(I=12,w=22);for(let x=0;x<32;x++)T.push(O+x),T.length===4&&(C.push(T),T=[]);let Q=null;return t||(t=new Date),t.getFullYear()>=O&&(Q=t.getFullYear()%O),{years:C,todayMark:_,nextFrom:w,prevTo:I,selectionMark:Q}}if(e===Ae){let I=[],w=[],_=12,C=24;const T=l.toISOString().split("T")[0].substring(0,8),O=new Date(T+"01 00:00:00"),Q=O.getFullYear()-1;O.setFullYear(Q);let x=0;for(let U=0;U<3;U++){for(let P=0;P<12;P++)O.setMonth(P),w.push(n.monthsShort[P%12]),w.length===4&&(I.push(w),w=[]);O.setFullYear(O.getFullYear()+1)}let $=null;return t||(t=new Date),t.getFullYear()-Q>=0&&t.getFullYear()-Q<=2&&($=t.getMonth()+(t.getFullYear()-Q||0)*12),{months:I,todayMark:x,nextFrom:C,prevTo:_,selectionMark:$}}let a=l||new Date,r=a.getFullYear(),i=a.getMonth();a.getDate(),a.getHours();let o=new Date,u=new Date(r,i-1,28,0,0,0,0),h=$e.getDaysInMonth(u.getFullYear(),u.getMonth());u.setDate(h),u.setDate(h-(u.getDay()-s+7)%7);let f=new Date(u);f.setDate(f.getDate()+42);let m=f.valueOf(),d=[],g=[],v=-1,D=null,z=0,N=42,k=0;for(;u.valueOf()r||u.getFullYear()===r&&u.getMonth()>i)&&(N=k-1),u.setDate(u.getDate()+1),u.getFullYear()===o.getFullYear()&&u.getMonth()===o.getMonth()&&u.getDate()===o.getDate()&&(v=k),!D&&t&&u.getFullYear()===t.getFullYear()&&u.getMonth()===t.getMonth()&&u.getDate()===t.getDate()&&(D=k),g.length===7&&(d.push(g),g=[]);return{grid:d,todayMark:v,prevTo:z,nextFrom:N,selectionMark:D}}function Ie(l,t){return l<0&&(l=42+l),{x:l%7,y:Math.floor(l/7)}}const $e={isLeapYear:function(l){return l%4===0&&l%100!==0||l%400===0},getDaysInMonth:function(l,t){return[31,$e.isLeapYear(l)?29:28,31,30,31,30,31,31,30,31,30,31][t]}};function nt(l,t){return l instanceof Date?l.getFullYear()t.getFullYear()||l.getMonth()>t.getMonth()||l.getDate()>=t.getDate():!1}function Ce(l,t,e,n){if(l instanceof Date)return l;const s=n==="php"?{date:"Y-m-d",datetime:"Y-m-d H:i",datetime_s:"Y-m-d H:i:s"}:{date:"yyyy-mm-dd",datetime:"yyyy-mm-dd hh:ii",datetime_s:"yyyy-mm-dd hh:ii:ss"};let a;/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(l)?a=Me.parseFormat(s.date,n):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(l)?a=Me.parseFormat(s.datetime,n):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(l)?a=Me.parseFormat(s.datetime_s,n):a=Me.parseFormat(t,n);const r=l&&l.toString().match(Me.nonpunctuation)||[];l=new Date,l.setHours(0,0,0,0);const i={},{setters_order:o,setters_map:u}=Me.setters(n);let h,f;if(r.length!==a.parts.length&&a.parts.includes("S")){const v=r[a.parts.indexOf("S")-1].match(/(\d+)([a-zA-Z]+)/).slice(1,3);r.splice(a.parts.indexOf("S")-1,1,...v)}if(r.length===a.parts.length){for(var m=0,d=a.parts.length;mn.setHours(s),h:(n,s)=>n.setHours(s),HH:(n,s)=>n.setHours(s===12?0:s),H:(n,s)=>n.setHours(s===12?0:s),i:(n,s)=>n.setMinutes(s),s:(n,s)=>n.setSeconds(s),yyyy:(n,s)=>n.setFullYear(s),yy:(n,s)=>n.setFullYear((s<50?2e3:1900)+s),m:(n,s)=>{for(s-=1;s<0;)s+=12;for(s%=12,n.setMonth(s);n.getMonth()!==s;){if(isNaN(n.getMonth()))return n;n.setDate(n.getDate()-1)}return n},d:(n,s)=>n.setDate(s),p:(n,s)=>n.setHours(s===1&&n.getHours()<12?n.getHours()+12:n.getHours()),t:(n,s)=>n.setTime(s),mm:()=>{},M:()=>{},MM:()=>{},ii:()=>{},ss:()=>{},dd:()=>{},D:()=>{},DD:()=>{},P:()=>{}},e.mm=e.M=e.MM=e.m,e.ii=e.i,e.ss=e.s,e.dd=e.D=e.DD=e.d,e.P=e.p):(t=["H","G","h","g","i","s","d","D","j","l","N","S","m","M","F","n","Y","yy","p","P","U"],e={H:(n,s)=>n.setHours(s),G:(n,s)=>n.setHours(s),h:(n,s)=>n.setHours(s===12?0:s),g:(n,s)=>n.setHours(s===12?0:s),i:(n,s)=>n.setMinutes(s),s:(n,s)=>n.setSeconds(s),Y:(n,s)=>n.setFullYear(s),yy:(n,s)=>n.setFullYear((s<50?2e3:1900)+s),m:(n,s)=>{for(s-=1;s<0;)s+=12;for(s%=12,n.setMonth(s);n.getMonth()!==s;){if(isNaN(n.getMonth()))return n;n.setDate(n.getDate()-1)}return n},d:(n,s)=>n.setDate(s),a:(n,s)=>n.setHours(s===1?n.getHours()+12:n.getHours()),U:(n,s)=>n.setTime(s*1e3)},e.F=e.M=e.m,e.D=e.j=e.l=e.N=e.d,e.A=e.a),{setters_order:t,setters_map:e}}};function sl(l,{inputEl:t,visible:e,inputRect:n}){if(!e){const a=l.getBoundingClientRect(),r=["position: absolute","z-index: 12250"];r.push(n.x+a.width>window.innerWidth?"right: 1rem":`left: ${n.left}px`),a.height+a.top>window.innerHeight+window.scrollY?r.push("bottom: 1rem"):r.push(`top: ${n.top+n.height+window.scrollY}px`),l.style=r.join(";"),l.hidden=!1,document.body.appendChild(l)}l.hidden=!1;function s(){l.parentNode&&l.parentNode.removeChild(l)}return{destroy:s}}function al(l,{delay:t=0,duration:e=400,easing:n=nl,start:s=0,end:a=1,opacity:r=0}={}){const i=getComputedStyle(l),o=+i.opacity,u=i.transform==="none"?"":i.transform,h=1-s,f=o*(1-r);return{delay:t,duration:e,easing:n,css:(m,d)=>` + transform: ${u} scale(${a!==1?s+a*d:1-h*d}); + opacity: ${o-f*d}; + `}}function at(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function it(l,t,e){const n=l.slice();return n[42]=t[e],n[44]=e,n}function rt(l,t,e){const n=l.slice();return n[45]=t[e],n}function ot(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function ut(l,t,e){const n=l.slice();return n[49]=t[e],n[44]=e,n}function ft(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function ht(l,t,e){const n=l.slice();return n[52]=t[e],n[44]=e,n}function ct(l){let t,e,n,s,a,r;return{c(){t=A("button"),e=_e("svg"),n=_e("path"),this.h()},l(i){t=V(i,"BUTTON",{class:!0,title:!0});var o=B(t);e=be(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var u=B(e);n=be(u,"path",{"fill-rule":!0,d:!0}),B(n).forEach(M),u.forEach(M),o.forEach(M),this.h()},h(){b(n,"fill-rule","evenodd"),b(n,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),b(e,"class","sdt-svg svelte-12apus2"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"viewBox","0 0 16 16"),b(e,"width","16"),b(e,"height","16"),b(t,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-12apus2"),b(t,"title",s=l[0].timeView)},m(i,o){W(i,t,o),F(t,e),F(e,n),a||(r=j(t,"click",ye(l[21])),a=!0)},p(i,o){o[0]&1&&s!==(s=i[0].timeView)&&b(t,"title",s)},d(i){i&&M(t),a=!1,r()}}}function dt(l){let t,e,n,s,a,r,i,o,u=l[10].years,h=[];for(let f=0;f{a&&a.end(1),s=Pe(e,l[12],{duration:He,start:l[14],opacity:1}),s.start()}),r=!0)},o(f){s&&s.invalidate(),f&&(a=Ke(e,l[12],{duration:He,end:l[13],start:1})),r=!1},d(f){f&&M(t),Ne(h,f),f&&a&&a.end(),i=!1,Ye(o)}}}function gt(l,t){let e,n,s=t[52]+"",a,r,i,o;function u(){return t[29](t[52])}return{key:l,first:null,c(){e=A("td"),n=A("button"),a=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);a=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn svelte-12apus2"),n.disabled=r=t[16](new Date(t[52],t[3].getMonth(),t[3].getDate())),G(n,"not-current",!t[15](t[41]*4+t[44])),b(e,"class","svelte-12apus2"),G(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,a),i||(o=j(n,"click",ye(u)),i=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[52]+"")&&ce(a,s),f[0]&1032&&r!==(r=t[16](new Date(t[52],t[3].getMonth(),t[3].getDate())))&&(n.disabled=r),f[0]&33792&&G(n,"not-current",!t[15](t[41]*4+t[44])),f[0]&1024&&G(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark)},d(h){h&&M(e),i=!1,o()}}}function mt(l){let t,e=[],n=new Map,s,a=l[39];const r=i=>i[44];for(let i=0;i{a&&a.end(1),s=Pe(e,l[12],{duration:He,start:l[14],opacity:1}),s.start()}),r=!0)},o(f){s&&s.invalidate(),f&&(a=Ke(e,l[12],{duration:He,end:l[13],start:1})),r=!1},d(f){f&&M(t),Ne(h,f),f&&a&&a.end(),i=!1,Ye(o)}}}function bt(l,t){let e,n,s=t[49]+"",a,r,i,o;function u(){return t[31](t[49])}return{key:l,first:null,c(){e=A("td"),n=A("button"),a=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);a=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn svelte-12apus2"),n.disabled=r=t[16](new Date(t[3].getFullYear(),t[0].monthsShort.indexOf(t[49]),t[3].getDate())),G(n,"not-current",!t[15](t[41]*4+t[44])),b(e,"class","svelte-12apus2"),G(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,a),i||(o=j(n,"click",ye(u)),i=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[49]+"")&&ce(a,s),f[0]&1033&&r!==(r=t[16](new Date(t[3].getFullYear(),t[0].monthsShort.indexOf(t[49]),t[3].getDate())))&&(n.disabled=r),f[0]&33792&&G(n,"not-current",!t[15](t[41]*4+t[44])),f[0]&1024&&G(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark)},d(h){h&&M(e),i=!1,o()}}}function yt(l){let t,e=[],n=new Map,s,a=l[39];const r=i=>i[44];for(let i=0;i{r&&r.end(1),a=Pe(e,l[12],{duration:He,start:.5,opacity:1}),a.start()}),i=!0)},o(g){a&&a.invalidate(),g&&(r=Ke(e,l[12],{duration:He,start:Math.abs(l[5])})),i=!1},d(g){g&&M(t),Ne(f,g),Ne(d,g),g&&r&&r.end(),o=!1,u()}}}function Dt(l){let t,e=l[45]+"",n;return{c(){t=A("th"),n=fe(e),this.h()},l(s){t=V(s,"TH",{class:!0});var a=B(t);n=he(a,e),a.forEach(M),this.h()},h(){b(t,"class","sdt-cal-th svelte-12apus2")},m(s,a){W(s,t,a),F(t,n)},p(s,a){a[0]&2048&&e!==(e=s[45]+"")&&ce(n,e)},d(s){s&&M(t)}}}function Mt(l,t){let e,n,s=t[42].getDate()+"",a,r,i,o;function u(){return t[33](t[42])}return{key:l,first:null,c(){e=A("td"),n=A("button"),a=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);a=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn sdt-btn-day svelte-12apus2"),n.disabled=r=t[16](t[42]),G(n,"not-current",!t[15](t[41]*7+t[44])),b(e,"class","sdt-cal-td svelte-12apus2"),G(e,"sdt-today",t[41]*7+t[44]===t[10].todayMark),G(e,"is-selected",t[41]*7+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,a),i||(o=j(n,"click",ye(u)),i=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[42].getDate()+"")&&ce(a,s),f[0]&1024&&r!==(r=t[16](t[42]))&&(n.disabled=r),f[0]&33792&&G(n,"not-current",!t[15](t[41]*7+t[44])),f[0]&1024&&G(e,"sdt-today",t[41]*7+t[44]===t[10].todayMark),f[0]&1024&&G(e,"is-selected",t[41]*7+t[44]===t[10].selectionMark)},d(h){h&&M(e),i=!1,o()}}}function pt(l){let t,e=[],n=new Map,s,a=l[39];const r=i=>i[44];for(let i=0;i{w=null}),ve()),T[4]===Ae?_?(_.p(T,O),O[0]&16&&ie(_,1)):(_=_t(T),_.c(),ie(_,1),_.m(v,z)):_&&(we(),re(_,1,1,()=>{_=null}),ve()),T[4]===pe?C?(C.p(T,O),O[0]&16&&ie(C,1)):(C=kt(T),C.c(),ie(C,1),C.m(v,null)):C&&(we(),re(C,1,1,()=>{C=null}),ve()),O[0]&64&&G(v,"is-grid",T[6])},i(T){ie(w),ie(_),ie(C)},o(T){re(w),re(_),re(C)},d(T){T&&M(t),I&&I.d(),T&&M(g),T&&M(v),w&&w.d(),_&&_.d(),C&&C.d(),N=!1,Ye(k)}}}let He=400;const ge=222,Oe=148;function rl(l,t,e){let n,s,a,r,i,o,u,{date:h=null}=t,{startDate:f=null}=t,{endDate:m=null}=t,{weekStart:d=1}=t,{i18n:g}=t,{enableTimeToggle:v=!1}=t;function D(p,R){if(!N){J(new Date);return}let H,q;switch(p){case"PageDown":R=!0;case"ArrowDown":if(R)return z(k.getFullYear(),k.getMonth()+1,1);if(q=i.selectionMark+7,q>=i.nextFrom){const ae=new Date(k.getFullYear(),k.getUTCMonth()+1,28);let X=Ve(ae,N,w,g,d);$(1),H=X.selectionMark!==null?{y:Math.floor((X.selectionMark+7)/7),x:(X.selectionMark+7)%7}:{y:(q+7)%70?0:-1),k.getMonth()>0?k.getMonth()-1:11,1),X=Ve(ae,N,w,g,d);$(-1),H=X.selectionMark!==null?{x:Math.floor((X.selectionMark-7)/7),y:(X.selectionMark-7)%7}:{x:5,y:q},J(X.grid[H.x][H.y]);return}H=Ie(i.selectionMark-7),i.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(-1),J(i.grid[H.y][H.x]);break;case"ArrowLeft":if(R)return z(k.getFullYear()-1,k.getMonth(),1);H=Ie(i.selectionMark-1),i.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(-1),J(i.grid[H.y][H.x]);break;case"ArrowRight":if(R)return z(k.getFullYear()+1,k.getMonth(),1);H=Ie(i.selectionMark+1),i.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(1),J(i.grid[H.y][H.x]);break}}function z(p,R,H){let q,ae=k.getDate();do q=new Date(p,R,ae),ae--;while(q.getMonth()===k.getMonth());const X=Ve(q,q,w,g,d),ee=X.grid[Math.floor(X.selectionMark/7)][X.selectionMark%7];m&&st(ee,m)||f&&nt(ee,f)||($(H),J(ee))}let N=h,k=h?new Date(h.valueOf()):new Date;const I=Qe();let w=pe,_=-2,C=!1,T=ge,O=null;function Q(p){return i.prevTo<=p&&pp||m&&m<=p)}function $(p){const R=w===me?120:w===Ae?12:1;k.setMonth(k.getMonth()+p*R),e(3,k),e(22,h),e(2,N),e(8,O=null),e(7,T=w===me?k.getFullYear()%20>=10?ge:Oe:ge)}function U(p){if(w===pe)return $(p);if(e(8,O=()=>{$(p)}),w===me){e(7,T=T===Oe?p===-1?T-ge:ge+Oe:p===-1?T-ge:T+Oe);return}e(7,T=p===-1?T-ge:T+ge)}function P(){if(e(5,_=-1),e(6,C=!0),w&&e(4,w--,w),w===me){const p=Math.floor(k.getFullYear()/10)*10%20===0;e(7,T=p?Oe:ge)}}function J(p){switch(e(5,_=1),e(6,C=!0),w){case 0:k.setFullYear(p),e(3,k),e(22,h),e(2,N);break;case 1:k.setMonth(g.monthsShort.indexOf(p)),e(3,k),e(22,h),e(2,N);break;case 2:if(f&&!st(p,f)||m&&!nt(p,m))return;const R=new Date(p.getFullYear(),p.getMonth(),p.getDate());N&&(R.setMinutes(N.getMinutes()),R.setHours(N.getHours())),e(2,N=R),I("date",N);break}wU(-1),S=()=>U(1),Y=p=>{J(p)},c=()=>O&&O(),E=p=>{J(p)},Z=()=>O&&O(),se=p=>{J(p)};return l.$$set=p=>{"date"in p&&e(22,h=p.date),"startDate"in p&&e(23,f=p.startDate),"endDate"in p&&e(24,m=p.endDate),"weekStart"in p&&e(25,d=p.weekStart),"i18n"in p&&e(0,g=p.i18n),"enableTimeToggle"in p&&e(1,v=p.enableTimeToggle)},l.$$.update=()=>{l.$$.dirty[0]&8388608&&(n=f?new Date(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0,0):null),l.$$.dirty[0]&4194308&&h!==N&&(e(2,N=h),h&&e(3,k=new Date(h.valueOf())),e(5,_=1),e(6,C=!0),e(4,w=pe)),l.$$.dirty[0]&32&&e(14,s=_<1?1.5:.5),l.$$.dirty[0]&32&&e(13,a=_<1?1:1.5),l.$$.dirty[0]&32&&e(12,r=_===-2?Te:_!==null?al:()=>{}),l.$$.dirty[0]&33554461&&e(10,i=Ve(k,N,w,g,d)),l.$$.dirty[0]&33554433&&e(11,o=d>-1?g.daysMin.concat(g.daysMin).slice(d,7+d):g.daysMin.slice(d,7+d)),l.$$.dirty[0]&24&&e(9,u=L(w,k))},[g,v,N,k,w,_,C,T,O,u,i,o,r,a,s,Q,x,U,P,J,K,oe,h,f,m,d,D,ke,S,Y,c,E,Z,se]}class ol extends We{constructor(t){super(),Ze(this,t,rl,il,Xe,{date:22,startDate:23,endDate:24,weekStart:25,i18n:0,enableTimeToggle:1,handleGridNav:26},null,[-1,-1])}get handleGridNav(){return this.$$.ctx[26]}}function wt(l,t,e){const n=l.slice();return n[35]=t[e],n[37]=e,n}function vt(l,t,e){const n=l.slice();return n[35]=t[e],n[37]=e,n}function Tt(l){let t,e,n,s,a,r;return{c(){t=A("button"),e=_e("svg"),n=_e("path"),this.h()},l(i){t=V(i,"BUTTON",{class:!0,title:!0});var o=B(t);e=be(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var u=B(e);n=be(u,"path",{"fill-rule":!0,d:!0}),B(n).forEach(M),u.forEach(M),o.forEach(M),this.h()},h(){b(n,"fill-rule","evenodd"),b(n,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),b(e,"class","sdt-svg svelte-163fzlc"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"viewBox","0 0 24 24"),b(e,"width","20"),b(e,"height","20"),b(t,"class","sdt-time-btn sdt-back-btn svelte-163fzlc"),b(t,"title",s=l[4].backToDate)},m(i,o){W(i,t,o),F(t,e),F(e,n),a||(r=j(t,"click",l[20]),a=!0)},p(i,o){o[0]&16&&s!==(s=i[4].backToDate)&&b(t,"title",s)},d(i){i&&M(t),a=!1,r()}}}function Ft(l){let t,e,n=l[11]?"PM":"AM",s,a,r,i;return{c(){t=A("div"),e=A("button"),s=fe(n),this.h()},l(o){t=V(o,"DIV",{class:!0});var u=B(t);e=V(u,"BUTTON",{type:!0,class:!0,"data-value":!0});var h=B(e);s=he(h,n),h.forEach(M),u.forEach(M),this.h()},h(){b(e,"type","button"),b(e,"class","sdt-time-btn sdt-time-figure is-active svelte-163fzlc"),b(e,"data-value",a=l[11]?l[6]%12:l[6]+12),b(t,"class","sdt-meridian svelte-163fzlc")},m(o,u){W(o,t,u),F(t,e),F(e,s),r||(i=j(e,"click",l[18]),r=!0)},p(o,u){u[0]&2048&&n!==(n=o[11]?"PM":"AM")&&ce(s,n),u[0]&2112&&a!==(a=o[11]?o[6]%12:o[6]+12)&&b(e,"data-value",a)},d(o){o&&M(t),r=!1,i()}}}function St(l,t){let e,n=t[35].val+"",s,a,r,i,o,u;return{key:l,first:null,c(){e=A("button"),s=fe(n),this.h()},l(h){e=V(h,"BUTTON",{style:!0,class:!0,"data-value":!0});var f=B(e);s=he(f,n),f.forEach(M),this.h()},h(){b(e,"style",a=`left:${t[35].x}px; top:${t[35].y}px`),b(e,"class","sdt-tick svelte-163fzlc"),b(e,"data-value",r=t[35].val),e.disabled=i=(t[0]||t[1])&&t[16](t[35].val,!1),G(e,"outer-tick",t[5]),G(e,"is-selected",t[15](t[6],t[35].val,t[37])),this.first=e},m(h,f){W(h,e,f),F(e,s),u=!0},p(h,f){t=h,(!u||f[0]&8192)&&n!==(n=t[35].val+"")&&ce(s,n),(!u||f[0]&8192&&a!==(a=`left:${t[35].x}px; top:${t[35].y}px`))&&b(e,"style",a),(!u||f[0]&8192&&r!==(r=t[35].val))&&b(e,"data-value",r),(!u||f[0]&8195&&i!==(i=(t[0]||t[1])&&t[16](t[35].val,!1)))&&(e.disabled=i),f[0]&32&&G(e,"outer-tick",t[5]),f[0]&41024&&G(e,"is-selected",t[15](t[6],t[35].val,t[37]))},i(h){u||(h&&Fe(()=>{o||(o=Se(e,Te,{duration:200},!0)),o.run(1)}),u=!0)},o(h){h&&(o||(o=Se(e,Te,{duration:200},!1)),o.run(0)),u=!1},d(h){h&&M(e),h&&o&&o.end()}}}function Et(l){let t,e=l[35].val+"",n,s,a,r,i,o;return{c(){t=A("button"),n=fe(e),this.h()},l(u){t=V(u,"BUTTON",{style:!0,class:!0,"data-value":!0});var h=B(t);n=he(h,e),h.forEach(M),this.h()},h(){b(t,"style",s=`left:${l[35].x}px; top:${l[35].y}px;`),b(t,"class","sdt-tick svelte-163fzlc"),b(t,"data-value",a=l[35].val),t.disabled=r=(l[0]||l[1])&&l[16](l[35].val,!1),G(t,"outer-tick",l[2]&&!l[5]),G(t,"is-selected",l[15](l[5]?l[7]:l[6],l[35].val,l[37]))},m(u,h){W(u,t,h),F(t,n),o=!0},p(u,h){(!o||h[0]&4096)&&e!==(e=u[35].val+"")&&ce(n,e),(!o||h[0]&4096&&s!==(s=`left:${u[35].x}px; top:${u[35].y}px;`))&&b(t,"style",s),(!o||h[0]&4096&&a!==(a=u[35].val))&&b(t,"data-value",a),(!o||h[0]&4099&&r!==(r=(u[0]||u[1])&&u[16](u[35].val,!1)))&&(t.disabled=r),h[0]&36&&G(t,"outer-tick",u[2]&&!u[5]),h[0]&37088&&G(t,"is-selected",u[15](u[5]?u[7]:u[6],u[35].val,u[37]))},i(u){o||(u&&Fe(()=>{i||(i=Se(t,Te,{duration:200},!0)),i.run(1)}),o=!0)},o(u){u&&(i||(i=Se(t,Te,{duration:200},!1)),i.run(0)),o=!1},d(u){u&&M(t),u&&i&&i.end()}}}function ul(l){let t,e,n,s,a=l[14](l[6],l[2])+"",r,i,o,u,h,f,m=l[14](l[7],!1)+"",d,g,v,D,z,N,k,I,w,_=[],C=new Map,T,O,Q,x,$,U=l[3]&&Tt(l),P=l[2]&&Ft(l),J=l[13];const K=S=>S[35].val;for(let S=0;Sre(L[S],1,1,()=>{L[S]=null});return{c(){t=A("div"),e=A("div"),U&&U.c(),n=le(),s=A("button"),r=fe(a),i=le(),o=A("span"),u=fe(":"),h=le(),f=A("button"),d=fe(m),g=le(),P&&P.c(),v=le(),D=A("div"),z=A("div"),N=le(),k=A("div"),I=A("div"),w=le();for(let S=0;S<_.length;S+=1)_[S].c();T=le();for(let S=0;S{O=Pe(t,Te,{duration:200}),O.start()}),Q=!0}},o(S){for(let Y=0;Y<_.length;Y+=1)re(_[Y]);L=L.filter(Boolean);for(let Y=0;Y=9||ee<3?-1:1)*E),val:se?ee*5||Z:ee?ee+p:Z});return X}function x(c,E){return E?s&&c===12?12:c<10||c%12<10?`0${c%12}`:c%12:c<10?`0${c}`:c}function $(c,E,Z){return k?E===c||Z===0&&Z===c:d?s&&E==12&&c===12||!s&&E==12&&c===0?!0:E===(c?c%12:12):E>12?(Z?r*Z+12:0)===c:E==="00"||E==="12"?c===12&&parseInt(E)==12||E==="00"&&c===0:E===c}function U(c,E=!1){return typeof c=="string"&&(c=parseInt(c)),f&&m&&i?k||E?f.getHours()===_.getHours()&&f.getMinutes()>c||m.getHours()===_.getHours()&&m.getMinutes()c||m.getHours()c:f.getHours()>c:m&&m.getDate()===_.getDate()&&m.getMonth()===_.getMonth()&&m.getFullYear()===_.getFullYear()?k||E?m.getHours()===_.getHours()&&m.getMinutes()H?ae=R>q?2:1:ae=R>q?3:4,ae){case 1:E=p-H,Z=q-R;break;case 2:E=p-H,Z=R-q;break;case 3:E=H-p,Z=R-q;break;case 4:E=H-p,Z=q-R;break}const X=Math.sqrt(E*E+Z*Z),ee=90-Math.asin(E/X)*(180/Math.PI);let te=0;switch(ae){case 1:te=90-ee;break;case 2:te=ee+90;break;case 3:te=270-ee;break;case 4:te=ee+270;break}te=Math.floor(te/6),_.setMinutes(te)}e(24,_),e(21,h),C=!1,T("time",_),!I&&k&&setTimeout(()=>{T("close")},300),w&&!k&&e(5,k=!0),w=!0,setTimeout(()=>{w=!1,C=!0},200)}function J(c){const E=parseInt(c.target.dataset.value);_.setHours(E),e(24,_),e(21,h),T("time",_)}function K(c){e(9,I=c.type==="mousedown")}function oe(){T("switch","date")}const L=()=>e(5,k=!1),ke=()=>e(5,k=!0),S=c=>{I&&P(c)};function Y(c){Ue[c?"unshift":"push"](()=>{N=c,e(8,N)})}return l.$$set=c=>{"date"in c&&e(21,h=c.date),"startDate"in c&&e(0,f=c.startDate),"endDate"in c&&e(1,m=c.endDate),"showMeridian"in c&&e(2,d=c.showMeridian),"hasDateComponent"in c&&e(3,g=c.hasDateComponent),"i18n"in c&&e(4,v=c.i18n)},l.$$.update=()=>{if(l.$$.dirty[0]&18874368&&h!==_&&h&&e(24,_=h),l.$$.dirty[0]&16777219){let c=!1;f&&f.toDateString()===_.toDateString()&&(U(_.getHours())&&(_.setHours(f.getHours()),c=!0),U(_.getMinutes(),!0)&&(_.setMinutes(f.getMinutes()),c=!0)),m&&m.toDateString()===_.toDateString()&&(U(_.getHours())&&(_.setHours(m.getHours()),c=!0),U(_.getMinutes(),!0)&&(_.setMinutes(m.getMinutes()),c=!0)),c&&Nt().then(()=>T("time",_))}if(l.$$.dirty[0]&16777216&&e(6,n=_?_.getHours():0),l.$$.dirty[0]&68&&e(11,s=d?n>=12:!1),l.$$.dirty[0]&16777216&&e(7,a=_?_.getMinutes():0),l.$$.dirty[0]&228){let c=k?a*6:n%12*30;e(10,O=k||d||n<12?`transform: rotateZ(${c}deg);`:`transform: rotateZ(${c}deg); height: calc(25% + 1px)`)}l.$$.dirty[0]&32&&(r=k?5:1),l.$$.dirty[0]&3&&(i=f&&m&&["getFullYear","getMonth","getDate"].every(c=>m[c]()===f[c]())),l.$$.dirty[0]&32&&e(13,o=Q(k?260:220,130,"00",!1,0)),l.$$.dirty[0]&32&&e(12,u=Q(k?220:140,130,k?"00":"12",k,12)),l.$$.dirty[0]&32&&T("time-switch",k)},[f,m,d,g,v,k,n,a,N,I,O,s,u,o,x,$,U,P,J,K,oe,h,D,z,_,L,ke,S,Y]}class hl extends We{constructor(t){super(),Ze(this,t,fl,ul,Xe,{date:21,startDate:0,endDate:1,showMeridian:2,hasDateComponent:3,i18n:4,minuteSwitch:22,makeTick:23},null,[-1,-1])}get minuteSwitch(){return this.$$.ctx[22]}get makeTick(){return this.$$.ctx[23]}}function Ht(l){let t,e,n,s,a;return{c(){t=A("input"),this.h()},l(r){t=V(r,"INPUT",{type:!0,id:!0,tabindex:!0,name:!0,placeholder:!0,autocomplete:!0,class:!0}),this.h()},h(){b(t,"type",e=l[7]?"hidden":"text"),b(t,"id",l[2]),b(t,"tabindex","0"),b(t,"name",l[3]),t.disabled=l[4],t.required=l[6],t.value=l[1],b(t,"placeholder",l[5]),b(t,"autocomplete","off"),b(t,"class",n=Ee(l[12])+" svelte-pg9n00"),t.readOnly=l[20]},m(r,i){W(r,t,i),l[56](t),s||(a=[At(l[33].call(null,t,l[34])),j(t,"focus",l[41]),j(t,"blur",l[42]),j(t,"click",l[57]),j(t,"input",l[54]),j(t,"change",l[55]),j(t,"keydown",l[38])],s=!0)},p(r,i){i[0]&128&&e!==(e=r[7]?"hidden":"text")&&b(t,"type",e),i[0]&4&&b(t,"id",r[2]),i[0]&8&&b(t,"name",r[3]),i[0]&16&&(t.disabled=r[4]),i[0]&64&&(t.required=r[6]),i[0]&2&&t.value!==r[1]&&(t.value=r[1]),i[0]&32&&b(t,"placeholder",r[5]),i[0]&4096&&n!==(n=Ee(r[12])+" svelte-pg9n00")&&b(t,"class",n),i[0]&1048576&&(t.readOnly=r[20])},d(r){r&&M(t),l[56](null),s=!1,Ye(a)}}}function Yt(l){let t,e,n,s,a,r,i,o,u;const h=[dl,cl],f=[];function m(d,g){return d[22]==="date"?0:1}return e=m(l),n=f[e]=h[e](l),{c(){t=A("div"),n.c(),this.h()},l(d){t=V(d,"DIV",{class:!0});var g=B(t);n.l(g),g.forEach(M),this.h()},h(){b(t,"class",s="std-calendar-wrap is-popup "+l[8]+" svelte-pg9n00")},m(d,g){W(d,t,g),f[e].m(t,null),i=!0,o||(u=[At(a=l[18].call(null,t,{inputEl:l[25],visible:l[30],inputRect:l[26]})),j(t,"mousedown",ye(l[53]))],o=!0)},p(d,g){let v=e;e=m(d),e===v?f[e].p(d,g):(we(),re(f[v],1,1,()=>{f[v]=null}),ve(),n=f[e],n?n.p(d,g):(n=f[e]=h[e](d),n.c()),ie(n,1),n.m(t,null)),(!i||g[0]&256&&s!==(s="std-calendar-wrap is-popup "+d[8]+" svelte-pg9n00"))&&b(t,"class",s),a&&el(a.update)&&g[0]&1174405120&&a.update.call(null,{inputEl:d[25],visible:d[30],inputRect:d[26]})},i(d){i||(ie(n),d&&Fe(()=>{r||(r=Se(t,l[31],{duration:200},!0)),r.run(1)}),i=!0)},o(d){re(n),d&&(r||(r=Se(t,l[31],{duration:200},!1)),r.run(0)),i=!1},d(d){d&&M(t),f[e].d(),d&&r&&r.end(),o=!1,Ye(u)}}}function cl(l){let t,e,n={date:l[19],startDate:l[23],endDate:l[24],hasDateComponent:l[21]!=="time",showMeridian:l[9].match(l[10]==="php"?"a|A":"p|P")!==null,i18n:l[17]};return t=new hl({props:n}),l[59](t),t.$on("time",l[35]),t.$on("switch",l[39]),t.$on("close",l[40]),{c(){Vt(t.$$.fragment)},l(s){It(t.$$.fragment,s)},m(s,a){Ut(t,s,a),e=!0},p(s,a){const r={};a[0]&524288&&(r.date=s[19]),a[0]&8388608&&(r.startDate=s[23]),a[0]&16777216&&(r.endDate=s[24]),a[0]&2097152&&(r.hasDateComponent=s[21]!=="time"),a[0]&1536&&(r.showMeridian=s[9].match(s[10]==="php"?"a|A":"p|P")!==null),a[0]&131072&&(r.i18n=s[17]),t.$set(r)},i(s){e||(ie(t.$$.fragment,s),e=!0)},o(s){re(t.$$.fragment,s),e=!1},d(s){l[59](null),zt(t,s)}}}function dl(l){var i;let t,e,n,s,a={date:l[19],startDate:l[23],endDate:l[24],enableTimeToggle:(i=l[21])==null?void 0:i.includes("time"),i18n:l[17],weekStart:l[11]};t=new ol({props:a}),l[58](t),t.$on("date",l[35]),t.$on("switch",l[39]);let r=(l[15]||l[16])&&Bt(l);return{c(){Vt(t.$$.fragment),e=le(),r&&r.c(),n=ze()},l(o){It(t.$$.fragment,o),e=ne(o),r&&r.l(o),n=ze()},m(o,u){Ut(t,o,u),W(o,e,u),r&&r.m(o,u),W(o,n,u),s=!0},p(o,u){var f;const h={};u[0]&524288&&(h.date=o[19]),u[0]&8388608&&(h.startDate=o[23]),u[0]&16777216&&(h.endDate=o[24]),u[0]&2097152&&(h.enableTimeToggle=(f=o[21])==null?void 0:f.includes("time")),u[0]&131072&&(h.i18n=o[17]),u[0]&2048&&(h.weekStart=o[11]),t.$set(h),o[15]||o[16]?r?r.p(o,u):(r=Bt(o),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i(o){s||(ie(t.$$.fragment,o),s=!0)},o(o){re(t.$$.fragment,o),s=!1},d(o){l[58](null),zt(t,o),o&&M(e),r&&r.d(o),o&&M(n)}}}function Bt(l){let t,e,n=l[15]&&Ct(l),s=l[16]&&Ot(l);return{c(){t=A("div"),n&&n.c(),e=le(),s&&s.c(),this.h()},l(a){t=V(a,"DIV",{class:!0});var r=B(t);n&&n.l(r),e=ne(r),s&&s.l(r),r.forEach(M),this.h()},h(){b(t,"class","std-btn-row svelte-pg9n00")},m(a,r){W(a,t,r),n&&n.m(t,null),F(t,e),s&&s.m(t,null)},p(a,r){a[15]?n?n.p(a,r):(n=Ct(a),n.c(),n.m(t,e)):n&&(n.d(1),n=null),a[16]?s?s.p(a,r):(s=Ot(a),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(a){a&&M(t),n&&n.d(),s&&s.d()}}}function Ct(l){let t,e=l[17].todayBtn+"",n,s,a,r;return{c(){t=A("button"),n=fe(e),this.h()},l(i){t=V(i,"BUTTON",{class:!0});var o=B(t);n=he(o,e),o.forEach(M),this.h()},h(){b(t,"class",s=Ee(l[13])+" svelte-pg9n00"),t.disabled=l[32]},m(i,o){W(i,t,o),F(t,n),a||(r=j(t,"click",l[36]),a=!0)},p(i,o){o[0]&131072&&e!==(e=i[17].todayBtn+"")&&ce(n,e),o[0]&8192&&s!==(s=Ee(i[13])+" svelte-pg9n00")&&b(t,"class",s),o[1]&2&&(t.disabled=i[32])},d(i){i&&M(t),a=!1,r()}}}function Ot(l){let t,e=l[17].clearBtn+"",n,s,a,r,i;return{c(){t=A("button"),n=fe(e),this.h()},l(o){t=V(o,"BUTTON",{class:!0});var u=B(t);n=he(u,e),u.forEach(M),this.h()},h(){b(t,"class",s=Ee(l[14])+" svelte-pg9n00"),t.disabled=a=!l[19]},m(o,u){W(o,t,u),F(t,n),r||(i=j(t,"click",l[37]),r=!0)},p(o,u){u[0]&131072&&e!==(e=o[17].clearBtn+"")&&ce(n,e),u[0]&16384&&s!==(s=Ee(o[14])+" svelte-pg9n00")&&b(t,"class",s),u[0]&524288&&a!==(a=!o[19])&&(t.disabled=a)},d(o){o&&M(t),r=!1,i()}}}function gl(l){let t,e,n,s=!l[0]&&Ht(l),a=l[29]&&l[20]&&Yt(l);return{c(){s&&s.c(),t=le(),a&&a.c(),e=ze()},l(r){s&&s.l(r),t=ne(r),a&&a.l(r),e=ze()},m(r,i){s&&s.m(r,i),W(r,t,i),a&&a.m(r,i),W(r,e,i),n=!0},p(r,i){r[0]?s&&(s.d(1),s=null):s?s.p(r,i):(s=Ht(r),s.c(),s.m(t.parentNode,t)),r[29]&&r[20]?a?(a.p(r,i),i[0]&537919488&&ie(a,1)):(a=Yt(r),a.c(),ie(a,1),a.m(e.parentNode,e)):a&&(we(),re(a,1,1,()=>{a=null}),ve())},i(r){n||(ie(a),n=!0)},o(r){re(a),n=!1},d(r){s&&s.d(r),r&&M(t),a&&a.d(r),r&&M(e)}}}const ue=ll;function ml(l,t,e){let n,s,a,r,i,o,{inputId:u=""}=t,{name:h="date"}=t,{disabled:f=!1}=t,{placeholder:m=null}=t,{required:d=!1}=t,{inputElement:g}=t,{value:v=null}=t,{initialDate:D=null}=t,{startDate:z=null}=t,{endDate:N=null}=t,{pickerOnly:k=!1}=t,{theme:I=ue.theme}=t,{mode:w=ue.mode}=t,{format:_=ue.format}=t,{formatType:C=ue.formatType}=t,{weekStart:T=ue.weekStart}=t,{inputClasses:O=ue.inputClasses}=t,{todayBtnClasses:Q=ue.todayBtnClasses}=t,{clearBtnClasses:x=ue.clearBtnClasses}=t,{todayBtn:$=ue.todayBtn}=t,{clearBtn:U=ue.clearBtn}=t,{clearToggle:P=ue.clearToggle}=t,{autoclose:J=ue.autoclose}=t,{i18n:K=ue.i18n}=t,{positionFn:oe=sl}=t,{validatorAction:L=null}=t;function ke(y){e(19,E=Ce(y,_,K,C))}const S=Qe();v&&(v=v.replace(/(:\d+):\d+/,"$1"));let Y=v,c=_,E=D&&D instanceof Date?D:v?Ce(v,_,K,C):null;E&&D&&(v=Je(E,_,K,C));let Z=k,se=g,p=null,R=L?L.shift():()=>{},H=L||[],q,ae,X=!1,ee=null,te="",de=te==="time"?"time":"date";function Le(){k||e(29,r=!1),te!=="time"&&e(22,de="date")}function Ge(y){let De=y.detail||null;y.detail&&E&&E.getFullYear()===y.detail.getFullYear()&&E.getMonth()===y.detail.getMonth()&&E.getDate()===y.detail.getDate()&&te==="date"&&P&&(De=null),e(1,v=De?Je(De,_,K,C):null),J&&(te==="date"||!De)&&!k&&!X&&Le(),De&&!X&&te==="datetime"&&de==="date"&&e(22,de="time"),X&&de==="time"?ee=setTimeout(()=>{X=!1},400):X=!1,Nt().then(()=>{g&&e(0,g.value=v||"",g),se&&se.dispatchEvent(new Event("input")),S("change",v)})}function Pt(){const y=new Date;if(n&&n>y)return;const De=E?E.getHours():y.getHours(),Qt=E?E.getMinutes():y.getMinutes();Ge(new CustomEvent("ontoday",{detail:new Date(y.getFullYear(),y.getMonth(),y.getDate(),De,Qt,0)}))}function qe(){Ge(new CustomEvent("clear",{detail:null}))}function et(y){if(r||(["Backspace","Delete"].includes(y.key)&&qe(),y.key==="Enter"&&Be()),!r&&y.key!=="Tab"){e(29,r=y.key!=="Shift"),y.preventDefault();return}switch(y.key){case"PageDown":case"PageUp":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":y.preventDefault(),ee&&clearTimeout(ee),X=!0,de==="date"?q.handleGridNav(y.key,y.shiftKey):ae.makeTick(["ArrowDown","ArrowLeft","PageDown"].includes(y.key)?-1:1);break;case"Escape":Z&&e(29,r=!1);break;case"Backspace":case"Delete":qe();break;case"Enter":if(Z&&y.preventDefault(),de==="time")return ae.minuteSwitch(null)?Le():ae.minuteSwitch(!0);Z&&te==="date"&&e(29,r=!1),E&&te.includes("time")&&e(22,de="time");break;case"Tab":r&&(e(29,r=!1),y.preventDefault());case"F5":break;default:y.preventDefault()}}function Rt(y){e(22,de=y.detail)}function Lt(){J&&!X&&Le()}function Be(){e(26,p=se&&se.getBoundingClientRect()),e(20,Z=!0),e(29,r=!0)}function tt(){e(20,Z=!1),e(29,r=!1),!g&&S("blur")}g&&$t(()=>{e(0,g.onfocus=Be,g),e(0,g.onblur=tt,g),e(0,g.onclick=()=>!r&&Be(),g),e(0,g.onkeydown=et,g)});function Gt(y){je.call(this,l,y)}function qt(y){je.call(this,l,y)}function jt(y){je.call(this,l,y)}function Jt(y){Ue[y?"unshift":"push"](()=>{se=y,e(25,se)})}const Wt=()=>{!r&&Be()};function Zt(y){Ue[y?"unshift":"push"](()=>{q=y,e(27,q)})}function Xt(y){Ue[y?"unshift":"push"](()=>{ae=y,e(28,ae)})}return l.$$set=y=>{"inputId"in y&&e(2,u=y.inputId),"name"in y&&e(3,h=y.name),"disabled"in y&&e(4,f=y.disabled),"placeholder"in y&&e(5,m=y.placeholder),"required"in y&&e(6,d=y.required),"inputElement"in y&&e(0,g=y.inputElement),"value"in y&&e(1,v=y.value),"initialDate"in y&&e(43,D=y.initialDate),"startDate"in y&&e(44,z=y.startDate),"endDate"in y&&e(45,N=y.endDate),"pickerOnly"in y&&e(7,k=y.pickerOnly),"theme"in y&&e(8,I=y.theme),"mode"in y&&e(46,w=y.mode),"format"in y&&e(9,_=y.format),"formatType"in y&&e(10,C=y.formatType),"weekStart"in y&&e(11,T=y.weekStart),"inputClasses"in y&&e(12,O=y.inputClasses),"todayBtnClasses"in y&&e(13,Q=y.todayBtnClasses),"clearBtnClasses"in y&&e(14,x=y.clearBtnClasses),"todayBtn"in y&&e(15,$=y.todayBtn),"clearBtn"in y&&e(16,U=y.clearBtn),"clearToggle"in y&&e(47,P=y.clearToggle),"autoclose"in y&&e(48,J=y.autoclose),"i18n"in y&&e(17,K=y.i18n),"positionFn"in y&&e(18,oe=y.positionFn),"validatorAction"in y&&e(49,L=y.validatorAction)},l.$$.update=()=>{if(l.$$.dirty[0]&132608|l.$$.dirty[1]&8192&&e(23,n=z?Ce(z,_,K,C):null),l.$$.dirty[0]&132608|l.$$.dirty[1]&16384&&e(24,s=N?new Date(Ce(N,_,K,C).setSeconds(1)):null),l.$$.dirty[0]&25165824&&e(32,a=n&&n>new Date||s&&s{}:Te),l.$$.dirty[0]&6291968|l.$$.dirty[1]&32768&&(e(21,te=w==="auto"?_.match(/g|hh?|ii?/i)&&_.match(/y|m|d/i)?"datetime":_.match(/g|hh?|ii?/i)?"time":"date":w),te==="time"&&de!==te&&e(22,de=te)),l.$$.dirty[0]&1048577&&g&&e(0,g.readOnly=Z,g),l.$$.dirty[0]&128&&e(30,o=!!k),l.$$.dirty[0]&656898|l.$$.dirty[1]&3178496){if(v!==Y){const y=v?Ce(v,_,K,C):null;e(19,E=y),e(51,Y=v)}c!==_&&E&&(e(1,v=Je(E,_,K,C)),e(51,Y=v),e(52,c=_),w==="auto"&&e(21,te=_.match(/g|hh?|ii?/i)&&_.match(/y|m|d/i)?"datetime":_.match(/g|hh?|ii?/i)?"time":"date"))}},[g,v,u,h,f,m,d,k,I,_,C,T,O,Q,x,$,U,K,oe,E,Z,te,de,n,s,se,p,q,ae,r,o,i,a,R,H,Ge,Pt,qe,et,Rt,Lt,Be,tt,D,z,N,w,P,J,L,ke,Y,c,Gt,qt,jt,Jt,Wt,Zt,Xt]}class bl extends We{constructor(t){super(),Ze(this,t,ml,gl,Xe,{inputId:2,name:3,disabled:4,placeholder:5,required:6,inputElement:0,value:1,initialDate:43,startDate:44,endDate:45,pickerOnly:7,theme:8,mode:46,format:9,formatType:10,weekStart:11,inputClasses:12,todayBtnClasses:13,clearBtnClasses:14,todayBtn:15,clearBtn:16,clearToggle:47,autoclose:48,i18n:17,positionFn:18,validatorAction:49,setDateValue:50},null,[-1,-1,-1])}get setDateValue(){return this.$$.ctx[50]}}export{bl as S,ue as c}; diff --git a/docs/_app/immutable/chunks/SveltyPicker-f3a80465.js b/docs/_app/immutable/chunks/SveltyPicker-f3a80465.js deleted file mode 100644 index 587d936..0000000 --- a/docs/_app/immutable/chunks/SveltyPicker-f3a80465.js +++ /dev/null @@ -1,4 +0,0 @@ -import{W as Kt,S as We,i as Ze,s as Xe,l as A,r as fe,a as le,H as _e,m as V,n as B,u as he,h as M,c as ne,I as be,p as b,K as L,b as W,L as F,M as j,X as ye,v as ce,f as re,g as pe,t as ae,d as ve,V as Ye,Y as Qe,q as lt,Z as Fe,_ as ze,$ as Ke,Q as Ne,a0 as Pe,a1 as xe,D as Nt,a2 as Se,a3 as xt,a4 as Ie,e as Ue,o as $t,a5 as Ee,a6 as At,a7 as el,a8 as je,w as Vt,x as qt,y as It,B as Ut}from"./index-bba13a04.js";const tl={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],todayBtn:"Today",clearBtn:"Clear",timeView:"Show time view",backToDate:"Back to calendar view"},ll={theme:"sdt-calendar-colors",mode:"auto",format:"yyyy-mm-dd",formatType:"standard",weekStart:1,inputClasses:"",todayBtnClasses:"sdt-action-btn sdt-today-btn",clearBtnClasses:"sdt-action-btn sdt-clear-btn",todayBtn:!0,clearBtn:!0,autoclose:!0,clearToggle:!0,i18n:tl};function nl(l){const t=l-1;return t*t*t+1}function Te(l,{delay:t=0,duration:e=400,easing:n=Kt}={}){const s=+getComputedStyle(l).opacity;return{delay:t,duration:e,easing:n,css:i=>`opacity: ${i*s}`}}const me=0,Ae=1,we=2;function Ve(l,t,e,n,s){if(e===me){let q=10,p=20;const _=-1,C=[];let T=[],O=l.getFullYear()-l.getFullYear()%10;O-=O%20?12:10,O%10&&(q=12,p=22);for(let x=0;x<32;x++)T.push(O+x),T.length===4&&(C.push(T),T=[]);let Q=null;return t||(t=new Date),t.getFullYear()>=O&&(Q=t.getFullYear()%O),{years:C,todayMark:_,nextFrom:p,prevTo:q,selectionMark:Q}}if(e===Ae){let q=[],p=[],_=12,C=24;const T=l.toISOString().split("T")[0].substring(0,8),O=new Date(T+"01 00:00:00"),Q=O.getFullYear()-1;O.setFullYear(Q);let x=0;for(let I=0;I<3;I++){for(let z=0;z<12;z++)O.setMonth(z),p.push(n.monthsShort[z%12]),p.length===4&&(q.push(p),p=[]);O.setFullYear(O.getFullYear()+1)}let $=null;return t||(t=new Date),t.getFullYear()-Q>=0&&t.getFullYear()-Q<=2&&($=t.getMonth()+(t.getFullYear()-Q||0)*12),{months:q,todayMark:x,nextFrom:C,prevTo:_,selectionMark:$}}let i=l||new Date,a=i.getFullYear(),r=i.getMonth();i.getDate(),i.getHours();let o=new Date,u=new Date(a,r-1,28,0,0,0,0),h=$e.getDaysInMonth(u.getFullYear(),u.getMonth());u.setDate(h),u.setDate(h-(u.getDay()-s+7)%7);let f=new Date(u);f.setDate(f.getDate()+42);let m=f.valueOf(),d=[],g=[],v=-1,D=null,U=0,N=42,k=0;for(;u.valueOf()a||u.getFullYear()===a&&u.getMonth()>r)&&(N=k-1),u.setDate(u.getDate()+1),u.getFullYear()===o.getFullYear()&&u.getMonth()===o.getMonth()&&u.getDate()===o.getDate()&&(v=k),!D&&t&&u.getFullYear()===t.getFullYear()&&u.getMonth()===t.getMonth()&&u.getDate()===t.getDate()&&(D=k),g.length===7&&(d.push(g),g=[]);return{grid:d,todayMark:v,prevTo:U,nextFrom:N,selectionMark:D}}function qe(l,t){return l<0&&(l=42+l),{x:l%7,y:Math.floor(l/7)}}const $e={isLeapYear:function(l){return l%4===0&&l%100!==0||l%400===0},getDaysInMonth:function(l,t){return[31,$e.isLeapYear(l)?29:28,31,30,31,30,31,31,30,31,30,31][t]}};function nt(l,t){return l instanceof Date?l.getFullYear()t.getFullYear()||l.getMonth()>t.getMonth()||l.getDate()>=t.getDate():!1}function Ce(l,t,e,n){if(l instanceof Date)return l;const s=n==="php"?{date:"Y-m-d",datetime:"Y-m-d H:i",datetime_s:"Y-m-d H:i:s"}:{date:"yyyy-mm-dd",datetime:"yyyy-mm-dd hh:ii",datetime_s:"yyyy-mm-dd hh:ii:ss"};let i;/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(l)?i=Me.parseFormat(s.date,n):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(l)?i=Me.parseFormat(s.datetime,n):/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(l)?i=Me.parseFormat(s.datetime_s,n):i=Me.parseFormat(t,n);const a=l&&l.toString().match(Me.nonpunctuation)||[];l=new Date,l.setHours(0,0,0,0);const r={},{setters_order:o,setters_map:u}=Me.setters(n);let h,f;if(a.length!==i.parts.length&&i.parts.includes("S")){const v=a[i.parts.indexOf("S")-1].match(/(\d+)([a-zA-Z]+)/).slice(1,3);a.splice(i.parts.indexOf("S")-1,1,...v)}if(a.length===i.parts.length){for(var m=0,d=i.parts.length;mn.setHours(s),h:(n,s)=>n.setHours(s),HH:(n,s)=>n.setHours(s===12?0:s),H:(n,s)=>n.setHours(s===12?0:s),i:(n,s)=>n.setMinutes(s),s:(n,s)=>n.setSeconds(s),yyyy:(n,s)=>n.setFullYear(s),yy:(n,s)=>n.setFullYear((s<50?2e3:1900)+s),m:(n,s)=>{for(s-=1;s<0;)s+=12;for(s%=12,n.setMonth(s);n.getMonth()!==s;){if(isNaN(n.getMonth()))return n;n.setDate(n.getDate()-1)}return n},d:(n,s)=>n.setDate(s),p:(n,s)=>n.setHours(s===1&&n.getHours()<12?n.getHours()+12:n.getHours()),t:(n,s)=>n.setTime(s),mm:()=>{},M:()=>{},MM:()=>{},ii:()=>{},ss:()=>{},dd:()=>{},D:()=>{},DD:()=>{},P:()=>{}},e.mm=e.M=e.MM=e.m,e.ii=e.i,e.ss=e.s,e.dd=e.D=e.DD=e.d,e.P=e.p):(t=["H","G","h","g","i","s","d","D","j","l","N","S","m","M","F","n","Y","yy","p","P","U"],e={H:(n,s)=>n.setHours(s),G:(n,s)=>n.setHours(s),h:(n,s)=>n.setHours(s===12?0:s),g:(n,s)=>n.setHours(s===12?0:s),i:(n,s)=>n.setMinutes(s),s:(n,s)=>n.setSeconds(s),Y:(n,s)=>n.setFullYear(s),yy:(n,s)=>n.setFullYear((s<50?2e3:1900)+s),m:(n,s)=>{for(s-=1;s<0;)s+=12;for(s%=12,n.setMonth(s);n.getMonth()!==s;){if(isNaN(n.getMonth()))return n;n.setDate(n.getDate()-1)}return n},d:(n,s)=>n.setDate(s),a:(n,s)=>n.setHours(s===1?n.getHours()+12:n.getHours()),U:(n,s)=>n.setTime(s*1e3)},e.F=e.M=e.m,e.D=e.j=e.l=e.N=e.d,e.A=e.a),{setters_order:t,setters_map:e}}};function sl(l,{inputEl:t,visible:e,inputRect:n}){if(!e){const i=l.getBoundingClientRect(),a=["position: absolute","z-index: 12250"];a.push(n.x+i.width>window.innerWidth?"right: 1rem":`left: ${n.left}px`),i.height+i.top>window.innerHeight+window.scrollY?a.push("bottom: 1rem"):a.push(`top: ${n.top+n.height+window.scrollY}px`),l.style=a.join(";"),l.hidden=!1,document.body.appendChild(l)}l.hidden=!1;function s(){l.parentNode&&l.parentNode.removeChild(l)}return{destroy:s}}function il(l,{delay:t=0,duration:e=400,easing:n=nl,start:s=0,end:i=1,opacity:a=0}={}){const r=getComputedStyle(l),o=+r.opacity,u=r.transform==="none"?"":r.transform,h=1-s,f=o*(1-a);return{delay:t,duration:e,easing:n,css:(m,d)=>` - transform: ${u} scale(${i!==1?s+i*d:1-h*d}); - opacity: ${o-f*d}; - `}}function it(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function rt(l,t,e){const n=l.slice();return n[42]=t[e],n[44]=e,n}function at(l,t,e){const n=l.slice();return n[45]=t[e],n}function ot(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function ut(l,t,e){const n=l.slice();return n[49]=t[e],n[44]=e,n}function ft(l,t,e){const n=l.slice();return n[39]=t[e],n[41]=e,n}function ht(l,t,e){const n=l.slice();return n[52]=t[e],n[44]=e,n}function ct(l){let t,e,n,s,i,a;return{c(){t=A("button"),e=_e("svg"),n=_e("path"),this.h()},l(r){t=V(r,"BUTTON",{class:!0,title:!0});var o=B(t);e=be(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var u=B(e);n=be(u,"path",{"fill-rule":!0,d:!0}),B(n).forEach(M),u.forEach(M),o.forEach(M),this.h()},h(){b(n,"fill-rule","evenodd"),b(n,"d","M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.75a.75.75 0 00-1.5 0v3.5a.75.75 0 00.471.696l2.5 1a.75.75 0 00.557-1.392L8.5 7.742V4.75z"),b(e,"class","sdt-svg svelte-bnmqg0"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"viewBox","0 0 16 16"),b(e,"width","16"),b(e,"height","16"),b(t,"class","std-btn std-btn-header icon-btn sdt-time-icon svelte-bnmqg0"),b(t,"title",s=l[0].timeView)},m(r,o){W(r,t,o),F(t,e),F(e,n),i||(a=j(t,"click",ye(l[21])),i=!0)},p(r,o){o[0]&1&&s!==(s=r[0].timeView)&&b(t,"title",s)},d(r){r&&M(t),i=!1,a()}}}function dt(l){let t,e,n,s,i,a,r,o,u=l[10].years,h=[];for(let f=0;f{i&&i.end(1),s=ze(e,l[12],{duration:He,start:l[14],opacity:1}),s.start()}),a=!0)},o(f){s&&s.invalidate(),f&&(i=Ke(e,l[12],{duration:He,end:l[13],start:1})),a=!1},d(f){f&&M(t),Ne(h,f),f&&i&&i.end(),r=!1,Ye(o)}}}function gt(l,t){let e,n,s=t[52]+"",i,a,r,o;function u(){return t[29](t[52])}return{key:l,first:null,c(){e=A("td"),n=A("button"),i=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);i=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn svelte-bnmqg0"),n.disabled=a=t[16](new Date(t[52],t[3].getMonth(),t[3].getDate())),L(n,"not-current",!t[15](t[41]*4+t[44])),b(e,"class","svelte-bnmqg0"),L(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,i),r||(o=j(n,"click",ye(u)),r=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[52]+"")&&ce(i,s),f[0]&1032&&a!==(a=t[16](new Date(t[52],t[3].getMonth(),t[3].getDate())))&&(n.disabled=a),f[0]&33792&&L(n,"not-current",!t[15](t[41]*4+t[44])),f[0]&1024&&L(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark)},d(h){h&&M(e),r=!1,o()}}}function mt(l){let t,e=[],n=new Map,s,i=l[39];const a=r=>r[44];for(let r=0;r{i&&i.end(1),s=ze(e,l[12],{duration:He,start:l[14],opacity:1}),s.start()}),a=!0)},o(f){s&&s.invalidate(),f&&(i=Ke(e,l[12],{duration:He,end:l[13],start:1})),a=!1},d(f){f&&M(t),Ne(h,f),f&&i&&i.end(),r=!1,Ye(o)}}}function bt(l,t){let e,n,s=t[49]+"",i,a,r,o;function u(){return t[31](t[49])}return{key:l,first:null,c(){e=A("td"),n=A("button"),i=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);i=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn svelte-bnmqg0"),n.disabled=a=t[16](new Date(t[3].getFullYear(),t[0].monthsShort.indexOf(t[49]),t[3].getDate())),L(n,"not-current",!t[15](t[41]*4+t[44])),b(e,"class","svelte-bnmqg0"),L(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,i),r||(o=j(n,"click",ye(u)),r=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[49]+"")&&ce(i,s),f[0]&1033&&a!==(a=t[16](new Date(t[3].getFullYear(),t[0].monthsShort.indexOf(t[49]),t[3].getDate())))&&(n.disabled=a),f[0]&33792&&L(n,"not-current",!t[15](t[41]*4+t[44])),f[0]&1024&&L(e,"is-selected",t[41]*4+t[44]===t[10].selectionMark)},d(h){h&&M(e),r=!1,o()}}}function yt(l){let t,e=[],n=new Map,s,i=l[39];const a=r=>r[44];for(let r=0;r{a&&a.end(1),i=ze(e,l[12],{duration:He,start:.5,opacity:1}),i.start()}),r=!0)},o(g){i&&i.invalidate(),g&&(a=Ke(e,l[12],{duration:He,start:Math.abs(l[5])})),r=!1},d(g){g&&M(t),Ne(f,g),Ne(d,g),g&&a&&a.end(),o=!1,u()}}}function Dt(l){let t,e=l[45]+"",n;return{c(){t=A("th"),n=fe(e),this.h()},l(s){t=V(s,"TH",{class:!0});var i=B(t);n=he(i,e),i.forEach(M),this.h()},h(){b(t,"class","sdt-cal-th svelte-bnmqg0")},m(s,i){W(s,t,i),F(t,n)},p(s,i){i[0]&2048&&e!==(e=s[45]+"")&&ce(n,e)},d(s){s&&M(t)}}}function Mt(l,t){let e,n,s=t[42].getDate()+"",i,a,r,o;function u(){return t[33](t[42])}return{key:l,first:null,c(){e=A("td"),n=A("button"),i=fe(s),this.h()},l(h){e=V(h,"TD",{class:!0});var f=B(e);n=V(f,"BUTTON",{class:!0});var m=B(n);i=he(m,s),m.forEach(M),f.forEach(M),this.h()},h(){b(n,"class","std-btn sdt-btn-day svelte-bnmqg0"),n.disabled=a=t[16](t[42]),L(n,"not-current",!t[15](t[41]*7+t[44])),b(e,"class","sdt-cal-td svelte-bnmqg0"),L(e,"sdt-today",t[41]*7+t[44]===t[10].todayMark),L(e,"is-selected",t[41]*7+t[44]===t[10].selectionMark),this.first=e},m(h,f){W(h,e,f),F(e,n),F(n,i),r||(o=j(n,"click",ye(u)),r=!0)},p(h,f){t=h,f[0]&1024&&s!==(s=t[42].getDate()+"")&&ce(i,s),f[0]&1024&&a!==(a=t[16](t[42]))&&(n.disabled=a),f[0]&33792&&L(n,"not-current",!t[15](t[41]*7+t[44])),f[0]&1024&&L(e,"sdt-today",t[41]*7+t[44]===t[10].todayMark),f[0]&1024&&L(e,"is-selected",t[41]*7+t[44]===t[10].selectionMark)},d(h){h&&M(e),r=!1,o()}}}function wt(l){let t,e=[],n=new Map,s,i=l[39];const a=r=>r[44];for(let r=0;r{p=null}),ve()),T[4]===Ae?_?(_.p(T,O),O[0]&16&&re(_,1)):(_=_t(T),_.c(),re(_,1),_.m(v,U)):_&&(pe(),ae(_,1,1,()=>{_=null}),ve()),T[4]===we?C?(C.p(T,O),O[0]&16&&re(C,1)):(C=kt(T),C.c(),re(C,1),C.m(v,null)):C&&(pe(),ae(C,1,1,()=>{C=null}),ve()),O[0]&64&&L(v,"is-grid",T[6])},i(T){re(p),re(_),re(C)},o(T){ae(p),ae(_),ae(C)},d(T){T&&M(t),q&&q.d(),T&&M(g),T&&M(v),p&&p.d(),_&&_.d(),C&&C.d(),N=!1,Ye(k)}}}let He=400;const ge=222,Oe=148;function al(l,t,e){let n,s,i,a,r,o,u,{date:h=null}=t,{startDate:f=null}=t,{endDate:m=null}=t,{weekStart:d=1}=t,{i18n:g}=t,{enableTimeToggle:v=!1}=t;function D(w,P){if(!N){J(new Date);return}let H,G;switch(w){case"PageDown":P=!0;case"ArrowDown":if(P)return U(k.getFullYear(),k.getMonth()+1,1);if(G=r.selectionMark+7,G>=r.nextFrom){const ie=new Date(k.getFullYear(),k.getUTCMonth()+1,28);let X=Ve(ie,N,p,g,d);$(1),H=X.selectionMark!==null?{y:Math.floor((X.selectionMark+7)/7),x:(X.selectionMark+7)%7}:{y:(G+7)%70?0:-1),k.getMonth()>0?k.getMonth()-1:11,1),X=Ve(ie,N,p,g,d);$(-1),H=X.selectionMark!==null?{x:Math.floor((X.selectionMark-7)/7),y:(X.selectionMark-7)%7}:{x:5,y:G},J(X.grid[H.x][H.y]);return}H=qe(r.selectionMark-7),r.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(-1),J(r.grid[H.y][H.x]);break;case"ArrowLeft":if(P)return U(k.getFullYear()-1,k.getMonth(),1);H=qe(r.selectionMark-1),r.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(-1),J(r.grid[H.y][H.x]);break;case"ArrowRight":if(P)return U(k.getFullYear()+1,k.getMonth(),1);H=qe(r.selectionMark+1),r.grid[H.y][H.x].getMonth()!==k.getMonth()&&$(1),J(r.grid[H.y][H.x]);break}}function U(w,P,H){let G,ie=k.getDate();do G=new Date(w,P,ie),ie--;while(G.getMonth()===k.getMonth());const X=Ve(G,G,p,g,d),ee=X.grid[Math.floor(X.selectionMark/7)][X.selectionMark%7];m&&st(ee,m)||f&&nt(ee,f)||($(H),J(ee))}let N=h,k=h?new Date(h.valueOf()):new Date;const q=Qe();let p=we,_=-2,C=!1,T=ge,O=null;function Q(w){return r.prevTo<=w&&ww||m&&m<=w)}function $(w){const P=p===me?120:p===Ae?12:1;k.setMonth(k.getMonth()+w*P),e(3,k),e(22,h),e(2,N),e(8,O=null),e(7,T=p===me?k.getFullYear()%20>=10?ge:Oe:ge)}function I(w){if(p===we)return $(w);if(e(8,O=()=>{$(w)}),p===me){e(7,T=T===Oe?w===-1?T-ge:ge+Oe:w===-1?T-ge:T+Oe);return}e(7,T=w===-1?T-ge:T+ge)}function z(){if(e(5,_=-1),e(6,C=!0),p&&e(4,p--,p),p===me){const w=Math.floor(k.getFullYear()/10)*10%20===0;e(7,T=w?Oe:ge)}}function J(w){switch(e(5,_=1),e(6,C=!0),p){case 0:k.setFullYear(w),e(3,k),e(22,h),e(2,N);break;case 1:k.setMonth(g.monthsShort.indexOf(w)),e(3,k),e(22,h),e(2,N);break;case 2:if(f&&!st(w,f)||m&&!nt(w,m))return;const P=new Date(w.getFullYear(),w.getMonth(),w.getDate());N&&(P.setMinutes(N.getMinutes()),P.setHours(N.getHours())),e(2,N=P),q("date",N);break}pI(-1),S=()=>I(1),Y=w=>{J(w)},c=()=>O&&O(),E=w=>{J(w)},Z=()=>O&&O(),se=w=>{J(w)};return l.$$set=w=>{"date"in w&&e(22,h=w.date),"startDate"in w&&e(23,f=w.startDate),"endDate"in w&&e(24,m=w.endDate),"weekStart"in w&&e(25,d=w.weekStart),"i18n"in w&&e(0,g=w.i18n),"enableTimeToggle"in w&&e(1,v=w.enableTimeToggle)},l.$$.update=()=>{l.$$.dirty[0]&8388608&&(n=f?new Date(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0,0):null),l.$$.dirty[0]&4194308&&h!==N&&(e(2,N=h),h&&e(3,k=new Date(h.valueOf())),e(5,_=1),e(6,C=!0),e(4,p=we)),l.$$.dirty[0]&32&&e(14,s=_<1?1.5:.5),l.$$.dirty[0]&32&&e(13,i=_<1?1:1.5),l.$$.dirty[0]&32&&e(12,a=_===-2?Te:_!==null?il:()=>{}),l.$$.dirty[0]&33554461&&e(10,r=Ve(k,N,p,g,d)),l.$$.dirty[0]&33554433&&e(11,o=d>-1?g.daysMin.concat(g.daysMin).slice(d,7+d):g.daysMin.slice(d,7+d)),l.$$.dirty[0]&24&&e(9,u=R(p,k))},[g,v,N,k,p,_,C,T,O,u,r,o,a,i,s,Q,x,I,z,J,K,oe,h,f,m,d,D,ke,S,Y,c,E,Z,se]}class ol extends We{constructor(t){super(),Ze(this,t,al,rl,Xe,{date:22,startDate:23,endDate:24,weekStart:25,i18n:0,enableTimeToggle:1,handleGridNav:26},null,[-1,-1])}get handleGridNav(){return this.$$.ctx[26]}}function pt(l,t,e){const n=l.slice();return n[35]=t[e],n[37]=e,n}function vt(l,t,e){const n=l.slice();return n[35]=t[e],n[37]=e,n}function Tt(l){let t,e,n,s,i,a;return{c(){t=A("button"),e=_e("svg"),n=_e("path"),this.h()},l(r){t=V(r,"BUTTON",{class:!0,title:!0});var o=B(t);e=be(o,"svg",{class:!0,xmlns:!0,viewBox:!0,width:!0,height:!0});var u=B(e);n=be(u,"path",{"fill-rule":!0,d:!0}),B(n).forEach(M),u.forEach(M),o.forEach(M),this.h()},h(){b(n,"fill-rule","evenodd"),b(n,"d","M6.75 0a.75.75 0 01.75.75V3h9V.75a.75.75 0 011.5 0V3h2.75c.966 0 1.75.784 1.75 1.75v16a1.75 1.75 0 01-1.75 1.75H3.25a1.75 1.75 0 01-1.75-1.75v-16C1.5 3.784 2.284 3 3.25 3H6V.75A.75.75 0 016.75 0zm-3.5 4.5a.25.25 0 00-.25.25V8h18V4.75a.25.25 0 00-.25-.25H3.25zM21 9.5H3v11.25c0 .138.112.25.25.25h17.5a.25.25 0 00.25-.25V9.5z"),b(e,"class","sdt-svg svelte-163fzlc"),b(e,"xmlns","http://www.w3.org/2000/svg"),b(e,"viewBox","0 0 24 24"),b(e,"width","20"),b(e,"height","20"),b(t,"class","sdt-time-btn sdt-back-btn svelte-163fzlc"),b(t,"title",s=l[4].backToDate)},m(r,o){W(r,t,o),F(t,e),F(e,n),i||(a=j(t,"click",l[20]),i=!0)},p(r,o){o[0]&16&&s!==(s=r[4].backToDate)&&b(t,"title",s)},d(r){r&&M(t),i=!1,a()}}}function Ft(l){let t,e,n=l[11]?"PM":"AM",s,i,a,r;return{c(){t=A("div"),e=A("button"),s=fe(n),this.h()},l(o){t=V(o,"DIV",{class:!0});var u=B(t);e=V(u,"BUTTON",{type:!0,class:!0,"data-value":!0});var h=B(e);s=he(h,n),h.forEach(M),u.forEach(M),this.h()},h(){b(e,"type","button"),b(e,"class","sdt-time-btn sdt-time-figure is-active svelte-163fzlc"),b(e,"data-value",i=l[11]?l[6]%12:l[6]+12),b(t,"class","sdt-meridian svelte-163fzlc")},m(o,u){W(o,t,u),F(t,e),F(e,s),a||(r=j(e,"click",l[18]),a=!0)},p(o,u){u[0]&2048&&n!==(n=o[11]?"PM":"AM")&&ce(s,n),u[0]&2112&&i!==(i=o[11]?o[6]%12:o[6]+12)&&b(e,"data-value",i)},d(o){o&&M(t),a=!1,r()}}}function St(l,t){let e,n=t[35].val+"",s,i,a,r,o,u;return{key:l,first:null,c(){e=A("button"),s=fe(n),this.h()},l(h){e=V(h,"BUTTON",{style:!0,class:!0,"data-value":!0});var f=B(e);s=he(f,n),f.forEach(M),this.h()},h(){b(e,"style",i=`left:${t[35].x}px; top:${t[35].y}px`),b(e,"class","sdt-tick svelte-163fzlc"),b(e,"data-value",a=t[35].val),e.disabled=r=(t[0]||t[1])&&t[16](t[35].val,!1),L(e,"outer-tick",t[5]),L(e,"is-selected",t[15](t[6],t[35].val,t[37])),this.first=e},m(h,f){W(h,e,f),F(e,s),u=!0},p(h,f){t=h,(!u||f[0]&8192)&&n!==(n=t[35].val+"")&&ce(s,n),(!u||f[0]&8192&&i!==(i=`left:${t[35].x}px; top:${t[35].y}px`))&&b(e,"style",i),(!u||f[0]&8192&&a!==(a=t[35].val))&&b(e,"data-value",a),(!u||f[0]&8195&&r!==(r=(t[0]||t[1])&&t[16](t[35].val,!1)))&&(e.disabled=r),f[0]&32&&L(e,"outer-tick",t[5]),f[0]&41024&&L(e,"is-selected",t[15](t[6],t[35].val,t[37]))},i(h){u||(h&&Fe(()=>{o||(o=Se(e,Te,{duration:200},!0)),o.run(1)}),u=!0)},o(h){h&&(o||(o=Se(e,Te,{duration:200},!1)),o.run(0)),u=!1},d(h){h&&M(e),h&&o&&o.end()}}}function Et(l){let t,e=l[35].val+"",n,s,i,a,r,o;return{c(){t=A("button"),n=fe(e),this.h()},l(u){t=V(u,"BUTTON",{style:!0,class:!0,"data-value":!0});var h=B(t);n=he(h,e),h.forEach(M),this.h()},h(){b(t,"style",s=`left:${l[35].x}px; top:${l[35].y}px;`),b(t,"class","sdt-tick svelte-163fzlc"),b(t,"data-value",i=l[35].val),t.disabled=a=(l[0]||l[1])&&l[16](l[35].val,!1),L(t,"outer-tick",l[2]&&!l[5]),L(t,"is-selected",l[15](l[5]?l[7]:l[6],l[35].val,l[37]))},m(u,h){W(u,t,h),F(t,n),o=!0},p(u,h){(!o||h[0]&4096)&&e!==(e=u[35].val+"")&&ce(n,e),(!o||h[0]&4096&&s!==(s=`left:${u[35].x}px; top:${u[35].y}px;`))&&b(t,"style",s),(!o||h[0]&4096&&i!==(i=u[35].val))&&b(t,"data-value",i),(!o||h[0]&4099&&a!==(a=(u[0]||u[1])&&u[16](u[35].val,!1)))&&(t.disabled=a),h[0]&36&&L(t,"outer-tick",u[2]&&!u[5]),h[0]&37088&&L(t,"is-selected",u[15](u[5]?u[7]:u[6],u[35].val,u[37]))},i(u){o||(u&&Fe(()=>{r||(r=Se(t,Te,{duration:200},!0)),r.run(1)}),o=!0)},o(u){u&&(r||(r=Se(t,Te,{duration:200},!1)),r.run(0)),o=!1},d(u){u&&M(t),u&&r&&r.end()}}}function ul(l){let t,e,n,s,i=l[14](l[6],l[2])+"",a,r,o,u,h,f,m=l[14](l[7],!1)+"",d,g,v,D,U,N,k,q,p,_=[],C=new Map,T,O,Q,x,$,I=l[3]&&Tt(l),z=l[2]&&Ft(l),J=l[13];const K=S=>S[35].val;for(let S=0;Sae(R[S],1,1,()=>{R[S]=null});return{c(){t=A("div"),e=A("div"),I&&I.c(),n=le(),s=A("button"),a=fe(i),r=le(),o=A("span"),u=fe(":"),h=le(),f=A("button"),d=fe(m),g=le(),z&&z.c(),v=le(),D=A("div"),U=A("div"),N=le(),k=A("div"),q=A("div"),p=le();for(let S=0;S<_.length;S+=1)_[S].c();T=le();for(let S=0;S{O=ze(t,Te,{duration:200}),O.start()}),Q=!0}},o(S){for(let Y=0;Y<_.length;Y+=1)ae(_[Y]);R=R.filter(Boolean);for(let Y=0;Y=9||ee<3?-1:1)*E),val:se?ee*5||Z:ee?ee+w:Z});return X}function x(c,E){return E?s&&c===12?12:c<10||c%12<10?`0${c%12}`:c%12:c<10?`0${c}`:c}function $(c,E,Z){return k?E===c||Z===0&&Z===c:d?s&&E==12&&c===12||!s&&E==12&&c===0?!0:E===(c?c%12:12):E>12?(Z?a*Z+12:0)===c:E==="00"||E==="12"?c===12&&parseInt(E)==12||E==="00"&&c===0:E===c}function I(c,E=!1){return typeof c=="string"&&(c=parseInt(c)),f&&m&&r?k||E?f.getHours()===_.getHours()&&f.getMinutes()>c||m.getHours()===_.getHours()&&m.getMinutes()c||m.getHours()c:f.getHours()>c:m&&m.getDate()===_.getDate()&&m.getMonth()===_.getMonth()&&m.getFullYear()===_.getFullYear()?k||E?m.getHours()===_.getHours()&&m.getMinutes()H?ie=P>G?2:1:ie=P>G?3:4,ie){case 1:E=w-H,Z=G-P;break;case 2:E=w-H,Z=P-G;break;case 3:E=H-w,Z=P-G;break;case 4:E=H-w,Z=G-P;break}const X=Math.sqrt(E*E+Z*Z),ee=90-Math.asin(E/X)*(180/Math.PI);let te=0;switch(ie){case 1:te=90-ee;break;case 2:te=ee+90;break;case 3:te=270-ee;break;case 4:te=ee+270;break}te=Math.floor(te/6),_.setMinutes(te)}e(24,_),e(21,h),C=!1,T("time",_),!q&&k&&setTimeout(()=>{T("close")},300),p&&!k&&e(5,k=!0),p=!0,setTimeout(()=>{p=!1,C=!0},200)}function J(c){const E=parseInt(c.target.dataset.value);_.setHours(E),e(24,_),e(21,h),T("time",_)}function K(c){e(9,q=c.type==="mousedown")}function oe(){T("switch","date")}const R=()=>e(5,k=!1),ke=()=>e(5,k=!0),S=c=>{q&&z(c)};function Y(c){Ie[c?"unshift":"push"](()=>{N=c,e(8,N)})}return l.$$set=c=>{"date"in c&&e(21,h=c.date),"startDate"in c&&e(0,f=c.startDate),"endDate"in c&&e(1,m=c.endDate),"showMeridian"in c&&e(2,d=c.showMeridian),"hasDateComponent"in c&&e(3,g=c.hasDateComponent),"i18n"in c&&e(4,v=c.i18n)},l.$$.update=()=>{if(l.$$.dirty[0]&18874368&&h!==_&&h&&e(24,_=h),l.$$.dirty[0]&16777219){let c=!1;f&&f.toDateString()===_.toDateString()&&(I(_.getHours())&&(_.setHours(f.getHours()),c=!0),I(_.getMinutes(),!0)&&(_.setMinutes(f.getMinutes()),c=!0)),m&&m.toDateString()===_.toDateString()&&(I(_.getHours())&&(_.setHours(m.getHours()),c=!0),I(_.getMinutes(),!0)&&(_.setMinutes(m.getMinutes()),c=!0)),c&&Nt().then(()=>T("time",_))}if(l.$$.dirty[0]&16777216&&e(6,n=_?_.getHours():0),l.$$.dirty[0]&68&&e(11,s=d?n>=12:!1),l.$$.dirty[0]&16777216&&e(7,i=_?_.getMinutes():0),l.$$.dirty[0]&228){let c=k?i*6:n%12*30;e(10,O=k||d||n<12?`transform: rotateZ(${c}deg);`:`transform: rotateZ(${c}deg); height: calc(25% + 1px)`)}l.$$.dirty[0]&32&&(a=k?5:1),l.$$.dirty[0]&3&&(r=f&&m&&["getFullYear","getMonth","getDate"].every(c=>m[c]()===f[c]())),l.$$.dirty[0]&32&&e(13,o=Q(k?260:220,130,"00",!1,0)),l.$$.dirty[0]&32&&e(12,u=Q(k?220:140,130,k?"00":"12",k,12)),l.$$.dirty[0]&32&&T("time-switch",k)},[f,m,d,g,v,k,n,i,N,q,O,s,u,o,x,$,I,z,J,K,oe,h,D,U,_,R,ke,S,Y]}class hl extends We{constructor(t){super(),Ze(this,t,fl,ul,Xe,{date:21,startDate:0,endDate:1,showMeridian:2,hasDateComponent:3,i18n:4,minuteSwitch:22,makeTick:23},null,[-1,-1])}get minuteSwitch(){return this.$$.ctx[22]}get makeTick(){return this.$$.ctx[23]}}function Ht(l){let t,e,n,s,i;return{c(){t=A("input"),this.h()},l(a){t=V(a,"INPUT",{type:!0,id:!0,tabindex:!0,name:!0,placeholder:!0,autocomplete:!0,class:!0}),this.h()},h(){b(t,"type",e=l[7]?"hidden":"text"),b(t,"id",l[2]),b(t,"tabindex","0"),b(t,"name",l[3]),t.disabled=l[4],t.required=l[6],t.value=l[1],b(t,"placeholder",l[5]),b(t,"autocomplete","off"),b(t,"class",n=Ee(l[12])+" svelte-pg9n00"),t.readOnly=l[20]},m(a,r){W(a,t,r),l[56](t),s||(i=[At(l[33].call(null,t,l[34])),j(t,"focus",l[41]),j(t,"blur",l[42]),j(t,"click",l[57]),j(t,"input",l[54]),j(t,"change",l[55]),j(t,"keydown",l[38])],s=!0)},p(a,r){r[0]&128&&e!==(e=a[7]?"hidden":"text")&&b(t,"type",e),r[0]&4&&b(t,"id",a[2]),r[0]&8&&b(t,"name",a[3]),r[0]&16&&(t.disabled=a[4]),r[0]&64&&(t.required=a[6]),r[0]&2&&t.value!==a[1]&&(t.value=a[1]),r[0]&32&&b(t,"placeholder",a[5]),r[0]&4096&&n!==(n=Ee(a[12])+" svelte-pg9n00")&&b(t,"class",n),r[0]&1048576&&(t.readOnly=a[20])},d(a){a&&M(t),l[56](null),s=!1,Ye(i)}}}function Yt(l){let t,e,n,s,i,a,r,o,u;const h=[dl,cl],f=[];function m(d,g){return d[22]==="date"?0:1}return e=m(l),n=f[e]=h[e](l),{c(){t=A("div"),n.c(),this.h()},l(d){t=V(d,"DIV",{class:!0});var g=B(t);n.l(g),g.forEach(M),this.h()},h(){b(t,"class",s="std-calendar-wrap is-popup "+l[8]+" svelte-pg9n00")},m(d,g){W(d,t,g),f[e].m(t,null),r=!0,o||(u=[At(i=l[18].call(null,t,{inputEl:l[25],visible:l[30],inputRect:l[26]})),j(t,"mousedown",ye(l[53]))],o=!0)},p(d,g){let v=e;e=m(d),e===v?f[e].p(d,g):(pe(),ae(f[v],1,1,()=>{f[v]=null}),ve(),n=f[e],n?n.p(d,g):(n=f[e]=h[e](d),n.c()),re(n,1),n.m(t,null)),(!r||g[0]&256&&s!==(s="std-calendar-wrap is-popup "+d[8]+" svelte-pg9n00"))&&b(t,"class",s),i&&el(i.update)&&g[0]&1174405120&&i.update.call(null,{inputEl:d[25],visible:d[30],inputRect:d[26]})},i(d){r||(re(n),d&&Fe(()=>{a||(a=Se(t,l[31],{duration:200},!0)),a.run(1)}),r=!0)},o(d){ae(n),d&&(a||(a=Se(t,l[31],{duration:200},!1)),a.run(0)),r=!1},d(d){d&&M(t),f[e].d(),d&&a&&a.end(),o=!1,Ye(u)}}}function cl(l){let t,e,n={date:l[19],startDate:l[23],endDate:l[24],hasDateComponent:l[21]!=="time",showMeridian:l[9].match(l[10]==="php"?"a|A":"p|P")!==null,i18n:l[17]};return t=new hl({props:n}),l[59](t),t.$on("time",l[35]),t.$on("switch",l[39]),t.$on("close",l[40]),{c(){Vt(t.$$.fragment)},l(s){qt(t.$$.fragment,s)},m(s,i){It(t,s,i),e=!0},p(s,i){const a={};i[0]&524288&&(a.date=s[19]),i[0]&8388608&&(a.startDate=s[23]),i[0]&16777216&&(a.endDate=s[24]),i[0]&2097152&&(a.hasDateComponent=s[21]!=="time"),i[0]&1536&&(a.showMeridian=s[9].match(s[10]==="php"?"a|A":"p|P")!==null),i[0]&131072&&(a.i18n=s[17]),t.$set(a)},i(s){e||(re(t.$$.fragment,s),e=!0)},o(s){ae(t.$$.fragment,s),e=!1},d(s){l[59](null),Ut(t,s)}}}function dl(l){var r;let t,e,n,s,i={date:l[19],startDate:l[23],endDate:l[24],enableTimeToggle:(r=l[21])==null?void 0:r.includes("time"),i18n:l[17],weekStart:l[11]};t=new ol({props:i}),l[58](t),t.$on("date",l[35]),t.$on("switch",l[39]);let a=(l[15]||l[16])&&Bt(l);return{c(){Vt(t.$$.fragment),e=le(),a&&a.c(),n=Ue()},l(o){qt(t.$$.fragment,o),e=ne(o),a&&a.l(o),n=Ue()},m(o,u){It(t,o,u),W(o,e,u),a&&a.m(o,u),W(o,n,u),s=!0},p(o,u){var f;const h={};u[0]&524288&&(h.date=o[19]),u[0]&8388608&&(h.startDate=o[23]),u[0]&16777216&&(h.endDate=o[24]),u[0]&2097152&&(h.enableTimeToggle=(f=o[21])==null?void 0:f.includes("time")),u[0]&131072&&(h.i18n=o[17]),u[0]&2048&&(h.weekStart=o[11]),t.$set(h),o[15]||o[16]?a?a.p(o,u):(a=Bt(o),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i(o){s||(re(t.$$.fragment,o),s=!0)},o(o){ae(t.$$.fragment,o),s=!1},d(o){l[58](null),Ut(t,o),o&&M(e),a&&a.d(o),o&&M(n)}}}function Bt(l){let t,e,n=l[15]&&Ct(l),s=l[16]&&Ot(l);return{c(){t=A("div"),n&&n.c(),e=le(),s&&s.c(),this.h()},l(i){t=V(i,"DIV",{class:!0});var a=B(t);n&&n.l(a),e=ne(a),s&&s.l(a),a.forEach(M),this.h()},h(){b(t,"class","std-btn-row svelte-pg9n00")},m(i,a){W(i,t,a),n&&n.m(t,null),F(t,e),s&&s.m(t,null)},p(i,a){i[15]?n?n.p(i,a):(n=Ct(i),n.c(),n.m(t,e)):n&&(n.d(1),n=null),i[16]?s?s.p(i,a):(s=Ot(i),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(i){i&&M(t),n&&n.d(),s&&s.d()}}}function Ct(l){let t,e=l[17].todayBtn+"",n,s,i,a;return{c(){t=A("button"),n=fe(e),this.h()},l(r){t=V(r,"BUTTON",{class:!0});var o=B(t);n=he(o,e),o.forEach(M),this.h()},h(){b(t,"class",s=Ee(l[13])+" svelte-pg9n00"),t.disabled=l[32]},m(r,o){W(r,t,o),F(t,n),i||(a=j(t,"click",l[36]),i=!0)},p(r,o){o[0]&131072&&e!==(e=r[17].todayBtn+"")&&ce(n,e),o[0]&8192&&s!==(s=Ee(r[13])+" svelte-pg9n00")&&b(t,"class",s),o[1]&2&&(t.disabled=r[32])},d(r){r&&M(t),i=!1,a()}}}function Ot(l){let t,e=l[17].clearBtn+"",n,s,i,a,r;return{c(){t=A("button"),n=fe(e),this.h()},l(o){t=V(o,"BUTTON",{class:!0});var u=B(t);n=he(u,e),u.forEach(M),this.h()},h(){b(t,"class",s=Ee(l[14])+" svelte-pg9n00"),t.disabled=i=!l[19]},m(o,u){W(o,t,u),F(t,n),a||(r=j(t,"click",l[37]),a=!0)},p(o,u){u[0]&131072&&e!==(e=o[17].clearBtn+"")&&ce(n,e),u[0]&16384&&s!==(s=Ee(o[14])+" svelte-pg9n00")&&b(t,"class",s),u[0]&524288&&i!==(i=!o[19])&&(t.disabled=i)},d(o){o&&M(t),a=!1,r()}}}function gl(l){let t,e,n,s=!l[0]&&Ht(l),i=l[29]&&l[20]&&Yt(l);return{c(){s&&s.c(),t=le(),i&&i.c(),e=Ue()},l(a){s&&s.l(a),t=ne(a),i&&i.l(a),e=Ue()},m(a,r){s&&s.m(a,r),W(a,t,r),i&&i.m(a,r),W(a,e,r),n=!0},p(a,r){a[0]?s&&(s.d(1),s=null):s?s.p(a,r):(s=Ht(a),s.c(),s.m(t.parentNode,t)),a[29]&&a[20]?i?(i.p(a,r),r[0]&537919488&&re(i,1)):(i=Yt(a),i.c(),re(i,1),i.m(e.parentNode,e)):i&&(pe(),ae(i,1,1,()=>{i=null}),ve())},i(a){n||(re(i),n=!0)},o(a){ae(i),n=!1},d(a){s&&s.d(a),a&&M(t),i&&i.d(a),a&&M(e)}}}const ue=ll;function ml(l,t,e){let n,s,i,a,r,o,{inputId:u=""}=t,{name:h="date"}=t,{disabled:f=!1}=t,{placeholder:m=null}=t,{required:d=!1}=t,{inputElement:g}=t,{value:v=null}=t,{initialDate:D=null}=t,{startDate:U=null}=t,{endDate:N=null}=t,{pickerOnly:k=!1}=t,{theme:q=ue.theme}=t,{mode:p=ue.mode}=t,{format:_=ue.format}=t,{formatType:C=ue.formatType}=t,{weekStart:T=ue.weekStart}=t,{inputClasses:O=ue.inputClasses}=t,{todayBtnClasses:Q=ue.todayBtnClasses}=t,{clearBtnClasses:x=ue.clearBtnClasses}=t,{todayBtn:$=ue.todayBtn}=t,{clearBtn:I=ue.clearBtn}=t,{clearToggle:z=ue.clearToggle}=t,{autoclose:J=ue.autoclose}=t,{i18n:K=ue.i18n}=t,{positionFn:oe=sl}=t,{validatorAction:R=null}=t;function ke(y){e(19,E=Ce(y,_,K,C))}const S=Qe();v&&(v=v.replace(/(:\d+):\d+/,"$1"));let Y=v,c=_,E=D&&D instanceof Date?D:v?Ce(v,_,K,C):null;E&&D&&(v=Je(E,_,K,C));let Z=k,se=g,w=null,P=R?R.shift():()=>{},H=R||[],G,ie,X=!1,ee=null,te="",de=te==="time"?"time":"date";function Re(){k||e(29,a=!1),te!=="time"&&e(22,de="date")}function Le(y){let De=y.detail||null;y.detail&&E&&E.getFullYear()===y.detail.getFullYear()&&E.getMonth()===y.detail.getMonth()&&E.getDate()===y.detail.getDate()&&te==="date"&&z&&(De=null),e(1,v=De?Je(De,_,K,C):null),J&&(te==="date"||!De)&&!k&&!X&&Re(),De&&!X&&te==="datetime"&&de==="date"&&e(22,de="time"),X&&de==="time"?ee=setTimeout(()=>{X=!1},400):X=!1,Nt().then(()=>{g&&e(0,g.value=v||"",g),se&&se.dispatchEvent(new Event("input")),S("change",v)})}function zt(){const y=new Date;if(n&&n>y)return;const De=E?E.getHours():y.getHours(),Qt=E?E.getMinutes():y.getMinutes();Le(new CustomEvent("ontoday",{detail:new Date(y.getFullYear(),y.getMonth(),y.getDate(),De,Qt,0)}))}function Ge(){Le(new CustomEvent("clear",{detail:null}))}function et(y){if(a||(["Backspace","Delete"].includes(y.key)&&Ge(),y.key==="Enter"&&Be()),!a&&y.key!=="Tab"){e(29,a=y.key!=="Shift"),y.preventDefault();return}switch(y.key){case"PageDown":case"PageUp":case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":y.preventDefault(),ee&&clearTimeout(ee),X=!0,de==="date"?G.handleGridNav(y.key,y.shiftKey):ie.makeTick(["ArrowDown","ArrowLeft","PageDown"].includes(y.key)?-1:1);break;case"Escape":Z&&e(29,a=!1);break;case"Backspace":case"Delete":Ge();break;case"Enter":if(Z&&y.preventDefault(),de==="time")return ie.minuteSwitch(null)?Re():ie.minuteSwitch(!0);Z&&te==="date"&&e(29,a=!1),E&&te.includes("time")&&e(22,de="time");break;case"Tab":a&&(e(29,a=!1),y.preventDefault());case"F5":break;default:y.preventDefault()}}function Pt(y){e(22,de=y.detail)}function Rt(){J&&!X&&Re()}function Be(){e(26,w=se&&se.getBoundingClientRect()),e(20,Z=!0),e(29,a=!0)}function tt(){e(20,Z=!1),e(29,a=!1),!g&&S("blur")}g&&$t(()=>{e(0,g.onfocus=Be,g),e(0,g.onblur=tt,g),e(0,g.onclick=()=>!a&&Be(),g),e(0,g.onkeydown=et,g)});function Lt(y){je.call(this,l,y)}function Gt(y){je.call(this,l,y)}function jt(y){je.call(this,l,y)}function Jt(y){Ie[y?"unshift":"push"](()=>{se=y,e(25,se)})}const Wt=()=>{!a&&Be()};function Zt(y){Ie[y?"unshift":"push"](()=>{G=y,e(27,G)})}function Xt(y){Ie[y?"unshift":"push"](()=>{ie=y,e(28,ie)})}return l.$$set=y=>{"inputId"in y&&e(2,u=y.inputId),"name"in y&&e(3,h=y.name),"disabled"in y&&e(4,f=y.disabled),"placeholder"in y&&e(5,m=y.placeholder),"required"in y&&e(6,d=y.required),"inputElement"in y&&e(0,g=y.inputElement),"value"in y&&e(1,v=y.value),"initialDate"in y&&e(43,D=y.initialDate),"startDate"in y&&e(44,U=y.startDate),"endDate"in y&&e(45,N=y.endDate),"pickerOnly"in y&&e(7,k=y.pickerOnly),"theme"in y&&e(8,q=y.theme),"mode"in y&&e(46,p=y.mode),"format"in y&&e(9,_=y.format),"formatType"in y&&e(10,C=y.formatType),"weekStart"in y&&e(11,T=y.weekStart),"inputClasses"in y&&e(12,O=y.inputClasses),"todayBtnClasses"in y&&e(13,Q=y.todayBtnClasses),"clearBtnClasses"in y&&e(14,x=y.clearBtnClasses),"todayBtn"in y&&e(15,$=y.todayBtn),"clearBtn"in y&&e(16,I=y.clearBtn),"clearToggle"in y&&e(47,z=y.clearToggle),"autoclose"in y&&e(48,J=y.autoclose),"i18n"in y&&e(17,K=y.i18n),"positionFn"in y&&e(18,oe=y.positionFn),"validatorAction"in y&&e(49,R=y.validatorAction)},l.$$.update=()=>{if(l.$$.dirty[0]&132608|l.$$.dirty[1]&8192&&e(23,n=U?Ce(U,_,K,C):null),l.$$.dirty[0]&132608|l.$$.dirty[1]&16384&&e(24,s=N?new Date(Ce(N,_,K,C).setSeconds(1)):null),l.$$.dirty[0]&25165824&&e(32,i=n&&n>new Date||s&&s{}:Te),l.$$.dirty[0]&6291968|l.$$.dirty[1]&32768&&(e(21,te=p==="auto"?_.match(/g|hh?|ii?/i)&&_.match(/y|m|d/i)?"datetime":_.match(/g|hh?|ii?/i)?"time":"date":p),te==="time"&&de!==te&&e(22,de=te)),l.$$.dirty[0]&1048577&&g&&e(0,g.readOnly=Z,g),l.$$.dirty[0]&128&&e(30,o=!!k),l.$$.dirty[0]&656898|l.$$.dirty[1]&3178496){if(v!==Y){const y=v?Ce(v,_,K,C):null;e(19,E=y),e(51,Y=v)}c!==_&&E&&(e(1,v=Je(E,_,K,C)),e(51,Y=v),e(52,c=_),p==="auto"&&e(21,te=_.match(/g|hh?|ii?/i)&&_.match(/y|m|d/i)?"datetime":_.match(/g|hh?|ii?/i)?"time":"date"))}},[g,v,u,h,f,m,d,k,q,_,C,T,O,Q,x,$,I,K,oe,E,Z,te,de,n,s,se,w,G,ie,a,o,r,i,P,H,Le,zt,Ge,et,Pt,Rt,Be,tt,D,U,N,p,z,J,R,ke,Y,c,Lt,Gt,jt,Jt,Wt,Zt,Xt]}class bl extends We{constructor(t){super(),Ze(this,t,ml,gl,Xe,{inputId:2,name:3,disabled:4,placeholder:5,required:6,inputElement:0,value:1,initialDate:43,startDate:44,endDate:45,pickerOnly:7,theme:8,mode:46,format:9,formatType:10,weekStart:11,inputClasses:12,todayBtnClasses:13,clearBtnClasses:14,todayBtn:15,clearBtn:16,clearToggle:47,autoclose:48,i18n:17,positionFn:18,validatorAction:49,setDateValue:50},null,[-1,-1,-1])}get setDateValue(){return this.$$.ctx[50]}}export{bl as S,ue as c}; diff --git a/docs/_app/immutable/chunks/index-7de3b327.js b/docs/_app/immutable/chunks/index-840fc8fa.js similarity index 95% rename from docs/_app/immutable/chunks/index-7de3b327.js rename to docs/_app/immutable/chunks/index-840fc8fa.js index eadc23a..1b418c0 100644 --- a/docs/_app/immutable/chunks/index-7de3b327.js +++ b/docs/_app/immutable/chunks/index-840fc8fa.js @@ -1 +1 @@ -import{c as l,S as b}from"./SveltyPicker-f3a80465.js";import{S as E}from"./SveltyPicker-f3a80465.js";import"./index-bba13a04.js";const h=["value","name","placeholder","start-date","end-date","disabled","input-classes","mode","format","week-start","today-btn","clear-btn","autoclose","required"];function c(n,e){switch(n){case"value":return e||"";case"required":case"disabled":case"today-btn":case"clear-btn":case"autoclose":return e!==null&&e!=="false";case"weekStart":return parseInt(e)}return e}function a(n){return n.includes("-")?n.split("-").reduce((e,t,i)=>(i&&(t=t[0].toUpperCase()+t.substr(1)),e+t),""):n}class p extends HTMLInputElement{constructor(){super(),this.picker=null;const e=["name","placeholder","mode","format"].reduce((s,r)=>(s[r]={get(){return c(r,this.getAttribute(r))},set(o){this.setAttribute(r,o)}},s),{}),t={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(s){this.setAttribute("week-start",s)}},startDate:{get(){return this.getAttribute("start-date")},set(s){s&&this.setAttribute("start-date",s),!s&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(s){s&&this.setAttribute("end-date",s),!s&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(s){s&&this.setAttribute("input-classes",s),!s&&this.removeAttribute("input-classes")}}},i=["required","disabled","today-btn","clear-btn","autoclose"].reduce((s,r)=>{const o=a(r);return s[o]={get(){const u=this.hasAttribute(r),d=u?this.getAttribute(r)!=="false":!0;return u?d:l[o]},set(u){u?this.setAttribute(r,u=""):this.hasAttribute(r)?this.removeAttribute(r):this.picker.$set({[o]:u})}},s},{});Object.defineProperties(this,Object.assign({},e,t,i))}focus(){if(this.disabled)return;const e=this.querySelector("input");e&&e.focus()}static get observedAttributes(){return h}attributeChangedCallback(e,t,i){this.picker&&t!==i&&(this.picker.$set({[a(e)]:c(e,i)}),e==="value"&&(this.value=i))}connectedCallback(){if(this.picker)return;let e={inputElement:this,value:this.value};for(const t of h)this.hasAttribute(t)&&(e[a(t)]=c(t,this.getAttribute(t)));this.picker=new b({target:this.parentElement,props:e}),this.picker.$on("input",t=>{this.setAttribute("value",t.target.value),this.dispatchEvent(new Event("input"))}),this.picker.$on("blur",t=>{this.dispatchEvent(new Event("blur"))}),setTimeout(()=>{if(this.hasAttribute("from")){const t=document.getElementById(this.getAttribute("from"));t.oninput=i=>{this.picker.$set({startDate:t.value})}}if(this.hasAttribute("to")){const t=document.getElementById(this.getAttribute("to"));t.oninput=i=>{this.picker.$set({endDate:t.value})}}})}disconnectedCallback(){this.picker&&this.picker.$destroy()}}function g(n){window.customElements.define(n,p,{extends:"input"})}export{E as default,g as registerElement}; +import{c as l,S as b}from"./SveltyPicker-15fcdb01.js";import{S as E}from"./SveltyPicker-15fcdb01.js";import"./index-bba13a04.js";const h=["value","name","placeholder","start-date","end-date","disabled","input-classes","mode","format","week-start","today-btn","clear-btn","autoclose","required"];function c(n,e){switch(n){case"value":return e||"";case"required":case"disabled":case"today-btn":case"clear-btn":case"autoclose":return e!==null&&e!=="false";case"weekStart":return parseInt(e)}return e}function a(n){return n.includes("-")?n.split("-").reduce((e,t,i)=>(i&&(t=t[0].toUpperCase()+t.substr(1)),e+t),""):n}class p extends HTMLInputElement{constructor(){super(),this.picker=null;const e=["name","placeholder","mode","format"].reduce((s,r)=>(s[r]={get(){return c(r,this.getAttribute(r))},set(o){this.setAttribute(r,o)}},s),{}),t={form:{get(){return this.closest("form")}},weekStart:{get(){return this.getAttribute("week-start")},set(s){this.setAttribute("week-start",s)}},startDate:{get(){return this.getAttribute("start-date")},set(s){s&&this.setAttribute("start-date",s),!s&&this.removeAttribute("start-date")}},endDate:{get(){return this.getAttribute("end-date")},set(s){s&&this.setAttribute("end-date",s),!s&&this.removeAttribute("end-date")}},inputClasses:{get(){return this.getAttribute("input-classes")},set(s){s&&this.setAttribute("input-classes",s),!s&&this.removeAttribute("input-classes")}}},i=["required","disabled","today-btn","clear-btn","autoclose"].reduce((s,r)=>{const o=a(r);return s[o]={get(){const u=this.hasAttribute(r),d=u?this.getAttribute(r)!=="false":!0;return u?d:l[o]},set(u){u?this.setAttribute(r,u=""):this.hasAttribute(r)?this.removeAttribute(r):this.picker.$set({[o]:u})}},s},{});Object.defineProperties(this,Object.assign({},e,t,i))}focus(){if(this.disabled)return;const e=this.querySelector("input");e&&e.focus()}static get observedAttributes(){return h}attributeChangedCallback(e,t,i){this.picker&&t!==i&&(this.picker.$set({[a(e)]:c(e,i)}),e==="value"&&(this.value=i))}connectedCallback(){if(this.picker)return;let e={inputElement:this,value:this.value};for(const t of h)this.hasAttribute(t)&&(e[a(t)]=c(t,this.getAttribute(t)));this.picker=new b({target:this.parentElement,props:e}),this.picker.$on("input",t=>{this.setAttribute("value",t.target.value),this.dispatchEvent(new Event("input"))}),this.picker.$on("blur",t=>{this.dispatchEvent(new Event("blur"))}),setTimeout(()=>{if(this.hasAttribute("from")){const t=document.getElementById(this.getAttribute("from"));t.oninput=i=>{this.picker.$set({startDate:t.value})}}if(this.hasAttribute("to")){const t=document.getElementById(this.getAttribute("to"));t.oninput=i=>{this.picker.$set({endDate:t.value})}}})}disconnectedCallback(){this.picker&&this.picker.$destroy()}}function g(n){window.customElements.define(n,p,{extends:"input"})}export{E as default,g as registerElement}; diff --git a/docs/_app/immutable/pages/custom-element.svelte-69ea5e4e.js b/docs/_app/immutable/pages/custom-element.svelte-a0f6cc30.js similarity index 96% rename from docs/_app/immutable/pages/custom-element.svelte-69ea5e4e.js rename to docs/_app/immutable/pages/custom-element.svelte-a0f6cc30.js index 3880366..6e9e0db 100644 --- a/docs/_app/immutable/pages/custom-element.svelte-69ea5e4e.js +++ b/docs/_app/immutable/pages/custom-element.svelte-a0f6cc30.js @@ -18,4 +18,4 @@ supports all options that can be passed as string (So all except initialDate).`) Picker initialized as custom element:\r `),y=p(e,"INPUT",{type:!0,name:!0,is:!0,format:!0,class:!0,placeholder:!0}),L=I(e),_e(E.$$.fragment,e),H=I(e),l=p(e,"P",{class:!0});var u=d(l);q=r(u,"Custom element supports 2 custom "),g=p(u,"CODE",{class:!0});var le=d(g);A=r(le,"from"),le.forEach(n),F=r(u," and "),x=p(u,"CODE",{class:!0});var oe=d(x);G=r(oe,"to"),oe.forEach(n),J=r(u,` properties, which should\r specify `),D=p(u,"B",{class:!0});var re=d(D);K=r(re,"id"),re.forEach(n),Q=r(u," of different datetime picker for limiting "),P=p(u,"CODE",{class:!0});var pe=d(P);W=r(pe,"startDate"),pe.forEach(n),X=r(u," or "),$=p(u,"CODE",{class:!0});var ce=d($);Y=r(ce,"endDate"),ce.forEach(n),Z=r(u,`.\r - Check source how it is defined.`),u.forEach(n),N=I(e),f=p(e,"DIV",{class:!0});var w=d(f);k=p(w,"INPUT",{type:!0,id:!0,to:!0,name:!0,format:!0,is:!0,placeholder:!0,class:!0}),ee=I(w),b=p(w,"DIV",{class:!0});var ie=d(b);te=r(ie,"\u2014"),ie.forEach(n),se=I(w),_=p(w,"INPUT",{type:!0,id:!0,from:!0,name:!0,format:!0,is:!0,placeholder:!0,class:!0}),w.forEach(n),this.h()},h(){t(a,"class","header"),t(C,"class","code"),t(i,"class","my-4 svelte-1p3m44a"),t(y,"type","text"),t(y,"name","my-date"),t(y,"is","el-picker"),t(y,"format","dS MM"),t(y,"class","border-2 rounded-md border-gray-300 p-1 svelte-1p3m44a"),t(y,"placeholder","Pick your birthdate"),t(g,"class","code"),t(x,"class","code"),t(D,"class","font-bold svelte-1p3m44a"),t(P,"class","code"),t($,"class","code"),t(l,"class","my-4 svelte-1p3m44a"),t(k,"type","text"),t(k,"id","picker-from"),t(k,"to","picker-to"),t(k,"name","my-date[from]"),t(k,"format","yyyy-mm-dd"),t(k,"is","el-picker"),t(k,"placeholder","From"),t(k,"class","svelte-1p3m44a"),t(b,"class","delimiter svelte-1p3m44a"),t(_,"type","text"),t(_,"id","picker-to"),t(_,"from","picker-from"),t(_,"name","my-date[to]"),t(_,"format","yyyy-mm-dd"),t(_,"is","el-picker"),t(_,"placeholder","To"),t(_,"class","svelte-1p3m44a"),t(f,"class","group svelte-1p3m44a")},m(e,c){v(e,a,c),s(a,O),v(e,h,c),v(e,i,c),s(i,B),s(i,C),s(C,R),s(i,j),v(e,M,c),v(e,y,c),v(e,L,c),ve(E,e,c),v(e,H,c),v(e,l,c),s(l,q),s(l,g),s(g,A),s(l,F),s(l,x),s(x,G),s(l,J),s(l,D),s(D,K),s(l,Q),s(l,P),s(P,W),s(l,X),s(l,$),s($,Y),s(l,Z),v(e,N,c),v(e,f,c),s(f,k),s(f,ee),s(f,b),s(b,te),s(f,se),s(f,_),U=!0},p:z,i(e){U||(he(E.$$.fragment,e),U=!0)},o(e){ye(E.$$.fragment,e),U=!1},d(e){e&&n(a),e&&n(h),e&&n(i),e&&n(M),e&&n(y),e&&n(L),Ee(E,e),e&&n(H),e&&n(l),e&&n(N),e&&n(f)}}}function Pe(S){return Ce(()=>{fe(()=>import("../chunks/index-7de3b327.js"),["immutable/chunks/index-7de3b327.js","immutable/chunks/SveltyPicker-f3a80465.js","immutable/assets/SveltyPicker-eefb95f0.css","immutable/chunks/index-bba13a04.js"]).then(a=>{console.log("\u{1F973} registering SveltyPicker as element"),a.registerElement&&a.registerElement("el-picker")}).catch(a=>console.log("error",a))}),[]}class we extends ue{constructor(a){super(),me(this,a,Pe,De,de,{})}}export{we as default}; + Check source how it is defined.`),u.forEach(n),N=I(e),f=p(e,"DIV",{class:!0});var w=d(f);k=p(w,"INPUT",{type:!0,id:!0,to:!0,name:!0,format:!0,is:!0,placeholder:!0,class:!0}),ee=I(w),b=p(w,"DIV",{class:!0});var ie=d(b);te=r(ie,"\u2014"),ie.forEach(n),se=I(w),_=p(w,"INPUT",{type:!0,id:!0,from:!0,name:!0,format:!0,is:!0,placeholder:!0,class:!0}),w.forEach(n),this.h()},h(){t(a,"class","header"),t(C,"class","code"),t(i,"class","my-4 svelte-1p3m44a"),t(y,"type","text"),t(y,"name","my-date"),t(y,"is","el-picker"),t(y,"format","dS MM"),t(y,"class","border-2 rounded-md border-gray-300 p-1 svelte-1p3m44a"),t(y,"placeholder","Pick your birthdate"),t(g,"class","code"),t(x,"class","code"),t(D,"class","font-bold svelte-1p3m44a"),t(P,"class","code"),t($,"class","code"),t(l,"class","my-4 svelte-1p3m44a"),t(k,"type","text"),t(k,"id","picker-from"),t(k,"to","picker-to"),t(k,"name","my-date[from]"),t(k,"format","yyyy-mm-dd"),t(k,"is","el-picker"),t(k,"placeholder","From"),t(k,"class","svelte-1p3m44a"),t(b,"class","delimiter svelte-1p3m44a"),t(_,"type","text"),t(_,"id","picker-to"),t(_,"from","picker-from"),t(_,"name","my-date[to]"),t(_,"format","yyyy-mm-dd"),t(_,"is","el-picker"),t(_,"placeholder","To"),t(_,"class","svelte-1p3m44a"),t(f,"class","group svelte-1p3m44a")},m(e,c){v(e,a,c),s(a,O),v(e,h,c),v(e,i,c),s(i,B),s(i,C),s(C,R),s(i,j),v(e,M,c),v(e,y,c),v(e,L,c),ve(E,e,c),v(e,H,c),v(e,l,c),s(l,q),s(l,g),s(g,A),s(l,F),s(l,x),s(x,G),s(l,J),s(l,D),s(D,K),s(l,Q),s(l,P),s(P,W),s(l,X),s(l,$),s($,Y),s(l,Z),v(e,N,c),v(e,f,c),s(f,k),s(f,ee),s(f,b),s(b,te),s(f,se),s(f,_),U=!0},p:z,i(e){U||(he(E.$$.fragment,e),U=!0)},o(e){ye(E.$$.fragment,e),U=!1},d(e){e&&n(a),e&&n(h),e&&n(i),e&&n(M),e&&n(y),e&&n(L),Ee(E,e),e&&n(H),e&&n(l),e&&n(N),e&&n(f)}}}function Pe(S){return Ce(()=>{fe(()=>import("../chunks/index-840fc8fa.js"),["immutable/chunks/index-840fc8fa.js","immutable/chunks/SveltyPicker-15fcdb01.js","immutable/assets/SveltyPicker-31152ba0.css","immutable/chunks/index-bba13a04.js"]).then(a=>{console.log("\u{1F973} registering SveltyPicker as element"),a.registerElement&&a.registerElement("el-picker")}).catch(a=>console.log("error",a))}),[]}class we extends ue{constructor(a){super(),me(this,a,Pe,De,de,{})}}export{we as default}; diff --git a/docs/_app/immutable/pages/formatting.svelte-84f54c53.js b/docs/_app/immutable/pages/formatting.svelte-07ad7b3a.js similarity index 98% rename from docs/_app/immutable/pages/formatting.svelte-84f54c53.js rename to docs/_app/immutable/pages/formatting.svelte-07ad7b3a.js index 8f9756c..ef1a833 100644 --- a/docs/_app/immutable/pages/formatting.svelte-84f54c53.js +++ b/docs/_app/immutable/pages/formatting.svelte-07ad7b3a.js @@ -1,3 +1,3 @@ -import{S as Me,i as Ye,s as je,l as o,r as d,a as b,w as De,m as i,n as p,u as c,h as s,c as P,x as Ie,p as n,b as w,L as t,y as ge,U as Ae,M as ke,f as z,t as J,d as ze,B as He,V as Ge,g as Je}from"../chunks/index-bba13a04.js";import{F as Ke,a as Qe}from"../chunks/formatting_php-3c906c50.js";import{S as Re}from"../chunks/SveltyPicker-f3a80465.js";function qe(f){let m,E,_,a,k;return a=new Qe({}),{c(){m=o("h3"),E=d("Standard"),_=b(),De(a.$$.fragment),this.h()},l(l){m=i(l,"H3",{class:!0});var $=p(m);E=c($,"Standard"),$.forEach(s),_=P(l),Ie(a.$$.fragment,l),this.h()},h(){n(m,"class","header")},m(l,$){w(l,m,$),t(m,E),w(l,_,$),ge(a,l,$),k=!0},i(l){k||(z(a.$$.fragment,l),k=!0)},o(l){J(a.$$.fragment,l),k=!1},d(l){l&&s(m),l&&s(_),He(a,l)}}}function We(f){let m,E,_,a,k,l,$,G,V,se,ae,L,le,re,x,oe,ie,B,ne,fe,K,I,de,N,ce,ue,Q,g,U,pe,me,D,A,S,_e,q,H,he,T,M,v,ve,ye,C,y,Ee,R,Y,O,we,W,F,X,$e,Se;S=new Re({props:{placeholder:"Pick some date and define your own format",inputClasses:"picker-style",format:f[1],formatType:f[0]}});let u=f[0]!=="php"&&qe();return F=new Ke({}),{c(){m=o("h2"),E=d("Format settings"),_=b(),a=o("p"),k=d("Date format can be defined under "),l=o("code"),$=d("formatType"),G=d(" property. It has two options: "),V=o("code"),se=d("standard"),ae=d(`\r +import{S as Me,i as Ye,s as je,l as o,r as d,a as b,w as De,m as i,n as p,u as c,h as s,c as P,x as Ie,p as n,b as w,L as t,y as ge,U as Ae,M as ke,f as z,t as J,d as ze,B as He,V as Ge,g as Je}from"../chunks/index-bba13a04.js";import{F as Ke,a as Qe}from"../chunks/formatting_php-3c906c50.js";import{S as Re}from"../chunks/SveltyPicker-15fcdb01.js";function qe(f){let m,E,_,a,k;return a=new Qe({}),{c(){m=o("h3"),E=d("Standard"),_=b(),De(a.$$.fragment),this.h()},l(l){m=i(l,"H3",{class:!0});var $=p(m);E=c($,"Standard"),$.forEach(s),_=P(l),Ie(a.$$.fragment,l),this.h()},h(){n(m,"class","header")},m(l,$){w(l,m,$),t(m,E),w(l,_,$),ge(a,l,$),k=!0},i(l){k||(z(a.$$.fragment,l),k=!0)},o(l){J(a.$$.fragment,l),k=!1},d(l){l&&s(m),l&&s(_),He(a,l)}}}function We(f){let m,E,_,a,k,l,$,G,V,se,ae,L,le,re,x,oe,ie,B,ne,fe,K,I,de,N,ce,ue,Q,g,U,pe,me,D,A,S,_e,q,H,he,T,M,v,ve,ye,C,y,Ee,R,Y,O,we,W,F,X,$e,Se;S=new Re({props:{placeholder:"Pick some date and define your own format",inputClasses:"picker-style",format:f[1],formatType:f[0]}});let u=f[0]!=="php"&&qe();return F=new Ke({}),{c(){m=o("h2"),E=d("Format settings"),_=b(),a=o("p"),k=d("Date format can be defined under "),l=o("code"),$=d("formatType"),G=d(" property. It has two options: "),V=o("code"),se=d("standard"),ae=d(`\r and `),L=o("code"),le=d("php"),re=d(" where "),x=o("code"),oe=d("standard"),ie=d(" is the "),B=o("b"),ne=d("default"),fe=d("."),K=b(),I=o("p"),de=d("If "),N=o("code"),ce=d("mode"),ue=d(" is not specified explicitely, time picker is available only when time formatting is present."),Q=b(),g=o("div"),U=o("h3"),pe=d("Playground"),me=b(),D=o("div"),A=o("div"),De(S.$$.fragment),_e=b(),q=o("div"),H=o("input"),he=b(),T=o("div"),M=o("label"),v=o("input"),ve=d(" Standard"),ye=b(),C=o("label"),y=o("input"),Ee=d(" PHP"),R=b(),u&&u.c(),Y=b(),O=o("h3"),we=d("PHP"),W=b(),De(F.$$.fragment),this.h()},l(e){m=i(e,"H2",{class:!0});var r=p(m);E=c(r,"Format settings"),r.forEach(s),_=P(e),a=i(e,"P",{class:!0});var h=p(a);k=c(h,"Date format can be defined under "),l=i(h,"CODE",{class:!0});var Te=p(l);$=c(Te,"formatType"),Te.forEach(s),G=c(h," property. It has two options: "),V=i(h,"CODE",{class:!0});var Ce=p(V);se=c(Ce,"standard"),Ce.forEach(s),ae=c(h,`\r and `),L=i(h,"CODE",{class:!0});var Oe=p(L);le=c(Oe,"php"),Oe.forEach(s),re=c(h," where "),x=i(h,"CODE",{class:!0});var Fe=p(x);oe=c(Fe,"standard"),Fe.forEach(s),ie=c(h," is the "),B=i(h,"B",{class:!0});var Ve=p(B);ne=c(Ve,"default"),Ve.forEach(s),fe=c(h,"."),h.forEach(s),K=P(e),I=i(e,"P",{class:!0});var Z=p(I);de=c(Z,"If "),N=i(Z,"CODE",{class:!0});var Le=p(N);ce=c(Le,"mode"),Le.forEach(s),ue=c(Z," is not specified explicitely, time picker is available only when time formatting is present."),Z.forEach(s),Q=P(e),g=i(e,"DIV",{class:!0});var ee=p(g);U=i(ee,"H3",{class:!0});var xe=p(U);pe=c(xe,"Playground"),xe.forEach(s),me=P(ee),D=i(ee,"DIV",{class:!0});var j=p(D);A=i(j,"DIV",{class:!0});var Be=p(A);Ie(S.$$.fragment,Be),Be.forEach(s),_e=P(j),q=i(j,"DIV",{class:!0});var Ne=p(q);H=i(Ne,"INPUT",{type:!0,class:!0}),Ne.forEach(s),he=P(j),T=i(j,"DIV",{class:!0});var te=p(T);M=i(te,"LABEL",{});var be=p(M);v=i(be,"INPUT",{type:!0}),ve=c(be," Standard"),be.forEach(s),ye=P(te),C=i(te,"LABEL",{class:!0});var Pe=p(C);y=i(Pe,"INPUT",{type:!0}),Ee=c(Pe," PHP"),Pe.forEach(s),te.forEach(s),j.forEach(s),ee.forEach(s),R=P(e),u&&u.l(e),Y=P(e),O=i(e,"H3",{class:!0});var Ue=p(O);we=c(Ue,"PHP"),Ue.forEach(s),W=P(e),Ie(F.$$.fragment,e),this.h()},h(){n(m,"class","header"),n(l,"class","code"),n(V,"class","code"),n(L,"class","code"),n(x,"class","code"),n(B,"class","font-bold svelte-1wmxh6"),n(a,"class","my-3 svelte-1wmxh6"),n(N,"class","code"),n(I,"class","my-3 font-bold svelte-1wmxh6"),n(U,"class","header mt-0 svelte-1wmxh6"),n(A,"class","w-1/2 svelte-1wmxh6"),n(H,"type","text"),n(H,"class","picker-style"),n(q,"class","w-auto mx-2 svelte-1wmxh6"),n(v,"type","radio"),v.__value="standard",v.value=v.__value,f[4][0].push(v),n(y,"type","radio"),y.__value="php",y.value=y.__value,f[4][0].push(y),n(C,"class","ml-4 svelte-1wmxh6"),n(T,"class","w-auto flex items-center svelte-1wmxh6"),n(D,"class","flex svelte-1wmxh6"),n(g,"class","bg-orange-200 p-5 rounded-lg w-full svelte-1wmxh6"),n(O,"class","header")},m(e,r){w(e,m,r),t(m,E),w(e,_,r),w(e,a,r),t(a,k),t(a,l),t(l,$),t(a,G),t(a,V),t(V,se),t(a,ae),t(a,L),t(L,le),t(a,re),t(a,x),t(x,oe),t(a,ie),t(a,B),t(B,ne),t(a,fe),w(e,K,r),w(e,I,r),t(I,de),t(I,N),t(N,ce),t(I,ue),w(e,Q,r),w(e,g,r),t(g,U),t(U,pe),t(g,me),t(g,D),t(D,A),ge(S,A,null),t(D,_e),t(D,q),t(q,H),Ae(H,f[1]),t(D,he),t(D,T),t(T,M),t(M,v),v.checked=v.__value===f[0],t(M,ve),t(T,ye),t(T,C),t(C,y),y.checked=y.__value===f[0],t(C,Ee),w(e,R,r),u&&u.m(e,r),w(e,Y,r),w(e,O,r),t(O,we),w(e,W,r),ge(F,e,r),X=!0,$e||(Se=[ke(H,"input",f[2]),ke(v,"change",f[3]),ke(y,"change",f[5])],$e=!0)},p(e,[r]){const h={};r&2&&(h.format=e[1]),r&1&&(h.formatType=e[0]),S.$set(h),r&2&&H.value!==e[1]&&Ae(H,e[1]),r&1&&(v.checked=v.__value===e[0]),r&1&&(y.checked=y.__value===e[0]),e[0]!=="php"?u?r&1&&z(u,1):(u=qe(),u.c(),z(u,1),u.m(Y.parentNode,Y)):u&&(Je(),J(u,1,1,()=>{u=null}),ze())},i(e){X||(z(S.$$.fragment,e),z(u),z(F.$$.fragment,e),X=!0)},o(e){J(S.$$.fragment,e),J(u),J(F.$$.fragment,e),X=!1},d(e){e&&s(m),e&&s(_),e&&s(a),e&&s(K),e&&s(I),e&&s(Q),e&&s(g),He(S),f[4][0].splice(f[4][0].indexOf(v),1),f[4][0].splice(f[4][0].indexOf(y),1),e&&s(R),u&&u.d(e),e&&s(Y),e&&s(O),e&&s(W),He(F,e),$e=!1,Ge(Se)}}}function Xe(f,m,E){let _="standard",a="yyyy-mm-dd";const k=[[]];function l(){a=this.value,E(1,a),E(0,_)}function $(){_=this.__value,E(0,_)}function G(){_=this.__value,E(0,_)}return f.$$.update=()=>{f.$$.dirty&1&&E(1,a=_==="php"?"Y-m-d":"yyyy-mm-dd")},[_,a,l,$,k,G]}class st extends Me{constructor(m){super(),Ye(this,m,Xe,We,je,{})}}export{st as default}; diff --git a/docs/_app/immutable/pages/index.svx-a4a1023a.js b/docs/_app/immutable/pages/index.svx-f19385ff.js similarity index 99% rename from docs/_app/immutable/pages/index.svx-a4a1023a.js rename to docs/_app/immutable/pages/index.svx-f19385ff.js index 59ea19d..1866836 100644 --- a/docs/_app/immutable/pages/index.svx-a4a1023a.js +++ b/docs/_app/immutable/pages/index.svx-f19385ff.js @@ -1,4 +1,4 @@ -import{S as nt,i as rt,s as ot,l as s,r as o,a as p,w as Ne,m as l,n,u as i,h as a,c as d,x as Qe,p as v,b as it,L as e,y as We,f as Xe,t as Ye,B as Ze,o as ct,a9 as pt}from"../chunks/index-bba13a04.js";import{S as et}from"../chunks/SveltyPicker-f3a80465.js";function dt(U){let t,f,m,k,S,E,y,Q,b,W,X,I,D,Y,Z,_,ee,L,te,ae,H,se,le,c,V,ne,re,j,oe,ie,C,ce,pe,F,de,ue,q,ve,fe,A,me,he,w,ye,P,ke,_e,ge,B,Ee,$e,M,xe,Ie,T,tt='npm install svelty-picker',we,O,be,De,R,at=`<script> +import{S as nt,i as rt,s as ot,l as s,r as o,a as p,w as Ne,m as l,n,u as i,h as a,c as d,x as Qe,p as v,b as it,L as e,y as We,f as Xe,t as Ye,B as Ze,o as ct,a9 as pt}from"../chunks/index-bba13a04.js";import{S as et}from"../chunks/SveltyPicker-15fcdb01.js";function dt(U){let t,f,m,k,S,E,y,Q,b,W,X,I,D,Y,Z,_,ee,L,te,ae,H,se,le,c,V,ne,re,j,oe,ie,C,ce,pe,F,de,ue,q,ve,fe,A,me,he,w,ye,P,ke,_e,ge,B,Ee,$e,M,xe,Ie,T,tt='npm install svelty-picker',we,O,be,De,R,at=`<script> import SveltyPicker from 'svelty-picker' let myDate = '2021-11-11'; diff --git a/docs/_app/immutable/pages/playground@empty.svelte-ef244e83.js b/docs/_app/immutable/pages/playground@empty.svelte-95d882ed.js similarity index 99% rename from docs/_app/immutable/pages/playground@empty.svelte-ef244e83.js rename to docs/_app/immutable/pages/playground@empty.svelte-95d882ed.js index ba5257a..9f6f459 100644 --- a/docs/_app/immutable/pages/playground@empty.svelte-ef244e83.js +++ b/docs/_app/immutable/pages/playground@empty.svelte-95d882ed.js @@ -1,4 +1,4 @@ -import{S as ha,i as ma,s as ya,a4 as Tl,aa as wl,l as t,r as p,a as k,w as Ke,m as a,n as s,u as c,h as n,c as E,x as Qe,p as o,b as bl,L as e,y as Xe,U as sa,M as X,t as ce,d as ia,f as fe,v as ba,ab as Il,ac as va,B as xe,V as ga,g as ua,ad as da,Z as _a,ae as Dl}from"../chunks/index-bba13a04.js";import{S as jl}from"../chunks/SveltyPicker-f3a80465.js";import{O as ka}from"../chunks/options-e355255b.js";import{F as Ea,a as Oa}from"../chunks/formatting_php-3c906c50.js";function Pa(l){let r,u,_;function $(i){l[15](i)}let y={inputClasses:"picker-style",disabled:l[1],placeholder:pa,initialDate:l[13],startDate:l[2],endDate:l[3],pickerOnly:!0,weekStart:l[5],format:l[7],formatType:l[0],mode:l[8],todayBtn:l[9],clearBtn:l[10],clearToggle:l[11],autoclose:l[12]};return l[6]!==void 0&&(y.value=l[6]),r=new jl({props:y}),Tl.push(()=>wl(r,"value",$)),{c(){Ke(r.$$.fragment)},l(i){Qe(r.$$.fragment,i)},m(i,v){Xe(r,i,v),_=!0},p(i,v){const f={};v[0]&2&&(f.disabled=i[1]),v[0]&4&&(f.startDate=i[2]),v[0]&8&&(f.endDate=i[3]),v[0]&32&&(f.weekStart=i[5]),v[0]&128&&(f.format=i[7]),v[0]&1&&(f.formatType=i[0]),v[0]&256&&(f.mode=i[8]),v[0]&512&&(f.todayBtn=i[9]),v[0]&1024&&(f.clearBtn=i[10]),v[0]&2048&&(f.clearToggle=i[11]),v[0]&4096&&(f.autoclose=i[12]),!u&&v[0]&64&&(u=!0,f.value=i[6],Il(()=>u=!1)),r.$set(f)},i(i){_||(fe(r.$$.fragment,i),_=!0)},o(i){ce(r.$$.fragment,i),_=!1},d(i){xe(r,i)}}}function Ta(l){let r,u,_;function $(i){l[14](i)}let y={inputClasses:"picker-style",disabled:l[1],placeholder:pa,initialDate:l[13],startDate:l[2],endDate:l[3],weekStart:l[5],format:l[7],formatType:l[0],mode:l[8],todayBtn:l[9],clearBtn:l[10],clearToggle:l[11],autoclose:l[12]};return l[6]!==void 0&&(y.value=l[6]),r=new jl({props:y}),Tl.push(()=>wl(r,"value",$)),{c(){Ke(r.$$.fragment)},l(i){Qe(r.$$.fragment,i)},m(i,v){Xe(r,i,v),_=!0},p(i,v){const f={};v[0]&2&&(f.disabled=i[1]),v[0]&4&&(f.startDate=i[2]),v[0]&8&&(f.endDate=i[3]),v[0]&32&&(f.weekStart=i[5]),v[0]&128&&(f.format=i[7]),v[0]&1&&(f.formatType=i[0]),v[0]&256&&(f.mode=i[8]),v[0]&512&&(f.todayBtn=i[9]),v[0]&1024&&(f.clearBtn=i[10]),v[0]&2048&&(f.clearToggle=i[11]),v[0]&4096&&(f.autoclose=i[12]),!u&&v[0]&64&&(u=!0,f.value=i[6],Il(()=>u=!1)),r.$set(f)},i(i){_||(fe(r.$$.fragment,i),_=!0)},o(i){ce(r.$$.fragment,i),_=!1},d(i){xe(r,i)}}}function wa(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie;return{c(){r=t("select"),u=t("optgroup"),_=t("option"),$=p("Y-m-d H:i"),y=t("option"),i=p("m/d/Y H:i"),v=t("option"),f=p("d.m.Y H:i"),I=t("option"),H=p("dd-M-yy H:i"),b=t("optgroup"),P=t("option"),U=p("Y-m-d"),O=t("option"),j=p("m/d/Y"),T=t("option"),le=p("jS M y"),L=t("option"),M=p("d-M-y"),g=t("option"),x=p("F d, Y"),N=t("optgroup"),A=t("option"),W=p("H:i"),B=t("option"),te=p("g:i A"),this.h()},l(h){r=a(h,"SELECT",{name:!0,id:!0,class:!0});var D=s(r);u=a(D,"OPTGROUP",{label:!0});var V=s(u);_=a(V,"OPTION",{});var ue=s(_);$=c(ue,"Y-m-d H:i"),ue.forEach(n),y=a(V,"OPTION",{});var C=s(y);i=c(C,"m/d/Y H:i"),C.forEach(n),v=a(V,"OPTION",{});var S=s(v);f=c(S,"d.m.Y H:i"),S.forEach(n),I=a(V,"OPTION",{});var F=s(I);H=c(F,"dd-M-yy H:i"),F.forEach(n),V.forEach(n),b=a(D,"OPTGROUP",{label:!0});var w=s(b);P=a(w,"OPTION",{});var he=s(P);U=c(he,"Y-m-d"),he.forEach(n),O=a(w,"OPTION",{});var me=s(O);j=c(me,"m/d/Y"),me.forEach(n),T=a(w,"OPTION",{});var ye=s(T);le=c(ye,"jS M y"),ye.forEach(n),L=a(w,"OPTION",{});var q=s(L);M=c(q,"d-M-y"),q.forEach(n),g=a(w,"OPTION",{});var be=s(g);x=c(be,"F d, Y"),be.forEach(n),w.forEach(n),N=a(D,"OPTGROUP",{label:!0});var de=s(N);A=a(de,"OPTION",{});var ee=s(A);W=c(ee,"H:i"),ee.forEach(n),B=a(de,"OPTION",{});var ae=s(B);te=c(ae,"g:i A"),ae.forEach(n),de.forEach(n),D.forEach(n),this.h()},h(){_.__value="Y-m-d H:i",_.value=_.__value,y.__value="m/d/Y H:i",y.value=y.__value,v.__value="d.m.Y H:i",v.value=v.__value,I.__value="dd-M-yy H:i",I.value=I.__value,o(u,"label","Date & time"),P.__value="Y-m-d",P.value=P.__value,O.__value="m/d/Y",O.value=O.__value,T.__value="jS M y",T.value=T.__value,L.__value="d-M-y",L.value=L.__value,g.__value="F d, Y",g.value=g.__value,o(b,"label","Date only"),A.__value="H:i",A.value=A.__value,B.__value="g:i A",B.value=B.__value,o(N,"label","Date only"),o(r,"name",""),o(r,"id",""),o(r,"class","form-select mb-2 svelte-vhjlw6"),l[7]===void 0&&_a(()=>l[32].call(r))},m(h,D){bl(h,r,D),e(r,u),e(u,_),e(_,$),e(u,y),e(y,i),e(u,v),e(v,f),e(u,I),e(I,H),e(r,b),e(b,P),e(P,U),e(b,O),e(O,j),e(b,T),e(T,le),e(b,L),e(L,M),e(b,g),e(g,x),e(r,N),e(N,A),e(A,W),e(N,B),e(B,te),Dl(r,l[7]),Y||(ie=X(r,"change",l[32]),Y=!0)},p(h,D){D[0]&128&&Dl(r,h[7])},d(h){h&&n(r),Y=!1,ie()}}}function Ia(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie;return{c(){r=t("select"),u=t("optgroup"),_=t("option"),$=p("yyyy-mm-dd hh:ii"),y=t("option"),i=p("mm/dd/yyyy hh:ii"),v=t("option"),f=p("dd.mm.yyyy hh:ii"),I=t("option"),H=p("dd-M-yy hh:ii"),b=t("optgroup"),P=t("option"),U=p("yyyy-mm-dd"),O=t("option"),j=p("mm/dd/yyyy"),T=t("option"),le=p("dd.mm.yyyy"),L=t("option"),M=p("dd-M-yy"),g=t("option"),x=p("dd MM yyyy"),N=t("optgroup"),A=t("option"),W=p("hh:ii"),B=t("option"),te=p("H:i P"),this.h()},l(h){r=a(h,"SELECT",{name:!0,id:!0,class:!0});var D=s(r);u=a(D,"OPTGROUP",{label:!0});var V=s(u);_=a(V,"OPTION",{});var ue=s(_);$=c(ue,"yyyy-mm-dd hh:ii"),ue.forEach(n),y=a(V,"OPTION",{});var C=s(y);i=c(C,"mm/dd/yyyy hh:ii"),C.forEach(n),v=a(V,"OPTION",{});var S=s(v);f=c(S,"dd.mm.yyyy hh:ii"),S.forEach(n),I=a(V,"OPTION",{});var F=s(I);H=c(F,"dd-M-yy hh:ii"),F.forEach(n),V.forEach(n),b=a(D,"OPTGROUP",{label:!0});var w=s(b);P=a(w,"OPTION",{});var he=s(P);U=c(he,"yyyy-mm-dd"),he.forEach(n),O=a(w,"OPTION",{});var me=s(O);j=c(me,"mm/dd/yyyy"),me.forEach(n),T=a(w,"OPTION",{});var ye=s(T);le=c(ye,"dd.mm.yyyy"),ye.forEach(n),L=a(w,"OPTION",{});var q=s(L);M=c(q,"dd-M-yy"),q.forEach(n),g=a(w,"OPTION",{});var be=s(g);x=c(be,"dd MM yyyy"),be.forEach(n),w.forEach(n),N=a(D,"OPTGROUP",{label:!0});var de=s(N);A=a(de,"OPTION",{});var ee=s(A);W=c(ee,"hh:ii"),ee.forEach(n),B=a(de,"OPTION",{});var ae=s(B);te=c(ae,"H:i P"),ae.forEach(n),de.forEach(n),D.forEach(n),this.h()},h(){_.__value="yyyy-mm-dd hh:ii",_.value=_.__value,y.__value="mm/dd/yyyy hh:ii",y.value=y.__value,v.__value="dd.mm.yyyy hh:ii",v.value=v.__value,I.__value="dd-M-yy hh:ii",I.value=I.__value,o(u,"label","Date & time"),P.__value="yyyy-mm-dd",P.value=P.__value,O.__value="mm/dd/yyyy",O.value=O.__value,T.__value="dd.mm.yyyy",T.value=T.__value,L.__value="dd-M-yy",L.value=L.__value,g.__value="dd MM yyyy",g.value=g.__value,o(b,"label","Date only"),A.__value="hh:ii",A.value=A.__value,B.__value="H:i P",B.value=B.__value,o(N,"label","Date only"),o(r,"name",""),o(r,"id",""),o(r,"class","form-select svelte-vhjlw6"),l[7]===void 0&&_a(()=>l[31].call(r))},m(h,D){bl(h,r,D),e(r,u),e(u,_),e(_,$),e(u,y),e(y,i),e(u,v),e(v,f),e(u,I),e(I,H),e(r,b),e(b,P),e(P,U),e(b,O),e(O,j),e(b,T),e(T,le),e(b,L),e(L,M),e(b,g),e(g,x),e(r,N),e(N,A),e(A,W),e(N,B),e(B,te),Dl(r,l[7]),Y||(ie=X(r,"change",l[31]),Y=!0)},p(h,D){D[0]&128&&Dl(r,h[7])},d(h){h&&n(r),Y=!1,ie()}}}function Da(l){let r,u;return r=new Ea({}),{c(){Ke(r.$$.fragment)},l(_){Qe(r.$$.fragment,_)},m(_,$){Xe(r,_,$),u=!0},i(_){u||(fe(r.$$.fragment,_),u=!0)},o(_){ce(r.$$.fragment,_),u=!1},d(_){xe(r,_)}}}function ja(l){let r,u;return r=new Oa({}),{c(){Ke(r.$$.fragment)},l(_){Qe(r.$$.fragment,_)},m(_,$){Xe(r,_,$),u=!0},i(_){u||(fe(r.$$.fragment,_),u=!0)},o(_){ce(r.$$.fragment,_),u=!1},d(_){xe(r,_)}}}function Na(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie,h,D,V,ue,C,S,F,w,he,me,ye,q,be,de,ee,ae,Nl,Bl,Ll,ge,Al,Ml,Ie,el,$l,Hl,Sl,oe,Yl,R,ll,He,ke,Vl,Ul,tl,Se,Ee,Cl,Fl,al,Ye,Oe,Rl,Gl,ol,Ve,Pe,Wl,ql,nl,Ue,Te,Zl,zl,rl,Ce,we,Jl,Kl,Ql,Xl,sl,xl,et,ne,Fe,il,lt,tt,Re,Z,at,ot,Ge,z,nt,rt,We,J,st,it,De,ut,_l,dt,vt,_t,re,pl,pt,ct,je,qe,K,ft,ht,Ze,Q,mt,yt,cl,bt,gt,ze,kt,ve,_e,fl,Et,Ht;const St=[Ta,Pa],Ne=[];function Yt(d,m){return d[4]?1:0}M=Yt(l),g=Ne[M]=St[M](l),Y=new ka({});function ca(d){l[16](d)}let Vt={inputId:"startDate",format:l[7],formatType:l[0],inputClasses:"picker"};l[2]!==void 0&&(Vt.value=l[2]),q=new jl({props:Vt}),Tl.push(()=>wl(q,"value",ca));function fa(d){l[17](d)}let Ut={inputId:"endDate",format:l[7],formatType:l[0],inputClasses:"picker"};l[3]!==void 0&&(Ut.value=l[3]),ge=new jl({props:Ut}),Tl.push(()=>wl(ge,"value",fa));function Ct(d,m){return d[0]==="standard"?Ia:wa}let gl=Ct(l),pe=gl(l);const Ft=[ja,Da],Je=[];function Rt(d,m){return d[0]==="standard"?0:1}return ve=Rt(l),_e=Je[ve]=Ft[ve](l),{c(){r=t("div"),u=t("button"),_=p("\u2190 Back"),$=k(),y=t("span"),i=t("a"),v=t("h1"),f=p("\u{1F4C5} Svelty Picker"),I=k(),H=p(": Playgroung"),b=k(),P=t("span"),U=k(),O=t("div"),j=t("div"),T=t("div"),le=p("Your component"),L=k(),g.c(),x=k(),N=t("div"),A=p("Your selection: "),W=t("code"),B=p(l[6]),te=k(),Ke(Y.$$.fragment),ie=k(),h=t("div"),D=t("h3"),V=p("Available settings"),ue=k(),C=t("div"),S=t("div"),F=t("div"),w=t("label"),he=p("Start Date (limit from)"),me=t("br"),ye=k(),Ke(q.$$.fragment),de=k(),ee=t("div"),ae=t("label"),Nl=p("End Date (limit to)"),Bl=t("br"),Ll=k(),Ke(ge.$$.fragment),Ml=k(),Ie=t("div"),el=t("label"),$l=p("Week start"),Hl=t("br"),Sl=k(),oe=t("input"),Yl=k(),R=t("div"),ll=t("div"),He=t("label"),ke=t("input"),Vl=p(" Disabled"),Ul=k(),tl=t("div"),Se=t("label"),Ee=t("input"),Cl=p(" Picker Only"),Fl=k(),al=t("div"),Ye=t("label"),Oe=t("input"),Rl=p(" Today button"),Gl=k(),ol=t("div"),Ve=t("label"),Pe=t("input"),Wl=p(" Clear Button"),ql=k(),nl=t("div"),Ue=t("label"),Te=t("input"),Zl=p(" Clear Toggle"),zl=k(),rl=t("div"),Ce=t("label"),we=t("input"),Jl=p(" Autoclose"),Kl=k(),Ql=t("hr"),Xl=k(),sl=t("h3"),xl=p("Mode & formats:"),et=p(`\r +import{S as ha,i as ma,s as ya,a4 as Tl,aa as wl,l as t,r as p,a as k,w as Ke,m as a,n as s,u as c,h as n,c as E,x as Qe,p as o,b as bl,L as e,y as Xe,U as sa,M as X,t as ce,d as ia,f as fe,v as ba,ab as Il,ac as va,B as xe,V as ga,g as ua,ad as da,Z as _a,ae as Dl}from"../chunks/index-bba13a04.js";import{S as jl}from"../chunks/SveltyPicker-15fcdb01.js";import{O as ka}from"../chunks/options-e355255b.js";import{F as Ea,a as Oa}from"../chunks/formatting_php-3c906c50.js";function Pa(l){let r,u,_;function $(i){l[15](i)}let y={inputClasses:"picker-style",disabled:l[1],placeholder:pa,initialDate:l[13],startDate:l[2],endDate:l[3],pickerOnly:!0,weekStart:l[5],format:l[7],formatType:l[0],mode:l[8],todayBtn:l[9],clearBtn:l[10],clearToggle:l[11],autoclose:l[12]};return l[6]!==void 0&&(y.value=l[6]),r=new jl({props:y}),Tl.push(()=>wl(r,"value",$)),{c(){Ke(r.$$.fragment)},l(i){Qe(r.$$.fragment,i)},m(i,v){Xe(r,i,v),_=!0},p(i,v){const f={};v[0]&2&&(f.disabled=i[1]),v[0]&4&&(f.startDate=i[2]),v[0]&8&&(f.endDate=i[3]),v[0]&32&&(f.weekStart=i[5]),v[0]&128&&(f.format=i[7]),v[0]&1&&(f.formatType=i[0]),v[0]&256&&(f.mode=i[8]),v[0]&512&&(f.todayBtn=i[9]),v[0]&1024&&(f.clearBtn=i[10]),v[0]&2048&&(f.clearToggle=i[11]),v[0]&4096&&(f.autoclose=i[12]),!u&&v[0]&64&&(u=!0,f.value=i[6],Il(()=>u=!1)),r.$set(f)},i(i){_||(fe(r.$$.fragment,i),_=!0)},o(i){ce(r.$$.fragment,i),_=!1},d(i){xe(r,i)}}}function Ta(l){let r,u,_;function $(i){l[14](i)}let y={inputClasses:"picker-style",disabled:l[1],placeholder:pa,initialDate:l[13],startDate:l[2],endDate:l[3],weekStart:l[5],format:l[7],formatType:l[0],mode:l[8],todayBtn:l[9],clearBtn:l[10],clearToggle:l[11],autoclose:l[12]};return l[6]!==void 0&&(y.value=l[6]),r=new jl({props:y}),Tl.push(()=>wl(r,"value",$)),{c(){Ke(r.$$.fragment)},l(i){Qe(r.$$.fragment,i)},m(i,v){Xe(r,i,v),_=!0},p(i,v){const f={};v[0]&2&&(f.disabled=i[1]),v[0]&4&&(f.startDate=i[2]),v[0]&8&&(f.endDate=i[3]),v[0]&32&&(f.weekStart=i[5]),v[0]&128&&(f.format=i[7]),v[0]&1&&(f.formatType=i[0]),v[0]&256&&(f.mode=i[8]),v[0]&512&&(f.todayBtn=i[9]),v[0]&1024&&(f.clearBtn=i[10]),v[0]&2048&&(f.clearToggle=i[11]),v[0]&4096&&(f.autoclose=i[12]),!u&&v[0]&64&&(u=!0,f.value=i[6],Il(()=>u=!1)),r.$set(f)},i(i){_||(fe(r.$$.fragment,i),_=!0)},o(i){ce(r.$$.fragment,i),_=!1},d(i){xe(r,i)}}}function wa(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie;return{c(){r=t("select"),u=t("optgroup"),_=t("option"),$=p("Y-m-d H:i"),y=t("option"),i=p("m/d/Y H:i"),v=t("option"),f=p("d.m.Y H:i"),I=t("option"),H=p("dd-M-yy H:i"),b=t("optgroup"),P=t("option"),U=p("Y-m-d"),O=t("option"),j=p("m/d/Y"),T=t("option"),le=p("jS M y"),L=t("option"),M=p("d-M-y"),g=t("option"),x=p("F d, Y"),N=t("optgroup"),A=t("option"),W=p("H:i"),B=t("option"),te=p("g:i A"),this.h()},l(h){r=a(h,"SELECT",{name:!0,id:!0,class:!0});var D=s(r);u=a(D,"OPTGROUP",{label:!0});var V=s(u);_=a(V,"OPTION",{});var ue=s(_);$=c(ue,"Y-m-d H:i"),ue.forEach(n),y=a(V,"OPTION",{});var C=s(y);i=c(C,"m/d/Y H:i"),C.forEach(n),v=a(V,"OPTION",{});var S=s(v);f=c(S,"d.m.Y H:i"),S.forEach(n),I=a(V,"OPTION",{});var F=s(I);H=c(F,"dd-M-yy H:i"),F.forEach(n),V.forEach(n),b=a(D,"OPTGROUP",{label:!0});var w=s(b);P=a(w,"OPTION",{});var he=s(P);U=c(he,"Y-m-d"),he.forEach(n),O=a(w,"OPTION",{});var me=s(O);j=c(me,"m/d/Y"),me.forEach(n),T=a(w,"OPTION",{});var ye=s(T);le=c(ye,"jS M y"),ye.forEach(n),L=a(w,"OPTION",{});var q=s(L);M=c(q,"d-M-y"),q.forEach(n),g=a(w,"OPTION",{});var be=s(g);x=c(be,"F d, Y"),be.forEach(n),w.forEach(n),N=a(D,"OPTGROUP",{label:!0});var de=s(N);A=a(de,"OPTION",{});var ee=s(A);W=c(ee,"H:i"),ee.forEach(n),B=a(de,"OPTION",{});var ae=s(B);te=c(ae,"g:i A"),ae.forEach(n),de.forEach(n),D.forEach(n),this.h()},h(){_.__value="Y-m-d H:i",_.value=_.__value,y.__value="m/d/Y H:i",y.value=y.__value,v.__value="d.m.Y H:i",v.value=v.__value,I.__value="dd-M-yy H:i",I.value=I.__value,o(u,"label","Date & time"),P.__value="Y-m-d",P.value=P.__value,O.__value="m/d/Y",O.value=O.__value,T.__value="jS M y",T.value=T.__value,L.__value="d-M-y",L.value=L.__value,g.__value="F d, Y",g.value=g.__value,o(b,"label","Date only"),A.__value="H:i",A.value=A.__value,B.__value="g:i A",B.value=B.__value,o(N,"label","Date only"),o(r,"name",""),o(r,"id",""),o(r,"class","form-select mb-2 svelte-vhjlw6"),l[7]===void 0&&_a(()=>l[32].call(r))},m(h,D){bl(h,r,D),e(r,u),e(u,_),e(_,$),e(u,y),e(y,i),e(u,v),e(v,f),e(u,I),e(I,H),e(r,b),e(b,P),e(P,U),e(b,O),e(O,j),e(b,T),e(T,le),e(b,L),e(L,M),e(b,g),e(g,x),e(r,N),e(N,A),e(A,W),e(N,B),e(B,te),Dl(r,l[7]),Y||(ie=X(r,"change",l[32]),Y=!0)},p(h,D){D[0]&128&&Dl(r,h[7])},d(h){h&&n(r),Y=!1,ie()}}}function Ia(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie;return{c(){r=t("select"),u=t("optgroup"),_=t("option"),$=p("yyyy-mm-dd hh:ii"),y=t("option"),i=p("mm/dd/yyyy hh:ii"),v=t("option"),f=p("dd.mm.yyyy hh:ii"),I=t("option"),H=p("dd-M-yy hh:ii"),b=t("optgroup"),P=t("option"),U=p("yyyy-mm-dd"),O=t("option"),j=p("mm/dd/yyyy"),T=t("option"),le=p("dd.mm.yyyy"),L=t("option"),M=p("dd-M-yy"),g=t("option"),x=p("dd MM yyyy"),N=t("optgroup"),A=t("option"),W=p("hh:ii"),B=t("option"),te=p("H:i P"),this.h()},l(h){r=a(h,"SELECT",{name:!0,id:!0,class:!0});var D=s(r);u=a(D,"OPTGROUP",{label:!0});var V=s(u);_=a(V,"OPTION",{});var ue=s(_);$=c(ue,"yyyy-mm-dd hh:ii"),ue.forEach(n),y=a(V,"OPTION",{});var C=s(y);i=c(C,"mm/dd/yyyy hh:ii"),C.forEach(n),v=a(V,"OPTION",{});var S=s(v);f=c(S,"dd.mm.yyyy hh:ii"),S.forEach(n),I=a(V,"OPTION",{});var F=s(I);H=c(F,"dd-M-yy hh:ii"),F.forEach(n),V.forEach(n),b=a(D,"OPTGROUP",{label:!0});var w=s(b);P=a(w,"OPTION",{});var he=s(P);U=c(he,"yyyy-mm-dd"),he.forEach(n),O=a(w,"OPTION",{});var me=s(O);j=c(me,"mm/dd/yyyy"),me.forEach(n),T=a(w,"OPTION",{});var ye=s(T);le=c(ye,"dd.mm.yyyy"),ye.forEach(n),L=a(w,"OPTION",{});var q=s(L);M=c(q,"dd-M-yy"),q.forEach(n),g=a(w,"OPTION",{});var be=s(g);x=c(be,"dd MM yyyy"),be.forEach(n),w.forEach(n),N=a(D,"OPTGROUP",{label:!0});var de=s(N);A=a(de,"OPTION",{});var ee=s(A);W=c(ee,"hh:ii"),ee.forEach(n),B=a(de,"OPTION",{});var ae=s(B);te=c(ae,"H:i P"),ae.forEach(n),de.forEach(n),D.forEach(n),this.h()},h(){_.__value="yyyy-mm-dd hh:ii",_.value=_.__value,y.__value="mm/dd/yyyy hh:ii",y.value=y.__value,v.__value="dd.mm.yyyy hh:ii",v.value=v.__value,I.__value="dd-M-yy hh:ii",I.value=I.__value,o(u,"label","Date & time"),P.__value="yyyy-mm-dd",P.value=P.__value,O.__value="mm/dd/yyyy",O.value=O.__value,T.__value="dd.mm.yyyy",T.value=T.__value,L.__value="dd-M-yy",L.value=L.__value,g.__value="dd MM yyyy",g.value=g.__value,o(b,"label","Date only"),A.__value="hh:ii",A.value=A.__value,B.__value="H:i P",B.value=B.__value,o(N,"label","Date only"),o(r,"name",""),o(r,"id",""),o(r,"class","form-select svelte-vhjlw6"),l[7]===void 0&&_a(()=>l[31].call(r))},m(h,D){bl(h,r,D),e(r,u),e(u,_),e(_,$),e(u,y),e(y,i),e(u,v),e(v,f),e(u,I),e(I,H),e(r,b),e(b,P),e(P,U),e(b,O),e(O,j),e(b,T),e(T,le),e(b,L),e(L,M),e(b,g),e(g,x),e(r,N),e(N,A),e(A,W),e(N,B),e(B,te),Dl(r,l[7]),Y||(ie=X(r,"change",l[31]),Y=!0)},p(h,D){D[0]&128&&Dl(r,h[7])},d(h){h&&n(r),Y=!1,ie()}}}function Da(l){let r,u;return r=new Ea({}),{c(){Ke(r.$$.fragment)},l(_){Qe(r.$$.fragment,_)},m(_,$){Xe(r,_,$),u=!0},i(_){u||(fe(r.$$.fragment,_),u=!0)},o(_){ce(r.$$.fragment,_),u=!1},d(_){xe(r,_)}}}function ja(l){let r,u;return r=new Oa({}),{c(){Ke(r.$$.fragment)},l(_){Qe(r.$$.fragment,_)},m(_,$){Xe(r,_,$),u=!0},i(_){u||(fe(r.$$.fragment,_),u=!0)},o(_){ce(r.$$.fragment,_),u=!1},d(_){xe(r,_)}}}function Na(l){let r,u,_,$,y,i,v,f,I,H,b,P,U,O,j,T,le,L,M,g,x,N,A,W,B,te,Y,ie,h,D,V,ue,C,S,F,w,he,me,ye,q,be,de,ee,ae,Nl,Bl,Ll,ge,Al,Ml,Ie,el,$l,Hl,Sl,oe,Yl,R,ll,He,ke,Vl,Ul,tl,Se,Ee,Cl,Fl,al,Ye,Oe,Rl,Gl,ol,Ve,Pe,Wl,ql,nl,Ue,Te,Zl,zl,rl,Ce,we,Jl,Kl,Ql,Xl,sl,xl,et,ne,Fe,il,lt,tt,Re,Z,at,ot,Ge,z,nt,rt,We,J,st,it,De,ut,_l,dt,vt,_t,re,pl,pt,ct,je,qe,K,ft,ht,Ze,Q,mt,yt,cl,bt,gt,ze,kt,ve,_e,fl,Et,Ht;const St=[Ta,Pa],Ne=[];function Yt(d,m){return d[4]?1:0}M=Yt(l),g=Ne[M]=St[M](l),Y=new ka({});function ca(d){l[16](d)}let Vt={inputId:"startDate",format:l[7],formatType:l[0],inputClasses:"picker"};l[2]!==void 0&&(Vt.value=l[2]),q=new jl({props:Vt}),Tl.push(()=>wl(q,"value",ca));function fa(d){l[17](d)}let Ut={inputId:"endDate",format:l[7],formatType:l[0],inputClasses:"picker"};l[3]!==void 0&&(Ut.value=l[3]),ge=new jl({props:Ut}),Tl.push(()=>wl(ge,"value",fa));function Ct(d,m){return d[0]==="standard"?Ia:wa}let gl=Ct(l),pe=gl(l);const Ft=[ja,Da],Je=[];function Rt(d,m){return d[0]==="standard"?0:1}return ve=Rt(l),_e=Je[ve]=Ft[ve](l),{c(){r=t("div"),u=t("button"),_=p("\u2190 Back"),$=k(),y=t("span"),i=t("a"),v=t("h1"),f=p("\u{1F4C5} Svelty Picker"),I=k(),H=p(": Playgroung"),b=k(),P=t("span"),U=k(),O=t("div"),j=t("div"),T=t("div"),le=p("Your component"),L=k(),g.c(),x=k(),N=t("div"),A=p("Your selection: "),W=t("code"),B=p(l[6]),te=k(),Ke(Y.$$.fragment),ie=k(),h=t("div"),D=t("h3"),V=p("Available settings"),ue=k(),C=t("div"),S=t("div"),F=t("div"),w=t("label"),he=p("Start Date (limit from)"),me=t("br"),ye=k(),Ke(q.$$.fragment),de=k(),ee=t("div"),ae=t("label"),Nl=p("End Date (limit to)"),Bl=t("br"),Ll=k(),Ke(ge.$$.fragment),Ml=k(),Ie=t("div"),el=t("label"),$l=p("Week start"),Hl=t("br"),Sl=k(),oe=t("input"),Yl=k(),R=t("div"),ll=t("div"),He=t("label"),ke=t("input"),Vl=p(" Disabled"),Ul=k(),tl=t("div"),Se=t("label"),Ee=t("input"),Cl=p(" Picker Only"),Fl=k(),al=t("div"),Ye=t("label"),Oe=t("input"),Rl=p(" Today button"),Gl=k(),ol=t("div"),Ve=t("label"),Pe=t("input"),Wl=p(" Clear Button"),ql=k(),nl=t("div"),Ue=t("label"),Te=t("input"),Zl=p(" Clear Toggle"),zl=k(),rl=t("div"),Ce=t("label"),we=t("input"),Jl=p(" Autoclose"),Kl=k(),Ql=t("hr"),Xl=k(),sl=t("h3"),xl=p("Mode & formats:"),et=p(`\r Mode:\r `),ne=t("div"),Fe=t("label"),il=t("input"),lt=p(" Auto (default)"),tt=k(),Re=t("label"),Z=t("input"),at=p(" Date"),ot=k(),Ge=t("label"),z=t("input"),nt=p(" Datetime"),rt=k(),We=t("label"),J=t("input"),st=p(" Time"),it=k(),De=t("p"),ut=p("Mode is by default resolved by provided format or "),_l=t("code"),dt=p("yyyy-mm-dd"),vt=p(" if not specified."),_t=k(),re=t("div"),pl=t("span"),pt=p("Format type:"),ct=k(),je=t("div"),qe=t("label"),K=t("input"),ft=p(" Standard"),ht=k(),Ze=t("label"),Q=t("input"),mt=p(" PHP"),yt=k(),cl=t("span"),bt=p("Format:"),gt=k(),ze=t("div"),pe.c(),kt=k(),_e.c(),this.h()},l(d){r=a(d,"DIV",{class:!0});var m=s(r);u=a(m,"BUTTON",{});var ul=s(u);_=c(ul,"\u2190 Back"),ul.forEach(n),$=E(m),y=a(m,"SPAN",{class:!0});var Be=s(y);i=a(Be,"A",{href:!0});var Le=s(i);v=a(Le,"H1",{class:!0});var dl=s(v);f=c(dl,"\u{1F4C5} Svelty Picker"),dl.forEach(n),I=E(Le),Le.forEach(n),H=c(Be,": Playgroung"),Be.forEach(n),b=E(m),P=a(m,"SPAN",{}),s(P).forEach(n),m.forEach(n),U=E(d),O=a(d,"DIV",{class:!0});var kl=s(O);j=a(kl,"DIV",{class:!0});var Ae=s(j);T=a(Ae,"DIV",{class:!0});var Gt=s(T);le=c(Gt,"Your component"),Gt.forEach(n),L=E(Ae),g.l(Ae),x=E(Ae),N=a(Ae,"DIV",{class:!0});var Ot=s(N);A=c(Ot,"Your selection: "),W=a(Ot,"CODE",{});var Wt=s(W);B=c(Wt,l[6]),Wt.forEach(n),Ot.forEach(n),te=E(Ae),Qe(Y.$$.fragment,Ae),Ae.forEach(n),ie=E(kl),h=a(kl,"DIV",{class:!0});var G=s(h);D=a(G,"H3",{class:!0});var qt=s(D);V=c(qt,"Available settings"),qt.forEach(n),ue=E(G),C=a(G,"DIV",{class:!0});var El=s(C);S=a(El,"DIV",{class:!0});var vl=s(S);F=a(vl,"DIV",{});var hl=s(F);w=a(hl,"LABEL",{for:!0});var Zt=s(w);he=c(Zt,"Start Date (limit from)"),Zt.forEach(n),me=a(hl,"BR",{}),ye=E(hl),Qe(q.$$.fragment,hl),hl.forEach(n),de=E(vl),ee=a(vl,"DIV",{});var ml=s(ee);ae=a(ml,"LABEL",{for:!0});var zt=s(ae);Nl=c(zt,"End Date (limit to)"),zt.forEach(n),Bl=a(ml,"BR",{}),Ll=E(ml),Qe(ge.$$.fragment,ml),ml.forEach(n),Ml=E(vl),Ie=a(vl,"DIV",{});var yl=s(Ie);el=a(yl,"LABEL",{for:!0});var Jt=s(el);$l=c(Jt,"Week start"),Jt.forEach(n),Hl=a(yl,"BR",{}),Sl=E(yl),oe=a(yl,"INPUT",{type:!0,id:!0,min:!0,max:!0,class:!0}),yl.forEach(n),vl.forEach(n),Yl=E(El),R=a(El,"DIV",{class:!0});var se=s(R);ll=a(se,"DIV",{class:!0});var Kt=s(ll);He=a(Kt,"LABEL",{class:!0});var Pt=s(He);ke=a(Pt,"INPUT",{type:!0,name:!0,id:!0}),Vl=c(Pt," Disabled"),Pt.forEach(n),Kt.forEach(n),Ul=E(se),tl=a(se,"DIV",{class:!0});var Qt=s(tl);Se=a(Qt,"LABEL",{class:!0});var Tt=s(Se);Ee=a(Tt,"INPUT",{type:!0,name:!0,id:!0}),Cl=c(Tt," Picker Only"),Tt.forEach(n),Qt.forEach(n),Fl=E(se),al=a(se,"DIV",{class:!0});var Xt=s(al);Ye=a(Xt,"LABEL",{class:!0});var wt=s(Ye);Oe=a(wt,"INPUT",{type:!0,name:!0,id:!0}),Rl=c(wt," Today button"),wt.forEach(n),Xt.forEach(n),Gl=E(se),ol=a(se,"DIV",{class:!0});var xt=s(ol);Ve=a(xt,"LABEL",{class:!0});var It=s(Ve);Pe=a(It,"INPUT",{type:!0,name:!0,id:!0}),Wl=c(It," Clear Button"),It.forEach(n),xt.forEach(n),ql=E(se),nl=a(se,"DIV",{class:!0});var ea=s(nl);Ue=a(ea,"LABEL",{class:!0});var Dt=s(Ue);Te=a(Dt,"INPUT",{type:!0,name:!0,id:!0}),Zl=c(Dt," Clear Toggle"),Dt.forEach(n),ea.forEach(n),zl=E(se),rl=a(se,"DIV",{class:!0});var la=s(rl);Ce=a(la,"LABEL",{class:!0});var jt=s(Ce);we=a(jt,"INPUT",{type:!0,name:!0,id:!0}),Jl=c(jt," Autoclose"),jt.forEach(n),la.forEach(n),se.forEach(n),El.forEach(n),Kl=E(G),Ql=a(G,"HR",{}),Xl=E(G),sl=a(G,"H3",{class:!0});var ta=s(sl);xl=c(ta,"Mode & formats:"),ta.forEach(n),et=c(G,`\r Mode:\r diff --git a/docs/_app/immutable/pages/styling.svelte-9f359f0c.js b/docs/_app/immutable/pages/styling.svelte-a896d183.js similarity index 99% rename from docs/_app/immutable/pages/styling.svelte-9f359f0c.js rename to docs/_app/immutable/pages/styling.svelte-a896d183.js index 506ae7d..f074822 100644 --- a/docs/_app/immutable/pages/styling.svelte-9f359f0c.js +++ b/docs/_app/immutable/pages/styling.svelte-a896d183.js @@ -1,4 +1,4 @@ -import{S as Z,i as ss,s as ns,l as u,m as r,n as i,h as a,p as k,b as d,E as O,r as h,a as x,w as G,u as _,c as E,x as J,L as e,y as K,f as N,t as Q,B as U}from"../chunks/index-bba13a04.js";import{S as Y}from"../chunks/SveltyPicker-f3a80465.js";function as(T){let n,S=`<SveltyPicker theme="my-colors"></SveltyPicker> +import{S as Z,i as ss,s as ns,l as u,m as r,n as i,h as a,p as k,b as d,E as O,r as h,a as x,w as G,u as _,c as E,x as J,L as e,y as K,f as N,t as Q,B as U}from"../chunks/index-bba13a04.js";import{S as Y}from"../chunks/SveltyPicker-15fcdb01.js";function as(T){let n,S=`<SveltyPicker theme="my-colors"></SveltyPicker> <style> :global(.my-colors) { diff --git a/docs/_app/immutable/start-c562367a.js b/docs/_app/immutable/start-b528e9b5.js similarity index 94% rename from docs/_app/immutable/start-c562367a.js rename to docs/_app/immutable/start-b528e9b5.js index bb1364d..df84022 100644 --- a/docs/_app/immutable/start-c562367a.js +++ b/docs/_app/immutable/start-b528e9b5.js @@ -1 +1 @@ -import{S as Fe,i as Xe,s as He,a as Ze,e as I,c as Qe,b as q,g as G,t as D,d as F,f as N,h as j,j as et,k as tt,o as $e,l as nt,m as rt,n as st,p as ye,q as M,r as it,u as at,v as ot,w as J,x as se,y as K,z as ie,A as ae,B,C as oe,D as Ne}from"./chunks/index-bba13a04.js";import{w as ue}from"./chunks/index-e9a06c32.js";import{_ as z}from"./chunks/preload-helper-b22d3b18.js";let xe="",Ye="";function ct(r){xe=r.base,Ye=r.assets||xe}function lt(r){let e,t,o;const l=[r[1]||{}];var c=r[0][0];function d(n){let s={};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function ft(r){let e,t,o;const l=[r[1]||{}];var c=r[0][0];function d(n){let s={$$slots:{default:[_t]},$$scope:{ctx:n}};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d(n)),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function ut(r){let e,t,o;const l=[r[2]||{}];var c=r[0][1];function d(n){let s={};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function dt(r){let e,t,o;const l=[r[2]||{}];var c=r[0][1];function d(n){let s={$$slots:{default:[pt]},$$scope:{ctx:n}};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d(n)),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function pt(r){let e,t,o;const l=[r[3]||{}];var c=r[0][2];function d(n){let s={};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function _t(r){let e,t,o,l;const c=[dt,ut],d=[];function n(s,i){return s[0][2]?0:1}return e=n(r),t=d[e]=c[e](r),{c(){t.c(),o=I()},l(s){t.l(s),o=I()},m(s,i){d[e].m(s,i),q(s,o,i),l=!0},p(s,i){let u=e;e=n(s),e===u?d[e].p(s,i):(G(),D(d[u],1,1,()=>{d[u]=null}),F(),t=d[e],t?t.p(s,i):(t=d[e]=c[e](s),t.c()),N(t,1),t.m(o.parentNode,o))},i(s){l||(N(t),l=!0)},o(s){D(t),l=!1},d(s){d[e].d(s),s&&j(o)}}}function Ve(r){let e,t=r[5]&&je(r);return{c(){e=nt("div"),t&&t.c(),this.h()},l(o){e=rt(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=st(e);t&&t.l(l),l.forEach(j),this.h()},h(){ye(e,"id","svelte-announcer"),ye(e,"aria-live","assertive"),ye(e,"aria-atomic","true"),M(e,"position","absolute"),M(e,"left","0"),M(e,"top","0"),M(e,"clip","rect(0 0 0 0)"),M(e,"clip-path","inset(50%)"),M(e,"overflow","hidden"),M(e,"white-space","nowrap"),M(e,"width","1px"),M(e,"height","1px")},m(o,l){q(o,e,l),t&&t.m(e,null)},p(o,l){o[5]?t?t.p(o,l):(t=je(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&j(e),t&&t.d()}}}function je(r){let e;return{c(){e=it(r[6])},l(t){e=at(t,r[6])},m(t,o){q(t,e,o)},p(t,o){o&64&&ot(e,t[6])},d(t){t&&j(e)}}}function ht(r){let e,t,o,l,c;const d=[ft,lt],n=[];function s(u,L){return u[0][1]?0:1}e=s(r),t=n[e]=d[e](r);let i=r[4]&&Ve(r);return{c(){t.c(),o=Ze(),i&&i.c(),l=I()},l(u){t.l(u),o=Qe(u),i&&i.l(u),l=I()},m(u,L){n[e].m(u,L),q(u,o,L),i&&i.m(u,L),q(u,l,L),c=!0},p(u,[L]){let k=e;e=s(u),e===k?n[e].p(u,L):(G(),D(n[k],1,1,()=>{n[k]=null}),F(),t=n[e],t?t.p(u,L):(t=n[e]=d[e](u),t.c()),N(t,1),t.m(o.parentNode,o)),u[4]?i?i.p(u,L):(i=Ve(u),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(u){c||(N(t),c=!0)},o(u){D(t),c=!1},d(u){n[e].d(u),u&&j(o),i&&i.d(u),u&&j(l)}}}function mt(r,e,t){let{stores:o}=e,{page:l}=e,{components:c}=e,{props_0:d=null}=e,{props_1:n=null}=e,{props_2:s=null}=e;et("__svelte__",o),tt(o.page.notify);let i=!1,u=!1,L=null;return $e(()=>{const k=o.page.subscribe(()=>{i&&(t(5,u=!0),t(6,L=document.title||"untitled page"))});return t(4,i=!0),k}),r.$$set=k=>{"stores"in k&&t(7,o=k.stores),"page"in k&&t(8,l=k.page),"components"in k&&t(0,c=k.components),"props_0"in k&&t(1,d=k.props_0),"props_1"in k&&t(2,n=k.props_1),"props_2"in k&&t(3,s=k.props_2)},r.$$.update=()=>{r.$$.dirty&384&&o.page.set(l)},[c,d,n,s,i,u,L,o,l]}class gt extends Fe{constructor(e){super(),Xe(this,e,mt,ht,He,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const wt={},de=[()=>z(()=>import("./pages/__layout.svelte-912b16f6.js"),["immutable/pages/__layout.svelte-912b16f6.js","immutable/assets/__layout-afe45925.css","immutable/chunks/index-bba13a04.js","immutable/chunks/index-e9a06c32.js"]),()=>z(()=>import("./error.svelte-aad4fe5b.js"),["immutable/error.svelte-aad4fe5b.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/__layout-empty.svelte-33ceea67.js"),["immutable/pages/__layout-empty.svelte-33ceea67.js","immutable/assets/__layout-empty-d4bc191b.css","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/custom-element.svelte-69ea5e4e.js"),["immutable/pages/custom-element.svelte-69ea5e4e.js","immutable/assets/custom-element-d57795d7.css","immutable/chunks/preload-helper-b22d3b18.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/formatting.svelte-84f54c53.js"),["immutable/pages/formatting.svelte-84f54c53.js","immutable/assets/formatting-a0b286e4.css","immutable/chunks/index-bba13a04.js","immutable/chunks/formatting_php-3c906c50.js","immutable/chunks/SveltyPicker-f3a80465.js","immutable/assets/SveltyPicker-eefb95f0.css"]),()=>z(()=>import("./pages/i18n.md-90c7bdf8.js"),["immutable/pages/i18n.md-90c7bdf8.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/index.svx-a4a1023a.js"),["immutable/pages/index.svx-a4a1023a.js","immutable/assets/index-e7757a58.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-f3a80465.js","immutable/assets/SveltyPicker-eefb95f0.css"]),()=>z(()=>import("./pages/options.svelte-d4eb71f4.js"),["immutable/pages/options.svelte-d4eb71f4.js","immutable/assets/options-77f863f6.css","immutable/chunks/index-bba13a04.js","immutable/chunks/options-e355255b.js"]),()=>z(()=>import("./pages/playground@empty.svelte-ef244e83.js"),["immutable/pages/playground@empty.svelte-ef244e83.js","immutable/assets/playground@empty-73292507.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-f3a80465.js","immutable/assets/SveltyPicker-eefb95f0.css","immutable/chunks/options-e355255b.js","immutable/chunks/formatting_php-3c906c50.js"]),()=>z(()=>import("./pages/styling.svelte-9f359f0c.js"),["immutable/pages/styling.svelte-9f359f0c.js","immutable/assets/styling-9a44068d.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-f3a80465.js","immutable/assets/SveltyPicker-eefb95f0.css"])],bt={"":[[0,6],[1]],"custom-element":[[0,3],[1]],formatting:[[0,4],[1]],i18n:[[0,5],[1]],options:[[0,7],[1]],"playground@empty":[[2,8],[1]],styling:[[0,9],[1]]};function yt(r){r.client}function Ce(r){return r instanceof Error||r&&r.name&&r.message?r:new Error(JSON.stringify(r))}function ze(r){if(!r)return{};if(r.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in r)throw new Error("maxage should be replaced with cache: { maxage }");const e=r.status&&r.status>=400&&r.status<=599&&!r.redirect;if(r.error||e){const t=r.status;if(!r.error&&e)return{status:t||500,error:new Error(`${t}`)};const o=typeof r.error=="string"?new Error(r.error):r.error;return o instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:o}):{status:t,error:o}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof o}"`)}}if(r.redirect){if(!r.status||Math.floor(r.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof r.redirect!="string")throw new Error('"redirect" property returned from load() must be a string')}if(r.dependencies&&(!Array.isArray(r.dependencies)||r.dependencies.some(t=>typeof t!="string")))throw new Error('"dependencies" property returned from load() must be of type string[]');if(r.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return r}function qe(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}class vt extends URL{get hash(){throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.")}}function Je(r){let e=r.baseURI;if(!e){const t=r.getElementsByTagName("base");e=t.length?t[0].href:r.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Ke(r){return r.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Be(r){return r instanceof SVGAElement?new URL(r.href.baseVal,document.baseURI):new URL(r.href)}function Me(r){const e=ue(r);let t=!0;function o(){t=!0,e.update(d=>d)}function l(d){t=!1,e.set(d)}function c(d){let n;return e.subscribe(s=>{(n===void 0||t&&s!==n)&&d(n=s)})}return{notify:o,set:l,subscribe:c}}function Et(){const{set:r,subscribe:e}=ue(!1),t="1658592203377";let o;async function l(){clearTimeout(o);const d=await fetch(`${Ye}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(d.ok){const{version:n}=await d.json(),s=n!==t;return s&&(r(!0),clearTimeout(o)),s}else throw new Error(`Version check failed: ${d.status}`)}return{subscribe:e,check:l}}function $t(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}const Re=window.fetch;function kt(r,e){let o=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;e&&typeof e.body=="string"&&(o+=`[sveltekit\\:data-body="${$t(e.body)}"]`);const l=document.querySelector(o);if(l&&l.textContent){const{body:c,...d}=JSON.parse(l.textContent);return Promise.resolve(new Response(c,d))}return Re(r,e)}const Rt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Lt(r){const e=[],t=[];let o=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${decodeURIComponent(r).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,d,n)=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(s)return e.push(s[1]),t.push(s[2]),"(?:/(.*))?";const i=d===n.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((u,L)=>{if(L%2){const k=Rt.exec(u);if(!k)throw new Error(`Invalid param: ${u}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,Q,X,ce]=k;return e.push(X),t.push(ce),Q?"(.*?)":"([^/]+?)"}return i&&u.includes(".")&&(o=!1),u.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${o?"/?":""}$`),names:e,types:t}}function At(r,e,t,o){const l={};for(let c=0;c{const{pattern:s,names:i,types:u}=Lt(l);return{id:l,exec:L=>{const k=s.exec(L);if(k)return At(k,i,u,t)},a:c.map(L=>r[L]),b:d.map(L=>r[L]),has_shadow:!!n}})}const Ge="sveltekit:scroll",W="sveltekit:index",ve=St(de,bt,wt),Ut=de[0](),Ot=de[1](),We={};let re={};try{re=JSON.parse(sessionStorage[Ge])}catch{}function Ee(r){re[r]=ke()}function Pt({target:r,session:e,base:t,trailing_slash:o}){var De;const l=new Map,c=[],d={url:Me({}),page:Me({}),navigating:ue(null),session:ue(e),updated:Et()},n={id:null,promise:null},s={before_navigate:[],after_navigate:[]};let i={branch:[],error:null,session_id:0,stuff:We,url:null},u=!1,L=!0,k=!1,Q=1,X=null,ce,Le,Ae=!1;d.session.subscribe(async a=>{Le=a,Ae&&(Q+=1,me(new URL(location.href),[],!0))}),Ae=!0;let H=!0,x=(De=history.state)==null?void 0:De[W];x||(x=Date.now(),history.replaceState({...history.state,[W]:x},"",location.href));const pe=re[x];pe&&(history.scrollRestoration="manual",scrollTo(pe.x,pe.y));let _e=!1,he,Se;async function Ue(a,{noscroll:p=!1,replaceState:b=!1,keepfocus:f=!1,state:_={}},w){if(typeof a=="string"&&(a=new URL(a,Je(document))),H)return we({url:a,scroll:p?ke():null,keepfocus:f,redirect_chain:w,details:{state:_,replaceState:b},accepted:()=>{},blocked:()=>{}});await ne(a)}async function Oe(a){const p=Ie(a);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return n.promise=Te(p,!1),n.id=p.id,n.promise}async function me(a,p,b,f,_){var R,O;const w=Ie(a),$=Se={};let h=w&&await Te(w,b);if(!h&&a.origin===location.origin&&a.pathname===location.pathname&&(h=await te({status:404,error:new Error(`Not found: ${a.pathname}`),url:a,routeId:null})),!h)return await ne(a),!1;if(Se!==$)return!1;if(c.length=0,h.redirect)if(p.length>10||p.includes(a.pathname))h=await te({status:500,error:new Error("Redirect loop"),url:a,routeId:null});else return H?Ue(new URL(h.redirect,a).href,{},[...p,a.pathname]):await ne(new URL(h.redirect,location.href)),!1;else((O=(R=h.props)==null?void 0:R.page)==null?void 0:O.status)>=400&&await d.updated.check()&&await ne(a);if(k=!0,f&&f.details){const{details:v}=f,A=v.replaceState?0:1;v.state[W]=x+=A,history[v.replaceState?"replaceState":"pushState"](v.state,"",a)}if(u?(i=h.state,h.props.page&&(h.props.page.url=a),ce.$set(h.props)):Pe(h),f){const{scroll:v,keepfocus:A}=f;if(!A){const y=document.body,g=y.getAttribute("tabindex");y.tabIndex=-1,y.focus({preventScroll:!0}),setTimeout(()=>{var E;(E=getSelection())==null||E.removeAllRanges()}),g!==null?y.setAttribute("tabindex",g):y.removeAttribute("tabindex")}if(await Ne(),L){const y=a.hash&&document.getElementById(a.hash.slice(1));v?scrollTo(v.x,v.y):y?y.scrollIntoView():scrollTo(0,0)}}else await Ne();n.promise=null,n.id=null,L=!0,h.props.page&&(he=h.props.page);const m=h.state.branch[h.state.branch.length-1];H=(m==null?void 0:m.module.router)!==!1,_&&_(),k=!1}function Pe(a){i=a.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),he=a.props.page,ce=new gt({target:r,props:{...a.props,stores:d},hydrate:!0}),H){const b={from:null,to:new URL(location.href)};s.after_navigate.forEach(f=>f(b))}u=!0}async function ge({url:a,params:p,stuff:b,branch:f,status:_,error:w,routeId:$}){var y,g;const h=f.filter(Boolean),m=h.find(E=>{var U;return(U=E.loaded)==null?void 0:U.redirect}),R={redirect:(y=m==null?void 0:m.loaded)==null?void 0:y.redirect,state:{url:a,params:p,branch:f,error:w,stuff:b,session_id:Q},props:{components:h.map(E=>E.module.default)}};for(let E=0;E{Object.defineProperty(R.props.page,U,{get:()=>{throw new Error(`$page.${U} has been replaced by $page.url.${C}`)}})};E("origin","origin"),E("path","pathname"),E("query","searchParams")}const v=h[h.length-1],A=(g=v==null?void 0:v.loaded)==null?void 0:g.cache;if(A){const E=a.pathname+a.search;let U=!1;const C=()=>{l.get(E)===R&&l.delete(E),P(),clearTimeout(S)},S=setTimeout(C,A.maxage*1e3),P=d.session.subscribe(()=>{U&&C()});U=!0,l.set(E,R)}return R}async function ee({status:a,error:p,module:b,url:f,params:_,stuff:w,props:$,routeId:h}){const m={module:b,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:g}=new URL(y,f);m.uses.dependencies.add(g)}$&&m.uses.dependencies.add(f.href);const O={};for(const y in _)Object.defineProperty(O,y,{get(){return m.uses.params.add(y),_[y]},enumerable:!0});const v=Le,A=new vt(f);if(b.load){const y={routeId:h,params:O,props:$||{},get url(){return m.uses.url=!0,A},get session(){return m.uses.session=!0,v},get stuff(){return m.uses.stuff=!0,{...w}},async fetch(g,E){let U;typeof g=="string"?U=g:(U=g.url,E={body:g.method==="GET"||g.method==="HEAD"?void 0:await g.blob(),cache:g.cache,credentials:g.credentials,headers:g.headers,integrity:g.integrity,keepalive:g.keepalive,method:g.method,mode:g.mode,redirect:g.redirect,referrer:g.referrer,referrerPolicy:g.referrerPolicy,signal:g.signal,...E});const C=new URL(U,f).href;return R(C),u?Re(C,E):kt(U,E)},status:a!=null?a:null,error:p!=null?p:null};m.loaded=ze(await b.load.call(null,y)),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=ze({props:$}));return m}async function Te({id:a,url:p,params:b,route:f},_){var g,E,U,C;if(n.id===a&&n.promise)return n.promise;if(!_){const S=l.get(a);if(S)return S}const{a:w,b:$,has_shadow:h}=f,m=i.url&&{url:a!==i.url.pathname+i.url.search,params:Object.keys(b).filter(S=>i.params[S]!==b[S]),session:Q!==i.session_id};let R=[],O=We,v=!1,A=200,y=null;w.forEach(S=>S().catch(()=>{}));e:for(let S=0;SV.uses.params.has(Y))||m.session&&V.uses.session||Array.from(V.uses.dependencies).some(Y=>c.some(fe=>fe(Y)))||v&&V.uses.stuff){let Y={};const fe=h&&S===w.length-1;if(fe){const Z=await Re(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(Z.ok){const be=Z.headers.get("x-sveltekit-location");if(be)return{redirect:be,props:{},state:i};Y=Z.status===204?{}:await Z.json()}else{A=Z.status;try{y=await Z.json()}catch{y=new Error("Failed to load data")}}}if(y||(P=await ee({module:T,url:p,params:b,props:Y,stuff:O,routeId:f.id})),P&&(fe&&(P.uses.url=!0),P.loaded)){if(P.loaded.error&&(A=(g=P.loaded.status)!=null?g:500,y=P.loaded.error),P.loaded.redirect)return{redirect:P.loaded.redirect,props:{},state:i};P.loaded.stuff&&(v=!0)}}else P=V}catch(T){A=500,y=Ce(T)}if(y){for(;S--;)if($[S]){let T,V,le=S;for(;!(V=R[le]);)le-=1;try{if(T=await ee({status:A,error:y,module:await $[S](),url:p,params:b,stuff:V.stuff,routeId:f.id}),(E=T==null?void 0:T.loaded)!=null&&E.error)continue;(U=T==null?void 0:T.loaded)!=null&&U.stuff&&(O={...O,...T.loaded.stuff}),R=R.slice(0,le+1).concat(T);break e}catch{continue}}return await te({status:A,error:y,url:p,routeId:f.id})}else(C=P==null?void 0:P.loaded)!=null&&C.stuff&&(O={...O,...P.loaded.stuff}),R.push(P)}return await ge({url:p,params:b,stuff:O,branch:R,status:A,error:y,routeId:f.id})}async function te({status:a,error:p,url:b,routeId:f}){var h,m;const _={},w=await ee({module:await Ut,url:b,params:_,stuff:{},routeId:f}),$=await ee({status:a,error:p,module:await Ot,url:b,params:_,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await ge({url:b,params:_,stuff:{...(h=w==null?void 0:w.loaded)==null?void 0:h.stuff,...(m=$==null?void 0:$.loaded)==null?void 0:m.stuff},branch:[w,$],status:a,error:p,routeId:f})}function Ie(a){if(a.origin!==location.origin||!a.pathname.startsWith(t))return;const p=decodeURI(a.pathname.slice(t.length)||"/");for(const b of ve){const f=b.exec(p);if(f)return{id:qe(a.pathname,o)+a.search,route:b,params:f,url:a}}}async function we({url:a,scroll:p,keepfocus:b,redirect_chain:f,details:_,accepted:w,blocked:$}){const h=i.url;let m=!1;const R={from:h,to:a,cancel:()=>m=!0};if(s.before_navigate.forEach(A=>A(R)),m){$();return}const O=qe(a.pathname,o),v=new URL(a.origin+O+a.search+a.hash);Ee(x),w(),u&&d.navigating.set({from:i.url,to:v}),await me(v,f,!1,{scroll:p,keepfocus:b,details:_},()=>{const A={from:h,to:v};s.after_navigate.forEach(y=>y(A)),d.navigating.set(null)})}function ne(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{$e(()=>(s.after_navigate.push(a),()=>{const p=s.after_navigate.indexOf(a);s.after_navigate.splice(p,1)}))},before_navigate:a=>{$e(()=>(s.before_navigate.push(a),()=>{const p=s.before_navigate.indexOf(a);s.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(k||!u)&&(L=!1)},goto:(a,p={})=>Ue(a,p,[]),invalidate:a=>{if(typeof a=="function")c.push(a);else{const{href:p}=new URL(a,location.href);c.push(b=>b===p)}return X||(X=Promise.resolve().then(async()=>{await me(new URL(location.href),[],!0),X=null})),X},prefetch:async a=>{const p=new URL(a,Je(document));await Oe(p)},prefetch_routes:async a=>{const b=(a?ve.filter(f=>a.some(_=>f.exec(_))):ve).map(f=>Promise.all(f.a.map(_=>_())));await Promise.all(b)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let _=!1;const w={from:i.url,to:null,cancel:()=>_=!0};s.before_navigate.forEach($=>$(w)),_?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(x);try{sessionStorage[Ge]=JSON.stringify(re)}catch{}}});const a=f=>{const _=Ke(f);_&&_.href&&_.hasAttribute("sveltekit:prefetch")&&Oe(Be(_))};let p;const b=f=>{clearTimeout(p),p=setTimeout(()=>{var _;(_=f.target)==null||_.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",b),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",f=>{if(!H||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const _=Ke(f);if(!_||!_.href)return;const w=_ instanceof SVGAElement,$=Be(_);if(!w&&$.origin==="null")return;const h=(_.getAttribute("rel")||"").split(/\s+/);if(_.hasAttribute("download")||h.includes("external")||_.hasAttribute("sveltekit:reload")||(w?_.target.baseVal:_.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(x),d.page.set({...he,url:$}),d.page.notify();return}we({url:$,scroll:_.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&H){if(f.state[W]===x)return;we({url:new URL(location.href),scroll:re[f.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{x=f.state[W]},blocked:()=>{const _=x-f.state[W];history.go(_)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState({...history.state,[W]:++x},"",location.href))})},_hydrate:async({status:a,error:p,nodes:b,params:f,routeId:_})=>{var O;const w=new URL(location.href),$=[];let h={},m,R;try{for(let v=0;v{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function ft(r){let e,t,o;const l=[r[1]||{}];var c=r[0][0];function d(n){let s={$$slots:{default:[_t]},$$scope:{ctx:n}};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d(n)),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function ut(r){let e,t,o;const l=[r[2]||{}];var c=r[0][1];function d(n){let s={};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function dt(r){let e,t,o;const l=[r[2]||{}];var c=r[0][1];function d(n){let s={$$slots:{default:[pt]},$$scope:{ctx:n}};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d(n)),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function pt(r){let e,t,o;const l=[r[3]||{}];var c=r[0][2];function d(n){let s={};for(let i=0;i{B(u,1)}),F()}c?(e=new c(d()),J(e.$$.fragment),N(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else c&&e.$set(i)},i(n){o||(e&&N(e.$$.fragment,n),o=!0)},o(n){e&&D(e.$$.fragment,n),o=!1},d(n){n&&j(t),e&&B(e,n)}}}function _t(r){let e,t,o,l;const c=[dt,ut],d=[];function n(s,i){return s[0][2]?0:1}return e=n(r),t=d[e]=c[e](r),{c(){t.c(),o=I()},l(s){t.l(s),o=I()},m(s,i){d[e].m(s,i),q(s,o,i),l=!0},p(s,i){let u=e;e=n(s),e===u?d[e].p(s,i):(G(),D(d[u],1,1,()=>{d[u]=null}),F(),t=d[e],t?t.p(s,i):(t=d[e]=c[e](s),t.c()),N(t,1),t.m(o.parentNode,o))},i(s){l||(N(t),l=!0)},o(s){D(t),l=!1},d(s){d[e].d(s),s&&j(o)}}}function Ve(r){let e,t=r[5]&&je(r);return{c(){e=nt("div"),t&&t.c(),this.h()},l(o){e=rt(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var l=st(e);t&&t.l(l),l.forEach(j),this.h()},h(){ye(e,"id","svelte-announcer"),ye(e,"aria-live","assertive"),ye(e,"aria-atomic","true"),M(e,"position","absolute"),M(e,"left","0"),M(e,"top","0"),M(e,"clip","rect(0 0 0 0)"),M(e,"clip-path","inset(50%)"),M(e,"overflow","hidden"),M(e,"white-space","nowrap"),M(e,"width","1px"),M(e,"height","1px")},m(o,l){q(o,e,l),t&&t.m(e,null)},p(o,l){o[5]?t?t.p(o,l):(t=je(o),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(o){o&&j(e),t&&t.d()}}}function je(r){let e;return{c(){e=it(r[6])},l(t){e=at(t,r[6])},m(t,o){q(t,e,o)},p(t,o){o&64&&ot(e,t[6])},d(t){t&&j(e)}}}function ht(r){let e,t,o,l,c;const d=[ft,lt],n=[];function s(u,L){return u[0][1]?0:1}e=s(r),t=n[e]=d[e](r);let i=r[4]&&Ve(r);return{c(){t.c(),o=Ze(),i&&i.c(),l=I()},l(u){t.l(u),o=Qe(u),i&&i.l(u),l=I()},m(u,L){n[e].m(u,L),q(u,o,L),i&&i.m(u,L),q(u,l,L),c=!0},p(u,[L]){let k=e;e=s(u),e===k?n[e].p(u,L):(G(),D(n[k],1,1,()=>{n[k]=null}),F(),t=n[e],t?t.p(u,L):(t=n[e]=d[e](u),t.c()),N(t,1),t.m(o.parentNode,o)),u[4]?i?i.p(u,L):(i=Ve(u),i.c(),i.m(l.parentNode,l)):i&&(i.d(1),i=null)},i(u){c||(N(t),c=!0)},o(u){D(t),c=!1},d(u){n[e].d(u),u&&j(o),i&&i.d(u),u&&j(l)}}}function mt(r,e,t){let{stores:o}=e,{page:l}=e,{components:c}=e,{props_0:d=null}=e,{props_1:n=null}=e,{props_2:s=null}=e;et("__svelte__",o),tt(o.page.notify);let i=!1,u=!1,L=null;return $e(()=>{const k=o.page.subscribe(()=>{i&&(t(5,u=!0),t(6,L=document.title||"untitled page"))});return t(4,i=!0),k}),r.$$set=k=>{"stores"in k&&t(7,o=k.stores),"page"in k&&t(8,l=k.page),"components"in k&&t(0,c=k.components),"props_0"in k&&t(1,d=k.props_0),"props_1"in k&&t(2,n=k.props_1),"props_2"in k&&t(3,s=k.props_2)},r.$$.update=()=>{r.$$.dirty&384&&o.page.set(l)},[c,d,n,s,i,u,L,o,l]}class gt extends Fe{constructor(e){super(),Xe(this,e,mt,ht,He,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const wt={},de=[()=>z(()=>import("./pages/__layout.svelte-912b16f6.js"),["immutable/pages/__layout.svelte-912b16f6.js","immutable/assets/__layout-afe45925.css","immutable/chunks/index-bba13a04.js","immutable/chunks/index-e9a06c32.js"]),()=>z(()=>import("./error.svelte-aad4fe5b.js"),["immutable/error.svelte-aad4fe5b.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/__layout-empty.svelte-33ceea67.js"),["immutable/pages/__layout-empty.svelte-33ceea67.js","immutable/assets/__layout-empty-d4bc191b.css","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/custom-element.svelte-a0f6cc30.js"),["immutable/pages/custom-element.svelte-a0f6cc30.js","immutable/assets/custom-element-d57795d7.css","immutable/chunks/preload-helper-b22d3b18.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/formatting.svelte-07ad7b3a.js"),["immutable/pages/formatting.svelte-07ad7b3a.js","immutable/assets/formatting-a0b286e4.css","immutable/chunks/index-bba13a04.js","immutable/chunks/formatting_php-3c906c50.js","immutable/chunks/SveltyPicker-15fcdb01.js","immutable/assets/SveltyPicker-31152ba0.css"]),()=>z(()=>import("./pages/i18n.md-90c7bdf8.js"),["immutable/pages/i18n.md-90c7bdf8.js","immutable/chunks/index-bba13a04.js"]),()=>z(()=>import("./pages/index.svx-f19385ff.js"),["immutable/pages/index.svx-f19385ff.js","immutable/assets/index-e7757a58.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-15fcdb01.js","immutable/assets/SveltyPicker-31152ba0.css"]),()=>z(()=>import("./pages/options.svelte-d4eb71f4.js"),["immutable/pages/options.svelte-d4eb71f4.js","immutable/assets/options-77f863f6.css","immutable/chunks/index-bba13a04.js","immutable/chunks/options-e355255b.js"]),()=>z(()=>import("./pages/playground@empty.svelte-95d882ed.js"),["immutable/pages/playground@empty.svelte-95d882ed.js","immutable/assets/playground@empty-73292507.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-15fcdb01.js","immutable/assets/SveltyPicker-31152ba0.css","immutable/chunks/options-e355255b.js","immutable/chunks/formatting_php-3c906c50.js"]),()=>z(()=>import("./pages/styling.svelte-a896d183.js"),["immutable/pages/styling.svelte-a896d183.js","immutable/assets/styling-9a44068d.css","immutable/chunks/index-bba13a04.js","immutable/chunks/SveltyPicker-15fcdb01.js","immutable/assets/SveltyPicker-31152ba0.css"])],bt={"":[[0,6],[1]],"custom-element":[[0,3],[1]],formatting:[[0,4],[1]],i18n:[[0,5],[1]],options:[[0,7],[1]],"playground@empty":[[2,8],[1]],styling:[[0,9],[1]]};function yt(r){r.client}function Ce(r){return r instanceof Error||r&&r.name&&r.message?r:new Error(JSON.stringify(r))}function ze(r){if(!r)return{};if(r.fallthrough)throw new Error("fallthrough is no longer supported. Use matchers instead: https://kit.svelte.dev/docs/routing#advanced-routing-matching");if("maxage"in r)throw new Error("maxage should be replaced with cache: { maxage }");const e=r.status&&r.status>=400&&r.status<=599&&!r.redirect;if(r.error||e){const t=r.status;if(!r.error&&e)return{status:t||500,error:new Error(`${t}`)};const o=typeof r.error=="string"?new Error(r.error):r.error;return o instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:o}):{status:t,error:o}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof o}"`)}}if(r.redirect){if(!r.status||Math.floor(r.status/100)!==3)throw new Error('"redirect" property returned from load() must be accompanied by a 3xx status code');if(typeof r.redirect!="string")throw new Error('"redirect" property returned from load() must be a string')}if(r.dependencies&&(!Array.isArray(r.dependencies)||r.dependencies.some(t=>typeof t!="string")))throw new Error('"dependencies" property returned from load() must be of type string[]');if(r.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return r}function qe(r,e){return r==="/"||e==="ignore"?r:e==="never"?r.endsWith("/")?r.slice(0,-1):r:e==="always"&&!r.endsWith("/")?r+"/":r}class vt extends URL{get hash(){throw new Error("url.hash is inaccessible from load. Consider accessing hash from the page store within the script tag of your component.")}}function Je(r){let e=r.baseURI;if(!e){const t=r.getElementsByTagName("base");e=t.length?t[0].href:r.URL}return e}function ke(){return{x:pageXOffset,y:pageYOffset}}function Ke(r){return r.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function Be(r){return r instanceof SVGAElement?new URL(r.href.baseVal,document.baseURI):new URL(r.href)}function Me(r){const e=ue(r);let t=!0;function o(){t=!0,e.update(d=>d)}function l(d){t=!1,e.set(d)}function c(d){let n;return e.subscribe(s=>{(n===void 0||t&&s!==n)&&d(n=s)})}return{notify:o,set:l,subscribe:c}}function Et(){const{set:r,subscribe:e}=ue(!1),t="1658593082969";let o;async function l(){clearTimeout(o);const d=await fetch(`${Ye}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(d.ok){const{version:n}=await d.json(),s=n!==t;return s&&(r(!0),clearTimeout(o)),s}else throw new Error(`Version check failed: ${d.status}`)}return{subscribe:e,check:l}}function $t(r){let e=5381,t=r.length;if(typeof r=="string")for(;t;)e=e*33^r.charCodeAt(--t);else for(;t;)e=e*33^r[--t];return(e>>>0).toString(36)}const Re=window.fetch;function kt(r,e){let o=`script[sveltekit\\:data-type="data"][sveltekit\\:data-url=${JSON.stringify(typeof r=="string"?r:r.url)}]`;e&&typeof e.body=="string"&&(o+=`[sveltekit\\:data-body="${$t(e.body)}"]`);const l=document.querySelector(o);if(l&&l.textContent){const{body:c,...d}=JSON.parse(l.textContent);return Promise.resolve(new Response(c,d))}return Re(r,e)}const Rt=/^(\.\.\.)?(\w+)(?:=(\w+))?$/;function Lt(r){const e=[],t=[];let o=!0;return{pattern:r===""?/^\/$/:new RegExp(`^${decodeURIComponent(r).split(/(?:@[a-zA-Z0-9_-]+)?(?:\/|$)/).map((c,d,n)=>{const s=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(s)return e.push(s[1]),t.push(s[2]),"(?:/(.*))?";const i=d===n.length-1;return c&&"/"+c.split(/\[(.+?)\]/).map((u,L)=>{if(L%2){const k=Rt.exec(u);if(!k)throw new Error(`Invalid param: ${u}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,Q,X,ce]=k;return e.push(X),t.push(ce),Q?"(.*?)":"([^/]+?)"}return i&&u.includes(".")&&(o=!1),u.normalize().replace(/%5[Bb]/g,"[").replace(/%5[Dd]/g,"]").replace(/#/g,"%23").replace(/\?/g,"%3F").replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("")}).join("")}${o?"/?":""}$`),names:e,types:t}}function At(r,e,t,o){const l={};for(let c=0;c{const{pattern:s,names:i,types:u}=Lt(l);return{id:l,exec:L=>{const k=s.exec(L);if(k)return At(k,i,u,t)},a:c.map(L=>r[L]),b:d.map(L=>r[L]),has_shadow:!!n}})}const Ge="sveltekit:scroll",W="sveltekit:index",ve=St(de,bt,wt),Ut=de[0](),Ot=de[1](),We={};let re={};try{re=JSON.parse(sessionStorage[Ge])}catch{}function Ee(r){re[r]=ke()}function Pt({target:r,session:e,base:t,trailing_slash:o}){var De;const l=new Map,c=[],d={url:Me({}),page:Me({}),navigating:ue(null),session:ue(e),updated:Et()},n={id:null,promise:null},s={before_navigate:[],after_navigate:[]};let i={branch:[],error:null,session_id:0,stuff:We,url:null},u=!1,L=!0,k=!1,Q=1,X=null,ce,Le,Ae=!1;d.session.subscribe(async a=>{Le=a,Ae&&(Q+=1,me(new URL(location.href),[],!0))}),Ae=!0;let H=!0,x=(De=history.state)==null?void 0:De[W];x||(x=Date.now(),history.replaceState({...history.state,[W]:x},"",location.href));const pe=re[x];pe&&(history.scrollRestoration="manual",scrollTo(pe.x,pe.y));let _e=!1,he,Se;async function Ue(a,{noscroll:p=!1,replaceState:b=!1,keepfocus:f=!1,state:_={}},w){if(typeof a=="string"&&(a=new URL(a,Je(document))),H)return we({url:a,scroll:p?ke():null,keepfocus:f,redirect_chain:w,details:{state:_,replaceState:b},accepted:()=>{},blocked:()=>{}});await ne(a)}async function Oe(a){const p=Ie(a);if(!p)throw new Error("Attempted to prefetch a URL that does not belong to this app");return n.promise=Te(p,!1),n.id=p.id,n.promise}async function me(a,p,b,f,_){var R,O;const w=Ie(a),$=Se={};let h=w&&await Te(w,b);if(!h&&a.origin===location.origin&&a.pathname===location.pathname&&(h=await te({status:404,error:new Error(`Not found: ${a.pathname}`),url:a,routeId:null})),!h)return await ne(a),!1;if(Se!==$)return!1;if(c.length=0,h.redirect)if(p.length>10||p.includes(a.pathname))h=await te({status:500,error:new Error("Redirect loop"),url:a,routeId:null});else return H?Ue(new URL(h.redirect,a).href,{},[...p,a.pathname]):await ne(new URL(h.redirect,location.href)),!1;else((O=(R=h.props)==null?void 0:R.page)==null?void 0:O.status)>=400&&await d.updated.check()&&await ne(a);if(k=!0,f&&f.details){const{details:v}=f,A=v.replaceState?0:1;v.state[W]=x+=A,history[v.replaceState?"replaceState":"pushState"](v.state,"",a)}if(u?(i=h.state,h.props.page&&(h.props.page.url=a),ce.$set(h.props)):Pe(h),f){const{scroll:v,keepfocus:A}=f;if(!A){const y=document.body,g=y.getAttribute("tabindex");y.tabIndex=-1,y.focus({preventScroll:!0}),setTimeout(()=>{var E;(E=getSelection())==null||E.removeAllRanges()}),g!==null?y.setAttribute("tabindex",g):y.removeAttribute("tabindex")}if(await Ne(),L){const y=a.hash&&document.getElementById(a.hash.slice(1));v?scrollTo(v.x,v.y):y?y.scrollIntoView():scrollTo(0,0)}}else await Ne();n.promise=null,n.id=null,L=!0,h.props.page&&(he=h.props.page);const m=h.state.branch[h.state.branch.length-1];H=(m==null?void 0:m.module.router)!==!1,_&&_(),k=!1}function Pe(a){i=a.state;const p=document.querySelector("style[data-sveltekit]");if(p&&p.remove(),he=a.props.page,ce=new gt({target:r,props:{...a.props,stores:d},hydrate:!0}),H){const b={from:null,to:new URL(location.href)};s.after_navigate.forEach(f=>f(b))}u=!0}async function ge({url:a,params:p,stuff:b,branch:f,status:_,error:w,routeId:$}){var y,g;const h=f.filter(Boolean),m=h.find(E=>{var U;return(U=E.loaded)==null?void 0:U.redirect}),R={redirect:(y=m==null?void 0:m.loaded)==null?void 0:y.redirect,state:{url:a,params:p,branch:f,error:w,stuff:b,session_id:Q},props:{components:h.map(E=>E.module.default)}};for(let E=0;E{Object.defineProperty(R.props.page,U,{get:()=>{throw new Error(`$page.${U} has been replaced by $page.url.${C}`)}})};E("origin","origin"),E("path","pathname"),E("query","searchParams")}const v=h[h.length-1],A=(g=v==null?void 0:v.loaded)==null?void 0:g.cache;if(A){const E=a.pathname+a.search;let U=!1;const C=()=>{l.get(E)===R&&l.delete(E),P(),clearTimeout(S)},S=setTimeout(C,A.maxage*1e3),P=d.session.subscribe(()=>{U&&C()});U=!0,l.set(E,R)}return R}async function ee({status:a,error:p,module:b,url:f,params:_,stuff:w,props:$,routeId:h}){const m={module:b,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:w};function R(y){const{href:g}=new URL(y,f);m.uses.dependencies.add(g)}$&&m.uses.dependencies.add(f.href);const O={};for(const y in _)Object.defineProperty(O,y,{get(){return m.uses.params.add(y),_[y]},enumerable:!0});const v=Le,A=new vt(f);if(b.load){const y={routeId:h,params:O,props:$||{},get url(){return m.uses.url=!0,A},get session(){return m.uses.session=!0,v},get stuff(){return m.uses.stuff=!0,{...w}},async fetch(g,E){let U;typeof g=="string"?U=g:(U=g.url,E={body:g.method==="GET"||g.method==="HEAD"?void 0:await g.blob(),cache:g.cache,credentials:g.credentials,headers:g.headers,integrity:g.integrity,keepalive:g.keepalive,method:g.method,mode:g.mode,redirect:g.redirect,referrer:g.referrer,referrerPolicy:g.referrerPolicy,signal:g.signal,...E});const C=new URL(U,f).href;return R(C),u?Re(C,E):kt(U,E)},status:a!=null?a:null,error:p!=null?p:null};m.loaded=ze(await b.load.call(null,y)),m.loaded.stuff&&(m.stuff=m.loaded.stuff),m.loaded.dependencies&&m.loaded.dependencies.forEach(R)}else $&&(m.loaded=ze({props:$}));return m}async function Te({id:a,url:p,params:b,route:f},_){var g,E,U,C;if(n.id===a&&n.promise)return n.promise;if(!_){const S=l.get(a);if(S)return S}const{a:w,b:$,has_shadow:h}=f,m=i.url&&{url:a!==i.url.pathname+i.url.search,params:Object.keys(b).filter(S=>i.params[S]!==b[S]),session:Q!==i.session_id};let R=[],O=We,v=!1,A=200,y=null;w.forEach(S=>S().catch(()=>{}));e:for(let S=0;SV.uses.params.has(Y))||m.session&&V.uses.session||Array.from(V.uses.dependencies).some(Y=>c.some(fe=>fe(Y)))||v&&V.uses.stuff){let Y={};const fe=h&&S===w.length-1;if(fe){const Z=await Re(`${p.pathname}${p.pathname.endsWith("/")?"":"/"}__data.json${p.search}`,{headers:{"x-sveltekit-load":"true"}});if(Z.ok){const be=Z.headers.get("x-sveltekit-location");if(be)return{redirect:be,props:{},state:i};Y=Z.status===204?{}:await Z.json()}else{A=Z.status;try{y=await Z.json()}catch{y=new Error("Failed to load data")}}}if(y||(P=await ee({module:T,url:p,params:b,props:Y,stuff:O,routeId:f.id})),P&&(fe&&(P.uses.url=!0),P.loaded)){if(P.loaded.error&&(A=(g=P.loaded.status)!=null?g:500,y=P.loaded.error),P.loaded.redirect)return{redirect:P.loaded.redirect,props:{},state:i};P.loaded.stuff&&(v=!0)}}else P=V}catch(T){A=500,y=Ce(T)}if(y){for(;S--;)if($[S]){let T,V,le=S;for(;!(V=R[le]);)le-=1;try{if(T=await ee({status:A,error:y,module:await $[S](),url:p,params:b,stuff:V.stuff,routeId:f.id}),(E=T==null?void 0:T.loaded)!=null&&E.error)continue;(U=T==null?void 0:T.loaded)!=null&&U.stuff&&(O={...O,...T.loaded.stuff}),R=R.slice(0,le+1).concat(T);break e}catch{continue}}return await te({status:A,error:y,url:p,routeId:f.id})}else(C=P==null?void 0:P.loaded)!=null&&C.stuff&&(O={...O,...P.loaded.stuff}),R.push(P)}return await ge({url:p,params:b,stuff:O,branch:R,status:A,error:y,routeId:f.id})}async function te({status:a,error:p,url:b,routeId:f}){var h,m;const _={},w=await ee({module:await Ut,url:b,params:_,stuff:{},routeId:f}),$=await ee({status:a,error:p,module:await Ot,url:b,params:_,stuff:w&&w.loaded&&w.loaded.stuff||{},routeId:f});return await ge({url:b,params:_,stuff:{...(h=w==null?void 0:w.loaded)==null?void 0:h.stuff,...(m=$==null?void 0:$.loaded)==null?void 0:m.stuff},branch:[w,$],status:a,error:p,routeId:f})}function Ie(a){if(a.origin!==location.origin||!a.pathname.startsWith(t))return;const p=decodeURI(a.pathname.slice(t.length)||"/");for(const b of ve){const f=b.exec(p);if(f)return{id:qe(a.pathname,o)+a.search,route:b,params:f,url:a}}}async function we({url:a,scroll:p,keepfocus:b,redirect_chain:f,details:_,accepted:w,blocked:$}){const h=i.url;let m=!1;const R={from:h,to:a,cancel:()=>m=!0};if(s.before_navigate.forEach(A=>A(R)),m){$();return}const O=qe(a.pathname,o),v=new URL(a.origin+O+a.search+a.hash);Ee(x),w(),u&&d.navigating.set({from:i.url,to:v}),await me(v,f,!1,{scroll:p,keepfocus:b,details:_},()=>{const A={from:h,to:v};s.after_navigate.forEach(y=>y(A)),d.navigating.set(null)})}function ne(a){return location.href=a.href,new Promise(()=>{})}return{after_navigate:a=>{$e(()=>(s.after_navigate.push(a),()=>{const p=s.after_navigate.indexOf(a);s.after_navigate.splice(p,1)}))},before_navigate:a=>{$e(()=>(s.before_navigate.push(a),()=>{const p=s.before_navigate.indexOf(a);s.before_navigate.splice(p,1)}))},disable_scroll_handling:()=>{(k||!u)&&(L=!1)},goto:(a,p={})=>Ue(a,p,[]),invalidate:a=>{if(typeof a=="function")c.push(a);else{const{href:p}=new URL(a,location.href);c.push(b=>b===p)}return X||(X=Promise.resolve().then(async()=>{await me(new URL(location.href),[],!0),X=null})),X},prefetch:async a=>{const p=new URL(a,Je(document));await Oe(p)},prefetch_routes:async a=>{const b=(a?ve.filter(f=>a.some(_=>f.exec(_))):ve).map(f=>Promise.all(f.a.map(_=>_())));await Promise.all(b)},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",f=>{let _=!1;const w={from:i.url,to:null,cancel:()=>_=!0};s.before_navigate.forEach($=>$(w)),_?(f.preventDefault(),f.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Ee(x);try{sessionStorage[Ge]=JSON.stringify(re)}catch{}}});const a=f=>{const _=Ke(f);_&&_.href&&_.hasAttribute("sveltekit:prefetch")&&Oe(Be(_))};let p;const b=f=>{clearTimeout(p),p=setTimeout(()=>{var _;(_=f.target)==null||_.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",a),addEventListener("mousemove",b),addEventListener("sveltekit:trigger_prefetch",a),addEventListener("click",f=>{if(!H||f.button||f.which!==1||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||f.defaultPrevented)return;const _=Ke(f);if(!_||!_.href)return;const w=_ instanceof SVGAElement,$=Be(_);if(!w&&$.origin==="null")return;const h=(_.getAttribute("rel")||"").split(/\s+/);if(_.hasAttribute("download")||h.includes("external")||_.hasAttribute("sveltekit:reload")||(w?_.target.baseVal:_.target))return;const[m,R]=$.href.split("#");if(R!==void 0&&m===location.href.split("#")[0]){_e=!0,Ee(x),d.page.set({...he,url:$}),d.page.notify();return}we({url:$,scroll:_.hasAttribute("sveltekit:noscroll")?ke():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:$.href===location.href},accepted:()=>f.preventDefault(),blocked:()=>f.preventDefault()})}),addEventListener("popstate",f=>{if(f.state&&H){if(f.state[W]===x)return;we({url:new URL(location.href),scroll:re[f.state[W]],keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{x=f.state[W]},blocked:()=>{const _=x-f.state[W];history.go(_)}})}}),addEventListener("hashchange",()=>{_e&&(_e=!1,history.replaceState({...history.state,[W]:++x},"",location.href))})},_hydrate:async({status:a,error:p,nodes:b,params:f,routeId:_})=>{var O;const w=new URL(location.href),$=[];let h={},m,R;try{for(let v=0;v - - + + - +