diff --git a/docs/bundle.css b/docs/bundle.css index 9283a98..9f68ce7 100644 --- a/docs/bundle.css +++ b/docs/bundle.css @@ -1,7 +1,7 @@ -.datepicker.svelte-1kuaxoc{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1kuaxoc{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-1kuaxoc,.svelte-1kuaxoc:before,.svelte-1kuaxoc:after{box-sizing:inherit}.calendar.svelte-1kuaxoc{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1kuaxoc{height:auto;width:340px;max-width:100%}}.legend.svelte-1kuaxoc{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1kuaxoc span.svelte-1kuaxoc{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-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} .heading-section.svelte-gfrd1b{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-gfrd1b{cursor:pointer}.month-selector.svelte-gfrd1b{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-gfrd1b{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-gfrd1b{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-gfrd1b{opacity:1}.month-selector--month.selectable.svelte-gfrd1b:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-gfrd1b{background:#f7901e;color:#fff}.month-selector--month.svelte-gfrd1b:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-gfrd1b span.svelte-gfrd1b{vertical-align:middle;display:inline-block}.control.svelte-gfrd1b{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-gfrd1b{opacity:1;cursor:pointer}.arrow.svelte-gfrd1b{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-gfrd1b{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-gfrd1b{transform:rotate(135deg);-webkit-transform:rotate(135deg)} -.popover.svelte-1abig9l{position:relative}.contents-wrapper.svelte-1abig9l{transform:translate(-50%, -50%);position:absolute;top:50%;left:50%;transition:none;z-index:2;display:none}.contents.svelte-1abig9l{background:#fff;box-shadow:0px 10px 26px rgba(0,0,0,0.4) ;opacity:.8;padding-top:0;display:none;animation:svelte-1abig9l-grow 200ms forwards cubic-bezier(.92,.09,.18,1.05)}.contents-inner.svelte-1abig9l{animation:svelte-1abig9l-fadeIn 400ms forwards}.contents-wrapper.visible.svelte-1abig9l{display:block}.contents-wrapper.visible.svelte-1abig9l .contents.svelte-1abig9l{opacity:1;transform:scale(1);display:block}.contents-wrapper.shrink.svelte-1abig9l .contents.svelte-1abig9l{animation:svelte-1abig9l-shrink 150ms forwards cubic-bezier(.92,.09,.18,1.05)}@keyframes svelte-1abig9l-grow{0%{transform:scale(.9,.1);opacity:0}30%{opacity:1}100%{transform:scale(1)}}@keyframes svelte-1abig9l-shrink{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{opacity:0;transform:scale(.9,.1)}}@keyframes svelte-1abig9l-fadeIn{0%{opacity:0}50%{opacity:0}100%{opacity:1}} -.week.svelte-7mtl66{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-7mtl66:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-7mtl66:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-7mtl66:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-7mtl66:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-7mtl66:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-7mtl66:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-7mtl66{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-7mtl66,.day.is-disabled.svelte-7mtl66{opacity:0.35}.day.svelte-7mtl66:before{content:'';float:left;padding-top:100%}.day--label.svelte-7mtl66{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-7mtl66{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-7mtl66,.day--label.svelte-7mtl66:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-7mtl66{animation:svelte-7mtl66-shake 0.4s 1 linear}.day--label.selected.svelte-7mtl66:hover,.day--label.selected.svelte-7mtl66,.day--label.svelte-7mtl66:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-7mtl66 .day--label.svelte-7mtl66,.day.is-today.svelte-7mtl66 .day--label.svelte-7mtl66:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-7mtl66-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} +.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-1p7wi7u{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-1p7wi7u:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-1p7wi7u:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-1p7wi7u:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-1p7wi7u:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-1p7wi7u:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-1p7wi7u:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-1p7wi7u{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-1p7wi7u,.day.is-disabled.svelte-1p7wi7u{opacity:0.35}.day.svelte-1p7wi7u:before{content:'';float:left;padding-top:100%}.day--label.svelte-1p7wi7u{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-1p7wi7u{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-1p7wi7u,.day--label.svelte-1p7wi7u:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-1p7wi7u{animation:svelte-1p7wi7u-shake 0.4s 1 linear}.day--label.selected.svelte-1p7wi7u:hover,.day--label.selected.svelte-1p7wi7u,.day--label.svelte-1p7wi7u:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-1p7wi7u .day--label.svelte-1p7wi7u,.day.is-today.svelte-1p7wi7u .day--label.svelte-1p7wi7u:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-1p7wi7u-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 676bbb5..1eb79f7 100644 --- a/docs/bundle.css.map +++ b/docs/bundle.css.map @@ -2,19 +2,19 @@ "version": 3, "file": "bundle.css", "sources": [ - "../src/Components/Datepicker.svelte", - "../src/Components/Month.svelte", - "../src/Components/NavBar.svelte", - "../src/Components/Popover.svelte", - "../src/Components/Week.svelte" + "..\\src\\Components\\Datepicker.svelte", + "..\\src\\Components\\NavBar.svelte", + "..\\src\\Components\\Month.svelte", + "..\\src\\Components\\Popover.svelte", + "..\\src\\Components\\Week.svelte" ], "sourcesContent": [ - "\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
\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
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\n", - "\n\n\n
\n
\n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n\n", - "\n\n
\n {#each days as day}\n
\n \n
\n {/each}\n
\n\n\n" + "\n\n
\n {#each visibleMonth.weeks as week (week.id) }\n \n {/each}\n
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/bundle.js b/docs/bundle.js index 991b33b..e450df9 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 o=Object(e),r=1;r0)&&m(y)}function k(e){var t;return b||(b=!0,m(y)),{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 D(e){e.parentNode.removeChild(e)}function S(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!B[p]){if(!f){var g=E("style");document.head.appendChild(g),f=g.sheet}B[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var v=e.style.animation||"";return e.style.animation=(v?v+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",Y+=1,p}function T(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);B={}}})}function A(e){N=e}function H(e){(function(){if(!N)throw new Error("Function called outside component initialization");return N})().$$.on_mount.push(e)}function L(){var e=N;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=j(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();A(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 we=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function be(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 ke(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=be);var i=t.x;void 0===i&&(i=0);var s=t.y;void 0===s&&(s=0);var c=t.opacity;void 0===c&&(c=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.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)*s+"px);\n\t\t\topacity: "+(l-u*t)}}}var $e="src/Components/Week.svelte";function Me(e,t,n){var o=Object.create(e);return o.day=t[n],o}function De(e){var t,n,o,r,s,c=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=E("div"),n=E("button"),o=_(c),r=P(),O(n,"class","day--label svelte-7mtl66"),O(n,"type","button"),W(n,"selected",we(e.day.date,e.selected)),W(n,"highlighted",we(e.day.date,e.highlighted)),W(n,"shake-date",e.shouldShakeDate&&we(e.day.date,e.shouldShakeDate)),W(n,"disabled",!e.day.selectable),i(n,$e,28,6,678),O(t,"class","day svelte-7mtl66"),W(t,"outside-month",!e.day.partOfMonth),W(t,"is-today",e.day.isToday),W(t,"is-disabled",!e.day.selectable),i(t,$e,22,4,519),s=x(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&&c!==(c=e.day.date.getDate())&&C(o,c),(r.areDatesEquivalent||r.days||r.selected)&&W(n,"selected",we(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&W(n,"highlighted",we(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&W(n,"shake-date",e.shouldShakeDate&&we(e.day.date,e.shouldShakeDate)),r.days&&(W(n,"disabled",!e.day.selectable),W(t,"outside-month",!e.day.partOfMonth),W(t,"is-today",e.day.isToday),W(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),s()}}}function Se(e){for(var t,r,s,c,d=e.days,u=[],h=0;h=m)return p(1,0),ne(e,!0,"end"),u(),a=!1;if(t>=g){var n=h((t-g)/l);p(n,1-n)}}return a})}var p=!1;return{start:function(){p||(T(e),l(c)?(c=c(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){a&&(u(),a=!1)}}}(t,ke,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),s=function(e,t,r){var i,s=t(e,r),c=!0,d=oe;function u(){var t=s||ce,r=t.delay;void 0===r&&(r=0);var l=t.duration;void 0===l&&(l=300);var u=t.easing;void 0===u&&(u=o);var h=t.tick;void 0===h&&(h=n);var p=t.css;p&&(i=F(e,1,0,l,r,u,p));var f=v()+r,g=f+l;U(function(){return ne(e,!1,"start")}),k(function(t){if(c){if(t>=g)return h(0,1),ne(e,!1,"end"),--d.r||a(d.c),!1;if(t>=f){var n=u((t-f)/l);h(1-n,n)}}return c})}return d.r+=1,l(s)?te().then(function(){s=s(),u()}):u(),{end:function(t){t&&s.tick&&s.tick(1,0),c&&(i&&T(e,i),c=!1)}}}(t,ye,{duration:180}),c=!1},d:function(e){e&&D(t),S(u,e),e&&s&&s.end()}}}function Ee(e,t,n){var o=L(),r=t.days,i=t.selected,s=t.start,c=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",s=e.start),"end"in e&&n("end",c=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:s,end:c,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var _e=function(e){function t(t){e.call(this,t),pe(this,t,Ee,Se,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}(ge),Pe="src/Components/Month.svelte";function xe(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Oe(e,t){var n,o,r=new _e({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=_(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),ue(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){se(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),he(r,e)}}}function Ce(e){for(var t,n,o=[],r=new Map,s=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(P)?(M.add(_),D(S)):($.add(P),h--):(a(E,s),h--)}for(;h--;){var x=e[h];m.has(x.key)||a(x,s)}for(;p;)D(v[p-1]);return v}(o,e,c,1,n,i,r,t,le,Oe,null,xe),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",s=e.selected),"start"in e&&n("start",c=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}(ge),je=[{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"}],Ne=[{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"}],Ye="src/Components/NavBar.svelte";function Be(e,t,n){var o=Object.create(e);return o.monthDefinition=t[n],o.index=n,o}function Fe(e){var t,n,o,r,s,c=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=E("div"),n=E("span"),o=_(c),r=P(),O(n,"class","svelte-gfrd1b"),i(n,Ye,67,8,1841),O(t,"class","month-selector--month svelte-gfrd1b"),W(t,"selected",e.index===e.month),W(t,"selectable",e.monthDefinition.selectable),i(t,Ye,61,6,1637),s=x(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&&c!==(c=e.monthDefinition.abbrev)&&C(o,c),n.month&&W(t,"selected",e.index===e.month),n.availableMonths&&W(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),s()}}}function Te(e){for(var t,o,r,s,c,l,d,u,h,p,f,g,v,m,w,b=je[e.month].name,y=e.availableMonths,k=[],I=0;I was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",i=e.month),"start"in e&&n("start",s=e.start),"end"in e&&n("end",c=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=s.getFullYear()===a,r=c.getFullYear()===a;n("availableMonths",o=je.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=s.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:i,start:s,end:c,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 He=function(e){function t(t){e.call(this,t),pe(this,t,Ae,Te,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}(ge),Le=ae.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,s,c,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Xe),v=e.$$slots.contents,m=u(v,e,ze);return{c:function(){t=E("div"),n=E("div"),g&&g.c(),o=P(),r=E("div"),s=E("div"),c=E("div"),m&&m.c(),O(n,"class","trigger"),i(n,Je,102,2,2323),O(c,"class","contents-inner svelte-1abig9l"),i(c,Je,113,6,2710),O(s,"class","contents svelte-1abig9l"),i(s,Je,112,4,2652),O(r,"class","contents-wrapper svelte-1abig9l"),I(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),W(r,"visible",e.open),W(r,"shrink",e.shrink),i(r,Je,106,2,2441),O(t,"class","popover svelte-1abig9l"),i(t,Je,101,0,2279),d=[x(Le,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),m&&m.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,s),$(s,c),m&&m.m(c,null),e.div2_binding(s),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)),m&&m.p&&e.$$scope&&m.p(p(v,t,e,qe),h(v,t,ze)),(!l||e.translateX||e.translateY)&&I(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&W(r,"visible",t.open),e.shrink&&W(r,"shrink",t.shrink)},i:function(e){l||(ie(g,e),ie(m,e),l=!0)},o:function(e){se(g,e),se(m,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),m&&m.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,s,c,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=s).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()}}H(function(){if(document.addEventListener("click",g),p)return i.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var v=async function(){u||n("open",u=!0),await(Q(),G);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}},m=["open","shrink","trigger"];Object.keys(t).forEach(function(e){m.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:s,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 v();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",s=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 Qe=function(e){function t(t){e.call(this,t),pe(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}(ge),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 st(e,t,n){var o=Object.create(e);return o.day=t[n],o}function ct(e){var t,n;return{c:function(){t=E("button"),n=_(e.formattedSelected),O(t,"class","calendar-button svelte-1kuaxoc"),O(t,"type","button"),i(t,it,202,8,5384)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&C(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function at(e){var t,n,o=e.$$slots.default,r=u(o,e,null),s=!e.trigger&&ct(e);return{c:function(){t=E("div"),r||s&&s.c(),r&&r.c(),O(t,"slot","trigger"),O(t,"class","svelte-1kuaxoc"),i(t,it,199,4,5319)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):s&&s.m(t,null),n=!0},p:function(e,n){r||(n.trigger?s&&(s.d(1),s=null):s?s.p(e,n):((s=ct(n)).c(),s.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){se(r,e),n=!1},d:function(e){e&&D(t),r||s&&s.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=E("span"),o=_(r),O(t,"class","svelte-1kuaxoc"),i(t,it,215,10,5845)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function dt(e){var t,n,o,r,s,c,a=new He({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=Ne,d=[],u=0;u0&&f>Y?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var I=t.$$slots;void 0===I&&(I={});var W,j,N,Y,B,F,T,A=t.$$scope;return e.$set=function(e){"format"in e&&n("format",s=e.format),"start"in e&&n("start",c=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),"$$scope"in e&&n("$$scope",A=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,selected:1,format:1}),(e.start||e.end||e.selectableCallback)&&n("months",W=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),s=me(e,t,n);i0),(e.selected||e.format)&&n("formattedSelected",k=nt(l,s))},{popover:o,format:s,start:c,end:a,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:v,year:m,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:_,registerClose:x,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",v=l.getMonth()),n("year",m=l.getFullYear()),document.addEventListener("keydown",P),r("open")},visibleMonth:j,visibleMonthId:N,canIncrementMonth:F,canDecrementMonth:T,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(e.detail)},dateSelected_handler:function(e){return _(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:I,$$scope:A}}var ft=function(e){function t(t){e.call(this,t),pe(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"]);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}};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 ''")},Object.defineProperties(t.prototype,n),t}(ge);return t(),ft}(); +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)&&m(y)}function k(e){var t;return b||(b=!0,m(y)),{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 D(e){e.parentNode.removeChild(e)}function S(e,t){for(var n=0;n>>0}(h)+"_"+c;if(!B[p]){if(!f){var g=E("style");document.head.appendChild(g),f=g.sheet}B[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var v=e.style.animation||"";return e.style.animation=(v?v+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",Y+=1,p}function T(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);B={}}})}function A(e){N=e}function H(e){(function(){if(!N)throw new Error("Function called outside component initialization");return N})().$$.on_mount.push(e)}function L(){var e=N;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=j(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();A(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 me=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 s=t.x;void 0===s&&(s=0);var i=t.y;void 0===i&&(i=0);var c=t.opacity;void 0===c&&(c=0);var a=getComputedStyle(e),l=+a.opacity,d="none"===a.transform?"":a.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)*s+"px, "+(1-e)*i+"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,i,c=e.day.date.getDate();function a(){return e.click_handler(e)}return{c:function(){t=E("div"),n=E("button"),o=_(c),r=P(),O(n,"class","day--label svelte-1p7wi7u"),O(n,"type","button"),W(n,"selected",me(e.day.date,e.selected)),W(n,"highlighted",me(e.day.date,e.highlighted)),W(n,"shake-date",e.shouldShakeDate&&me(e.day.date,e.shouldShakeDate)),W(n,"disabled",!e.day.selectable),s(n,ke,28,6,692),O(t,"class","day svelte-1p7wi7u"),W(t,"outside-month",!e.day.partOfMonth),W(t,"is-today",e.day.isToday),W(t,"is-disabled",!e.day.selectable),s(t,ke,22,4,527),i=x(n,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(r,s){e=s,r.days&&c!==(c=e.day.date.getDate())&&C(o,c),(r.areDatesEquivalent||r.days||r.selected)&&W(n,"selected",me(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&W(n,"highlighted",me(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&W(n,"shake-date",e.shouldShakeDate&&me(e.day.date,e.shouldShakeDate)),r.days&&(W(n,"disabled",!e.day.selectable),W(t,"outside-month",!e.day.partOfMonth),W(t,"is-today",e.day.isToday),W(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function De(e){for(var t,r,i,c,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||(T(e),l(c)?(c=c(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){a&&(u(),a=!1)}}}(t,ye,{x:50*e.direction,duration:180,delay:90})),r.start()}),c=!0)},o:function(e){r&&r.invalidate(),i=function(e,t,r){var s,i=t(e,r),c=!0,d=oe;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&&(s=F(e,1,0,r,t,l,h));var p=v()+t,f=p+r;U(function(){return ne(e,!1,"start")}),k(function(t){if(c){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 c})}return d.r+=1,l(i)?te().then(function(){i=i(),u()}):u(),{end:function(t){t&&i.tick&&i.tick(1,0),c&&(s&&T(e,s),c=!1)}}}(t,be,{duration:180}),c=!1},d:function(e){e&&D(t),S(u,e),e&&i&&i.end()}}}function Se(e,t,n){var o=L(),r=t.days,s=t.selected,i=t.start,c=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",s=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",c=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:s,start:i,end:c,highlighted:a,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Ee=function(e){function t(t){e.call(this,t),he(this,t,Se,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),_e="src\\Components\\Month.svelte";function Pe(e,t,n){var o=Object.create(e);return o.week=t[n],o}function xe(e,t){var n,o,r=new Ee({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=_(""),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||(se(r.$$.fragment,e),o=!0)},o:function(e){ie(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),ue(r,e)}}}function Oe(e){for(var t,n,o=[],r=new Map,i=e.visibleMonth.weeks,c=function(e){return e.week.id},l=0;lw.get(P)?(M.add(_),D(S)):($.add(P),h--):(a(E,i),h--)}for(;h--;){var x=e[h];m.has(x.key)||a(x,i)}for(;p;)D(v[p-1]);return v}(o,e,c,1,n,s,r,t,ae,xe,null,Pe),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",s=e.visibleMonth),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",c=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),We=[{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"}],je=[{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"}],Ne="src\\Components\\NavBar.svelte";function Ye(e,t,n){var o=Object.create(e);return o.monthDefinition=t[n],o.index=n,o}function Be(e){var t,n,o,r,i,c=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=E("div"),n=E("span"),o=_(c),r=P(),O(n,"class","svelte-gfrd1b"),s(n,Ne,67,8,1841),O(t,"class","month-selector--month svelte-gfrd1b"),W(t,"selected",e.index===e.month),W(t,"selectable",e.monthDefinition.selectable),s(t,Ne,61,6,1637),i=x(t,"click",a)},m:function(e,s){M(e,t,s),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&c!==(c=e.monthDefinition.abbrev)&&C(o,c),n.month&&W(t,"selected",e.index===e.month),n.availableMonths&&W(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),i()}}}function Fe(e){for(var t,o,r,i,c,l,d,u,h,p,f,g,v,m,w,b=We[e.month].name,y=e.availableMonths,k=[],I=0;I was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",s=e.month),"start"in e&&n("start",i=e.start),"end"in e&&n("end",c=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=i.getFullYear()===a,r=c.getFullYear()===a;n("availableMonths",o=We.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=i.getMonth())&&(!r||n<=c.getMonth())})}))}},{dispatch:r,month:s,start:i,end:c,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,Te,Fe,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),He=ce.window,Le="src\\Components\\Popover.svelte",Je=function(){return{}},qe=function(){return{}},ze=function(){return{}},Re=function(){return{}};function Xe(e){var t,n,o,r,i,c,l,d;U(e.onwindowresize);var f=e.$$slots.trigger,g=u(f,e,Re),v=e.$$slots.contents,m=u(v,e,qe);return{c:function(){t=E("div"),n=E("div"),g&&g.c(),o=P(),r=E("div"),i=E("div"),c=E("div"),m&&m.c(),O(n,"class","trigger"),s(n,Le,102,2,2428),O(c,"class","contents-inner svelte-1wmex1c"),s(c,Le,113,6,2826),O(i,"class","contents svelte-1wmex1c"),s(i,Le,112,4,2767),O(r,"class","contents-wrapper svelte-1wmex1c"),I(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),W(r,"visible",e.open),W(r,"shrink",e.shrink),s(r,Le,106,2,2550),O(t,"class","sc-popover svelte-1wmex1c"),s(t,Le,101,0,2380),d=[x(He,"resize",e.onwindowresize),x(n,"click",e.doOpen)]},l:function(e){throw g&&g.l(div0_nodes),m&&m.l(div1_nodes),new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(s,a){M(s,t,a),$(t,n),g&&g.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,i),$(i,c),m&&m.m(c,null),e.div2_binding(i),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,ze),h(f,t,Re)),m&&m.p&&e.$$scope&&m.p(p(v,t,e,Je),h(v,t,qe)),(!l||e.translateX||e.translateY)&&I(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&W(r,"visible",t.open),e.shrink&&W(r,"shrink",t.shrink)},i:function(e){l||(se(g,e),se(m,e),l=!0)},o:function(e){ie(g,e),ie(m,e),l=!1},d:function(n){n&&D(t),g&&g.d(n),e.div0_binding(null),m&&m.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),a(d)}}}function Ge(e,t,n){var o,r,s,i,c,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=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);f()}}H(function(){if(document.addEventListener("click",g),p)return s.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",g)}});var v=async function(){u||n("open",u=!0),await(Q(),G);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}},m=["open","shrink","trigger"];Object.keys(t).forEach(function(e){m.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:s,contentsAnimated:i,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 v();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=He.innerWidth,n("w",r)},div0_binding:function(e){z[e?"unshift":"push"](function(){n("triggerContainer",s=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:w,$$scope:b}}var Ke=function(e){function t(t){e.call(this,t),he(this,t,Ge,Xe,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),Qe=function(e,t,n){return e.replace(new RegExp("#{"+t+"}","g"),n)},Ue=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},Ve={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ze=[{key:"d",method:function(e){return Ue(e.getDate(),2)}},{key:"D",method:function(e){return Ue(Ve.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Ve.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Ve.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Ue(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ue(Ve.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 Ue(e.getFullYear(),2,!0)}}],et=[{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 Ue(e.getHours()%12||12,2)}},{key:"H",method:function(e){return Ue(e.getHours(),2)}},{key:"i",method:function(e){return Ue(e.getMinutes(),2)}},{key:"s",method:function(e){return Ue(e.getSeconds(),2)}}],tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Qe(t,n.key,n.method(e)))}),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Qe(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function st(e,t,n){var o=Object.create(e);return o.day=t[n],o}function it(e){var t,n;return{c:function(){t=E("button"),n=_(e.formattedSelected),O(t,"class","calendar-button svelte-1rg21xy"),O(t,"type","button"),s(t,rt,202,8,5586)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&C(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function ct(e){var t,n,o=e.$$slots.default,r=u(o,e,null),i=!e.trigger&&it(e);return{c:function(){t=E("div"),r||i&&i.c(),r&&r.c(),O(t,"slot","trigger"),O(t,"class","svelte-1rg21xy"),s(t,rt,199,4,5518)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){r||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=it(n)).c(),i.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(se(r,e),n=!0)},o:function(e){ie(r,e),n=!1},d:function(e){e&&D(t),r||i&&i.d(),r&&r.d(e)}}}function at(e){var t,o,r=e.day.abbrev;return{c:function(){t=E("span"),o=_(r),O(t,"class","svelte-1rg21xy"),s(t,rt,215,10,6060)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function lt(e){var t,n,o,r,i,c,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=je,d=[],u=0;u0&&f>Y?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var I=t.$$slots;void 0===I&&(I={});var W,j,N,Y,B,F,T,A=t.$$scope;return e.$set=function(e){"format"in e&&n("format",i=e.format),"start"in e&&n("start",c=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),"$$scope"in e&&n("$$scope",A=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,selected:1,format:1}),(e.start||e.end||e.selectableCallback)&&n("months",W=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=[],s=new Date(e.getFullYear(),e.getMonth(),1),i=ve(e,t,n);s0),(e.selected||e.format)&&n("formattedSelected",k=tt(l,i))},{popover:o,format:i,start:c,end:a,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:g,month:v,year:m,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:_,registerClose:x,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",v=l.getMonth()),n("year",m=l.getFullYear()),document.addEventListener("keydown",P),r("open")},visibleMonth:j,visibleMonthId:N,canIncrementMonth:F,canDecrementMonth:T,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(e.detail)},dateSelected_handler:function(e){return _(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:I,$$scope:A}}var pt=function(e){function t(t){e.call(this,t),he(this,t,ht,ut,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"]);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}};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 ''")},Object.defineProperties(t.prototype,n),t}(fe);return t(),pt}(); //# sourceMappingURL=bundle.js.map diff --git a/docs/bundle.js.map b/docs/bundle.js.map index 7dfb3b5..cef0bf8 100644 --- a/docs/bundle.js.map +++ b/docs/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/.registry.npmjs.org/es6-object-assign/1.1.0/node_modules/es6-object-assign/index.js","../node_modules/.registry.npmjs.org/svelte/3.7.1/node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/.registry.npmjs.org/svelte/3.7.1/node_modules/svelte/easing/index.mjs","../node_modules/.registry.npmjs.org/svelte/3.7.1/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/.registry.npmjs.org/timeUtils/1.1.5/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 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}\nclass HtmlTag {\n constructor(html, anchor = null) {\n this.e = element('div');\n this.a = anchor;\n this.u(html);\n }\n m(target, anchor = null) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(target, this.n[i], anchor);\n }\n this.t = target;\n }\n u(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n p(html) {\n this.d();\n this.u(html);\n this.m(this.t, this.a);\n }\n d() {\n this.n.forEach(detach);\n }\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}\nconst null_transition = { duration: 0 };\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 || null_transition;\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 || null_transition;\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 || null_transition;\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 { HtmlTag, 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, 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 weeks[0].days.push({\n partOfMonth: date.getMonth() === month,\n date: new Date(date),\n ...dayProps(date)\n });\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","\n\n
\n {#each days as day}\n
\n \n
\n {/each}\n
\n\n\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","\n\n
\n
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\n","\n\n\n
\n
\n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n\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","null_transition","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","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,EAAG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mK,EAAalZ,8CAIhByS,EAAeiI,EAAOxB,0CAEtBN,EAAiB7J,EAAOD,EAAQ,sBAChC4K,EAAkBjH,EAAanD,MAAMmD,EAAanD,MAAMpP,OAAS,GAAGuP,KAAK,GAAGR,uBAC5E0K,EAAmBlH,EAAanD,MAAM,GAAGG,KAAK,GAAGR,sDACjD0F,EAAoBuE,EAAawB,EAAOxa,OAAS,uCACjDwU,EAAoBwE,EAAa,iDAIlCP,EAAoBZ,GAAWxG,EAAUuJ,sQAyH3C,2BACEtJ,EAnGO,IAAI/N,KAAK8N,cAoGhBzC,EAAQyC,EAAShC,qBACjBR,EAAOwC,EAAShB,eAChB9K,SAASU,iBAAiB,UAAWoU,GACrCjP,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 weeks[0].days.push({\n partOfMonth: date.getMonth() === month,\n date: new Date(date),\n ...dayProps(date)\n });\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","\n\n
\n
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\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","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","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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K,EAAmBlH,EAAanD,MAAM,GAAGG,KAAK,GAAGR,sDACjD0F,EAAoBuE,EAAawB,EAAOva,OAAS,uCACjDuU,EAAoBwE,EAAa,iDAIlCP,EAAoBZ,GAAWxG,EAAUuJ,sQAyH3C,2BACEtJ,EAnGO,IAAI9N,KAAK6N,cAoGhBzC,EAAQyC,EAAShC,qBACjBR,EAAOwC,EAAShB,eAChB7K,SAASU,iBAAiB,UAAWmU,GACrChP,EAAS"} \ No newline at end of file diff --git a/docs/test.css b/docs/test.css index 0dbf2c6..e7f53cd 100644 --- a/docs/test.css +++ b/docs/test.css @@ -1,8 +1,8 @@ h1.svelte-1k5b0sf{text-align:center;margin:100px 0}.container.svelte-1k5b0sf{background:#eee;padding:15px;max-width:100%;width:800px;margin:0 auto}.custom-button.svelte-1k5b0sf{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-1k5b0sf{text-align:center}.note.svelte-1k5b0sf{color:tomato} -.datepicker.svelte-1kuaxoc{display:inline-block;margin:0 auto;text-align:center;overflow:visible}.calendar-button.svelte-1kuaxoc{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-1kuaxoc,.svelte-1kuaxoc:before,.svelte-1kuaxoc:after{box-sizing:inherit}.calendar.svelte-1kuaxoc{box-sizing:border-box;position:relative;overflow:hidden;user-select:none;width:100vw;padding:10px;padding-top:0}@media(min-width: 480px){.calendar.svelte-1kuaxoc{height:auto;width:340px;max-width:100%}}.legend.svelte-1kuaxoc{color:#4a4a4a;padding:10px 0;margin-bottom:5px}.legend.svelte-1kuaxoc span.svelte-1kuaxoc{width:14.285714%;display:inline-block;text-align:center} +.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} +.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-gfrd1b{font-size:20px;padding:24px 15px;display:flex;justify-content:space-between;color:#3d4548;font-weight:bold}.label.svelte-gfrd1b{cursor:pointer}.month-selector.svelte-gfrd1b{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-gfrd1b{transform:scale(1);visibility:visible;opacity:1}.month-selector--month.svelte-gfrd1b{width:31.333%;margin:.5%;height:23%;display:inline-block;color:#4a4a4a;border:1px solid #efefef;opacity:0.2}.month-selector--month.selectable.svelte-gfrd1b{opacity:1}.month-selector--month.selectable.svelte-gfrd1b:hover{cursor:pointer;box-shadow:0px 0px 3px rgba(0,0,0,0.15)}.month-selector--month.selected.svelte-gfrd1b{background:#f7901e;color:#fff}.month-selector--month.svelte-gfrd1b:before{content:' ';display:inline-block;height:100%;vertical-align:middle}.month-selector--month.svelte-gfrd1b span.svelte-gfrd1b{vertical-align:middle;display:inline-block}.control.svelte-gfrd1b{padding:0 8px;opacity:0.2;transform:translateY(3px)}.control.enabled.svelte-gfrd1b{opacity:1;cursor:pointer}.arrow.svelte-gfrd1b{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-gfrd1b{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.arrow.left.svelte-gfrd1b{transform:rotate(135deg);-webkit-transform:rotate(135deg)} -.popover.svelte-1abig9l{position:relative}.contents-wrapper.svelte-1abig9l{transform:translate(-50%, -50%);position:absolute;top:50%;left:50%;transition:none;z-index:2;display:none}.contents.svelte-1abig9l{background:#fff;box-shadow:0px 10px 26px rgba(0,0,0,0.4) ;opacity:.8;padding-top:0;display:none;animation:svelte-1abig9l-grow 200ms forwards cubic-bezier(.92,.09,.18,1.05)}.contents-inner.svelte-1abig9l{animation:svelte-1abig9l-fadeIn 400ms forwards}.contents-wrapper.visible.svelte-1abig9l{display:block}.contents-wrapper.visible.svelte-1abig9l .contents.svelte-1abig9l{opacity:1;transform:scale(1);display:block}.contents-wrapper.shrink.svelte-1abig9l .contents.svelte-1abig9l{animation:svelte-1abig9l-shrink 150ms forwards cubic-bezier(.92,.09,.18,1.05)}@keyframes svelte-1abig9l-grow{0%{transform:scale(.9,.1);opacity:0}30%{opacity:1}100%{transform:scale(1)}}@keyframes svelte-1abig9l-shrink{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{opacity:0;transform:scale(.9,.1)}}@keyframes svelte-1abig9l-fadeIn{0%{opacity:0}50%{opacity:0}100%{opacity:1}} -.week.svelte-7mtl66{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-7mtl66:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-7mtl66:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-7mtl66:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-7mtl66:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-7mtl66:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-7mtl66:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-7mtl66{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-7mtl66,.day.is-disabled.svelte-7mtl66{opacity:0.35}.day.svelte-7mtl66:before{content:'';float:left;padding-top:100%}.day--label.svelte-7mtl66{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-7mtl66{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-7mtl66,.day--label.svelte-7mtl66:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-7mtl66{animation:svelte-7mtl66-shake 0.4s 1 linear}.day--label.selected.svelte-7mtl66:hover,.day--label.selected.svelte-7mtl66,.day--label.svelte-7mtl66:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-7mtl66 .day--label.svelte-7mtl66,.day.is-today.svelte-7mtl66 .day--label.svelte-7mtl66:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-7mtl66-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)}} +.week.svelte-1p7wi7u{padding:0;margin:0;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-flow:row;justify-content:space-around;-ms-grid-column:1;grid-column:1}.week.svelte-1p7wi7u:nth-child(6n + 1){-ms-grid-row:1;grid-row:1}.week.svelte-1p7wi7u:nth-child(6n + 2){-ms-grid-row:2;grid-row:2}.week.svelte-1p7wi7u:nth-child(6n + 3){-ms-grid-row:3;grid-row:3}.week.svelte-1p7wi7u:nth-child(6n + 4){-ms-grid-row:4;grid-row:4}.week.svelte-1p7wi7u:nth-child(6n + 5){-ms-grid-row:5;grid-row:5}.week.svelte-1p7wi7u:nth-child(6n + 6){-ms-grid-row:6;grid-row:6}.day.svelte-1p7wi7u{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-1p7wi7u,.day.is-disabled.svelte-1p7wi7u{opacity:0.35}.day.svelte-1p7wi7u:before{content:'';float:left;padding-top:100%}.day--label.svelte-1p7wi7u{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-1p7wi7u{cursor:default}@media(min-width: 480px){.day--label.highlighted.svelte-1p7wi7u,.day--label.svelte-1p7wi7u:not(.disabled):hover{background:#efefef;border-color:#efefef}}.day--label.shake-date.svelte-1p7wi7u{animation:svelte-1p7wi7u-shake 0.4s 1 linear}.day--label.selected.svelte-1p7wi7u:hover,.day--label.selected.svelte-1p7wi7u,.day--label.svelte-1p7wi7u:active:not(.disabled){background-color:#f7901e;border-color:#f7901e;color:#fff}.day.is-today.svelte-1p7wi7u .day--label.svelte-1p7wi7u,.day.is-today.svelte-1p7wi7u .day--label.svelte-1p7wi7u:hover{opacity:1;background:none;border-color:#f7901e;color:#000}@keyframes svelte-1p7wi7u-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 9907fe6..417dd3f 100644 --- a/docs/test.css.map +++ b/docs/test.css.map @@ -2,21 +2,21 @@ "version": 3, "file": "test.css", "sources": [ - "../src/App.svelte", - "../src/Components/Datepicker.svelte", - "../src/Components/Month.svelte", - "../src/Components/NavBar.svelte", - "../src/Components/Popover.svelte", - "../src/Components/Week.svelte" + "..\\src\\App.svelte", + "..\\src\\Components\\Datepicker.svelte", + "..\\src\\Components\\Month.svelte", + "..\\src\\Components\\Popover.svelte", + "..\\src\\Components\\NavBar.svelte", + "..\\src\\Components\\Week.svelte" ], "sourcesContent": [ "\n\n

SvelteCalendar

\n
\n\t

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

\n\n\t\n\t\n\n\t

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

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

\n\n\t

With Svelte:

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

Without Svelte HTML:

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

Without Svelte JS:

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

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

\n\n\t
\n\t\t\n\t
\n\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.

\n\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).

\n\n\t
\n\t\t\n\t
\n\n\t

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

\n\t\n\t
\n\t\t logChoice(e.detail.date)} />\n\t
\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
\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", + "\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\n
\n
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\n", - "\n\n\n
\n
\n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n\n", - "\n\n
\n {#each days as day}\n
\n \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": "AAqIC,EAAE,eAAC,CAAC,AACH,UAAU,CAAE,MAAM,CAClB,MAAM,CAAE,KAAK,CAAC,CAAC,AAChB,CAAC,AACD,UAAU,eAAC,CAAC,AACV,UAAU,CAAE,IAAI,CACjB,OAAO,CAAE,IAAI,CACb,SAAS,CAAE,IAAI,CACf,KAAK,CAAE,KAAK,CACZ,MAAM,CAAE,CAAC,CAAC,IAAI,AACf,CAAC,AACD,cAAc,eAAC,CAAC,AACd,OAAO,CAAE,YAAY,CACrB,UAAU,CAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAC5B,KAAK,CAAE,IAAI,CACX,MAAM,CAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAClC,UAAU,CAAE,MAAM,CAClB,OAAO,CAAE,IAAI,CAAC,IAAI,CAClB,MAAM,CAAE,OAAO,AACjB,CAAC,AACD,YAAY,eAAC,CAAC,AACZ,UAAU,CAAE,MAAM,AACpB,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V,UAAU,CAAE,IAAI,CAChB,YAAY,CAAE,OAAO,CACrB,KAAK,CAAE,IAAI,AACb,CAAC,AAED,WAAW,oBAAM,CAAC,AAChB,EAAE,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,GAAG,CAAC,AAAE,CAAC,AACjC,GAAG,AAAC,CAAC,AAAC,SAAS,CAAE,UAAU,IAAI,CAAC,AAAE,CAAC,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 39ecaf2..a4c565e 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)&&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 M(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function S(e,t){for(var n=0;n>>0}(h)+"_"+s;if(!N[p]){if(!f){var m=x("style");document.head.appendChild(m),f=m.sheet}N[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",T+=1,p}function B(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&&v(function(){if(!T){for(var e=f.cssRules.length;e--;)f.deleteRule(e);N={}}})}function A(e){F=e}function H(e){(function(){if(!F)throw new Error("Function called outside component initialization");return F})().$$.on_mount.push(e)}function L(){var e=F;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=j(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();A(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 we=function(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()};function be(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 ke(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=be);var a=t.x;void 0===a&&(a=0);var i=t.y;void 0===i&&(i=0);var s=t.opacity;void 0===s&&(s=0);var c=getComputedStyle(e),l=+c.opacity,d="none"===c.transform?"":c.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)*a+"px, "+(1-e)*i+"px);\n\t\t\topacity: "+(l-u*t)}}}var $e="src/Components/Week.svelte";function Me(e,t,n){var o=Object.create(e);return o.day=t[n],o}function De(e){var t,n,o,r,i,s=e.day.date.getDate();function c(){return e.click_handler(e)}return{c:function(){t=x("div"),n=x("button"),o=C(s),r=_(),P(n,"class","day--label svelte-7mtl66"),P(n,"type","button"),I(n,"selected",we(e.day.date,e.selected)),I(n,"highlighted",we(e.day.date,e.highlighted)),I(n,"shake-date",e.shouldShakeDate&&we(e.day.date,e.shouldShakeDate)),I(n,"disabled",!e.day.selectable),a(n,$e,28,6,678),P(t,"class","day svelte-7mtl66"),I(t,"outside-month",!e.day.partOfMonth),I(t,"is-today",e.day.isToday),I(t,"is-disabled",!e.day.selectable),a(t,$e,22,4,519),i=E(n,"click",c)},m:function(e,a){M(e,t,a),$(t,n),$(n,o),$(t,r)},p:function(r,a){e=a,r.days&&s!==(s=e.day.date.getDate())&&O(o,s),(r.areDatesEquivalent||r.days||r.selected)&&I(n,"selected",we(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&I(n,"highlighted",we(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&I(n,"shake-date",e.shouldShakeDate&&we(e.day.date,e.shouldShakeDate)),r.days&&(I(n,"disabled",!e.day.selectable),I(t,"outside-month",!e.day.partOfMonth),I(t,"is-today",e.day.isToday),I(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function Se(e){for(var t,r,i,s,d=e.days,u=[],h=0;h=v)return p(1,0),ne(e,!0,"end"),u(),c=!1;if(t>=m){var n=h((t-m)/l);p(n,1-n)}}return c})}var p=!1;return{start:function(){p||(B(e),l(s)?(s=s(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){c&&(u(),c=!1)}}}(t,ke,{x:50*e.direction,duration:180,delay:90})),r.start()}),s=!0)},o:function(e){r&&r.invalidate(),i=function(e,t,r){var a,i=t(e,r),s=!0,d=oe;function u(){var t=i||se,r=t.delay;void 0===r&&(r=0);var l=t.duration;void 0===l&&(l=300);var u=t.easing;void 0===u&&(u=o);var h=t.tick;void 0===h&&(h=n);var p=t.css;p&&(a=Y(e,1,0,l,r,u,p));var f=g()+r,m=f+l;V(function(){return ne(e,!1,"start")}),k(function(t){if(s){if(t>=m)return h(0,1),ne(e,!1,"end"),--d.r||c(d.c),!1;if(t>=f){var n=u((t-f)/l);h(1-n,n)}}return s})}return d.r+=1,l(i)?te().then(function(){i=i(),u()}):u(),{end:function(t){t&&i.tick&&i.tick(1,0),s&&(a&&B(e,a),s=!1)}}}(t,ye,{duration:180}),s=!1},d:function(e){e&&D(t),S(u,e),e&&i&&i.end()}}}function xe(e,t,n){var o=L(),r=t.days,a=t.selected,i=t.start,s=t.end,c=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",a=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",c=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:a,start:i,end:s,highlighted:c,shouldShakeDate:l,direction:d,click_handler:function(e){var t=e.day;return o("dateSelected",t.date)}}}var Ce=function(e){function t(t){e.call(this,t),pe(this,t,xe,Se,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}(me),_e="src/Components/Month.svelte";function Ee(e,t,n){var o=Object.create(e);return o.week=t[n],o}function Pe(e,t){var n,o,r=new Ce({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=C(""),r.$$.fragment.c(),this.first=n},m:function(e,t){M(e,n,t),ue(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||(ae(r.$$.fragment,e),o=!0)},o:function(e){ie(r.$$.fragment,e),o=!1},d:function(e){e&&D(n),he(r,e)}}}function Oe(e){for(var t,n,o=[],r=new Map,i=e.visibleMonth.weeks,s=function(e){return e.week.id},l=0;lw.get(_)?(M.add(C),D(S)):($.add(_),h--):(c(x,i),h--)}for(;h--;){var E=e[h];v.has(E.key)||c(E,i)}for(;p;)D(g[p-1]);return g}(o,e,s,1,n,a,r,t,le,Pe,null,Ee),oe.r||c(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",a=e.visibleMonth),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",s=e.start),"end"in e&&n("end",c=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}(me),je=[{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"}],Fe=[{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"}],Te="src/Components/NavBar.svelte";function Ne(e,t,n){var o=Object.create(e);return o.monthDefinition=t[n],o.index=n,o}function Ye(e){var t,n,o,r,i,s=e.monthDefinition.abbrev;function c(){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=C(s),r=_(),P(n,"class","svelte-gfrd1b"),a(n,Te,67,8,1841),P(t,"class","month-selector--month svelte-gfrd1b"),I(t,"selected",e.index===e.month),I(t,"selectable",e.monthDefinition.selectable),a(t,Te,61,6,1637),i=E(t,"click",c)},m:function(e,a){M(e,t,a),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&s!==(s=e.monthDefinition.abbrev)&&O(o,s),n.month&&I(t,"selected",e.index===e.month),n.availableMonths&&I(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),i()}}}function Be(e){for(var t,o,r,i,s,l,d,u,h,p,f,m,g,v,w,b=je[e.month].name,y=e.availableMonths,k=[],W=0;W was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",a=e.month),"start"in e&&n("start",i=e.start),"end"in e&&n("end",s=e.end),"year"in e&&n("year",c=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=i.getFullYear()===c,r=s.getFullYear()===c;n("availableMonths",o=je.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=i.getMonth())&&(!r||n<=s.getMonth())})}))}},{dispatch:r,month:a,start:i,end:s,year:c,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 He=function(e){function t(t){e.call(this,t),pe(this,t,Ae,Be,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}(me),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,i,s,l,d;V(e.onwindowresize);var f=e.$$slots.trigger,m=u(f,e,Xe),g=e.$$slots.contents,v=u(g,e,ze);return{c:function(){t=x("div"),n=x("div"),m&&m.c(),o=_(),r=x("div"),i=x("div"),s=x("div"),v&&v.c(),P(n,"class","trigger"),a(n,Je,102,2,2323),P(s,"class","contents-inner svelte-1abig9l"),a(s,Je,113,6,2710),P(i,"class","contents svelte-1abig9l"),a(i,Je,112,4,2652),P(r,"class","contents-wrapper svelte-1abig9l"),W(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),I(r,"visible",e.open),I(r,"shrink",e.shrink),a(r,Je,106,2,2441),P(t,"class","popover svelte-1abig9l"),a(t,Je,101,0,2279),d=[E(Le,"resize",e.onwindowresize),E(n,"click",e.doOpen)]},l:function(e){throw m&&m.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(a,c){M(a,t,c),$(t,n),m&&m.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,i),$(i,s),v&&v.m(s,null),e.div2_binding(i),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){m&&m.p&&e.$$scope&&m.p(p(f,t,e,Re),h(f,t,Xe)),v&&v.p&&e.$$scope&&v.p(p(g,t,e,qe),h(g,t,ze)),(!l||e.translateX||e.translateY)&&W(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&I(r,"visible",t.open),e.shrink&&I(r,"shrink",t.shrink)},i:function(e){l||(ae(m,e),ae(v,e),l=!0)},o:function(e){ie(m,e),ie(v,e),l=!1},d:function(n){n&&D(t),m&&m.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),c(d)}}}function Ke(e,t,n){var o,r,a,i,s,c=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),c("closed")},(e=i).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function m(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}H(function(){if(document.addEventListener("click",m),p)return a.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",m)}});var g=async function(){u||n("open",u=!0),await(G(),U);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 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:a,contentsAnimated:i,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 g();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),c("opened")},onwindowresize:function(){r=Le.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",s=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),pe(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}(me),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]}),at="src/Components/Datepicker.svelte";function it(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=C(e.formattedSelected),P(t,"class","calendar-button svelte-1kuaxoc"),P(t,"type","button"),a(t,at,202,8,5384)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&O(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function ct(e){var t,n,o=e.$$slots.default,r=u(o,e,null),i=!e.trigger&&st(e);return{c:function(){t=x("div"),r||i&&i.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1kuaxoc"),a(t,at,199,4,5319)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){r||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=st(n)).c(),i.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ae(r,e),n=!0)},o:function(e){ie(r,e),n=!1},d:function(e){e&&D(t),r||i&&i.d(),r&&r.d(e)}}}function lt(e){var t,o,r=e.day.abbrev;return{c:function(){t=x("span"),o=C(r),P(t,"class","svelte-1kuaxoc"),a(t,at,215,10,5845)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function dt(e){var t,n,o,r,i,s,c=new He({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});c.$on("monthSelected",e.monthSelected_handler),c.$on("incrementMonth",e.incrementMonth_handler);for(var l=Fe,d=[],u=0;u0&&f>T?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var W=t.$$slots;void 0===W&&(W={});var I,j,F,T,N,Y,B,A=t.$$scope;return e.$set=function(e){"format"in e&&n("format",i=e.format),"start"in e&&n("start",s=e.start),"end"in e&&n("end",c=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),"$$scope"in e&&n("$$scope",A=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,selected:1,format:1}),(e.start||e.end||e.selectableCallback)&&n("months",I=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=[],a=new Date(e.getFullYear(),e.getMonth(),1),i=ve(e,t,n);a0),(e.selected||e.format)&&n("formattedSelected",k=nt(l,i))},{popover:o,format:i,start:s,end:c,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:m,month:g,year:v,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:C,registerClose:E,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",g=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",_),r("open")},visibleMonth:j,visibleMonthId:F,canIncrementMonth:Y,canDecrementMonth:B,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(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",w=e)},popover_1_shrink_binding:function(e){n("isClosing",b=e)},$$slots:W,$$scope:A}}var ft=function(e){function t(t){e.call(this,t),pe(this,t,pt,ht,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"]);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}};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 ''")},Object.defineProperties(t.prototype,n),t}(me),mt="src/App.svelte";function gt(e){var t;return{c:function(){t=C("Pick a date")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&D(t)}}}function vt(e){var t,n;return{c:function(){t=C("Chosen: "),n=C(e.formattedSelected)},m:function(e,o){M(e,t,o),M(e,n,o)},p:function(e,t){e.formattedSelected&&O(n,t.formattedSelected)},d:function(e){e&&(D(t),D(n))}}}function wt(e){var t;function n(e){return e.dateChosen?vt:gt}var o=n(e),r=o(e);return{c:function(){t=x("button"),r.c(),P(t,"class","custom-button svelte-1k5b0sf"),a(t,mt,78,3,2396)},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&&D(t),r.d()}}}function bt(e){var t;return{c:function(){t=C("Custom Button")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&D(t)}}}function yt(e){var t;return{c:function(){t=C(e.exampleFormatted)},m:function(e,n){M(e,t,n)},p:function(e,n){e.exampleFormatted&&O(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=x("button"),r.c(),P(t,"id","test"),a(t,mt,105,3,3113)},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&&D(t),r.d()}}}function $t(e){var t,n,o,r,i,s,c,l,d,u,h,p,f,m,g,v,w,b,y,k,S,E,O,W,I,j,F,T,N,Y,B,A,H,L,J,q,R,X,U,K,G,V,Z,ee,te,ne,oe,re,se,ce,le,pe,fe,me,ge,ve,we,be,ye,ke,$e,Me,De,Se,xe,Ce=new ft({props:{format:Mt},$$inline:!0});function _e(t){e.datepicker1_formattedSelected_binding.call(null,t),J=!0,Q(function(){return J=!1})}function Ee(t){e.datepicker1_dateChosen_binding.call(null,t),q=!0,Q(function(){return q=!1})}var Pe={format:Mt,$$slots:{default:[wt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(Pe.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(Pe.dateChosen=e.dateChosen);var Oe=new ft({props:Pe,$$inline:!0});function We(t){e.datepicker2_formattedSelected_binding.call(null,t),se=!0,Q(function(){return se=!1})}function Ie(t){e.datepicker2_dateChosen_binding.call(null,t),ce=!0,Q(function(){return ce=!1})}z.push(function(){return de(Oe,"formattedSelected",_e)}),z.push(function(){return de(Oe,"dateChosen",Ee)});var je={$$slots:{default:[kt]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(je.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(je.dateChosen=e.exampleChosen);var Fe=new ft({props:je,$$inline:!0});z.push(function(){return de(Fe,"formattedSelected",We)}),z.push(function(){return de(Fe,"dateChosen",Ie)});var Te=new ft({props:{format:Mt,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ne=new ft({props:{format:Mt,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ye=new ft({props:{format:Mt},$$inline:!0});return Ye.$on("dateSelected",e.dateSelected_handler),{c:function(){(t=x("h1")).textContent="SvelteCalendar",n=_(),o=x("div"),(r=x("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",i=_(),Ce.$$.fragment.c(),s=_(),(c=x("p")).textContent="This component can be used with or without the Svelte compiler.",l=_(),d=x("ul"),(u=x("li")).textContent="Lightweight (~8KB)",h=_(),(p=x("li")).textContent="IE11+ Compatible",f=_(),(m=x("li")).textContent="Usable as a Svelte component",g=_(),(v=x("li")).textContent="Usable with Vanilla JS / ",w=_(),(b=x("li")).textContent="Can be compiled to a native web component / custom element",y=_(),(k=x("li")).textContent="Mobile/thumb friendly",S=_(),(E=x("li")).textContent="Keyboard navigation (arrows, pgup/pgdown, tab, esc)",O=_(),(W=x("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:",I=_(),(j=x("h4")).textContent="With Svelte:",F=_(),T=x("pre"),N=x("code"),Y=C("\n \n"),H=_(),L=x("div"),Oe.$$.fragment.c(),R=_(),(X=x("h4")).textContent="Without Svelte HTML:",U=_(),K=x("pre"),(G=x("code")).textContent="
\n \n
",V=_(),(Z=x("h4")).textContent="Without Svelte JS:",ee=_(),te=x("pre"),(ne=x("code")).textContent="var trigger = document.getElementById('test');\nvar cal = new SvelteCalendar({ \n target: document.querySelector('.button-container'),\n anchor: trigger, \n props: {\n trigger: trigger\n }\n});",oe=_(),re=x("div"),Fe.$$.fragment.c(),le=_(),(pe=x("p")).textContent="You can confine the date selection range with start and end:",fe=_(),me=x("div"),Te.$$.fragment.c(),ge=_(),(ve=x("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=x("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=x("div"),Ne.$$.fragment.c(),$e=_(),(Me=x("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",De=_(),Se=x("div"),Ye.$$.fragment.c(),P(t,"class","svelte-1k5b0sf"),a(t,mt,47,0,1030),a(r,mt,49,1,1079),a(c,mt,54,1,1262),a(u,mt,56,2,1341),a(p,mt,57,2,1371),a(m,mt,58,2,1399),a(v,mt,59,2,1439),a(b,mt,60,2,1503),a(k,mt,61,2,1573),a(E,mt,62,2,1606),a(d,mt,55,1,1334),a(W,mt,65,1,1676),a(j,mt,67,1,1978),P(N,"class","html"),a(N,mt,68,6,2006),a(T,mt,68,1,2001),P(L,"class","text-center svelte-1k5b0sf"),a(L,mt,76,1,2293),a(X,mt,84,1,2541),P(G,"class","html"),a(G,mt,85,6,2577),a(K,mt,85,1,2572),a(Z,mt,91,1,2722),P(ne,"class","js"),a(ne,mt,92,6,2756),a(te,mt,92,1,2751),P(re,"class","text-center svelte-1k5b0sf"),a(re,mt,103,1,2995),a(pe,mt,111,1,3243),P(me,"class","text-center svelte-1k5b0sf"),a(me,mt,113,1,3313),P(ve,"class","note svelte-1k5b0sf"),a(ve,mt,117,1,3479),a(be,mt,119,1,3638),P(ke,"class","text-center svelte-1k5b0sf"),a(ke,mt,121,1,3896),a(Me,mt,125,1,4055),P(Se,"class","text-center svelte-1k5b0sf"),a(Se,mt,127,1,4141),P(o,"class","container svelte-1k5b0sf"),a(o,mt,48,0,1054)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,a){M(e,t,a),M(e,n,a),M(e,o,a),$(o,r),$(o,i),ue(Ce,o,null),$(o,s),$(o,c),$(o,l),$(o,d),$(d,u),$(d,h),$(d,p),$(d,f),$(d,m),$(d,g),$(d,v),$(d,w),$(d,b),$(d,y),$(d,k),$(d,S),$(d,E),$(o,O),$(o,W),$(o,I),$(o,j),$(o,F),$(o,T),$(T,N),$(N,Y),$(N,B),$(N,A),$(o,H),$(o,L),ue(Oe,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),ue(Fe,re,null),$(o,le),$(o,pe),$(o,fe),$(o,me),ue(Te,me,null),$(o,ge),$(o,ve),$(o,we),$(o,be),$(o,ye),$(o,ke),ue(Ne,ke,null),$(o,$e),$(o,Me),$(o,De),$(o,Se),ue(Ye,Se,null),xe=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=Mt),Ce.$set(n);var o={};e.dateFormat&&(o.format=Mt),(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),Oe.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!se&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!ce&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),Fe.$set(r);var a={};e.dateFormat&&(a.format=Mt),e.threeDaysInPast&&(a.start=t.threeDaysInPast),e.inThirtyDays&&(a.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(a.selectableCallback=t.noWeekendsSelectableCallback),Te.$set(a);var i={};e.dateFormat&&(i.format=Mt),e.tomorrow&&(i.start=t.tomorrow),e.inThirtyDays&&(i.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(i.selectableCallback=t.noWeekendsSelectableCallback),Ne.$set(i);var s={};e.dateFormat&&(s.format=Mt),Ye.$set(s)},i:function(e){xe||(ae(Ce.$$.fragment,e),ae(Oe.$$.fragment,e),ae(Fe.$$.fragment,e),ae(Te.$$.fragment,e),ae(Ne.$$.fragment,e),ae(Ye.$$.fragment,e),xe=!0)},o:function(e){ie(Ce.$$.fragment,e),ie(Oe.$$.fragment,e),ie(Fe.$$.fragment,e),ie(Te.$$.fragment,e),ie(Ne.$$.fragment,e),ie(Ye.$$.fragment,e),xe=!1},d:function(e){e&&(D(t),D(n),D(o)),he(Ce),he(Oe),he(Fe),he(Te),he(Ne),he(Ye)}}}var Mt="#{l}, #{F} #{j}, #{Y}";function Dt(e,t,n){var o,r,a,i,s=new Date,c=new Date,l=!1,d=!1,u=!1;H(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(c.getTime()+62208e6),e.start){var t=new Date(c);t.setDate(t.getDate()+30),n("inThirtyDays",i=t)}};var h=new Date(s);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var p=new Date(s);return p.setDate(p.getDate()+1),n("tomorrow",a=p),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:l,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",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 St=function(e){function t(t){e.call(this,t),pe(this,t,Dt,$t,d,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(me);return t(),new St({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 M(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode.removeChild(e)}function S(e,t){for(var n=0;n>>0}(h)+"_"+s;if(!N[p]){if(!f){var m=x("style");document.head.appendChild(m),f=m.sheet}N[p]=!0,f.insertRule("@keyframes "+p+" "+h,f.cssRules.length)}var g=e.style.animation||"";return e.style.animation=(g?g+", ":"")+p+" "+o+"ms linear "+r+"ms 1 both",T+=1,p}function B(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&&v(function(){if(!T){for(var e=f.cssRules.length;e--;)f.deleteRule(e);N={}}})}function A(e){F=e}function H(e){(function(){if(!F)throw new Error("Function called outside component initialization");return F})().$$.on_mount.push(e)}function L(){var e=F;return function(t,n){var o=e.$$.callbacks[t];if(o){var r=j(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();A(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 a=t.x;void 0===a&&(a=0);var i=t.y;void 0===i&&(i=0);var s=t.opacity;void 0===s&&(s=0);var c=getComputedStyle(e),l=+c.opacity,d="none"===c.transform?"":c.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)*a+"px, "+(1-e)*i+"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,i,s=e.day.date.getDate();function c(){return e.click_handler(e)}return{c:function(){t=x("div"),n=x("button"),o=C(s),r=_(),P(n,"class","day--label svelte-1p7wi7u"),P(n,"type","button"),I(n,"selected",ve(e.day.date,e.selected)),I(n,"highlighted",ve(e.day.date,e.highlighted)),I(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),I(n,"disabled",!e.day.selectable),a(n,ke,28,6,692),P(t,"class","day svelte-1p7wi7u"),I(t,"outside-month",!e.day.partOfMonth),I(t,"is-today",e.day.isToday),I(t,"is-disabled",!e.day.selectable),a(t,ke,22,4,527),i=E(n,"click",c)},m:function(e,a){M(e,t,a),$(t,n),$(n,o),$(t,r)},p:function(r,a){e=a,r.days&&s!==(s=e.day.date.getDate())&&O(o,s),(r.areDatesEquivalent||r.days||r.selected)&&I(n,"selected",ve(e.day.date,e.selected)),(r.areDatesEquivalent||r.days||r.highlighted)&&I(n,"highlighted",ve(e.day.date,e.highlighted)),(r.shouldShakeDate||r.areDatesEquivalent||r.days)&&I(n,"shake-date",e.shouldShakeDate&&ve(e.day.date,e.shouldShakeDate)),r.days&&(I(n,"disabled",!e.day.selectable),I(t,"outside-month",!e.day.partOfMonth),I(t,"is-today",e.day.isToday),I(t,"is-disabled",!e.day.selectable))},d:function(e){e&&D(t),i()}}}function De(e){for(var t,r,i,s,d=e.days,u=[],h=0;h=m)return h(1,0),ne(e,!0,"end"),u(),c=!1;if(t>=f){var n=l((t-f)/r);h(n,1-n)}}return c})}var p=!1;return{start:function(){p||(B(e),l(s)?(s=s(),te().then(h)):h())},invalidate:function(){p=!1},end:function(){c&&(u(),c=!1)}}}(t,ye,{x:50*e.direction,duration:180,delay:90})),r.start()}),s=!0)},o:function(e){r&&r.invalidate(),i=function(e,t,r){var a,i=t(e,r),s=!0,d=oe;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=Y(e,1,0,r,t,l,h));var p=g()+t,f=p+r;V(function(){return ne(e,!1,"start")}),k(function(t){if(s){if(t>=f)return u(0,1),ne(e,!1,"end"),--d.r||c(d.c),!1;if(t>=p){var n=l((t-p)/r);u(1-n,n)}}return s})}return d.r+=1,l(i)?te().then(function(){i=i(),u()}):u(),{end:function(t){t&&i.tick&&i.tick(1,0),s&&(a&&B(e,a),s=!1)}}}(t,be,{duration:180}),s=!1},d:function(e){e&&D(t),S(u,e),e&&i&&i.end()}}}function Se(e,t,n){var o=L(),r=t.days,a=t.selected,i=t.start,s=t.end,c=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",a=e.selected),"start"in e&&n("start",i=e.start),"end"in e&&n("end",s=e.end),"highlighted"in e&&n("highlighted",c=e.highlighted),"shouldShakeDate"in e&&n("shouldShakeDate",l=e.shouldShakeDate),"direction"in e&&n("direction",d=e.direction)},{dispatch:o,days:r,selected:a,start:i,end:s,highlighted:c,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,Se,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),Ce="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 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=C(""),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||(ae(r.$$.fragment,e),o=!0)},o:function(e){ie(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,i=e.visibleMonth.weeks,s=function(e){return e.week.id},l=0;lw.get(_)?(M.add(C),D(S)):($.add(_),h--):(c(x,i),h--)}for(;h--;){var E=e[h];v.has(E.key)||c(E,i)}for(;p;)D(g[p-1]);return g}(o,e,s,1,n,a,r,t,ce,Ee,null,_e),oe.r||c(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",a=e.visibleMonth),"selected"in e&&n("selected",i=e.selected),"start"in e&&n("start",s=e.start),"end"in e&&n("end",c=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),Ie=[{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"}],je=[{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"}],Fe="src\\Components\\NavBar.svelte";function Te(e,t,n){var o=Object.create(e);return o.monthDefinition=t[n],o.index=n,o}function Ne(e){var t,n,o,r,i,s=e.monthDefinition.abbrev;function c(){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=C(s),r=_(),P(n,"class","svelte-gfrd1b"),a(n,Fe,67,8,1841),P(t,"class","month-selector--month svelte-gfrd1b"),I(t,"selected",e.index===e.month),I(t,"selectable",e.monthDefinition.selectable),a(t,Fe,61,6,1637),i=E(t,"click",c)},m:function(e,a){M(e,t,a),$(t,n),$(n,o),$(t,r)},p:function(n,r){e=r,n.availableMonths&&s!==(s=e.monthDefinition.abbrev)&&O(o,s),n.month&&I(t,"selected",e.index===e.month),n.availableMonths&&I(t,"selectable",e.monthDefinition.selectable)},d:function(e){e&&D(t),i()}}}function Ye(e){for(var t,o,r,i,s,l,d,u,h,p,f,m,g,v,w,b=Ie[e.month].name,y=e.availableMonths,k=[],W=0;W was created with unknown prop '"+e+"'")}),e.$set=function(e){"month"in e&&n("month",a=e.month),"start"in e&&n("start",i=e.start),"end"in e&&n("end",s=e.end),"year"in e&&n("year",c=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=i.getFullYear()===c,r=s.getFullYear()===c;n("availableMonths",o=Ie.map(function(e,n){return Object.assign({},e,{selectable:!t&&!r||(!t||n>=i.getMonth())&&(!r||n<=s.getMonth())})}))}},{dispatch:r,month:a,start:i,end:s,year:c,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,Be,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),He=se.window,Le="src\\Components\\Popover.svelte",Je=function(){return{}},qe=function(){return{}},ze=function(){return{}},Re=function(){return{}};function Xe(e){var t,n,o,r,i,s,l,d;V(e.onwindowresize);var f=e.$$slots.trigger,m=u(f,e,Re),g=e.$$slots.contents,v=u(g,e,qe);return{c:function(){t=x("div"),n=x("div"),m&&m.c(),o=_(),r=x("div"),i=x("div"),s=x("div"),v&&v.c(),P(n,"class","trigger"),a(n,Le,102,2,2428),P(s,"class","contents-inner svelte-1wmex1c"),a(s,Le,113,6,2826),P(i,"class","contents svelte-1wmex1c"),a(i,Le,112,4,2767),P(r,"class","contents-wrapper svelte-1wmex1c"),W(r,"transform","translate(-50%,-50%) translate("+e.translateX+"px, "+e.translateY+"px)"),I(r,"visible",e.open),I(r,"shrink",e.shrink),a(r,Le,106,2,2550),P(t,"class","sc-popover svelte-1wmex1c"),a(t,Le,101,0,2380),d=[E(He,"resize",e.onwindowresize),E(n,"click",e.doOpen)]},l:function(e){throw m&&m.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(a,c){M(a,t,c),$(t,n),m&&m.m(n,null),e.div0_binding(n),$(t,o),$(t,r),$(r,i),$(i,s),v&&v.m(s,null),e.div2_binding(i),e.div3_binding(r),e.div4_binding(t),l=!0},p:function(e,t){m&&m.p&&e.$$scope&&m.p(p(f,t,e,ze),h(f,t,Re)),v&&v.p&&e.$$scope&&v.p(p(g,t,e,Je),h(g,t,qe)),(!l||e.translateX||e.translateY)&&W(r,"transform","translate(-50%,-50%) translate("+t.translateX+"px, "+t.translateY+"px)"),e.open&&I(r,"visible",t.open),e.shrink&&I(r,"shrink",t.shrink)},i:function(e){l||(ae(m,e),ae(v,e),l=!0)},o:function(e){ie(m,e),ie(v,e),l=!1},d:function(n){n&&D(t),m&&m.d(n),e.div0_binding(null),v&&v.d(n),e.div2_binding(null),e.div3_binding(null),e.div4_binding(null),c(d)}}}function Ue(e,t,n){var o,r,a,i,s,c=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),c("closed")},(e=i).addEventListener(t,function n(){o.apply(this,arguments),e.removeEventListener(t,n)})};function m(e){if(u){var t=e.target;do{if(t===o)return}while(t=t.parentNode);f()}}H(function(){if(document.addEventListener("click",m),p)return a.appendChild(p.parentNode.removeChild(p)),function(){document.removeEventListener("click",m)}});var g=async function(){u||n("open",u=!0),await(G(),U);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 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:a,contentsAnimated:i,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 g();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),c("opened")},onwindowresize:function(){r=He.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",s=e)})},div4_binding:function(e){z[e?"unshift":"push"](function(){n("popover",o=e)})},$$slots:w,$$scope:b}}var Ke=function(e){function t(t){e.call(this,t),he(this,t,Ue,Xe,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),Ge=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},Qe={daysOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthsOfYear:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ze=[{key:"d",method:function(e){return Ve(e.getDate(),2)}},{key:"D",method:function(e){return Ve(Qe.daysOfWeek[e.getDay()],3)}},{key:"j",method:function(e){return e.getDate()}},{key:"l",method:function(e){return Qe.daysOfWeek[e.getDay()]}},{key:"F",method:function(e){return Qe.monthsOfYear[e.getMonth()]}},{key:"m",method:function(e){return Ve(e.getMonth()+1,2)}},{key:"M",method:function(e){return Ve(Qe.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)}}],et=[{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)}}],tt=function(e,t){return void 0===t&&(t="#{m}/#{d}/#{Y}"),Ze.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ge(t,n.key,n.method(e)))}),et.forEach(function(n){-1!=t.indexOf("#{"+n.key+"}")&&(t=Ge(t,n.key,n.method(e)))}),t},nt={left:37,up:38,right:39,down:40,pgup:33,pgdown:34,enter:13,escape:27,tab:9},ot=Object.keys(nt).map(function(e){return nt[e]}),rt="src\\Components\\Datepicker.svelte";function at(e,t,n){var o=Object.create(e);return o.day=t[n],o}function it(e){var t,n;return{c:function(){t=x("button"),n=C(e.formattedSelected),P(t,"class","calendar-button svelte-1rg21xy"),P(t,"type","button"),a(t,rt,202,8,5586)},m:function(e,o){M(e,t,o),$(t,n)},p:function(e,t){e.formattedSelected&&O(n,t.formattedSelected)},d:function(e){e&&D(t)}}}function st(e){var t,n,o=e.$$slots.default,r=u(o,e,null),i=!e.trigger&&it(e);return{c:function(){t=x("div"),r||i&&i.c(),r&&r.c(),P(t,"slot","trigger"),P(t,"class","svelte-1rg21xy"),a(t,rt,199,4,5518)},l:function(e){r&&r.l(div_nodes)},m:function(e,o){M(e,t,o),r?r.m(t,null):i&&i.m(t,null),n=!0},p:function(e,n){r||(n.trigger?i&&(i.d(1),i=null):i?i.p(e,n):((i=it(n)).c(),i.m(t,null))),r&&r.p&&e.$$scope&&r.p(p(o,n,e,null),h(o,n,null))},i:function(e){n||(ae(r,e),n=!0)},o:function(e){ie(r,e),n=!1},d:function(e){e&&D(t),r||i&&i.d(),r&&r.d(e)}}}function ct(e){var t,o,r=e.day.abbrev;return{c:function(){t=x("span"),o=C(r),P(t,"class","svelte-1rg21xy"),a(t,rt,215,10,6060)},m:function(e,n){M(e,t,n),$(t,o)},p:n,d:function(e){e&&D(t)}}}function lt(e){var t,n,o,r,i,s,c=new Ae({props:{month:e.month,year:e.year,start:e.start,end:e.end,canIncrementMonth:e.canIncrementMonth,canDecrementMonth:e.canDecrementMonth},$$inline:!0});c.$on("monthSelected",e.monthSelected_handler),c.$on("incrementMonth",e.incrementMonth_handler);for(var l=je,d=[],u=0;u0&&f>T?M(1,f.getDate()):e<0&&f was created with unknown prop '"+e+"'")});var W=t.$$slots;void 0===W&&(W={});var I,j,F,T,N,Y,B,A=t.$$scope;return e.$set=function(e){"format"in e&&n("format",i=e.format),"start"in e&&n("start",s=e.start),"end"in e&&n("end",c=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),"$$scope"in e&&n("$$scope",A=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,selected:1,format:1}),(e.start||e.end||e.selectableCallback)&&n("months",I=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=[],a=new Date(e.getFullYear(),e.getMonth(),1),i=ge(e,t,n);a0),(e.selected||e.format)&&n("formattedSelected",k=tt(l,i))},{popover:o,format:i,start:s,end:c,selected:l,dateChosen:d,trigger:u,selectableCallback:h,highlighted:f,shouldShakeDate:m,month:g,year:v,isOpen:w,isClosing:b,formattedSelected:k,changeMonth:$,incrementMonth:M,registerSelection:C,registerClose:E,registerOpen:function(){n("highlighted",f=new Date(l)),n("month",g=l.getMonth()),n("year",v=l.getFullYear()),document.addEventListener("keydown",_),r("open")},visibleMonth:j,visibleMonthId:F,canIncrementMonth:Y,canDecrementMonth:B,monthSelected_handler:function(e){return $(e.detail)},incrementMonth_handler:function(e){return M(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",w=e)},popover_1_shrink_binding:function(e){n("isClosing",b=e)},$$slots:W,$$scope:A}}var pt=function(e){function t(t){e.call(this,t),he(this,t,ht,ut,d,["format","start","end","selected","dateChosen","trigger","selectableCallback","formattedSelected"]);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}};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 ''")},Object.defineProperties(t.prototype,n),t}(fe),ft="src\\App.svelte";function mt(e){var t;return{c:function(){t=C("Pick a date")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&D(t)}}}function gt(e){var t,n;return{c:function(){t=C("Chosen: "),n=C(e.formattedSelected)},m:function(e,o){M(e,t,o),M(e,n,o)},p:function(e,t){e.formattedSelected&&O(n,t.formattedSelected)},d:function(e){e&&(D(t),D(n))}}}function vt(e){var t;function n(e){return e.dateChosen?gt:mt}var o=n(e),r=o(e);return{c:function(){t=x("button"),r.c(),P(t,"class","custom-button svelte-1k5b0sf"),a(t,ft,78,3,2396)},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&&D(t),r.d()}}}function wt(e){var t;return{c:function(){t=C("Custom Button")},m:function(e,n){M(e,t,n)},p:n,d:function(e){e&&D(t)}}}function bt(e){var t;return{c:function(){t=C(e.exampleFormatted)},m:function(e,n){M(e,t,n)},p:function(e,n){e.exampleFormatted&&O(t,n.exampleFormatted)},d:function(e){e&&D(t)}}}function yt(e){var t;function n(e){return e.exampleChosen?bt:wt}var o=n(e),r=o(e);return{c:function(){t=x("button"),r.c(),P(t,"id","test"),a(t,ft,105,3,3113)},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&&D(t),r.d()}}}function kt(e){var t,n,o,r,i,s,c,l,d,u,h,p,f,m,g,v,w,b,y,k,S,E,O,W,I,j,F,T,N,Y,B,A,H,L,J,q,R,X,U,K,G,V,Z,ee,te,ne,oe,re,se,ce,he,pe,fe,me,ge,ve,we,be,ye,ke,$e,Me,De,Se,xe,Ce=new pt({props:{format:$t},$$inline:!0});function _e(t){e.datepicker1_formattedSelected_binding.call(null,t),J=!0,Q(function(){return J=!1})}function Ee(t){e.datepicker1_dateChosen_binding.call(null,t),q=!0,Q(function(){return q=!1})}var Pe={format:$t,$$slots:{default:[vt]},$$scope:{ctx:e}};void 0!==e.formattedSelected&&(Pe.formattedSelected=e.formattedSelected),void 0!==e.dateChosen&&(Pe.dateChosen=e.dateChosen);var Oe=new pt({props:Pe,$$inline:!0});function We(t){e.datepicker2_formattedSelected_binding.call(null,t),se=!0,Q(function(){return se=!1})}function Ie(t){e.datepicker2_dateChosen_binding.call(null,t),ce=!0,Q(function(){return ce=!1})}z.push(function(){return le(Oe,"formattedSelected",_e)}),z.push(function(){return le(Oe,"dateChosen",Ee)});var je={$$slots:{default:[yt]},$$scope:{ctx:e}};void 0!==e.exampleFormatted&&(je.formattedSelected=e.exampleFormatted),void 0!==e.exampleChosen&&(je.dateChosen=e.exampleChosen);var Fe=new pt({props:je,$$inline:!0});z.push(function(){return le(Fe,"formattedSelected",We)}),z.push(function(){return le(Fe,"dateChosen",Ie)});var Te=new pt({props:{format:$t,start:e.threeDaysInPast,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ne=new pt({props:{format:$t,start:e.tomorrow,end:e.inThirtyDays,selectableCallback:e.noWeekendsSelectableCallback},$$inline:!0}),Ye=new pt({props:{format:$t},$$inline:!0});return Ye.$on("dateSelected",e.dateSelected_handler),{c:function(){(t=x("h1")).textContent="SvelteCalendar",n=_(),o=x("div"),(r=x("p")).textContent="A lightweight date picker written with Svelte. Here is an example:",i=_(),Ce.$$.fragment.c(),s=_(),(c=x("p")).textContent="This component can be used with or without the Svelte compiler.",l=_(),d=x("ul"),(u=x("li")).textContent="Lightweight (~8KB)",h=_(),(p=x("li")).textContent="IE11+ Compatible",f=_(),(m=x("li")).textContent="Usable as a Svelte component",g=_(),(v=x("li")).textContent="Usable with Vanilla JS / ",w=_(),(b=x("li")).textContent="Can be compiled to a native web component / custom element",y=_(),(k=x("li")).textContent="Mobile/thumb friendly",S=_(),(E=x("li")).textContent="Keyboard navigation (arrows, pgup/pgdown, tab, esc)",O=_(),(W=x("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:",I=_(),(j=x("h4")).textContent="With Svelte:",F=_(),T=x("pre"),N=x("code"),Y=C("\n \n"),H=_(),L=x("div"),Oe.$$.fragment.c(),R=_(),(X=x("h4")).textContent="Without Svelte HTML:",U=_(),K=x("pre"),(G=x("code")).textContent="
\n \n
",V=_(),(Z=x("h4")).textContent="Without Svelte JS:",ee=_(),te=x("pre"),(ne=x("code")).textContent="var trigger = document.getElementById('test');\nvar cal = new SvelteCalendar({ \n target: document.querySelector('.button-container'),\n anchor: trigger, \n props: {\n trigger: trigger\n }\n});",oe=_(),re=x("div"),Fe.$$.fragment.c(),he=_(),(pe=x("p")).textContent="You can confine the date selection range with start and end:",fe=_(),me=x("div"),Te.$$.fragment.c(),ge=_(),(ve=x("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=x("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=x("div"),Ne.$$.fragment.c(),$e=_(),(Me=x("p")).textContent="You can bind to the `dateSelected` event, which has a data property `date`:",De=_(),Se=x("div"),Ye.$$.fragment.c(),P(t,"class","svelte-1k5b0sf"),a(t,ft,47,0,1030),a(r,ft,49,1,1079),a(c,ft,54,1,1262),a(u,ft,56,2,1341),a(p,ft,57,2,1371),a(m,ft,58,2,1399),a(v,ft,59,2,1439),a(b,ft,60,2,1503),a(k,ft,61,2,1573),a(E,ft,62,2,1606),a(d,ft,55,1,1334),a(W,ft,65,1,1676),a(j,ft,67,1,1978),P(N,"class","html"),a(N,ft,68,6,2006),a(T,ft,68,1,2001),P(L,"class","text-center svelte-1k5b0sf"),a(L,ft,76,1,2293),a(X,ft,84,1,2541),P(G,"class","html"),a(G,ft,85,6,2577),a(K,ft,85,1,2572),a(Z,ft,91,1,2722),P(ne,"class","js"),a(ne,ft,92,6,2756),a(te,ft,92,1,2751),P(re,"class","text-center svelte-1k5b0sf"),a(re,ft,103,1,2995),a(pe,ft,111,1,3243),P(me,"class","text-center svelte-1k5b0sf"),a(me,ft,113,1,3313),P(ve,"class","note svelte-1k5b0sf"),a(ve,ft,117,1,3479),a(be,ft,119,1,3638),P(ke,"class","text-center svelte-1k5b0sf"),a(ke,ft,121,1,3896),a(Me,ft,125,1,4055),P(Se,"class","text-center svelte-1k5b0sf"),a(Se,ft,127,1,4141),P(o,"class","container svelte-1k5b0sf"),a(o,ft,48,0,1054)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,a){M(e,t,a),M(e,n,a),M(e,o,a),$(o,r),$(o,i),de(Ce,o,null),$(o,s),$(o,c),$(o,l),$(o,d),$(d,u),$(d,h),$(d,p),$(d,f),$(d,m),$(d,g),$(d,v),$(d,w),$(d,b),$(d,y),$(d,k),$(d,S),$(d,E),$(o,O),$(o,W),$(o,I),$(o,j),$(o,F),$(o,T),$(T,N),$(N,Y),$(N,B),$(N,A),$(o,H),$(o,L),de(Oe,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(Fe,re,null),$(o,he),$(o,pe),$(o,fe),$(o,me),de(Te,me,null),$(o,ge),$(o,ve),$(o,we),$(o,be),$(o,ye),$(o,ke),de(Ne,ke,null),$(o,$e),$(o,Me),$(o,De),$(o,Se),de(Ye,Se,null),xe=!0},p:function(e,t){var n={};e.dateFormat&&(n.format=$t),Ce.$set(n);var o={};e.dateFormat&&(o.format=$t),(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),Oe.$set(o);var r={};(e.$$scope||e.exampleChosen||e.exampleFormatted)&&(r.$$scope={changed:e,ctx:t}),!se&&e.exampleFormatted&&(r.formattedSelected=t.exampleFormatted),!ce&&e.exampleChosen&&(r.dateChosen=t.exampleChosen),Fe.$set(r);var a={};e.dateFormat&&(a.format=$t),e.threeDaysInPast&&(a.start=t.threeDaysInPast),e.inThirtyDays&&(a.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(a.selectableCallback=t.noWeekendsSelectableCallback),Te.$set(a);var i={};e.dateFormat&&(i.format=$t),e.tomorrow&&(i.start=t.tomorrow),e.inThirtyDays&&(i.end=t.inThirtyDays),e.noWeekendsSelectableCallback&&(i.selectableCallback=t.noWeekendsSelectableCallback),Ne.$set(i);var s={};e.dateFormat&&(s.format=$t),Ye.$set(s)},i:function(e){xe||(ae(Ce.$$.fragment,e),ae(Oe.$$.fragment,e),ae(Fe.$$.fragment,e),ae(Te.$$.fragment,e),ae(Ne.$$.fragment,e),ae(Ye.$$.fragment,e),xe=!0)},o:function(e){ie(Ce.$$.fragment,e),ie(Oe.$$.fragment,e),ie(Fe.$$.fragment,e),ie(Te.$$.fragment,e),ie(Ne.$$.fragment,e),ie(Ye.$$.fragment,e),xe=!1},d:function(e){e&&(D(t),D(n),D(o)),ue(Ce),ue(Oe),ue(Fe),ue(Te),ue(Ne),ue(Ye)}}}var $t="#{l}, #{F} #{j}, #{Y}";function Mt(e,t,n){var o,r,a,i,s=new Date,c=new Date,l=!1,d=!1,u=!1;H(function(){hljs.initHighlightingOnLoad()}),e.$$.update=function(e){if(void 0===e&&(e={start:1}),e.start&&new Date(c.getTime()+62208e6),e.start){var t=new Date(c);t.setDate(t.getDate()+30),n("inThirtyDays",i=t)}};var h=new Date(s);h.setDate(h.getDate()-3),n("threeDaysInPast",r=h);var p=new Date(s);return p.setDate(p.getDate()+1),n("tomorrow",a=p),{noWeekendsSelectableCallback:function(e){return 0!==e.getDay()&&6!==e.getDay()},formattedSelected:o,dateChosen:l,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",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 Dt=function(e){function t(t){e.call(this,t),he(this,t,Mt,kt,d,[])}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(fe);return t(),new Dt({target:document.body,data:{}})}(); //# sourceMappingURL=test.js.map diff --git a/docs/test.js.map b/docs/test.js.map index 5ff3de2..4e96b3f 100644 --- a/docs/test.js.map +++ b/docs/test.js.map @@ -1 +1 @@ -{"version":3,"file":"test.js","sources":["../node_modules/.registry.npmjs.org/es6-object-assign/1.1.0/node_modules/es6-object-assign/index.js","../node_modules/.registry.npmjs.org/svelte/3.7.1/node_modules/svelte/internal/index.mjs","../src/Components/lib/helpers.js","../node_modules/.registry.npmjs.org/svelte/3.7.1/node_modules/svelte/easing/index.mjs","../node_modules/.registry.npmjs.org/svelte/3.7.1/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/.registry.npmjs.org/timeUtils/1.1.5/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 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}\nclass HtmlTag {\n constructor(html, anchor = null) {\n this.e = element('div');\n this.a = anchor;\n this.u(html);\n }\n m(target, anchor = null) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(target, this.n[i], anchor);\n }\n this.t = target;\n }\n u(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n p(html) {\n this.d();\n this.u(html);\n this.m(this.t, this.a);\n }\n d() {\n this.n.forEach(detach);\n }\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}\nconst null_transition = { duration: 0 };\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 || null_transition;\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 || null_transition;\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 || null_transition;\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 { HtmlTag, 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, 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 weeks[0].days.push({\n partOfMonth: date.getMonth() === month,\n date: new Date(date),\n ...dayProps(date)\n });\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","\n\n
\n {#each days as day}\n
\n \n
\n {/each}\n
\n\n\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","\n\n
\n
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\n","\n\n\n
\n
\n \n \n
\n
\n
\n
\n \n
\n
\n
\n
\n\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","\n\n

SvelteCalendar

\n
\n\t

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

\n\n\t\n\t\n\n\t

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

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

\n\n\t

With Svelte:

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

Without Svelte HTML:

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

Without Svelte JS:

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

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

\n\n\t
\n\t\t\n\t
\n\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.

\n\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).

\n\n\t
\n\t\t\n\t
\n\n\t

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

\n\t\n\t
\n\t\t logChoice(e.detail.date)} />\n\t
\n
\n\n\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","null_transition","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","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","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,OA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AAKC,yFA9BE,IAAI9X,KAAKqM,EAAMO,UAAY,kBAkBlCnP,IAAM+N,EAAO,IAAIxL,KAAKqM,GACtBb,EAAKC,QAAQD,EAAKE,UAAY,qBAC9BgM,EAAelM,KAhBf/N,IAAM+N,EAAO,IAAIxL,KAAKwM,GACtBhB,EAAKC,QAAQD,EAAKE,UAAY,uBAC9B+L,EAAkBjM,GAKlB/N,IAAM+N,EAAO,IAAIxL,KAAKwM,UACtBhB,EAAKC,QAAQD,EAAKE,UAAY,gBAC9BkM,EAAWpM,0CAnBuBA,UAA2B,IAAlBA,EAAKG,UAAoC,IAAlBH,EAAKG,gcA6BzE,SAAmBH,GAEjBN,QAAQ6M,kBAAkBvM,+MClCjB,IAAIwM,GAAI,CAClB9b,OAAQ8F,SAASkR,KACjB/Q,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 weeks[0].days.push({\n partOfMonth: date.getMonth() === month,\n date: new Date(date),\n ...dayProps(date)\n });\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","\n\n
\n
\n
dispatch('incrementMonth', -1)}>\n \n
\n
\n {monthDict[month].name} {year}\n
\n
dispatch('incrementMonth', 1)}>\n \n
\n
\n
\n {#each availableMonths as monthDefinition, index}\n
monthSelected(e, index)}\n >\n {monthDefinition.abbrev}\n
\n {/each}\n
\n
\n\n\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","\n\n

SvelteCalendar

\n
\n\t

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

\n\n\t\n\t\n\n\t

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

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

\n\n\t

With Svelte:

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

Without Svelte HTML:

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

Without Svelte JS:

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

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

\n\n\t
\n\t\t\n\t
\n\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.

\n\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).

\n\n\t
\n\t\t\n\t
\n\n\t

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

\n\t\n\t
\n\t\t logChoice(e.detail.date)} />\n\t
\n
\n\n\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","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","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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AelM,KAhBf9N,IAAM8N,EAAO,IAAIvL,KAAKuM,GACtBhB,EAAKC,QAAQD,EAAKE,UAAY,uBAC9B+L,EAAkBjM,GAKlB9N,IAAM8N,EAAO,IAAIvL,KAAKuM,UACtBhB,EAAKC,QAAQD,EAAKE,UAAY,gBAC9BkM,EAAWpM,0CAnBuBA,UAA2B,IAAlBA,EAAKG,UAAoC,IAAlBH,EAAKG,gcA6BzE,SAAmBH,GAEjBN,QAAQ6M,kBAAkBvM,+MClCjB,IAAIwM,GAAI,CAClB7b,OAAQ8F,SAASiR,KACjB9Q,KAAM"} \ No newline at end of file diff --git a/src/Components/Popover.svelte b/src/Components/Popover.svelte index 6417566..3db9e7a 100644 --- a/src/Components/Popover.svelte +++ b/src/Components/Popover.svelte @@ -99,7 +99,7 @@ -
+
@@ -119,7 +119,7 @@
\ No newline at end of file +