You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
datepicker/example/js/example.js

1 line
181 KiB

(()=>{var __webpack_modules__={"./node_modules/@riotjs/observable/dist/observable.js"(module){eval("{;(function(window, undefined) {const ALL_CALLBACKS = '*'\nconst define = Object.defineProperties\nconst entries = Object.entries\n\nconst on = (callbacks, el) => (event, fn) => {\n if (callbacks.has(event)) {\n callbacks.get(event).add(fn)\n } else {\n callbacks.set(event, new Set().add(fn))\n }\n\n return el\n}\n\nconst deleteCallback = (callbacks, el, event, fn) => {\n if (fn) {\n const fns = callbacks.get(event)\n\n if (fns) {\n fns.delete(fn)\n if (fns.size === 0) callbacks.delete(event)\n }\n } else callbacks.delete(event)\n}\n\nconst off = (callbacks, el) => (event, fn) => {\n if (event === ALL_CALLBACKS && !fn) {\n callbacks.clear()\n } else {\n deleteCallback(callbacks, el, event, fn)\n }\n\n return el\n}\n\nconst one = (callbacks, el) => (event, fn) => {\n function on(...args) {\n el.off(event, on)\n fn.apply(el, args)\n }\n return el.on(event, on)\n}\n\nconst trigger = (callbacks, el) => (event, ...args) => {\n const fns = callbacks.get(event)\n\n if (fns) fns.forEach(fn => fn.apply(el, args))\n\n if (callbacks.get(ALL_CALLBACKS) && event !== ALL_CALLBACKS) {\n el.trigger(ALL_CALLBACKS, event, ...args)\n }\n\n return el\n}\n\nconst observable = function(el) { // eslint-disable-line\n const callbacks = new Map()\n const methods = {on, off, one, trigger}\n\n el = el || {}\n\n define(el,\n entries(methods).reduce((acc, [key, method]) => {\n acc[key] = {\n value: method(callbacks, el),\n enumerable: false,\n writable: false,\n configurable: false\n }\n\n return acc\n }, {})\n )\n\n return el\n}\n /* istanbul ignore next */\n // support CommonJS, AMD & browser\n if (true)\n module.exports = observable\n else // removed by dead control flow\n{}\n\n})(typeof window != 'undefined' ? window : undefined);\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/@riotjs/observable/dist/observable.js?\n}")},"./node_modules/dayjs/dayjs.min.js"(module){eval('{!function(t,e){ true?module.exports=e():0}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/dayjs/dayjs.min.js?\n}')},"./node_modules/dayjs/plugin/isoWeek.js"(module){eval('{!function(e,t){ true?module.exports=t():0}(this,(function(){"use strict";var e="day";return function(t,i,s){var a=function(t){return t.add(4-t.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var i,d,n,o,r=a(this),u=(i=this.isoWeekYear(),d=this.$u,n=(d?s.utc:s)().year(i).startOf("year"),o=4-n.isoWeekday(),n.isoWeekday()>4&&(o+=7),n.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var n=d.startOf;d.startOf=function(e,t){var i=this.$utils(),s=!!i.u(t)||t;return"isoweek"===i.p(e)?s?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e,t)}}}));\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/dayjs/plugin/isoWeek.js?\n}')},"./node_modules/dayjs/plugin/localeData.js"(module){eval('{!function(n,e){ true?module.exports=e():0}(this,(function(){"use strict";return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return{months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return{firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)}}}));\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/dayjs/plugin/localeData.js?\n}')},"./node_modules/riot/esm/api/__.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ __: () => (/* binding */ __)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_binding_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/binding-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/binding-types.js");\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/expression-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js");\n/* harmony import */ var _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dependencies/@riotjs/dom-bindings/dist/dom-bindings.js */ "./node_modules/riot/esm/dependencies/@riotjs/dom-bindings/dist/dom-bindings.js");\n/* harmony import */ var _core_css_manager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/css-manager.js */ "./node_modules/riot/esm/core/css-manager.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n// expose some internal stuff that might be used from external tools\nconst __ = {\n cssManager: _core_css_manager_js__WEBPACK_IMPORTED_MODULE_4__["default"],\n DOMBindings: {\n template: _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_3__.template,\n createBinding: _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_3__.createBinding,\n createExpression: _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_3__.createExpression,\n bindingTypes: _dependencies_riotjs_util_binding_types_js__WEBPACK_IMPORTED_MODULE_0__["default"],\n expressionTypes: _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_2__["default"],\n },\n globals: {\n PROPS_KEY: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY,\n STATE_KEY: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY,\n IS_COMPONENT_UPDATING: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_COMPONENT_UPDATING,\n COMPONENTS_IMPLEMENTATION_MAP: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.COMPONENTS_IMPLEMENTATION_MAP,\n PLUGINS_SET: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PLUGINS_SET,\n DOM_COMPONENT_INSTANCE_PROPERTY: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.DOM_COMPONENT_INSTANCE_PROPERTY,\n PARENT_KEY_SYMBOL: _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL,\n },\n};\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/__.js?\n}')},"./node_modules/riot/esm/api/component.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ component: () => (/* binding */ component)\n/* harmony export */ });\n/* harmony import */ var _dependencies_cumpa_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/cumpa/index.js */ "./node_modules/riot/esm/dependencies/cumpa/index.js");\n/* harmony import */ var _core_create_component_from_wrapper_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/create-component-from-wrapper.js */ "./node_modules/riot/esm/core/create-component-from-wrapper.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Helper method to create component without relying on the registered ones\n * @param {object} implementation - component implementation\n * @returns {Function} function that will allow you to mount a riot component on a DOM node\n */\nfunction component(implementation) {\n return (el, props, { slots, attributes, parentScope } = {}) =>\n (0,_dependencies_cumpa_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(\n (c) => c.mount(el, parentScope),\n (c) => c({ props, slots, attributes }),\n _core_create_component_from_wrapper_js__WEBPACK_IMPORTED_MODULE_1__.createComponentFromWrapper,\n )(implementation)\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/component.js?\n}')},"./node_modules/riot/esm/api/create-pure-component.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createPureComponent: () => (/* binding */ createPureComponent)\n/* harmony export */ });\n/* harmony import */ var _core_create_pure_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/create-pure-component.js */ "./node_modules/riot/esm/core/create-pure-component.js");\n/* harmony import */ var _pure_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pure.js */ "./node_modules/riot/esm/api/pure.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Helper method to simplify the creation of pure components without the need to rely on a .riot file\n * @param {Function} func - RiotPureComponent factory function\n * @param {string} name - Optional parameter if you want to define the name of your component for debugging purposes\n * @returns {import(\'../../riot.js\').RiotComponentWrapper} pure component object implementation\n */\nfunction createPureComponent(func, name) {\n return {\n name,\n exports: (0,_pure_js__WEBPACK_IMPORTED_MODULE_1__.pure)(({ slots, attributes, props }) =>\n (0,_core_create_pure_component_js__WEBPACK_IMPORTED_MODULE_0__.createPureComponent)(func, {\n attributes,\n slots,\n props,\n }),\n ),\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/create-pure-component.js?\n}')},"./node_modules/riot/esm/api/install.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ install: () => (/* binding */ install)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/checks.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/checks.js");\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Define a riot plugin\n * @param {Function} plugin - function that will receive all the components created\n * @returns {Set} the set containing all the plugins installed\n */\nfunction install(plugin) {\n if (!(0,_dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(plugin)) (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_2__.panic)(\'Plugins must be of type function\');\n if (_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PLUGINS_SET.has(plugin)) (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_2__.panic)(\'This plugin was already installed\');\n\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PLUGINS_SET.add(plugin);\n\n return _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PLUGINS_SET\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/install.js?\n}')},"./node_modules/riot/esm/api/mount.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ mount: () => (/* binding */ mount)\n/* harmony export */ });\n/* harmony import */ var _dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/bianco.query/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.query/index.next.js");\n/* harmony import */ var _core_mount_component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/mount-component.js */ "./node_modules/riot/esm/core/mount-component.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Mounting function that will work only for the components that were globally registered\n * @param {string|HTMLElement} selector - query for the selection or a DOM element\n * @param {object} initialProps - the initial component properties\n * @param {string} name - optional component name\n * @returns {Array} list of riot components\n */\nfunction mount(selector, initialProps, name) {\n return (0,_dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__["default"])(selector).map((element) =>\n (0,_core_mount_component_js__WEBPACK_IMPORTED_MODULE_1__.mountComponent)(element, initialProps, name),\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/mount.js?\n}')},"./node_modules/riot/esm/api/pure.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ pure: () => (/* binding */ pure)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/checks.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/checks.js");\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Lift a riot component Interface into a pure riot object\n * @param {Function} func - RiotPureComponent factory function\n * @returns {Function} the lifted original function received as argument\n */\nfunction pure(func) {\n if (!(0,_dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(func))\n (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_2__.panic)(\'riot.pure accepts only arguments of type "function"\');\n func[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_PURE_SYMBOL] = true;\n return func\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/pure.js?\n}')},"./node_modules/riot/esm/api/register.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ register: () => (/* binding */ register)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _core_create_component_from_wrapper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/create-component-from-wrapper.js */ "./node_modules/riot/esm/core/create-component-from-wrapper.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Register a custom tag by name\n * @param {string} name - component name\n * @param {object} implementation - tag implementation\n * @param {string} implementation.css - component css as string\n * @param {TemplateChunk} implementation.template - component template chunk rendering function\n * @param {object} implementation.exports - component default export\n * @returns {Map} map containing all the components implementations\n */\nfunction register(name, { css, template, exports: exports$1 }) {\n if (_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.has(name))\n (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(`The component "${name}" was already registered`);\n\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.set(\n name,\n (0,_core_create_component_from_wrapper_js__WEBPACK_IMPORTED_MODULE_2__.createComponentFromWrapper)({ name, css, template, exports: exports$1 }),\n );\n\n return _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/register.js?\n}')},"./node_modules/riot/esm/api/uninstall.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ uninstall: () => (/* binding */ uninstall)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Uninstall a riot plugin\n * @param {Function} plugin - plugin previously installed\n * @returns {Set} the set containing all the plugins installed\n */\nfunction uninstall(plugin) {\n if (!_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.PLUGINS_SET.has(plugin)) (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(\'This plugin was never installed\');\n\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.PLUGINS_SET.delete(plugin);\n\n return _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.PLUGINS_SET\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/uninstall.js?\n}')},"./node_modules/riot/esm/api/unmount.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ unmount: () => (/* binding */ unmount)\n/* harmony export */ });\n/* harmony import */ var _dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/bianco.query/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.query/index.next.js");\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Sweet unmounting helper function for the DOM node mounted manually by the user\n * @param {string|HTMLElement} selector - query for the selection or a DOM element\n * @param {boolean|null} keepRootElement - if true keep the root element\n * @returns {Array} list of nodes unmounted\n */\nfunction unmount(selector, keepRootElement) {\n return (0,_dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__["default"])(selector).map((element) => {\n if (element[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.DOM_COMPONENT_INSTANCE_PROPERTY]) {\n element[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.DOM_COMPONENT_INSTANCE_PROPERTY].unmount(keepRootElement);\n }\n return element\n })\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/unmount.js?\n}')},"./node_modules/riot/esm/api/unregister.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ unregister: () => (/* binding */ unregister)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _core_css_manager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/css-manager.js */ "./node_modules/riot/esm/core/css-manager.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Unregister a riot web component\n * @param {string} name - component name\n * @returns {Map} map containing all the components implementations\n */\nfunction unregister(name) {\n if (!_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.has(name))\n (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(`The component "${name}" was never registered`);\n\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.delete(name);\n _core_css_manager_js__WEBPACK_IMPORTED_MODULE_2__["default"].remove(name);\n\n return _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/unregister.js?\n}')},"./node_modules/riot/esm/api/version.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ version: () => (/* binding */ version)\n/* harmony export */ });\n/* Riot v10.1.2, @license MIT */\n/** @type {string} current riot version */\nconst version = 'v10.1.2';\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/version.js?\n}")},"./node_modules/riot/esm/api/with-types.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ withTypes: () => (/* binding */ withTypes)\n/* harmony export */ });\n/* Riot v10.1.2, @license MIT */\n/**\n * no-op function needed to add the proper types to your component via typescript\n * @param {Function | object} component - component default export\n * @returns {Function | object} returns exactly what it has received\n */\n/* istanbul ignore next */\nconst withTypes = (component) => component;\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/api/with-types.js?\n}")},"./node_modules/riot/esm/core/add-css-hook.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ addCssHook: () => (/* binding */ addCssHook)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _utils_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/dom.js */ "./node_modules/riot/esm/utils/dom.js");\n/* harmony import */ var _dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/bianco.attr/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.attr/index.next.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Add eventually the "is" attribute to link this DOM node to its css\n * @param {HTMLElement} element - target root node\n * @param {string} name - name of the component mounted\n * @returns {undefined} it\'s a void function\n */\n\nfunction addCssHook(element, name) {\n if ((0,_utils_dom_js__WEBPACK_IMPORTED_MODULE_1__.getName)(element) !== name) {\n (0,_dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_2__.set)(element, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_DIRECTIVE, name);\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/add-css-hook.js?\n}')},"./node_modules/riot/esm/core/bind-dom-node-to-component-instance.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ bindDOMNodeToComponentInstance: () => (/* binding */ bindDOMNodeToComponentInstance)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* Riot v10.1.2, @license MIT */\n\n\n/**\n * Bind a DOM node to its component object\n * @param {HTMLElement} node - html node mounted\n * @param {object} component - Riot.js component object\n * @returns {object} the component object received as second argument\n */\nconst bindDOMNodeToComponentInstance = (node, component) =>\n (node[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.DOM_COMPONENT_INSTANCE_PROPERTY] = component);\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/bind-dom-node-to-component-instance.js?\n}')},"./node_modules/riot/esm/core/component-dom-selectors.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ COMPONENT_DOM_SELECTORS: () => (/* binding */ COMPONENT_DOM_SELECTORS)\n/* harmony export */ });\n/* harmony import */ var _dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/bianco.query/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.query/index.next.js");\n/* Riot v10.1.2, @license MIT */\n\n\nconst COMPONENT_DOM_SELECTORS = Object.freeze({\n // component helpers\n $(selector) {\n return (0,_dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__["default"])(selector, this.root)[0]\n },\n $$(selector) {\n return (0,_dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__["default"])(selector, this.root)\n },\n});\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/component-dom-selectors.js?\n}')},"./node_modules/riot/esm/core/component-lifecycle-methods.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ COMPONENT_LIFECYCLE_METHODS: () => (/* binding */ COMPONENT_LIFECYCLE_METHODS)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\nconst COMPONENT_LIFECYCLE_METHODS = Object.freeze({\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.SHOULD_UPDATE_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_BEFORE_MOUNT_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_MOUNTED_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_BEFORE_UPDATE_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_UPDATED_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_BEFORE_UNMOUNT_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ON_UNMOUNTED_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n});\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/component-lifecycle-methods.js?\n}')},"./node_modules/riot/esm/core/component-template-factory.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ componentTemplateFactory: () => (/* binding */ componentTemplateFactory)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/dom-bindings/dist/dom-bindings.js */ "./node_modules/riot/esm/dependencies/@riotjs/dom-bindings/dist/dom-bindings.js");\n/* harmony import */ var _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/expression-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js");\n/* harmony import */ var _dependencies_riotjs_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/binding-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/binding-types.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Factory function to create the component templates only once\n * @param {Function} template - component template creation function\n * @param {RiotComponentWrapper} componentWrapper - riot compiler generated object\n * @param {Function} getChildComponent - getter function to return the children components\n * @returns {TemplateChunk} template chunk object\n */\nfunction componentTemplateFactory(\n template,\n componentWrapper,\n getChildComponent,\n) {\n return template(\n _dependencies_riotjs_dom_bindings_dist_dom_bindings_js__WEBPACK_IMPORTED_MODULE_0__.template,\n _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_1__["default"],\n _dependencies_riotjs_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__["default"],\n getChildComponent,\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/component-template-factory.js?\n}')},"./node_modules/riot/esm/core/compute-component-state.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ computeComponentState: () => (/* binding */ computeComponentState)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* Riot v10.1.2, @license MIT */\n\n\n/**\n * Compute the component current state merging it with its previous state\n * @param {object} oldState - previous state object\n * @param {object} newState - new state given to the `update` call\n * @returns {object} new object state\n */\nfunction computeComponentState(oldState, newState) {\n return {\n ...oldState,\n ...(0,_dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_0__.callOrAssign)(newState),\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/compute-component-state.js?\n}')},"./node_modules/riot/esm/core/compute-initial-props.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ computeInitialProps: () => (/* binding */ computeInitialProps)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/dom.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/dom.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Evaluate the component properties either from its real attributes or from its initial user properties\n * @param {HTMLElement} element - component root\n * @param {object} initialProps - initial props\n * @returns {object} component props key value pairs\n */\nfunction computeInitialProps(element, initialProps = {}) {\n return {\n ...(0,_dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.DOMattributesToObject)(element),\n ...(0,_dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.callOrAssign)(initialProps),\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/compute-initial-props.js?\n}')},"./node_modules/riot/esm/core/create-component-from-wrapper.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createComponentFromWrapper: () => (/* binding */ createComponentFromWrapper)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/strings.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/strings.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _mocked_template_interface_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mocked-template-interface.js */ "./node_modules/riot/esm/core/mocked-template-interface.js");\n/* harmony import */ var _component_template_factory_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./component-template-factory.js */ "./node_modules/riot/esm/core/component-template-factory.js");\n/* harmony import */ var _create_pure_component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./create-pure-component.js */ "./node_modules/riot/esm/core/create-pure-component.js");\n/* harmony import */ var _instantiate_component_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./instantiate-component.js */ "./node_modules/riot/esm/core/instantiate-component.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n\n\n\n/**\n * Create the subcomponents that can be included inside a tag in runtime\n * @param {object} components - components imported in runtime\n * @returns {object} all the components transformed into Riot.Component factory functions\n */\nfunction createChildrenComponentsObject(components = {}) {\n return Object.entries((0,_dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__.callOrAssign)(components)).reduce(\n (acc, [key, value]) => {\n acc[(0,_dependencies_riotjs_util_strings_js__WEBPACK_IMPORTED_MODULE_1__.camelToDashCase)(key)] = createComponentFromWrapper(value);\n return acc\n },\n {},\n )\n}\n\n/**\n * Create the getter function to render the child components\n * @param {RiotComponentWrapper} componentWrapper - riot compiler generated object\n * @returns {Function} function returning the component factory function\n */\nconst createChildComponentGetter = (componentWrapper) => {\n const childrenComponents = createChildrenComponentsObject(\n componentWrapper.exports ? componentWrapper.exports.components : {},\n );\n\n return (name) => {\n // improve support for recursive components\n if (name === componentWrapper.name)\n return memoizedCreateComponentFromWrapper(componentWrapper)\n // return the registered components\n return childrenComponents[name] || _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.get(name)\n }\n};\n\n/**\n * Performance optimization for the recursive components\n * @param {RiotComponentWrapper} componentWrapper - riot compiler generated object\n * @returns {object} component like interface\n */\nconst memoizedCreateComponentFromWrapper = (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_3__.memoize)(createComponentFromWrapper);\n\n/**\n * Create the component interface needed for the @riotjs/dom-bindings tag bindings\n * @param {RiotComponentWrapper} componentWrapper - riot compiler generated object\n * @param {string} componentWrapper.css - component css\n * @param {Function} componentWrapper.template - function that will return the dom-bindings template function\n * @param {object} componentWrapper.exports - component interface\n * @param {string} componentWrapper.name - component name\n * @returns {object} component like interface\n */\nfunction createComponentFromWrapper(componentWrapper) {\n const { css, template, exports: exports$1, name } = componentWrapper;\n const templateFn = template\n ? (0,_component_template_factory_js__WEBPACK_IMPORTED_MODULE_5__.componentTemplateFactory)(\n template,\n componentWrapper,\n createChildComponentGetter(componentWrapper),\n )\n : _mocked_template_interface_js__WEBPACK_IMPORTED_MODULE_4__.MOCKED_TEMPLATE_INTERFACE;\n\n return ({ slots, attributes, props }) => {\n // pure components rendering will be managed by the end user\n if (exports$1 && exports$1[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PURE_SYMBOL])\n return (0,_create_pure_component_js__WEBPACK_IMPORTED_MODULE_6__.createPureComponent)(exports$1, {\n slots,\n attributes,\n props,\n css,\n template,\n })\n\n const componentAPI = (0,_dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__.callOrAssign)(exports$1) || {};\n\n const component = (0,_instantiate_component_js__WEBPACK_IMPORTED_MODULE_7__.instantiateComponent)({\n css,\n template: templateFn,\n componentAPI,\n name,\n })({ slots, attributes, props });\n\n // notice that for the components created via tag binding\n // we need to invert the mount (state/parentScope) arguments\n // the template bindings will only forward the parentScope updates\n // and never deal with the component state\n return {\n mount(element, parentScope, state) {\n return component.mount(element, state, parentScope)\n },\n update(parentScope, state) {\n return component.update(state, parentScope)\n },\n unmount(preserveRoot) {\n return component.unmount(preserveRoot)\n },\n }\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/create-component-from-wrapper.js?\n}')},"./node_modules/riot/esm/core/create-core-api-methods.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createCoreAPIMethods: () => (/* binding */ createCoreAPIMethods)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* Riot v10.1.2, @license MIT */\n\n\n/**\n * Wrap the Riot.js core API methods using a mapping function\n * @param {Function} mapFunction - lifting function\n * @returns {object} an object having the { mount, update, unmount } functions\n */\nfunction createCoreAPIMethods(mapFunction) {\n return [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.MOUNT_METHOD_KEY, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UPDATE_METHOD_KEY, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UNMOUNT_METHOD_KEY].reduce(\n (acc, method) => {\n acc[method] = mapFunction(method);\n\n return acc\n },\n {},\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/create-core-api-methods.js?\n}')},"./node_modules/riot/esm/core/create-pure-component.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ createPureComponent: () => (/* binding */ createPureComponent)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/objects.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/objects.js");\n/* harmony import */ var _pure_component_api_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pure-component-api.js */ "./node_modules/riot/esm/core/pure-component-api.js");\n/* harmony import */ var _bind_dom_node_to_component_instance_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./bind-dom-node-to-component-instance.js */ "./node_modules/riot/esm/core/bind-dom-node-to-component-instance.js");\n/* harmony import */ var _create_core_api_methods_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./create-core-api-methods.js */ "./node_modules/riot/esm/core/create-core-api-methods.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n\n/**\n * Create a pure component\n * @param {Function} pureFactoryFunction - pure component factory function\n * @param {object} options - pure component options\n * @param {string} options.css - pure component can\'t have css\n * @param {Array} options.slots - component slots\n * @param {Array} options.attributes - component attributes\n * @param {Array} options.template - template factory function\n * @param {any} options.props - initial component properties\n * @returns {object} pure component object\n */\nfunction createPureComponent(\n pureFactoryFunction,\n { slots, attributes, props, css, template },\n) {\n if (template) (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(\'Pure components can not have html\');\n if (css) (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(\'Pure components do not have css\');\n\n const component = (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_2__.defineDefaults)(\n pureFactoryFunction({ slots, attributes, props }),\n _pure_component_api_js__WEBPACK_IMPORTED_MODULE_3__.PURE_COMPONENT_API,\n );\n\n return (0,_create_core_api_methods_js__WEBPACK_IMPORTED_MODULE_5__.createCoreAPIMethods)((method) => (...args) => {\n // intercept the mount calls to bind the DOM node to the pure object created\n // see also https://github.com/riot/riot/issues/2806\n if (method === _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.MOUNT_METHOD_KEY) {\n const [element] = args;\n // mark this node as pure element\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_2__.defineProperty)(element, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PURE_SYMBOL, true);\n (0,_bind_dom_node_to_component_instance_js__WEBPACK_IMPORTED_MODULE_4__.bindDOMNodeToComponentInstance)(element, component);\n }\n\n component[method](...args);\n\n return component\n })\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/create-pure-component.js?\n}')},"./node_modules/riot/esm/core/css-manager.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ CSS_BY_NAME: () => (/* binding */ CSS_BY_NAME),\n/* harmony export */ STYLE_NODE_SELECTOR: () => (/* binding */ STYLE_NODE_SELECTOR),\n/* harmony export */ \"default\": () => (/* binding */ cssManager)\n/* harmony export */ });\n/* harmony import */ var _dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/bianco.query/index.next.js */ \"./node_modules/riot/esm/dependencies/bianco.query/index.next.js\");\n/* harmony import */ var _dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/bianco.attr/index.next.js */ \"./node_modules/riot/esm/dependencies/bianco.attr/index.next.js\");\n/* Riot v10.1.2, @license MIT */\n\n\n\nconst CSS_BY_NAME = new Map();\nconst STYLE_NODE_SELECTOR = 'style[riot]';\n\n// memoized curried function\nconst getStyleNode = ((style) => {\n return () => {\n // lazy evaluation:\n // if this function was already called before\n // we return its cached result\n if (style) return style\n\n // create a new style element or use an existing one\n // and cache it internally\n style = (0,_dependencies_bianco_query_index_next_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(STYLE_NODE_SELECTOR)[0] || document.createElement('style');\n (0,_dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_1__.set)(style, 'type', 'text/css');\n\n /* istanbul ignore next */\n if (!style.parentNode) document.head.appendChild(style);\n\n return style\n }\n})();\n\n/**\n * Object that will be used to inject and manage the css of every tag instance\n */\nconst cssManager = {\n CSS_BY_NAME,\n /**\n * Save a tag style to be later injected into DOM\n * @param { string } name - if it's passed we will map the css to a tagname\n * @param { string } css - css string\n * @returns {object} self\n */\n add(name, css) {\n if (!CSS_BY_NAME.has(name)) {\n CSS_BY_NAME.set(name, css);\n this.inject();\n }\n\n return this\n },\n /**\n * Inject all previously saved tag styles into DOM\n * innerHTML seems slow: http://jsperf.com/riot-insert-style\n * @returns {object} self\n */\n inject() {\n getStyleNode().innerHTML = [...CSS_BY_NAME.values()].join('\\n');\n return this\n },\n\n /**\n * Remove a tag style from the DOM\n * @param {string} name a registered tagname\n * @returns {object} self\n */\n remove(name) {\n if (CSS_BY_NAME.has(name)) {\n CSS_BY_NAME.delete(name);\n this.inject();\n }\n\n return this\n },\n};\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/css-manager.js?\n}")},"./node_modules/riot/esm/core/instantiate-component.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ instantiateComponent: () => (/* binding */ instantiateComponent)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/objects.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/objects.js");\n/* harmony import */ var _component_dom_selectors_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./component-dom-selectors.js */ "./node_modules/riot/esm/core/component-dom-selectors.js");\n/* harmony import */ var _component_lifecycle_methods_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./component-lifecycle-methods.js */ "./node_modules/riot/esm/core/component-lifecycle-methods.js");\n/* harmony import */ var _css_manager_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./css-manager.js */ "./node_modules/riot/esm/core/css-manager.js");\n/* harmony import */ var _dependencies_curri_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dependencies/curri/index.js */ "./node_modules/riot/esm/dependencies/curri/index.js");\n/* harmony import */ var _manage_component_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./manage-component-lifecycle.js */ "./node_modules/riot/esm/core/manage-component-lifecycle.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n\n\n/**\n * Component definition function\n * @param {object} component - the component initial properties\n * @param {string} component.css - component css string\n * @param {TemplateChunk} component.template - component template rendering\n * @param {object} component.componentAPI - component export default value\n * @param {string} component.name - component name\n * @returns {object} a new component implementation object\n */\nfunction instantiateComponent({ css, template, componentAPI, name }) {\n // add the component css into the DOM\n if (css && name) _css_manager_js__WEBPACK_IMPORTED_MODULE_4__["default"].add(name, css);\n\n return (0,_dependencies_curri_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_manage_component_lifecycle_js__WEBPACK_IMPORTED_MODULE_6__.manageComponentLifecycle)(\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_1__.defineProperties)(\n // set the component defaults without overriding the original component API\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_1__.defineDefaults)(componentAPI, {\n ..._component_lifecycle_methods_js__WEBPACK_IMPORTED_MODULE_3__.COMPONENT_LIFECYCLE_METHODS,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.PROPS_KEY]: {},\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.STATE_KEY]: {},\n }),\n {\n // defined during the component creation\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.SLOTS_KEY]: null,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.ROOT_KEY]: null,\n // these properties should not be overriden\n ..._component_dom_selectors_js__WEBPACK_IMPORTED_MODULE_2__.COMPONENT_DOM_SELECTORS,\n name,\n css,\n template,\n },\n ),\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/instantiate-component.js?\n}')},"./node_modules/riot/esm/core/manage-component-lifecycle.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ manageComponentLifecycle: () => (/* binding */ manageComponentLifecycle)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/checks.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/checks.js");\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/dom.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/dom.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dependencies/@riotjs/util/objects.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/objects.js");\n/* harmony import */ var _utils_get_root_computed_attribute_names_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/get-root-computed-attribute-names.js */ "./node_modules/riot/esm/utils/get-root-computed-attribute-names.js");\n/* harmony import */ var _add_css_hook_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./add-css-hook.js */ "./node_modules/riot/esm/core/add-css-hook.js");\n/* harmony import */ var _bind_dom_node_to_component_instance_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./bind-dom-node-to-component-instance.js */ "./node_modules/riot/esm/core/bind-dom-node-to-component-instance.js");\n/* harmony import */ var _compute_component_state_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./compute-component-state.js */ "./node_modules/riot/esm/core/compute-component-state.js");\n/* harmony import */ var _compute_initial_props_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./compute-initial-props.js */ "./node_modules/riot/esm/core/compute-initial-props.js");\n/* harmony import */ var _run_plugins_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./run-plugins.js */ "./node_modules/riot/esm/core/run-plugins.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Component creation factory function that will enhance the user provided API\n * @param {object} component - a component implementation previously defined\n * @param {object} options - component options\n * @param {Array} options.slots - component slots generated via riot compiler\n * @param {Array} options.attributes - attribute expressions generated via riot compiler\n * @param {object} options.props - component initial props\n * @returns {Riot.Component} a riot component instance\n */\nfunction manageComponentLifecycle(\n component,\n { slots, attributes = [], props },\n) {\n return (0,_dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_3__.autobindMethods)(\n (0,_run_plugins_js__WEBPACK_IMPORTED_MODULE_11__.runPlugins)(\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperties)(\n (0,_dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__.isObject)(component) ? Object.create(component) : component,\n {\n mount(element, state = {}, parentScope) {\n // any element mounted passing through this function can\'t be a pure component\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperty)(element, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_PURE_SYMBOL, false);\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL] = parentScope;\n\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperty)(\n this,\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY,\n Object.freeze({\n ...(0,_compute_initial_props_js__WEBPACK_IMPORTED_MODULE_10__.computeInitialProps)(element, props),\n ...(0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_4__.generatePropsFromAttributes)(attributes, parentScope),\n }),\n );\n\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY] = (0,_compute_component_state_js__WEBPACK_IMPORTED_MODULE_9__.computeComponentState)(this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY], state);\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.TEMPLATE_KEY_SYMBOL] = this.template.createDOM(element).clone();\n // get the attribute names that don\'t belong to the props object\n // this will avoid recursive props rendering https://github.com/riot/riot/issues/2994\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_ATTRIBUTES_KEY_SYMBOL] = (0,_utils_get_root_computed_attribute_names_js__WEBPACK_IMPORTED_MODULE_6__.getRootComputedAttributeNames)(\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.TEMPLATE_KEY_SYMBOL],\n );\n\n // link this object to the DOM node\n (0,_bind_dom_node_to_component_instance_js__WEBPACK_IMPORTED_MODULE_8__.bindDOMNodeToComponentInstance)(element, this);\n // add eventually the \'is\' attribute\n component.name && (0,_add_css_hook_js__WEBPACK_IMPORTED_MODULE_7__.addCssHook)(element, component.name);\n\n // define the root element\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperty)(this, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_KEY, element);\n // define the slots array\n (0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperty)(this, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.SLOTS_KEY, slots);\n\n // before mount lifecycle event\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_BEFORE_MOUNT_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n // mount the template\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.TEMPLATE_KEY_SYMBOL].mount(element, this, parentScope);\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_MOUNTED_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n\n return this\n },\n update(state = {}, parentScope) {\n if (parentScope) {\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL] = parentScope;\n }\n\n // filter out the computed attributes from the root node\n const staticRootAttributes = Array.from(\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_KEY].attributes,\n ).filter(\n ({ name }) => !this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_ATTRIBUTES_KEY_SYMBOL].includes(name),\n );\n\n // evaluate the value of the static dom attributes\n const domNodeAttributes = (0,_dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_2__.DOMattributesToObject)({\n attributes: staticRootAttributes,\n });\n\n // Avoid adding the riot "is" directives to the component props\n // eslint-disable-next-line no-unused-vars\n const { [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_DIRECTIVE]: _, ...newProps } = {\n ...domNodeAttributes,\n ...(0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_4__.generatePropsFromAttributes)(\n attributes,\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL],\n ),\n };\n if (this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.SHOULD_UPDATE_KEY](newProps, this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY]) === false)\n return\n\n ;(0,_dependencies_riotjs_util_objects_js__WEBPACK_IMPORTED_MODULE_5__.defineProperty)(\n this,\n _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY,\n Object.freeze({\n // only root components will merge their initial props with the new ones\n // children components will just get them overridden see also https://github.com/riot/riot/issues/2978\n ...(parentScope ? null : this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY]),\n ...newProps,\n }),\n );\n\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY] = (0,_compute_component_state_js__WEBPACK_IMPORTED_MODULE_9__.computeComponentState)(this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY], state);\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_BEFORE_UPDATE_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n\n // avoiding recursive updates\n // see also https://github.com/riot/riot/issues/2895\n if (!this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_COMPONENT_UPDATING]) {\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_COMPONENT_UPDATING] = true;\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.TEMPLATE_KEY_SYMBOL].update(this, this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL]);\n }\n\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_UPDATED_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_COMPONENT_UPDATING] = false;\n\n return this\n },\n unmount(preserveRoot) {\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_BEFORE_UNMOUNT_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n\n // make sure that computed root attributes get removed if the root is preserved\n // https://github.com/riot/riot/issues/3051\n if (preserveRoot)\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_ATTRIBUTES_KEY_SYMBOL].forEach((attribute) =>\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ROOT_KEY].removeAttribute(attribute),\n );\n // if the preserveRoot is null the template html will be left untouched\n // in that case the DOM cleanup will happen differently from a parent node\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.TEMPLATE_KEY_SYMBOL].unmount(\n this,\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL],\n preserveRoot === null ? null : !preserveRoot,\n );\n this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.ON_UNMOUNTED_KEY](this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PROPS_KEY], this[_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.STATE_KEY]);\n\n return this\n },\n },\n ),\n ),\n Object.keys(component).filter((prop) => (0,_dependencies_riotjs_util_checks_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(component[prop])),\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/manage-component-lifecycle.js?\n}')},"./node_modules/riot/esm/core/mocked-template-interface.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ MOCKED_TEMPLATE_INTERFACE: () => (/* binding */ MOCKED_TEMPLATE_INTERFACE)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/dom.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/dom.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n// Components without template use a mocked template interface with some basic functionalities to\n// guarantee consistent rendering behaviour see https://github.com/riot/riot/issues/2984\nconst MOCKED_TEMPLATE_INTERFACE = {\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.MOUNT_METHOD_KEY](el) {\n this.el = el;\n },\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UPDATE_METHOD_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UNMOUNT_METHOD_KEY](_, __, mustRemoveRoot = false) {\n if (mustRemoveRoot) (0,_dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_1__.removeChild)(this.el);\n else if (!mustRemoveRoot) (0,_dependencies_riotjs_util_dom_js__WEBPACK_IMPORTED_MODULE_1__.cleanNode)(this.el);\n },\n clone() {\n return { ...this }\n },\n createDOM: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_2__.noop,\n};\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/mocked-template-interface.js?\n}')},"./node_modules/riot/esm/core/mount-component.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ mountComponent: () => (/* binding */ mountComponent)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* harmony import */ var _utils_dom_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/dom.js */ "./node_modules/riot/esm/utils/dom.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Component initialization function starting from a DOM node\n * @param {HTMLElement} element - element to upgrade\n * @param {object} initialProps - initial component properties\n * @param {string} componentName - component id\n * @param {Array} slots - component slots\n * @returns {object} a new component instance bound to a DOM node\n */\nfunction mountComponent(element, initialProps, componentName, slots) {\n const name = componentName || (0,_utils_dom_js__WEBPACK_IMPORTED_MODULE_2__.getName)(element);\n if (!_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.has(name))\n (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.panic)(`The component named "${name}" was never registered`);\n\n const component = _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.COMPONENTS_IMPLEMENTATION_MAP.get(name)({\n props: initialProps,\n slots,\n });\n\n return component.mount(element)\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/mount-component.js?\n}')},"./node_modules/riot/esm/core/pure-component-api.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PURE_COMPONENT_API: () => (/* binding */ PURE_COMPONENT_API)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/functions.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/functions.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\nconst PURE_COMPONENT_API = Object.freeze({\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.MOUNT_METHOD_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UPDATE_METHOD_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n [_dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.UNMOUNT_METHOD_KEY]: _dependencies_riotjs_util_functions_js__WEBPACK_IMPORTED_MODULE_1__.noop,\n});\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/pure-component-api.js?\n}')},"./node_modules/riot/esm/core/run-plugins.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ runPlugins: () => (/* binding */ runPlugins)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* Riot v10.1.2, @license MIT */\n\n\n/**\n * Run the component instance through all the plugins set by the user\n * @param {object} component - component instance\n * @returns {object} the component enhanced by the plugins\n */\nfunction runPlugins(component) {\n return [..._dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.PLUGINS_SET].reduce((c, fn) => fn(c) || c, component)\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/core/run-plugins.js?\n}')},"./node_modules/riot/esm/dependencies/@riotjs/dom-bindings/dist/dom-bindings.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ bindingTypes: () => (/* reexport safe */ _util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]),\n/* harmony export */ createBinding: () => (/* binding */ create$1),\n/* harmony export */ createExpression: () => (/* binding */ create$4),\n/* harmony export */ expressionTypes: () => (/* reexport safe */ _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]),\n/* harmony export */ template: () => (/* binding */ create)\n/* harmony export */ });\n/* harmony import */ var _util_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../util/dom.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/dom.js\");\n/* harmony import */ var _util_constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util/constants.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/constants.js\");\n/* harmony import */ var _util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util/binding-types.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/binding-types.js\");\n/* harmony import */ var _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../util/expression-types.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js\");\n/* harmony import */ var _util_objects_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util/objects.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/objects.js\");\n/* harmony import */ var _util_checks_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../util/checks.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/checks.js\");\n/* harmony import */ var _util_misc_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../util/misc.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/misc.js\");\n/* Riot WIP, @license MIT */\n\n\n\n\n\n\n\n\n\n\nconst HEAD_SYMBOL = Symbol();\nconst TAIL_SYMBOL = Symbol();\n\n/**\n * Create the <template> fragments text nodes\n * @returns {object} {{head: Text, tail: Text}}\n */\nfunction createHeadTailPlaceholders() {\n const head = document.createTextNode('');\n const tail = document.createTextNode('');\n\n head[HEAD_SYMBOL] = true;\n tail[TAIL_SYMBOL] = true;\n\n return { head, tail }\n}\n\n/**\n * Create the template meta object in case of <template> fragments\n * @param {TemplateChunk} componentTemplate - template chunk object\n * @returns {object} the meta property that will be passed to the mount function of the TemplateChunk\n */\nfunction createTemplateMeta(componentTemplate) {\n const fragment = componentTemplate.dom.cloneNode(true);\n const { head, tail } = createHeadTailPlaceholders();\n\n return {\n avoidDOMInjection: true,\n fragment,\n head,\n tail,\n children: [head, ...Array.from(fragment.childNodes), tail],\n }\n}\n\n/* c8 ignore start */\n/**\n * ISC License\n *\n * Copyright (c) 2020, Andrea Giammarchi, @WebReflection\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\n * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n * PERFORMANCE OF THIS SOFTWARE.\n */\n\n// fork of https://github.com/WebReflection/udomdiff version 1.1.0\n// due to https://github.com/WebReflection/udomdiff/pull/2\n/* eslint-disable */\n\n/**\n * @param {Node[]} a The list of current/live children\n * @param {Node[]} b The list of future children\n * @param {(entry: Node, action: number) => Node} get\n * The callback invoked per each entry related DOM operation.\n * @param {Node} [before] The optional node used as anchor to insert before.\n * @returns {Node[]} The same list of future children.\n */\nconst udomdiff = (a, b, get, before) => {\n const bLength = b.length;\n let aEnd = a.length;\n let bEnd = bLength;\n let aStart = 0;\n let bStart = 0;\n let map = null;\n while (aStart < aEnd || bStart < bEnd) {\n // append head, tail, or nodes in between: fast path\n if (aEnd === aStart) {\n // we could be in a situation where the rest of nodes that\n // need to be added are not at the end, and in such case\n // the node to `insertBefore`, if the index is more than 0\n // must be retrieved, otherwise it's gonna be the first item.\n const node =\n bEnd < bLength\n ? bStart\n ? get(b[bStart - 1], -0).nextSibling\n : get(b[bEnd - bStart], 0)\n : before;\n while (bStart < bEnd) (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.insertBefore)(get(b[bStart++], 1), node);\n }\n // remove head or tail: fast path\n else if (bEnd === bStart) {\n while (aStart < aEnd) {\n // remove the node only if it's unknown or not live\n if (!map || !map.has(a[aStart])) (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(get(a[aStart], -1));\n aStart++;\n }\n }\n // same node: fast path\n else if (a[aStart] === b[bStart]) {\n aStart++;\n bStart++;\n }\n // same tail: fast path\n else if (a[aEnd - 1] === b[bEnd - 1]) {\n aEnd--;\n bEnd--;\n }\n // The once here single last swap \"fast path\" has been removed in v1.1.0\n // https://github.com/WebReflection/udomdiff/blob/single-final-swap/esm/index.js#L69-L85\n // reverse swap: also fast path\n else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {\n // this is a \"shrink\" operation that could happen in these cases:\n // [1, 2, 3, 4, 5]\n // [1, 4, 3, 2, 5]\n // or asymmetric too\n // [1, 2, 3, 4, 5]\n // [1, 2, 3, 5, 6, 4]\n const node = get(a[--aEnd], -1).nextSibling;\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.moveBefore)(get(b[bStart++], 1), get(a[aStart++], -1).nextSibling);\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.moveBefore)(get(b[--bEnd], 1), node);\n // mark the future index as identical (yeah, it's dirty, but cheap 👍)\n // The main reason to do this, is that when a[aEnd] will be reached,\n // the loop will likely be on the fast path, as identical to b[bEnd].\n // In the best case scenario, the next loop will skip the tail,\n // but in the worst one, this node will be considered as already\n // processed, bailing out pretty quickly from the map index check\n a[aEnd] = b[bEnd];\n }\n // map based fallback, \"slow\" path\n else {\n // the map requires an O(bEnd - bStart) operation once\n // to store all future nodes indexes for later purposes.\n // In the worst case scenario, this is a full O(N) cost,\n // and such scenario happens at least when all nodes are different,\n // but also if both first and last items of the lists are different\n if (!map) {\n map = new Map();\n let i = bStart;\n while (i < bEnd) map.set(b[i], i++);\n }\n // if it's a future node, hence it needs some handling\n if (map.has(a[aStart])) {\n // grab the index of such node, 'cause it might have been processed\n const index = map.get(a[aStart]);\n // if it's not already processed, look on demand for the next LCS\n if (bStart < index && index < bEnd) {\n let i = aStart;\n // counts the amount of nodes that are the same in the future\n let sequence = 1;\n while (++i < aEnd && i < bEnd && map.get(a[i]) === index + sequence)\n sequence++;\n // effort decision here: if the sequence is longer than replaces\n // needed to reach such sequence, which would brings again this loop\n // to the fast path, prepend the difference before a sequence,\n // and move only the future list index forward, so that aStart\n // and bStart will be aligned again, hence on the fast path.\n // An example considering aStart and bStart are both 0:\n // a: [1, 2, 3, 4]\n // b: [7, 1, 2, 3, 6]\n // this would place 7 before 1 and, from that time on, 1, 2, and 3\n // will be processed at zero cost\n if (sequence > index - bStart) {\n const node = get(a[aStart], 0);\n while (bStart < index) (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.moveBefore)(get(b[bStart++], 1), node);\n }\n // if the effort wasn't good enough, fallback to a replace,\n // moving both source and target indexes forward, hoping that some\n // similar node will be found later on, to go back to the fast path\n else {\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.replaceChild)(get(b[bStart++], 1), get(a[aStart++], -1));\n }\n }\n // otherwise move the source forward, 'cause there's nothing to do\n else aStart++;\n }\n // this node has no meaning in the future list, so it's more than safe\n // to remove it, and check the next live node out instead, meaning\n // that only the live list index should be forwarded\n else (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(get(a[aStart++], -1));\n }\n }\n return b\n};\n\nconst UNMOUNT_SCOPE = Symbol('unmount');\n\nconst EachBinding = {\n // dynamic binding properties\n // childrenMap: null,\n // node: null,\n // root: null,\n // condition: null,\n // evaluate: null,\n // template: null,\n // isTemplateTag: false,\n nodes: [],\n // getKey: null,\n // indexName: null,\n // itemName: null,\n // afterPlaceholder: null,\n // placeholder: null,\n\n // API methods\n mount(scope, parentScope) {\n return this.update(scope, parentScope)\n },\n update(scope, parentScope) {\n const { placeholder, nodes, childrenMap } = this;\n const collection = scope === UNMOUNT_SCOPE ? null : this.evaluate(scope);\n const items = collection ? Array.from(collection) : [];\n\n // prepare the diffing\n const { newChildrenMap, batches, futureNodes } = createPatch(\n items,\n scope,\n parentScope,\n this,\n );\n\n // patch the DOM only if there are new nodes\n udomdiff(\n nodes,\n futureNodes,\n patch(Array.from(childrenMap.values()), parentScope),\n placeholder,\n );\n\n // trigger the mounts and the updates\n batches.forEach((fn) => fn());\n\n // update the children map\n this.childrenMap = newChildrenMap;\n this.nodes = futureNodes;\n\n return this\n },\n unmount(scope, parentScope) {\n this.update(UNMOUNT_SCOPE, parentScope);\n\n return this\n },\n};\n\n/**\n * Patch the DOM while diffing\n * @param {any[]} redundant - list of all the children (template, nodes, context) added via each\n * @param {*} parentScope - scope of the parent template\n * @returns {Function} patch function used by domdiff\n */\nfunction patch(redundant, parentScope) {\n return (item, info) => {\n if (info < 0) {\n // get the last element added to the childrenMap saved previously\n const element = redundant[redundant.length - 1];\n\n if (element) {\n // get the nodes and the template in stored in the last child of the childrenMap\n const { template, nodes, context } = element;\n // remove the last node (notice <template> tags might have more children nodes)\n nodes.pop();\n\n // notice that we pass null as last argument because\n // the root node and its children will be removed by domdiff\n if (!nodes.length) {\n // we have cleared all the children nodes and we can unmount this template\n redundant.pop();\n template.unmount(context, parentScope, null);\n }\n }\n }\n\n return item\n }\n}\n\n/**\n * Check whether a template must be filtered from a loop\n * @param {Function} condition - filter function\n * @param {object} context - argument passed to the filter function\n * @returns {boolean} true if this item should be skipped\n */\nfunction mustFilterItem(condition, context) {\n return condition ? !condition(context) : false\n}\n\n/**\n * Extend the scope of the looped template\n * @param {object} scope - current template scope\n * @param {object} options - options\n * @param {string} options.itemName - key to identify the looped item in the new context\n * @param {string} options.indexName - key to identify the index of the looped item\n * @param {number} options.index - current index\n * @param {*} options.item - collection item looped\n * @returns {object} enhanced scope object\n */\nfunction extendScope(scope, { itemName, indexName, index, item }) {\n (0,_util_objects_js__WEBPACK_IMPORTED_MODULE_4__.defineProperty)(scope, itemName, item);\n if (indexName) (0,_util_objects_js__WEBPACK_IMPORTED_MODULE_4__.defineProperty)(scope, indexName, index);\n\n return scope\n}\n\n/**\n * Loop the current template items\n * @param {Array} items - expression collection value\n * @param {*} scope - template scope\n * @param {*} parentScope - scope of the parent template\n * @param {EachBinding} binding - each binding object instance\n * @returns {object} data - An object containing:\n * @property {Map} newChildrenMap - a Map containing the new children template structure\n * @property {Array} batches - array containing the template lifecycle functions to trigger\n * @property {Array} futureNodes - array containing the nodes we need to diff\n */\nfunction createPatch(items, scope, parentScope, binding) {\n const {\n condition,\n template,\n childrenMap,\n itemName,\n getKey,\n indexName,\n root,\n isTemplateTag,\n } = binding;\n const newChildrenMap = new Map();\n const batches = [];\n const futureNodes = [];\n\n items.forEach((item, index) => {\n const context = extendScope(Object.create(scope), {\n itemName,\n indexName,\n index,\n item,\n });\n const key = getKey ? getKey(context) : index;\n const oldItem = childrenMap.get(key);\n const nodes = [];\n\n if (mustFilterItem(condition, context)) {\n return\n }\n\n const mustMount = !oldItem;\n const componentTemplate = oldItem ? oldItem.template : template.clone();\n const el = componentTemplate.el || root.cloneNode();\n const meta =\n isTemplateTag && mustMount\n ? createTemplateMeta(componentTemplate)\n : componentTemplate.meta;\n\n if (mustMount) {\n batches.push(() =>\n componentTemplate.mount(el, context, parentScope, meta),\n );\n } else {\n batches.push(() => componentTemplate.update(context, parentScope));\n }\n\n // create the collection of nodes to update or to add\n // in case of template tags we need to add all its children nodes\n if (isTemplateTag) {\n nodes.push(...meta.children);\n } else {\n nodes.push(el);\n }\n\n // delete the old item from the children map\n childrenMap.delete(key);\n futureNodes.push(...nodes);\n\n // update the children map\n newChildrenMap.set(key, {\n nodes,\n template: componentTemplate,\n context,\n index,\n });\n });\n\n return {\n newChildrenMap,\n batches,\n futureNodes,\n }\n}\n\nfunction create$6(\n node,\n { evaluate, condition, itemName, indexName, getKey, template },\n) {\n const placeholder = document.createTextNode('');\n const root = node.cloneNode();\n\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.insertBefore)(placeholder, node);\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(node);\n\n return {\n ...EachBinding,\n childrenMap: new Map(),\n node,\n root,\n condition,\n evaluate,\n isTemplateTag: (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isTemplate)(root),\n template: template.createDOM(node),\n getKey,\n indexName,\n itemName,\n placeholder,\n }\n}\n\n/**\n * Binding responsible for the `if` directive\n */\nconst IfBinding = {\n // dynamic binding properties\n // node: null,\n // evaluate: null,\n // isTemplateTag: false,\n // placeholder: null,\n // template: null,\n\n // API methods\n mount(scope, parentScope) {\n return this.update(scope, parentScope)\n },\n update(scope, parentScope) {\n const value = !!this.evaluate(scope);\n const mustMount = !this.value && value;\n const mustUnmount = this.value && !value;\n const mount = () => {\n const pristine = this.node.cloneNode();\n\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.insertBefore)(pristine, this.placeholder);\n this.template = this.template.clone();\n this.template.mount(pristine, scope, parentScope);\n };\n\n switch (true) {\n case mustMount:\n mount();\n break\n case mustUnmount:\n this.unmount(scope);\n break\n default:\n if (value) this.template.update(scope, parentScope);\n }\n\n this.value = value;\n\n return this\n },\n unmount(scope, parentScope) {\n this.template.unmount(scope, parentScope, true);\n\n return this\n },\n};\n\nfunction create$5(node, { evaluate, template }) {\n const placeholder = document.createTextNode('');\n\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.insertBefore)(placeholder, node);\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(node);\n\n return {\n ...IfBinding,\n node,\n evaluate,\n placeholder,\n template: template.createDOM(node),\n }\n}\n\n/**\n * This method handles the REF attribute expressions\n * @param {object} expression - expression data\n * @param {HTMLElement} expression.node - target node\n * @param {*} expression.value - the old expression cached value\n * @param {*} value - new expression value\n * @returns {undefined}\n */\nfunction refExpression({ node, value: oldValue }, value) {\n // called on mount and update\n if (value) value(node);\n // called on unmount\n // in this case the node value is null\n else oldValue(null);\n}\n\n/**\n * Normalize the user value in order to render a empty string in case of falsy values\n * @param {*} value - user input value\n * @returns {string} hopefully a string\n */\nfunction normalizeStringValue(value) {\n return (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isNil)(value) ? '' : value\n}\n\n/**\n * This methods handles the input fields value updates\n * @param {object} expression - expression data\n * @param {HTMLElement} expression.node - target node\n * @param {*} value - new expression value\n * @returns {undefined}\n */\nfunction valueExpression({ node }, value) {\n node.value = normalizeStringValue(value);\n}\n\nconst RE_EVENTS_PREFIX = /^on/;\n\nconst getCallbackAndOptions = (value) =>\n Array.isArray(value) ? value : [value, false];\n\n// see also https://medium.com/@WebReflection/dom-handleevent-a-cross-platform-standard-since-year-2000-5bf17287fd38\nconst EventListener = {\n handleEvent(event) {\n this[event.type](event);\n },\n};\nconst ListenersWeakMap = new WeakMap();\n\nconst createListener = (node) => {\n const listener = Object.create(EventListener);\n ListenersWeakMap.set(node, listener);\n return listener\n};\n\n/**\n * Set a new event listener\n * @param {object} expression - event expression data\n * @param {HTMLElement} expression.node - target node\n * @param {string} expression.name - event name\n * @param {*} value - new expression value\n * @returns {undefined}\n */\nfunction eventExpression({ node, name }, value) {\n const normalizedEventName = name.replace(RE_EVENTS_PREFIX, '');\n const eventListener = ListenersWeakMap.get(node) || createListener(node);\n const [callback, options] = getCallbackAndOptions(value);\n const handler = eventListener[normalizedEventName];\n const mustRemoveEvent = handler && !callback;\n const mustAddEvent = callback && !handler;\n\n if (mustRemoveEvent) {\n node.removeEventListener(normalizedEventName, eventListener);\n }\n\n if (mustAddEvent) {\n node.addEventListener(normalizedEventName, eventListener, options);\n }\n\n eventListener[normalizedEventName] = callback;\n}\n\n/* c8 ignore next */\nconst ElementProto = typeof Element === 'undefined' ? {} : Element.prototype;\nconst isNativeHtmlProperty = (0,_util_misc_js__WEBPACK_IMPORTED_MODULE_6__.memoize)(\n (name) => ElementProto.hasOwnProperty(name), // eslint-disable-line\n);\n\n/**\n * Add all the attributes provided\n * @param {HTMLElement} node - target node\n * @param {object} attributes - object containing the attributes names and values\n * @param {*} oldAttributes - the old expression cached value\n * @returns {undefined} sorry it's a void function :(\n */\nfunction setAllAttributes(node, attributes, oldAttributes) {\n Object.entries(attributes)\n // filter out the attributes that didn't change their value\n .filter(([name, value]) => value !== oldAttributes?.[name])\n .forEach(([name, value]) => {\n switch (true) {\n case name === _util_constants_js__WEBPACK_IMPORTED_MODULE_1__.REF_ATTRIBUTE:\n return refExpression({ node }, value)\n case name === _util_constants_js__WEBPACK_IMPORTED_MODULE_1__.VALUE_ATTRIBUTE:\n return valueExpression({ node }, value)\n case (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isEventAttribute)(name):\n return eventExpression({ node, name }, value)\n default:\n return attributeExpression({ node, name }, value)\n }\n });\n}\n\n/**\n * Remove all the attributes provided\n * @param {HTMLElement} node - target node\n * @param {object} newAttributes - object containing all the new attribute names\n * @param {object} oldAttributes - object containing all the old attribute names\n * @returns {undefined} sorry it's a void function :(\n */\nfunction removeAllAttributes(node, newAttributes, oldAttributes) {\n const newKeys = newAttributes ? Object.keys(newAttributes) : [];\n\n Object.entries(oldAttributes)\n .filter(([name]) => !newKeys.includes(name))\n .forEach(([name, value]) => {\n switch (true) {\n case name === _util_constants_js__WEBPACK_IMPORTED_MODULE_1__.REF_ATTRIBUTE:\n return refExpression({ node, value })\n case name === _util_constants_js__WEBPACK_IMPORTED_MODULE_1__.VALUE_ATTRIBUTE:\n node.removeAttribute('value');\n node.value = '';\n return\n case (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isEventAttribute)(name):\n return eventExpression({ node, name }, null)\n default:\n return node.removeAttribute(name)\n }\n });\n}\n\n/**\n * Check whether the attribute value can be rendered\n * @param {*} value - expression value\n * @returns {boolean} true if we can render this attribute value\n */\nfunction canRenderAttribute(value) {\n return ['string', 'number', 'boolean'].includes(typeof value)\n}\n\n/**\n * Check whether the attribute should be removed\n * @param {*} value - expression value\n * @param {boolean} isBoolean - flag to handle boolean attributes\n * @returns {boolean} boolean - true if the attribute can be removed\n */\nfunction shouldRemoveAttribute(value, isBoolean) {\n // boolean attributes should be removed if the value is falsy\n if (isBoolean) return !value\n\n // null and undefined values will remove the attribute as well\n return (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isNil)(value)\n}\n\n/**\n * This methods handles the DOM attributes updates\n * @param {object} expression - attribute expression data\n * @param {HTMLElement} expression.node - target node\n * @param {string} expression.name - attribute name\n * @param {boolean} expression.isBoolean - flag to handle boolean attributes\n * @param {*} expression.value - the old expression cached value\n * @param {*} value - new expression value\n * @returns {undefined}\n */\nfunction attributeExpression(\n { node, name, isBoolean: isBoolean$1, value: oldValue },\n value,\n) {\n // is it a spread operator? {...attributes}\n if (!name) {\n if (oldValue) {\n // remove all the old attributes\n removeAllAttributes(node, value, oldValue);\n }\n\n // is the value still truthy?\n if (value) {\n setAllAttributes(node, value, oldValue);\n }\n\n return\n }\n\n // store the attribute on the node to make it compatible with native custom elements\n if (\n !isNativeHtmlProperty(name) &&\n ((0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isBoolean)(value) || (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isObject)(value) || (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isFunction)(value))\n ) {\n node[name] = value;\n }\n\n if (shouldRemoveAttribute(value, isBoolean$1)) {\n node.removeAttribute(name);\n } else if (canRenderAttribute(value)) {\n node.setAttribute(name, normalizeValue(name, value, isBoolean$1));\n }\n}\n\n/**\n * Get the value as string\n * @param {string} name - attribute name\n * @param {*} value - user input value\n * @param {boolean} isBoolean - boolean attributes flag\n * @returns {string} input value as string\n */\nfunction normalizeValue(name, value, isBoolean) {\n // be sure that expressions like selected={ true } will always be rendered as selected='selected'\n // fix https://github.com/riot/riot/issues/2975\n return !!value && isBoolean ? name : value\n}\n\n/**\n * Get the the target text node to update or create one from of a comment node\n * @param {HTMLElement} node - any html element containing childNodes\n * @param {number} childNodeIndex - index of the text node in the childNodes list\n * @returns {Text} the text node to update\n */\nconst getTextNode = (node, childNodeIndex) => {\n return node.childNodes[childNodeIndex]\n};\n\n/**\n * This methods handles a simple text expression update\n * @param {object} expression - expression data\n * @param {HTMLElement} expression.node - target node\n * @param {*} value - new expression value\n * @returns {undefined}\n */\nfunction textExpression({ node }, value) {\n node.data = normalizeStringValue(value);\n}\n\nconst expressions = {\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.ATTRIBUTE]: attributeExpression,\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.EVENT]: eventExpression,\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.TEXT]: textExpression,\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.VALUE]: valueExpression,\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.REF]: refExpression,\n};\n\nconst Expression = {\n // Static props\n // node: null,\n // value: null,\n\n // API methods\n /**\n * Mount the expression evaluating its initial value\n * @param {*} scope - argument passed to the expression to evaluate its current values\n * @returns {Expression} self\n */\n mount(scope) {\n // hopefully a pure function\n const value = this.evaluate(scope);\n\n // IO() DOM updates\n expressions[this.type](this, value);\n\n // store the computed value for the update calls\n this.value = value;\n\n return this\n },\n /**\n * Update the expression if its value changed\n * @param {*} scope - argument passed to the expression to evaluate its current values\n * @returns {Expression} self\n */\n update(scope) {\n // pure function\n const value = this.evaluate(scope);\n\n if (this.value !== value) {\n // IO() DOM updates\n expressions[this.type](this, value);\n this.value = value;\n }\n\n return this\n },\n /**\n * Expression teardown method\n * @returns {Expression} self\n */\n unmount() {\n // unmount event and ref expressions\n if (\n [_util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.EVENT, _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.REF].includes(this.type) ||\n // spread attributes might contain events or refs that must be unmounted\n (this.type === _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.ATTRIBUTE && !this.name)\n )\n expressions[this.type](this, null);\n\n return this\n },\n};\n\nfunction create$4(node, data) {\n return {\n ...Expression,\n ...data,\n node: data.type === _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.TEXT ? getTextNode(node, data.childNodeIndex) : node,\n }\n}\n\n/**\n * Create a flat object having as keys a list of methods that if dispatched will propagate\n * on the whole collection\n * @param {Array} collection - collection to iterate\n * @param {Array<string>} methods - methods to execute on each item of the collection\n * @param {*} context - context returned by the new methods created\n * @returns {object} a new object to simplify the the nested methods dispatching\n */\nfunction flattenCollectionMethods(collection, methods, context) {\n return methods.reduce((acc, method) => {\n return {\n ...acc,\n [method]: (scope) => {\n return collection.map((item) => item[method](scope)) && context\n },\n }\n }, {})\n}\n\nfunction create$3(node, { expressions }) {\n return flattenCollectionMethods(\n expressions.map((expression) => create$4(node, expression)),\n ['mount', 'update', 'unmount'],\n )\n}\n\nconst extendParentScope = (attributes, scope, parentScope) => {\n if (!attributes || !attributes.length) return parentScope\n\n return Object.assign(\n Object.create(parentScope || null),\n (0,_util_misc_js__WEBPACK_IMPORTED_MODULE_6__.generatePropsFromAttributes)(attributes, scope),\n )\n};\n\nconst findSlotById = (id, slots) => slots?.find((slot) => slot.id === id);\n\n// this function is only meant to fix an edge case\n// https://github.com/riot/riot/issues/2842\nconst getRealParent = (scope, parentScope) =>\n scope[_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.PARENT_KEY_SYMBOL] || parentScope;\n\nconst SlotBinding = {\n // dynamic binding properties\n // node: null,\n // name: null,\n attributes: [],\n // templateData: null,\n // template: null,\n\n getTemplateScope(scope, parentScope) {\n return extendParentScope(this.attributes, scope, parentScope)\n },\n\n // API methods\n mount(scope, parentScope) {\n const templateData = scope.slots\n ? findSlotById(this.name, scope.slots)\n : false;\n const { parentNode } = this.node;\n\n // if the slot did not pass any content, we will use the self slot for optional fallback content (https://github.com/riot/riot/issues/3024)\n const realParent = templateData ? getRealParent(scope, parentScope) : scope;\n\n // if there is no html for the current slot detected we rely on the parent slots (https://github.com/riot/riot/issues/3055)\n this.templateData = templateData?.html\n ? templateData\n : findSlotById(this.name, realParent.slots);\n\n // override the template property if the slot needs to be replaced\n this.template =\n (this.templateData &&\n create(this.templateData.html, this.templateData.bindings).createDOM(\n parentNode,\n )) ||\n // otherwise use the optional template fallback if provided by the compiler see also https://github.com/riot/riot/issues/3014\n this.template?.clone();\n\n if (this.template) {\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.cleanNode)(this.node);\n this.template.mount(\n this.node,\n this.getTemplateScope(scope, realParent),\n realParent,\n );\n this.template.children = Array.from(this.node.childNodes);\n }\n\n moveSlotInnerContent(this.node);\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(this.node);\n\n return this\n },\n update(scope, parentScope) {\n if (this.template) {\n const realParent = this.templateData\n ? getRealParent(scope, parentScope)\n : scope;\n\n this.template.update(this.getTemplateScope(scope, realParent), realParent);\n }\n\n return this\n },\n unmount(scope, parentScope, mustRemoveRoot) {\n if (this.template) {\n this.template.unmount(\n this.getTemplateScope(scope, parentScope),\n null,\n mustRemoveRoot,\n );\n }\n\n return this\n },\n};\n\n/**\n * Move the inner content of the slots outside of them\n * @param {HTMLElement} slot - slot node\n * @returns {undefined} it's a void method ¯\\_(ツ)_/¯\n */\nfunction moveSlotInnerContent(slot) {\n const child = slot && slot.firstChild;\n\n if (!child) return\n\n ;(0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.insertBefore)(child, slot);\n moveSlotInnerContent(slot);\n}\n\n/**\n * Create a single slot binding\n * @param {HTMLElement} node - slot node\n * @param {object} data - slot binding data\n * @param {string} data.name - slot id\n * @param {AttributeExpressionData[]} data.attributes - slot attributes\n * @param {TemplateChunk} data.template - slot fallback template\n * @returns {object} Slot binding object\n */\nfunction createSlot(node, { name, attributes, template }) {\n return {\n ...SlotBinding,\n attributes,\n template,\n node,\n name,\n }\n}\n\n/**\n * Create a new tag object if it was registered before, otherwise fallback to the simple\n * template chunk\n * @param {Function} component - component factory function\n * @param {Array<object>} slots - array containing the slots markup\n * @param {Array} attributes - dynamic attributes that will be received by the tag element\n * @returns {TagImplementation|TemplateChunk} a tag implementation or a template chunk as fallback\n */\nfunction getTag(component, slots = [], attributes = []) {\n // if this tag was registered before we will return its implementation\n if (component) {\n return component({ slots, attributes })\n }\n\n // otherwise we return a template chunk\n return create(slotsToMarkup(slots), [\n ...slotBindings(slots),\n {\n // the attributes should be registered as binding\n // if we fallback to a normal template chunk\n expressions: attributes.map((attr) => {\n return {\n type: _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.ATTRIBUTE,\n ...attr,\n }\n }),\n },\n ])\n}\n\n/**\n * Merge all the slots bindings into a single array\n * @param {Array<object>} slots - slots collection\n * @returns {Array<Bindings>} flatten bindings array\n */\nfunction slotBindings(slots) {\n return slots.reduce((acc, { bindings }) => acc.concat(bindings), [])\n}\n\n/**\n * Merge all the slots together in a single markup string\n * @param {Array<object>} slots - slots collection\n * @returns {string} markup of all the slots in a single string\n */\nfunction slotsToMarkup(slots) {\n return slots.reduce((acc, slot) => {\n return acc + slot.html\n }, '')\n}\n\nconst TagBinding = {\n // dynamic binding properties\n // node: null,\n // evaluate: null,\n // name: null,\n // slots: null,\n // tag: null,\n // attributes: null,\n // getComponent: null,\n\n mount(scope) {\n return this.update(scope)\n },\n update(scope, parentScope) {\n const name = this.evaluate(scope);\n\n // simple update\n if (name && name === this.name) {\n this.tag.update(scope);\n } else {\n // unmount the old tag if it exists\n this.unmount(scope, parentScope, true);\n\n // mount the new tag\n this.name = name;\n this.tag = getTag(this.getComponent(name), this.slots, this.attributes);\n this.tag.mount(this.node, scope);\n }\n\n return this\n },\n unmount(scope, parentScope, keepRootTag) {\n if (this.tag) {\n // keep the root tag\n this.tag.unmount(keepRootTag);\n }\n\n return this\n },\n};\n\nfunction create$2(\n node,\n { evaluate, getComponent, slots, attributes },\n) {\n return {\n ...TagBinding,\n node,\n evaluate,\n slots,\n attributes,\n getComponent,\n }\n}\n\nconst bindings = {\n [_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.IF]: create$5,\n [_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.SIMPLE]: create$3,\n [_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.EACH]: create$6,\n [_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.TAG]: create$2,\n [_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.SLOT]: createSlot,\n};\n\n/**\n * Text expressions in a template tag will get childNodeIndex value normalized\n * depending on the position of the <template> tag offset\n * @param {Expression[]} expressions - riot expressions array\n * @param {number} textExpressionsOffset - offset of the <template> tag\n * @returns {Expression[]} expressions containing the text expressions normalized\n */\nfunction fixTextExpressionsOffset(expressions, textExpressionsOffset) {\n return expressions.map((e) =>\n e.type === _util_expression_types_js__WEBPACK_IMPORTED_MODULE_3__.TEXT\n ? {\n ...e,\n childNodeIndex: e.childNodeIndex + textExpressionsOffset,\n }\n : e,\n )\n}\n\n/**\n * Bind a new expression object to a DOM node\n * @param {HTMLElement} root - DOM node where to bind the expression\n * @param {TagBindingData} binding - binding data\n * @param {number|null} templateTagOffset - if it's defined we need to fix the text expressions childNodeIndex offset\n * @returns {Binding} Binding object\n */\nfunction create$1(root, binding, templateTagOffset) {\n const { selector, type, redundantAttribute, expressions } = binding;\n // find the node to apply the bindings\n const node = selector ? root.querySelector(selector) : root;\n\n // remove eventually additional attributes created only to select this node\n if (redundantAttribute) node.removeAttribute(redundantAttribute);\n const bindingExpressions = expressions || [];\n\n // init the binding\n return (bindings[type] || bindings[_util_binding_types_js__WEBPACK_IMPORTED_MODULE_2__.SIMPLE])(node, {\n ...binding,\n expressions:\n templateTagOffset && !selector\n ? fixTextExpressionsOffset(bindingExpressions, templateTagOffset)\n : bindingExpressions,\n })\n}\n\n// in this case a simple innerHTML is enough\nfunction createHTMLTree(html, root) {\n const template = (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isTemplate)(root) ? root : document.createElement('template');\n template.innerHTML = html;\n return template.content\n}\n\n// for svg nodes we need a bit more work\n/* c8 ignore start */\nfunction createSVGTree(html, container) {\n // create the SVGNode\n const svgNode = container.ownerDocument.importNode(\n new window.DOMParser().parseFromString(\n `<svg xmlns=\"http://www.w3.org/2000/svg\">${html}</svg>`,\n 'application/xml',\n ).documentElement,\n true,\n );\n\n return svgNode\n}\n/* c8 ignore end */\n\n/**\n * Create the DOM that will be injected\n * @param {object} root - DOM node to find out the context where the fragment will be created\n * @param {string} html - DOM to create as string\n * @returns {HTMLDocumentFragment|HTMLElement} a new html fragment\n */\nfunction createDOMTree(root, html) {\n /* c8 ignore next */\n if ((0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isSvg)(root)) return createSVGTree(html, root)\n\n return createHTMLTree(html, root)\n}\n\n/**\n * Inject the DOM tree into a target node\n * @param {HTMLElement} el - target element\n * @param {DocumentFragment|SVGElement} dom - dom tree to inject\n * @returns {undefined}\n */\nfunction injectDOM(el, dom) {\n switch (true) {\n case (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isSvg)(el):\n (0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.moveChildren)(dom, el);\n break\n case (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isTemplate)(el):\n el.parentNode.replaceChild(dom, el);\n break\n default:\n el.appendChild(dom);\n }\n}\n\n/**\n * Create the Template DOM skeleton\n * @param {HTMLElement} el - root node where the DOM will be injected\n * @param {string|HTMLElement} html - HTML markup or HTMLElement that will be injected into the root node\n * @returns {?DocumentFragment} fragment that will be injected into the root node\n */\nfunction createTemplateDOM(el, html) {\n return html && (typeof html === 'string' ? createDOMTree(el, html) : html)\n}\n\n/**\n * Get the offset of the <template> tag\n * @param {HTMLElement} parentNode - template tag parent node\n * @param {HTMLElement} el - the template tag we want to render\n * @param {object} meta - meta properties needed to handle the <template> tags in loops\n * @returns {number} offset of the <template> tag calculated from its siblings DOM nodes\n */\nfunction getTemplateTagOffset(parentNode, el, meta) {\n const siblings = Array.from(parentNode.childNodes);\n\n return Math.max(siblings.indexOf(el), siblings.indexOf(meta.head) + 1, 0)\n}\n\n/**\n * Template Chunk model\n * @type {object}\n */\nconst TemplateChunk = {\n // Static props\n // bindings: null,\n // bindingsData: null,\n // html: null,\n // isTemplateTag: false,\n // fragment: null,\n // children: null,\n // dom: null,\n // el: null,\n\n /**\n * Create the template DOM structure that will be cloned on each mount\n * @param {HTMLElement} el - the root node\n * @returns {TemplateChunk} self\n */\n createDOM(el) {\n // make sure that the DOM gets created before cloning the template\n this.dom =\n this.dom ||\n createTemplateDOM(el, this.html) ||\n document.createDocumentFragment();\n\n return this\n },\n\n // API methods\n /**\n * Attach the template to a DOM node\n * @param {HTMLElement} el - target DOM node\n * @param {*} scope - template data\n * @param {*} parentScope - scope of the parent template tag\n * @param {object} meta - meta properties needed to handle the <template> tags in loops\n * @returns {TemplateChunk} self\n */\n mount(el, scope, parentScope, meta = {}) {\n if (!el) (0,_util_misc_js__WEBPACK_IMPORTED_MODULE_6__.panic)('Please provide DOM node to mount properly your template');\n\n if (this.el) this.unmount(scope);\n\n // <template> tags require a bit more work\n // the template fragment might be already created via meta outside of this call\n const { fragment, children, avoidDOMInjection } = meta;\n // <template> bindings of course can not have a root element\n // so we check the parent node to set the query selector bindings\n const { parentNode } = children ? children[0] : el;\n const isTemplateTag = (0,_util_checks_js__WEBPACK_IMPORTED_MODULE_5__.isTemplate)(el);\n const templateTagOffset = isTemplateTag\n ? getTemplateTagOffset(parentNode, el, meta)\n : null;\n\n // create the DOM if it wasn't created before\n this.createDOM(el);\n\n // create the DOM of this template cloning the original DOM structure stored in this instance\n // notice that if a documentFragment was passed (via meta) we will use it instead\n const cloneNode = fragment || this.dom.cloneNode(true);\n\n // store root node\n // notice that for template tags the root note will be the parent tag\n this.el = isTemplateTag ? parentNode : el;\n\n // create the children array only for the <template> fragments\n this.children = isTemplateTag\n ? children || Array.from(cloneNode.childNodes)\n : null;\n\n // inject the DOM into the el only if a fragment is available\n if (!avoidDOMInjection && cloneNode) injectDOM(el, cloneNode);\n\n // create the bindings\n this.bindings = this.bindingsData.map((binding) =>\n create$1(this.el, binding, templateTagOffset),\n );\n this.bindings.forEach((b) => b.mount(scope, parentScope));\n\n // store the template meta properties\n this.meta = meta;\n\n return this\n },\n\n /**\n * Update the template with fresh data\n * @param {*} scope - template data\n * @param {*} parentScope - scope of the parent template tag\n * @returns {TemplateChunk} self\n */\n update(scope, parentScope) {\n this.bindings.forEach((b) => b.update(scope, parentScope));\n\n return this\n },\n\n /**\n * Remove the template from the node where it was initially mounted\n * @param {*} scope - template data\n * @param {*} parentScope - scope of the parent template tag\n * @param {boolean|null} mustRemoveRoot - if true remove the root element,\n * if false or undefined clean the root tag content, if null don't touch the DOM\n * @returns {TemplateChunk} self\n */\n unmount(scope, parentScope, mustRemoveRoot = false) {\n const el = this.el;\n\n if (!el) {\n return this\n }\n\n this.bindings.forEach((b) => b.unmount(scope, parentScope, mustRemoveRoot));\n\n switch (true) {\n // pure components should handle the DOM unmount updates by themselves\n // for mustRemoveRoot === null don't touch the DOM\n case el[_util_constants_js__WEBPACK_IMPORTED_MODULE_1__.IS_PURE_SYMBOL] || mustRemoveRoot === null:\n break\n\n // if children are declared, clear them\n // applicable for <template> and <slot/> bindings\n case Array.isArray(this.children):\n ;(0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.clearChildren)(this.children);\n break\n\n // clean the node children only\n case !mustRemoveRoot:\n ;(0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.cleanNode)(el);\n break\n\n // remove the root node only if the mustRemoveRoot is truly\n case !!mustRemoveRoot:\n ;(0,_util_dom_js__WEBPACK_IMPORTED_MODULE_0__.removeChild)(el);\n break\n }\n\n this.el = null;\n\n return this\n },\n\n /**\n * Clone the template chunk\n * @returns {TemplateChunk} a clone of this object resetting the this.el property\n */\n clone() {\n return {\n ...this,\n meta: {},\n el: null,\n }\n },\n};\n\n/**\n * Create a template chunk wiring also the bindings\n * @param {string|HTMLElement} html - template string\n * @param {BindingData[]} bindings - bindings collection\n * @returns {TemplateChunk} a new TemplateChunk copy\n */\nfunction create(html, bindings = []) {\n return {\n ...TemplateChunk,\n html,\n bindingsData: bindings,\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/dom-bindings/dist/dom-bindings.js?\n}")},"./node_modules/riot/esm/dependencies/@riotjs/util/binding-types.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EACH: () => (/* binding */ EACH),\n/* harmony export */ IF: () => (/* binding */ IF),\n/* harmony export */ SIMPLE: () => (/* binding */ SIMPLE),\n/* harmony export */ SLOT: () => (/* binding */ SLOT),\n/* harmony export */ TAG: () => (/* binding */ TAG),\n/* harmony export */ "default": () => (/* binding */ bindingTypes)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\nconst EACH = 0;\nconst IF = 1;\nconst SIMPLE = 2;\nconst TAG = 3;\nconst SLOT = 4;\n\nconst bindingTypes = {\n EACH,\n IF,\n SIMPLE,\n TAG,\n SLOT,\n};\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/binding-types.js?\n}')},"./node_modules/riot/esm/dependencies/@riotjs/util/checks.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ checkType: () => (/* binding */ checkType),\n/* harmony export */ isBoolean: () => (/* binding */ isBoolean),\n/* harmony export */ isEventAttribute: () => (/* binding */ isEventAttribute),\n/* harmony export */ isFunction: () => (/* binding */ isFunction),\n/* harmony export */ isNil: () => (/* binding */ isNil),\n/* harmony export */ isNode: () => (/* binding */ isNode),\n/* harmony export */ isObject: () => (/* binding */ isObject),\n/* harmony export */ isSvg: () => (/* binding */ isSvg),\n/* harmony export */ isTemplate: () => (/* binding */ isTemplate)\n/* harmony export */ });\n/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constants.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/constants.js\");\n/* Riot WIP, @license MIT */\n\n\n/**\n * Quick type checking\n * @param {*} element - anything\n * @param {string} type - type definition\n * @returns {boolean} true if the type corresponds\n */\nfunction checkType(element, type) {\n return typeof element === type\n}\n\n/**\n * Check if an element is part of an svg\n * @param {HTMLElement} el - element to check\n * @returns {boolean} true if we are in an svg context\n */\nfunction isSvg(el) {\n const owner = el.ownerSVGElement;\n\n return !!owner || owner === null\n}\n\n/**\n * Check if an element is a template tag\n * @param {HTMLElement} el - element to check\n * @returns {boolean} true if it's a <template>\n */\nfunction isTemplate(el) {\n return el.tagName.toLowerCase() === 'template'\n}\n\n/**\n * Check that will be passed if its argument is a function\n * @param {*} value - value to check\n * @returns {boolean} - true if the value is a function\n */\nfunction isFunction(value) {\n return checkType(value, 'function')\n}\n\n/**\n * Check if a value is a Boolean\n * @param {*} value - anything\n * @returns {boolean} true only for the value is a boolean\n */\nfunction isBoolean(value) {\n return checkType(value, 'boolean')\n}\n\n/**\n * Check if a value is an Object\n * @param {*} value - anything\n * @returns {boolean} true only for the value is an object\n */\nfunction isObject(value) {\n return !isNil(value) && value.constructor === Object\n}\n\n/**\n * Check if a value is null or undefined\n * @param {*} value - anything\n * @returns {boolean} true only for the 'undefined' and 'null' types\n */\nfunction isNil(value) {\n return value === null || value === undefined\n}\n\n/**\n * Detect node js environment\n * @returns {boolean} true if the runtime is node\n */\nfunction isNode() {\n return typeof globalThis.process !== 'undefined'\n}\n\n/**\n * Check if an attribute is a DOM handler\n * @param {string} attribute - attribute string\n * @returns {boolean} true only for dom listener attribute nodes\n */\nfunction isEventAttribute(attribute) {\n return _constants_js__WEBPACK_IMPORTED_MODULE_0__.EVENT_ATTRIBUTE_RE.test(attribute)\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/checks.js?\n}")},"./node_modules/riot/esm/dependencies/@riotjs/util/constants.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ COMPONENTS_IMPLEMENTATION_MAP: () => (/* binding */ COMPONENTS_IMPLEMENTATION_MAP),\n/* harmony export */ DOM_COMPONENT_INSTANCE_PROPERTY: () => (/* binding */ DOM_COMPONENT_INSTANCE_PROPERTY),\n/* harmony export */ EVENT_ATTRIBUTE_RE: () => (/* binding */ EVENT_ATTRIBUTE_RE),\n/* harmony export */ IS_COMPONENT_UPDATING: () => (/* binding */ IS_COMPONENT_UPDATING),\n/* harmony export */ IS_DIRECTIVE: () => (/* binding */ IS_DIRECTIVE),\n/* harmony export */ IS_PURE_SYMBOL: () => (/* binding */ IS_PURE_SYMBOL),\n/* harmony export */ MOUNT_METHOD_KEY: () => (/* binding */ MOUNT_METHOD_KEY),\n/* harmony export */ ON_BEFORE_MOUNT_KEY: () => (/* binding */ ON_BEFORE_MOUNT_KEY),\n/* harmony export */ ON_BEFORE_UNMOUNT_KEY: () => (/* binding */ ON_BEFORE_UNMOUNT_KEY),\n/* harmony export */ ON_BEFORE_UPDATE_KEY: () => (/* binding */ ON_BEFORE_UPDATE_KEY),\n/* harmony export */ ON_MOUNTED_KEY: () => (/* binding */ ON_MOUNTED_KEY),\n/* harmony export */ ON_UNMOUNTED_KEY: () => (/* binding */ ON_UNMOUNTED_KEY),\n/* harmony export */ ON_UPDATED_KEY: () => (/* binding */ ON_UPDATED_KEY),\n/* harmony export */ PARENT_KEY_SYMBOL: () => (/* binding */ PARENT_KEY_SYMBOL),\n/* harmony export */ PLUGINS_SET: () => (/* binding */ PLUGINS_SET),\n/* harmony export */ PROPS_KEY: () => (/* binding */ PROPS_KEY),\n/* harmony export */ REF_ATTRIBUTE: () => (/* binding */ REF_ATTRIBUTE),\n/* harmony export */ ROOT_ATTRIBUTES_KEY_SYMBOL: () => (/* binding */ ROOT_ATTRIBUTES_KEY_SYMBOL),\n/* harmony export */ ROOT_KEY: () => (/* binding */ ROOT_KEY),\n/* harmony export */ SHOULD_UPDATE_KEY: () => (/* binding */ SHOULD_UPDATE_KEY),\n/* harmony export */ SLOTS_KEY: () => (/* binding */ SLOTS_KEY),\n/* harmony export */ STATE_KEY: () => (/* binding */ STATE_KEY),\n/* harmony export */ TEMPLATE_KEY_SYMBOL: () => (/* binding */ TEMPLATE_KEY_SYMBOL),\n/* harmony export */ UNMOUNT_METHOD_KEY: () => (/* binding */ UNMOUNT_METHOD_KEY),\n/* harmony export */ UPDATE_METHOD_KEY: () => (/* binding */ UPDATE_METHOD_KEY),\n/* harmony export */ VALUE_ATTRIBUTE: () => (/* binding */ VALUE_ATTRIBUTE)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n// Riot.js constants that can be used across more modules\n\nconst COMPONENTS_IMPLEMENTATION_MAP = new Map(),\n DOM_COMPONENT_INSTANCE_PROPERTY = Symbol('riot-component'),\n PLUGINS_SET = new Set(),\n IS_DIRECTIVE = 'is',\n VALUE_ATTRIBUTE = 'value',\n REF_ATTRIBUTE = 'ref',\n EVENT_ATTRIBUTE_RE = /^on/,\n MOUNT_METHOD_KEY = 'mount',\n UPDATE_METHOD_KEY = 'update',\n UNMOUNT_METHOD_KEY = 'unmount',\n SHOULD_UPDATE_KEY = 'shouldUpdate',\n ON_BEFORE_MOUNT_KEY = 'onBeforeMount',\n ON_MOUNTED_KEY = 'onMounted',\n ON_BEFORE_UPDATE_KEY = 'onBeforeUpdate',\n ON_UPDATED_KEY = 'onUpdated',\n ON_BEFORE_UNMOUNT_KEY = 'onBeforeUnmount',\n ON_UNMOUNTED_KEY = 'onUnmounted',\n PROPS_KEY = 'props',\n STATE_KEY = 'state',\n SLOTS_KEY = 'slots',\n ROOT_KEY = 'root',\n IS_PURE_SYMBOL = Symbol('pure'),\n IS_COMPONENT_UPDATING = Symbol('is_updating'),\n PARENT_KEY_SYMBOL = Symbol('parent'),\n TEMPLATE_KEY_SYMBOL = Symbol('template'),\n ROOT_ATTRIBUTES_KEY_SYMBOL = Symbol('root-attributes');\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/constants.js?\n}")},"./node_modules/riot/esm/dependencies/@riotjs/util/dom.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DOMattributesToObject: () => (/* binding */ DOMattributesToObject),\n/* harmony export */ cleanNode: () => (/* binding */ cleanNode),\n/* harmony export */ clearChildren: () => (/* binding */ clearChildren),\n/* harmony export */ insertBefore: () => (/* binding */ insertBefore),\n/* harmony export */ moveBefore: () => (/* binding */ moveBefore),\n/* harmony export */ moveChildren: () => (/* binding */ moveChildren),\n/* harmony export */ removeChild: () => (/* binding */ removeChild),\n/* harmony export */ replaceChild: () => (/* binding */ replaceChild)\n/* harmony export */ });\n/* harmony import */ var _strings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./strings.js */ \"./node_modules/riot/esm/dependencies/@riotjs/util/strings.js\");\n/* Riot WIP, @license MIT */\n\n\n/**\n * Get all the element attributes as object\n * @param {HTMLElement} element - DOM node we want to parse\n * @returns {object} all the attributes found as a key value pairs\n */\nfunction DOMattributesToObject(element) {\n return Array.from(element.attributes).reduce((acc, attribute) => {\n acc[(0,_strings_js__WEBPACK_IMPORTED_MODULE_0__.dashToCamelCase)(attribute.name)] = attribute.value;\n return acc\n }, {})\n}\n\n/**\n * Move all the child nodes from a source tag to another\n * @param {HTMLElement} source - source node\n * @param {HTMLElement} target - target node\n * @returns {undefined} it's a void method ¯\\_(ツ)_/¯\n */\n\n// Ignore this helper because it's needed only for svg tags\nfunction moveChildren(source, target) {\n // eslint-disable-next-line fp/no-loops\n while (source.firstChild) target.appendChild(source.firstChild);\n}\n\n/**\n * Remove the child nodes from any DOM node\n * @param {HTMLElement} node - target node\n * @returns {undefined}\n */\nfunction cleanNode(node) {\n // eslint-disable-next-line fp/no-loops\n while (node.firstChild) node.removeChild(node.firstChild);\n}\n\n/**\n * Clear multiple children in a node\n * @param {HTMLElement[]} children - direct children nodes\n * @returns {undefined}\n */\nfunction clearChildren(children) {\n // eslint-disable-next-line fp/no-loops,fp/no-let\n for (let i = 0; i < children.length; i++) removeChild(children[i]);\n}\n\n/**\n * Remove a node\n * @param {HTMLElement}node - node to remove\n * @returns {undefined}\n */\nconst removeChild = (node) => node.remove();\n\n/**\n * Insert before a node\n * @param {HTMLElement} newNode - node to insert\n * @param {HTMLElement} refNode - ref child\n * @returns {undefined}\n */\nconst insertBefore = (newNode, refNode) =>\n refNode?.parentNode?.insertBefore(newNode, refNode);\n\n/**\n * Move a node into its new position. Use the moveBefore method if it's available\n * @param {HTMLElement} existingNode - node to move\n * @param {HTMLElement} refNode - ref child\n * @returns {undefined}\n */\nconst moveBefore = ((hasMoveBefore) => (existingNode, refNode) =>\n hasMoveBefore\n ? refNode?.parentNode?.moveBefore(existingNode, refNode)\n : insertBefore(existingNode, refNode))(\n // Rely on the new moveBefore method to move nodes if it's available https://developer.mozilla.org/en-US/docs/Web/API/Element/moveBefore\n // cache the value of the check into a boolean variable\n typeof Element !== 'undefined' && Element.prototype.moveBefore,\n);\n\n/**\n * Replace a node\n * @param {HTMLElement} newNode - new node to add to the DOM\n * @param {HTMLElement} replaced - node to replace\n * @returns {undefined}\n */\nconst replaceChild = (newNode, replaced) =>\n replaced?.parentNode?.replaceChild(newNode, replaced);\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/dom.js?\n}")},"./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ATTRIBUTE: () => (/* binding */ ATTRIBUTE),\n/* harmony export */ EVENT: () => (/* binding */ EVENT),\n/* harmony export */ REF: () => (/* binding */ REF),\n/* harmony export */ TEXT: () => (/* binding */ TEXT),\n/* harmony export */ VALUE: () => (/* binding */ VALUE),\n/* harmony export */ "default": () => (/* binding */ expressionTypes)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\nconst ATTRIBUTE = 0;\nconst EVENT = 1;\nconst TEXT = 2;\nconst VALUE = 3;\nconst REF = 4;\n\nconst expressionTypes = {\n ATTRIBUTE,\n EVENT,\n TEXT,\n VALUE,\n REF,\n};\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js?\n}')},"./node_modules/riot/esm/dependencies/@riotjs/util/functions.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ autobindMethods: () => (/* binding */ autobindMethods),\n/* harmony export */ callOrAssign: () => (/* binding */ callOrAssign),\n/* harmony export */ noop: () => (/* binding */ noop)\n/* harmony export */ });\n/* harmony import */ var _checks_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checks.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/checks.js");\n/* Riot WIP, @license MIT */\n\n\n// does simply nothing\nfunction noop() {\n return this\n}\n\n/**\n * Autobind the methods of a source object to itself\n * @param {object} source - probably a riot tag instance\n * @param {Array<string>} methods - list of the methods to autobind\n * @returns {object} the original object received\n */\nfunction autobindMethods(source, methods) {\n methods.forEach((method) => {\n source[method] = source[method].bind(source);\n });\n\n return source\n}\n\n/**\n * Call the first argument received only if it\'s a function otherwise return it as it is\n * @param {*} source - anything\n * @returns {*} anything\n */\nfunction callOrAssign(source) {\n return (0,_checks_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(source)\n ? source.prototype && source.prototype.constructor\n ? new source()\n : source()\n : source\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/functions.js?\n}')},"./node_modules/riot/esm/dependencies/@riotjs/util/misc.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ generatePropsFromAttributes: () => (/* binding */ generatePropsFromAttributes),\n/* harmony export */ memoize: () => (/* binding */ memoize),\n/* harmony export */ panic: () => (/* binding */ panic)\n/* harmony export */ });\n/* harmony import */ var _expression_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./expression-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js");\n/* harmony import */ var _strings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./strings.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/strings.js");\n/* Riot WIP, @license MIT */\n\n\n\n/**\n * Throw an error with a descriptive message\n * @param { string } message - error message\n * @param { string } cause - optional error cause object\n * @returns { undefined } hoppla... at this point the program should stop working\n */\nfunction panic(message, cause) {\n throw new Error(message, { cause })\n}\n/**\n * Returns the memoized (cached) function.\n * // borrowed from https://www.30secondsofcode.org/js/s/memoize\n * @param {Function} fn - function to memoize\n * @returns {Function} memoize function\n */\nfunction memoize(fn) {\n const cache = new Map();\n const cached = (val) => {\n return cache.has(val)\n ? cache.get(val)\n : cache.set(val, fn.call(this, val)) && cache.get(val)\n };\n cached.cache = cache;\n return cached\n}\n\n/**\n * Generate key-value pairs from a list of attributes\n * @param {Array} attributes - list of attributes generated by the riot compiler, each containing type, name, and evaluate function\n * @param {object} scope - the scope in which the attribute values will be evaluated\n * @returns {object} An object containing key-value pairs representing the computed attribute values\n */\nfunction generatePropsFromAttributes(attributes, scope) {\n return attributes.reduce((acc, { type, name, evaluate }) => {\n const value = evaluate(scope);\n\n switch (true) {\n // spread attribute\n case !name && type === _expression_types_js__WEBPACK_IMPORTED_MODULE_0__.ATTRIBUTE:\n return {\n ...acc,\n ...value,\n }\n // ref attribute\n case type === _expression_types_js__WEBPACK_IMPORTED_MODULE_0__.REF:\n acc.ref = value;\n break\n // value attribute\n case type === _expression_types_js__WEBPACK_IMPORTED_MODULE_0__.VALUE:\n acc.value = value;\n break\n // normal attributes\n default:\n acc[(0,_strings_js__WEBPACK_IMPORTED_MODULE_1__.dashToCamelCase)(name)] = value;\n }\n\n return acc\n }, {})\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/misc.js?\n}')},"./node_modules/riot/esm/dependencies/@riotjs/util/objects.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ defineDefaults: () => (/* binding */ defineDefaults),\n/* harmony export */ defineProperties: () => (/* binding */ defineProperties),\n/* harmony export */ defineProperty: () => (/* binding */ defineProperty)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n/**\n * Helper function to set an immutable property\n * @param {object} source - object where the new property will be set\n * @param {string} key - object key where the new property will be stored\n * @param {*} value - value of the new property\n * @param {object} options - set the property overriding the default options\n * @returns {object} - the original object modified\n */\nfunction defineProperty(source, key, value, options = {}) {\n Object.defineProperty(source, key, {\n value,\n enumerable: false,\n writable: false,\n configurable: true,\n ...options,\n });\n\n return source\n}\n\n/**\n * Define multiple properties on a target object\n * @param {object} source - object where the new properties will be set\n * @param {object} properties - object containing as key pair the key + value properties\n * @param {object} options - set the property overriding the default options\n * @returns {object} the original object modified\n */\nfunction defineProperties(source, properties, options) {\n Object.entries(properties).forEach(([key, value]) => {\n defineProperty(source, key, value, options);\n });\n\n return source\n}\n\n/**\n * Define default properties if they don't exist on the source object\n * @param {object} source - object that will receive the default properties\n * @param {object} defaults - object containing additional optional keys\n * @returns {object} the original object received enhanced\n */\nfunction defineDefaults(source, defaults) {\n Object.entries(defaults).forEach(([key, value]) => {\n if (!source[key]) source[key] = value;\n });\n\n return source\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/objects.js?\n}")},"./node_modules/riot/esm/dependencies/@riotjs/util/strings.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ camelToDashCase: () => (/* binding */ camelToDashCase),\n/* harmony export */ dashToCamelCase: () => (/* binding */ dashToCamelCase)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n/**\n * Convert a string from camel case to dash-case\n * @param {string} string - probably a component tag name\n * @returns {string} component name normalized\n */\nfunction camelToDashCase(string) {\n return string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()\n}\n\n/**\n * Convert a string containing dashes to camel case\n * @param {string} string - input string\n * @returns {string} my-string -> myString\n */\nfunction dashToCamelCase(string) {\n return string.replace(/-(\\w)/g, (_, c) => c.toUpperCase())\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/@riotjs/util/strings.js?\n}")},"./node_modules/riot/esm/dependencies/bianco.attr/index.next.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ get: () => (/* binding */ get),\n/* harmony export */ set: () => (/* binding */ set)\n/* harmony export */ });\n/* harmony import */ var _bianco_dom_to_array_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../bianco.dom-to-array/index.next.js */ \"./node_modules/riot/esm/dependencies/bianco.dom-to-array/index.next.js\");\n/* Riot WIP, @license MIT */\n\n\n/**\n * Normalize the return values, in case of a single value we avoid to return an array\n * @param { Array } values - list of values we want to return\n * @returns { Array|string|boolean } either the whole list of values or the single one found\n * @private\n */\nconst normalize = values => values.length === 1 ? values[0] : values;\n\n/**\n * Parse all the nodes received to get/remove/check their attributes\n * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse\n * @param { string|Array } name - name or list of attributes\n * @param { string } method - method that will be used to parse the attributes\n * @returns { Array|string } result of the parsing in a list or a single value\n * @private\n */\nfunction parseNodes(els, name, method) {\n const names = typeof name === 'string' ? [name] : name;\n return normalize((0,_bianco_dom_to_array_index_next_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(els).map(el => {\n return normalize(names.map(n => el[method](n)))\n }))\n}\n\n/**\n * Set any attribute on a single or a list of DOM nodes\n * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse\n * @param { string|Object } name - either the name of the attribute to set\n * or a list of properties as object key - value\n * @param { string } value - the new value of the attribute (optional)\n * @returns { HTMLElement|NodeList|Array } the original array of elements passed to this function\n *\n * @example\n *\n * import { set } from 'bianco.attr'\n *\n * const img = document.createElement('img')\n *\n * set(img, 'width', 100)\n *\n * // or also\n * set(img, {\n * width: 300,\n * height: 300\n * })\n *\n */\nfunction set(els, name, value) {\n const attrs = typeof name === 'object' ? name : { [name]: value };\n const props = Object.keys(attrs);\n\n (0,_bianco_dom_to_array_index_next_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(els).forEach(el => {\n props.forEach(prop => el.setAttribute(prop, attrs[prop]));\n });\n return els\n}\n\n/**\n * Get any attribute from a single or a list of DOM nodes\n * @param { HTMLElement|NodeList|Array } els - DOM node/s to parse\n * @param { string|Array } name - name or list of attributes to get\n * @returns { Array|string } list of the attributes found\n *\n * @example\n *\n * import { get } from 'bianco.attr'\n *\n * const img = document.createElement('img')\n *\n * get(img, 'width') // => '200'\n *\n * // or also\n * get(img, ['width', 'height']) // => ['200', '300']\n *\n * // or also\n * get([img1, img2], ['width', 'height']) // => [['200', '300'], ['500', '200']]\n */\nfunction get(els, name) {\n return parseNodes(els, name, 'getAttribute')\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/bianco.attr/index.next.js?\n}")},"./node_modules/riot/esm/dependencies/bianco.dom-to-array/index.next.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* binding */ domToArray)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n/**\n * Converts any DOM node/s to a loopable array\n * @param { HTMLElement|NodeList } els - single html element or a node list\n * @returns { Array } always a loopable object\n */\nfunction domToArray(els) {\n // can this object be already looped?\n if (!Array.isArray(els)) {\n // is it a node list?\n if (\n /^\\[object (HTMLCollection|NodeList|Object)\\]$/\n .test(Object.prototype.toString.call(els))\n && typeof els.length === \'number\'\n )\n return Array.from(els)\n else\n // if it\'s a single node\n // it will be returned as "array" with one single entry\n return [els]\n }\n // this object could be looped out of the box\n return els\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/bianco.dom-to-array/index.next.js?\n}')},"./node_modules/riot/esm/dependencies/bianco.query/index.next.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* binding */ $)\n/* harmony export */ });\n/* harmony import */ var _bianco_dom_to_array_index_next_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../bianco.dom-to-array/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.dom-to-array/index.next.js");\n/* Riot WIP, @license MIT */\n\n\n/**\n * Simple helper to find DOM nodes returning them as array like loopable object\n * @param { string|DOMNodeList } selector - either the query or the DOM nodes to arraify\n * @param { HTMLElement } scope - context defining where the query will search for the DOM nodes\n * @returns { Array } DOM nodes found as array\n */\nfunction $(selector, scope) {\n return (0,_bianco_dom_to_array_index_next_js__WEBPACK_IMPORTED_MODULE_0__["default"])(typeof selector === \'string\' ?\n (scope || document).querySelectorAll(selector) :\n selector\n )\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/bianco.query/index.next.js?\n}')},"./node_modules/riot/esm/dependencies/cumpa/index.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* binding */ compose)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n/**\n * Similar to compose but performs from left-to-right function composition.<br/>\n * {@link https://30secondsofcode.org/function#composeright see also}\n * @param {...[function]} fns) - list of unary function\n * @returns {*} result of the computation\n */\n\n/**\n * Performs right-to-left function composition.<br/>\n * Use Array.prototype.reduce() to perform right-to-left function composition.<br/>\n * The last (rightmost) function can accept one or more arguments; the remaining functions must be unary.<br/>\n * {@link https://30secondsofcode.org/function#compose original source code}\n * @param {...[function]} fns) - list of unary function\n * @returns {*} result of the computation\n */\nfunction compose(...fns) {\n return fns.reduce((f, g) => (...args) => f(g(...args)))\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/cumpa/index.js?\n}')},"./node_modules/riot/esm/dependencies/curri/index.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* binding */ curry)\n/* harmony export */ });\n/* Riot WIP, @license MIT */\n/**\n * Function to curry any javascript method\n * @param {Function} fn - the target function we want to curry\n * @param {...[args]} acc - initial arguments\n * @returns {Function|*} it will return a function until the target function\n * will receive all of its arguments\n */\nfunction curry(fn, ...acc) {\n return (...args) => {\n args = [...acc, ...args];\n\n return args.length < fn.length ?\n curry(fn, ...args) :\n fn(...args)\n }\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/dependencies/curri/index.js?\n}')},"./node_modules/riot/esm/riot.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ __: () => (/* reexport safe */ _api_js__WEBPACK_IMPORTED_MODULE_11__.__),\n/* harmony export */ component: () => (/* reexport safe */ _api_component_js__WEBPACK_IMPORTED_MODULE_6__.component),\n/* harmony export */ createPureComponent: () => (/* reexport safe */ _api_create_pure_component_js__WEBPACK_IMPORTED_MODULE_8__.createPureComponent),\n/* harmony export */ install: () => (/* reexport safe */ _api_install_js__WEBPACK_IMPORTED_MODULE_4__.install),\n/* harmony export */ mount: () => (/* reexport safe */ _api_mount_js__WEBPACK_IMPORTED_MODULE_2__.mount),\n/* harmony export */ pure: () => (/* reexport safe */ _api_pure_js__WEBPACK_IMPORTED_MODULE_7__.pure),\n/* harmony export */ register: () => (/* reexport safe */ _api_register_js__WEBPACK_IMPORTED_MODULE_0__.register),\n/* harmony export */ uninstall: () => (/* reexport safe */ _api_uninstall_js__WEBPACK_IMPORTED_MODULE_5__.uninstall),\n/* harmony export */ unmount: () => (/* reexport safe */ _api_unmount_js__WEBPACK_IMPORTED_MODULE_3__.unmount),\n/* harmony export */ unregister: () => (/* reexport safe */ _api_unregister_js__WEBPACK_IMPORTED_MODULE_1__.unregister),\n/* harmony export */ version: () => (/* reexport safe */ _api_version_js__WEBPACK_IMPORTED_MODULE_10__.version),\n/* harmony export */ withTypes: () => (/* reexport safe */ _api_with_types_js__WEBPACK_IMPORTED_MODULE_9__.withTypes)\n/* harmony export */ });\n/* harmony import */ var _api_register_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./api/register.js */ "./node_modules/riot/esm/api/register.js");\n/* harmony import */ var _api_unregister_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./api/unregister.js */ "./node_modules/riot/esm/api/unregister.js");\n/* harmony import */ var _api_mount_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./api/mount.js */ "./node_modules/riot/esm/api/mount.js");\n/* harmony import */ var _api_unmount_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./api/unmount.js */ "./node_modules/riot/esm/api/unmount.js");\n/* harmony import */ var _api_install_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./api/install.js */ "./node_modules/riot/esm/api/install.js");\n/* harmony import */ var _api_uninstall_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./api/uninstall.js */ "./node_modules/riot/esm/api/uninstall.js");\n/* harmony import */ var _api_component_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./api/component.js */ "./node_modules/riot/esm/api/component.js");\n/* harmony import */ var _api_pure_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./api/pure.js */ "./node_modules/riot/esm/api/pure.js");\n/* harmony import */ var _api_create_pure_component_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./api/create-pure-component.js */ "./node_modules/riot/esm/api/create-pure-component.js");\n/* harmony import */ var _api_with_types_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./api/with-types.js */ "./node_modules/riot/esm/api/with-types.js");\n/* harmony import */ var _api_version_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./api/version.js */ "./node_modules/riot/esm/api/version.js");\n/* harmony import */ var _api_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./api/__.js */ "./node_modules/riot/esm/api/__.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/riot.js?\n}')},"./node_modules/riot/esm/utils/dom.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getName: () => (/* binding */ getName)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/constants.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/constants.js");\n/* harmony import */ var _dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/bianco.attr/index.next.js */ "./node_modules/riot/esm/dependencies/bianco.attr/index.next.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n/**\n * Get the tag name of any DOM node\n * @param {HTMLElement} element - DOM node we want to inspect\n * @returns {string} name to identify this dom node in riot\n */\nfunction getName(element) {\n return (0,_dependencies_bianco_attr_index_next_js__WEBPACK_IMPORTED_MODULE_1__.get)(element, _dependencies_riotjs_util_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_DIRECTIVE) || element.tagName.toLowerCase()\n}\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/utils/dom.js?\n}')},"./node_modules/riot/esm/utils/get-root-computed-attribute-names.js"(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";eval('{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ getRootComputedAttributeNames: () => (/* binding */ getRootComputedAttributeNames)\n/* harmony export */ });\n/* harmony import */ var _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dependencies/@riotjs/util/expression-types.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/expression-types.js");\n/* harmony import */ var _dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dependencies/@riotjs/util/misc.js */ "./node_modules/riot/esm/dependencies/@riotjs/util/misc.js");\n/* Riot v10.1.2, @license MIT */\n\n\n\n\n/**\n * Get the computed attribute names from the template instance\n * Since these attributes will not change we memoize the result of this computation\n * @param {TemplateChunk} template - template instance\n * @returns {[]} list of attribute names that will be computed by the template expressions\n */\nconst getRootComputedAttributeNames = (0,_dependencies_riotjs_util_misc_js__WEBPACK_IMPORTED_MODULE_1__.memoize)((template) => {\n const firstBinding = template?.bindingsData?.[0];\n\n // if the first binding has the selector attribute it means that it doesn\'t belong to the root node\n if (firstBinding?.selector) return []\n\n return (\n firstBinding?.expressions?.reduce(\n (acc, { name, type }) =>\n type === _dependencies_riotjs_util_expression_types_js__WEBPACK_IMPORTED_MODULE_0__["default"].ATTRIBUTE ? acc.concat([name]) : acc,\n [],\n ) ?? []\n )\n});\n\n\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./node_modules/riot/esm/utils/get-root-computed-attribute-names.js?\n}')},"./src/datepicker.riot"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _mixin_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mixin.js */ \"./src/mixin.js\");\n// mixin\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n css: null,\n\n exports: () => {\n return {\n\n ..._mixin_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n\n }\n },\n\n template: (\n template,\n expressionTypes,\n bindingTypes,\n getComponent\n ) => template(\n '<div class=\"tiny-datepicker\"><div class=\"tiny-datepicker__calendar\"><div expr0=\"expr0\" class=\"tiny-datepicker__date\"> </div><div class=\"tiny-datepicker__days\"><div class=\"tiny-datepicker__week\"><div expr1=\"expr1\" class=\"tiny-datepicker__day tiny-datepicker__day--header\"></div></div><div expr2=\"expr2\" class=\"tiny-datepicker__week\"></div></div><div class=\"tiny-datepicker__select m-top-3 m-bottom-3\"><button expr4=\"expr4\" class=\"button m-bottom-0 tiny-datepicker__button\"><svg class=\"icon fill-text\" aria-hidden=\"true\"><use xlink:href=\"/symbol-defs.svg#icon-left\"/></svg></button><div class=\"tiny-datepicker__label m-top-3 m-bottom-3\"><select expr5=\"expr5\" class=\"field-choice\"><option expr6=\"expr6\"></option></select></div><button expr7=\"expr7\" class=\"button m-bottom-0 tiny-datepicker__button\"><svg class=\"icon fill-text\" aria-hidden=\"true\"><use xlink:href=\"/symbol-defs.svg#icon-right\"/></svg></button></div><div class=\"tiny-datepicker__select m-top-3 m-bottom-3\"><button expr8=\"expr8\" class=\"button m-bottom-0 tiny-datepicker__button\"><svg class=\"icon fill-text\" aria-hidden=\"true\"><use xlink:href=\"/symbol-defs.svg#icon-left\"/></svg></button><div class=\"tiny-datepicker__label\"><input expr9=\"expr9\" class=\"field-text\"/></div><button expr10=\"expr10\" class=\"button m-bottom-0 tiny-datepicker__button\"><svg class=\"icon fill-text\" aria-hidden=\"true\"><use xlink:href=\"/symbol-defs.svg#icon-right\"/></svg></button></div></div></div>',\n [\n {\n redundantAttribute: 'expr0',\n selector: '[expr0]',\n\n expressions: [\n {\n type: expressionTypes.TEXT,\n childNodeIndex: 0,\n\n evaluate: _scope => [\n _scope.state.date.format('dddd, DD. MMMM YYYY')\n ].join(\n ''\n )\n }\n ]\n },\n {\n type: bindingTypes.EACH,\n getKey: null,\n condition: null,\n\n template: template(\n ' ',\n [\n {\n expressions: [\n {\n type: expressionTypes.TEXT,\n childNodeIndex: 0,\n\n evaluate: _scope => [\n _scope.name\n ].join(\n ''\n )\n }\n ]\n }\n ]\n ),\n\n redundantAttribute: 'expr1',\n selector: '[expr1]',\n itemName: 'name',\n indexName: null,\n evaluate: _scope => _scope.state.weekdaysNames\n },\n {\n type: bindingTypes.EACH,\n getKey: null,\n condition: null,\n\n template: template(\n '<div expr3=\"expr3\"></div>',\n [\n {\n type: bindingTypes.EACH,\n getKey: null,\n condition: null,\n\n template: template(\n ' ',\n [\n {\n expressions: [\n {\n type: expressionTypes.TEXT,\n childNodeIndex: 0,\n\n evaluate: _scope => [\n _scope.day.date()\n ].join(\n ''\n )\n },\n {\n type: expressionTypes.ATTRIBUTE,\n name: 'class',\n evaluate: _scope => _scope.addClassDay(_scope.day, ['tiny-datepicker__day'])\n },\n {\n type: expressionTypes.EVENT,\n name: 'onclick',\n evaluate: _scope => (event) => { _scope.handleSelectDay(event, _scope.day) }\n }\n ]\n }\n ]\n ),\n\n redundantAttribute: 'expr3',\n selector: '[expr3]',\n itemName: 'day',\n indexName: null,\n evaluate: _scope => _scope.week\n }\n ]\n ),\n\n redundantAttribute: 'expr2',\n selector: '[expr2]',\n itemName: 'week',\n indexName: null,\n evaluate: _scope => _scope.state.weeks\n },\n {\n redundantAttribute: 'expr4',\n selector: '[expr4]',\n\n expressions: [\n {\n type: expressionTypes.EVENT,\n name: 'onclick',\n evaluate: _scope => () => { _scope.handlePreviousMonth(_scope.event) }\n }\n ]\n },\n {\n redundantAttribute: 'expr5',\n selector: '[expr5]',\n\n expressions: [\n {\n type: expressionTypes.EVENT,\n name: 'onchange',\n evaluate: _scope => (event) => { _scope.handleSelectMonth(event) }\n }\n ]\n },\n {\n type: bindingTypes.EACH,\n getKey: null,\n condition: null,\n\n template: template(\n ' ',\n [\n {\n expressions: [\n {\n type: expressionTypes.TEXT,\n childNodeIndex: 0,\n evaluate: _scope => _scope.name\n },\n {\n type: expressionTypes.ATTRIBUTE,\n name: 'value',\n evaluate: _scope => _scope.index\n },\n {\n type: expressionTypes.ATTRIBUTE,\n name: 'selected',\n evaluate: _scope => _scope.state.date.month() === _scope.index\n }\n ]\n }\n ]\n ),\n\n redundantAttribute: 'expr6',\n selector: '[expr6]',\n itemName: 'name',\n indexName: 'index',\n evaluate: _scope => _scope.state.monthNames\n },\n {\n redundantAttribute: 'expr7',\n selector: '[expr7]',\n\n expressions: [\n {\n type: expressionTypes.EVENT,\n name: 'onclick',\n evaluate: _scope => () => { _scope.handleNextMonth(_scope.event) }\n }\n ]\n },\n {\n redundantAttribute: 'expr8',\n selector: '[expr8]',\n\n expressions: [\n {\n type: expressionTypes.EVENT,\n name: 'onclick',\n evaluate: _scope => () => { _scope.handlePreviousYear(_scope.event) }\n }\n ]\n },\n {\n redundantAttribute: 'expr9',\n selector: '[expr9]',\n\n expressions: [\n {\n type: expressionTypes.VALUE,\n evaluate: _scope => _scope.state.date.format('YYYY')\n },\n {\n type: expressionTypes.EVENT,\n name: 'onkeyup',\n evaluate: _scope => (event) => { _scope.handleSelectYear(event) }\n }\n ]\n },\n {\n redundantAttribute: 'expr10',\n selector: '[expr10]',\n\n expressions: [\n {\n type: expressionTypes.EVENT,\n name: 'onclick',\n evaluate: _scope => () => { _scope.handleNextYear(_scope.event) }\n }\n ]\n }\n ]\n ),\n\n name: 'tiny-datepicker'\n});\n\n//# sourceURL=webpack://@tiny-components/datepicker/./src/datepicker.riot?\n}")},"./src/example.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var riot__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! riot */ \"./node_modules/riot/esm/riot.js\");\n/* harmony import */ var riot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! riot */ \"./node_modules/riot/esm/api/register.js\");\n/* harmony import */ var _datepicker_riot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./datepicker.riot */ \"./src/datepicker.riot\");\n/* harmony import */ var _riotjs_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @riotjs/observable */ \"./node_modules/@riotjs/observable/dist/observable.js\");\n/* harmony import */ var _riotjs_observable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_riotjs_observable__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n\nriot__WEBPACK_IMPORTED_MODULE_1__.register('tiny-datepicker', _datepicker_riot__WEBPACK_IMPORTED_MODULE_2__[\"default\"])\n\nwindow.riot = riot__WEBPACK_IMPORTED_MODULE_0__\nwindow.dispatcher = _riotjs_observable__WEBPACK_IMPORTED_MODULE_3___default()()\n\ndocument.addEventListener(\"DOMContentLoaded\", (event) => { \n\n const console = document.querySelector('.console')\n\n window.dispatcher.on('change', (data) => {\n const element = document.createElement('div')\n\n element.append('Event => Change, ' + data.date.format('YYYY-MM-DD'))\n console.append(element)\n })\n})\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./src/example.js?\n}")},"./src/mixin.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var dayjs_plugin_isoWeek__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs/plugin/isoWeek */ \"./node_modules/dayjs/plugin/isoWeek.js\");\n/* harmony import */ var dayjs_plugin_isoWeek__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_isoWeek__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var dayjs_plugin_localeData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dayjs/plugin/localeData */ \"./node_modules/dayjs/plugin/localeData.js\");\n/* harmony import */ var dayjs_plugin_localeData__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_localeData__WEBPACK_IMPORTED_MODULE_2__);\n\n\n// add function for iso \n\ndayjs__WEBPACK_IMPORTED_MODULE_0___default().extend((dayjs_plugin_isoWeek__WEBPACK_IMPORTED_MODULE_1___default()))\n\n// getting local data for names \n;\ndayjs__WEBPACK_IMPORTED_MODULE_0___default().extend((dayjs_plugin_localeData__WEBPACK_IMPORTED_MODULE_2___default()))\n\n/**\n * Mixin for extends Riot-Component\n *\n * @author Björn Hase\n * @license http://opensource.org/licenses/MIT The MIT License\n * @link https://gitea.node001.net/tiny-components/datepicker\n *\n */\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n state: {\n date: dayjs__WEBPACK_IMPORTED_MODULE_0___default()(),\n weeks: [],\n\n firstDayOfMonth: false,\n firstDayOfWeek: false,\n lastDayOfMonth: false,\n\n weekdaysNames: [],\n monthNames: [],\n\n weekFormat: 'isoWeek',\n\n isoFormat: true,\n namespace: ''\n },\n\n /**\n *\n *\n */\n onBeforeMount() {\n\n // getting names for language \n this.state.monthNames = dayjs__WEBPACK_IMPORTED_MODULE_0___default().months()\n this.state.weekdaysNames = dayjs__WEBPACK_IMPORTED_MODULE_0___default().weekdaysShort()\n\n // check for date prop\n if (this.props.date) {\n this.state.date = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(this.props.date)\n }\n\n // check for namespace\n if (this.props.namespace) {\n this.state.namespace = this.props.namespace + '.'\n }\n\n // change \n if (this.props.isoFormat === 0) {\n this.state.isoFormat = false\n this.state.weekFormat = 'week'\n } else {\n this.state.weekdaysNames.push(this.state.weekdaysNames.shift())\n }\n \n this.props.dispatcher.on('update', (data) => {\n this.state.date = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(data.date)\n })\n\n this.props.dispatcher.on('update-props', (data) => {\n this.state.date = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(this.props.date)\n this.update()\n })\n\n this.createWeeksAndDays()\n },\n\n /**\n * create weeks and days\n *\n *\n */\n createWeeksAndDays() {\n\n this.state.weeks = []\n\n // getting first day of Month\n this.state.firstDayOfMonth = this.state.date.startOf('month')\n this.state.firstDayOfWeek = this.state.firstDayOfMonth.startOf(this.state.weekFormat)\n this.state.lastDayOfMonth = this.state.date.endOf('month')\n\n const lastDayOfWeek = this.state.lastDayOfMonth.endOf(this.state.weekFormat).startOf('day')\n\n let day = this.state.firstDayOfWeek.clone()\n\n do {\n day = this.fillWeek(day) \n } while (day.isBefore(lastDayOfWeek))\n },\n\n /**\n * fill week with days\n *\n * @param {object} day \n *\n */\n fillWeek(day) {\n\n const days = []\n\n days.push(day)\n\n do {\n day = day.add(1, 'day')\n days.push(day)\n } while (days.length <= 6)\n\n this.state.weeks.push(days) \n \n // raise day for start of week\n return day.add(1, 'day') \n },\n\n /**\n * select single day\n *\n * @param {object} event\n * @param {object} day \n *\n */\n handleSelectDay(event, day) {\n if (day.isSame(this.state.date)) {\n return false\n }\n\n this.trigger('select-day')\n\n this.state.date = day\n this.update()\n },\n\n /**\n * select month\n *\n * @param {object} event\n *\n */\n handleSelectMonth(event) {\n this.state.date = this.state.date.month(event.target.value)\n this.createWeeksAndDays()\n this.trigger('select-month')\n\n this.update()\n },\n\n /**\n * select year\n *\n * @param {object} event\n *\n */\n handleSelectYear(event) {\n this.state.date = this.state.date.year(event.target.value)\n this.createWeeksAndDays()\n this.trigger('select-year')\n\n this.update()\n },\n\n /**\n * previous month\n *\n * @param {object} event\n * @param {object} day \n *\n */\n handlePreviousMonth(event) {\n this.state.date = this.state.date.subtract(1, 'month')\n this.createWeeksAndDays()\n this.trigger('previous-month')\n\n this.update()\n },\n\n /**\n * next month \n *\n * @param {object} event\n * @param {object} day \n *\n */\n handleNextMonth(event) {\n this.state.date = this.state.date.add(1, 'month')\n this.createWeeksAndDays()\n this.trigger('next-month')\n\n this.update()\n },\n\n /**\n * previous year\n *\n * @param {object} event\n *\n */\n handlePreviousYear(event) {\n this.state.date = this.state.date.subtract(1, 'year')\n this.createWeeksAndDays()\n this.trigger('previous-year')\n\n this.update()\n },\n\n /**\n * next year \n *\n * @param {object} event\n *\n */\n handleNextYear(event) {\n this.state.date = this.state.date.add(1, 'year')\n this.createWeeksAndDays()\n this.trigger('next-year')\n\n this.update()\n },\n\n /**\n * trigger event & change for specific \n *\n */\n trigger(eventName) {\n const data = {\n 'date': this.state.date.clone()\n }\n\n this.props.dispatcher.trigger(this.state.namespace + eventName, data)\n this.props.dispatcher.trigger(this.state.namespace + 'change', data)\n },\n\n /**\n * getting classes for single day \n *\n * @param {object} event\n * @param {array} classes\n * @return {string}\n */\n addClassDay(day, classes) {\n\n if (day.isSame(this.state.date, 'day')) {\n classes.push('tiny-datepicker__day--current')\n }\n\n if (day.isBefore(this.state.firstDayOfMonth) || day.isAfter(this.state.lastDayOfMonth)) {\n classes.push('tiny-datepicker__day--not-current')\n }\n\n return classes.join(' ')\n }\n});\n\n\n//# sourceURL=webpack://@tiny-components/datepicker/./src/mixin.js?\n}")}},__webpack_module_cache__={};function __webpack_require__(e){var n=__webpack_module_cache__[e];if(void 0!==n)return n.exports;if(void 0===__webpack_modules__[e]){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}var _=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(_.exports,_,_.exports,__webpack_require__),_.exports}__webpack_require__.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(n,{a:n}),n},__webpack_require__.d=(e,n)=>{for(var t in n)__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__("./src/example.js")})();