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.
 
 
 
 
 
 

20 lines
101 KiB

var _d=Object.defineProperty,vd=Object.defineProperties;var gd=Object.getOwnPropertyDescriptors;var bi=Object.getOwnPropertySymbols;var yd=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable;var Ti=(Q,W,T)=>W in Q?_d(Q,W,{enumerable:!0,configurable:!0,writable:!0,value:T}):Q[W]=T,Ft=(Q,W)=>{for(var T in W||(W={}))yd.call(W,T)&&Ti(Q,T,W[T]);if(bi)for(var T of bi(W))wd.call(W,T)&&Ti(Q,T,W[T]);return Q},nr=(Q,W)=>vd(Q,gd(W));var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.duration-picker{position:relative}.dp-modal--backdrop{position:fixed;top:0px;left:0px;width:100%;height:100vh;z-index:10000}.dp-modal--container{display:flex;justify-content:center;align-items:center;height:100%}.dp-amount--editor__header{color:#495057;margin:10px 0}.dp-amount--editor__header .dp-amount--container{font-size:1.5rem;text-align:center}.dp-editor--task-title__input,.dp-editor--task-title__textarea{color:#495057;font-weight:500;outline:none;border:none;padding:5px 15px}.dp-editor--task-title__wrapper input,.dp-editor--task-title__wrapper textarea{color:#495057;font-weight:500;outline:none;border:none;width:90%}.dp-clock-spin{color:#6d35a6}.dp-alert i{font-size:.7em;color:#6d35a6}.dp-amount--view{display:inline-block;cursor:pointer;padding:0 2px;border-radius:4px}.dp-amount--editor__header .dp-amount--view{padding:3px 5px;border-radius:4px}.dp-amount--editor__header .dp-amount--view.active{background-color:#6d35a6;color:#fff}.dp-editor--container{flex-grow:1}.dp-amount--input__container{display:flex;flex-direction:column;height:98%;width:98%;border-radius:.25rem;-webkit-box-shadow:0px 4px 20px -7px rgba(0,0,0,.75);-moz-box-shadow:0px 4px 20px -7px rgba(0,0,0,.75);box-shadow:0 4px 20px -7px #000000bf;background:white;overflow:auto}.dp-amount--input__wrapper{max-width:325px;margin-left:auto;margin-right:auto;margin-bottom:20px}.dp-amount--input__wrapper input{width:50%;outline:none;border:none;font-size:3.5rem}.dp-amount--input__wrapper input{-moz-appearance:textfield}.dp-amount--input__wrapper input::-webkit-outer-spin-button,.dp-amount--input__wrapper input::-webkit-inner-spin-button{display:none;-webkit-appearance:none;margin:0}.dp-amount--input__label{font-weight:bold;margin-bottom:1rem}.dp-amount--input__left-section{display:flex;flex-direction:column;justify-content:center;align-items:center}.dp-amount--input__controls{display:flex}.dp-amount--input__controls .dp-amount--input__btn{display:inline-block;cursor:pointer;width:54px;height:43px;padding:1px 15px;text-align:center;line-height:2.2;font-size:1.2rem}.dp-amount--input__controls .dp-amount--input__btn:active{color:#007bff}.dp-amount--input__header{position:relative;padding:12px;border-bottom:1px #b1b1b1 solid}.dp-amount--input__close{position:absolute;font-weight:bold;cursor:pointer;top:7px;right:10px;color:gray;transition:color .5s ease}.dp-amount--input__close:hover{color:#007bff}.dp-amount--input__header--btn{padding:0 10px;cursor:pointer;font-weight:bold;color:#495057;transition:color .5s ease}.dp-amount--input__header--btn:first-child{padding-left:0}.dp-amount--input__header--btn.active,.dp-amount--input__header--btn:hover{color:#6d35a6}.dp-chronometer__container{background-color:#6d35a6}.dp-chronometer__group{display:flex;align-items:center}.dp-chronometer-btn{flex-grow:1;text-align:center;height:60px;cursor:pointer;color:#ececec;line-height:3.6rem;border-radius:4px;transition:color .5s ease}.dp-chronometer__info{font-weight:bold}.dp-history--container{flex-grow:1;font-size:.85rem}.dp-history--container tr{cursor:pointer}.dp-history--container tr.active{background-color:#e0efff}.unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease-in-out}.fade-enter,.fade-leave-to{opacity:0}@media (min-width: 768px){.dp-amount--input__container{width:550px;height:auto;max-height:97%;min-height:300px}}
`;document.head.appendChild(__vite_style__);System.register(["vue"],function(Q){"use strict";var W,T,U,gs,ys,Ct,_,De,me,ze,et,ht,ft,mt,Vt,ar,or,ur,lr,dr,cr;return{setters:[function(V){W=V.inject,T=V.openBlock,U=V.createElementBlock,gs=V.Fragment,ys=V.renderList,Ct=V.normalizeClass,_=V.createElementVNode,De=V.toDisplayString,me=V.createCommentVNode,ze=V.resolveComponent,et=V.createVNode,ht=V.withDirectives,ft=V.vShow,mt=V.createTextVNode,Vt=V.createBlock,ar=V.Transition,or=V.withCtx,ur=V.reactive,lr=V.provide,dr=V.createApp,cr=V.h}],execute:function(){var V,Lt,xi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hr(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),s.push.apply(s,r)}return s}function Ze(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?hr(Object(s),!0).forEach(function(r){Oi(e,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):hr(Object(s)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))})}return e}function Oi(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function ws(e){return(ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}(function(e,t){var s;s=xi,e.exports=function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(n){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var a,d=String(n),v=d.length,g=-1,j="",ae=d.charCodeAt(0);++g<v;)(a=d.charCodeAt(g))!=0?j+=a>=1&&a<=31||a==127||g==0&&a>=48&&a<=57||g==1&&a>=48&&a<=57&&ae==45?"\\"+a.toString(16)+" ":g==0&&v==1&&a==45||!(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122)?"\\"+d.charAt(g):d.charAt(g):j+="\uFFFD";return j};return r.CSS||(r.CSS={}),r.CSS.escape=i,i}(s)})(Lt={path:V,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(t==null&&Lt.path)}},Lt.exports),Lt.exports;var Yi={appOptions:null,template:null,Vue:null,createApp:null,handleInstance:null};function Pi(e){if(ws(e)!=="object")throw new Error("single-spa-vue requires a configuration object");var t=Ze(Ze({},Yi),e);if(!t.Vue&&!t.createApp)throw Error("single-spa-vue must be passed opts.Vue or opts.createApp");if(!t.appOptions)throw Error("single-spa-vue must be passed opts.appOptions");if(t.appOptions.el&&typeof t.appOptions.el!="string"&&!(t.appOptions.el instanceof HTMLElement))throw Error("single-spa-vue: appOptions.el must be a string CSS selector, an HTMLElement, or not provided at all. Was given ".concat(ws(t.appOptions.el)));t.createApp=t.createApp||t.Vue&&t.Vue.createApp;var s={};return{bootstrap:Ii.bind(null,t,s),mount:Ai.bind(null,t,s),unmount:Fi.bind(null,t,s),update:Ni.bind(null,t,s)}}function Ii(e){return e.loadRootComponent?e.loadRootComponent().then(function(t){return e.rootComponent=t}):Promise.resolve()}function Ai(e,t,s){var r={};return Promise.resolve().then(function(){return function(i,n){return typeof i.appOptions=="function"?i.appOptions(n):Promise.resolve(Ze({},i.appOptions))}(e,s).then(function(i){var n;if(s.domElement&&!i.el&&(i.el=s.domElement),i.el)if(typeof i.el=="string"){if(!(n=document.querySelector(i.el)))throw Error("If appOptions.el is provided to single-spa-vue, the dom element must exist in the dom. Was provided as ".concat(i.el))}else(n=i.el).id||(n.id="single-spa-application:".concat(s.name)),i.el="#".concat(CSS.escape(n.id));else{var a="single-spa-application:".concat(s.name);i.el="#".concat(CSS.escape(a)),(n=document.getElementById(a))||((n=document.createElement("div")).id=a,document.body.appendChild(n))}if(e.replaceMode||(i.el=i.el+" .single-spa-container"),!n.querySelector(".single-spa-container")){var d=document.createElement("div");d.className="single-spa-container",n.appendChild(d)}if(r.domEl=n,i.render||i.template||!e.rootComponent||(i.render=function(v){return v(e.rootComponent)}),i.data||(i.data={}),i.data=function(){return Ze(Ze({},i.data),s)},e.createApp){if(r.vueInstance=e.createApp(i),e.handleInstance)return Promise.resolve(e.handleInstance(r.vueInstance,s)).then(function(){return r.root=r.vueInstance.mount(i.el),t[s.name]=r,r.vueInstance});r.root=r.vueInstance.mount(i.el)}else if(r.vueInstance=new e.Vue(i),r.vueInstance.bind&&(r.vueInstance=r.vueInstance.bind(r.vueInstance)),e.handleInstance)return Promise.resolve(e.handleInstance(r.vueInstance,s)).then(function(){return t[s.name]=r,r.vueInstance});return t[s.name]=r,r.vueInstance})})}function Ni(e,t,s){return Promise.resolve().then(function(){var r=t[s.name],i=Ze(Ze({},e.appOptions.data||{}),s),n=r.root||r.vueInstance;for(var a in i)n[a]=i[a]})}function Fi(e,t,s){return Promise.resolve().then(function(){var r=t[s.name];e.createApp?r.vueInstance.unmount(r.domEl):(r.vueInstance.$destroy(),r.vueInstance.$el.innerHTML=""),delete r.vueInstance,r.domEl&&(r.domEl.innerHTML="",delete r.domEl)})}var tt=(e,t)=>{for(const[s,r]of t)e[s]=r;return e};const Ci={name:"DurationPickerAmounts",data:function(){return{store:W("store")}},props:{duration:Object,amounts:Object},methods:{setUnit:function(e){this.store.setActiveUnit(e)}}},Vi={class:"dp-amount--container"},Li=["title","onClick"],Wi={class:"dp-amount--preview__value"},Ri={key:0,class:"dp-alert",title:"Not saved"},Ei=[_("i",{class:"fas fa-exclamation"},null,-1)],Ui={class:"dp-clock-spin"},Hi={key:0,class:"far fa-clock fa-spin"};function ji(e,t,s,r,i,n){return T(),U("div",Vi,[(T(!0),U(gs,null,ys(s.duration.units,a=>(T(),U("div",{key:a,class:Ct(["dp-amount--view",{active:e.store.state.activeUnit===a}]),title:a,onClick:d=>n.setUnit(a)},[_("span",Wi,De(s.amounts[a])+De(a.charAt(0)),1)],10,Li))),128)),e.store.state.draft&&!e.store.state.playing?(T(),U("span",Ri,Ei)):me("",!0),_("span",Ui,[e.store.state.playing?(T(),U("i",Hi)):me("",!0)])])}var fr=tt(Ci,[["render",ji]]);const $i={name:"DurationPickerEditor",components:{DurationPickerAmounts:fr,DurationPickerTitle:{name:"DurationPickerTitle",data:function(){return{store:W("store")}},computed:{getTitle:function(){return this.store.getTimestamp(this.store.state.activeTimestamp).title},getDescription:function(){return this.store.getTimestamp(this.store.state.activeTimestamp).description}},methods:{handleInputTitle:function(e){this.store.setTimestamp("update",nr(Ft({},this.store.getTimestamp(this.store.state.activeTimestamp)),{title:e.target.value}))},handleInputDescription:function(e){this.store.setTimestamp("update",nr(Ft({},this.store.getTimestamp(this.store.state.activeTimestamp)),{description:e.target.value}))}}}},data:function(){return{currentValue:0,interval:!1,timeoutId:null,store:W("store"),ignore:!1}},props:{initialUnit:String},mounted:function(){this.$nextTick(function(){this.$refs.input.focus()})},beforeDestroy:function(){clearInterval(this.interval),clearTimeout(this.timeoutId),this.ignore=!0},computed:{convertValue:function(){const e=this.store.__calcDuration(this.store.getTimestamp(this.store.state.activeTimestamp).spentTime);return this.currentValue=e[this.store.state.activeUnit],e[this.store.state.activeUnit]},getAmounts:function(){const e=this.store.state.activeTimestamp,t=this.store.state.timestamps[e].spentTime;return this.store.__calcDuration(t)}},methods:{handleKeydown:function(e){if(this.store.state.playing){e.preventDefault();return}},handleInput:function(e){let t=parseInt(e.target.value,10);isNaN(t)&&(t=0),this.store.setDurationValue(t-this.currentValue,this.store.state.activeUnit),this.timeoutId||(this.timeoutId=setTimeout(()=>{this.store.state.playing||this.store.state.inputId&&this.store.saveDurationDraft(this.store.state.inputId,{draftAmounts:this.getTotalAmounts()}).then(s=>{this.ignore||(this.store.state.draft=s)}),clearTimeout(this.timeoutId),this.timeoutId=null},180))},handleClickUnit:function(e){this.$refs.input.focus(),this.store.setActiveUnit(e)},handleTabKeys:function(e){e.shiftKey&&e.which===9?(e.preventDefault(),this.prevAmount()):e.which===9&&(e.preventDefault(),this.nextAmount())},nextAmount:function(){const e=this.store.getAmountAfter(this.store.state.activeUnit);this.store.setActiveUnit(e)},prevAmount:function(){const e=this.store.getAmountBefore(this.store.state.activeUnit);this.store.setActiveUnit(e)},handleArithmetic:function(e){this.store.state.playing||(this.store.setDurationValue(e,this.store.state.activeUnit),this.store.state.playing||this.store.state.inputId&&this.store.saveDurationDraft(this.store.state.inputId,{draftAmounts:this.getTotalAmounts()}).then(t=>{this.store.state.draft=t}))},startArithmetic:function(e){this.interval||(this.handleArithmetic(e),this.interval=setInterval(this.handleArithmetic,180,e))},stopArithmetic:function(){clearInterval(this.interval),this.interval=!1,this.$refs.input.focus()},getTotalAmounts:function(){const e=this.store.getTotalDuration();return this.store.__calcDuration(e)}}},Gi={class:"dp-editor--container"},zi={class:"dp-amount--editor__header"},Zi={class:"dp-amount--input__left-section"},Bi=["value"],qi={class:"dp-amount--input__label"},Ji={class:"dp-amount--input__controls"},Ki=[_("i",{class:"fas fa-angle-double-down"},null,-1)],Qi=[_("i",{class:"fas fa-angle-down"},null,-1)],Xi=[_("i",{class:"fas fa-angle-up"},null,-1)],en=[_("i",{class:"fas fa-angle-double-up"},null,-1)];function tn(e,t,s,r,i,n){const a=ze("DurationPickerAmounts");return T(),U("div",Gi,[_("div",zi,[et(a,{duration:e.store.state.duration,amounts:n.getAmounts},null,8,["duration","amounts"])]),_("div",{class:"dp-amount--input__wrapper",onKeydown:t[14]||(t[14]=(...d)=>n.handleTabKeys&&n.handleTabKeys(...d))},[_("div",Zi,[_("input",{ref:"input",class:"numeric duration-field",type:"number",placeholder:"__",min:"-1",onInput:t[0]||(t[0]=(...d)=>n.handleInput&&n.handleInput(...d)),onKeydown:t[1]||(t[1]=(...d)=>n.handleKeydown&&n.handleKeydown(...d)),value:n.convertValue},null,40,Bi),_("div",qi,De(e.store.state.activeUnit),1),_("div",Ji,[_("div",{class:"dp-amount--input__btn unselectable",title:"-5",onMousedown:t[2]||(t[2]=d=>n.startArithmetic(-5)),onMouseleave:t[3]||(t[3]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d)),onMouseup:t[4]||(t[4]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d))},Ki,32),_("div",{class:"dp-amount--input__btn unselectable",title:"-1",onMousedown:t[5]||(t[5]=d=>n.startArithmetic(-1)),onMouseleave:t[6]||(t[6]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d)),onMouseup:t[7]||(t[7]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d))},Qi,32),_("div",{class:"dp-amount--input__btn unselectable",title:"+1",onMousedown:t[8]||(t[8]=d=>n.startArithmetic(1)),onMouseleave:t[9]||(t[9]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d)),onMouseup:t[10]||(t[10]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d))},Xi,32),_("div",{class:"dp-amount--input__btn unselectable",title:"+5",onMousedown:t[11]||(t[11]=d=>n.startArithmetic(5)),onMouseleave:t[12]||(t[12]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d)),onMouseup:t[13]||(t[13]=(...d)=>n.stopArithmetic&&n.stopArithmetic(...d))},en,32)])])],32)])}var sn=tt($i,[["render",tn]]);//! moment.js
//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var mr;function c(){return mr.apply(null,arguments)}function rn(e){mr=e}function pe(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Be(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ds(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(x(e,t))return!1;return!0}function X(e){return e===void 0}function Oe(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function pt(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function pr(e,t){var s=[],r;for(r=0;r<e.length;++r)s.push(t(e[r],r));return s}function Ee(e,t){for(var s in t)x(t,s)&&(e[s]=t[s]);return x(t,"toString")&&(e.toString=t.toString),x(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Se(e,t,s,r){return Ur(e,t,s,r,!0).utc()}function nn(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return e._pf==null&&(e._pf=nn()),e._pf}var Ss;Array.prototype.some?Ss=Array.prototype.some:Ss=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ks(e){if(e._isValid==null){var t=y(e),s=Ss.call(t.parsedDateParts,function(i){return i!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function Wt(e){var t=Se(NaN);return e!=null?Ee(y(t),e):y(t).userInvalidated=!0,t}var Ms=c.momentProperties=[],bs=!1;function Ts(e,t){var s,r,i;if(X(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),X(t._i)||(e._i=t._i),X(t._f)||(e._f=t._f),X(t._l)||(e._l=t._l),X(t._strict)||(e._strict=t._strict),X(t._tzm)||(e._tzm=t._tzm),X(t._isUTC)||(e._isUTC=t._isUTC),X(t._offset)||(e._offset=t._offset),X(t._pf)||(e._pf=y(t)),X(t._locale)||(e._locale=t._locale),Ms.length>0)for(s=0;s<Ms.length;s++)r=Ms[s],i=t[r],X(i)||(e[r]=i);return e}function _t(e){Ts(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),bs===!1&&(bs=!0,c.updateOffset(this),bs=!1)}function _e(e){return e instanceof _t||e!=null&&e._isAMomentObject!=null}function _r(e){c.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function ue(e,t){var s=!0;return Ee(function(){if(c.deprecationHandler!=null&&c.deprecationHandler(null,e),s){var r=[],i,n,a;for(n=0;n<arguments.length;n++){if(i="",typeof arguments[n]=="object"){i+=`
[`+n+"] ";for(a in arguments[0])x(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[n];r.push(i)}_r(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var vr={};function gr(e,t){c.deprecationHandler!=null&&c.deprecationHandler(e,t),vr[e]||(_r(t),vr[e]=!0)}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null;function ke(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function an(e){var t,s;for(s in e)x(e,s)&&(t=e[s],ke(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function xs(e,t){var s=Ee({},e),r;for(r in t)x(t,r)&&(Be(e[r])&&Be(t[r])?(s[r]={},Ee(s[r],e[r]),Ee(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)x(e,r)&&!x(t,r)&&Be(e[r])&&(s[r]=Ee({},s[r]));return s}function Os(e){e!=null&&this.set(e)}var Ys;Object.keys?Ys=Object.keys:Ys=function(e){var t,s=[];for(t in e)x(e,t)&&s.push(t);return s};var on={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function un(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return ke(r)?r.call(t,s):r}function Me(e,t,s){var r=""+Math.abs(e),i=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Ps=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Rt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Is={},st={};function p(e,t,s,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(st[e]=i),t&&(st[t[0]]=function(){return Me(i.apply(this,arguments),t[1],t[2])}),s&&(st[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function ln(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dn(e){var t=e.match(Ps),s,r;for(s=0,r=t.length;s<r;s++)st[t[s]]?t[s]=st[t[s]]:t[s]=ln(t[s]);return function(i){var n="",a;for(a=0;a<r;a++)n+=ke(t[a])?t[a].call(i,e):t[a];return n}}function Et(e,t){return e.isValid()?(t=yr(t,e.localeData()),Is[t]=Is[t]||dn(t),Is[t](e)):e.localeData().invalidDate()}function yr(e,t){var s=5;function r(i){return t.longDateFormat(i)||i}for(Rt.lastIndex=0;s>=0&&Rt.test(e);)e=e.replace(Rt,r),Rt.lastIndex=0,s-=1;return e}var cn={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hn(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(Ps).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var fn="Invalid date";function mn(){return this._invalidDate}var pn="%d",_n=/\d{1,2}/;function vn(e){return this._ordinal.replace("%d",e)}var gn={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function yn(e,t,s,r){var i=this._relativeTime[s];return ke(i)?i(e,t,s,r):i.replace(/%d/i,e)}function wn(e,t){var s=this._relativeTime[e>0?"future":"past"];return ke(s)?s(t):s.replace(/%s/i,t)}var vt={};function z(e,t){var s=e.toLowerCase();vt[s]=vt[s+"s"]=vt[t]=e}function le(e){return typeof e=="string"?vt[e]||vt[e.toLowerCase()]:void 0}function As(e){var t={},s,r;for(r in e)x(e,r)&&(s=le(r),s&&(t[s]=e[r]));return t}var wr={};function Z(e,t){wr[e]=t}function Dn(e){var t=[],s;for(s in e)x(e,s)&&t.push({unit:s,priority:wr[s]});return t.sort(function(r,i){return r.priority-i.priority}),t}function Ut(e){return e%4==0&&e%100!=0||e%400==0}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=de(t)),s}function rt(e,t){return function(s){return s!=null?(Dr(this,e,s),c.updateOffset(this,t),this):Ht(this,e)}}function Ht(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Dr(e,t,s){e.isValid()&&!isNaN(s)&&(t==="FullYear"&&Ut(e.year())&&e.month()===1&&e.date()===29?(s=k(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),qt(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function Sn(e){return e=le(e),ke(this[e])?this[e]():this}function kn(e,t){if(typeof e=="object"){e=As(e);var s=Dn(e),r;for(r=0;r<s.length;r++)this[s[r].unit](e[s[r].unit])}else if(e=le(e),ke(this[e]))return this[e](t);return this}var Sr=/\d/,ie=/\d\d/,kr=/\d{3}/,Ns=/\d{4}/,jt=/[+-]?\d{6}/,N=/\d\d?/,Mr=/\d\d\d\d?/,br=/\d\d\d\d\d\d?/,$t=/\d{1,3}/,Fs=/\d{1,4}/,Gt=/[+-]?\d{1,6}/,it=/\d+/,zt=/[+-]?\d+/,Mn=/Z|[+-]\d\d:?\d\d/gi,Zt=/Z|[+-]\d\d(?::?\d\d)?/gi,bn=/[+-]?\d+(\.\d{1,3})?/,gt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Bt;Bt={};function m(e,t,s){Bt[e]=ke(t)?t:function(r,i){return r&&s?s:t}}function Tn(e,t){return x(Bt,e)?Bt[e](t._strict,t._locale):new RegExp(xn(e))}function xn(e){return ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,i,n){return s||r||i||n}))}function ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Cs={};function I(e,t){var s,r=t;for(typeof e=="string"&&(e=[e]),Oe(t)&&(r=function(i,n){n[t]=k(i)}),s=0;s<e.length;s++)Cs[e[s]]=r}function yt(e,t){I(e,function(s,r,i,n){i._w=i._w||{},t(s,i._w,i,n)})}function On(e,t,s){t!=null&&x(Cs,e)&&Cs[e](t,s._a,s,e)}var B=0,Ye=1,be=2,H=3,ve=4,Pe=5,qe=6,Yn=7,Pn=8;function In(e,t){return(e%t+t)%t}var R;Array.prototype.indexOf?R=Array.prototype.indexOf:R=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function qt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=In(t,12);return e+=(t-s)/12,s===1?Ut(e)?29:28:31-s%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1}),p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),p("MMMM",0,0,function(e){return this.localeData().months(this,e)}),z("month","M"),Z("month",8),m("M",N),m("MM",N,ie),m("MMM",function(e,t){return t.monthsShortRegex(e)}),m("MMMM",function(e,t){return t.monthsRegex(e)}),I(["M","MM"],function(e,t){t[Ye]=k(e)-1}),I(["MMM","MMMM"],function(e,t,s,r){var i=s._locale.monthsParse(e,r,s._strict);i!=null?t[Ye]=i:y(s).invalidMonth=e});var An="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nn=gt,Fn=gt;function Cn(e,t){return e?pe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xr).test(t)?"format":"standalone"][e.month()]:pe(this._months)?this._months:this._months.standalone}function Vn(e,t){return e?pe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xr.test(t)?"format":"standalone"][e.month()]:pe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Ln(e,t,s){var r,i,n,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=Se([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(i=R.call(this._shortMonthsParse,a),i!==-1?i:null):(i=R.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=R.call(this._shortMonthsParse,a),i!==-1?i:(i=R.call(this._longMonthsParse,a),i!==-1?i:null)):(i=R.call(this._longMonthsParse,a),i!==-1?i:(i=R.call(this._shortMonthsParse,a),i!==-1?i:null))}function Wn(e,t,s){var r,i,n;if(this._monthsParseExact)return Ln.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Se([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function Or(e,t){var s;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),!Oe(t))return e}return s=Math.min(e.date(),qt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function Yr(e){return e!=null?(Or(this,e),c.updateOffset(this,!0),this):Ht(this,"Month")}function Rn(){return qt(this.year(),this.month())}function En(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Pr.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=Nn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Un(e){return this._monthsParseExact?(x(this,"_monthsRegex")||Pr.call(this),e?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=Fn),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Pr(){function e(a,d){return d.length-a.length}var t=[],s=[],r=[],i,n;for(i=0;i<12;i++)n=Se([2e3,i]),t.push(this.monthsShort(n,"")),s.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(t.sort(e),s.sort(e),r.sort(e),i=0;i<12;i++)t[i]=ne(t[i]),s[i]=ne(s[i]);for(i=0;i<24;i++)r[i]=ne(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}p("Y",0,0,function(){var e=this.year();return e<=9999?Me(e,4):"+"+e}),p(0,["YY",2],0,function(){return this.year()%100}),p(0,["YYYY",4],0,"year"),p(0,["YYYYY",5],0,"year"),p(0,["YYYYYY",6,!0],0,"year"),z("year","y"),Z("year",1),m("Y",zt),m("YY",N,ie),m("YYYY",Fs,Ns),m("YYYYY",Gt,jt),m("YYYYYY",Gt,jt),I(["YYYYY","YYYYYY"],B),I("YYYY",function(e,t){t[B]=e.length===2?c.parseTwoDigitYear(e):k(e)}),I("YY",function(e,t){t[B]=c.parseTwoDigitYear(e)}),I("Y",function(e,t){t[B]=parseInt(e,10)});function wt(e){return Ut(e)?366:365}c.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Ir=rt("FullYear",!0);function Hn(){return Ut(this.year())}function jn(e,t,s,r,i,n,a){var d;return e<100&&e>=0?(d=new Date(e+400,t,s,r,i,n,a),isFinite(d.getFullYear())&&d.setFullYear(e)):d=new Date(e,t,s,r,i,n,a),d}function Dt(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Jt(e,t,s){var r=7+t-s,i=(7+Dt(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Ar(e,t,s,r,i){var n=(7+s-r)%7,a=Jt(e,r,i),d=1+7*(t-1)+n+a,v,g;return d<=0?(v=e-1,g=wt(v)+d):d>wt(e)?(v=e+1,g=d-wt(e)):(v=e,g=d),{year:v,dayOfYear:g}}function St(e,t,s){var r=Jt(e.year(),t,s),i=Math.floor((e.dayOfYear()-r-1)/7)+1,n,a;return i<1?(a=e.year()-1,n=i+Ie(a,t,s)):i>Ie(e.year(),t,s)?(n=i-Ie(e.year(),t,s),a=e.year()+1):(a=e.year(),n=i),{week:n,year:a}}function Ie(e,t,s){var r=Jt(e,t,s),i=Jt(e+1,t,s);return(wt(e)-r+i)/7}p("w",["ww",2],"wo","week"),p("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),Z("week",5),Z("isoWeek",5),m("w",N),m("ww",N,ie),m("W",N),m("WW",N,ie),yt(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=k(e)});function $n(e){return St(e,this._week.dow,this._week.doy).week}var Gn={dow:0,doy:6};function zn(){return this._week.dow}function Zn(){return this._week.doy}function Bn(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function qn(e){var t=St(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day"),p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),p("e",0,0,"weekday"),p("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),Z("day",11),Z("weekday",11),Z("isoWeekday",11),m("d",N),m("e",N),m("E",N),m("dd",function(e,t){return t.weekdaysMinRegex(e)}),m("ddd",function(e,t){return t.weekdaysShortRegex(e)}),m("dddd",function(e,t){return t.weekdaysRegex(e)}),yt(["dd","ddd","dddd"],function(e,t,s,r){var i=s._locale.weekdaysParse(e,r,s._strict);i!=null?t.d=i:y(s).invalidWeekday=e}),yt(["d","e","E"],function(e,t,s,r){t[r]=k(e)});function Jn(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Kn(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Vs(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Qn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ea=gt,ta=gt,sa=gt;function ra(e,t){var s=pe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Vs(s,this._week.dow):e?s[e.day()]:s}function ia(e){return e===!0?Vs(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function na(e){return e===!0?Vs(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function aa(e,t,s){var r,i,n,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=Se([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(i=R.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=R.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=R.call(this._weekdaysParse,a),i!==-1||(i=R.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=R.call(this._shortWeekdaysParse,a),i!==-1||(i=R.call(this._weekdaysParse,a),i!==-1)?i:(i=R.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=R.call(this._minWeekdaysParse,a),i!==-1||(i=R.call(this._weekdaysParse,a),i!==-1)?i:(i=R.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function oa(e,t,s){var r,i,n;if(this._weekdaysParseExact)return aa.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Se([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function ua(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Jn(e,this.localeData()),this.add(e-t,"d")):t}function la(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function da(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Kn(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ca(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ls.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ha(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ls.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ta),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function fa(e){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ls.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=sa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ls(){function e(j,ae){return ae.length-j.length}var t=[],s=[],r=[],i=[],n,a,d,v,g;for(n=0;n<7;n++)a=Se([2e3,1]).day(n),d=ne(this.weekdaysMin(a,"")),v=ne(this.weekdaysShort(a,"")),g=ne(this.weekdays(a,"")),t.push(d),s.push(v),r.push(g),i.push(d),i.push(v),i.push(g);t.sort(e),s.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ws(){return this.hours()%12||12}function ma(){return this.hours()||24}p("H",["HH",2],0,"hour"),p("h",["hh",2],0,Ws),p("k",["kk",2],0,ma),p("hmm",0,0,function(){return""+Ws.apply(this)+Me(this.minutes(),2)}),p("hmmss",0,0,function(){return""+Ws.apply(this)+Me(this.minutes(),2)+Me(this.seconds(),2)}),p("Hmm",0,0,function(){return""+this.hours()+Me(this.minutes(),2)}),p("Hmmss",0,0,function(){return""+this.hours()+Me(this.minutes(),2)+Me(this.seconds(),2)});function Fr(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Fr("a",!0),Fr("A",!1),z("hour","h"),Z("hour",13);function Cr(e,t){return t._meridiemParse}m("a",Cr),m("A",Cr),m("H",N),m("h",N),m("k",N),m("HH",N,ie),m("hh",N,ie),m("kk",N,ie),m("hmm",Mr),m("hmmss",br),m("Hmm",Mr),m("Hmmss",br),I(["H","HH"],H),I(["k","kk"],function(e,t,s){var r=k(e);t[H]=r===24?0:r}),I(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),I(["h","hh"],function(e,t,s){t[H]=k(e),y(s).bigHour=!0}),I("hmm",function(e,t,s){var r=e.length-2;t[H]=k(e.substr(0,r)),t[ve]=k(e.substr(r)),y(s).bigHour=!0}),I("hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[H]=k(e.substr(0,r)),t[ve]=k(e.substr(r,2)),t[Pe]=k(e.substr(i)),y(s).bigHour=!0}),I("Hmm",function(e,t,s){var r=e.length-2;t[H]=k(e.substr(0,r)),t[ve]=k(e.substr(r))}),I("Hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[H]=k(e.substr(0,r)),t[ve]=k(e.substr(r,2)),t[Pe]=k(e.substr(i))});function pa(e){return(e+"").toLowerCase().charAt(0)==="p"}var _a=/[ap]\.?m?\.?/i,va=rt("Hours",!0);function ga(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Vr={calendar:on,longDateFormat:cn,invalidDate:fn,ordinal:pn,dayOfMonthOrdinalParse:_n,relativeTime:gn,months:An,monthsShort:Tr,week:Gn,weekdays:Qn,weekdaysMin:Xn,weekdaysShort:Nr,meridiemParse:_a},C={},kt={},Mt;function ya(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Lr(e){return e&&e.toLowerCase().replace("_","-")}function wa(e){for(var t=0,s,r,i,n;t<e.length;){for(n=Lr(e[t]).split("-"),s=n.length,r=Lr(e[t+1]),r=r?r.split("-"):null;s>0;){if(i=Kt(n.slice(0,s).join("-")),i)return i;if(r&&r.length>=s&&ya(n,r)>=s-1)break;s--}t++}return Mt}function Kt(e){var t=null,s;if(C[e]===void 0&&typeof module!="undefined"&&module&&module.exports)try{t=Mt._abbr,s=require,s("./locale/"+e),Ue(t)}catch{C[e]=null}return C[e]}function Ue(e,t){var s;return e&&(X(t)?s=Ae(e):s=Rs(e,t),s?Mt=s:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Mt._abbr}function Rs(e,t){if(t!==null){var s,r=Vr;if(t.abbr=e,C[e]!=null)gr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=C[e]._config;else if(t.parentLocale!=null)if(C[t.parentLocale]!=null)r=C[t.parentLocale]._config;else if(s=Kt(t.parentLocale),s!=null)r=s._config;else return kt[t.parentLocale]||(kt[t.parentLocale]=[]),kt[t.parentLocale].push({name:e,config:t}),null;return C[e]=new Os(xs(r,t)),kt[e]&&kt[e].forEach(function(i){Rs(i.name,i.config)}),Ue(e),C[e]}else return delete C[e],null}function Da(e,t){if(t!=null){var s,r,i=Vr;C[e]!=null&&C[e].parentLocale!=null?C[e].set(xs(C[e]._config,t)):(r=Kt(e),r!=null&&(i=r._config),t=xs(i,t),r==null&&(t.abbr=e),s=new Os(t),s.parentLocale=C[e],C[e]=s),Ue(e)}else C[e]!=null&&(C[e].parentLocale!=null?(C[e]=C[e].parentLocale,e===Ue()&&Ue(e)):C[e]!=null&&delete C[e]);return C[e]}function Ae(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mt;if(!pe(e)){if(t=Kt(e),t)return t;e=[e]}return wa(e)}function Sa(){return Ys(C)}function Es(e){var t,s=e._a;return s&&y(e).overflow===-2&&(t=s[Ye]<0||s[Ye]>11?Ye:s[be]<1||s[be]>qt(s[B],s[Ye])?be:s[H]<0||s[H]>24||s[H]===24&&(s[ve]!==0||s[Pe]!==0||s[qe]!==0)?H:s[ve]<0||s[ve]>59?ve:s[Pe]<0||s[Pe]>59?Pe:s[qe]<0||s[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<B||t>be)&&(t=be),y(e)._overflowWeeks&&t===-1&&(t=Yn),y(e)._overflowWeekday&&t===-1&&(t=Pn),y(e).overflow=t),e}var ka=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ma=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ba=/Z|[+-]\d\d(?::?\d\d)?/,Qt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Us=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ta=/^\/?Date\((-?\d+)/i,xa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Oa={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wr(e){var t,s,r=e._i,i=ka.exec(r)||Ma.exec(r),n,a,d,v;if(i){for(y(e).iso=!0,t=0,s=Qt.length;t<s;t++)if(Qt[t][1].exec(i[1])){a=Qt[t][0],n=Qt[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,s=Us.length;t<s;t++)if(Us[t][1].exec(i[3])){d=(i[2]||" ")+Us[t][0];break}if(d==null){e._isValid=!1;return}}if(!n&&d!=null){e._isValid=!1;return}if(i[4])if(ba.exec(i[4]))v="Z";else{e._isValid=!1;return}e._f=a+(d||"")+(v||""),js(e)}else e._isValid=!1}function Ya(e,t,s,r,i,n){var a=[Pa(e),Tr.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(i,10)];return n&&a.push(parseInt(n,10)),a}function Pa(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ia(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Aa(e,t,s){if(e){var r=Nr.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return y(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Na(e,t,s){if(e)return Oa[e];if(t)return 0;var r=parseInt(s,10),i=r%100,n=(r-i)/100;return n*60+i}function Rr(e){var t=xa.exec(Ia(e._i)),s;if(t){if(s=Ya(t[4],t[3],t[2],t[5],t[6],t[7]),!Aa(t[1],s,e))return;e._a=s,e._tzm=Na(t[8],t[9],t[10]),e._d=Dt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Fa(e){var t=Ta.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Wr(e),e._isValid===!1)delete e._isValid;else return;if(Rr(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:c.createFromInputFallback(e)}c.createFromInputFallback=ue("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function nt(e,t,s){return e!=null?e:t!=null?t:s}function Ca(e){var t=new Date(c.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Hs(e){var t,s,r=[],i,n,a;if(!e._d){for(i=Ca(e),e._w&&e._a[be]==null&&e._a[Ye]==null&&Va(e),e._dayOfYear!=null&&(a=nt(e._a[B],i[B]),(e._dayOfYear>wt(a)||e._dayOfYear===0)&&(y(e)._overflowDayOfYear=!0),s=Dt(a,0,e._dayOfYear),e._a[Ye]=s.getUTCMonth(),e._a[be]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[H]===24&&e._a[ve]===0&&e._a[Pe]===0&&e._a[qe]===0&&(e._nextDay=!0,e._a[H]=0),e._d=(e._useUTC?Dt:jn).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[H]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==n&&(y(e).weekdayMismatch=!0)}}function Va(e){var t,s,r,i,n,a,d,v,g;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,a=4,s=nt(t.GG,e._a[B],St(F(),1,4).year),r=nt(t.W,1),i=nt(t.E,1),(i<1||i>7)&&(v=!0)):(n=e._locale._week.dow,a=e._locale._week.doy,g=St(F(),n,a),s=nt(t.gg,e._a[B],g.year),r=nt(t.w,g.week),t.d!=null?(i=t.d,(i<0||i>6)&&(v=!0)):t.e!=null?(i=t.e+n,(t.e<0||t.e>6)&&(v=!0)):i=n),r<1||r>Ie(s,n,a)?y(e)._overflowWeeks=!0:v!=null?y(e)._overflowWeekday=!0:(d=Ar(s,r,i,n,a),e._a[B]=d.year,e._dayOfYear=d.dayOfYear)}c.ISO_8601=function(){},c.RFC_2822=function(){};function js(e){if(e._f===c.ISO_8601){Wr(e);return}if(e._f===c.RFC_2822){Rr(e);return}e._a=[],y(e).empty=!0;var t=""+e._i,s,r,i,n,a,d=t.length,v=0,g;for(i=yr(e._f,e._locale).match(Ps)||[],s=0;s<i.length;s++)n=i[s],r=(t.match(Tn(n,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&y(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),v+=r.length),st[n]?(r?y(e).empty=!1:y(e).unusedTokens.push(n),On(n,r,e)):e._strict&&!r&&y(e).unusedTokens.push(n);y(e).charsLeftOver=d-v,t.length>0&&y(e).unusedInput.push(t),e._a[H]<=12&&y(e).bigHour===!0&&e._a[H]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[H]=La(e._locale,e._a[H],e._meridiem),g=y(e).era,g!==null&&(e._a[B]=e._locale.erasConvertYear(g,e._a[B])),Hs(e),Es(e)}function La(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Wa(e){var t,s,r,i,n,a,d=!1;if(e._f.length===0){y(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<e._f.length;i++)n=0,a=!1,t=Ts({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],js(t),ks(t)&&(a=!0),n+=y(t).charsLeftOver,n+=y(t).unusedTokens.length*10,y(t).score=n,d?n<r&&(r=n,s=t):(r==null||n<r||a)&&(r=n,s=t,a&&(d=!0));Ee(e,s||t)}function Ra(e){if(!e._d){var t=As(e._i),s=t.day===void 0?t.date:t.day;e._a=pr([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Hs(e)}}function Ea(e){var t=new _t(Es(Er(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Er(e){var t=e._i,s=e._f;return e._locale=e._locale||Ae(e._l),t===null||s===void 0&&t===""?Wt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),_e(t)?new _t(Es(t)):(pt(t)?e._d=t:pe(s)?Wa(e):s?js(e):Ua(e),ks(e)||(e._d=null),e))}function Ua(e){var t=e._i;X(t)?e._d=new Date(c.now()):pt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Fa(e):pe(t)?(e._a=pr(t.slice(0),function(s){return parseInt(s,10)}),Hs(e)):Be(t)?Ra(e):Oe(t)?e._d=new Date(t):c.createFromInputFallback(e)}function Ur(e,t,s,r,i){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(Be(e)&&Ds(e)||pe(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=i,n._l=s,n._i=e,n._f=t,n._strict=r,Ea(n)}function F(e,t,s,r){return Ur(e,t,s,r,!1)}var Ha=ue("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Wt()}),ja=ue("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=F.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Wt()});function Hr(e,t){var s,r;if(t.length===1&&pe(t[0])&&(t=t[0]),!t.length)return F();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function $a(){var e=[].slice.call(arguments,0);return Hr("isBefore",e)}function Ga(){var e=[].slice.call(arguments,0);return Hr("isAfter",e)}var za=function(){return Date.now?Date.now():+new Date},bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Za(e){var t,s=!1,r;for(t in e)if(x(e,t)&&!(R.call(bt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<bt.length;++r)if(e[bt[r]]){if(s)return!1;parseFloat(e[bt[r]])!==k(e[bt[r]])&&(s=!0)}return!0}function Ba(){return this._isValid}function qa(){return ge(NaN)}function Xt(e){var t=As(e),s=t.year||0,r=t.quarter||0,i=t.month||0,n=t.week||t.isoWeek||0,a=t.day||0,d=t.hour||0,v=t.minute||0,g=t.second||0,j=t.millisecond||0;this._isValid=Za(t),this._milliseconds=+j+g*1e3+v*6e4+d*1e3*60*60,this._days=+a+n*7,this._months=+i+r*3+s*12,this._data={},this._locale=Ae(),this._bubble()}function es(e){return e instanceof Xt}function $s(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ja(e,t,s){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),n=0,a;for(a=0;a<r;a++)(s&&e[a]!==t[a]||!s&&k(e[a])!==k(t[a]))&&n++;return n+i}function jr(e,t){p(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+Me(~~(s/60),2)+t+Me(~~s%60,2)})}jr("Z",":"),jr("ZZ",""),m("Z",Zt),m("ZZ",Zt),I(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=Gs(Zt,e)});var Ka=/([\+\-]|\d\d)/gi;function Gs(e,t){var s=(t||"").match(e),r,i,n;return s===null?null:(r=s[s.length-1]||[],i=(r+"").match(Ka)||["-",0,0],n=+(i[1]*60)+k(i[2]),n===0?0:i[0]==="+"?n:-n)}function zs(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(_e(e)||pt(e)?e.valueOf():F(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),c.updateOffset(s,!1),s):F(e).local()}function Zs(e){return-Math.round(e._d.getTimezoneOffset())}c.updateOffset=function(){};function Qa(e,t,s){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Gs(Zt,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(i=Zs(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Zr(this,ge(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Zs(this)}function Xa(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function eo(e){return this.utcOffset(0,e)}function to(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Zs(this),"m")),this}function so(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Gs(Mn,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ro(e){return this.isValid()?(e=e?F(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function io(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function no(){if(!X(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Ts(e,this),e=Er(e),e._a?(t=e._isUTC?Se(e._a):F(e._a),this._isDSTShifted=this.isValid()&&Ja(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ao(){return this.isValid()?!this._isUTC:!1}function oo(){return this.isValid()?this._isUTC:!1}function $r(){return this.isValid()?this._isUTC&&this._offset===0:!1}var uo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,lo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ge(e,t){var s=e,r=null,i,n,a;return es(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:Oe(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=uo.exec(e))?(i=r[1]==="-"?-1:1,s={y:0,d:k(r[be])*i,h:k(r[H])*i,m:k(r[ve])*i,s:k(r[Pe])*i,ms:k($s(r[qe]*1e3))*i}):(r=lo.exec(e))?(i=r[1]==="-"?-1:1,s={y:Je(r[2],i),M:Je(r[3],i),w:Je(r[4],i),d:Je(r[5],i),h:Je(r[6],i),m:Je(r[7],i),s:Je(r[8],i)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(a=co(F(s.from),F(s.to)),s={},s.ms=a.milliseconds,s.M=a.months),n=new Xt(s),es(e)&&x(e,"_locale")&&(n._locale=e._locale),es(e)&&x(e,"_isValid")&&(n._isValid=e._isValid),n}ge.fn=Xt.prototype,ge.invalid=qa;function Je(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Gr(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function co(e,t){var s;return e.isValid()&&t.isValid()?(t=zs(t,e),e.isBefore(t)?s=Gr(e,t):(s=Gr(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function zr(e,t){return function(s,r){var i,n;return r!==null&&!isNaN(+r)&&(gr(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),i=ge(s,r),Zr(this,i,e),this}}function Zr(e,t,s,r){var i=t._milliseconds,n=$s(t._days),a=$s(t._months);!e.isValid()||(r=r==null?!0:r,a&&Or(e,Ht(e,"Month")+a*s),n&&Dr(e,"Date",Ht(e,"Date")+n*s),i&&e._d.setTime(e._d.valueOf()+i*s),r&&c.updateOffset(e,n||a))}var ho=zr(1,"add"),fo=zr(-1,"subtract");function Br(e){return typeof e=="string"||e instanceof String}function mo(e){return _e(e)||pt(e)||Br(e)||Oe(e)||_o(e)||po(e)||e===null||e===void 0}function po(e){var t=Be(e)&&!Ds(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,n;for(i=0;i<r.length;i+=1)n=r[i],s=s||x(e,n);return t&&s}function _o(e){var t=pe(e),s=!1;return t&&(s=e.filter(function(r){return!Oe(r)&&Br(e)}).length===0),t&&s}function vo(e){var t=Be(e)&&!Ds(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,n;for(i=0;i<r.length;i+=1)n=r[i],s=s||x(e,n);return t&&s}function go(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function yo(e,t){arguments.length===1&&(arguments[0]?mo(arguments[0])?(e=arguments[0],t=void 0):vo(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||F(),r=zs(s,this).startOf("day"),i=c.calendarFormat(this,r)||"sameElse",n=t&&(ke(t[i])?t[i].call(this,s):t[i]);return this.format(n||this.localeData().calendar(i,this,F(s)))}function wo(){return new _t(this)}function Do(e,t){var s=_e(e)?e:F(e);return this.isValid()&&s.isValid()?(t=le(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function So(e,t){var s=_e(e)?e:F(e);return this.isValid()&&s.isValid()?(t=le(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function ko(e,t,s,r){var i=_e(e)?e:F(e),n=_e(t)?t:F(t);return this.isValid()&&i.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,s):!this.isBefore(i,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function Mo(e,t){var s=_e(e)?e:F(e),r;return this.isValid()&&s.isValid()?(t=le(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function bo(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function To(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function xo(e,t,s){var r,i,n;if(!this.isValid())return NaN;if(r=zs(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=le(t),t){case"year":n=ts(this,r)/12;break;case"month":n=ts(this,r);break;case"quarter":n=ts(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-i)/864e5;break;case"week":n=(this-r-i)/6048e5;break;default:n=this-r}return s?n:de(n)}function ts(e,t){if(e.date()<t.date())return-ts(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),i,n;return t-r<0?(i=e.clone().add(s-1,"months"),n=(t-r)/(r-i)):(i=e.clone().add(s+1,"months"),n=(t-r)/(i-r)),-(s+n)||0}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Oo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Yo(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Et(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ke(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Et(s,"Z")):Et(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Po(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,i,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+i+n)}function Io(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=Et(this,e);return this.localeData().postformat(t)}function Ao(e,t){return this.isValid()&&(_e(e)&&e.isValid()||F(e).isValid())?ge({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function No(e){return this.from(F(),e)}function Fo(e,t){return this.isValid()&&(_e(e)&&e.isValid()||F(e).isValid())?ge({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Co(e){return this.to(F(),e)}function qr(e){var t;return e===void 0?this._locale._abbr:(t=Ae(e),t!=null&&(this._locale=t),this)}var Jr=ue("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Kr(){return this._locale}var ss=1e3,at=60*ss,rs=60*at,Qr=(365*400+97)*24*rs;function ot(e,t){return(e%t+t)%t}function Xr(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Qr:new Date(e,t,s).valueOf()}function ei(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Qr:Date.UTC(e,t,s)}function Vo(e){var t,s;if(e=le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ei:Xr,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ot(t+(this._isUTC?0:this.utcOffset()*at),rs);break;case"minute":t=this._d.valueOf(),t-=ot(t,at);break;case"second":t=this._d.valueOf(),t-=ot(t,ss);break}return this._d.setTime(t),c.updateOffset(this,!0),this}function Lo(e){var t,s;if(e=le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?ei:Xr,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=rs-ot(t+(this._isUTC?0:this.utcOffset()*at),rs)-1;break;case"minute":t=this._d.valueOf(),t+=at-ot(t,at)-1;break;case"second":t=this._d.valueOf(),t+=ss-ot(t,ss)-1;break}return this._d.setTime(t),c.updateOffset(this,!0),this}function Wo(){return this._d.valueOf()-(this._offset||0)*6e4}function Ro(){return Math.floor(this.valueOf()/1e3)}function Eo(){return new Date(this.valueOf())}function Uo(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ho(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function jo(){return this.isValid()?this.toISOString():null}function $o(){return ks(this)}function Go(){return Ee({},y(this))}function zo(){return y(this).overflow}function Zo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr"),p("NN",0,0,"eraAbbr"),p("NNN",0,0,"eraAbbr"),p("NNNN",0,0,"eraName"),p("NNNNN",0,0,"eraNarrow"),p("y",["y",1],"yo","eraYear"),p("y",["yy",2],0,"eraYear"),p("y",["yyy",3],0,"eraYear"),p("y",["yyyy",4],0,"eraYear"),m("N",Bs),m("NN",Bs),m("NNN",Bs),m("NNNN",iu),m("NNNNN",nu),I(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var i=s._locale.erasParse(e,r,s._strict);i?y(s).era=i:y(s).invalidEra=e}),m("y",it),m("yy",it),m("yyy",it),m("yyyy",it),m("yo",au),I(["y","yy","yyy","yyyy"],B),I(["yo"],function(e,t,s,r){var i;s._locale._eraYearOrdinalRegex&&(i=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[B]=s._locale.eraYearOrdinalParse(e,i):t[B]=parseInt(e,10)});function Bo(e,t){var s,r,i,n=this._eras||Ae("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":i=c(n[s].since).startOf("day"),n[s].since=i.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":i=c(n[s].until).startOf("day").valueOf(),n[s].until=i.valueOf();break}}return n}function qo(e,t,s){var r,i,n=this.eras(),a,d,v;for(e=e.toUpperCase(),r=0,i=n.length;r<i;++r)if(a=n[r].name.toUpperCase(),d=n[r].abbr.toUpperCase(),v=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(d===e)return n[r];break;case"NNNN":if(a===e)return n[r];break;case"NNNNN":if(v===e)return n[r];break}else if([a,d,v].indexOf(e)>=0)return n[r]}function Jo(e,t){var s=e.since<=e.until?1:-1;return t===void 0?c(e.since).year():c(e.since).year()+(t-e.offset)*s}function Ko(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Qo(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Xo(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function eu(){var e,t,s,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(s=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-c(i[e].since).year())*s+i[e].offset;return this.year()}function tu(e){return x(this,"_erasNameRegex")||qs.call(this),e?this._erasNameRegex:this._erasRegex}function su(e){return x(this,"_erasAbbrRegex")||qs.call(this),e?this._erasAbbrRegex:this._erasRegex}function ru(e){return x(this,"_erasNarrowRegex")||qs.call(this),e?this._erasNarrowRegex:this._erasRegex}function Bs(e,t){return t.erasAbbrRegex(e)}function iu(e,t){return t.erasNameRegex(e)}function nu(e,t){return t.erasNarrowRegex(e)}function au(e,t){return t._eraYearOrdinalRegex||it}function qs(){var e=[],t=[],s=[],r=[],i,n,a=this.eras();for(i=0,n=a.length;i<n;++i)t.push(ne(a[i].name)),e.push(ne(a[i].abbr)),s.push(ne(a[i].narrow)),r.push(ne(a[i].name)),r.push(ne(a[i].abbr)),r.push(ne(a[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100}),p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function is(e,t){p(0,[e,e.length],0,t)}is("gggg","weekYear"),is("ggggg","weekYear"),is("GGGG","isoWeekYear"),is("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),Z("weekYear",1),Z("isoWeekYear",1),m("G",zt),m("g",zt),m("GG",N,ie),m("gg",N,ie),m("GGGG",Fs,Ns),m("gggg",Fs,Ns),m("GGGGG",Gt,jt),m("ggggg",Gt,jt),yt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=k(e)}),yt(["gg","GG"],function(e,t,s,r){t[r]=c.parseTwoDigitYear(e)});function ou(e){return ti.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function uu(e){return ti.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function lu(){return Ie(this.year(),1,4)}function du(){return Ie(this.isoWeekYear(),1,4)}function cu(){var e=this.localeData()._week;return Ie(this.year(),e.dow,e.doy)}function hu(){var e=this.localeData()._week;return Ie(this.weekYear(),e.dow,e.doy)}function ti(e,t,s,r,i){var n;return e==null?St(this,r,i).year:(n=Ie(e,r,i),t>n&&(t=n),fu.call(this,e,t,s,r,i))}function fu(e,t,s,r,i){var n=Ar(e,t,s,r,i),a=Dt(n.year,0,n.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}p("Q",0,"Qo","quarter"),z("quarter","Q"),Z("quarter",7),m("Q",Sr),I("Q",function(e,t){t[Ye]=(k(e)-1)*3});function mu(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date"),z("date","D"),Z("date",9),m("D",N),m("DD",N,ie),m("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),I(["D","DD"],be),I("Do",function(e,t){t[be]=k(e.match(N)[0])});var si=rt("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),Z("dayOfYear",4),m("DDD",$t),m("DDDD",kr),I(["DDD","DDDD"],function(e,t,s){s._dayOfYear=k(e)});function pu(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute"),z("minute","m"),Z("minute",14),m("m",N),m("mm",N,ie),I(["m","mm"],ve);var _u=rt("Minutes",!1);p("s",["ss",2],0,"second"),z("second","s"),Z("second",15),m("s",N),m("ss",N,ie),I(["s","ss"],Pe);var vu=rt("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)}),p(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),p(0,["SSS",3],0,"millisecond"),p(0,["SSSS",4],0,function(){return this.millisecond()*10}),p(0,["SSSSS",5],0,function(){return this.millisecond()*100}),p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),z("millisecond","ms"),Z("millisecond",16),m("S",$t,Sr),m("SS",$t,ie),m("SSS",$t,kr);var He,ri;for(He="SSSS";He.length<=9;He+="S")m(He,it);function gu(e,t){t[qe]=k(("0."+e)*1e3)}for(He="S";He.length<=9;He+="S")I(He,gu);ri=rt("Milliseconds",!1),p("z",0,0,"zoneAbbr"),p("zz",0,0,"zoneName");function yu(){return this._isUTC?"UTC":""}function wu(){return this._isUTC?"Coordinated Universal Time":""}var h=_t.prototype;h.add=ho,h.calendar=yo,h.clone=wo,h.diff=xo,h.endOf=Lo,h.format=Io,h.from=Ao,h.fromNow=No,h.to=Fo,h.toNow=Co,h.get=Sn,h.invalidAt=zo,h.isAfter=Do,h.isBefore=So,h.isBetween=ko,h.isSame=Mo,h.isSameOrAfter=bo,h.isSameOrBefore=To,h.isValid=$o,h.lang=Jr,h.locale=qr,h.localeData=Kr,h.max=ja,h.min=Ha,h.parsingFlags=Go,h.set=kn,h.startOf=Vo,h.subtract=fo,h.toArray=Uo,h.toObject=Ho,h.toDate=Eo,h.toISOString=Yo,h.inspect=Po,typeof Symbol!="undefined"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),h.toJSON=jo,h.toString=Oo,h.unix=Ro,h.valueOf=Wo,h.creationData=Zo,h.eraName=Ko,h.eraNarrow=Qo,h.eraAbbr=Xo,h.eraYear=eu,h.year=Ir,h.isLeapYear=Hn,h.weekYear=ou,h.isoWeekYear=uu,h.quarter=h.quarters=mu,h.month=Yr,h.daysInMonth=Rn,h.week=h.weeks=Bn,h.isoWeek=h.isoWeeks=qn,h.weeksInYear=cu,h.weeksInWeekYear=hu,h.isoWeeksInYear=lu,h.isoWeeksInISOWeekYear=du,h.date=si,h.day=h.days=ua,h.weekday=la,h.isoWeekday=da,h.dayOfYear=pu,h.hour=h.hours=va,h.minute=h.minutes=_u,h.second=h.seconds=vu,h.millisecond=h.milliseconds=ri,h.utcOffset=Qa,h.utc=eo,h.local=to,h.parseZone=so,h.hasAlignedHourOffset=ro,h.isDST=io,h.isLocal=ao,h.isUtcOffset=oo,h.isUtc=$r,h.isUTC=$r,h.zoneAbbr=yu,h.zoneName=wu,h.dates=ue("dates accessor is deprecated. Use date instead.",si),h.months=ue("months accessor is deprecated. Use month instead",Yr),h.years=ue("years accessor is deprecated. Use year instead",Ir),h.zone=ue("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xa),h.isDSTShifted=ue("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",no);function Du(e){return F(e*1e3)}function Su(){return F.apply(null,arguments).parseZone()}function ii(e){return e}var O=Os.prototype;O.calendar=un,O.longDateFormat=hn,O.invalidDate=mn,O.ordinal=vn,O.preparse=ii,O.postformat=ii,O.relativeTime=yn,O.pastFuture=wn,O.set=an,O.eras=Bo,O.erasParse=qo,O.erasConvertYear=Jo,O.erasAbbrRegex=su,O.erasNameRegex=tu,O.erasNarrowRegex=ru,O.months=Cn,O.monthsShort=Vn,O.monthsParse=Wn,O.monthsRegex=Un,O.monthsShortRegex=En,O.week=$n,O.firstDayOfYear=Zn,O.firstDayOfWeek=zn,O.weekdays=ra,O.weekdaysMin=na,O.weekdaysShort=ia,O.weekdaysParse=oa,O.weekdaysRegex=ca,O.weekdaysShortRegex=ha,O.weekdaysMinRegex=fa,O.isPM=pa,O.meridiem=ga;function ns(e,t,s,r){var i=Ae(),n=Se().set(r,t);return i[s](n,e)}function ni(e,t,s){if(Oe(e)&&(t=e,e=void 0),e=e||"",t!=null)return ns(e,t,s,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ns(e,r,s,"month");return i}function Js(e,t,s,r){typeof e=="boolean"?(Oe(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,Oe(t)&&(s=t,t=void 0),t=t||"");var i=Ae(),n=e?i._week.dow:0,a,d=[];if(s!=null)return ns(t,(s+n)%7,r,"day");for(a=0;a<7;a++)d[a]=ns(t,(a+n)%7,r,"day");return d}function ku(e,t){return ni(e,t,"months")}function Mu(e,t){return ni(e,t,"monthsShort")}function bu(e,t,s){return Js(e,t,s,"weekdays")}function Tu(e,t,s){return Js(e,t,s,"weekdaysShort")}function xu(e,t,s){return Js(e,t,s,"weekdaysMin")}Ue("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=k(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),c.lang=ue("moment.lang is deprecated. Use moment.locale instead.",Ue),c.langData=ue("moment.langData is deprecated. Use moment.localeData instead.",Ae);var Ne=Math.abs;function Ou(){var e=this._data;return this._milliseconds=Ne(this._milliseconds),this._days=Ne(this._days),this._months=Ne(this._months),e.milliseconds=Ne(e.milliseconds),e.seconds=Ne(e.seconds),e.minutes=Ne(e.minutes),e.hours=Ne(e.hours),e.months=Ne(e.months),e.years=Ne(e.years),this}function ai(e,t,s,r){var i=ge(t,s);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Yu(e,t){return ai(this,e,t,1)}function Pu(e,t){return ai(this,e,t,-1)}function oi(e){return e<0?Math.floor(e):Math.ceil(e)}function Iu(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,i,n,a,d,v;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=oi(Ks(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,i=de(e/1e3),r.seconds=i%60,n=de(i/60),r.minutes=n%60,a=de(n/60),r.hours=a%24,t+=de(a/24),v=de(ui(t)),s+=v,t-=oi(Ks(v)),d=de(s/12),s%=12,r.days=t,r.months=s,r.years=d,this}function ui(e){return e*4800/146097}function Ks(e){return e*146097/4800}function Au(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=le(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+ui(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ks(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Nu(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+k(this._months/12)*31536e6:NaN}function Fe(e){return function(){return this.as(e)}}var Fu=Fe("ms"),Cu=Fe("s"),Vu=Fe("m"),Lu=Fe("h"),Wu=Fe("d"),Ru=Fe("w"),Eu=Fe("M"),Uu=Fe("Q"),Hu=Fe("y");function ju(){return ge(this)}function $u(e){return e=le(e),this.isValid()?this[e+"s"]():NaN}function Ke(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gu=Ke("milliseconds"),zu=Ke("seconds"),Zu=Ke("minutes"),Bu=Ke("hours"),qu=Ke("days"),Ju=Ke("months"),Ku=Ke("years");function Qu(){return de(this.days()/7)}var Ce=Math.round,ut={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xu(e,t,s,r,i){return i.relativeTime(t||1,!!s,e,r)}function el(e,t,s,r){var i=ge(e).abs(),n=Ce(i.as("s")),a=Ce(i.as("m")),d=Ce(i.as("h")),v=Ce(i.as("d")),g=Ce(i.as("M")),j=Ce(i.as("w")),ae=Ce(i.as("y")),ee=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||a<=1&&["m"]||a<s.m&&["mm",a]||d<=1&&["h"]||d<s.h&&["hh",d]||v<=1&&["d"]||v<s.d&&["dd",v];return s.w!=null&&(ee=ee||j<=1&&["w"]||j<s.w&&["ww",j]),ee=ee||g<=1&&["M"]||g<s.M&&["MM",g]||ae<=1&&["y"]||["yy",ae],ee[2]=t,ee[3]=+e>0,ee[4]=r,Xu.apply(null,ee)}function tl(e){return e===void 0?Ce:typeof e=="function"?(Ce=e,!0):!1}function sl(e,t){return ut[e]===void 0?!1:t===void 0?ut[e]:(ut[e]=t,e==="s"&&(ut.ss=t-1),!0)}function rl(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ut,i,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ut,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),n=el(this,!s,r,i),s&&(n=i.pastFuture(+this,n)),i.postformat(n)}var Qs=Math.abs;function lt(e){return(e>0)-(e<0)||+e}function as(){if(!this.isValid())return this.localeData().invalidDate();var e=Qs(this._milliseconds)/1e3,t=Qs(this._days),s=Qs(this._months),r,i,n,a,d=this.asSeconds(),v,g,j,ae;return d?(r=de(e/60),i=de(r/60),e%=60,r%=60,n=de(s/12),s%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",v=d<0?"-":"",g=lt(this._months)!==lt(d)?"-":"",j=lt(this._days)!==lt(d)?"-":"",ae=lt(this._milliseconds)!==lt(d)?"-":"",v+"P"+(n?g+n+"Y":"")+(s?g+s+"M":"")+(t?j+t+"D":"")+(i||r||e?"T":"")+(i?ae+i+"H":"")+(r?ae+r+"M":"")+(e?ae+a+"S":"")):"P0D"}var b=Xt.prototype;b.isValid=Ba,b.abs=Ou,b.add=Yu,b.subtract=Pu,b.as=Au,b.asMilliseconds=Fu,b.asSeconds=Cu,b.asMinutes=Vu,b.asHours=Lu,b.asDays=Wu,b.asWeeks=Ru,b.asMonths=Eu,b.asQuarters=Uu,b.asYears=Hu,b.valueOf=Nu,b._bubble=Iu,b.clone=ju,b.get=$u,b.milliseconds=Gu,b.seconds=zu,b.minutes=Zu,b.hours=Bu,b.days=qu,b.weeks=Qu,b.months=Ju,b.years=Ku,b.humanize=rl,b.toISOString=as,b.toString=as,b.toJSON=as,b.locale=qr,b.localeData=Kr,b.toIsoString=ue("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",as),b.lang=Jr,p("X",0,0,"unix"),p("x",0,0,"valueOf"),m("x",zt),m("X",bn),I("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),I("x",function(e,t,s){s._d=new Date(k(e))});//! moment.js
c.version="2.29.1",rn(F),c.fn=h,c.min=$a,c.max=Ga,c.now=za,c.utc=Se,c.unix=Du,c.months=ku,c.isDate=pt,c.locale=Ue,c.invalid=Wt,c.duration=ge,c.isMoment=_e,c.weekdays=bu,c.parseZone=Su,c.localeData=Ae,c.isDuration=es,c.monthsShort=Mu,c.weekdaysMin=xu,c.defineLocale=Rs,c.updateLocale=Da,c.locales=Sa,c.weekdaysShort=Tu,c.normalizeUnits=le,c.relativeTimeRounding=tl,c.relativeTimeThreshold=sl,c.calendarFormat=go,c.prototype=h,c.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var il=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},li={exports:{}};/*! Moment Duration Format v2.2.2
* https://github.com/jsmreese/moment-duration-format
* Date: 2018-02-16
*
* Duration format plugin function for the Moment.js library
* http://momentjs.com/
*
* Copyright 2018 John Madhavan-Reese
* Released under the MIT license
*/(function(e,t){(function(s,r){try{e.exports=r(require("moment"))}catch{e.exports=r}s&&(s.momentDurationFormatSetup=s.moment?r(s.moment):r)})(il,function(s){var r=!1,i=!1,n=!1,a=!1,d="escape years months weeks days hours minutes seconds milliseconds general".split(" "),v=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function g(l,o){return o.length>l.length?!1:l.indexOf(o)!==-1}function j(l){for(var o="";l;)o+="0",l-=1;return o}function ae(l){for(var o=l.split("").reverse(),f=0,w=!0;w&&f<o.length;)f?o[f]==="9"?o[f]="0":(o[f]=(parseInt(o[f],10)+1).toString(),w=!1):(parseInt(o[f],10)<5&&(w=!1),o[f]="0"),f+=1;return w&&o.push("1"),o.reverse().join("")}function ee(l,o){var f=ce(Pt(o).sort(),function(P){return P+":"+o[P]}).join(","),w=l+"+"+f;return ee.cache[w]||(ee.cache[w]=Intl.NumberFormat(l,o)),ee.cache[w]}ee.cache={};function Tt(l,o,f){var w=o.useToLocaleString,P=o.useGrouping,q=P&&o.grouping.slice(),A=o.maximumSignificantDigits,Qe=o.minimumIntegerDigits||1,he=o.fractionDigits||0,us=o.groupingSeparator,ls=o.decimalSeparator;if(w&&f){var Ve={minimumIntegerDigits:Qe,useGrouping:P};if(he&&(Ve.maximumFractionDigits=he,Ve.minimumFractionDigits=he),A&&l>0&&(Ve.maximumSignificantDigits=A),n){if(!a){var oe=Yt({},o);oe.useGrouping=!1,oe.decimalSeparator=".",l=parseFloat(Tt(l,oe),10)}return ee(f,Ve).format(l)}else{if(!i){var oe=Yt({},o);oe.useGrouping=!1,oe.decimalSeparator=".",l=parseFloat(Tt(l,oe),10)}return l.toLocaleString(f,Ve)}}var It;A?It=l.toPrecision(A+1):It=l.toFixed(he+1);var L,Y,te,fe=It.split("e");te=fe[1]||"",fe=fe[0].split("."),Y=fe[1]||"",L=fe[0]||"";var ye=L.length,At=Y.length,Le=ye+At,we=L+Y;(A&&Le===A+1||!A&&At===he+1)&&(we=ae(we),we.length===Le+1&&(ye=ye+1),At&&(we=we.slice(0,-1)),L=we.slice(0,ye),Y=we.slice(ye)),A&&(Y=Y.replace(/0*$/,""));var We=parseInt(te,10);We>0?Y.length<=We?(Y=Y+j(We-Y.length),L=L+Y,Y=""):(L=L+Y.slice(0,We),Y=Y.slice(We)):We<0&&(Y=j(Math.abs(We)-L.length)+L+Y,L="0"),A||(Y=Y.slice(0,he),Y.length<he&&(Y=Y+j(he-Y.length)),L.length<Qe&&(L=j(Qe-L.length)+L));var se="";if(P){fe=L;for(var Re;fe.length;)q.length&&(Re=q.shift()),se&&(se=us+se),se=fe.slice(-Re)+se,fe=fe.slice(0,-Re)}else se=L;return Y&&(se=se+ls+Y),se}function Zl(l,o){return l.label.length>o.label.length?-1:l.label.length<o.label.length?1:0}function Bl(l,o){var f=[];return G(Pt(o),function(w){if(w.slice(0,15)==="_durationLabels"){var P=w.slice(15).toLowerCase();G(Pt(o[w]),function(q){q.slice(0,1)===l&&f.push({type:P,key:q,label:o[w][q]})})}}),f}function ql(l,o,f){return o===1&&f===null?l:l+l}var xt={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:ql};function tr(l){return Object.prototype.toString.call(l)==="[object Array]"}function ci(l){return Object.prototype.toString.call(l)==="[object Object]"}function Jl(l,o){for(var f=l.length;f-=1;)if(o(l[f]))return l[f]}function J(l,o){var f=0,w=l&&l.length||0,P;for(typeof o!="function"&&(P=o,o=function(q){return q===P});f<w;){if(o(l[f]))return l[f];f+=1}}function G(l,o){var f=0,w=l.length;if(!(!l||!w))for(;f<w;){if(o(l[f],f)===!1)return;f+=1}}function ce(l,o){var f=0,w=l.length,P=[];if(!l||!w)return P;for(;f<w;)P[f]=o(l[f],f),f+=1;return P}function sr(l,o){return ce(l,function(f){return f[o]})}function Ot(l){var o=[];return G(l,function(f){f&&o.push(f)}),o}function rr(l){var o=[];return G(l,function(f){J(o,f)||o.push(f)}),o}function hi(l,o){var f=[];return G(l,function(w){G(o,function(P){w===P&&f.push(w)})}),rr(f)}function fi(l,o){var f=[];return G(l,function(w,P){if(!o(w))return f=l.slice(P),!1}),f}function Kl(l,o){var f=l.slice().reverse();return fi(f,o).reverse()}function Yt(l,o){for(var f in o)o.hasOwnProperty(f)&&(l[f]=o[f]);return l}function Pt(l){var o=[];for(var f in l)l.hasOwnProperty(f)&&o.push(f);return o}function os(l,o){var f=0,w=l.length;if(!l||!w)return!1;for(;f<w;){if(o(l[f],f)===!0)return!0;f+=1}return!1}function Ql(l){var o=[];return G(l,function(f){o=o.concat(f)}),o}function Xl(){var l=0;try{l.toLocaleString("i")}catch(o){return o.name==="RangeError"}return!1}function mi(l){return l(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})==="3.6"}function pi(l){var o=!0;return o=o&&l(1,"en",{minimumIntegerDigits:1})==="1",o=o&&l(1,"en",{minimumIntegerDigits:2})==="01",o=o&&l(1,"en",{minimumIntegerDigits:3})==="001",!(!o||(o=o&&l(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0})==="100",o=o&&l(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1})==="100.0",o=o&&l(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2})==="99.99",o=o&&l(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3})==="99.990",!o)||(o=o&&l(99.99,"en",{maximumSignificantDigits:1})==="100",o=o&&l(99.99,"en",{maximumSignificantDigits:2})==="100",o=o&&l(99.99,"en",{maximumSignificantDigits:3})==="100",o=o&&l(99.99,"en",{maximumSignificantDigits:4})==="99.99",o=o&&l(99.99,"en",{maximumSignificantDigits:5})==="99.99",!o)||(o=o&&l(1e3,"en",{useGrouping:!0})==="1,000",o=o&&l(1e3,"en",{useGrouping:!1})==="1000",!o))}function ed(){var l=[].slice.call(arguments),o={},f;if(G(l,function(A,Qe){if(!Qe){if(!tr(A))throw"Expected array as the first argument to durationsFormat.";f=A}if(typeof A=="string"||typeof A=="function"){o.template=A;return}if(typeof A=="number"){o.precision=A;return}ci(A)&&Yt(o,A)}),!f||!f.length)return[];o.returnMomentTypes=!0;var w=ce(f,function(A){return A.format(o)}),P=hi(d,rr(sr(Ql(w),"type"))),q=o.largest;return q&&(P=P.slice(0,q)),o.returnMomentTypes=!1,o.outputTypes=P,ce(f,function(A){return A.format(o)})}function td(){var l=[].slice.call(arguments),o=Yt({},this.format.defaults),f=this.asMilliseconds(),w=this.asMonths();typeof this.isValid=="function"&&this.isValid()===!1&&(f=0,w=0);var P=f<0,q=s.duration(Math.abs(f),"milliseconds"),A=s.duration(Math.abs(w),"months");G(l,function(u){if(typeof u=="string"||typeof u=="function"){o.template=u;return}if(typeof u=="number"){o.precision=u;return}ci(u)&&Yt(o,u)});var Qe={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},he={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};o.types=d;var us=function(u){return J(d,function(M){return he[M].test(u)})},ls=new RegExp(ce(d,function(u){return he[u].source}).join("|"),"g");o.duration=this;var Ve=typeof o.template=="function"?o.template.apply(o):o.template,oe=o.outputTypes,It=o.returnMomentTypes,L=o.largest,Y=[];oe||(tr(o.stopTrim)&&(o.stopTrim=o.stopTrim.join("")),o.stopTrim&&G(o.stopTrim.match(ls),function(u){var M=us(u);M==="escape"||M==="general"||Y.push(M)}));var te=s.localeData();te||(te={}),G(Pt(xt),function(u){if(typeof xt[u]=="function"){te[u]||(te[u]=xt[u]);return}te["_"+u]||(te["_"+u]=xt[u])}),G(Pt(te._durationTimeTemplates),function(u){Ve=Ve.replace("_"+u+"_",te._durationTimeTemplates[u])});var fe=o.userLocale||s.locale(),ye=o.useLeftUnits,At=o.usePlural,Le=o.precision,we=o.forceLength,We=o.useGrouping,se=o.trunc,Re=o.useSignificantDigits&&Le>0,je=Re?o.precision:0,rd=je,ds=o.minValue,dt=!1,cs=o.maxValue,Xe=!1,ir=o.useToLocaleString,id=o.groupingSeparator,nd=o.decimalSeparator,ad=o.grouping;ir=ir&&(r||n);var K=o.trim;tr(K)&&(K=K.join(" ")),K===null&&(L||cs||Re)&&(K="all"),(K===null||K===!0||K==="left"||K==="right")&&(K="large"),K===!1&&(K="");var hs=function(u){return u.test(K)},od=/large/,ud=/small/,yi=/both/,ld=/mid/,fs=/^all|[^sm]all/,dd=/final/,cd=L>0||os([od,yi,fs],hs),hd=os([ud,yi,fs],hs),fd=os([ld,fs],hs),md=os([dd,fs],hs),wi=ce(Ve.match(ls),function(u,M){var S=us(u);return u.slice(0,1)==="*"&&(u=u.slice(1),S!=="escape"&&S!=="general"&&Y.push(S)),{index:M,length:u.length,text:"",token:S==="escape"?u.replace(he.escape,"$1"):u,type:S==="escape"||S==="general"?null:S}}),Te={index:0,length:0,token:"",text:"",type:null},xe=[];ye&&wi.reverse(),G(wi,function(u){if(u.type){(Te.type||Te.text)&&xe.push(Te),Te=u;return}ye?Te.text=u.token+Te.text:Te.text+=u.token}),(Te.type||Te.text)&&xe.push(Te),ye&&xe.reverse();var D=hi(d,rr(Ot(sr(xe,"type"))));if(!D.length)return sr(xe,"text").join("");D=ce(D,function(u,M){var S=M+1===D.length,E=!M,$e;u==="years"||u==="months"?$e=A.as(u):$e=q.as(u);var Ge=Math.floor($e),_s=$e-Ge,ct=J(xe,function(re){return u===re.type});return E&&cs&&$e>cs&&(Xe=!0),S&&ds&&Math.abs(o.duration.as(u))<ds&&(dt=!0),E&&we===null&&ct.length>1&&(we=!0),q.subtract(Ge,u),A.subtract(Ge,u),{rawValue:$e,wholeValue:Ge,decimalValue:S?_s:0,isSmallest:S,isLargest:E,type:u,tokenLength:ct.length}});var Di=se?Math.floor:Math.round,ms=function(u,M){var S=Math.pow(10,M);return Di(u*S)/S},ps=!1,Nt=!1,Si=function(u,M){var S={useGrouping:We,groupingSeparator:id,decimalSeparator:nd,grouping:ad,useToLocaleString:ir};return Re&&(je<=0?(u.rawValue=0,u.wholeValue=0,u.decimalValue=0):(S.maximumSignificantDigits=je,u.significantDigits=je)),Xe&&!Nt&&(u.isLargest?(u.wholeValue=cs,u.decimalValue=0):(u.wholeValue=0,u.decimalValue=0)),dt&&!Nt&&(u.isSmallest?(u.wholeValue=ds,u.decimalValue=0):(u.wholeValue=0,u.decimalValue=0)),u.isSmallest||u.significantDigits&&u.significantDigits-u.wholeValue.toString().length<=0?Le<0?u.value=ms(u.wholeValue,Le):Le===0?u.value=Di(u.wholeValue+u.decimalValue):Re?(se?u.value=ms(u.rawValue,je-u.wholeValue.toString().length):u.value=u.rawValue,u.wholeValue&&(je-=u.wholeValue.toString().length)):(S.fractionDigits=Le,se?u.value=u.wholeValue+ms(u.decimalValue,Le):u.value=u.wholeValue+u.decimalValue):Re&&u.wholeValue?(u.value=Math.round(ms(u.wholeValue,u.significantDigits-u.wholeValue.toString().length)),je-=u.wholeValue.toString().length):u.value=u.wholeValue,u.tokenLength>1&&(we||ps)&&(S.minimumIntegerDigits=u.tokenLength,Nt&&S.maximumSignificantDigits<u.tokenLength&&delete S.maximumSignificantDigits),!ps&&(u.value>0||K===""||J(Y,u.type)||J(oe,u.type))&&(ps=!0),u.formattedValue=Tt(u.value,S,fe),S.useGrouping=!1,S.decimalSeparator=".",u.formattedValueEn=Tt(u.value,S,"en"),u.tokenLength===2&&u.type==="milliseconds"&&(u.formattedValueMS=Tt(u.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),u};if(D=ce(D,Si),D=Ot(D),D.length>1){var ki=function(u){return J(D,function(M){return M.type===u})},pd=function(u){var M=ki(u.type);!M||G(u.targets,function(S){var E=ki(S.type);!E||parseInt(M.formattedValueEn,10)===S.value&&(M.rawValue=0,M.wholeValue=0,M.decimalValue=0,E.rawValue+=1,E.wholeValue+=1,E.decimalValue=0,E.formattedValueEn=E.wholeValue.toString(),Nt=!0)})};G(v,pd)}return Nt&&(ps=!1,je=rd,D=ce(D,Si),D=Ot(D)),oe&&!(Xe&&!o.trim)?(D=ce(D,function(u){return J(oe,function(M){return u.type===M})?u:null}),D=Ot(D)):(cd&&(D=fi(D,function(u){return!u.isSmallest&&!u.wholeValue&&!J(Y,u.type)})),L&&D.length&&(D=D.slice(0,L)),hd&&D.length>1&&(D=Kl(D,function(u){return!u.wholeValue&&!J(Y,u.type)&&!u.isLargest})),fd&&(D=ce(D,function(u,M){return M>0&&M<D.length-1&&!u.wholeValue?null:u}),D=Ot(D)),md&&D.length===1&&!D[0].wholeValue&&!(!se&&D[0].isSmallest&&D[0].rawValue<ds)&&(D=[])),It?D:(G(xe,function(u){var M=Qe[u.type],S=J(D,function(re){return re.type===u.type});if(!(!M||!S)){var E=S.formattedValueEn.split(".");E[0]=parseInt(E[0],10),E[1]?E[1]=parseFloat("0."+E[1],10):E[1]=null;var $e=te.durationPluralKey(M,E[0],E[1]),Ge=Bl(M,te),_s=!1,ct={};G(te._durationLabelTypes,function(re){var vs=J(Ge,function(Mi){return Mi.type===re.type&&Mi.key===$e});vs&&(ct[vs.type]=vs.label,g(u.text,re.string)&&(u.text=u.text.replace(re.string,vs.label),_s=!0))}),At&&!_s&&(Ge.sort(Zl),G(Ge,function(re){if(ct[re.type]===re.label)return g(u.text,re.label)?!1:void 0;if(g(u.text,re.label))return u.text=u.text.replace(re.label,ct[re.type]),!1}))}}),xe=ce(xe,function(u){if(!u.type)return u.text;var M=J(D,function(E){return E.type===u.type});if(!M)return"";var S="";return ye&&(S+=u.text),(P&&Xe||!P&&dt)&&(S+="< ",Xe=!1,dt=!1),(P&&dt||!P&&Xe)&&(S+="> ",Xe=!1,dt=!1),P&&(M.value>0||K===""||J(Y,M.type)||J(oe,M.type))&&(S+="-",P=!1),u.type==="milliseconds"&&M.formattedValueMS?S+=M.formattedValueMS:S+=M.formattedValue,ye||(S+=u.text),S}),xe.join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function sd(){var l=this.duration,o=function(q){return l._data[q]},f=J(this.types,o),w=Jl(this.types,o);switch(f){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(f===w)return"d __";case"weeks":return f===w?"w __":(this.trim===null&&(this.trim="both"),"w __, d __, h __");case"months":if(f===w)return"M __";case"years":return f===w?"y __":(this.trim===null&&(this.trim="both"),"y __, M __, d __");default:return this.trim===null&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function _i(l){if(!l)throw"Moment Duration Format init cannot find moment instance.";l.duration.format=ed,l.duration.fn.format=td,l.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:sd,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},l.updateLocale("en",xt)}var vi=function(l,o,f){return l.toLocaleString(o,f)};r=Xl()&&pi(vi),i=r&&mi(vi);var gi=function(l,o,f){if(typeof window!="undefined"&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(o,f).format(l)};return n=pi(gi),a=n&&mi(gi),_i(s),_i})})(li);var Xs=li.exports;Xs(c);const nl={name:"DurationPickerChronometer",data:function(){return{store:W("store"),startId:!1,intervalId:null,startDuration:null,show:!0,timestamp:null,startTime:null}},mounted:function(){this.store.state.draft&&this.store.state.draft.startTime&&(this.startTime=this.store.state.draft.startTime,this.startTimer())},unmounted:function(){clearInterval(this.intervalId)},methods:{startTimer:function(){this.startId||(this.store.setPlaying(!0),this.show=!1,this.startTime||(this.startTime=c(),this.store.state.inputId&&this.store.saveDurationDraft(this.store.state.inputId,{startTime:this.startTime.toISOString()}).then(e=>{this.store.state.draft=e})),this.timestamp=this.store.getTimestamp(this.store.state.activeTimestamp),this.updateActiveTimestamp({startTime:this.startTime}),this.intervalId=setInterval(this.startChronometerInterval,1e3))},startChronometer:function(){const t=c().diff(this.startTime);this.updateActiveTimestamp({spentTime:c.duration(t).add(this.timestamp.spentTime)}),this.startId=requestAnimationFrame(this.startChronometer)},startChronometerInterval:function(){const t=c().diff(this.startTime),s=c.duration(t).add(this.timestamp.spentTime);this.updateActiveTimestamp({spentTime:s})},stopTimer:function(){this.store.state.inputId&&this.store.saveDurationDraft(this.store.state.inputId,{startTime:"",draftAmounts:this.getTotalAmounts()}).then(e=>{this.store.state.draft=e}),clearInterval(this.intervalId),this.startTime=null,this.startId=!1,this.show=!0,this.store.setPlaying(!1),this.updateActiveTimestamp({stopTime:c()})},getTotalAmounts:function(){const e=this.store.getTotalDuration();return this.store.__calcDuration(e)},resetTimer:function(){this.store.state.playing||confirm("Reset to initial state ?")&&(clearInterval(this.intervalId),this.startId=!1,this.show=!0,this.store.resetIntitialDuration(),this.store.state.inputId&&this.store.removeDurationDraft(this.store.state.inputId).then(e=>{this.store.state.draft=!1}))},addTimer:function(){this.store.state.playing||this.store.setTimestamp("add",{spentTime:c.duration(0)})},deleteTimestamp:function(){if(this.store.state.playing){confirm("Can't delete while playing...");return}if(this.store.state.playing||this.store.state.activeTimestamp===0){confirm("Can't delete first timestamp...");return}const e=this.store.getTimestamp(this.store.state.activeTimestamp);confirm(`Remove timestamp ${e.spentTime.format("h [hrs], m [min], s [sec]")}?`)&&this.store.setTimestamp("delete",e)},updateActiveTimestamp:function(e){this.store.setTimestamp("update",Ft(Ft({},this.store.getTimestamp(this.store.state.activeTimestamp)),e))},prevTimestamp:function(){this.store.setActiveTimestamp(this.store.state.activeTimestamp-1)},nextTimestamp:function(){this.store.setActiveTimestamp(this.store.state.activeTimestamp+1)}}},al={class:"dp-chronometer__container"},ol={class:"dp-chronometer__group"},ul=[_("i",{class:"fas fa-play"},null,-1)],ll=[_("i",{class:"fas fa-pause"},null,-1)],dl=[_("i",{class:"fas fa-undo-alt"},null,-1)];function cl(e,t,s,r,i,n){return T(),U("div",al,[_("div",ol,[e.show?(T(),U("span",{key:0,class:"dp-chronometer-btn unselectable",onClick:t[0]||(t[0]=(...a)=>n.startTimer&&n.startTimer(...a)),title:"start"},ul)):me("",!0),e.show?me("",!0):(T(),U("span",{key:1,class:"dp-chronometer-btn unselectable",onClick:t[1]||(t[1]=(...a)=>n.stopTimer&&n.stopTimer(...a)),title:"pause"},ll)),_("span",{class:"dp-chronometer-btn unselectable dp-danger",onClick:t[2]||(t[2]=(...a)=>n.resetTimer&&n.resetTimer(...a)),title:"reset"},dl)])])}var hl=tt(nl,[["render",cl]]);Xs(c);const fl={name:"DurationPickerHistory",data:function(){return{store:W("store")}},computed:{timestamps:function(){return this.store.state.timestamps}},methods:{formatTime:function(e){return c(e).format("MMM Do, HH:mm:ss")},formatDuration:function(e){return c.duration(e).format("h [hrs], m [min], s [sec]")},selectTimestamp:function(e){this.store.setActiveTimestamp(e)}}},ml={class:"dp-history--container"},pl={class:"table table-sm table-borderless"},_l=_("thead",{class:"thead-light"},[_("tr",null,[_("th",{scope:"col"},"#"),_("th",{scope:"col",style:{width:"68%"}},"Title, Description"),_("th",{scope:"col",style:{width:"25%"}},"Spent Time"),_("th",{scope:"col",style:{width:"8%"}})])],-1),vl=["onClick"],gl={scope:"row"},yl={style:{"font-weight":"500"}},wl={style:{color:"#495057"}},Dl={key:0},Sl=mt("Last start time: "),kl={class:"font-italic"},Ml={key:1},bl=mt("Last stop time: "),Tl={class:"font-italic"},xl={key:0},Ol=[_("i",{class:"far fa-clock fa-spin"},null,-1)];function Yl(e,t,s,r,i,n){return T(),U("div",ml,[_("table",pl,[_l,_("tbody",null,[(T(!0),U(gs,null,ys(n.timestamps,(a,d)=>(T(),U("tr",{key:a.id,class:Ct({active:e.store.state.activeTimestamp===d}),onClick:v=>n.selectTimestamp(d)},[_("th",gl,[_("span",null,De(d+1),1)]),_("td",null,[_("div",yl,De(a.title),1),_("p",wl,De(a.description),1),a.startTime?(T(),U("div",Dl,[Sl,_("span",kl,De(n.formatTime(a.startTime)),1)])):me("",!0),a.stopTime?(T(),U("div",Ml,[bl,_("span",Tl,De(n.formatTime(a.stopTime)),1)])):me("",!0)]),_("td",null,[a.spentTime?(T(),U("span",xl,De(n.formatDuration(a.spentTime)),1)):me("",!0)]),_("td",null,[ht(_("span",null,Ol,512),[[ft,e.store.state.activeTimestamp===d&&e.store.state.playing]])])],10,vl))),128))])])])}var Pl=tt(fl,[["render",Yl]]);const Il={name:"DurationPickerModal",components:{DurationPickerChronometer:hl,DurationPickerEditor:sn,DurationPickerHistory:Pl},mounted:function(){$(this.$el).closest(".modal").length>0&&(this.saveButton=!1)},data:function(){return{store:W("store"),saveButton:!0}},props:{handleCloseModal:Function},methods:{gotoEditor:function(){this.store.setView("editor")},gotoChronometer:function(){this.store.setView("chronometer")},handleSave:function(){this.store.state.inputId&&this.store.removeDurationDraft(this.store.state.inputId).then(e=>{this.store.state.draft=!1})}}},Al={class:"dp-modal--backdrop"},Nl={class:"dp-modal--container"},Fl={class:"dp-amount--input__container"},Cl={class:"dp-amount--input__header"},Vl=[mt(" Duration picker "),_("i",{class:"fas fa-edit"},null,-1)],Ll=[mt(" Save "),_("i",{class:"far fa-save"},null,-1)],Wl=[_("i",{class:"fas fa-times"},null,-1)];function Rl(e,t,s,r,i,n){const a=ze("DurationPickerEditor"),d=ze("DurationPickerHistory"),v=ze("DurationPickerChronometer");return T(),U("div",Al,[_("div",Nl,[_("div",Fl,[_("div",Cl,[_("span",{class:Ct(["dp-amount--input__header--btn unselectable",{active:e.store.state.view==="editor"}]),onClick:t[0]||(t[0]=(...g)=>n.gotoEditor&&n.gotoEditor(...g))},Vl,2),e.saveButton?(T(),U("span",{key:0,class:"dp-amount--input__header--btn unselectable inline-edit-save-fields",onClick:t[1]||(t[1]=(...g)=>n.handleSave&&n.handleSave(...g))},Ll)):me("",!0),_("div",{class:"dp-amount--input__close",onClick:t[2]||(t[2]=(...g)=>s.handleCloseModal&&s.handleCloseModal(...g)),title:"close"},Wl)]),ht(et(a,null,null,512),[[ft,e.store.state.view==="editor"]]),e.store.state.chronometer?ht((T(),Vt(d,{key:0},null,512)),[[ft,e.store.state.view==="chronometer"]]):me("",!0),e.store.state.chronometer?(T(),Vt(v,{key:1})):me("",!0)])])])}var El=tt(Il,[["render",Rl]]);const Ul={name:"DurationPicker",components:{DurationPickerAmounts:fr,DurationPickerModal:El},props:{durationData:Object},data:function(){return{show:!1,amounts:{},store:W("store")}},beforeMount:function(){this.store.setInitialDuration(this.durationData)},computed:{getTotalAmounts:function(){const e=this.store.getTotalDuration();return this.store.__calcDuration(e)},getAmountsTotalStringified:function(){const e=this.store.getTotalDuration(),t=this.store.__calcDuration(e);return JSON.stringify(t)}},methods:{handleCloseModal:function(){this.show=!1},showModal:function(){this.show=!0}}},Hl={class:"duration-picker","data-field-type":"DUR"},jl=["name","value"];function $l(e,t,s,r,i,n){const a=ze("DurationPickerAmounts"),d=ze("DurationPickerModal");return T(),U("div",Hl,[_("div",{onClick:t[0]||(t[0]=(...v)=>n.showModal&&n.showModal(...v))},[et(a,{duration:e.store.state.duration,amounts:n.getTotalAmounts},null,8,["duration","amounts"])]),et(ar,{name:"fade"},{default:or(()=>[ht(et(d,{"handle-close-modal":n.handleCloseModal},null,8,["handle-close-modal"]),[[ft,e.show]])]),_:1}),_("input",{type:"hidden",name:e.store.state.inputName,value:n.getAmountsTotalStringified},null,8,jl)])}var Gl=tt(Ul,[["render",$l]]);Xs(c);var zl=()=>ur({state:{chronometer:0,initialDuration:{value:c.duration(0),units:["years","months","weeks","days","hours","minutes","seconds","milliseconds"]},duration:{value:c.duration(0),units:["years","months","weeks","days","hours","minutes","seconds","milliseconds"]},token:null,inputName:"",inputId:null,timestamps:[{id:0,spentTime:c.duration(0),startTime:null,stopTime:null}],activeTimestamp:0,activeUnit:"hours",playing:!1,view:"editor",draft:!1},setView(e){this.state.view=e},setPlaying(e){this.state.playing=e},setActiveUnit(e){this.state.activeUnit=e},setActiveTimestamp(e){const t=this.state.timestamps.length;this.state.playing||e<0||e>=t||(this.state.activeTimestamp=e)},setInitialDuration(e){this.state.token=this.__calcToken(e.units),this.state.duration.units=e.units,this.state.chronometer=e.chronometer,this.state.inputId=e.inputId,this.state.inputName=e.inputName,this.state.draft=e.draft,this.state.initialDuration.value=c.duration(e.value),this.state.initialDuration.units=e.units;let t=this.state.draft&&this.state.draft.draftAmounts?this.state.draft.draftAmounts:e.value;this.state.duration.value=c.duration(t),this.deleteAllTimestamp(),this.createTimestamp({spentTime:c.duration(t)})},resetIntitialDuration(){this.setActiveTimestamp(0),this.deleteAllTimestamp(),this.state.duration.value=c.duration(this.state.initialDuration.value),this.createTimestamp({spentTime:c.duration(this.state.initialDuration.value)})},setDuration(e){this.state.duration.value=e},setDurationValue(e,t){const s=this.state.activeTimestamp;this.state.timestamps[s].spentTime.clone().add(e,t).asMilliseconds()>=0&&this.state.timestamps[s].spentTime.add(e,t)},setTimestamp(e,t){if(e==="add")this.createTimestamp(t),this.setActiveTimestamp(this.state.timestamps.length-1);else if(e==="update")this.updateTimestamp(t);else if(e==="delete"){let s=this.state.timestamps.findIndex(i=>i.id===t.id),r=this.state.timestamps[s].spentTime;this.setDuration(this.state.duration.value.clone().subtract(c.duration(r))),this.setActiveTimestamp(0),this.deleteTimestamp(t.id)}else e==="delete_all"&&this.deleteAllTimestamp()},getAmountAfter(e){let s=this.state.duration.units.findIndex(i=>i===e)+1;return s===this.state.duration.units.length&&(s=0),this.state.duration.units[s]},getAmountBefore(e){let s=this.state.duration.units.findIndex(i=>i===e)-1;return s<0&&(s=this.state.duration.units.length-1),this.state.duration.units[s]},getTotalDuration(){return this.state.timestamps.reduce((e,t)=>e.clone().add(t.spentTime),c.duration(0))},getTimestamp(e){return this.state.timestamps[e]},getLastTimestamp(){return this.state.timestamps[this.state.timestamps.length-1]},createTimestamp(e){const t=Object.assign(e,{id:c().valueOf()});this.state.timestamps.push(t)},updateTimestamp(e){const t=this.state.timestamps.findIndex(s=>s.id===e.id);this.state.timestamps.splice(t,1,e)},deleteTimestamp(e){const t=this.state.timestamps.findIndex(s=>s.id===e);this.state.timestamps.splice(t,1)},deleteAllTimestamp(){this.state.timestamps.splice(0,this.state.timestamps.length)},__calcToken(e=["years","months","weeks","days","hours","minutes","seconds","milliseconds"]){const t={milliseconds:"S",seconds:"s",minutes:"m",hours:"h",days:"d",weeks:"w",months:"M",years:"y"},s=e.map(i=>`"[${i}]": ${t[i]}`);return"{"+s.join(",")+"}"},__calcDuration(e){const t=e.format(this.state.token,{useToLocaleString:!1,groupingSeparator:"",usePlural:!1,trim:!1,trunc:!0});return JSON.parse(t)},getDraftUrl:function(e){return $.serviceUrl({controller:"tracker_duration",action:e})},getDurationDraft:function(e){return $.ajax({method:"GET",url:this.getDraftUrl("drafts"),dataType:"json",data:{id:e}})},saveDurationDraft:function(e,t){return $.ajax({method:"POST",url:this.getDraftUrl("update_draft"),dataType:"json",data:{id:e,field:t}})},removeDurationDraft:function(e){return $.ajax({method:"POST",url:this.getDraftUrl("delete_draft"),dataType:"json",data:{id:e}})}});const di=Object.assign({name:"App"},{props:{durationData:{type:Object,default:()=>({inputId:null,inputName:"ins_",draft:null,value:0,units:["hours","minutes","seconds"],chronometer:1})}},setup(e){return lr("store",zl()),(t,s)=>(T(),Vt(Gl,{durationData:e.durationData},null,8,["durationData"]))}});var Ld="";const er=Pi({createApp:dr,appOptions:{render(){return cr(di,{durationData:this.durationData})}},handleInstance:e=>{}}),Wd=Q("bootstrap",er.bootstrap),Rd=Q("mount",er.mount),Ed=Q("unmount",er.unmount),Ud=Q("DurationPicker",di)}}});