From ce244dbddbf7594ce15ab921b97d1daf37bfd88e Mon Sep 17 00:00:00 2001 From: Jonathan Greenemeier Date: Fri, 18 Oct 2019 19:25:24 -0600 Subject: [PATCH] feat: add basic theming functionality --- docs/bundle.css | 8 ++++---- docs/bundle.css.map | 14 +++++++------- docs/bundle.js | 2 +- docs/bundle.js.map | 2 +- docs/test.css | 6 +++--- docs/test.css.map | 12 ++++++------ docs/test.js | 2 +- docs/test.js.map | 2 +- src/App.svelte | 26 ++++++++++++++++++++++++++ src/Components/Datepicker.svelte | 31 ++++++++++++++++++++++++++++--- src/Components/NavBar.svelte | 2 +- src/Components/Week.svelte | 16 +++++++++------- 12 files changed, 88 insertions(+), 35 deletions(-) diff --git a/docs/bundle.css b/docs/bundle.css index bcc1517..aa0f171 100644 --- a/docs/bundle.css +++ b/docs/bundle.css @@ -1,7 +1,7 @@ -.datepicker.svelte-1rg21xy{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1rg21xy{padding:10px 20px;border:1px solid #eee;display:block;text-align:center;width:300px;text-decoration:none;cursor:pointer;background:#fff;border-radius:7px;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1)}.svelte-1rg21xy,.svelte-1rg21xy:before,.svelte-1rg21xy:after{box-sizing:inherit}.calendar.svelte-1rg21xy{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1rg21xy{height:auto;width:340px;max-width:100%}}.legend.svelte-1rg21xy{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1rg21xy span.svelte-1rg21xy{width:14.285714%;display:inline-block;text-align:center} -.month-container.svelte-ny3kda{width:100%;display:-ms-grid;display:grid;-ms-grid-columns:1fr;-ms-grid-rows:1fr} +.datepicker.svelte-1lorc63{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1lorc63{padding:10px 20px;border:1px solid var(--button-border-color);display:block;text-align:center;width:300px;text-decoration:none;cursor:pointer;background:var(--button-background-color);color:var(--button-text-color);border-radius:7px;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1)}.svelte-1lorc63,.svelte-1lorc63:before,.svelte-1lorc63:after{box-sizing:inherit}.calendar.svelte-1lorc63{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1lorc63{height:auto;width:340px;max-width:100%}}.legend.svelte-1lorc63{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1lorc63 span.svelte-1lorc63{width:14.285714%;display:inline-block;text-align:center} +.heading-section.svelte-1uccyem{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-1uccyem{cursor:pointer}.month-selector.svelte-1uccyem{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-1uccyem{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-1uccyem{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-1uccyem{opacity:1}.month-selector--month.selectable.svelte-1uccyem:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-1uccyem{background:var(--highlight-color);color:#fff}.month-selector--month.svelte-1uccyem:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-1uccyem span.svelte-1uccyem{vertical-align:middle;display:inline-block}.control.svelte-1uccyem{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-1uccyem{opacity:1;cursor:pointer}.arrow.svelte-1uccyem{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-1uccyem{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-1uccyem{transform:rotate(135deg);-webkit-transform:rotate(135deg)} .sc-popover.svelte-1wmex1c{position:relative}.contents-wrapper.svelte-1wmex1c{transform:translate(-50%, -50%);position:absolute;top:50%;left:50%;transition:none;z-index:2;display:none}.contents.svelte-1wmex1c{background:#fff;box-shadow:0px 10px 26px rgba(0,0,0,0.4) ;opacity:.8;padding-top:0;display:none;animation:svelte-1wmex1c-grow 200ms forwards cubic-bezier(.92,.09,.18,1.05)}.contents-inner.svelte-1wmex1c{animation:svelte-1wmex1c-fadeIn 400ms forwards}.contents-wrapper.visible.svelte-1wmex1c{display:block}.contents-wrapper.visible.svelte-1wmex1c .contents.svelte-1wmex1c{opacity:1;transform:scale(1);display:block}.contents-wrapper.shrink.svelte-1wmex1c .contents.svelte-1wmex1c{animation:svelte-1wmex1c-shrink 150ms forwards cubic-bezier(.92,.09,.18,1.05)}@keyframes svelte-1wmex1c-grow{0%{transform:scale(.9,.1);opacity:0}30%{opacity:1}100%{transform:scale(1)}}@keyframes svelte-1wmex1c-shrink{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{opacity:0;transform:scale(.9,.1)}}@keyframes svelte-1wmex1c-fadeIn{0%{opacity:0}50%{opacity:0}100%{opacity:1}} -.heading-section.svelte-19cv7t7{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-19cv7t7{cursor:pointer}.month-selector.svelte-19cv7t7{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-19cv7t7{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-19cv7t7{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-19cv7t7{opacity:1}.month-selector--month.selectable.svelte-19cv7t7:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-19cv7t7{background:#f7901e;color:#fff}.month-selector--month.svelte-19cv7t7:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-19cv7t7 span.svelte-19cv7t7{vertical-align:middle;display:inline-block}.control.svelte-19cv7t7{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-19cv7t7{opacity:1;cursor:pointer}.arrow.svelte-19cv7t7{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-19cv7t7{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-19cv7t7{transform:rotate(135deg);-webkit-transform:rotate(135deg)} -.week.svelte-1fuvang{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-flow:row;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-1fuvang:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-1fuvang:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-1fuvang:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-1fuvang:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-1fuvang:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-1fuvang:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-1fuvang{margin:2px;color:#4a4a4a;font-weight:bold;text-align:center;font-size:16px;flex:1 0 auto;height:auto;display:flex;flex-basis:0}.day.outside-month.svelte-1fuvang,.day.is-disabled.svelte-1fuvang{opacity:0.35}.day.svelte-1fuvang:before{content:'';float:left;padding-top:100%}.day--label.svelte-1fuvang{display:flex;justify-content:center;flex-direction:column;width:100%;position:relative;border:1px solid #fff;border-radius:50%;margin:10%;padding:0;align-items:center;background:none;cursor:pointer;transition:all 100ms linear;font-weight:normal}.day--label.disabled.svelte-1fuvang{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-1fuvang,.day--label.svelte-1fuvang:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-1fuvang{animation:svelte-1fuvang-shake 0.4s 1 linear}.day--label.selected.svelte-1fuvang:hover,.day--label.selected.svelte-1fuvang,.day--label.svelte-1fuvang:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-1fuvang .day--label.svelte-1fuvang,.day.is-today.svelte-1fuvang .day--label.svelte-1fuvang:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-1fuvang-shake{0%{transform:translate(7px)}20%{transform:translate(-7px)}40%{transform:translate(3px)}60%{transform:translate(-3px)}80%{transform:translate(1px)}100%{transform:translate(0px)}} +.month-container.svelte-ny3kda{width:100%;display:-ms-grid;display:grid;-ms-grid-columns:1fr;-ms-grid-rows:1fr} +.week.svelte-5wjnn4{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-flow:row;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-5wjnn4:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-5wjnn4:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-5wjnn4:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-5wjnn4:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-5wjnn4:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-5wjnn4:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-5wjnn4{margin:2px;color:var(--day-text-color);font-weight:bold;text-align:center;font-size:16px;flex:1 0 auto;height:auto;display:flex;flex-basis:0}.day.outside-month.svelte-5wjnn4,.day.is-disabled.svelte-5wjnn4{opacity:0.35}.day.svelte-5wjnn4:before{content:'';float:left;padding-top:100%}.day--label.svelte-5wjnn4{color:var(--day-text-color);display:flex;justify-content:center;flex-direction:column;width:100%;position:relative;border:1px solid #fff;border-radius:50%;margin:10%;padding:0;align-items:center;background:var(--day-background-color);cursor:pointer;transition:all 100ms linear;font-weight:normal}.day--label.disabled.svelte-5wjnn4{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-5wjnn4,.day--label.svelte-5wjnn4:not(.disabled):hover{background:var(--day-highlighted-background-color);border-color:var(--day-highlighted-background-color);color:var(--day-highlighted-text-color)}}.day--label.shake-date.svelte-5wjnn4{animation:svelte-5wjnn4-shake 0.4s 1 linear}.day--label.selected.svelte-5wjnn4:hover,.day--label.selected.svelte-5wjnn4,.day--label.svelte-5wjnn4:active:not(.disabled){background-color:var(--highlight-color);border-color:var(--highlight-color);color:#fff}.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4,.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4:hover{opacity:1;background:none;border-color:var(--highlight-color);color:#000}@keyframes svelte-5wjnn4-shake{0%{transform:translate(7px)}20%{transform:translate(-7px)}40%{transform:translate(3px)}60%{transform:translate(-3px)}80%{transform:translate(1px)}100%{transform:translate(0px)}} /*# sourceMappingURL=bundle.css.map */ \ No newline at end of file diff --git a/docs/bundle.css.map b/docs/bundle.css.map index 10b5d70..0b1d59a 100644 --- a/docs/bundle.css.map +++ b/docs/bundle.css.map @@ -3,18 +3,18 @@ "file": "bundle.css", "sources": [ "..\\src\\Components\\Datepicker.svelte", - "..\\src\\Components\\Month.svelte", - "..\\src\\Components\\Popover.svelte", "..\\src\\Components\\NavBar.svelte", + "..\\src\\Components\\Popover.svelte", + "..\\src\\Components\\Month.svelte", "..\\src\\Components\\Week.svelte" ], "sourcesContent": [ - "\r\n\r\n
\r\n \r\n
\r\n \r\n {#if !trigger}\r\n \r\n {/if}\r\n \r\n
\r\n
\r\n
\r\n changeMonth(e.detail)}\r\n on:incrementMonth={e => incrementMonth(e.detail)} />\r\n
\r\n {#each dayDict as day}\r\n {day.abbrev}\r\n {/each}\r\n
\r\n registerSelection(e.detail)} />\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n", - "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n", + "\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", + "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n", - "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", - "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" + "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n", + "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" ], "names": [], - "mappings": "AAoOE,WAAW,eAAC,CAAC,AACX,OAAO,CAAE,YAAY,CACrB,MAAM,CAAE,CAAC,CAAC,IAAI,CACd,UAAU,CA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,CAAC" } \ No newline at end of file diff --git a/docs/bundle.js b/docs/bundle.js index e941027..c59c3d9 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,2 +1,2 @@ -var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o0)&&p(b)}function $(e){var t;return y||(y=!0,p(b)),{promise:new Promise(function(n){m.add(t=[e,n])}),abort:function(){m.delete(t)}}}function k(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function _(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!A[v]){if(!f){var g=w("style");document.head.appendChild(g),f=g.sheet}A[v]=!0,f.insertRule("@keyframes "+v+" "+h,f.cssRules.length)}var p=e.style.animation||"";return e.style.animation=(p?p+", ":"")+v+" "+r+"ms linear "+o+"ms 1 both",T+=1,v}function L(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--T&&p(function(){if(!T){for(var e=f.cssRules.length;e--;)f.deleteRule(e);A={}}})}function W(e){F=e}function J(e){(function(){if(!F)throw new Error("Function called outside component initialization");return F})().$$.on_mount.push(e)}function P(){var e=F;return function(t,n){var r=e.$$.callbacks[t];if(r){var o=Y(t,n);r.slice().forEach(function(t){t.call(e,o)})}}}var N,q=[],z=[],R=[],X=[],B=Promise.resolve(),G=!1;function K(){G||(G=!0,B.then(V))}function Q(e){R.push(e)}function U(e){X.push(e)}function V(){var e=new Set;do{for(;q.length;){var t=q.shift();W(t),Z(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&o<=t&&(!n||n(o)),isToday:o.getTime()===r.getTime()}}};var ge=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function pe(e){var t=e-1;return t*t*t+1}function me(e,t){var n=t.delay;void 0===n&&(n=0);var r=t.duration;void 0===r&&(r=400);var o=+getComputedStyle(e).opacity;return{delay:n,duration:r,css:function(e){return"opacity: "+e*o}}}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var r=t.duration;void 0===r&&(r=400);var o=t.easing;void 0===o&&(o=pe);var i=t.x;void 0===i&&(i=0);var a=t.y;void 0===a&&(a=0);var c=t.opacity;void 0===c&&(c=0);var s=getComputedStyle(e),d=+s.opacity,l="none"===s.transform?"":s.transform,u=d*(1-c);return{delay:n,duration:r,easing:o,css:function(e,t){return"\n\t\t\ttransform: "+l+" translate("+(1-e)*i+"px, "+(1-e)*a+"px);\n\t\t\topacity: "+(d-u*t)}}}function be(e,t,n){var r=Object.create(e);return r.day=t[n],r}function $e(e){var t,n,r,o,i,a=e.day.date.getDate();function c(){return e.click_handler(e)}return{c:function(){t=w("div"),n=w("button"),r=S(a),o=O(),C(n,"class","day--label svelte-1fuvang"),C(n,"type","button"),j(n,"selected",ge(e.day.date,e.selected)),j(n,"highlighted",ge(e.day.date,e.highlighted)),j(n,"shake-date",e.shouldShakeDate&&ge(e.day.date,e.shouldShakeDate)),j(n,"disabled",!e.day.selectable),C(t,"class","day svelte-1fuvang"),j(t,"outside-month",!e.day.partOfMonth),j(t,"is-today",e.day.isToday),j(t,"is-disabled",!e.day.selectable),i=x(n,"click",c)},m:function(e,i){M(e,t,i),k(t,n),k(n,r),k(t,o)},p:function(o,i){e=i,o.days&&a!==(a=e.day.date.getDate())&&I(r,a),(o.areDatesEquivalent||o.days||o.selected)&&j(n,"selected",ge(e.day.date,e.selected)),(o.areDatesEquivalent||o.days||o.highlighted)&&j(n,"highlighted",ge(e.day.date,e.highlighted)),(o.shouldShakeDate||o.areDatesEquivalent||o.days)&&j(n,"shake-date",e.shouldShakeDate&&ge(e.day.date,e.shouldShakeDate)),o.days&&(j(n,"disabled",!e.day.selectable),j(t,"outside-month",!e.day.partOfMonth),j(t,"is-today",e.day.isToday),j(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function ke(e){for(var t,o,i,a,d=e.days,l=[],u=0;u=p)return h(1,0),te(e,!0,"end"),u(),d=!1;if(t>=v){var n=s((t-v)/o);h(n,1-n)}}return d})}var f=!1;return{start:function(){f||(L(e),s(c)?(c=c(),ee().then(h)):h())},invalidate:function(){f=!1},end:function(){d&&(u(),d=!1)}}}(t,ye,{x:50*e.direction,duration:180,delay:90})),o.start()}),a=!0)},o:function(e){o&&o.invalidate(),i=function(e,t,o){var i,a=t(e,o),d=!0,l=ne;function u(){var t=a.delay;void 0===t&&(t=0);var o=a.duration;void 0===o&&(o=300);var s=a.easing;void 0===s&&(s=r);var u=a.tick;void 0===u&&(u=n);var h=a.css;h&&(i=H(e,1,0,o,t,s,h));var f=g()+t,v=f+o;Q(function(){return te(e,!1,"start")}),$(function(t){if(d){if(t>=v)return u(0,1),te(e,!1,"end"),--l.r||c(l.c),!1;if(t>=f){var n=s((t-f)/o);u(1-n,n)}}return d})}return l.r+=1,s(a)?ee().then(function(){a=a(),u()}):u(),{end:function(t){t&&a.tick&&a.tick(1,0),d&&(i&&L(e,i),d=!1)}}}(t,me,{duration:180}),a=!1},d:function(e){e&&D(t),_(l,e),e&&i&&i.end()}}}function Me(e,t,n){var r=P(),o=t.days,i=t.selected,a=t.start,c=t.end,s=t.highlighted,d=t.shouldShakeDate,l=t.direction;return e.$set=function(e){"days"in e&&n("days",o=e.days),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",a=e.start),"end"in e&&n("end",c=e.end),"highlighted"in e&&n("highlighted",s=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate),"direction"in e&&n("direction",l=e.direction)},{dispatch:r,days:o,selected:i,start:a,end:c,highlighted:s,shouldShakeDate:d,direction:l,click_handler:function(e){var t=e.day;return r("dateSelected",t.date)}}}var De=function(e){function t(t){e.call(this),ue(this,t,Me,ke,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he);function _e(e,t,n){var r=Object.create(e);return r.week=t[n],r}function we(e,t){var n,r,o=new De({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction}});return o.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),o.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(o,e,t),r=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),o.$set(n)},i:function(e){r||(oe(o.$$.fragment,e),r=!0)},o:function(e){ie(o.$$.fragment,e),r=!1},d:function(e){e&&D(n),le(o,e)}}}function Se(e){for(var t,n,r=[],o=new Map,i=e.visibleMonth.weeks,a=function(e){return e.week.id},s=0;sy.get(x)?(D.add(O),_(w)):(M.add(x),h--):(s(S,a),h--)}for(;h--;){var C=e[h];m.has(C.key)||s(C,a)}for(;f;)_(p[f-1]);return p}(r,e,a,1,n,i,o,t,ce,we,null,_e),ne.r||c(ne.c),ne=ne.p},i:function(e){if(!n){for(var t=0;t',i=O(),a=w("div"),s=S(p),d=O(),l=S(e.year),u=O(),(h=w("div")).innerHTML='',f=O(),v=w("div");for(var n=0;n=a.getMonth())&&(!o||n<=c.getMonth())})}))}},{dispatch:o,month:i,start:a,end:c,year:s,canIncrementMonth:d,canDecrementMonth:l,monthSelectorOpen:u,availableMonths:r,toggleMonthSelectorOpen:h,monthSelected:f,click_handler:function(){return o("incrementMonth",-1)},click_handler_1:function(){return o("incrementMonth",1)},click_handler_2:function(e,t){return f(t,e.index)}}}var Ae=function(e){function t(t){e.call(this),ue(this,t,Te,Fe,d,["month","start","end","year","canIncrementMonth","canDecrementMonth"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he),He=ae.window,Le=function(){return{}},We=function(){return{}},Je=function(){return{}},Pe=function(){return{}};function Ne(e){var t,n,r,o,i,a,s,d;Q(e.onwindowresize);var f=e.$$slots.trigger,v=l(f,e,Pe),g=e.$$slots.contents,p=l(g,e,We);return{c:function(){t=w("div"),n=w("div"),v&&v.c(),r=O(),o=w("div"),i=w("div"),a=w("div"),p&&p.c(),C(n,"class","trigger"),C(a,"class","contents-inner svelte-1wmex1c"),C(i,"class","contents svelte-1wmex1c"),C(o,"class","contents-wrapper svelte-1wmex1c"),E(o,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),j(o,"visible",e.open),j(o,"shrink",e.shrink),C(t,"class","sc-popover svelte-1wmex1c"),d=[x(He,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){v&&v.l(div0_nodes),p&&p.l(div1_nodes)},m:function(c,d){M(c,t,d),k(t,n),v&&v.m(n,null),e.div0_binding(n),k(t,r),k(t,o),k(o,i),k(i,a),p&&p.m(a,null),e.div2_binding(i),e.div3_binding(o),e.div4_binding(t),s=!0},p:function(e,t){v&&v.p&&e.$$scope&&v.p(h(f,t,e,Je),u(f,t,Pe)),p&&p.p&&e.$$scope&&p.p(h(g,t,e,Le),u(g,t,We)),(!s||e.translateX||e.translateY)&&E(o,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&j(o,"visible",t.open),e.shrink&&j(o,"shrink",t.shrink)},i:function(e){s||(oe(v,e),oe(p,e),s=!0)},o:function(e){ie(v,e),ie(p,e),s=!1},d:function(n){n&&D(t),v&&v.d(n),e.div0_binding(null),p&&p.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),c(d)}}}function qe(e,t,n){var r,o,i,a,c,s=P(),d=0,l=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,f=t.trigger,v=function(){var e,t,r;n("shrink",h=!0),t="animationend",r=function(){n("shrink",h=!1),n("open",u=!1),s("closed")},(e=a).addEventListener(t,function n(){r.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===r)return}while(t=t.parentNode);v()}}J(function(){if(document.addEventListener("click",g),f)return i.appendChild(f.parentNode.removeChild(f)),function(){document.removeEventListener("click",g)}});var p=async function(){u||n("open",u=!0),await(K(),B);var e=c.getBoundingClientRect();return{top:e.top+-1*d,bottom:window.innerHeight-e.bottom+d,left:e.left+-1*l,right:document.body.clientWidth-e.right+l}},m=t.$$slots;void 0===m&&(m={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",f=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:r,w:o,triggerContainer:i,contentsAnimated:a,contentsWrapper:c,translateY:d,translateX:l,open:u,shrink:h,trigger:f,close:v,doOpen:async function(){var e=await async function(){var e,t=await p();return e=o<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,r=e.y;n("translateX",l=t),n("translateY",d=r),n("open",u=!0),s("opened")},onwindowresize:function(){o=He.innerWidth,n("w",o)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",i=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",a=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",r=e)})},$$slots:m,$$scope:y}}var ze=function(e){function t(t){e.call(this),ue(this,t,qe,Ne,d,["open","shrink","trigger","close"])}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={close:{configurable:!0}};return n.close.get=function(){return this.$$.ctx.close},Object.defineProperties(t.prototype,n),t}(he),Re=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Xe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Be={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ge=[{key:"d",method:function(e){return Xe(e.getDate(),2)}},{key:"D",method:function(e){return Xe(Be.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Be.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Be.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Xe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Xe(Be.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Xe(e.getFullYear(),2,!0)}}],Ke=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Xe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Xe(e.getHours(),2)}},{key:"i",method:function(e){return Xe(e.getMinutes(),2)}},{key:"s",method:function(e){return Xe(e.getSeconds(),2)}}],Qe=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ge.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Re(t,n.key,n.method(e)))}),Ke.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Re(t,n.key,n.method(e)))}),t},Ue={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},Ve=Object.keys(Ue).map(function(e){return Ue[e]});function Ze(e,t,n){var r=Object.create(e);return r.day=t[n],r}function et(e){var t,n;return{c:function(){t=w("button"),n=S(e.formattedSelected),C(t,"class","calendar-button svelte-1rg21xy"),C(t,"type","button")},m:function(e,r){M(e,t,r),k(t,n)},p:function(e,t){e.formattedSelected&&I(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function tt(e){var t,n,r=e.$$slots.default,o=l(r,e,null),i=!e.trigger&&et(e);return{c:function(){t=w("div"),o||i&&i.c(),o&&o.c(),C(t,"slot","trigger"),C(t,"class","svelte-1rg21xy")},l:function(e){o&&o.l(div_nodes)},m:function(e,r){M(e,t,r),o?o.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){o||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=et(n)).c(),i.m(t,null))),o&&o.p&&e.$$scope&&o.p(h(r,n,e,null),u(r,n,null))},i:function(e){n||(oe(o,e),n=!0)},o:function(e){ie(o,e),n=!1},d:function(e){e&&D(t),o||i&&i.d(),o&&o.d(e)}}}function nt(e){var t,r,o=e.day.abbrev;return{c:function(){t=w("span"),r=S(o),C(t,"class","svelte-1rg21xy")},m:function(e,n){M(e,t,n),k(t,r)},p:n,d:function(e){e&&D(t)}}}function rt(e){var t,n,r,o,i,a,c=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth}});c.$on("monthSelected",e.monthSelected_handler),c.$on("incrementMonth",e.incrementMonth_handler);for(var s=Ie,d=[],l=0;l0&&v>T?D(1,v.getDate()):e<0&&v0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof a?a(d):Qe(d,a))},{popover:r,format:a,start:c,end:s,selected:d,dateChosen:l,trigger:u,selectableCallback:h,highlighted:v,shouldShakeDate:g,month:p,year:m,isOpen:y,isClosing:b,formattedSelected:k,changeMonth:M,incrementMonth:D,registerSelection:O,registerClose:C,registerOpen:function(){n("highlighted",v=new Date(d)),n("month",p=d.getMonth()),n("year",m=d.getFullYear()),document.addEventListener("keydown",x),o("open")},visibleMonth:Y,visibleMonthId:F,canIncrementMonth:H,canDecrementMonth:L,monthSelected_handler:function(e){return M(e.detail)},incrementMonth_handler:function(e){return D(e.detail)},dateSelected_handler:function(e){return O(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",r=e)})},popover_1_open_binding:function(e){n("isOpen",y=e)},popover_1_shrink_binding:function(e){n("isClosing",b=e)},$$slots:E,$$scope:W}}var ct=function(e){function t(t){e.call(this),ue(this,t,at,it,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he);return t(),ct}(); +var SvelteCalendar=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(b)}function k(e){var t;return y||(y=!0,v(b)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode.removeChild(e)}function D(e,t){for(var n=0;n>>0}(h)+"_"+s;if(!j[p]){if(!f){var g=x("style");document.head.appendChild(g),f=g.sheet}j[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",W+=1,p}function Y(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--W&&v(function(){if(!W){for(var e=f.cssRules.length;e--;)f.deleteRule(e);j={}}})}function F(e){I=e}function A(e){(function(){if(!I)throw new Error("Function called outside component initialization");return I})().$$.on_mount.push(e)}function L(){var e=I;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=H(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var J,q=[],z=[],R=[],X=[],G=Promise.resolve(),K=!1;function Q(){K||(K=!0,G.then(Z))}function U(e){R.push(e)}function V(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();F(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var i=t.x;void 0===i&&(i=0);var c=t.y;void 0===c&&(c=0);var s=t.opacity;void 0===s&&(s=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.transform,u=l*(1-s);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*i+"px, "+(1-e)*c+"px);\n\t\t\topacity: "+(l-u*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Me(e){var t,n,o,r,c,s=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=x("div"),n=x("button"),o=E(s),r=S(),_(n,"class","day--label svelte-5wjnn4"),_(n,"type","button"),T(n,"selected",ve(e.day.date,e.selected)),T(n,"highlighted",ve(e.day.date,e.highlighted)),T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),T(n,"disabled",!e.day.selectable),i(n,ke,28,6,706),_(t,"class","day svelte-5wjnn4"),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable),i(t,ke,22,4,541),c=P(n,"click",a)},m:function(e,i){M(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(r,i){e=i,r.days&&s!==(s=e.day.date.getDate())&&B(o,s),(r.areDatesEquivalent||r.days||r.selected)&&T(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&T(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&T(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(T(n,"disabled",!e.day.selectable),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable))},d:function(e){e&&C(t),c()}}}function Ce(e){for(var t,r,c,s,d=e.days,u=[],h=0;h=g)return h(1,0),ne(e,!0,"end"),u(),a=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return a})}var p=!1;return{start:function(){p||(Y(e),l(s)?(s=s(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){a&&(u(),a=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),s=!0)},o:function(e){r&&r.invalidate(),c=function(e,t,r){var i,c=t(e,r),s=!0,d=oe;function u(){var t=c.delay;void 0===t&&(t=0);var r=c.duration;void 0===r&&(r=300);var l=c.easing;void 0===l&&(l=o);var u=c.tick;void 0===u&&(u=n);var h=c.css;h&&(i=N(e,1,0,r,t,l,h));var p=m()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(s){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return s})}return d.r+=1,l(c)?te().then(function(){c=c(),u()}):u(),{end:function(t){t&&c.tick&&c.tick(1,0),s&&(i&&Y(e,i),s=!1)}}}(t,ye,{duration:180}),s=!1},d:function(e){e&&C(t),D(u,e),e&&c&&c.end()}}}function De(e,t,n){var o=L(),r=t.days,i=t.selected,c=t.start,s=t.end,a=t.highlighted,l=t.shouldShakeDate,d=t.direction,u=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){u.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",a=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:i,start:c,end:s,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var xe=function(e){function t(t){e.call(this,t),he(this,t,De,Ce,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ee="src\\Components\\Month.svelte";function Se(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Pe(e,t){var n,o,r=new xe({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=E(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(ie(r.$$.fragment,e),o=!0)},o:function(e){ce(r.$$.fragment,e),o=!1},d:function(e){e&&C(n),ue(r,e)}}}function _e(e){for(var t,n,o=[],r=new Map,c=e.visibleMonth.weeks,s=function(e){return e.week.id},l=0;lw.get(S)?(M.add(E),C(D)):($.add(S),h--):(a(x,c),h--)}for(;h--;){var P=e[h];v.has(P.key)||a(P,c)}for(;p;)C(m[p-1]);return m}(o,e,s,1,n,i,r,t,ae,Pe,null,Se),oe.r||a(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",i=e.visibleMonth),"selected"in e&&n("selected",c=e.selected),"start"in e&&n("start",s=e.start),"end"in e&&n("end",a=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=u was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Te=[{name:"January",abbrev:"Jan"},{name:"February",abbrev:"Feb"},{name:"March",abbrev:"Mar"},{name:"April",abbrev:"Apr"},{name:"May",abbrev:"May"},{name:"June",abbrev:"Jun"},{name:"July",abbrev:"Jul"},{name:"August",abbrev:"Aug"},{name:"September",abbrev:"Sep"},{name:"October",abbrev:"Oct"},{name:"November",abbrev:"Nov"},{name:"December",abbrev:"Dec"}],He=[{name:"Sunday",abbrev:"Sun"},{name:"Monday",abbrev:"Mon"},{name:"Tuesday",abbrev:"Tue"},{name:"Wednesday",abbrev:"Wed"},{name:"Thursday",abbrev:"Thu"},{name:"Friday",abbrev:"Fri"},{name:"Saturday",abbrev:"Sat"}],Ie=se.Object,We="src\\Components\\NavBar.svelte";function je(e,t,n){var o=Ie.create(e);return o.monthDefinition=t[n],o.index=n,o}function Ne(e){var t,n,o,r,c,s=e.monthDefinition.abbrev;function a(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=x("div"),n=x("span"),o=E(s),r=S(),_(n,"class","svelte-1uccyem"),i(n,We,66,8,1915),_(t,"class","month-selector--month svelte-1uccyem"),T(t,"selected",e.index===e.month),T(t,"selectable",e.monthDefinition.selectable),i(t,We,60,6,1705),c=P(t,"click",a)},m:function(e,i){M(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&s!==(s=e.monthDefinition.abbrev)&&B(o,s),n.month&&T(t,"selected",e.index===e.month),n.availableMonths&&T(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&C(t),c()}}}function Ye(e){for(var t,o,r,c,s,l,d,u,h,p,f,g,m,v,w,y=Te[e.month].name,b=e.availableMonths,k=[],O=0;O was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",i=e.month),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"year"in e&&n("year",a=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1}),e.start||e.year||e.end){var t=c.getFullYear()===a,r=s.getFullYear()===a;n("availableMonths",o=Te.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=c.getMonth())&&(!r||n<=s.getMonth())})}))}},{dispatch:r,month:i,start:c,end:s,year:a,canIncrementMonth:l,canDecrementMonth:d,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:h,monthSelected:p,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return p(t,e.index)}}}var Ae=function(e){function t(t){e.call(this,t),he(this,t,Fe,Ye,d,["month","start","end","year","canIncrementMonth","canDecrementMonth"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Le=se.window,Je="src\\Components\\Popover.svelte",qe=function(){return{}},ze=function(){return{}},Re=function(){return{}},Xe=function(){return{}};function Ge(e){var t,n,o,r,c,s,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Xe),m=e.$$slots.contents,v=u(m,e,ze);return{c:function(){t=x("div"),n=x("div"),g&&g.c(),o=S(),r=x("div"),c=x("div"),s=x("div"),v&&v.c(),_(n,"class","trigger"),i(n,Je,102,2,2332),_(s,"class","contents-inner svelte-1wmex1c"),i(s,Je,113,6,2730),_(c,"class","contents svelte-1wmex1c"),i(c,Je,112,4,2671),_(r,"class","contents-wrapper svelte-1wmex1c"),O(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),T(r,"visible",e.open),T(r,"shrink",e.shrink),i(r,Je,106,2,2454),_(t,"class","sc-popover svelte-1wmex1c"),i(t,Je,101,0,2284),d=[P(Le,"resize",e.onwindowresize),P(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(i,a){M(i,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,c),$(c,s),v&&v.m(s,null),e.div2_binding(c),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,Re),h(f,t,Xe)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,qe),h(m,t,ze)),(!l||e.translateX||e.translateY)&&O(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&T(r,"visible",t.open),e.shrink&&T(r,"shrink",t.shrink)},i:function(e){l||(ie(g,e),ie(v,e),l=!0)},o:function(e){ce(g,e),ce(v,e),l=!1},d:function(n){n&&C(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Ke(e,t,n){var o,r,i,c,s,a=L(),l=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),a("closed")},(e=c).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return i.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(Q(),G);var e=s.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var y=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",y=e.$$scope)},{popover:o,w:r,triggerContainer:i,contentsAnimated:c,contentsWrapper:s,translateY:l,translateX:d,open:u,shrink:h,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",u=!0),a("opened")},onwindowresize:function(){r=Le.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",i=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",c=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",s=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:y}}var Qe=function(e){function t(t){e.call(this,t),he(this,t,Ke,Ge,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ue=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Ve=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ze={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},et=[{key:"d",method:function(e){return Ve(e.getDate(),2)}},{key:"D",method:function(e){return Ve(Ze.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ze.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Ze.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Ve(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ve(Ze.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Ve(e.getFullYear(),2,!0)}}],tt=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Ve(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Ve(e.getHours(),2)}},{key:"i",method:function(e){return Ve(e.getMinutes(),2)}},{key:"s",method:function(e){return Ve(e.getSeconds(),2)}}],nt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ue(t,n.key,n.method(e)))}),tt.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ue(t,n.key,n.method(e)))}),t},ot={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},rt=Object.keys(ot).map(function(e){return ot[e]}),it="src\\Components\\Datepicker.svelte";function ct(e,t,n){var o=Object.create(e);return o.day=t[n],o}function st(e){var t,n;return{c:function(){t=x("button"),n=E(e.formattedSelected),_(t,"class","calendar-button svelte-1lorc63"),_(t,"type","button"),i(t,it,228,8,6259)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&C(t)}}}function at(e){var t,n,o=e.$$slots.default,r=u(o,e,null),c=!e.trigger&&st(e);return{c:function(){t=x("div"),r||c&&c.c(),r&&r.c(),_(t,"slot","trigger"),_(t,"class","svelte-1lorc63"),i(t,it,225,4,6194)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):c&&c.m(t,null),n=!0},p:function(e,n){r||(n.trigger?c&&(c.d(1),c=null):c?c.p(e,n):((c=st(n)).c(),c.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ie(r,e),n=!0)},o:function(e){ce(r,e),n=!1},d:function(e){e&&C(t),r||c&&c.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=x("span"),o=E(r),_(t,"class","svelte-1lorc63"),i(t,it,241,10,6720)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&C(t)}}}function dt(e){var t,n,o,r,c,s,a=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});a.$on("monthSelected",e.monthSelected_handler),a.$on("incrementMonth",e.incrementMonth_handler);for(var l=He,d=[],u=0;u0&&f>X?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var F=t.$$slots;void 0===F&&(F={});var J,q,R,X,G,K,Q,U=t.$$scope;return e.$set=function(e){"format"in e&&n("format",c=e.format),"start"in e&&n("start",s=e.start),"end"in e&&n("end",a=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",u=e.trigger),"selectableCallback"in e&&n("selectableCallback",h=e.selectableCallback),"formattedSelected"in e&&n("formattedSelected",k=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",B=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",O=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",T=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",I=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",W=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",j=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",N=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",U=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",J=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],i=new Date(e.getFullYear(),e.getMonth(),1),c=me(e,t,n);i0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof c?c(l):nt(l,c))},{popover:o,format:c,start:s,end:a,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:m,year:v,isOpen:w,isClosing:y,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:E,registerClose:P,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",m=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",S),r("open")},buttonBackgroundColor:B,buttonBorderColor:O,buttonTextColor:T,highlightColor:H,dayBackgroundColor:I,dayTextColor:W,dayHighlightedBackgroundColor:j,dayHighlightedTextColor:N,visibleMonth:q,visibleMonthId:R,canIncrementMonth:K,canDecrementMonth:Q,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(e.detail)},dateSelected_handler:function(e){return E(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",w=e)},popover_1_shrink_binding:function(e){n("isClosing",y=e)},$$slots:F,$$scope:U}}var ft=function(e){function t(t){e.call(this,t),he(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),ft}(); //# sourceMappingURL=bundle.js.map diff --git a/docs/bundle.js.map b/docs/bundle.js.map index 768a03c..b55a78b 100644 --- a/docs/bundle.js.map +++ b/docs/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\r\n\r\n
\r\n \r\n
\r\n \r\n {#if !trigger}\r\n \r\n {/if}\r\n \r\n
\r\n
\r\n
\r\n changeMonth(e.detail)}\r\n on:incrementMonth={e => incrementMonth(e.detail)} />\r\n
\r\n {#each dayDict as day}\r\n {day.abbrev}\r\n {/each}\r\n
\r\n registerSelection(e.detail)} />\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format"],"mappings":"2CAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAO3B,OAAO4B,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQN,GAEhB,SAASO,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAI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,KAAKiM,EAAMS,cAAeT,EAAMR,WAAY,GACvDsL,EAAkB/K,GAAmBC,EAAOC,EAAKC,GAC9ChB,EAAO2L,GACZD,EAAO3Q,KAAK6E,GAAgBI,EAAKM,WAAYN,EAAKuB,cAAeqK,IACjE5L,EAAKuK,SAASvK,EAAKM,WAAa,GAElC,OAAOoL,EUFKG,CAAU/K,EAAOC,EAAKC,8CAIhCkJ,EAAa,GACb,IAAKzU,IAAI7D,EAAI,EAAGA,EAAI8Z,EAAO5Z,OAAQF,GAAK,EAClC8Z,EAAO9Z,GAAGiO,QAAUA,GAAS6L,EAAO9Z,GAAGkO,OAASA,kBAClDoK,EAAatY,8CAIhB6R,EAAeiI,EAAOxB,0CAEtBN,EAAiB9J,EAAOD,EAAQ,sBAChC6K,EAAkBjH,EAAapD,MAAMoD,EAAapD,MAAMvO,OAAS,GAAG0O,KAAK,GAAGR,uBAC5E2K,EAAmBlH,EAAapD,MAAM,GAAGG,KAAK,GAAGR,sDACjD2F,EAAoBuE,EAAawB,EAAO5Z,OAAS,uCACjD4T,EAAoBwE,EAAa,iDAIlCP,EAAsC,mBAAXmC,EACvBA,EAAOvJ,GACPwG,GAAWxG,EAAUuJ,sQAyH3B,2BACEtJ,EAnGO,IAAI3N,KAAK0N,cAoGhB1C,EAAQ0C,EAASjC,qBACjBR,EAAOyC,EAAShB,eAChBzK,SAASU,iBAAiB,UAAW+T,GACrC5O,EAAS"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n","\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n","\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","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VTE,SAAmBpL,EAAOC,EAAKC,kBAAqB,MACzDF,EAAMI,SAAS,EAAG,EAAG,EAAG,GACxBH,EAAIG,SAAS,EAAG,EAAG,EAAG,GAKtB,IAJA7L,IAAI8W,EAAU,IAAI1X,KAAKsM,EAAIQ,cAAeR,EAAIT,WAAa,EAAG,GAC1D4L,EAAS,GACTlM,EAAO,IAAIvL,KAAKqM,EAAMS,cAAeT,EAAMR,WAAY,GACvD8L,EAAkBvL,GAAmBC,EAAOC,EAAKC,GAC9ChB,EAAOmM,GACZD,EAAOxR,KAAKkF,GAAgBI,EAAKM,WAAYN,EAAKuB,cAAe6K,IACjEpM,EAAK+K,SAAS/K,EAAKM,WAAa,GAElC,OAAO4L,EUFKG,CAAUvL,EAAOC,EAAKC,8CAIhC0J,EAAa,GACb,IAAKrV,IAAIrE,EAAI,EAAGA,EAAIkb,EAAOhb,OAAQF,GAAK,EAClCkb,EAAOlb,GAAG6O,QAAUA,GAASqM,EAAOlb,GAAG8O,OAASA,kBAClD4K,EAAa1Z,8CAIhByS,EAAeyI,EAAOxB,0CAEtBd,EAAiB9J,EAAOD,EAAQ,sBAChCqL,EAAkBzH,EAAapD,MAAMoD,EAAapD,MAAMnP,OAAS,GAAGsP,KAAK,GAAGR,uBAC5EmL,EAAmB1H,EAAapD,MAAM,GAAGG,KAAK,GAAGR,sDACjD2F,EAAoB+E,EAAawB,EAAOhb,OAAS,uCACjDwU,EAAoBgF,EAAa,iDAIlCf,EAAsC,mBAAX2C,EACvBA,EAAO/J,GACPwG,GAAWxG,EAAU+J,sQAyH3B,2BACE9J,EAnGO,IAAI/N,KAAK8N,cAoGhB1C,EAAQ0C,EAASjC,qBACjBR,EAAOyC,EAAShB,eAChB9K,SAASU,iBAAiB,UAAW4U,GACrCzP,EAAS"} \ No newline at end of file diff --git a/docs/test.css b/docs/test.css index 7b68bd5..a61d886 100644 --- a/docs/test.css +++ b/docs/test.css @@ -1,8 +1,8 @@ h1.svelte-6e0kyu{text-align:center;margin:100px 0}.container.svelte-6e0kyu{background:#eee;padding:15px;max-width:100%;width:800px;margin:0 auto}.custom-button.svelte-6e0kyu{display:inline-block;background:rgb(0, 120, 255);color:#eee;border:1px solid rgb(0, 100, 255);text-align:center;padding:15px 30px;cursor:pointer}.text-center.svelte-6e0kyu{text-align:center}.note.svelte-6e0kyu{color:tomato} -.datepicker.svelte-1rg21xy{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1rg21xy{padding:10px 20px;border:1px solid #eee;display:block;text-align:center;width:300px;text-decoration:none;cursor:pointer;background:#fff;border-radius:7px;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1)}.svelte-1rg21xy,.svelte-1rg21xy:before,.svelte-1rg21xy:after{box-sizing:inherit}.calendar.svelte-1rg21xy{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1rg21xy{height:auto;width:340px;max-width:100%}}.legend.svelte-1rg21xy{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1rg21xy span.svelte-1rg21xy{width:14.285714%;display:inline-block;text-align:center} +.datepicker.svelte-1lorc63{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1lorc63{padding:10px 20px;border:1px solid var(--button-border-color);display:block;text-align:center;width:300px;text-decoration:none;cursor:pointer;background:var(--button-background-color);color:var(--button-text-color);border-radius:7px;box-shadow:0px 0px 3px rgba(0, 0, 0, 0.1)}.svelte-1lorc63,.svelte-1lorc63:before,.svelte-1lorc63:after{box-sizing:inherit}.calendar.svelte-1lorc63{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1lorc63{height:auto;width:340px;max-width:100%}}.legend.svelte-1lorc63{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1lorc63 span.svelte-1lorc63{width:14.285714%;display:inline-block;text-align:center} .month-container.svelte-ny3kda{width:100%;display:-ms-grid;display:grid;-ms-grid-columns:1fr;-ms-grid-rows:1fr} -.heading-section.svelte-19cv7t7{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-19cv7t7{cursor:pointer}.month-selector.svelte-19cv7t7{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-19cv7t7{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-19cv7t7{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-19cv7t7{opacity:1}.month-selector--month.selectable.svelte-19cv7t7:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-19cv7t7{background:#f7901e;color:#fff}.month-selector--month.svelte-19cv7t7:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-19cv7t7 span.svelte-19cv7t7{vertical-align:middle;display:inline-block}.control.svelte-19cv7t7{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-19cv7t7{opacity:1;cursor:pointer}.arrow.svelte-19cv7t7{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-19cv7t7{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-19cv7t7{transform:rotate(135deg);-webkit-transform:rotate(135deg)} .sc-popover.svelte-1wmex1c{position:relative}.contents-wrapper.svelte-1wmex1c{transform:translate(-50%, -50%);position:absolute;top:50%;left:50%;transition:none;z-index:2;display:none}.contents.svelte-1wmex1c{background:#fff;box-shadow:0px 10px 26px rgba(0,0,0,0.4) ;opacity:.8;padding-top:0;display:none;animation:svelte-1wmex1c-grow 200ms forwards cubic-bezier(.92,.09,.18,1.05)}.contents-inner.svelte-1wmex1c{animation:svelte-1wmex1c-fadeIn 400ms forwards}.contents-wrapper.visible.svelte-1wmex1c{display:block}.contents-wrapper.visible.svelte-1wmex1c .contents.svelte-1wmex1c{opacity:1;transform:scale(1);display:block}.contents-wrapper.shrink.svelte-1wmex1c .contents.svelte-1wmex1c{animation:svelte-1wmex1c-shrink 150ms forwards cubic-bezier(.92,.09,.18,1.05)}@keyframes svelte-1wmex1c-grow{0%{transform:scale(.9,.1);opacity:0}30%{opacity:1}100%{transform:scale(1)}}@keyframes svelte-1wmex1c-shrink{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{opacity:0;transform:scale(.9,.1)}}@keyframes svelte-1wmex1c-fadeIn{0%{opacity:0}50%{opacity:0}100%{opacity:1}} -.week.svelte-1fuvang{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-flow:row;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-1fuvang:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-1fuvang:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-1fuvang:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-1fuvang:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-1fuvang:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-1fuvang:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-1fuvang{margin:2px;color:#4a4a4a;font-weight:bold;text-align:center;font-size:16px;flex:1 0 auto;height:auto;display:flex;flex-basis:0}.day.outside-month.svelte-1fuvang,.day.is-disabled.svelte-1fuvang{opacity:0.35}.day.svelte-1fuvang:before{content:'';float:left;padding-top:100%}.day--label.svelte-1fuvang{display:flex;justify-content:center;flex-direction:column;width:100%;position:relative;border:1px solid #fff;border-radius:50%;margin:10%;padding:0;align-items:center;background:none;cursor:pointer;transition:all 100ms linear;font-weight:normal}.day--label.disabled.svelte-1fuvang{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-1fuvang,.day--label.svelte-1fuvang:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-1fuvang{animation:svelte-1fuvang-shake 0.4s 1 linear}.day--label.selected.svelte-1fuvang:hover,.day--label.selected.svelte-1fuvang,.day--label.svelte-1fuvang:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-1fuvang .day--label.svelte-1fuvang,.day.is-today.svelte-1fuvang .day--label.svelte-1fuvang:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-1fuvang-shake{0%{transform:translate(7px)}20%{transform:translate(-7px)}40%{transform:translate(3px)}60%{transform:translate(-3px)}80%{transform:translate(1px)}100%{transform:translate(0px)}} +.heading-section.svelte-1uccyem{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-1uccyem{cursor:pointer}.month-selector.svelte-1uccyem{position:absolute;top:75px;left:0;right:0;bottom:0;background-color:#fff;transition:all 300ms;transform:scale(1.2);opacity:0;visibility:hidden;z-index:1;text-align:center}.month-selector.open.svelte-1uccyem{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-1uccyem{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-1uccyem{opacity:1}.month-selector--month.selectable.svelte-1uccyem:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-1uccyem{background:var(--highlight-color);color:#fff}.month-selector--month.svelte-1uccyem:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-1uccyem span.svelte-1uccyem{vertical-align:middle;display:inline-block}.control.svelte-1uccyem{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-1uccyem{opacity:1;cursor:pointer}.arrow.svelte-1uccyem{display:inline-block;width:18px;height:18px;border-style:solid;border-color:#a9a9a9;border-width:0;border-bottom-width:2px;border-right-width:2px}.arrow.right.svelte-1uccyem{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-1uccyem{transform:rotate(135deg);-webkit-transform:rotate(135deg)} +.week.svelte-5wjnn4{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;flex-flow:row;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-5wjnn4:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-5wjnn4:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-5wjnn4:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-5wjnn4:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-5wjnn4:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-5wjnn4:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-5wjnn4{margin:2px;color:var(--day-text-color);font-weight:bold;text-align:center;font-size:16px;flex:1 0 auto;height:auto;display:flex;flex-basis:0}.day.outside-month.svelte-5wjnn4,.day.is-disabled.svelte-5wjnn4{opacity:0.35}.day.svelte-5wjnn4:before{content:'';float:left;padding-top:100%}.day--label.svelte-5wjnn4{color:var(--day-text-color);display:flex;justify-content:center;flex-direction:column;width:100%;position:relative;border:1px solid #fff;border-radius:50%;margin:10%;padding:0;align-items:center;background:var(--day-background-color);cursor:pointer;transition:all 100ms linear;font-weight:normal}.day--label.disabled.svelte-5wjnn4{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-5wjnn4,.day--label.svelte-5wjnn4:not(.disabled):hover{background:var(--day-highlighted-background-color);border-color:var(--day-highlighted-background-color);color:var(--day-highlighted-text-color)}}.day--label.shake-date.svelte-5wjnn4{animation:svelte-5wjnn4-shake 0.4s 1 linear}.day--label.selected.svelte-5wjnn4:hover,.day--label.selected.svelte-5wjnn4,.day--label.svelte-5wjnn4:active:not(.disabled){background-color:var(--highlight-color);border-color:var(--highlight-color);color:#fff}.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4,.day.is-today.svelte-5wjnn4 .day--label.svelte-5wjnn4:hover{opacity:1;background:none;border-color:var(--highlight-color);color:#000}@keyframes svelte-5wjnn4-shake{0%{transform:translate(7px)}20%{transform:translate(-7px)}40%{transform:translate(3px)}60%{transform:translate(-3px)}80%{transform:translate(1px)}100%{transform:translate(0px)}} /*# sourceMappingURL=test.css.map */ \ No newline at end of file diff --git a/docs/test.css.map b/docs/test.css.map index 1e237c9..f9239ab 100644 --- a/docs/test.css.map +++ b/docs/test.css.map @@ -5,18 +5,18 @@ "..\\src\\App.svelte", "..\\src\\Components\\Datepicker.svelte", "..\\src\\Components\\Month.svelte", - "..\\src\\Components\\NavBar.svelte", "..\\src\\Components\\Popover.svelte", + "..\\src\\Components\\NavBar.svelte", "..\\src\\Components\\Week.svelte" ], "sourcesContent": [ - "\r\n\r\n

SvelteCalendar

\r\n
\r\n\t

A lightweight date picker written with Svelte. Here is an example:

\r\n\r\n\t\r\n\t\r\n\r\n\t

This component can be used with or without the Svelte compiler.

\r\n\t
    \r\n\t\t
  • Lightweight (~8KB)
  • \r\n\t\t
  • IE11+ Compatible
  • \r\n\t\t
  • Usable as a Svelte component
  • \r\n\t\t
  • Usable with Vanilla JS / <Your Framework Here>
  • \r\n\t\t
  • Can be compiled to a native web component / custom element
  • \r\n\t\t
  • Mobile/thumb friendly
  • \r\n\t\t
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • \r\n\t
\r\n\r\n\t

Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

\r\n\r\n\t

With Svelte:

\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

Without Svelte HTML:

\r\n\t
\r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
\r\n\r\n\t

Without Svelte JS:

\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

You can confine the date selection range with start and end:

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

\r\n\r\n\t

You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

You can bind to the `dateSelected` event, which has a data property `date`:

\r\n\t\r\n\t
\r\n\t\t logChoice(e.detail.date)} />\r\n\t
\r\n
\r\n\r\n\r\n", - "\r\n\r\n
\r\n \r\n
\r\n \r\n {#if !trigger}\r\n \r\n {/if}\r\n \r\n
\r\n
\r\n
\r\n changeMonth(e.detail)}\r\n on:incrementMonth={e => incrementMonth(e.detail)} />\r\n
\r\n {#each dayDict as day}\r\n {day.abbrev}\r\n {/each}\r\n
\r\n registerSelection(e.detail)} />\r\n
\r\n
\r\n \r\n
\r\n\r\n\r\n", + "\r\n\r\n

SvelteCalendar

\r\n
\r\n\t

A lightweight date picker written with Svelte. Here is an example:

\r\n\r\n\t\r\n\t\r\n\r\n\t

This component can be used with or without the Svelte compiler.

\r\n\t
    \r\n\t\t
  • Lightweight (~8KB)
  • \r\n\t\t
  • IE11+ Compatible
  • \r\n\t\t
  • Usable as a Svelte component
  • \r\n\t\t
  • Usable with Vanilla JS / <Your Framework Here>
  • \r\n\t\t
  • Can be compiled to a native web component / custom element
  • \r\n\t\t
  • Mobile/thumb friendly
  • \r\n\t\t
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • \r\n\t
\r\n\r\n\t

Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

\r\n\r\n\t

With Svelte:

\r\n\t
\r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

Without Svelte HTML:

\r\n\t
\r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
\r\n\r\n\t

Without Svelte JS:

\r\n\t
\r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\r\n\t

You can confine the date selection range with start and end:

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

\r\n\r\n\t

You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

\r\n\r\n\t
\r\n\t\t\r\n\t
\r\n\r\n\t

You can bind to the `dateSelected` event, which has a data property `date`:

\r\n\t\r\n\t
\r\n\t\t logChoice(e.detail.date)} />\r\n\t
\r\n\r\n\t

You can theme the datepicker:

\r\n\t
\r\n\t\t\r\n\t
\r\n\t
\r\n<Datepicker \r\n  format={dateFormat} \r\n  buttonBackgroundColor='#e20074'\r\n  buttonTextColor='white'\r\n  highlightColor='#e20074'\r\n  dayBackgroundColor='#efefef'\r\n  dayTextColor='#333'\r\n  dayHighlightedBackgroundColor='#e20074'\r\n  dayHighlightedTextColor='#fff'\r\n/>\r\n\t
\r\n
\r\n\r\n\r\n", + "\n\n
\n \n
\n \n {#if !trigger}\n \n {/if}\n \n
\n
\n
\n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
\n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
\n registerSelection(e.detail)} />\n
\n
\n \n
\n\n\n", "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
\n\n\n", - "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", "\r\n\r\n\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n\r\n", - "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" + "\r\n\r\n
\r\n
\r\n
dispatch('incrementMonth', -1)}>\r\n \r\n
\r\n
\r\n {monthDict[month].name} {year}\r\n
\r\n
dispatch('incrementMonth', 1)}>\r\n \r\n
\r\n
\r\n
\r\n {#each availableMonths as monthDefinition, index}\r\n
monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
\r\n {/each}\r\n
\r\n
\r\n\r\n\r\n", + "\r\n\r\n
\r\n {#each days as day}\r\n
\r\n \r\n
\r\n {/each}\r\n
\r\n\r\n\r\n" ], "names": [],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AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,AACnC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AAClC,IAAI,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACrC,CAAC" } \ No newline at end of file diff --git a/docs/test.js b/docs/test.js index 8c31860..c7ab979 100644 --- a/docs/test.js +++ b/docs/test.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&m(y)}function $(e){var t;return b||(b=!0,m(y)),{promise:new Promise(function(n){p.add(t=[e,n])}),abort:function(){p.delete(t)}}}function k(e,t){e.appendChild(t)}function M(e,t,n){e.insertBefore(t,n||null)}function w(e){e.parentNode.removeChild(e)}function D(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!H[v]){if(!f){var g=S("style");document.head.appendChild(g),f=g.sheet}H[v]=!0,f.insertRule("@keyframes "+v+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+v+" "+o+"ms linear "+r+"ms 1 both",Y+=1,v}function L(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--Y&&m(function(){if(!Y){for(var e=f.cssRules.length;e--;)f.deleteRule(e);H={}}})}function A(e){j=e}function P(e){(function(){if(!j)throw new Error("Function called outside component initialization");return j})().$$.on_mount.push(e)}function J(){var e=j;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=E(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var N,q=[],z=[],B=[],R=[],X=Promise.resolve(),U=!1;function K(){U||(U=!0,X.then(Q))}function G(e){B.push(e)}function V(e){R.push(e)}function Q(){var e=new Set;do{for(;q.length;){var t=q.shift();A(t),Z(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ge=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function me(e){var t=e-1;return t*t*t+1}function pe(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=me);var a=t.x;void 0===a&&(a=0);var i=t.y;void 0===i&&(i=0);var c=t.opacity;void 0===c&&(c=0);var l=getComputedStyle(e),s=+l.opacity,d="none"===l.transform?"":l.transform,u=s*(1-c);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*a+"px, "+(1-e)*i+"px);\n\t\t\topacity: "+(s-u*t)}}}function ye(e,t,n){var o=Object.create(e);return o.day=t[n],o}function $e(e){var t,n,o,r,a,i=e.day.date.getDate();function c(){return e.click_handler(e)}return{c:function(){t=S("div"),n=S("button"),o=_(i),r=C(),O(n,"class","day--label svelte-1fuvang"),O(n,"type","button"),T(n,"selected",ge(e.day.date,e.selected)),T(n,"highlighted",ge(e.day.date,e.highlighted)),T(n,"shake-date",e.shouldShakeDate&&ge(e.day.date,e.shouldShakeDate)),T(n,"disabled",!e.day.selectable),O(t,"class","day svelte-1fuvang"),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable),a=x(n,"click",c)},m:function(e,a){M(e,t,a),k(t,n),k(n,o),k(t,r)},p:function(r,a){e=a,r.days&&i!==(i=e.day.date.getDate())&&F(o,i),(r.areDatesEquivalent||r.days||r.selected)&&T(n,"selected",ge(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&T(n,"highlighted",ge(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&T(n,"shake-date",e.shouldShakeDate&&ge(e.day.date,e.shouldShakeDate)),r.days&&(T(n,"disabled",!e.day.selectable),T(t,"outside-month",!e.day.partOfMonth),T(t,"is-today",e.day.isToday),T(t,"is-disabled",!e.day.selectable))},d:function(e){e&&w(t),a()}}}function ke(e){for(var t,r,a,i,s=e.days,d=[],u=0;u=m)return h(1,0),te(e,!0,"end"),u(),s=!1;if(t>=v){var n=l((t-v)/r);h(n,1-n)}}return s})}var f=!1;return{start:function(){f||(L(e),l(c)?(c=c(),ee().then(h)):h())},invalidate:function(){f=!1},end:function(){s&&(u(),s=!1)}}}(t,be,{x:50*e.direction,duration:180,delay:90})),r.start()}),i=!0)},o:function(e){r&&r.invalidate(),a=function(e,t,r){var a,i=t(e,r),s=!0,d=ne;function u(){var t=i.delay;void 0===t&&(t=0);var r=i.duration;void 0===r&&(r=300);var l=i.easing;void 0===l&&(l=o);var u=i.tick;void 0===u&&(u=n);var h=i.css;h&&(a=W(e,1,0,r,t,l,h));var f=g()+t,v=f+r;G(function(){return te(e,!1,"start")}),$(function(t){if(s){if(t>=v)return u(0,1),te(e,!1,"end"),--d.r||c(d.c),!1;if(t>=f){var n=l((t-f)/r);u(1-n,n)}}return s})}return d.r+=1,l(i)?ee().then(function(){i=i(),u()}):u(),{end:function(t){t&&i.tick&&i.tick(1,0),s&&(a&&L(e,a),s=!1)}}}(t,pe,{duration:180}),i=!1},d:function(e){e&&w(t),D(d,e),e&&a&&a.end()}}}function Me(e,t,n){var o=J(),r=t.days,a=t.selected,i=t.start,c=t.end,l=t.highlighted,s=t.shouldShakeDate,d=t.direction;return e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",a=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",c=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",s=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:a,start:i,end:c,highlighted:l,shouldShakeDate:s,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var we=function(e){function t(t){e.call(this),ue(this,t,Me,ke,s,["days","selected","start","end","highlighted","shouldShakeDate","direction"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he);function De(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Se(e,t){var n,o,r=new we({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction}});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=_(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),se(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(re(r.$$.fragment,e),o=!0)},o:function(e){ae(r.$$.fragment,e),o=!1},d:function(e){e&&w(n),de(r,e)}}}function _e(e){for(var t,n,o=[],r=new Map,a=e.visibleMonth.weeks,i=function(e){return e.week.id},l=0;lb.get(x)?(w.add(C),D(S)):(M.add(x),h--):(l(_,i),h--)}for(;h--;){var O=e[h];p.has(O.key)||l(O,i)}for(;f;)D(m[f-1]);return m}(o,e,i,1,n,a,r,t,ce,Se,null,De),ne.r||c(ne.c),ne=ne.p},i:function(e){if(!n){for(var t=0;t',a=C(),i=S("div"),l=_(m),s=C(),d=_(e.year),u=C(),(h=S("div")).innerHTML='',f=C(),v=S("div");for(var n=0;n=i.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:a,start:i,end:c,year:l,canIncrementMonth:s,canDecrementMonth:d,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:h,monthSelected:f,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return f(t,e.index)}}}var He=function(e){function t(t){e.call(this),ue(this,t,Ye,je,s,["month","start","end","year","canIncrementMonth","canDecrementMonth"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he),We=ie.window,Le=function(){return{}},Ae=function(){return{}},Pe=function(){return{}},Je=function(){return{}};function Ne(e){var t,n,o,r,a,i,l,s;G(e.onwindowresize);var f=e.$$slots.trigger,v=d(f,e,Je),g=e.$$slots.contents,m=d(g,e,Ae);return{c:function(){t=S("div"),n=S("div"),v&&v.c(),o=C(),r=S("div"),a=S("div"),i=S("div"),m&&m.c(),O(n,"class","trigger"),O(i,"class","contents-inner svelte-1wmex1c"),O(a,"class","contents svelte-1wmex1c"),O(r,"class","contents-wrapper svelte-1wmex1c"),I(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),T(r,"visible",e.open),T(r,"shrink",e.shrink),O(t,"class","sc-popover svelte-1wmex1c"),s=[x(We,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){v&&v.l(div0_nodes),m&&m.l(div1_nodes)},m:function(c,s){M(c,t,s),k(t,n),v&&v.m(n,null),e.div0_binding(n),k(t,o),k(t,r),k(r,a),k(a,i),m&&m.m(i,null),e.div2_binding(a),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){v&&v.p&&e.$$scope&&v.p(h(f,t,e,Pe),u(f,t,Je)),m&&m.p&&e.$$scope&&m.p(h(g,t,e,Le),u(g,t,Ae)),(!l||e.translateX||e.translateY)&&I(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&T(r,"visible",t.open),e.shrink&&T(r,"shrink",t.shrink)},i:function(e){l||(re(v,e),re(m,e),l=!0)},o:function(e){ae(v,e),ae(m,e),l=!1},d:function(n){n&&w(t),v&&v.d(n),e.div0_binding(null),m&&m.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),c(s)}}}function qe(e,t,n){var o,r,a,i,c,l=J(),s=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,f=t.trigger,v=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),l("closed")},(e=i).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);v()}}P(function(){if(document.addEventListener("click",g),f)return a.appendChild(f.parentNode.removeChild(f)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(K(),X);var e=c.getBoundingClientRect();return{top:e.top+-1*s,bottom:window.innerHeight-e.bottom+s,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},p=t.$$slots;void 0===p&&(p={});var b=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",f=e.trigger),"$$scope"in e&&n("$$scope",b=e.$$scope)},{popover:o,w:r,triggerContainer:a,contentsAnimated:i,contentsWrapper:c,translateY:s,translateX:d,open:u,shrink:h,trigger:f,close:v,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",s=o),n("open",u=!0),l("opened")},onwindowresize:function(){r=We.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",a=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",i=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:p,$$scope:b}}var ze=function(e){function t(t){e.call(this),ue(this,t,qe,Ne,s,["open","shrink","trigger","close"])}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={close:{configurable:!0}};return n.close.get=function(){return this.$$.ctx.close},Object.defineProperties(t.prototype,n),t}(he),Be=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Re=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Xe={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ue=[{key:"d",method:function(e){return Re(e.getDate(),2)}},{key:"D",method:function(e){return Re(Xe.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Xe.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Xe.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Re(e.getMonth()+1,2)}},{key:"M",method:function(e){return Re(Xe.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Re(e.getFullYear(),2,!0)}}],Ke=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Re(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Re(e.getHours(),2)}},{key:"i",method:function(e){return Re(e.getMinutes(),2)}},{key:"s",method:function(e){return Re(e.getSeconds(),2)}}],Ge=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ue.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Be(t,n.key,n.method(e)))}),Ke.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Be(t,n.key,n.method(e)))}),t},Ve={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},Qe=Object.keys(Ve).map(function(e){return Ve[e]});function Ze(e,t,n){var o=Object.create(e);return o.day=t[n],o}function et(e){var t,n;return{c:function(){t=S("button"),n=_(e.formattedSelected),O(t,"class","calendar-button svelte-1rg21xy"),O(t,"type","button")},m:function(e,o){M(e,t,o),k(t,n)},p:function(e,t){e.formattedSelected&&F(n,t.formattedSelected)},d:function(e){e&&w(t)}}}function tt(e){var t,n,o=e.$$slots.default,r=d(o,e,null),a=!e.trigger&&et(e);return{c:function(){t=S("div"),r||a&&a.c(),r&&r.c(),O(t,"slot","trigger"),O(t,"class","svelte-1rg21xy")},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):a&&a.m(t,null),n=!0},p:function(e,n){r||(n.trigger?a&&(a.d(1),a=null):a?a.p(e,n):((a=et(n)).c(),a.m(t,null))),r&&r.p&&e.$$scope&&r.p(h(o,n,e,null),u(o,n,null))},i:function(e){n||(re(r,e),n=!0)},o:function(e){ae(r,e),n=!1},d:function(e){e&&w(t),r||a&&a.d(),r&&r.d(e)}}}function nt(e){var t,o,r=e.day.abbrev;return{c:function(){t=S("span"),o=_(r),O(t,"class","svelte-1rg21xy")},m:function(e,n){M(e,t,n),k(t,o)},p:n,d:function(e){e&&w(t)}}}function ot(e){var t,n,o,r,a,i,c=new He({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth}});c.$on("monthSelected",e.monthSelected_handler),c.$on("incrementMonth",e.incrementMonth_handler);for(var l=Fe,s=[],d=0;d0&&v>Y?w(1,v.getDate()):e<0&&v0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof i?i(s):Ge(s,i))},{popover:o,format:i,start:c,end:l,selected:s,dateChosen:d,trigger:u,selectableCallback:h,highlighted:v,shouldShakeDate:g,month:m,year:p,isOpen:b,isClosing:y,formattedSelected:k,changeMonth:M,incrementMonth:w,registerSelection:C,registerClose:O,registerOpen:function(){n("highlighted",v=new Date(s)),n("month",m=s.getMonth()),n("year",p=s.getFullYear()),document.addEventListener("keydown",x),r("open")},visibleMonth:E,visibleMonthId:j,canIncrementMonth:W,canDecrementMonth:L,monthSelected_handler:function(e){return M(e.detail)},incrementMonth_handler:function(e){return w(e.detail)},dateSelected_handler:function(e){return C(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",b=e)},popover_1_shrink_binding:function(e){n("isClosing",y=e)},$$slots:I,$$scope:A}}var ct=function(e){function t(t){e.call(this),ue(this,t,it,at,s,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he);function lt(e){var t;return{c:function(){t=_("Pick a date")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&w(t)}}}function st(e){var t,n;return{c:function(){t=_("Chosen: "),n=_(e.formattedSelected)},m:function(e,o){M(e,t,o),M(e,n,o)},p:function(e,t){e.formattedSelected&&F(n,t.formattedSelected)},d:function(e){e&&(w(t),w(n))}}}function dt(e){var t;function n(e){return e.dateChosen?st:lt}var o=n(e),r=o(e);return{c:function(){t=S("button"),r.c(),O(t,"class","custom-button svelte-6e0kyu")},m:function(e,n){M(e,t,n),r.m(t,null)},p:function(e,a){o===(o=n(a))&&r?r.p(e,a):(r.d(1),(r=o(a))&&(r.c(),r.m(t,null)))},d:function(e){e&&w(t),r.d()}}}function ut(e){var t;return{c:function(){t=_("Custom Button")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&w(t)}}}function ht(e){var t;return{c:function(){t=_(e.exampleFormatted)},m:function(e,n){M(e,t,n)},p:function(e,n){e.exampleFormatted&&F(t,n.exampleFormatted)},d:function(e){e&&w(t)}}}function ft(e){var t;function n(e){return e.exampleChosen?ht:ut}var o=n(e),r=o(e);return{c:function(){t=S("button"),r.c(),O(t,"id","test")},m:function(e,n){M(e,t,n),r.m(t,null)},p:function(e,a){o===(o=n(a))&&r?r.p(e,a):(r.d(1),(r=o(a))&&(r.c(),r.m(t,null)))},d:function(e){e&&w(t),r.d()}}}function vt(e){var t,n,o,r,a,i,c,l,s,d,u,h,f,v,g,m,p,b,y,$,D,x,F,I,T,E,j,Y,H,W,L,A,P,J,N,q,B,R,X,U,K,G,Q,Z,ee,te,ne,oe,ie,ce,ue=new ct({props:{format:gt}});function he(t){e.datepicker1_formattedSelected_binding.call(null,t),x=!0,V(function(){return x=!1})}function fe(t){e.datepicker1_dateChosen_binding.call(null,t),F=!0,V(function(){return F=!1})}var ve={format:gt,$$slots:{default:[dt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(ve.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(ve.dateChosen=e.dateChosen);var ge=new ct({props:ve});function me(t){e.datepicker2_formattedSelected_binding.call(null,t),J=!0,V(function(){return J=!1})}function pe(t){e.datepicker2_dateChosen_binding.call(null,t),N=!0,V(function(){return N=!1})}z.push(function(){return le(ge,"formattedSelected",he)}),z.push(function(){return le(ge,"dateChosen",fe)});var be={$$slots:{default:[ft]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(be.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(be.dateChosen=e.exampleChosen);var ye=new ct({props:be});z.push(function(){return le(ye,"formattedSelected",me)}),z.push(function(){return le(ye,"dateChosen",pe)});var $e=new ct({props:{format:gt,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback}}),ke=new ct({props:{format:gt,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback}}),Me=new ct({props:{format:gt}});return Me.$on("dateSelected",e.dateSelected_handler),{c:function(){(t=S("h1")).textContent="SvelteCalendar",n=C(),o=S("div"),(r=S("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",a=C(),ue.$$.fragment.c(),i=C(),(c=S("p")).textContent="This component can be used with or without the Svelte compiler.",l=C(),(s=S("ul")).innerHTML="
  • Lightweight (~8KB)
  • IE11+ Compatible
  • Usable as a Svelte component
  • Usable with Vanilla JS / <Your Framework Here>
  • Can be compiled to a native web component / custom element
  • Mobile/thumb friendly
  • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
  • ",d=C(),(u=S("p")).textContent="Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:",h=C(),(f=S("h4")).textContent="With Svelte:",v=C(),g=S("pre"),m=S("code"),p=_("\r\n \r\n"),$=C(),D=S("div"),ge.$$.fragment.c(),I=C(),(T=S("h4")).textContent="Without Svelte HTML:",E=C(),(j=S("pre")).innerHTML="\n\t\t\t<div class='button-container'>\n\t\t\t <button id='test'>My Custom Button</button>\n\t\t\t</div>\n\t\t\t\t",Y=C(),(H=S("h4")).textContent="Without Svelte JS:",W=C(),(L=S("pre")).innerHTML="\n\t\t\tvar trigger = document.getElementById('test');\n\t\t\tvar cal = new SvelteCalendar({ \n\t\t\t target: document.querySelector('.button-container'),\n\t\t\t anchor: trigger, \n\t\t\t props: {\n\t\t\t trigger: trigger\n\t\t\t }\n\t\t\t});\n\t\t\t\t",A=C(),P=S("div"),ye.$$.fragment.c(),q=C(),(B=S("p")).textContent="You can confine the date selection range with start and end:",R=C(),X=S("div"),$e.$$.fragment.c(),U=C(),(K=S("p")).textContent="Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.",G=C(),(Q=S("p")).textContent="You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).",Z=C(),ee=S("div"),ke.$$.fragment.c(),te=C(),(ne=S("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",oe=C(),ie=S("div"),Me.$$.fragment.c(),O(t,"class","svelte-6e0kyu"),O(m,"class","html"),O(D,"class","text-center svelte-6e0kyu"),O(P,"class","text-center svelte-6e0kyu"),O(X,"class","text-center svelte-6e0kyu"),O(K,"class","note svelte-6e0kyu"),O(ee,"class","text-center svelte-6e0kyu"),O(ie,"class","text-center svelte-6e0kyu"),O(o,"class","container svelte-6e0kyu")},m:function(e,w){M(e,t,w),M(e,n,w),M(e,o,w),k(o,r),k(o,a),se(ue,o,null),k(o,i),k(o,c),k(o,l),k(o,s),k(o,d),k(o,u),k(o,h),k(o,f),k(o,v),k(o,g),k(g,m),k(m,p),k(m,b),k(m,y),k(o,$),k(o,D),se(ge,D,null),k(o,I),k(o,T),k(o,E),k(o,j),k(o,Y),k(o,H),k(o,W),k(o,L),k(o,A),k(o,P),se(ye,P,null),k(o,q),k(o,B),k(o,R),k(o,X),se($e,X,null),k(o,U),k(o,K),k(o,G),k(o,Q),k(o,Z),k(o,ee),se(ke,ee,null),k(o,te),k(o,ne),k(o,oe),k(o,ie),se(Me,ie,null),ce=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=gt),ue.$set(n);var o={};e.dateFormat&&(o.format=gt),(e.$$scope||e.dateChosen||e.formattedSelected)&&(o.$$scope={changed:e,ctx:t}),!x&&e.formattedSelected&&(o.formattedSelected=t.formattedSelected),!F&&e.dateChosen&&(o.dateChosen=t.dateChosen),ge.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!J&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!N&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),ye.$set(r);var a={};e.dateFormat&&(a.format=gt),e.threeDaysInPast&&(a.start=t.threeDaysInPast),e.inThirtyDays&&(a.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(a.selectableCallback=t.noWeekendsSelectableCallback),$e.$set(a);var i={};e.dateFormat&&(i.format=gt),e.tomorrow&&(i.start=t.tomorrow),e.inThirtyDays&&(i.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(i.selectableCallback=t.noWeekendsSelectableCallback),ke.$set(i);var c={};e.dateFormat&&(c.format=gt),Me.$set(c)},i:function(e){ce||(re(ue.$$.fragment,e),re(ge.$$.fragment,e),re(ye.$$.fragment,e),re($e.$$.fragment,e),re(ke.$$.fragment,e),re(Me.$$.fragment,e),ce=!0)},o:function(e){ae(ue.$$.fragment,e),ae(ge.$$.fragment,e),ae(ye.$$.fragment,e),ae($e.$$.fragment,e),ae(ke.$$.fragment,e),ae(Me.$$.fragment,e),ce=!1},d:function(e){e&&(w(t),w(n),w(o)),de(ue),de(ge),de(ye),de($e),de(ke),de(Me)}}}var gt="#{l}, #{F} #{j}, #{Y}";function mt(e,t,n){var o,r,a,i,c=new Date,l=new Date,s=!1,d=!1,u=!1;P(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(l.getTime()+62208e6),e.start){var t=new Date(l);t.setDate(t.getDate()+30),n("inThirtyDays",i=t)}};var h=new Date(c);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var f=new Date(c);return f.setDate(f.getDate()+1),n("tomorrow",a=f),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:s,exampleFormatted:d,exampleChosen:u,threeDaysInPast:r,tomorrow:a,inThirtyDays:i,datepicker1_formattedSelected_binding:function(e){n("formattedSelected",o=e)},datepicker1_dateChosen_binding:function(e){n("dateChosen",s=e)},datepicker2_formattedSelected_binding:function(e){n("exampleFormatted",d=e)},datepicker2_dateChosen_binding:function(e){n("exampleChosen",u=e)},dateSelected_handler:function(e){return function(e){console.log("User chose "+e+".")}(e.detail.date)}}}var pt=function(e){function t(t){e.call(this),ue(this,t,mt,vt,s,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(he);return t(),new pt({target:document.body,data:{}})}(); +var app=function(){"use strict";function e(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var o=Object(e),r=1;r0)&&v(y)}function k(e){var t;return b||(b=!0,v(y)),{promise:new Promise(function(n){w.add(t=[e,n])}),abort:function(){w.delete(t)}}}function $(e,t){e.appendChild(t)}function C(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function x(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!j[p]){if(!f){var g=M("style");document.head.appendChild(g),f=g.sheet}j[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var m=e.style.animation||"";return e.style.animation=(m?m+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",I+=1,p}function Y(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}).join(", "),t&&!--I&&v(function(){if(!I){for(var e=f.cssRules.length;e--;)f.deleteRule(e);j={}}})}function N(e){W=e}function A(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_mount.push(e)}function L(){var e=W;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=H(t,n);o.slice().forEach(function(t){t.call(e,r)})}}}var J,q=[],z=[],R=[],X=[],U=Promise.resolve(),K=!1;function G(){K||(K=!0,U.then(Z))}function V(e){R.push(e)}function Q(e){X.push(e)}function Z(){var e=new Set;do{for(;q.length;){var t=q.shift();N(t),ee(t.$$)}for(;z.length;)z.pop()();for(var n=0;n=e&&r<=t&&(!n||n(r)),isToday:r.getTime()===o.getTime()}}};var ve=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function we(e){var t=e-1;return t*t*t+1}function be(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=+getComputedStyle(e).opacity;return{delay:n,duration:o,css:function(e){return"opacity: "+e*r}}}function ye(e,t){var n=t.delay;void 0===n&&(n=0);var o=t.duration;void 0===o&&(o=400);var r=t.easing;void 0===r&&(r=we);var i=t.x;void 0===i&&(i=0);var a=t.y;void 0===a&&(a=0);var c=t.opacity;void 0===c&&(c=0);var s=getComputedStyle(e),l=+s.opacity,d="none"===s.transform?"":s.transform,u=l*(1-c);return{delay:n,duration:o,easing:r,css:function(e,t){return"\n\t\t\ttransform: "+d+" translate("+(1-e)*i+"px, "+(1-e)*a+"px);\n\t\t\topacity: "+(l-u*t)}}}var ke="src\\Components\\Week.svelte";function $e(e,t,n){var o=Object.create(e);return o.day=t[n],o}function Ce(e){var t,n,o,r,a,c=e.day.date.getDate();function s(){return e.click_handler(e)}return{c:function(){t=M("div"),n=M("button"),o=S(c),r=_(),P(n,"class","day--label svelte-5wjnn4"),P(n,"type","button"),O(n,"selected",ve(e.day.date,e.selected)),O(n,"highlighted",ve(e.day.date,e.highlighted)),O(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),O(n,"disabled",!e.day.selectable),i(n,ke,28,6,706),P(t,"class","day svelte-5wjnn4"),O(t,"outside-month",!e.day.partOfMonth),O(t,"is-today",e.day.isToday),O(t,"is-disabled",!e.day.selectable),i(t,ke,22,4,541),a=E(n,"click",s)},m:function(e,i){C(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(r,i){e=i,r.days&&c!==(c=e.day.date.getDate())&&B(o,c),(r.areDatesEquivalent||r.days||r.selected)&&O(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&O(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&O(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(O(n,"disabled",!e.day.selectable),O(t,"outside-month",!e.day.partOfMonth),O(t,"is-today",e.day.isToday),O(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),a()}}}function De(e){for(var t,r,a,c,d=e.days,u=[],h=0;h=g)return h(1,0),ne(e,!0,"end"),u(),s=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return s})}var p=!1;return{start:function(){p||(Y(e),l(c)?(c=c(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){s&&(u(),s=!1)}}}(t,ye,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),a=function(e,t,r){var i,a=t(e,r),c=!0,d=oe;function u(){var t=a.delay;void 0===t&&(t=0);var r=a.duration;void 0===r&&(r=300);var l=a.easing;void 0===l&&(l=o);var u=a.tick;void 0===u&&(u=n);var h=a.css;h&&(i=F(e,1,0,r,t,l,h));var p=m()+t,f=p+r;V(function(){return ne(e,!1,"start")}),k(function(t){if(c){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||s(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return c})}return d.r+=1,l(a)?te().then(function(){a=a(),u()}):u(),{end:function(t){t&&a.tick&&a.tick(1,0),c&&(i&&Y(e,i),c=!1)}}}(t,be,{duration:180}),c=!1},d:function(e){e&&D(t),x(u,e),e&&a&&a.end()}}}function xe(e,t,n){var o=L(),r=t.days,i=t.selected,a=t.start,c=t.end,s=t.highlighted,l=t.shouldShakeDate,d=t.direction,u=["days","selected","start","end","highlighted","shouldShakeDate","direction"];return Object.keys(t).forEach(function(e){u.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")}),e.$set=function(e){"days"in e&&n("days",r=e.days),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",a=e.start),"end"in e&&n("end",c=e.end),"highlighted"in e&&n("highlighted",s=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:i,start:a,end:c,highlighted:s,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Me=function(e){function t(t){e.call(this,t),he(this,t,xe,De,d,["days","selected","start","end","highlighted","shouldShakeDate","direction"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.days||"days"in o||console.warn(" was created without expected prop 'days'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'"),void 0!==n.direction||"direction"in o||console.warn(" was created without expected prop 'direction'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={days:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0},direction:{configurable:!0}};return n.days.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.days.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.direction.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.direction.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Se="src\\Components\\Month.svelte";function _e(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Ee(e,t){var n,o,r=new Me({props:{days:t.week.days,selected:t.selected,start:t.start,end:t.end,highlighted:t.highlighted,shouldShakeDate:t.shouldShakeDate,direction:t.direction},$$inline:!0});return r.$on("dateSelected",t.dateSelected_handler),{key:e,first:null,c:function(){n=S(""),r.$$.fragment.c(),this.first=n},m:function(e,t){C(e,n,t),de(r,e,t),o=!0},p:function(e,t){var n={};e.visibleMonth&&(n.days=t.week.days),e.selected&&(n.selected=t.selected),e.start&&(n.start=t.start),e.end&&(n.end=t.end),e.highlighted&&(n.highlighted=t.highlighted),e.shouldShakeDate&&(n.shouldShakeDate=t.shouldShakeDate),e.direction&&(n.direction=t.direction),r.$set(n)},i:function(e){o||(ie(r.$$.fragment,e),o=!0)},o:function(e){ae(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),ue(r,e)}}}function Pe(e){for(var t,n,o=[],r=new Map,a=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(_)?(C.add(S),D(x)):($.add(_),h--):(s(M,a),h--)}for(;h--;){var E=e[h];v.has(E.key)||s(E,a)}for(;p;)D(m[p-1]);return m}(o,e,c,1,n,i,r,t,se,Ee,null,_e),oe.r||s(oe.c),oe=oe.p},i:function(e){if(!n){for(var t=0;t was created with unknown prop '"+e+"'")}),e.$set=function(e){"id"in e&&n("id",r=e.id),"visibleMonth"in e&&n("visibleMonth",i=e.visibleMonth),"selected"in e&&n("selected",a=e.selected),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",l=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",d=e.shouldShakeDate)},e.$$.update=function(e){void 0===e&&(e={lastId:1,id:1}),(e.lastId||e.id)&&(n("direction",o=u was created without expected prop 'id'"),void 0!==n.visibleMonth||"visibleMonth"in o||console.warn(" was created without expected prop 'visibleMonth'"),void 0!==n.selected||"selected"in o||console.warn(" was created without expected prop 'selected'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.highlighted||"highlighted"in o||console.warn(" was created without expected prop 'highlighted'"),void 0!==n.shouldShakeDate||"shouldShakeDate"in o||console.warn(" was created without expected prop 'shouldShakeDate'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={id:{configurable:!0},visibleMonth:{configurable:!0},selected:{configurable:!0},start:{configurable:!0},end:{configurable:!0},highlighted:{configurable:!0},shouldShakeDate:{configurable:!0}};return n.id.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.id.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.visibleMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlighted.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shouldShakeDate.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Oe=[{name:"January",abbrev:"Jan"},{name:"February",abbrev:"Feb"},{name:"March",abbrev:"Mar"},{name:"April",abbrev:"Apr"},{name:"May",abbrev:"May"},{name:"June",abbrev:"Jun"},{name:"July",abbrev:"Jul"},{name:"August",abbrev:"Aug"},{name:"September",abbrev:"Sep"},{name:"October",abbrev:"Oct"},{name:"November",abbrev:"Nov"},{name:"December",abbrev:"Dec"}],He=[{name:"Sunday",abbrev:"Sun"},{name:"Monday",abbrev:"Mon"},{name:"Tuesday",abbrev:"Tue"},{name:"Wednesday",abbrev:"Wed"},{name:"Thursday",abbrev:"Thu"},{name:"Friday",abbrev:"Fri"},{name:"Saturday",abbrev:"Sat"}],We=ce.Object,Ie="src\\Components\\NavBar.svelte";function je(e,t,n){var o=We.create(e);return o.monthDefinition=t[n],o.index=n,o}function Fe(e){var t,n,o,r,a,c=e.monthDefinition.abbrev;function s(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return e.click_handler_2.apply(e,[e].concat(t))}return{c:function(){t=M("div"),n=M("span"),o=S(c),r=_(),P(n,"class","svelte-1uccyem"),i(n,Ie,66,8,1915),P(t,"class","month-selector--month svelte-1uccyem"),O(t,"selected",e.index===e.month),O(t,"selectable",e.monthDefinition.selectable),i(t,Ie,60,6,1705),a=E(t,"click",s)},m:function(e,i){C(e,t,i),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&c!==(c=e.monthDefinition.abbrev)&&B(o,c),n.month&&O(t,"selected",e.index===e.month),n.availableMonths&&O(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),a()}}}function Ye(e){for(var t,o,r,a,c,l,d,u,h,p,f,g,m,v,w,b=Oe[e.month].name,y=e.availableMonths,k=[],T=0;T was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",i=e.month),"start"in e&&n("start",a=e.start),"end"in e&&n("end",c=e.end),"year"in e&&n("year",s=e.year),"canIncrementMonth"in e&&n("canIncrementMonth",l=e.canIncrementMonth),"canDecrementMonth"in e&&n("canDecrementMonth",d=e.canDecrementMonth)},e.$$.update=function(e){if(void 0===e&&(e={start:1,year:1,end:1}),e.start||e.year||e.end){var t=a.getFullYear()===s,r=c.getFullYear()===s;n("availableMonths",o=Oe.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=a.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:i,start:a,end:c,year:s,canIncrementMonth:l,canDecrementMonth:d,monthSelectorOpen:u,availableMonths:o,toggleMonthSelectorOpen:h,monthSelected:p,click_handler:function(){return r("incrementMonth",-1)},click_handler_1:function(){return r("incrementMonth",1)},click_handler_2:function(e,t){return p(t,e.index)}}}var Ae=function(e){function t(t){e.call(this,t),he(this,t,Ne,Ye,d,["month","start","end","year","canIncrementMonth","canDecrementMonth"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.month||"month"in o||console.warn(" was created without expected prop 'month'"),void 0!==n.start||"start"in o||console.warn(" was created without expected prop 'start'"),void 0!==n.end||"end"in o||console.warn(" was created without expected prop 'end'"),void 0!==n.year||"year"in o||console.warn(" was created without expected prop 'year'"),void 0!==n.canIncrementMonth||"canIncrementMonth"in o||console.warn(" was created without expected prop 'canIncrementMonth'"),void 0!==n.canDecrementMonth||"canDecrementMonth"in o||console.warn(" was created without expected prop 'canDecrementMonth'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={month:{configurable:!0},start:{configurable:!0},end:{configurable:!0},year:{configurable:!0},canIncrementMonth:{configurable:!0},canDecrementMonth:{configurable:!0}};return n.month.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.month.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.year.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.year.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canIncrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.canDecrementMonth.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Le=ce.window,Je="src\\Components\\Popover.svelte",qe=function(){return{}},ze=function(){return{}},Re=function(){return{}},Xe=function(){return{}};function Ue(e){var t,n,o,r,a,c,l,d;V(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Xe),m=e.$$slots.contents,v=u(m,e,ze);return{c:function(){t=M("div"),n=M("div"),g&&g.c(),o=_(),r=M("div"),a=M("div"),c=M("div"),v&&v.c(),P(n,"class","trigger"),i(n,Je,102,2,2332),P(c,"class","contents-inner svelte-1wmex1c"),i(c,Je,113,6,2730),P(a,"class","contents svelte-1wmex1c"),i(a,Je,112,4,2671),P(r,"class","contents-wrapper svelte-1wmex1c"),T(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),O(r,"visible",e.open),O(r,"shrink",e.shrink),i(r,Je,106,2,2454),P(t,"class","sc-popover svelte-1wmex1c"),i(t,Je,101,0,2284),d=[E(Le,"resize",e.onwindowresize),E(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),v&&v.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(i,s){C(i,t,s),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,a),$(a,c),v&&v.m(c,null),e.div2_binding(a),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){g&&g.p&&e.$$scope&&g.p(p(f,t,e,Re),h(f,t,Xe)),v&&v.p&&e.$$scope&&v.p(p(m,t,e,qe),h(m,t,ze)),(!l||e.translateX||e.translateY)&&T(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&O(r,"visible",t.open),e.shrink&&O(r,"shrink",t.shrink)},i:function(e){l||(ie(g,e),ie(v,e),l=!0)},o:function(e){ae(g,e),ae(v,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),s(d)}}}function Ke(e,t,n){var o,r,i,a,c,s=L(),l=0,d=0,u=t.open;void 0===u&&(u=!1);var h=t.shrink,p=t.trigger,f=function(){var e,t,o;n("shrink",h=!0),t="animationend",o=function(){n("shrink",h=!1),n("open",u=!1),s("closed")},(e=a).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function g(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}A(function(){if(document.addEventListener("click",g),p)return i.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var m=async function(){u||n("open",u=!0),await(G(),U);var e=c.getBoundingClientRect();return{top:e.top+-1*l,bottom:window.innerHeight-e.bottom+l,left:e.left+-1*d,right:document.body.clientWidth-e.right+d}},v=["open","shrink","trigger"];Object.keys(t).forEach(function(e){v.includes(e)||e.startsWith("$$")||console.warn(" was created with unknown prop '"+e+"'")});var w=t.$$slots;void 0===w&&(w={});var b=t.$$scope;return e.$set=function(e){"open"in e&&n("open",u=e.open),"shrink"in e&&n("shrink",h=e.shrink),"trigger"in e&&n("trigger",p=e.trigger),"$$scope"in e&&n("$$scope",b=e.$$scope)},{popover:o,w:r,triggerContainer:i,contentsAnimated:a,contentsWrapper:c,translateY:l,translateX:d,open:u,shrink:h,trigger:p,close:f,doOpen:async function(){var e=await async function(){var e,t=await m();return e=r<480?t.bottom:t.top<0?Math.abs(t.top):t.bottom<0?t.bottom:0,{x:t.left<0?Math.abs(t.left):t.right<0?t.right:0,y:e}}(),t=e.x,o=e.y;n("translateX",d=t),n("translateY",l=o),n("open",u=!0),s("opened")},onwindowresize:function(){r=Le.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",i=e)})},div2_binding:function(e){z[e?"unshift":"push"](function(){n("contentsAnimated",a=e)})},div3_binding:function(e){z[e?"unshift":"push"](function(){n("contentsWrapper",c=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:b}}var Ge=function(e){function t(t){e.call(this,t),he(this,t,Ke,Ue,d,["open","shrink","trigger","close"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.shrink||"shrink"in o||console.warn(" was created without expected prop 'shrink'"),void 0!==n.trigger||"trigger"in o||console.warn(" was created without expected prop 'trigger'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={open:{configurable:!0},shrink:{configurable:!0},trigger:{configurable:!0},close:{configurable:!0}};return n.open.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.open.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.shrink.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.shrink.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.close.get=function(){return this.$$.ctx.close},n.close.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),Ve=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Qe=function(e,t,n){if(e=e.toString(),void 0===t)return e;if(e.length==t)return e;if(n=void 0!==n&&n,e.length0;)e="0"+e;else e.length>t&&(e=n?e.substring(e.length-t):e.substring(0,t));return e},Ze={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},et=[{key:"d",method:function(e){return Qe(e.getDate(),2)}},{key:"D",method:function(e){return Qe(Ze.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ze.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Ze.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Qe(e.getMonth()+1,2)}},{key:"M",method:function(e){return Qe(Ze.monthsOfYear[e.getMonth()],3)}},{key:"n",method:function(e){return e.getMonth()+1}},{key:"Y",method:function(e){return e.getFullYear()}},{key:"y",method:function(e){return Qe(e.getFullYear(),2,!0)}}],tt=[{key:"a",method:function(e){return e.getHours()>11?"pm":"am"}},{key:"A",method:function(e){return e.getHours()>11?"PM":"AM"}},{key:"g",method:function(e){return e.getHours()%12||12}},{key:"G",method:function(e){return e.getHours()}},{key:"h",method:function(e){return Qe(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Qe(e.getHours(),2)}},{key:"i",method:function(e){return Qe(e.getMinutes(),2)}},{key:"s",method:function(e){return Qe(e.getSeconds(),2)}}],nt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ve(t,n.key,n.method(e)))}),tt.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ve(t,n.key,n.method(e)))}),t},ot={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},rt=Object.keys(ot).map(function(e){return ot[e]}),it="src\\Components\\Datepicker.svelte";function at(e,t,n){var o=Object.create(e);return o.day=t[n],o}function ct(e){var t,n;return{c:function(){t=M("button"),n=S(e.formattedSelected),P(t,"class","calendar-button svelte-1lorc63"),P(t,"type","button"),i(t,it,228,8,6259)},m:function(e,o){C(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function st(e){var t,n,o=e.$$slots.default,r=u(o,e,null),a=!e.trigger&&ct(e);return{c:function(){t=M("div"),r||a&&a.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1lorc63"),i(t,it,225,4,6194)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){C(e,t,o),r?r.m(t,null):a&&a.m(t,null),n=!0},p:function(e,n){r||(n.trigger?a&&(a.d(1),a=null):a?a.p(e,n):((a=ct(n)).c(),a.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ie(r,e),n=!0)},o:function(e){ae(r,e),n=!1},d:function(e){e&&D(t),r||a&&a.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=M("span"),o=S(r),P(t,"class","svelte-1lorc63"),i(t,it,241,10,6720)},m:function(e,n){C(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function dt(e){var t,n,o,r,a,c,s=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});s.$on("monthSelected",e.monthSelected_handler),s.$on("incrementMonth",e.incrementMonth_handler);for(var l=He,d=[],u=0;u0&&f>X?C(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var N=t.$$slots;void 0===N&&(N={});var J,q,R,X,U,K,G,V=t.$$scope;return e.$set=function(e){"format"in e&&n("format",a=e.format),"start"in e&&n("start",c=e.start),"end"in e&&n("end",s=e.end),"selected"in e&&n("selected",l=e.selected),"dateChosen"in e&&n("dateChosen",d=e.dateChosen),"trigger"in e&&n("trigger",u=e.trigger),"selectableCallback"in e&&n("selectableCallback",h=e.selectableCallback),"formattedSelected"in e&&n("formattedSelected",k=e.formattedSelected),"buttonBackgroundColor"in e&&n("buttonBackgroundColor",B=e.buttonBackgroundColor),"buttonBorderColor"in e&&n("buttonBorderColor",T=e.buttonBorderColor),"buttonTextColor"in e&&n("buttonTextColor",O=e.buttonTextColor),"highlightColor"in e&&n("highlightColor",H=e.highlightColor),"dayBackgroundColor"in e&&n("dayBackgroundColor",W=e.dayBackgroundColor),"dayTextColor"in e&&n("dayTextColor",I=e.dayTextColor),"dayHighlightedBackgroundColor"in e&&n("dayHighlightedBackgroundColor",j=e.dayHighlightedBackgroundColor),"dayHighlightedTextColor"in e&&n("dayHighlightedTextColor",F=e.dayHighlightedTextColor),"$$scope"in e&&n("$$scope",V=e.$$scope)},e.$$.update=function(e){if(void 0===e&&(e={start:1,end:1,selectableCallback:1,months:1,month:1,year:1,monthIndex:1,visibleMonth:1,format:1,selected:1}),(e.start||e.end||e.selectableCallback)&&n("months",J=function(e,t,n){void 0===n&&(n=null),e.setHours(0,0,0,0),t.setHours(0,0,0,0);for(var o=new Date(t.getFullYear(),t.getMonth()+1,1),r=[],i=new Date(e.getFullYear(),e.getMonth(),1),a=me(e,t,n);i0),(e.format||e.selected)&&n("formattedSelected",k="function"==typeof a?a(l):nt(l,a))},{popover:o,format:a,start:c,end:s,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:m,year:v,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:C,registerSelection:S,registerClose:E,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",m=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",_),r("open")},buttonBackgroundColor:B,buttonBorderColor:T,buttonTextColor:O,highlightColor:H,dayBackgroundColor:W,dayTextColor:I,dayHighlightedBackgroundColor:j,dayHighlightedTextColor:F,visibleMonth:q,visibleMonthId:R,canIncrementMonth:K,canDecrementMonth:G,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return C(e.detail)},dateSelected_handler:function(e){return S(e.detail)},popover_1_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},popover_1_open_binding:function(e){n("isOpen",w=e)},popover_1_shrink_binding:function(e){n("isClosing",b=e)},$$slots:N,$$scope:V}}var ft=function(e){function t(t){e.call(this,t),he(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor"]);var n=this.$$.ctx,o=t.props||{};void 0!==n.formattedSelected||"formattedSelected"in o||console.warn(" was created without expected prop 'formattedSelected'")}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={format:{configurable:!0},start:{configurable:!0},end:{configurable:!0},selected:{configurable:!0},dateChosen:{configurable:!0},trigger:{configurable:!0},selectableCallback:{configurable:!0},formattedSelected:{configurable:!0},buttonBackgroundColor:{configurable:!0},buttonBorderColor:{configurable:!0},buttonTextColor:{configurable:!0},highlightColor:{configurable:!0},dayBackgroundColor:{configurable:!0},dayTextColor:{configurable:!0},dayHighlightedBackgroundColor:{configurable:!0},dayHighlightedTextColor:{configurable:!0}};return n.format.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.format.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.start.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.start.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.end.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.end.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dateChosen.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.trigger.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.trigger.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.selectableCallback.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.formattedSelected.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonBorderColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.buttonTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.highlightColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedBackgroundColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.get=function(){throw new Error(": Props cannot be read directly from the component instance unless compiling with 'accessors: true' or ''")},n.dayHighlightedTextColor.set=function(e){throw new Error(": Props cannot be set directly on the component instance unless compiling with 'accessors: true' or ''")},Object.defineProperties(t.prototype,n),t}(fe),gt="src\\App.svelte";function mt(e){var t;return{c:function(){t=S("Pick a date")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function vt(e){var t,n;return{c:function(){t=S("Chosen: "),n=S(e.formattedSelected)},m:function(e,o){C(e,t,o),C(e,n,o)},p:function(e,t){e.formattedSelected&&B(n,t.formattedSelected)},d:function(e){e&&(D(t),D(n))}}}function wt(e){var t;function n(e){return e.dateChosen?vt:mt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),P(t,"class","custom-button svelte-6e0kyu"),i(t,gt,78,3,2474)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,i){o===(o=n(i))&&r?r.p(e,i):(r.d(1),(r=o(i))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function bt(e){var t;return{c:function(){t=S("Custom Button")},m:function(e,n){C(e,t,n)},p:n,d:function(e){e&&D(t)}}}function yt(e){var t;return{c:function(){t=S(e.exampleFormatted)},m:function(e,n){C(e,t,n)},p:function(e,n){e.exampleFormatted&&B(t,n.exampleFormatted)},d:function(e){e&&D(t)}}}function kt(e){var t;function n(e){return e.exampleChosen?yt:bt}var o=n(e),r=o(e);return{c:function(){t=M("button"),r.c(),P(t,"id","test"),i(t,gt,105,3,3218)},m:function(e,n){C(e,t,n),r.m(t,null)},p:function(e,i){o===(o=n(i))&&r?r.p(e,i):(r.d(1),(r=o(i))&&(r.c(),r.m(t,null)))},d:function(e){e&&D(t),r.d()}}}function $t(e){var t,n,o,r,a,c,s,l,d,u,h,p,f,g,m,v,w,b,y,k,x,E,B,T,O,H,W,I,j,F,Y,N,A,L,J,q,R,X,U,K,G,V,Z,ee,te,ne,oe,re,ce,se,he,pe,fe,ge,me,ve,we,be,ye,ke,$e,Ce,De,xe,Me,Se,_e,Ee,Pe,Be,Te,Oe,He,We,Ie,je=new ft({props:{format:Ct},$$inline:!0});function Fe(t){e.datepicker1_formattedSelected_binding.call(null,t),J=!0,Q(function(){return J=!1})}function Ye(t){e.datepicker1_dateChosen_binding.call(null,t),q=!0,Q(function(){return q=!1})}var Ne={format:Ct,$$slots:{default:[wt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(Ne.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(Ne.dateChosen=e.dateChosen);var Ae=new ft({props:Ne,$$inline:!0});function Le(t){e.datepicker2_formattedSelected_binding.call(null,t),ce=!0,Q(function(){return ce=!1})}function Je(t){e.datepicker2_dateChosen_binding.call(null,t),se=!0,Q(function(){return se=!1})}z.push(function(){return le(Ae,"formattedSelected",Fe)}),z.push(function(){return le(Ae,"dateChosen",Ye)});var qe={$$slots:{default:[kt]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(qe.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(qe.dateChosen=e.exampleChosen);var ze=new ft({props:qe,$$inline:!0});z.push(function(){return le(ze,"formattedSelected",Le)}),z.push(function(){return le(ze,"dateChosen",Je)});var Re=new ft({props:{format:Ct,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Xe=new ft({props:{format:Ct,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ue=new ft({props:{format:Ct},$$inline:!0});Ue.$on("dateSelected",e.dateSelected_handler);var Ke=new ft({props:{format:Ct,buttonBackgroundColor:"#e20074",buttonTextColor:"white",highlightColor:"#e20074",dayBackgroundColor:"#efefef",dayTextColor:"#333",dayHighlightedBackgroundColor:"#e20074",dayHighlightedTextColor:"#fff"},$$inline:!0});return{c:function(){(t=M("h1")).textContent="SvelteCalendar",n=_(),o=M("div"),(r=M("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",a=_(),je.$$.fragment.c(),c=_(),(s=M("p")).textContent="This component can be used with or without the Svelte compiler.",l=_(),d=M("ul"),(u=M("li")).textContent="Lightweight (~8KB)",h=_(),(p=M("li")).textContent="IE11+ Compatible",f=_(),(g=M("li")).textContent="Usable as a Svelte component",m=_(),(v=M("li")).textContent="Usable with Vanilla JS / ",w=_(),(b=M("li")).textContent="Can be compiled to a native web component / custom element",y=_(),(k=M("li")).textContent="Mobile/thumb friendly",x=_(),(E=M("li")).textContent="Keyboard navigation (arrows, pgup/pgdown, tab, esc)",B=_(),(T=M("p")).textContent="Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:",O=_(),(H=M("h4")).textContent="With Svelte:",W=_(),I=M("pre"),j=M("code"),F=S("\r\n \r\n"),A=_(),L=M("div"),Ae.$$.fragment.c(),R=_(),(X=M("h4")).textContent="Without Svelte HTML:",U=_(),K=M("pre"),(G=M("code")).textContent="
    \r\n \r\n
    ",V=_(),(Z=M("h4")).textContent="Without Svelte JS:",ee=_(),te=M("pre"),(ne=M("code")).textContent="var trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n target: document.querySelector('.button-container'),\r\n anchor: trigger, \r\n props: {\r\n trigger: trigger\r\n }\r\n});",oe=_(),re=M("div"),ze.$$.fragment.c(),he=_(),(pe=M("p")).textContent="You can confine the date selection range with start and end:",fe=_(),ge=M("div"),Re.$$.fragment.c(),me=_(),(ve=M("p")).textContent="Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.",we=_(),(be=M("p")).textContent="You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).",ye=_(),ke=M("div"),Xe.$$.fragment.c(),$e=_(),(Ce=M("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",De=_(),xe=M("div"),Ue.$$.fragment.c(),Me=_(),(Se=M("p")).textContent="You can theme the datepicker:",_e=_(),Ee=M("div"),Ke.$$.fragment.c(),Pe=_(),Be=M("pre"),Te=M("code"),Oe=S(""),P(t,"class","svelte-6e0kyu"),i(t,gt,47,0,1077),i(r,gt,49,1,1128),i(s,gt,54,1,1316),i(u,gt,56,2,1397),i(p,gt,57,2,1428),i(g,gt,58,2,1457),i(v,gt,59,2,1498),i(b,gt,60,2,1563),i(k,gt,61,2,1634),i(E,gt,62,2,1668),i(d,gt,55,1,1389),i(T,gt,65,1,1741),i(H,gt,67,1,2045),P(j,"class","html"),i(j,gt,68,6,2074),i(I,gt,68,1,2069),P(L,"class","text-center svelte-6e0kyu"),i(L,gt,76,1,2369),i(X,gt,84,1,2625),P(G,"class","html"),i(G,gt,85,6,2662),i(K,gt,85,1,2657),i(Z,gt,91,1,2813),P(ne,"class","js"),i(ne,gt,92,6,2848),i(te,gt,92,1,2843),P(re,"class","text-center svelte-6e0kyu"),i(re,gt,103,1,3098),i(pe,gt,111,1,3354),P(ge,"class","text-center svelte-6e0kyu"),i(ge,gt,113,1,3426),P(ve,"class","note svelte-6e0kyu"),i(ve,gt,117,1,3596),i(be,gt,119,1,3757),P(ke,"class","text-center svelte-6e0kyu"),i(ke,gt,121,1,4017),i(Ce,gt,125,1,4180),P(xe,"class","text-center svelte-6e0kyu"),i(xe,gt,127,1,4268),i(Se,gt,131,1,4393),i(Ee,gt,132,1,4432),P(Te,"class","html"),i(Te,gt,144,6,4730),i(Be,gt,144,1,4725),P(o,"class","container svelte-6e0kyu"),i(o,gt,48,0,1102)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,i){C(e,t,i),C(e,n,i),C(e,o,i),$(o,r),$(o,a),de(je,o,null),$(o,c),$(o,s),$(o,l),$(o,d),$(d,u),$(d,h),$(d,p),$(d,f),$(d,g),$(d,m),$(d,v),$(d,w),$(d,b),$(d,y),$(d,k),$(d,x),$(d,E),$(o,B),$(o,T),$(o,O),$(o,H),$(o,W),$(o,I),$(I,j),$(j,F),$(j,Y),$(j,N),$(o,A),$(o,L),de(Ae,L,null),$(o,R),$(o,X),$(o,U),$(o,K),$(K,G),$(o,V),$(o,Z),$(o,ee),$(o,te),$(te,ne),$(o,oe),$(o,re),de(ze,re,null),$(o,he),$(o,pe),$(o,fe),$(o,ge),de(Re,ge,null),$(o,me),$(o,ve),$(o,we),$(o,be),$(o,ye),$(o,ke),de(Xe,ke,null),$(o,$e),$(o,Ce),$(o,De),$(o,xe),de(Ue,xe,null),$(o,Me),$(o,Se),$(o,_e),$(o,Ee),de(Ke,Ee,null),$(o,Pe),$(o,Be),$(Be,Te),$(Te,Oe),$(Te,He),$(Te,We),Ie=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=Ct),je.$set(n);var o={};e.dateFormat&&(o.format=Ct),(e.$$scope||e.dateChosen||e.formattedSelected)&&(o.$$scope={changed:e,ctx:t}),!J&&e.formattedSelected&&(o.formattedSelected=t.formattedSelected),!q&&e.dateChosen&&(o.dateChosen=t.dateChosen),Ae.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!ce&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!se&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),ze.$set(r);var i={};e.dateFormat&&(i.format=Ct),e.threeDaysInPast&&(i.start=t.threeDaysInPast),e.inThirtyDays&&(i.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(i.selectableCallback=t.noWeekendsSelectableCallback),Re.$set(i);var a={};e.dateFormat&&(a.format=Ct),e.tomorrow&&(a.start=t.tomorrow),e.inThirtyDays&&(a.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(a.selectableCallback=t.noWeekendsSelectableCallback),Xe.$set(a);var c={};e.dateFormat&&(c.format=Ct),Ue.$set(c);var s={};e.dateFormat&&(s.format=Ct),Ke.$set(s)},i:function(e){Ie||(ie(je.$$.fragment,e),ie(Ae.$$.fragment,e),ie(ze.$$.fragment,e),ie(Re.$$.fragment,e),ie(Xe.$$.fragment,e),ie(Ue.$$.fragment,e),ie(Ke.$$.fragment,e),Ie=!0)},o:function(e){ae(je.$$.fragment,e),ae(Ae.$$.fragment,e),ae(ze.$$.fragment,e),ae(Re.$$.fragment,e),ae(Xe.$$.fragment,e),ae(Ue.$$.fragment,e),ae(Ke.$$.fragment,e),Ie=!1},d:function(e){e&&(D(t),D(n),D(o)),ue(je),ue(Ae),ue(ze),ue(Re),ue(Xe),ue(Ue),ue(Ke)}}}var Ct="#{l}, #{F} #{j}, #{Y}";function Dt(e,t,n){var o,r,i,a,c=new Date,s=new Date,l=!1,d=!1,u=!1;A(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(s.getTime()+62208e6),e.start){var t=new Date(s);t.setDate(t.getDate()+30),n("inThirtyDays",a=t)}};var h=new Date(c);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var p=new Date(c);return p.setDate(p.getDate()+1),n("tomorrow",i=p),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:l,exampleFormatted:d,exampleChosen:u,threeDaysInPast:r,tomorrow:i,inThirtyDays:a,datepicker1_formattedSelected_binding:function(e){n("formattedSelected",o=e)},datepicker1_dateChosen_binding:function(e){n("dateChosen",l=e)},datepicker2_formattedSelected_binding:function(e){n("exampleFormatted",d=e)},datepicker2_dateChosen_binding:function(e){n("exampleChosen",u=e)},dateSelected_handler:function(e){return function(e){console.log("User chose "+e+".")}(e.detail.date)}}}var xt=function(e){function t(t){e.call(this,t),he(this,t,Dt,$t,d,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fe);return t(),new xt({target:document.body,data:{}})}(); //# sourceMappingURL=test.js.map diff --git a/docs/test.js.map b/docs/test.js.map index b5743bf..b42fc3e 100644 --- a/docs/test.js.map +++ b/docs/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte","../src/App.svelte","../src/test.js"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
    \r\n {#each days as day}\r\n
    \r\n \r\n
    \r\n {/each}\r\n
    \r\n\r\n\r\n","\n\n
    \n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
    \n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
    \r\n
    \r\n
    dispatch('incrementMonth', -1)}>\r\n \r\n
    \r\n
    \r\n {monthDict[month].name} {year}\r\n
    \r\n
    dispatch('incrementMonth', 1)}>\r\n \r\n
    \r\n
    \r\n
    \r\n {#each availableMonths as monthDefinition, index}\r\n
    monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
    \r\n {/each}\r\n
    \r\n
    \r\n\r\n\r\n","\r\n\r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\r\n\r\n
    \r\n \r\n
    \r\n \r\n {#if !trigger}\r\n \r\n {/if}\r\n \r\n
    \r\n
    \r\n
    \r\n changeMonth(e.detail)}\r\n on:incrementMonth={e => incrementMonth(e.detail)} />\r\n
    \r\n {#each dayDict as day}\r\n {day.abbrev}\r\n {/each}\r\n
    \r\n registerSelection(e.detail)} />\r\n
    \r\n
    \r\n \r\n
    \r\n\r\n\r\n","\r\n\r\n

    SvelteCalendar

    \r\n
    \r\n\t

    A lightweight date picker written with Svelte. Here is an example:

    \r\n\r\n\t\r\n\t\r\n\r\n\t

    This component can be used with or without the Svelte compiler.

    \r\n\t
      \r\n\t\t
    • Lightweight (~8KB)
    • \r\n\t\t
    • IE11+ Compatible
    • \r\n\t\t
    • Usable as a Svelte component
    • \r\n\t\t
    • Usable with Vanilla JS / <Your Framework Here>
    • \r\n\t\t
    • Can be compiled to a native web component / custom element
    • \r\n\t\t
    • Mobile/thumb friendly
    • \r\n\t\t
    • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
    • \r\n\t
    \r\n\r\n\t

    Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

    \r\n\r\n\t

    With Svelte:

    \r\n\t
    \r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
    \r\n\r\n\t
    \r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
    \r\n\r\n\t

    Without Svelte HTML:

    \r\n\t
    \r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
    \r\n\r\n\t

    Without Svelte JS:

    \r\n\t
    \r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
    \r\n\r\n\t
    \r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
    \r\n\r\n\t

    You can confine the date selection range with start and end:

    \r\n\r\n\t
    \r\n\t\t\r\n\t
    \r\n\r\n\t

    Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

    \r\n\r\n\t

    You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

    \r\n\r\n\t
    \r\n\t\t\r\n\t
    \r\n\r\n\t

    You can bind to the `dateSelected` event, which has a data property `date`:

    \r\n\t\r\n\t
    \r\n\t\t logChoice(e.detail.date)} />\r\n\t
    \r\n
    \r\n\r\n\r\n","import { polyfill } from 'es6-object-assign';\npolyfill();\nimport App from './App.svelte';\n\nconst app = new App({\n target: document.body,\n data: {}\n});\n\nexport default app;\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format","exampleFormatted","exampleChosen","dateFormat","threeDaysInPast","inThirtyDays","noWeekendsSelectableCallback","tomorrow","hljs","initHighlightingOnLoad","console","log","App"],"mappings":"gCAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAO3B,OAAO4B,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQN,GAEhB,SAASO,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAsBhF,SAASE,EAAYC,EAAYC,EAAKb,GAClC,GAAIY,EAAY,CACZnB,IAAMqB,EAAWC,EAAiBH,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IpM,KACdiM,EAAQ,IAAIjM,KAIZuW,GAAa,EACbW,GAAmB,EACnBC,GAAgB,EA8BpBtR,aAEE4R,KAAKC,yFA9BE,IAAI1X,KAAKiM,EAAMO,UAAY,kBAkBlCvO,IAAMkN,EAAO,IAAInL,KAAKiM,GACtBd,EAAKC,QAAQD,EAAKE,UAAY,qBAC9BiM,EAAenM,KAhBflN,IAAMkN,EAAO,IAAInL,KAAKoM,GACtBjB,EAAKC,QAAQD,EAAKE,UAAY,uBAC9BgM,EAAkBlM,GAKlBlN,IAAMkN,EAAO,IAAInL,KAAKoM,UACtBjB,EAAKC,QAAQD,EAAKE,UAAY,gBAC9BmM,EAAWrM,0CAnBuBA,UAA2B,IAAlBA,EAAKG,UAAoC,IAAlBH,EAAKG,gcA6BzE,SAAmBH,GAEjBwM,QAAQC,kBAAkBzM,6MClCjB,IAAI0M,GAAI,CAClBnb,OAAQuF,SAAS6Q,KACjB1Q,KAAM"} \ No newline at end of file +{"version":3,"file":"test.js","sources":["../node_modules/es6-object-assign/index.js","../node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../src/Components/Week.svelte","../src/Components/Month.svelte","../src/Components/lib/dictionaries.js","../src/Components/NavBar.svelte","../src/Components/Popover.svelte","../node_modules/timeUtils/dist/timeUtils.esm.js","../src/Components/lib/keyCodes.js","../src/Components/Datepicker.svelte","../src/App.svelte","../src/test.js"],"sourcesContent":["/**\n * Code refactored from Mozilla Developer Network:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign\n */\n\n'use strict';\n\nfunction assign(target, firstSource) {\n if (target === undefined || target === null) {\n throw new TypeError('Cannot convert first argument to object');\n }\n\n var to = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var nextSource = arguments[i];\n if (nextSource === undefined || nextSource === null) {\n continue;\n }\n\n var keysArray = Object.keys(Object(nextSource));\n for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {\n var nextKey = keysArray[nextIndex];\n var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);\n if (desc !== undefined && desc.enumerable) {\n to[nextKey] = nextSource[nextKey];\n }\n }\n }\n return to;\n}\n\nfunction polyfill() {\n if (!Object.assign) {\n Object.defineProperty(Object, 'assign', {\n enumerable: false,\n configurable: true,\n writable: true,\n value: assign\n });\n }\n}\n\nmodule.exports = {\n assign: assign,\n polyfill: polyfill\n};\n","function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.ctx, definition[1](fn ? fn(ctx) : {})))\n : ctx.$$scope.ctx;\n}\nfunction get_slot_changes(definition, ctx, changed, fn) {\n return definition[1]\n ? assign({}, assign(ctx.$$scope.changed || {}, definition[1](fn ? fn(changed) : {})))\n : ctx.$$scope.changed || {};\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nlet running = false;\nfunction run_tasks() {\n tasks.forEach(task => {\n if (!task[0](now())) {\n tasks.delete(task);\n task[1]();\n }\n });\n running = tasks.size > 0;\n if (running)\n raf(run_tasks);\n}\nfunction clear_loops() {\n // for testing...\n tasks.forEach(task => tasks.delete(task));\n running = false;\n}\nfunction loop(fn) {\n let task;\n if (!running) {\n running = true;\n raf(run_tasks);\n }\n return {\n promise: new Promise(fulfil => {\n tasks.add(task = [fn, fulfil]);\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction detach_between(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction detach_before(after) {\n while (after.previousSibling) {\n after.parentNode.removeChild(after.previousSibling);\n }\n}\nfunction detach_after(before) {\n while (before.nextSibling) {\n before.parentNode.removeChild(before.nextSibling);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction object_without_properties(obj, exclude) {\n // eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion\n const target = {};\n for (const k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n for (const key in attributes) {\n if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key in node) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value) {\n node.style.setProperty(key, value);\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = current_component;\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment) {\n $$.update($$.dirty);\n run_all($$.before_update);\n $$.fragment.p($$.dirty, $$.ctx);\n $$.dirty = null;\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = key && { [key]: value };\n const child_ctx = assign(assign({}, info.ctx), info.resolved);\n const block = type && (info.current = type)(child_ctx);\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n flush();\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n }\n if (is_promise(promise)) {\n promise.then(value => {\n update(info.then, 1, info.value, value);\n }, error => {\n update(info.catch, 2, info.error, error);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = { [info.value]: promise };\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, changed, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(changed, child_ctx);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args) {\n const attributes = Object.assign({}, ...args);\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === undefined)\n return;\n if (value === true)\n str += \" \" + name;\n const escaped = String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n str += \" \" + name + \"=\" + JSON.stringify(escaped);\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n if (component.$$.props.indexOf(name) === -1)\n return;\n component.$$.bound[name] = callback;\n callback(component.$$.ctx[name]);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n if (component.$$.fragment) {\n run_all(component.$$.on_destroy);\n component.$$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n component.$$.on_destroy = component.$$.fragment = null;\n component.$$.ctx = {};\n }\n}\nfunction make_dirty(component, key) {\n if (!component.$$.dirty) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty = blank_object();\n }\n component.$$.dirty[key] = true;\n}\nfunction init(component, options, instance, create_fragment, not_equal, prop_names) {\n const parent_component = current_component;\n set_current_component(component);\n const props = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props: prop_names,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty: null\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, props, (key, value) => {\n if ($$.ctx && not_equal($$.ctx[key], $$.ctx[key] = value)) {\n if ($$.bound[key])\n $$.bound[key](value);\n if (ready)\n make_dirty(component, key);\n }\n })\n : props;\n $$.update();\n ready = true;\n run_all($$.before_update);\n $$.fragment = create_fragment($$.ctx);\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement !== 'undefined') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\n\nexport { SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, assign, attr, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_element, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, debug, destroy_block, destroy_component, destroy_each, detach, detach_after, detach_before, detach_between, dirty_components, each, element, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_slot_changes, get_slot_context, get_spread_update, get_store_value, globals, group_outros, handle_promise, identity, init, insert, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, loop, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_input_type, set_now, set_raf, set_style, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","const getCalendarPage = (month, year, dayProps) => {\n let date = new Date(year, month, 1);\n date.setDate(date.getDate() - date.getDay());\n let nextMonth = month === 11 ? 0 : month + 1;\n // ensure days starts on Sunday\n // and end on saturday\n let weeks = [];\n while (date.getMonth() !== nextMonth || date.getDay() !== 0 || weeks.length !== 6) {\n if (date.getDay() === 0) weeks.unshift({ days: [], id: `${year}${month}${year}${weeks.length}` });\n const updated = Object.assign({\n partOfMonth: date.getMonth() === month,\n date: new Date(date)\n }, dayProps(date));\n weeks[0].days.push(updated);\n date.setDate(date.getDate() + 1);\n }\n weeks.reverse();\n return { month, year, weeks };\n};\n\nconst getDayPropsHandler = (start, end, selectableCallback) => {\n let today = new Date();\n today.setHours(0, 0, 0, 0);\n return date => ({\n selectable: date >= start && date <= end\n && (!selectableCallback || selectableCallback(date)),\n isToday: date.getTime() === today.getTime()\n });\n};\n\nexport function getMonths(start, end, selectableCallback = null) {\n start.setHours(0, 0, 0, 0);\n end.setHours(0, 0, 0, 0);\n let endDate = new Date(end.getFullYear(), end.getMonth() + 1, 1);\n let months = [];\n let date = new Date(start.getFullYear(), start.getMonth(), 1);\n let dayPropsHandler = getDayPropsHandler(start, end, selectableCallback);\n while (date < endDate) {\n months.push(getCalendarPage(date.getMonth(), date.getFullYear(), dayPropsHandler));\n date.setMonth(date.getMonth() + 1);\n }\n return months;\n}\n\nexport const areDatesEquivalent = (a, b) => a.getDate() === b.getDate()\n && a.getMonth() === b.getMonth()\n && a.getFullYear() === b.getFullYear();\n","export { identity as linear } from '../internal';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicOut, cubicInOut } from '../easing';\nimport { is_function, assign } from '../internal';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction fade(node, { delay = 0, duration = 400 }) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut }) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => `overflow: hidden;` +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 }) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut }) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { crossfade, draw, fade, fly, scale, slide };\n","\r\n\r\n
    \r\n {#each days as day}\r\n
    \r\n \r\n
    \r\n {/each}\r\n
    \r\n\r\n\r\n","\n\n
    \n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
    \n\n\n","export const monthDict = [\n { name: 'January', abbrev: 'Jan' },\n { name: 'February', abbrev: 'Feb' },\n { name: 'March', abbrev: 'Mar' },\n { name: 'April', abbrev: 'Apr' },\n { name: 'May', abbrev: 'May' },\n { name: 'June', abbrev: 'Jun' },\n { name: 'July', abbrev: 'Jul' },\n { name: 'August', abbrev: 'Aug' },\n { name: 'September', abbrev: 'Sep' },\n { name: 'October', abbrev: 'Oct' },\n { name: 'November', abbrev: 'Nov' },\n { name: 'December', abbrev: 'Dec' }\n];\n\nexport const dayDict = [\n { name: 'Sunday', abbrev: 'Sun' },\n { name: 'Monday', abbrev: 'Mon' },\n { name: 'Tuesday', abbrev: 'Tue' },\n { name: 'Wednesday', abbrev: 'Wed' },\n { name: 'Thursday', abbrev: 'Thu' },\n { name: 'Friday', abbrev: 'Fri' },\n { name: 'Saturday', abbrev: 'Sat' }\n];\n","\r\n\r\n
    \r\n
    \r\n
    dispatch('incrementMonth', -1)}>\r\n \r\n
    \r\n
    \r\n {monthDict[month].name} {year}\r\n
    \r\n
    dispatch('incrementMonth', 1)}>\r\n \r\n
    \r\n
    \r\n
    \r\n {#each availableMonths as monthDefinition, index}\r\n
    monthSelected(e, index)}\r\n >\r\n {monthDefinition.abbrev}\r\n
    \r\n {/each}\r\n
    \r\n
    \r\n\r\n\r\n","\r\n\r\n\r\n
    \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n\r\n\r\n","/**\n * generic function to inject data into token-laden string\n * @param str {String} Required\n * @param name {String} Required\n * @param value {String|Integer} Required\n * @returns {String}\n *\n * @example\n * injectStringData(\"The following is a token: #{tokenName}\", \"tokenName\", 123); \n * @returns {String} \"The following is a token: 123\"\n *\n */\nconst injectStringData = (str,name,value) => str\n .replace(new RegExp('#{'+name+'}','g'), value);\n\n/**\n * Generic function to enforce length of string. \n * \n * Pass a string or number to this function and specify the desired length.\n * This function will either pad the # with leading 0's (if str.length < length)\n * or remove data from the end (@fromBack==false) or beginning (@fromBack==true)\n * of the string when str.length > length.\n *\n * When length == str.length or typeof length == 'undefined', this function\n * returns the original @str parameter.\n * \n * @param str {String} Required\n * @param length {Integer} Required\n * @param fromBack {Boolean} Optional\n * @returns {String}\n *\n */\nconst enforceLength = function(str,length,fromBack) {\n str = str.toString();\n if(typeof length == 'undefined') return str;\n if(str.length == length) return str;\n fromBack = (typeof fromBack == 'undefined') ? false : fromBack;\n if(str.length < length) {\n // pad the beginning of the string w/ enough 0's to reach desired length:\n while(length - str.length > 0) str = '0' + str;\n } else if(str.length > length) {\n if(fromBack) {\n // grab the desired #/chars from end of string: ex: '2015' -> '15'\n str = str.substring(str.length-length);\n } else {\n // grab the desired #/chars from beginning of string: ex: '2015' -> '20'\n str = str.substring(0,length);\n }\n }\n return str;\n};\n\nconst daysOfWeek = [ \n 'Sunday', \n 'Monday', \n 'Tuesday', \n 'Wednesday', \n 'Thursday', \n 'Friday', \n 'Saturday' \n];\n\nconst monthsOfYear = [ \n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n];\n\nlet dictionary = { \n daysOfWeek, \n monthsOfYear\n};\n\nconst extendDictionary = (conf) => \n Object.keys(conf).forEach(key => {\n if(dictionary[key] && dictionary[key].length == conf[key].length) {\n dictionary[key] = conf[key];\n }\n });\n\nconst resetDictionary = () => extendDictionary({daysOfWeek,monthsOfYear});\n\nvar acceptedDateTokens = [\n { \n // d: day of the month, 2 digits with leading zeros:\n key: 'd', \n method: function(date) { return enforceLength(date.getDate(), 2); } \n }, { \n // D: textual representation of day, 3 letters: Sun thru Sat\n key: 'D', \n method: function(date) { return enforceLength(dictionary.daysOfWeek[date.getDay()],3); } \n }, { \n // j: day of month without leading 0's\n key: 'j', \n method: function(date) { return date.getDate(); } \n }, { \n // l: full textual representation of day of week: Sunday thru Saturday\n key: 'l', \n method: function(date) { return dictionary.daysOfWeek[date.getDay()]; } \n }, { \n // F: full text month: 'January' thru 'December'\n key: 'F', \n method: function(date) { return dictionary.monthsOfYear[date.getMonth()]; } \n }, { \n // m: 2 digit numeric month: '01' - '12':\n key: 'm', \n method: function(date) { return enforceLength(date.getMonth()+1,2); } \n }, { \n // M: a short textual representation of the month, 3 letters: 'Jan' - 'Dec'\n key: 'M', \n method: function(date) { return enforceLength(dictionary.monthsOfYear[date.getMonth()],3); } \n }, { \n // n: numeric represetation of month w/o leading 0's, '1' - '12':\n key: 'n', \n method: function(date) { return date.getMonth() + 1; } \n }, { \n // Y: Full numeric year, 4 digits\n key: 'Y', \n method: function(date) { return date.getFullYear(); } \n }, { \n // y: 2 digit numeric year:\n key: 'y', \n method: function(date) { return enforceLength(date.getFullYear(),2,true); }\n }\n];\n\nvar acceptedTimeTokens = [\n { \n // a: lowercase ante meridiem and post meridiem 'am' or 'pm'\n key: 'a', \n method: function(date) { return (date.getHours() > 11) ? 'pm' : 'am'; } \n }, { \n // A: uppercase ante merdiiem and post meridiem 'AM' or 'PM'\n key: 'A', \n method: function(date) { return (date.getHours() > 11) ? 'PM' : 'AM'; } \n }, { \n // g: 12-hour format of an hour without leading zeros 1-12\n key: 'g', \n method: function(date) { return date.getHours() % 12 || 12; } \n }, { \n // G: 24-hour format of an hour without leading zeros 0-23\n key: 'G', \n method: function(date) { return date.getHours(); } \n }, { \n // h: 12-hour format of an hour with leading zeros 01-12\n key: 'h', \n method: function(date) { return enforceLength(date.getHours()%12 || 12,2); } \n }, { \n // H: 24-hour format of an hour with leading zeros: 00-23\n key: 'H', \n method: function(date) { return enforceLength(date.getHours(),2); } \n }, { \n // i: Minutes with leading zeros 00-59\n key: 'i', \n method: function(date) { return enforceLength(date.getMinutes(),2); } \n }, { \n // s: Seconds with leading zeros 00-59\n key: 's', \n method: function(date) { return enforceLength(date.getSeconds(),2); }\n }\n];\n\n/**\n * Internationalization object for timeUtils.internationalize().\n * @typedef internationalizeObj\n * @property {Array} [daysOfWeek=[ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]] daysOfWeek Weekday labels as strings, starting with Sunday.\n * @property {Array} [monthsOfYear=[ 'January','February','March','April','May','June','July','August','September','October','November','December' ]] monthsOfYear Month labels as strings, starting with January.\n */\n\n/**\n * This function can be used to support additional languages by passing an object with \n * `daysOfWeek` and `monthsOfYear` attributes. Each attribute should be an array of\n * strings (ex: `daysOfWeek: ['monday', 'tuesday', 'wednesday'...]`)\n *\n * @param {internationalizeObj} conf\n */\nconst internationalize = (conf={}) => { \n extendDictionary(conf);\n};\n\n/**\n * generic formatDate function which accepts dynamic templates\n * @param date {Date} Required\n * @param template {String} Optional\n * @returns {String}\n *\n * @example\n * formatDate(new Date(), '#{M}. #{j}, #{Y}')\n * @returns {Number} Returns a formatted date\n *\n */\nconst formatDate = (date,template='#{m}/#{d}/#{Y}') => {\n acceptedDateTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return; \n template = injectStringData(template,token.key,token.method(date));\n }); \n acceptedTimeTokens.forEach(token => {\n if(template.indexOf(`#{${token.key}}`) == -1) return;\n template = injectStringData(template,token.key,token.method(date));\n });\n return template;\n};\n\n/**\n * Small function for resetting language to English (used in testing).\n */\nconst resetInternationalization = () => resetDictionary();\n\nexport { internationalize, formatDate, resetInternationalization };\n","export const keyCodes = {\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n pgup: 33,\n pgdown: 34,\n enter: 13,\n escape: 27,\n tab: 9\n};\n\nexport const keyCodesArray = Object.keys(keyCodes).map(k => keyCodes[k]);\n","\n\n
    \n \n
    \n \n {#if !trigger}\n \n {/if}\n \n
    \n
    \n
    \n changeMonth(e.detail)}\n on:incrementMonth={e => incrementMonth(e.detail)} />\n
    \n {#each dayDict as day}\n {day.abbrev}\n {/each}\n
    \n registerSelection(e.detail)} />\n
    \n
    \n \n
    \n\n\n","\r\n\r\n

    SvelteCalendar

    \r\n
    \r\n\t

    A lightweight date picker written with Svelte. Here is an example:

    \r\n\r\n\t\r\n\t\r\n\r\n\t

    This component can be used with or without the Svelte compiler.

    \r\n\t
      \r\n\t\t
    • Lightweight (~8KB)
    • \r\n\t\t
    • IE11+ Compatible
    • \r\n\t\t
    • Usable as a Svelte component
    • \r\n\t\t
    • Usable with Vanilla JS / <Your Framework Here>
    • \r\n\t\t
    • Can be compiled to a native web component / custom element
    • \r\n\t\t
    • Mobile/thumb friendly
    • \r\n\t\t
    • Keyboard navigation (arrows, pgup/pgdown, tab, esc)
    • \r\n\t
    \r\n\r\n\t

    Above you can see the default styling of this component. This will be created for you by default when using the component but you can also pass in your own calendar 'trigger' either as a slot (custom element or svelte) or as a DOM node reference (use as vanilla JS). Here are some examples:

    \r\n\r\n\t

    With Svelte:

    \r\n\t
    \r\n<Datepicker format={dateFormat} bind:formattedSelected bind:dateChosen>\r\n  <button class='custom-button'>\r\n    {#if dateChosen} Chosen: {formattedSelected} {:else} Pick a date {/if}\r\n  </button>\r\n</Datepicker>\r\n\t
    \r\n\r\n\t
    \r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
    \r\n\r\n\t

    Without Svelte HTML:

    \r\n\t
    \r\n<div class='button-container'>\r\n  <button id='test'>My Custom Button</button>\r\n</div>\r\n\t
    \r\n\r\n\t

    Without Svelte JS:

    \r\n\t
    \r\nvar trigger = document.getElementById('test');\r\nvar cal = new SvelteCalendar({ \r\n  target: document.querySelector('.button-container'),\r\n  anchor: trigger, \r\n  props: {\r\n    trigger: trigger\r\n  }\r\n});\r\n\t
    \r\n\r\n\t
    \r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t
    \r\n\r\n\t

    You can confine the date selection range with start and end:

    \r\n\r\n\t
    \r\n\t\t\r\n\t
    \r\n\r\n\t

    Note: The calendar will only generate dates up until the end date, so it is recommended to set this value to whatever is useful for you.

    \r\n\r\n\t

    You can also provide a `selectableCallback` prop which can be used to mark individual days between `start` and `end` as selectable. This callback should accept a single date as an argument and return true (if selectable) or false (if unavailable).

    \r\n\r\n\t
    \r\n\t\t\r\n\t
    \r\n\r\n\t

    You can bind to the `dateSelected` event, which has a data property `date`:

    \r\n\t\r\n\t
    \r\n\t\t logChoice(e.detail.date)} />\r\n\t
    \r\n\r\n\t

    You can theme the datepicker:

    \r\n\t
    \r\n\t\t\r\n\t
    \r\n\t
    \r\n<Datepicker \r\n  format={dateFormat} \r\n  buttonBackgroundColor='#e20074'\r\n  buttonTextColor='white'\r\n  highlightColor='#e20074'\r\n  dayBackgroundColor='#efefef'\r\n  dayTextColor='#333'\r\n  dayHighlightedBackgroundColor='#e20074'\r\n  dayHighlightedTextColor='#fff'\r\n/>\r\n\t
    \r\n
    \r\n\r\n\r\n","import { polyfill } from 'es6-object-assign';\npolyfill();\nimport App from './App.svelte';\n\nconst app = new App({\n target: document.body,\n data: {}\n});\n\nexport default app;\n"],"names":["assign","target","firstSource","TypeError","to","Object","i","arguments","length","nextSource","keysArray","keys","nextIndex","len","nextKey","desc","getOwnPropertyDescriptor","undefined","enumerable","defineProperty","configurable","writable","value","noop","const","identity","x","tar","src","k","add_location","element","file","line","column","char","__svelte_meta","loc","run","fn","blank_object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","slot_ctx","get_slot_context","$$scope","get_slot_changes","changed","stylesheet","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","running","run_tasks","task","delete","size","loop","let","promise","Promise","fulfil","add","abort","append","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","setAttribute","set_data","set_style","key","style","setProperty","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","current_component","active","current_rules","create_rule","duration","delay","ease","uid","step","keyframes","p","t","rule","str","hash","charCodeAt","head","sheet","insertRule","cssRules","animation","delete_rule","split","filter","anim","indexOf","join","deleteRule","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","push","createEventDispatcher","callbacks","slice","call","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","schedule_update","then","flush","add_render_callback","add_flush_callback","seen_callbacks","shift","update","pop","callback","has","fragment","dirty","before_update","after_update","wait","dispatch","direction","kind","dispatchEvent","outros","outroing","transition_in","block","local","transition_out","o","c","globals","global","outro_and_destroy_block","lookup","bind","props","bound","mount_component","m","new_on_destroy","map","on_destroy","destroy_component","init","instance","create_fragment","not_equal","prop_names","parent_component","context","Map","ready","make_dirty","hydrate","l","Array","from","childNodes","children","intro","SvelteComponent","$destroy","this","$on","index","splice","$set","SvelteComponentDev","$$inline","super","console","warn","getCalendarPage","month","year","dayProps","date","setDate","getDate","getDay","nextMonth","weeks","getMonth","unshift","days","id","updated","partOfMonth","reverse","getDayPropsHandler","start","end","selectableCallback","today","setHours","selectable","isToday","getTime","areDatesEquivalent","getFullYear","cubicOut","f","fade","ref","getComputedStyle","opacity","css","fly","target_opacity","transform","od","easing","u","y","day","selected","highlighted","shouldShakeDate","click_handler","params","animation_name","config","cleanup","go","tick","start_time","end_time","started","invalidate","group","r","reset","week","visibleMonth","old_blocks","get_key","dynamic","list","destroy","create_each_block","next","get_context","n","old_indexes","new_blocks","new_lookup","deltas","child_ctx","get","set","Math","abs","will_move","did_move","first","new_block","old_block","new_key","old_key","lastId","monthDict","abbrev","dayDict","monthDefinition","click_handler_2","availableMonths","canDecrementMonth","canIncrementMonth","monthSelectorOpen","toggleMonthSelectorOpen","monthSelected","stopPropagation","isOnLowerBoundary","isOnUpperBoundary","translateX","translateY","open","shrink","doOpen","popover","w","triggerContainer","contentsAnimated","contentsWrapper","close","el","evt","apply","checkForFocusLoss","trigger","getDistanceToEdges","async","rect","getBoundingClientRect","top","bottom","innerHeight","left","right","body","clientWidth","dist","getTranslate","injectStringData","replace","RegExp","enforceLength","fromBack","toString","substring","dictionary","acceptedDateTokens","method","daysOfWeek","monthsOfYear","acceptedTimeTokens","getHours","getMinutes","getSeconds","formatDate","template","token","keyCodes","up","down","pgup","pgdown","enter","escape","tab","keyCodesArray","formattedSelected","visibleMonthId","isOpen","isClosing","registerOpen","registerClose","buttonBackgroundColor","buttonBorderColor","buttonTextColor","highlightColor","dayBackgroundColor","dayTextColor","dayHighlightedBackgroundColor","dayHighlightedTextColor","shakeHighlightTimeout","monthIndex","changeMonth","selectedMonth","incrementMonth","current","setMonth","incrementDayHighlighted","amount","lastVisibleDate","firstVisibleDate","checkIfVisibleDateIsSelectable","j","assignValueToTrigger","formatted","innerHTML","assignmentHandler","registerSelection","chosen","dateChosen","clearTimeout","setTimeout","handleKeyPress","keyCode","preventDefault","months","endDate","dayPropsHandler","getMonths","format","exampleFormatted","exampleChosen","dateFormat","threeDaysInPast","inThirtyDays","noWeekendsSelectableCallback","tomorrow","hljs","initHighlightingOnLoad","log","App"],"mappings":"gCAOA,SAASA,EAAOC,EAAQC,mBACtB,GAAID,MAAAA,EACF,MAAM,IAAIE,UAAU,2CAItB,IADA,IAAIC,EAAKC,OAAOJ,GACPK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAAaF,EAAUD,GAC3B,GAAIG,MAAAA,EAKJ,IADA,IAAIC,EAAYL,OAAOM,KAAKN,OAAOI,IAC1BG,EAAY,EAAGC,EAAMH,EAAUF,OAAQI,EAAYC,EAAKD,IAAa,CAC5E,IAAIE,EAAUJ,EAAUE,GACpBG,EAAOV,OAAOW,yBAAyBP,EAAYK,QAC1CG,IAATF,GAAsBA,EAAKG,aAC7Bd,EAAGU,GAAWL,EAAWK,KAI/B,OAAOV,EAcT,MAXA,WACOC,OAAOL,QACVK,OAAOc,eAAed,OAAQ,SAAU,CACtCa,YAAY,EACZE,cAAc,EACdC,UAAU,EACVC,MAAOtB,KCrCb,SAASuB,KACTC,IAAMC,WAAWC,UAAKA,GACtB,SAAS1B,EAAO2B,EAAKC,GAEjB,IAAKJ,IAAMK,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAKX,SAASG,EAAaC,EAASC,EAAMC,EAAMC,EA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AQD,EAAKE,UAAY,gBAC9B2M,EAAW7M,0CAnBuBA,UAA2B,IAAlBA,EAAKG,UAAoC,IAAlBH,EAAKG,gcA6BzE,SAAmBH,GAEjBN,QAAQsN,kBAAkBhN,+MClCjB,IAAIiN,GAAI,CAClBtc,OAAQ8F,SAASkR,KACjB/Q,KAAM"} \ No newline at end of file diff --git a/src/App.svelte b/src/App.svelte index f4d411d..073b14f 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -128,6 +128,32 @@ var cal = new SvelteCalendar({
    logChoice(e.detail.date)} />
    + +

    You can theme the datepicker:

    +
    + +
    +
    
    +<Datepicker 
    +  format={dateFormat} 
    +  buttonBackgroundColor='#e20074'
    +  buttonTextColor='white'
    +  highlightColor='#e20074'
    +  dayBackgroundColor='#efefef'
    +  dayTextColor='#333'
    +  dayHighlightedBackgroundColor='#e20074'
    +  dayHighlightedTextColor='#fff'
    +/>
    +