1(self.webpackChunk=self.webpackChunk||[]).push([[987],{8987:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return o=u()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var s=new(Function.bind.apply(e,i));return n&&r(s,n.prototype),s},o.apply(null,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?c(e):t}function h(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e}function f(e,t,n){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=h(e,t);if(i){var s=Object.getOwnPropertyDescriptor(i,t);return s.get?s.get.call(n):s.value}},f(e,t,n||e)}function d(e){throw Error(e)}function m(e){if(A(e)){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.call.apply(e,[this].concat(n))}}function y(e){return D(e=S(e)?Math.ceil(e):Math.floor(e))?("-"+e).toString():e}function v(e){return!L(e)&&!N(e)}function g(e,t){return function(){return t(e())}}function p(e){return function(t){return t.map(e).reduce((function(e,t){return e.concat(t)}),[])}}function k(e){return p((function(e){return e}))(e)}function b(e){return p((function(e){return Array.isArray(e)?b(e):e}))(e)}function w(e){return b(e).length}function D(e){return 1/Math.round(e)==-1/0}function S(e){return D(e)||e<0}function N(e){return null===e}function L(e){return void 0===e}function j(e){return e instanceof Function&&!!e.name}function M(e){return"string"==typeof e}function O(e){return e instanceof Array}function T(t){var n=e(t);return null!=t&&!O(t)&&("object"==n||"function"==n)}function A(e){return e instanceof Function}function z(e){return!isNaN(e)}function $(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()}var V=function(){function e(n){t(this,e),this.setAttribute(Object.assign({events:{}},n))}return i(e,[{key:"emit",value:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];return this.events[e]&&this.events[e].forEach((function(e){e.apply(t,i)})),this}},{key:"on",value:function(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}},{key:"off",value:function(e,t){return this.events[e]&&t?this.events[e]=this.events[e].filter((function(e){return e!==t})):this.events[e]=[],this}},{key:"once",value:function(e,t){var n=this;return t=g(t,(function(){return n.off(e,t)})),this.on(e,t,!0)}},{key:"getAttribute",value:function(e){return this.hasOwnProperty(e)?this[e]:null}},{key:"getAttributes",value:function(){var e=this,t={};return Object.getOwnPropertyNames(this).forEach((function(n){t[n]=e.getAttribute(n)})),t}},{key:"getPublicAttributes",value:function(){var e=this;return Object.keys(this.getAttributes()).filter((function(e){return!e.match(/^\$/)})).reduce((function(t,n){return t[n]=e.getAttribute(n),t}),{})}},{key:"setAttribute",value:function(e,t){T(e)?this.setAttributes(e):this[e]=t}},{key:"setAttributes",value:function(e){for(var t in e)this.setAttribute(t,e[t])}},{key:"callback",value:function(e){return m.call(this,e)}},{key:"name",get:function(){return this.constructor.defineName instanceof Function||d("Every class must define its name."),this.constructor.defineName()}},{key:"events",get:function(){return this.$events||{}},set:function(e){this.$events=e}}],[{key:"make",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(this,t)}}]),e}();function C(e,t){function n(e){return(t.prependLeadingZero&&1===e.toString().split("").length?"0":"").concat(e)}function i(e,t){var n=b(e).length;if(n<t)for(var i=0;i<t-n;i++)e[0].unshift("0");return e}return t=Object.assign({minimumDigits:0,prependLeadingZero:!0},t),i(k([e]).map((function(e){return k(b([e]).map((function(e){return n(e).split("")})))}
1)),t.minimumDigits||0)}var H=[{min:48,max:57},{min:65,max:90},{min:97,max:122}];function F(e,t){return"number"===t?parseFloat(e):e}function R(e){for(var t in H){var n=e.toString().charCodeAt(0);if(H[t].min<=n&&H[t].max>=n)return H[t]}return null}function E(e,t){return String.fromCharCode(t(R(e),e.charCodeAt(0)))}function P(t){return F(t.toString().split("").map((function(e){return E(e,(function(e,t){return!e||t<e.max?t+1:e.min}))})).join(""),e(t))}function x(t){return F(t.toString().split("").map((function(e){return E(e,(function(e,t){return!e||t>e.min?t-1:e.max}))})).join(""),e(t))}var G=function(e){function n(e,i){var s;return t(this,n),s=l(this,a(n).call(this,Object.assign({format:function(e){return e},prependLeadingZero:!0,minimumDigits:0},i))),s.value||(s.value=e),s}return s(n,e),i(n,[{key:"isNaN",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return isNaN(this.value)}))},{key:"isNumber",value:function(){return z()}},{key:"clone",value:function(e,t){return new this.constructor(e,Object.assign(this.getPublicAttributes(),t))}},{key:"digits",get:function(){return this.$digits},set:function(e){this.$digits=e,this.minimumDigits=Math.max(this.minimumDigits,w(e))}},{key:"value",get:function(){return this.$value},set:function(e){this.$value=e,this.digits=C(this.format(e),{minimumDigits:this.minimumDigits,prependLeadingZero:this.prependLeadingZero})}}],[{key:"defineName",value:function(){return"FaceValue"}}]),n}(V);function W(t){for(var n=!1,i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return k(s).forEach((function(i){(N(t)&&N(i)||T(i)&&t instanceof i||A(i)&&!j(i)&&!0===i(t)||M(i)&&e(t)===i)&&(n=!0)})),n}var _={className:"The className() is not defined.",items:"The items property must be an array.",theme:"The theme property must be an object.",language:"The language must be an object.",date:"The value must be an instance of a Date.",face:"The face must be an instance of a Face class.",element:"The element must be an instance of an HTMLElement",faceValue:"The face must be an instance of a FaceValue class.",timer:"The timer property must be an instance of a Timer class."},Y=function(e){function n(e,i){var s;return t(this,n),e instanceof G||!T(e)||(i=e,e=void 0),(s=l(this,a(n).call(this))).setAttributes(Object.assign({autoStart:!0,countdown:!1,animationRate:500},s.defaultAttributes(),i||{})),(N(e)||L(e))&&(e=s.defaultValue()),e&&(s.value=e),s}return s(n,e),i(n,[{key:"interval",value:function(e,t){return this.countdown?this.decrement(e):this.increment(e),m.call(this,t),this.shouldStop(e)&&e.stop(),this.emit("interval")}},{key:"shouldStop",value:function(e){return!L(this.stopAt)&&this.stopAt===e.value.value}},{key:"format",value:function(e,t){return t}},{key:"defaultValue",value:function(){}},{key:"defaultAttributes",value:function(){}},{key:"defaultDataType",value:function(){}},{key:"increment",value:function(e,t){}},{key:"decrement",value:function(e,t){}},{key:"started",value:function(e){}},{key:"stopped",value:function(e){}},{key:"reset",value:function(e){}},{key:"initialized",value:function(e){}},{key:"rendered",value:function(e){}},{key:"mounted",value:function(e){this.autoStart&&e.timer.isStopped&&window.requestAnimationFrame((function(){return e.start(e)}))}},{key:"createFaceValue",value:function(e,t){var n=this;return G.make(A(t)&&!t.name?t():t,{minimumDigits:this.minimumDigits,format:function(t){return n.format(e,t)}})}},{key:"dataType",get:function(){return this.defaultDataType()}},{key:"value",get:function(){return this.$value},set:function(e){e instanceof G||(e=this.createFaceValue(e)),this.$value=e}},{key:"stopAt",get:function(){return this.$stopAt},set:function(e){this.$stopAt=e}},{key:"originalValue",get:function(){return this.$originalValue},set:function(e){this.$originalValue=e}}]),n}(V),Z={years:"سÙÙØ§Øª",months:"Ø´ÙÙØ±",days:"Ø£ÙØ§Ù
",hours:"ساعات",minutes:"Ø¯ÙØ§Ø¦Ù",seconds:"Ø«ÙØ§ÙÙ"},I=["ar","ar-ar","arabic"],q=Object.freeze({dictionary:Z,aliases:I}),J={years:"Anys",months:"Mesos",days:"Dies",hours:"Hores",minutes:"Minuts",seconds:"Segons"},K=["ca","ca-es","catalan"],U=Object.freeze({dictionary:J,aliases:K}),B={years:"Roky",months:"MÄsÃce",days:"Dny",hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},Q=["cs","cs-cz","cz","cz-cs","czech"],X=Object.freeze({dictionary:B,aliases:Q}),ee={years:"Ã
r",months:"MÃ¥neder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},te=["da","da-dk","danish"],ne=Object.freeze({dictionary:ee,aliases:te}),ie={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},se=["de","de-de","german"],ae=Object.freeze({dictionary:ie,aliases:se}),re={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},ue=["en","en-us","english"],oe=Object.freeze({dictionary:re,aliases:ue}),ce={years:"Años",months:"Meses",days:"DÃas",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},le=["es","es-es","spanish"],he=Object.freeze({dictionary:ce,aliases:le}),fe={years:"ساÙ",months:"Ù
اÙ",days:"Ø±ÙØ²",hours:"ساعت",minutes:"دÙÛÙÙ",seconds:"ثاÙÛÙ"},de=["fa","fa-ir","persian"],me=Object.freeze({dictionary:fe,aliases:de}),ye={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},ve=["fi","fi-fi","finnish"],ge=Object.freeze({dictionary:ye,aliases:ve}),pe={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},ke=["fr","fr-ca","french"],be=Object.freeze({dictionary:pe,aliases:ke}),we={years:"×©× ××",months:"×××ש",days:"××××",hours:"שע×ת",minutes:"××§×ת",
1seconds:"×©× ××ת"},De=["il","he-il","hebrew"],Se=Object.freeze({dictionary:we,aliases:De}),Ne={years:"Ãv",months:"Hónap",days:"Nap",hours:"Ãra",minutes:"Perc",seconds:"Másodperc"},Le=["hu","hu-hu","hungarian"],je=Object.freeze({dictionary:Ne,aliases:Le}),Me={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},Oe=["da","da-dk","danish"],Te=Object.freeze({dictionary:Me,aliases:Oe}),Ae={years:"å¹´",months:"æ",days:"æ¥",hours:"æ",minutes:"å",seconds:"ç§"},ze=["jp","ja-jp","japanese"],$e=Object.freeze({dictionary:Ae,aliases:ze}),Ve={years:"ë
",months:"ì",days:"ì¼",hours:"ì",minutes:"ë¶",seconds:"ì´"},Ce=["ko","ko-kr","korean"],He=Object.freeze({dictionary:Ve,aliases:Ce}),Fe={years:"Gadi",months:"MÄneÅ¡i",days:"Dienas",hours:"Stundas",minutes:"MinÅ«tes",seconds:"Sekundes"},Re=["lv","lv-lv","latvian"],Ee=Object.freeze({dictionary:Fe,aliases:Re}),Pe={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},xe=["nl","nl-be","dutch"],Ge=Object.freeze({dictionary:Pe,aliases:xe}),We={years:"Ã
r",months:"MÃ¥neder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},_e=["no","nb","no-nb","norwegian"],Ye=Object.freeze({dictionary:We,aliases:_e}),Ze={years:"Lat",months:"MiesiÄcy",days:"Dni",hours:"Godziny",minutes:"Minuty",seconds:"Sekundy"},Ie=["pl","pl-pl","polish"],qe=Object.freeze({dictionary:Ze,aliases:Ie}),Je={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},Ke=["pt","pt-br","portuguese"],Ue=Object.freeze({dictionary:Je,aliases:Ke}),Be={years:"Ani",months:"Luni",days:"Zile",hours:"Ore",minutes:"Minute",seconds:"sSecunde"},Qe=["ro","ro-ro","romana"],Xe=Object.freeze({dictionary:Be,aliases:Qe}),et={years:"леÑ",months:"меÑÑÑев",days:"дней",hours:"ÑаÑов",minutes:"минÑÑ",seconds:"ÑекÑнд"},tt=["ru","ru-ru","russian"],nt=Object.freeze({dictionary:et,aliases:tt}),it={years:"Roky",months:"Mesiace",days:"Dni",hours:"Hodiny",minutes:"Minúty",seconds:"Sekundy"},st=["sk","sk-sk","slovak"],at=Object.freeze({dictionary:it,aliases:st}),rt={years:"Ã
r",months:"MÃ¥nader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},ut=["sv","sv-se","swedish"],ot=Object.freeze({dictionary:rt,aliases:ut}),ct={years:"à¸à¸µ",months:"à¹à¸à¸·à¸à¸",days:"วัà¸",hours:"à¸à¸±à¹à¸§à¹à¸¡à¸",minutes:"à¸à¸²à¸à¸µ",seconds:"วิà¸à¸²à¸à¸µ"},lt=["th","th-th","thai"],ht=Object.freeze({dictionary:ct,aliases:lt}),ft={years:"Yıl",months:"Ay",days:"Gün",hours:"Saat",minutes:"Dakika",seconds:"Saniye"},dt=["tr","tr-tr","turkish"],mt=Object.freeze({dictionary:ft,aliases:dt}),yt={years:"Ñоки",months:"мÑÑÑÑÑ",days:"днÑ",hours:"години",minutes:"Ñ
вилини",seconds:"ÑекÑнди"},vt=["ua","ua-ua","ukraine"],gt=Object.freeze({dictionary:yt,aliases:vt}),pt={years:"NÄm",months:"Tháng",days:"Ngà y",hours:"Giá»",minutes:"Phút",seconds:"Giây"},kt=["vn","vn-vn","vietnamese"],bt=Object.freeze({dictionary:pt,aliases:kt}),wt={years:"å¹´",months:"æ",days:"æ¥",hours:"æ¶",minutes:"å",seconds:"ç§"},Dt=["zh","zh-cn","chinese"],St=Object.freeze({dictionary:wt,aliases:Dt}),Nt={years:"å¹´",months:"æ",days:"æ¥",hours:"æ",minutes:"å",seconds:"ç§"},Lt=["zh-tw"],jt=Object.freeze({dictionary:Nt,aliases:Lt}),Mt=Object.freeze({Arabic:q,Catalan:U,Czech:X,Danish:ne,German:ae,English:oe,Spanish:he,Persian:me,Finnish:ge,French:be,Hebrew:Se,Hungarian:je,Italian:Te,Japanese:$e,Korean:He,Latvian:Ee,Dutch:Ge,Norwegian:Ye,Polish:qe,Portuguese:Ue,Romanian:Xe,Russian:nt,Slovak:at,Swedish:ot,Thai:ht,Turkish:mt,Ukrainian:gt,Vietnamese:bt,Chinese:St,TraditionalChinese:jt});function Ot(e){return e?Mt[e.toLowerCase()]||Object.values(Mt).find((function(t){return-1!==t.aliases.indexOf(e)})):null}function Tt(e,t){var n=M(t)?Ot(t):t;return(n.dictionary||n)[e]||e}function At(e,t){return t.parentNode?(t.parentNode.replaceChild(e,t),e):t}function zt(e,t){if(T(t))for(var n in t)e.setAttribute(n,t[n]);return e}function $t(e,t){return O(t)&&t.filter(v).forEach((function(t){t instanceof HTMLElement&&e.appendChild(t)})),e}function Vt(e,t,n){return e instanceof HTMLElement||(e=document.createElement(e)),zt(e,T(t)?t:n),T(t)||O(t)?$t(e,t):e.innerHTML=t,e}var Ct=function(e){function n(e){var i;if(t(this,n),(i=l(this,a(n).call(this,Object.assign({parent:null},e)))).theme||d("".concat(i.name," does not have a theme defined.")),i.language||d("".concat(i.name," does not have a language defined.")),!i.theme[i.name])throw new Error("".concat(i.name," cannot be rendered because it has no template."));return i}return s(n,e),i(n,[{key:"translate",value:function(e){return Tt(e,this.language)}},{key:"t",value:function(e){return this.translate(e)}},{key:"render",value:function(){var e=Vt("div",{class:"flip-clock"===this.className?this.className:"flip-clock-"+this.className});return this.theme[this.name](e,this),this.el?this.el.innerHTML!==e.innerHTML&&(this.el=At(e,this.el)):this.el=e,this.el}},{key:"mount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.render(),this.parent=e,t?this.parent.insertBefore(this.el,t):this.parent.appendChild(this.el),this.el}},{key:"className",get:function(){return $(this.constructor.defineName())}},{key:"el",get:function(){return this.$el},set:function(e){W(e,null,HTMLElement)||d(_.element),this.$el=e}},{key:"parent",get:function(){return this.$parent},set:function(e){this.$parent=e}},{key:"theme",get:function(){return this.$theme},set:function(e){W(e,"object")||d(_.value),this.$theme=e}},{key:"language",get:function(){return this.$language},set:function(e){M(e)&&(e=Ot(e)),W(e,"object")||d(_.language),this.$language=e}}]),n}(V),Ht=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,null,[{key:"defineName",value:function(){return"Divider"}}]),n}(Ct),Ft=function(e){function n(e,i){return t(this,n),l(this,a(n).call(this,Object.assign({value:e},T(e)?e:null,i)))}return s(n,e),i(n,null,[{key:"defineName",value:function(){return"ListItem"}}]),n}(Ct),Rt=function(e){function n(e,i){return t(this,n),l(this,a(n).call(this,Object.assign({value:e,items:[]},T(e)?e:null,i)))}return s(n,e),i(n,[{key:"createListItem",value:function(e,t){var n=new Ft(e,Object.assign({theme:this.theme,language:this.language},t));return this.$items.push(n),n}},{key:"value",get:function(){return this.$value},set:function(e){this.$value=e}},{key:"items",get:function(){return this.$items},set:function(e){this.$items=e}}],[{key:"defineName",value:function(){return"List"}}]),n}(Ct),Et=function(e){function n(e,i){return t(this,n),l(this,a(n).call(this,Object.assign({items:O(e)?e:[]},T(e)?e:null,i)))}return s(n,e),i(n,null,[{key:"defineName",value:function(){return"Group"}}]),n}(Ct),Pt=function(e){function n(e,i){return t(this,n),l(this,a(n).call(this,Object.assign({label:e},T(e)?e:null,i)))}return s(n,e),i(n,null,[{key:"defineName",value:function(){return"Label"}}]),n}(Ct),xt=function(e){function n(e){return t(this,n),l(this,a(n).call(this,Object.assign({count:0,handle:null,started:null,running:!1,interval:z(e)?e:null},T(e)?e:null)))}return s(n,e),i(n,[{key:"reset",value:function(e){var t=this;return this.stop((function(){t.count=0,t.start((function(){return m.call(t,e)})),t.emit("reset")})),this}},{key:"start",value:function(e){var t=this;return this.started=new Date,this.lastLoop=Date.now(),this.running=!0,this.emit
1("start"),function n(){return Date.now()-t.lastLoop>=t.interval&&(m.call(t,e),t.lastLoop=Date.now(),t.emit("interval"),t.count++),t.handle=window.requestAnimationFrame(n),t}()}},{key:"stop",value:function(e){var t=this;return this.isRunning&&setTimeout((function(){window.cancelAnimationFrame(t.handle),t.running=!1,m.call(t,e),t.emit("stop")})),this}},{key:"elapsed",get:function(){return this.lastLoop?this.lastLoop-(this.started?this.started.getTime():(new Date).getTime()):0}},{key:"isRunning",get:function(){return!0===this.running}},{key:"isStopped",get:function(){return!1===this.running}}],[{key:"defineName",value:function(){return"Timer"}}]),n}(V),Gt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"increment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e.value=this.value.value+t}},{key:"decrement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e.value=this.value.value-t}}],[{key:"defineName",value:function(){return"Counter"}}]),n}(Y),Wt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"defaultDataType",value:function(){return Date}},{key:"defaultAttributes",value:function(){return{showSeconds:!0,showLabels:!0}}},{key:"shouldStop",value:function(e){if(N(e.stopAt)||L(e.stopAt))return!1;if(this.stopAt instanceof Date)return this.countdown?this.stopAt.getTime()>=this.value.value.getTime():this.stopAt.getTime()<=this.value.value.getTime();if(z(this.stopAt)){var t=Math.floor((this.value.value.getTime()-this.originalValue.getTime())/1e3);return this.countdown?this.stopAt>=t:this.stopAt<=t}throw new Error("the stopAt property must be an instance of Date or Number.")}},{key:"increment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.value=new Date(this.value.value.getTime()+t+((new Date).getTime()-e.timer.lastLoop))}},{key:"decrement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.value=new Date(this.value.value.getTime()-t-((new Date).getTime()-e.timer.lastLoop))}},{key:"format",value:function(e,t){var n=e.timer.isRunning?e.timer.started:new Date(Date.now()-50);return[[this.getMinutes(t,n)],this.showSeconds?[this.getSeconds(t,n)]:null].filter(v)}},{key:"getMinutes",value:function(e,t){return y(this.getTotalSeconds(e,t)/60)}},{key:"getSeconds",value:function(e,t){var n=this.getTotalSeconds(e,t);return Math.abs(Math.ceil(60===n?0:n%60))}},{key:"getTotalSeconds",value:function(e,t){return e.getTime()===t.getTime()?0:Math.round((e.getTime()-t.getTime())/1e3)}}],[{key:"defineName",value:function(){return"MinuteCounter"}}]),n}(Y),_t=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"format",value:function(e,t){var n=e.timer.started?t:new Date,i=e.originalValue||t,s=this.countdown?i:n,a=this.countdown?n:i,r=[[this.getHours(s,a)],[this.getMinutes(s,a)]];return this.showSeconds&&r.push([this.getSeconds(s,a)]),r}},{key:"getMinutes",value:function(e,t){return Math.abs(f(a(n.prototype),"getMinutes",this).call(this,e,t)%60)}},{key:"getHours",value:function(e,t){return Math.floor(this.getTotalSeconds(e,t)/60/60)}}],[{key:"defineName",value:function(){return"HourCounter"}}]),n}(Wt),Yt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"format",value:function(e,t){var n=e.started?t:new Date,i=e.originalValue||t,s=this.countdown?i:n,a=this.countdown?n:i,r=[[this.getDays(s,a)],[this.getHours(s,a)],[this.getMinutes(s,a)]];return this.showSeconds&&r.push([this.getSeconds(s,a)]),r}},{key:"getDays",value:function(e,t){return Math.floor(this.getTotalSeconds(e,t)/60/60/24)}},{key:"getHours",value:function(e,t){return Math.abs(f(a(n.prototype),"getHours",this).call(this,e,t)%24)}}],[{key:"defineName",value:function(){return"DayCounter"}}]),n}(_t),Zt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"defaultDataType",value:function(){return Date}},{key:"defaultValue",value:function(){return new Date}},{key:"defaultAttributes",value:function(){return{showSeconds:!0,showLabels:!1}}},{key:"format",value:function(e,t){t||(t=new Date);var n=[[t.getHours()],[t.getMinutes()]];return this.showSeconds&&n.push([t.getSeconds()]),n}},{key:"increment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.value=new Date(this.value.value.getTime()+t+((new Date).getTime()-e.timer.lastLoop))}},{key:"decrement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.value=new Date(this.value.value.getTime()-t-((new Date).getTime()-e.timer.lastLoop))}}],[{key:"defineName",value:function(){return"TwentyFourHourClock"}}]),n}(Y),It=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"defaultAttributes",value:function(){return{showLabels:!1,showSeconds:!0,showMeridium:!0}}},{key:"format",value:function(e,t){t||(t=new Date);var n=t.getHours(),i=[n>12?n-12:0===n?12:n,t.getMinutes()];return this.meridium=n>12?"pm":"am",this.showSeconds&&i.push(t.getSeconds()),i}}],[{key:"defineName",value:function(){return"TwelveHourClock"}}]),n}(Zt),qt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"format",value:function(e,t){var n=e.timer.started?t:new Date,i=e.originalValue||t,s=this.countdown?i:n,a=this.countdown?n:i,r=[[this.getWeeks(s,a)],[this.getDays(s,a)],[this.getHours(s,a)],[this.getMinutes(s,a)]];
1return this.showSeconds&&r.push([this.getSeconds(s,a)]),r}},{key:"getWeeks",value:function(e,t){return Math.floor(this.getTotalSeconds(e,t)/60/60/24/7)}},{key:"getDays",value:function(e,t){return Math.abs(f(a(n.prototype),"getDays",this).call(this,e,t)%7)}}],[{key:"defineName",value:function(){return"WeekCounter"}}]),n}(Yt),Jt=function(e){function n(){return t(this,n),l(this,a(n).apply(this,arguments))}return s(n,e),i(n,[{key:"format",value:function(e,t){var n=e.timer.started?t:new Date,i=e.originalValue||t,s=this.countdown?i:n,a=this.countdown?n:i,r=[[this.getYears(s,a)],[this.getWeeks(s,a)],[this.getDays(s,a)],[this.getHours(s,a)],[this.getMinutes(s,a)]];return this.showSeconds&&r.push([this.getSeconds(s,a)]),r}},{key:"getYears",value:function(e,t){return Math.floor(Math.max(0,this.getTotalSeconds(e,t)/60/60/24/7/52))}},{key:"getWeeks",value:function(e,t){return Math.abs(f(a(n.prototype),"getWeeks",this).call(this,e,t)%52)}}],[{key:"defineName",value:function(){return"YearCounter"}}]),n}(qt),Kt=Object.freeze({Counter:Gt,DayCounter:Yt,MinuteCounter:Wt,HourCounter:_t,TwelveHourClock:It,TwentyFourHourClock:Zt,WeekCounter:qt,YearCounter:Jt});function Ut(e,t){$t(e,[Vt("div",{class:"flip-clock-dot top"}),Vt("div",{class:"flip-clock-dot bottom"})])}function Bt(e,t){return e?e.childNodes?e.childNodes[t]:e[t]:null}function Qt(e){return e?e.querySelector(".flip-clock-list-item:first-child .top").innerHTML:null}function Xt(e,t){$t(e,t.value.digits.map((function(e,n){var i=Bt(t.el?t.el.querySelectorAll(".flip-clock-group"):null,n),s=e.map((function(e,n){var s=Qt(Bt(i?i.querySelectorAll(".flip-clock-list"):null,n));return t.createList(e,{domValue:s,countdown:t.countdown,animationRate:t.face.animationRate||t.face.delay})}));return t.createGroup(s)})).map((function(e){return e.render()})))}function en(e,t){$t(e,t.items.map((function(e){return e.render()})))}function tn(e,t){e.innerHTML=t.t(t.label)}function nn(e,t){var n=t.domValue||(t.countdown?P(t.value):x(t.value));t.domValue&&t.domValue!==t.value&&e.classList.add("flip"),e.style.animationDelay="".concat(t.animationRate/2,"ms"),e.style.animationDuration="".concat(t.animationRate/2,"ms"),t.items=[t.createListItem(t.value,{active:!0}),t.createListItem(n,{active:!1})],$t(e,t.items.map((function(e){return e.render()})))}function sn(e,t){var n=!0===t.active?"active":!1===t.active?"before":null;e.classList.add(n),$t(e,[Vt("div",[Vt("div",t.value,{class:"top"}),Vt("div",t.value,{class:"bottom"})],{class:"flip-clock-list-item-inner"})])}function an(e,t){t.createDivider().mount(e,e.childNodes[1]),t.createDivider().mount(e,e.childNodes[3]),t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[5]),t.face.showLabels&&(t.createLabel("days").mount(e.childNodes[0]),t.createLabel("hours").mount(e.childNodes[2]),t.createLabel("minutes").mount(e.childNodes[4]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[6]))}function rn(e,t){t.createDivider().mount(e,e.childNodes[1]),t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[3]),t.face.showLabels&&(t.createLabel("hours").mount(e.childNodes[0]),t.createLabel("minutes").mount(e.childNodes[2]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[4]))}function un(e,t){t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[1]),t.face.showLabels&&(t.createLabel("minutes").mount(e.childNodes[0]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[2]))}function on(e,t){t.createDivider().mount(e,e.childNodes[1]),t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[3]),t.face.showLabels&&(t.createLabel("hours").mount(e.childNodes[0]),t.createLabel("minutes").mount(e.childNodes[2]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[4]))}function cn(e,t){if(on(e,t),t.face.showMeridium&&t.face.meridium){var n=t.createLabel(t.face.meridium),i=e.childNodes[e.childNodes.length-1];n.mount(i).classList.add("flip-clock-meridium")}}function ln(e,t){t.createDivider().mount(e,e.childNodes[1]),t.createDivider().mount(e,e.childNodes[3]),t.createDivider().mount(e,e.childNodes[5]),t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[7]),t.face.showLabels&&(t.createLabel("weeks").mount(e.childNodes[0]),t.createLabel("days").mount(e.childNodes[2]),t.createLabel("hours").mount(e.childNodes[4]),t.createLabel("minutes").mount(e.childNodes[6]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[8]))}function hn(e,t){t.createDivider().mount(e,e.childNodes[1]),t.createDivider().mount(e,e.childNodes[3]),t.createDivider().mount(e,e.childNodes[5]),t.createDivider().mount(e,e.childNodes[7]),t.face.showSeconds&&t.createDivider().mount(e,e.childNodes[9]),t.face.showLabels&&(t.createLabel("years").mount(e.childNodes[0]),t.createLabel("weeks").mount(e.childNodes[2]),t.createLabel("days").mount(e.childNodes[4]),t.createLabel("hours").mount(e.childNodes[6]),t.createLabel("minutes").mount(e.childNodes[8]),t.face.showSeconds&&t.createLabel("seconds").mount(e.childNodes[10]))}var fn={face:Gt,theme:{Divider:Ut,FlipClock:Xt,Group:en,Label:tn,List:nn,ListItem:sn,faces:Object.freeze({DayCounter:an,HourCounter:rn,MinuteC
1ounter:un,TwelveHourClock:cn,TwentyFourHourClock:on,WeekCounter:ln,YearCounter:hn})},language:oe};return function(e){function n(e,i,s){var r;t(this,n),W(e,HTMLElement)||d(_.element),T(i)&&!s&&(s=i,i=void 0);var u=s.face||fn.face;return delete s.face,(r=l(this,a(n).call(this,Object.assign({originalValue:i,theme:fn.theme,language:fn.language,timer:xt.make(s.interval||1e3)},s)))).face||(r.face=u),r.mount(e),r}return s(n,e),i(n,[{key:"mount",value:function(e){return f(a(n.prototype),"mount",this).call(this,e),this.face.mounted(this),this}},{key:"render",value:function(){return f(a(n.prototype),"render",this).call(this),this.theme.faces[this.face.name]&&this.theme.faces[this.face.name](this.el,this),this.face.rendered(this),this.el}},{key:"start",value:function(e){var t=this;return this.timer.started||(this.value=this.originalValue),L(this.face.stopAt)&&(this.face.stopAt=this.stopAt),L(this.face.originalValue)&&(this.face.originalValue=this.originalValue),this.timer.start((function(){t.face.interval(t,e)})),this.face.started(this),this.emit("start")}},{key:"stop",value:function(e){return this.timer.stop(e),this.face.stopped(this),this.emit("stop")}},{key:"reset",value:function(e){var t=this;return this.value=this.originalValue,this.timer.reset((function(){return t.interval(t,e)})),this.face.reset(this),this.emit("reset")}},{key:"increment",value:function(e){return this.face.increment(this,e),this}},{key:"decrement",value:function(e){return this.face.decrement(this,e),this}},{key:"createDivider",value:function(e){return Ht.make(Object.assign({theme:this.theme,language:this.language},e))}},{key:"createList",value:function(e,t){return Rt.make(e,Object.assign({theme:this.theme,language:this.language},t))}},{key:"createLabel",value:function(e,t){return Pt.make(e,Object.assign({theme:this.theme,language:this.language},t))}},{key:"createGroup",value:function(e,t){return Et.make(e,Object.assign({theme:this.theme,language:this.language},t))}},{key:"face",get:function(){return this.$face},set:function(e){W(e,[Y,"string","function"])||d(_.face),this.$face=(Kt[e]||e).make(Object.assign(this.getPublicAttributes(),{originalValue:this.face?this.face.originalValue:void 0})),this.$face.initialized(this),this.value?this.$face.value=this.face.createFaceValue(this,this.value.value):this.value||(this.value=this.originalValue),this.el&&this.render()}},{key:"stopAt",get:function(){return A(this.$stopAt)?this.$stopAt(this):this.$stopAt},set:function(e){this.$stopAt=e}},{key:"timer",get:function(){return this.$timer},set:function(e){W(e,xt)||d(_.timer),this.$timer=e}},{key:"value",get:function(){return this.face?this.face.value:null},set:function(e){if(!this.face)throw new Error("A face must be set before setting a value.");e instanceof G?this.face.value=e:this.value?this.face.value=this.face.value.clone(e):this.face.value=this.face.createFaceValue(this,e),this.el&&this.render()}},{key:"originalValue",get:function(){return A(this.$originalValue)&&!this.$originalValue.name?this.$originalValue():L(this.$originalValue)||N(this.$originalValue)?this.face?this.face.defaultValue():void 0:this.$originalValue},set:function(e){this.$originalValue=e}}],[{key:"defineName",value:function(){return"FlipClock"}},{key:"setDefaultFace",value:function(e){W(e,Y)||d(_.face),fn.face=e}},{key:"setDefaultTheme",value:function(e){W(e,"object")||d(_.theme),fn.theme=e}},{key:"setDefaultLanguage",value:function(e){W(e,"object")||d(_.language),fn.language=e}},{key:"defaults",get:function(){return fn}}]),n}(Ct)}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.