From 4ccb134e6179385cee316b75762c81a724e75619 Mon Sep 17 00:00:00 2001 From: kalvn Date: Sun, 4 Nov 2018 20:49:50 +0100 Subject: [PATCH] Fixes daily and linklist thumbnails --- CHANGELOG.md | 4 ++++ README.md | 10 ++++++---- material/build/scripts.min.js | 4 ++-- material/build/styles.min.css | 2 +- material/daily.html | 12 ++++-------- material/linklist.html | 2 +- material/scss/components/_page-daily.scss | 3 ++- material/scss/components/_structure.scss | 1 - material/src/main.js | 5 ++--- 9 files changed, 22 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc212b..c259bd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Thumbnail update page - Keyboard shortcut "S" displays search overlay +### Fixed +- Thumbnails on link list and daily pages +- Daily previous link not disabled properly when on oldest day + ## [v0.9.5](https://github.com/kalvn/Shaarli-Material/releases/tag/v0.9.5) - 2018-02-08 ### Changed - Optimizes bookmarklet popup size and enables scrollbars diff --git a/README.md b/README.md index 7c4c35c..37b7c93 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ Shaarli Material is a theme for [Shaarli](https://github.com/shaarli/Shaarli), t [More screenshots](https://github.com/kalvn/Shaarli-Material/tree/master/screenshots). +## Compatibility +Shaarli Material follows the exact same versions numbers than Shaarli. It means that if you install Shaarli vX.Y.Z, you should use Shaarli Material vX.Y.Z. + +Shaarli Material was tested and validated with **Shaarli 0.10.2**. + + ## Download To download this theme, [visit this page](https://github.com/kalvn/Shaarli-Material/releases) and choose the most recent version matching the version of your Shaarli installation. Both use the same notation. @@ -16,10 +22,6 @@ Versions suffixed by `-patch.x` include some bugfix so take those preferentially If you install an older version, please read the README.md file you'll find in the root folder rather than this one. -## Compatibility -Shaarli Material was tested and validated on *Shaarli 0.9.5*. - - ## Installation ### Your Shaarli is up to date Download the `material` folder into the `tpl` directory of your Shaarli installation next to the `default` folder. diff --git a/material/build/scripts.min.js b/material/build/scripts.min.js index d50fcb6..7330e4e 100644 --- a/material/build/scripts.min.js +++ b/material/build/scripts.min.js @@ -3,5 +3,5 @@ b=h&&u[2],f=h&&g.childNodes[h];f=++h&&f&&f[m]||(b=h=0)||p.pop();)if(1===f.nodeTy n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,i=0,r=[],o=he(e),a=o.length-1;a>=i;i++)n=i===a?this:this.clone(!0),he(o[i])[t](n),ae.apply(r,n.get());return this.pushStack(r)}});var lt,ut={HTML:"block",BODY:"block"},ct=/^margin/,dt=new RegExp("^("+je+")(?!px)[a-z%]+$","i"),ft=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r},ht=ie.documentElement;!function(){function t(){var t,c,d=ie.documentElement;d.appendChild(l),u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=r=s=!1,i=a=!0,e.getComputedStyle&&(c=e.getComputedStyle(u),n="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,r="4px"===(c||{width:"4px"}).width,u.style.marginRight="50%",i="4px"===(c||{marginRight:"4px"}).marginRight,t=u.appendChild(ie.createElement("div")),t.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",u.style.width="1px",a=!parseFloat((e.getComputedStyle(t)||{}).marginRight),u.removeChild(t)),u.style.display="none",o=0===u.getClientRects().length,o&&(u.style.display="",u.innerHTML="
t
",u.childNodes[0].style.borderCollapse="separate",t=u.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),d.removeChild(l)}var n,i,r,o,a,s,l=ie.createElement("div"),u=ie.createElement("div");u.style&&(u.style.cssText="float:left;opacity:.5",de.opacity="0.5"===u.style.opacity,de.cssFloat=!!u.style.cssFloat,u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===u.style.backgroundClip,l=ie.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",u.innerHTML="",l.appendChild(u),de.boxSizing=""===u.style.boxSizing||""===u.style.MozBoxSizing||""===u.style.WebkitBoxSizing,he.extend(de,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),r},pixelMarginRight:function(){return null==n&&t(),i},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var pt,mt,gt=/^(top|right|bottom|left)$/;e.getComputedStyle?(pt=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},mt=function(e,t,n){var i,r,o,a,s=e.style;return n=n||pt(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||he.contains(e.ownerDocument,e)||(a=he.style(e,t)),n&&!de.pixelMarginRight()&&dt.test(a)&&ct.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):ht.currentStyle&&(pt=function(e){return e.currentStyle},mt=function(e,t,n){var i,r,o,a,s=e.style;return n=n||pt(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),dt.test(a)&&!gt.test(t)&&(i=s.left,r=e.runtimeStyle,o=r&&r.left,o&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var vt=/alpha\([^)]*\)/i,yt=/opacity\s*=\s*([^)]*)/i,bt=/^(none|table(?!-c[ea]).+)/,wt=new RegExp("^("+je+")(.*)$","i"),xt={position:"absolute",visibility:"hidden",display:"block"},_t={letterSpacing:"0",fontWeight:"400"},kt=["Webkit","O","Moz","ms"],St=ie.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=mt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":de.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=he.camelCase(t),l=e.style;if(t=he.cssProps[s]||(he.cssProps[s]=O(s)||s),a=he.cssHooks[t]||he.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t];if(o=typeof n,"string"===o&&(r=Re.exec(n))&&r[1]&&(n=f(e,t,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(he.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]=n}catch(u){}}},css:function(e,t,n,i){var r,o,a,s=he.camelCase(t);return t=he.cssProps[s]||(he.cssProps[s]=O(s)||s),a=he.cssHooks[t]||he.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=mt(e,t,i)),"normal"===o&&t in _t&&(o=_t[t]),""===n||n?(r=parseFloat(o),n===!0||isFinite(r)?r||0:o):o}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,i){return n?bt.test(he.css(e,"display"))&&0===e.offsetWidth?ft(e,xt,function(){return R(e,t,i)}):R(e,t,i):void 0},set:function(e,n,i){var r=i&&pt(e);return Y(e,n,i?j(e,t,i,de.boxSizing&&"border-box"===he.css(e,"boxSizing",!1,r),r):0)}}}),de.opacity||(he.cssHooks.opacity={get:function(e,t){return yt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=he.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===he.trim(o.replace(vt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=vt.test(o)?o.replace(vt,r):o+" "+r)}}),he.cssHooks.marginRight=A(de.reliableMarginRight,function(e,t){return t?ft(e,{display:"inline-block"},mt,[e,"marginRight"]):void 0}),he.cssHooks.marginLeft=A(de.reliableMarginLeft,function(e,t){return t?(parseFloat(mt(e,"marginLeft"))||(he.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px":void 0}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+He[i]+t]=o[i]||o[i-2]||o[0];return r}},ct.test(e)||(he.cssHooks[e+t].set=Y)}),he.fn.extend({css:function(e,t){return Pe(this,function(e,t,n){var i,r,o={},a=0;if(he.isArray(t)){for(i=pt(e),r=t.length;r>a;a++)o[t[a]]=he.css(e,t[a],!1,i);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Fe(this)?he(this).show():he(this).hide()})}}),he.Tween=H,H.prototype={constructor:H,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=H.prototype.init,he.fx.step={};var Tt,Ct,Dt=/^(?:toggle|show|hide)$/,Et=/queueHooks$/;he.Animation=he.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return f(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Me);for(var n,i=0,r=e.length;r>i;i++)n=e[i],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(t)},prefilters:[W],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),he.speed=function(e,t,n){var i=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return i.duration=he.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in he.fx.speeds?he.fx.speeds[i.duration]:he.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){he.isFunction(i.old)&&i.old.call(this),i.queue&&he.dequeue(this,i.queue)},i},he.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=he.isEmptyObject(e),o=he.speed(t,n,i),a=function(){var t=q(this,he.extend({},e),o);(r||he._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=he.timers,a=he._data(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&Et.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=he._data(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=he.timers,a=i?i.length:0;for(n.finish=!0,he.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(P(t,!0),e,i,r)}}),he.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),he.timers=[],he.fx.tick=function(){var e,t=he.timers,n=0;for(Tt=he.now();n
a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",de.getSetAttribute="t"!==n.className,de.style=/top/.test(e.getAttribute("style")),de.hrefNormalized="/a"===e.getAttribute("href"),de.checkOn=!!t.value,de.optSelected=r.selected,de.enctype=!!ie.createElement("form").enctype,i.disabled=!0,de.optDisabled=!r.disabled,t=ie.createElement("input"),t.setAttribute("value",""),de.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),de.radioValue="t"===t.value}();var Mt=/\r/g,Nt=/[\x20\t\r\n\f]+/g;he.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=he.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,he(this).val()):e,null==r?r="":"number"==typeof r?r+="":he.isArray(r)&&(r=he.map(r,function(e){return null==e?"":e+""})),t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=he.valHooks[r.type]||he.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Mt,""):null==n?"":n)):void 0}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:he.trim(he.text(e)).replace(Nt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:i.length,l=0>r?s:o?r:0;s>l;l++)if(n=i[l],(n.selected||l===r)&&(de.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!he.nodeName(n.parentNode,"optgroup"))){if(t=he(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=he.makeArray(t),a=r.length;a--;)if(i=r[a],he.inArray(he.valHooks.option.get(i),o)>-1)try{i.selected=n=!0}catch(s){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){return he.isArray(t)?e.checked=he.inArray(he(e).val(),t)>-1:void 0}},de.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var At,Ot,Lt=he.expr.attrHandle,Yt=/^(?:checked|selected)$/i,jt=de.getSetAttribute,Rt=de.input;he.fn.extend({attr:function(e,t){return Pe(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(t=t.toLowerCase(),r=he.attrHooks[t]||(he.expr.match.bool.test(t)?Ot:At)),void 0!==n?null===n?void he.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=he.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&he.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(Me);if(o&&1===e.nodeType)for(;n=o[r++];)i=he.propFix[n]||n,he.expr.match.bool.test(n)?Rt&&jt||!Yt.test(n)?e[i]=!1:e[he.camelCase("default-"+n)]=e[i]=!1:he.attr(e,n,""),e.removeAttribute(jt?n:i)}}),Ot={set:function(e,t,n){return t===!1?he.removeAttr(e,n):Rt&&jt||!Yt.test(n)?e.setAttribute(!jt&&he.propFix[n]||n,n):e[he.camelCase("default-"+n)]=e[n]=!0,n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Lt[t]||he.find.attr;Rt&&jt||!Yt.test(t)?Lt[t]=function(e,t,i){var r,o;return i||(o=Lt[t],Lt[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,Lt[t]=o),r}:Lt[t]=function(e,t,n){return n?void 0:e[he.camelCase("default-"+t)]?t.toLowerCase():null}}),Rt&&jt||(he.attrHooks.value={set:function(e,t,n){return he.nodeName(e,"input")?void(e.defaultValue=t):At&&At.set(e,t,n)}}),jt||(At={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Lt.id=Lt.name=Lt.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},he.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:At.set},he.attrHooks.contenteditable={set:function(e,t,n){At.set(e,""!==t&&t,n)}},he.each(["width","height"],function(e,t){he.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),de.style||(he.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ht=/^(?:input|select|textarea|button|object)$/i,Ft=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Pe(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return e=he.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),he.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,r=he.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):Ht.test(e.nodeName)||Ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),de.hrefNormalized||he.each(["href","src"],function(e,t){he.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),de.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),de.enctype||(he.propFix.enctype="encoding");var Pt=/[\t\r\n\f]/g;he.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,l=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,B(this)))});if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(r=B(n),i=1===n.nodeType&&(" "+r+" ").replace(Pt," ")){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=he.trim(i),r!==s&&he.attr(n,"class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,l=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,B(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Me)||[];n=this[l++];)if(r=B(n),i=1===n.nodeType&&(" "+r+" ").replace(Pt," ")){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=he.trim(i),r!==s&&he.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,B(this),t),t)}):this.each(function(){var t,i,r,o;if("string"===n)for(i=0,r=he(this),o=e.match(Me)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||(t=B(this),t&&he._data(this,"__className__",t),he.attr(this,"class",t||e===!1?"":he._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+B(n)+" ").replace(Pt," ").indexOf(t)>-1)return!0;return!1}}),he.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var $t=e.location,Wt=he.now(),It=/\?/,qt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;he.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,r=he.trim(t+"");return r&&!he.trim(r.replace(qt,function(e,t,r,o){return n&&t&&(i=0),0===i?e:(n=r||t,i+=!o-!r,"")}))?Function("return "+r)():he.error("Invalid JSON: "+t)},he.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new e.DOMParser,n=i.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(r){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var Bt=/#.*$/,Ut=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gt=/^(?:GET|HEAD)$/,Xt=/^\/\//,Zt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Qt={},Jt={},Kt="*/".concat("*"),en=$t.href,tn=Zt.exec(en.toLowerCase())||[];he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Vt.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":he.parseJSON,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,he.ajaxSettings),t):V(he.ajaxSettings,e)},ajaxPrefilter:U(Qt),ajaxTransport:U(Jt),ajax:function(t,n){function i(t,n,i,r){var o,d,y,b,x,k=n;2!==w&&(w=2,l&&e.clearTimeout(l),c=void 0,s=r||"",_.readyState=t>0?4:0,o=t>=200&&300>t||304===t,i&&(b=G(f,_,i)),b=X(f,b,_,o),o?(f.ifModified&&(x=_.getResponseHeader("Last-Modified"),x&&(he.lastModified[a]=x),x=_.getResponseHeader("etag"),x&&(he.etag[a]=x)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=b.state,d=b.data,y=b.error,o=!y)):(y=k,!t&&k||(k="error",0>t&&(t=0))),_.status=t,_.statusText=(n||k)+"",o?m.resolveWith(h,[d,k,_]):m.rejectWith(h,[_,k,y]),_.statusCode(v),v=void 0,u&&p.trigger(o?"ajaxSuccess":"ajaxError",[_,f,o?d:y]),g.fireWith(h,[_,k]),u&&(p.trigger("ajaxComplete",[_,f]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,a,s,l,u,c,d,f=he.ajaxSetup({},n),h=f.context||f,p=f.context&&(h.nodeType||h.jquery)?he(h):he.event,m=he.Deferred(),g=he.Callbacks("once memory"),v=f.statusCode||{},y={},b={},w=0,x="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!d)for(d={};t=zt.exec(s);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)v[t]=[v[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||x;return c&&c.abort(t),i(0,t),this}};if(m.promise(_).complete=g.add,_.success=_.done,_.error=_.fail,f.url=((t||f.url||en)+"").replace(Bt,"").replace(Xt,tn[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=he.trim(f.dataType||"*").toLowerCase().match(Me)||[""],null==f.crossDomain&&(r=Zt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===tn[1]&&r[2]===tn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=he.param(f.data,f.traditional)),z(Qt,f,n,_),2===w)return _;u=he.event&&f.global,u&&0===he.active++&&he.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Gt.test(f.type),a=f.url,f.hasContent||(f.data&&(a=f.url+=(It.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=Ut.test(a)?a.replace(Ut,"$1_="+Wt++):a+(It.test(a)?"&":"?")+"_="+Wt++)),f.ifModified&&(he.lastModified[a]&&_.setRequestHeader("If-Modified-Since",he.lastModified[a]),he.etag[a]&&_.setRequestHeader("If-None-Match",he.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Kt+"; q=0.01":""):f.accepts["*"]);for(o in f.headers)_.setRequestHeader(o,f.headers[o]);if(f.beforeSend&&(f.beforeSend.call(h,_,f)===!1||2===w))return _.abort();x="abort";for(o in{success:1,error:1,complete:1})_[o](f[o]);if(c=z(Jt,f,n,_)){if(_.readyState=1,u&&p.trigger("ajaxSend",[_,f]),2===w)return _;f.async&&f.timeout>0&&(l=e.setTimeout(function(){_.abort("timeout")},f.timeout));try{w=1,c.send(y,i)}catch(k){if(!(2>w))throw k;i(-1,k)}}else i(-1,"No Transport");return _},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,i,r){return he.isFunction(n)&&(r=r||i,i=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:r,data:n,success:i},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},he.fn.extend({wrapAll:function(e){if(he.isFunction(e))return this.each(function(t){he(this).wrapAll(e.call(this,t))});if(this[0]){var t=he(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){he.nodeName(this,"body")||he(this).replaceWith(this.childNodes)}).end()}}),he.expr.filters.hidden=function(e){return de.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Q(e)},he.expr.filters.visible=function(e){return!he.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,i=[],r=function(e,t){t=he.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=he.ajaxSettings&&he.ajaxSettings.traditional),he.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){r(this.name,this.value)});else for(n in e)J(n,e[n],t,r);return i.join("&").replace(nn,"+")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!$e.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:he.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),he.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():ie.documentMode>8?K():/^(get|post|head|put|delete|options)$/i.test(this.type)&&K()||ee()}:K;var ln=0,un={},cn=he.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in un)un[e](void 0,!0)}),de.cors=!!cn&&"withCredentials"in cn,cn=de.ajax=!!cn,cn&&he.ajaxTransport(function(t){if(!t.crossDomain||de.cors){var n;return{send:function(i,r){var o,a=t.xhr(),s=++ln;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)void 0!==i[o]&&a.setRequestHeader(o,i[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,i){var o,l,u;if(n&&(i||4===a.readyState))if(delete un[s],n=void 0,a.onreadystatechange=he.noop,i)4!==a.readyState&&a.abort();else{u={},o=a.status,"string"==typeof a.responseText&&(u.text=a.responseText);try{l=a.statusText}catch(c){l=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=u.text?200:404}u&&r(o,l,u,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=un[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=ie.head||he("head")[0]||ie.documentElement;return{send:function(i,r){t=ie.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var dn=[],fn=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=dn.pop()||he.expando+"_"+Wt++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,a,s=t.jsonp!==!1&&(fn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&fn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(fn,"$1"+r):t.jsonp!==!1&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||he.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){a=arguments},i.always(function(){void 0===o?he(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,dn.push(r)),a&&he.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),he.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||ie;var i=_e.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=v([e],t,r),r&&r.length&&he(r).remove(),he.merge([],i.childNodes))};var hn=he.fn.load;he.fn.load=function(e,t,n){if("string"!=typeof e&&hn)return hn.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>-1&&(i=he.trim(e.slice(s,e.length)),e=e.slice(0,s)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&he.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?he("
").append(he.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.filters.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u,c=he.css(e,"position"),d=he(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=he.css(e,"top"),l=he.css(e,"left"),u=("absolute"===c||"fixed"===c)&&he.inArray("auto",[o,l])>-1,u?(i=d.position(),a=i.top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+r),"using"in t?t.using.call(e,f):d.css(f)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(t=o.documentElement,he.contains(t,r)?("undefined"!=typeof r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=te(o),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===he.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),he.nodeName(e[0],"html")||(n=e.offset()),n.top+=he.css(e[0],"borderTopWidth",!0),n.left+=he.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-he.css(i,"marginTop",!0), left:t.left-n.left-he.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!he.nodeName(e,"html")&&"static"===he.css(e,"position");)e=e.offsetParent;return e||ht})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);he.fn[e]=function(i){return Pe(this,function(e,i,r){var o=te(e);return void 0===r?o?t in o?o[t]:o.document.documentElement[i]:e[i]:void(o?o.scrollTo(n?he(o).scrollLeft():r,n?r:he(o).scrollTop()):e[i]=r)},e,i,arguments.length,null)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=A(de.pixelPosition,function(e,n){return n?(n=mt(e,t),dt.test(n)?he(e).position()[t]+"px":n):void 0})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){he.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||r===!0?"margin":"border");return Pe(this,function(t,n,i){var r;return he.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?he.css(t,n,a):he.style(t,n,i,a)},t,o?i:void 0,o,null)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.fn.size=function(){return this.length},he.fn.andSelf=he.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var pn=e.jQuery,mn=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=mn),t&&e.jQuery===he&&(e.jQuery=pn),he},t||(e.jQuery=e.$=he),he}),!function(){function e(e){var t=Array.isArray(e)?{label:e[0],value:e[1]}:"object"==typeof e&&"label"in e&&"value"in e?e:{label:e,value:e};this.label=t.label||t.value,this.value=t.value}function t(e,t,n){for(var i in t){var r=t[i],o=e.input.getAttribute("data-"+i.toLowerCase());"number"==typeof r?e[i]=parseInt(o):!1===r?e[i]=null!==o:r instanceof Function?e[i]=null:e[i]=o,e[i]||0===e[i]||(e[i]=i in n?n[i]:r)}}function n(e,t){return"string"==typeof e?(t||document).querySelector(e):e||null}function i(e,t){return a.call((t||document).querySelectorAll(e))}function r(){i("input.awesomplete").forEach(function(e){new o(e)})}var o=function(e,i){var r=this;this.isOpened=!1,this.input=n(e),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),i=i||{},t(this,{minChars:2,maxItems:10,autoFirst:!1,data:o.DATA,filter:o.FILTER_CONTAINS,sort:!1!==i.sort&&o.SORT_BYLENGTH,item:o.ITEM,replace:o.REPLACE},i),this.index=-1,this.container=n.create("div",{className:"awesomplete",around:e}),this.ul=n.create("ul",{hidden:"hidden",inside:this.container}),this.status=n.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(e){var t=e.keyCode;r.opened&&(13===t&&r.selected?(e.preventDefault(),r.select()):27===t?r.close({reason:"esc"}):38!==t&&40!==t||(e.preventDefault(),r[38===t?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(e){var t=e.target;if(t!==this){for(;t&&!/li/i.test(t.nodeName);)t=t.parentNode;t&&0===e.button&&(e.preventDefault(),r.select(t,e.target))}}}},n.bind(this.input,this._events.input),n.bind(this.input.form,this._events.form),n.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||i.list||[],o.all.push(this)};o.prototype={set list(e){if(Array.isArray(e))this._list=e;else if("string"==typeof e&&e.indexOf(",")>-1)this._list=e.split(/\s*,\s*/);else if((e=n(e))&&e.children){var t=[];a.apply(e.children).forEach(function(e){if(!e.disabled){var n=e.textContent.trim(),i=e.value||n,r=e.label||n;""!==i&&t.push({label:r,value:i})}}),this._list=t}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(e){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,n.fire(this.input,"awesomplete-close",e||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&-1===this.index&&this["goto"](0),n.fire(this.input,"awesomplete-open")},destroy:function(){n.unbind(this.input,this._events.input),n.unbind(this.input.form,this._events.form);var e=this.container.parentNode;e.insertBefore(this.input,this.container),e.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var t=o.all.indexOf(this);-1!==t&&o.all.splice(t,1)},next:function(){var e=this.ul.children.length;this["goto"](this.index-1&&t.length>0&&(t[e].setAttribute("aria-selected","true"),this.status.textContent=t[e].textContent,this.ul.scrollTop=t[e].offsetTop-this.ul.clientHeight+t[e].clientHeight,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(e,t){if(e?this.index=n.siblingIndex(e):e=this.ul.children[this.index],e){var i=this.suggestions[this.index];n.fire(this.input,"awesomplete-select",{text:i,origin:t||e})&&(this.replace(i),this.close({reason:"select"}),n.fire(this.input,"awesomplete-selectcomplete",{text:i}))}},evaluate:function(){var t=this,n=this.input.value;n.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(i){return new e(t.data(i,n))}).filter(function(e){return t.filter(e,n)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(e){t.ul.appendChild(t.item(e,n))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},o.all=[],o.FILTER_CONTAINS=function(e,t){return RegExp(n.regExpEscape(t.trim()),"i").test(e)},o.FILTER_STARTSWITH=function(e,t){return RegExp("^"+n.regExpEscape(t.trim()),"i").test(e)},o.SORT_BYLENGTH=function(e,t){return e.length!==t.length?e.length-t.length:e$&"),"aria-selected":"false"})},o.REPLACE=function(e){this.input.value=e.value},o.DATA=function(e){return e},Object.defineProperty(e.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),e.prototype.toString=e.prototype.valueOf=function(){return""+this.label};var a=Array.prototype.slice;n.create=function(e,t){var i=document.createElement(e);for(var r in t){var o=t[r];if("inside"===r)n(o).appendChild(i);else if("around"===r){var a=n(o);a.parentNode.insertBefore(i,a),i.appendChild(a)}else r in i?i[r]=o:i.setAttribute(r,o)}return i},n.bind=function(e,t){if(e)for(var n in t){var i=t[n];n.split(/\s+/).forEach(function(t){e.addEventListener(t,i)})}},n.unbind=function(e,t){if(e)for(var n in t){var i=t[n];n.split(/\s+/).forEach(function(t){e.removeEventListener(t,i)})}},n.fire=function(e,t,n){var i=document.createEvent("HTMLEvents");i.initEvent(t,!0,!0);for(var r in n)i[r]=n[r];return e.dispatchEvent(i)},n.regExpEscape=function(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(e){for(var t=0;e=e.previousElementSibling;t++);return t},"undefined"!=typeof Document&&("loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)),o.$=n,o.$$=i,"undefined"!=typeof self&&(self.Awesomplete=o),"object"==typeof module&&module.exports&&(module.exports=o)}(),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Blazy=t()}(this,function(){function e(e){var n=e._util;n.elements=l(e.options),n.count=n.elements.length,n.destroyed&&(n.destroyed=!1,e.options.container&&f(e.options.container,function(e){c(e,"scroll",n.validateT)}),c(window,"resize",n.saveViewportOffsetT),c(window,"resize",n.validateT),c(window,"scroll",n.validateT)),t(e)}function t(e){for(var t=e._util,i=0;i=t.left&&e.bottom>=t.top&&e.left<=t.right&&e.top<=t.bottom}function i(e,t,n){if(!a(e,n.successClass)&&(t||n.loadInvisible||0=window.screen.width)return p=e.src,!1}),setTimeout(function(){e(o)})}}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return bi.apply(null,arguments)}function t(e){bi=e}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var t;for(t in e)return!1;return!0}function o(e){return void 0===e}function a(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n0)for(n=0;n<_i.length;n++)i=_i[n],r=t[i],o(r)||(e[i]=r);return e}function v(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ki===!1&&(ki=!0,e.updateOffset(this),ki=!1)}function y(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function x(e,t,n){var i,r=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(i=0;i0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)}function j(e,t){var n=e.toLowerCase();Yi[n]=Yi[n+"s"]=Yi[t]=e}function R(e){return"string"==typeof e?Yi[e]||Yi[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)u(e,n)&&(t=R(n),t&&(i[t]=e[n]));return i}function F(e,t){ji[e]=t}function P(e){var t=[];for(var n in e)t.push({unit:n,priority:ji[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function $(t,n){return function(i){return null!=i?(I(this,t,i),e.updateOffset(this,n),this):W(this,t)}}function W(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function I(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function q(e){return e=R(e),T(this[e])?this[e]():this}function B(e,t){if("object"==typeof e){e=H(e);for(var n=P(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function z(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Pi[e]=r),t&&(Pi[t[0]]=function(){return U(r.apply(this,arguments),t[1],t[2])}),n&&(Pi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,i=e.match(Ri);for(t=0,n=i.length;t=0&&Hi.test(e);)e=e.replace(Hi,n),Hi.lastIndex=0,i-=1;return e}function Q(e,t,n){ir[e]=T(t)?t:function(e,i){return e&&n?n:t}}function J(e,t){return u(ir,e)?ir[e](t._strict,t._locale):new RegExp(K(e))}function K(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function te(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),a(t)&&(i=function(e,n){n[t]=w(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function be(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var i=7+t-n,r=(7+be(e,0,i).getUTCDay()-t)%7;return-r+i-1}function xe(e,t,n,i,r){var o,a,s=(7+n-i)%7,l=we(e,i,r),u=1+7*(t-1)+s+l;return u<=0?(o=e-1,a=me(o)+u):u>me(e)?(o=e+1,a=u-me(e)):(o=e,a=u),{year:o,dayOfYear:a}}function _e(e,t,n){var i,r,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+ke(r,t,n)):a>ke(e.year(),t,n)?(i=a-ke(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function ke(e,t,n){var i=we(e,t,n),r=we(e+1,t,n);return(me(e)-i+r)/7}function Se(e){return _e(e,this._week.dow,this._week.doy).week}function Te(){return this._week.dow}function Ce(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ee(e){var t=_e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Me(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ae(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Oe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ye(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=d([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=pr.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=pr.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=pr.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=pr.call(this._weekdaysParse,a),r!==-1?r:(r=pr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=pr.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=pr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=pr.call(this._weekdaysParse,a),r!==-1?r:(r=pr.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=pr.call(this._minWeekdaysParse,a),r!==-1?r:(r=pr.call(this._weekdaysParse,a),r!==-1?r:(r=pr.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function je(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ye.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=d([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Me(e,this.localeData()),this.add(e-t,"d")):t}function He(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Pe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Tr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function $e(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Ie.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ie(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=ee(s[t]),l[t]=ee(l[t]),u[t]=ee(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function qe(){return this.hours()%12||12}function Be(){return this.hours()||24}function Ue(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ze(e,t){return t._meridiemParse}function Ve(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function Ze(e){for(var t,n,i,r,o=0;o0;){if(i=Qe(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return null}function Qe(e){var t=null;if(!Or[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Er._abbr,require("./locale/"+e),Je(t)}catch(e){}return Or[e]}function Je(e,t){var n;return e&&(n=o(t)?tt(e):Ke(e,t),n&&(Er=n)),Er._abbr}function Ke(e,t){if(null!==t){var n=Ar;if(t.abbr=e,null!=Or[e])S("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."),n=Or[e]._config;else if(null!=t.parentLocale){if(null==Or[t.parentLocale])return Lr[t.parentLocale]||(Lr[t.parentLocale]=[]),Lr[t.parentLocale].push({name:e,config:t}),null;n=Or[t.parentLocale]._config}return Or[e]=new E(D(n,t)),Lr[e]&&Lr[e].forEach(function(e){Ke(e.name,e.config)}),Je(e),Or[e]}return delete Or[e],null}function et(e,t){if(null!=t){var n,i=Ar;null!=Or[e]&&(i=Or[e]._config),t=D(i,t),n=new E(t),n.parentLocale=Or[e],Or[e]=n,Je(e)}else null!=Or[e]&&(null!=Or[e].parentLocale?Or[e]=Or[e].parentLocale:null!=Or[e]&&delete Or[e]);return Or[e]}function tt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Er;if(!n(e)){if(t=Qe(e))return t;e=[e]}return Ze(e)}function nt(){return Di(Or)}function it(e){var t,n=e._a;return n&&h(e).overflow===-2&&(t=n[ar]<0||n[ar]>11?ar:n[sr]<1||n[sr]>re(n[or],n[ar])?sr:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[ur]||0!==n[cr]||0!==n[dr])?lr:n[ur]<0||n[ur]>59?ur:n[cr]<0||n[cr]>59?cr:n[dr]<0||n[dr]>999?dr:-1,h(e)._overflowDayOfYear&&(tsr)&&(t=sr),h(e)._overflowWeeks&&t===-1&&(t=fr),h(e)._overflowWeekday&&t===-1&&(t=hr),h(e).overflow=t),e}function rt(e){var t,n,i,r,o,a,s=e._i,l=Yr.exec(s)||jr.exec(s);if(l){for(h(e).iso=!0,t=0,n=Hr.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var d=new Date(n[2]),f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()];if(n[1].substr(0,3)!==f)return h(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===l?s=" +0000":(l=c.indexOf(n[5][1].toUpperCase())-12,s=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=u[n[5]];break;default:s=u[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=i+r+o+a,dt(e),h(e).rfc2822=!0}else e._isValid=!1}function at(t){var n=Pr.exec(t._i);return null!==n?void(t._d=new Date((+n[1]))):(rt(t),void(t._isValid===!1&&(delete t._isValid,ot(t),t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t)))))}function st(e,t,n){return null!=e?e:null!=t?t:n}function lt(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,i,r,o=[];if(!e._d){for(i=lt(e),e._w&&null==e._a[sr]&&null==e._a[ar]&&ct(e),null!=e._dayOfYear&&(r=st(e._a[or],i[or]),(e._dayOfYear>me(r)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=be(r,0,e._dayOfYear),e._a[ar]=n.getUTCMonth(),e._a[sr]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[lr]&&0===e._a[ur]&&0===e._a[cr]&&0===e._a[dr]&&(e._nextDay=!0,e._a[lr]=0),e._d=(e._useUTC?be:ye).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lr]=24)}}function ct(e){var t,n,i,r,o,a,s,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=st(t.GG,e._a[or],_e(bt(),1,4).year),i=st(t.W,1),r=st(t.E,1),(r<1||r>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var u=_e(bt(),o,a);n=st(t.gg,e._a[or],u.year),i=st(t.w,u.week),null!=t.d?(r=t.d,(r<0||r>6)&&(l=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(l=!0)):r=o}i<1||i>ke(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=xe(n,i,r,o,a),e._a[or]=s.year,e._dayOfYear=s.dayOfYear)}function dt(t){if(t._f===e.ISO_8601)return void rt(t);if(t._f===e.RFC_2822)return void ot(t);t._a=[],h(t).empty=!0;var n,i,r,o,a,s=""+t._i,l=s.length,u=0;for(r=Z(t._f,t._locale).match(Ri)||[],n=0;n0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Pi[o]?(i?h(t).empty=!1:h(t).unusedTokens.push(o),ie(o,i,t)):t._strict&&!i&&h(t).unusedTokens.push(o);h(t).charsLeftOver=l-u,s.length>0&&h(t).unusedInput.push(s),t._a[lr]<=12&&h(t).bigHour===!0&&t._a[lr]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[lr]=ft(t._locale,t._a[lr],t._meridiem),ut(t),it(t)}function ft(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function ht(e){var t,n,i,r,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $t(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=gt(e),e._a){var t=e._isUTC?d(e._a):bt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function It(){return!!this.isValid()&&this._isUTC}function qt(){return!!this.isValid()&&this._isUTC&&0===this._offset}function Bt(e,t){var n,i,r,o=e,s=null;return Dt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:a(e)?(o={},t?o[t]=e:o.milliseconds=e):(s=zr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:w(s[sr])*n,h:w(s[lr])*n,m:w(s[ur])*n,s:w(s[cr])*n,ms:w(Et(1e3*s[dr]))*n}):(s=Vr.exec(e))?(n="-"===s[1]?-1:1,o={y:Ut(s[2],n),M:Ut(s[3],n),w:Ut(s[4],n),d:Ut(s[5],n),h:Ut(s[6],n),m:Ut(s[7],n),s:Ut(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Vt(bt(o.from),bt(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Ct(o),Dt(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(e,t){var n;return e.isValid()&&t.isValid()?(t=At(t,e),e.isBefore(t)?n=zt(e,t):(n=zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Gt(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(S(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."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Bt(n,i),Xt(this,r,e),this}}function Xt(t,n,i,r){var o=n._milliseconds,a=Et(n._days),s=Et(n._months);t.isValid()&&(r=null==r||r,o&&t._d.setTime(t._d.valueOf()+o*i),a&&I(t,"Date",W(t,"Date")+a*i),s&&ue(t,W(t,"Month")+s*i),r&&e.updateOffset(t,a||s))}function Zt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qt(t,n){var i=t||bt(),r=At(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",a=n&&(T(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,bt(i)))}function Jt(){return new v(this)}function Kt(e,t){var n=y(e)?e:bt(e);return!(!this.isValid()||!n.isValid())&&(t=R(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?X(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):T(Date.prototype.toISOString)?this.toDate().toISOString():X(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function cn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+i+r+o)}function dn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=X(this,t);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(y(e)&&e.isValid()||bt(e).isValid())?Bt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hn(e){return this.from(bt(),e)}function pn(e,t){return this.isValid()&&(y(e)&&e.isValid()||bt(e).isValid())?Bt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(bt(),e)}function gn(e){var t;return void 0===e?this._locale._abbr:(t=tt(e),null!=t&&(this._locale=t),this)}function vn(){return this._locale}function yn(e){switch(e=R(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function bn(e){return e=R(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function wn(){return this._d.valueOf()-6e4*(this._offset||0)}function xn(){return Math.floor(this.valueOf()/1e3)}function _n(){return new Date(this.valueOf())}function kn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Sn(){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 Tn(){return this.isValid()?this.toISOString():null}function Cn(){return p(this)}function Dn(){return c({},h(this))}function En(){return h(this).overflow}function Mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){z(0,[e,e.length],0,t)}function An(e){return jn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function On(e){return jn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return ke(this.year(),1,4)}function Yn(){var e=this.localeData()._week;return ke(this.year(),e.dow,e.doy)}function jn(e,t,n,i,r){var o;return null==e?_e(this,i,r).year:(o=ke(e,i,r),t>o&&(t=o),Rn.call(this,e,t,n,i,r))}function Rn(e,t,n,i,r){var o=xe(e,t,n,i,r),a=be(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Hn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Fn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Pn(e,t){t[dr]=w(1e3*("0."+e))}function $n(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function In(e){return bt(1e3*e)}function qn(){return bt.apply(null,arguments).parseZone()}function Bn(e){return e}function Un(e,t,n,i){var r=tt(),o=d().set(i,t);return r[n](o,e)}function zn(e,t,n){if(a(e)&&(t=e,e=void 0),e=e||"",null!=t)return Un(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Un(e,i,n,"month");return r}function Vn(e,t,n,i){"boolean"==typeof e?(a(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,a(t)&&(n=t,t=void 0),t=t||"");var r=tt(),o=e?r._week.dow:0;if(null!=n)return Un(t,(n+o)%7,i,"day");var s,l=[];for(s=0;s<7;s++)l[s]=Un(t,(s+o)%7,i,"day");return l}function Gn(e,t){return zn(e,t,"months")}function Xn(e,t){return zn(e,t,"monthsShort")}function Zn(e,t,n){return Vn(e,t,n,"weekdays")}function Qn(e,t,n){return Vn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return Vn(e,t,n,"weekdaysMin")}function Kn(){var e=this._data;return this._milliseconds=ro(this._milliseconds),this._days=ro(this._days),this._months=ro(this._months),e.milliseconds=ro(e.milliseconds),e.seconds=ro(e.seconds),e.minutes=ro(e.minutes),e.hours=ro(e.hours),e.months=ro(e.months),e.years=ro(e.years),this}function ei(e,t,n,i){var r=Bt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function ti(e,t){return ei(this,e,t,1)}function ni(e,t){return ei(this,e,t,-1)}function ii(e){return e<0?Math.floor(e):Math.ceil(e)}function ri(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*ii(ai(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=b(o/1e3),l.seconds=e%60,t=b(e/60),l.minutes=t%60,n=b(t/60),l.hours=n%24,a+=b(n/24),r=b(oi(a)),s+=r,a-=ii(ai(r)),i=b(s/12),s%=12,l.days=a,l.months=s,l.years=i,this}function oi(e){return 4800*e/146097}function ai(e){return 146097*e/4800}function si(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=R(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+oi(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ai(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function ui(e){return function(){return this.as(e)}}function ci(e){return e=R(e),this.isValid()?this[e+"s"]():NaN}function di(e){return function(){return this.isValid()?this._data[e]:NaN}}function fi(){return b(this.days()/7)}function hi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function pi(e,t,n){var i=Bt(e).abs(),r=xo(i.as("s")),o=xo(i.as("m")),a=xo(i.as("h")),s=xo(i.as("d")),l=xo(i.as("M")),u=xo(i.as("y")),c=r<=_o.ss&&["s",r]||r<_o.s&&["ss",r]||o<=1&&["m"]||o<_o.m&&["mm",o]||a<=1&&["h"]||a<_o.h&&["hh",a]||s<=1&&["d"]||s<_o.d&&["dd",s]||l<=1&&["M"]||l<_o.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,hi.apply(null,c)}function mi(e){return void 0===e?xo:"function"==typeof e&&(xo=e,!0)}function gi(e,t){return void 0!==_o[e]&&(void 0===t?_o[e]:(_o[e]=t,"s"===e&&(_o.ss=t-1),!0))}function vi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=pi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function yi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=ko(this._milliseconds)/1e3,r=ko(this._days),o=ko(this._months);e=b(i/60),t=b(e/60),i%=60,e%=60,n=b(o/12),o%=12;var a=n,s=o,l=r,u=t,c=e,d=i,f=this.asSeconds();return f?(f<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||c||d?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var bi,wi;wi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var wr=$("FullYear",!0);z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),F("week",5),F("isoWeek",5),Q("w",Ui),Q("ww",Ui,Wi),Q("W",Ui),Q("WW",Ui,Wi),ne(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)});var xr={dow:0,doy:6};z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),Q("d",Ui),Q("e",Ui),Q("E",Ui),Q("dd",function(e,t){return t.weekdaysMinRegex(e)}),Q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Q("dddd",function(e,t){return t.weekdaysRegex(e)}),ne(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:h(n).invalidWeekday=e}),ne(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var _r="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),kr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tr=nr,Cr=nr,Dr=nr;z("H",["HH",2],0,"hour"),z("h",["hh",2],0,qe),z("k",["kk",2],0,Be),z("hmm",0,0,function(){return""+qe.apply(this)+U(this.minutes(),2)}),z("hmmss",0,0,function(){return""+qe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),j("hour","h"),F("hour",13),Q("a",ze),Q("A",ze),Q("H",Ui),Q("h",Ui),Q("k",Ui),Q("HH",Ui,Wi),Q("hh",Ui,Wi),Q("kk",Ui,Wi),Q("hmm",zi),Q("hmmss",Vi),Q("Hmm",zi),Q("Hmmss",Vi),te(["H","HH"],lr),te(["k","kk"],function(e,t,n){var i=w(e);t[lr]=24===i?0:i}),te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),te(["h","hh"],function(e,t,n){t[lr]=w(e),h(n).bigHour=!0}),te("hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[ur]=w(e.substr(i)),h(n).bigHour=!0}),te("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[ur]=w(e.substr(i,2)),t[cr]=w(e.substr(r)),h(n).bigHour=!0}),te("Hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[ur]=w(e.substr(i))}),te("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[ur]=w(e.substr(i,2)),t[cr]=w(e.substr(r))});var Er,Mr=/[ap]\.?m?\.?/i,Nr=$("Hours",!0),Ar={calendar:Ei,longDateFormat:Mi,invalidDate:Ni,ordinal:Ai,dayOfMonthOrdinalParse:Oi,relativeTime:Li,months:gr,monthsShort:vr,week:xr,weekdays:_r,weekdaysMin:Sr,weekdaysShort:kr,meridiemParse:Mr},Or={},Lr={},Yr=/^\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)?)?$/,jr=/^\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)?)?$/,Rr=/Z|[+-]\d\d(?::?\d\d)?/,Hr=[["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}/]],Fr=[["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/]],Pr=/^\/?Date\((\-?\d+)/i,$r=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=k("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 and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Wr=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bt.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:m()}),qr=function(){return Date.now?Date.now():+new Date},Br=["year","quarter","month","week","day","hour","minute","second","millisecond"];Mt("Z",":"),Mt("ZZ",""),Q("Z",er),Q("ZZ",er),te(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(er,e)});var Ur=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var zr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Bt.fn=Ct.prototype,Bt.invalid=Tt;var Gr=Gt(1,"add"),Xr=Gt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Zr=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),Q("G",Ji),Q("g",Ji),Q("GG",Ui,Wi),Q("gg",Ui,Wi),Q("GGGG",Xi,qi),Q("gggg",Xi,qi),Q("GGGGG",Zi,Bi),Q("ggggg",Zi,Bi),ne(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),ne(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),z("Q",0,"Qo","quarter"),j("quarter","Q"),F("quarter",7),Q("Q",$i),te("Q",function(e,t){t[ar]=3*(w(e)-1)}),z("D",["DD",2],"Do","date"),j("date","D"),F("date",9),Q("D",Ui),Q("DD",Ui,Wi),Q("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),te(["D","DD"],sr),te("Do",function(e,t){t[sr]=w(e.match(Ui)[0],10)});var Qr=$("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),F("dayOfYear",4),Q("DDD",Gi),Q("DDDD",Ii),te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),z("m",["mm",2],0,"minute"),j("minute","m"),F("minute",14),Q("m",Ui),Q("mm",Ui,Wi),te(["m","mm"],ur);var Jr=$("Minutes",!1);z("s",["ss",2],0,"second"),j("second","s"),F("second",15),Q("s",Ui),Q("ss",Ui,Wi),te(["s","ss"],cr);var Kr=$("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),F("millisecond",16),Q("S",Gi,$i),Q("SS",Gi,Wi),Q("SSS",Gi,Ii);var eo;for(eo="SSSS";eo.length<=9;eo+="S")Q(eo,Qi);for(eo="S";eo.length<=9;eo+="S")te(eo,Pn);var to=$("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var no=v.prototype;no.add=Gr,no.calendar=Qt,no.clone=Jt,no.diff=an,no.endOf=bn,no.format=dn,no.from=fn,no.fromNow=hn,no.to=pn,no.toNow=mn,no.get=q,no.invalidAt=En,no.isAfter=Kt,no.isBefore=en,no.isBetween=tn,no.isSame=nn,no.isSameOrAfter=rn,no.isSameOrBefore=on,no.isValid=Cn,no.lang=Zr,no.locale=gn,no.localeData=vn,no.max=Ir,no.min=Wr,no.parsingFlags=Dn,no.set=B,no.startOf=yn,no.subtract=Xr,no.toArray=kn,no.toObject=Sn,no.toDate=_n,no.toISOString=un,no.inspect=cn,no.toJSON=Tn,no.toString=ln,no.unix=xn,no.valueOf=wn,no.creationData=Mn,no.year=wr,no.isLeapYear=ve,no.weekYear=An,no.isoWeekYear=On,no.quarter=no.quarters=Hn,no.month=ce,no.daysInMonth=de,no.week=no.weeks=De,no.isoWeek=no.isoWeeks=Ee,no.weeksInYear=Yn,no.isoWeeksInYear=Ln,no.date=Qr,no.day=no.days=Re,no.weekday=He,no.isoWeekday=Fe,no.dayOfYear=Fn,no.hour=no.hours=Nr,no.minute=no.minutes=Jr,no.second=no.seconds=Kr,no.millisecond=no.milliseconds=to,no.utcOffset=Lt,no.utc=jt,no.local=Rt,no.parseZone=Ht,no.hasAlignedHourOffset=Ft,no.isDST=Pt,no.isLocal=Wt,no.isUtcOffset=It,no.isUtc=qt,no.isUTC=qt,no.zoneAbbr=$n,no.zoneName=Wn,no.dates=k("dates accessor is deprecated. Use date instead.",Qr),no.months=k("months accessor is deprecated. Use month instead",ce),no.years=k("years accessor is deprecated. Use year instead",wr),no.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Yt),no.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$t);var io=E.prototype;io.calendar=M,io.longDateFormat=N,io.invalidDate=A,io.ordinal=O,io.preparse=Bn,io.postformat=Bn,io.relativeTime=L,io.pastFuture=Y,io.set=C,io.months=oe,io.monthsShort=ae,io.monthsParse=le,io.monthsRegex=he,io.monthsShortRegex=fe,io.week=Se,io.firstDayOfYear=Ce,io.firstDayOfWeek=Te,io.weekdays=Ae,io.weekdaysMin=Le,io.weekdaysShort=Oe,io.weekdaysParse=je,io.weekdaysRegex=Pe,io.weekdaysShortRegex=$e,io.weekdaysMinRegex=We,io.isPM=Ve,io.meridiem=Ge,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",Je),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",tt);var ro=Math.abs,oo=ui("ms"),ao=ui("s"),so=ui("m"),lo=ui("h"),uo=ui("d"),co=ui("w"),fo=ui("M"),ho=ui("y"),po=di("milliseconds"),mo=di("seconds"),go=di("minutes"),vo=di("hours"),yo=di("days"),bo=di("months"),wo=di("years"),xo=Math.round,_o={ss:44,s:45,m:45,h:22,d:26,M:11},ko=Math.abs,So=Ct.prototype;return So.isValid=St,So.abs=Kn,So.add=ti,So.subtract=ni,So.as=si,So.asMilliseconds=oo,So.asSeconds=ao,So.asMinutes=so,So.asHours=lo,So.asDays=uo,So.asWeeks=co,So.asMonths=fo,So.asYears=ho,So.valueOf=li,So._bubble=ri,So.get=ci,So.milliseconds=po,So.seconds=mo,So.minutes=go,So.hours=vo,So.days=yo,So.weeks=fi,So.months=bo,So.years=wo,So.humanize=vi,So.toISOString=yi,So.toString=yi,So.toJSON=yi,So.locale=gn,So.localeData=vn,So.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yi),So.lang=Zr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Q("x",Ji),Q("X",tr),te("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),te("x",function(e,t,n){n._d=new Date(w(e))}),e.version="2.18.1",t(bt),e.fn=no,e.min=xt,e.max=_t,e.now=qr,e.utc=d,e.unix=In,e.months=Gn, -e.isDate=s,e.locale=Je,e.invalid=m,e.duration=Bt,e.isMoment=y,e.weekdays=Zn,e.parseZone=qn,e.localeData=tt,e.isDuration=Dt,e.monthsShort=Xn,e.weekdaysMin=Jn,e.defineLocale=Ke,e.updateLocale=et,e.locales=nt,e.weekdaysShort=Qn,e.normalizeUnits=R,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Zt,e.prototype=no,e}),!function(e){"use strict";"function"==typeof define&&define.amd?define(e):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=e():"undefined"!=typeof Package?Sortable=e():window.Sortable=e()}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=v({},t),e[H]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var i in n)!(i in t)&&(t[i]=n[i]);V(t);for(var o in this)"_"===o.charAt(0)&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&W,r(e,"mousedown",this._onTapStart),r(e,"touchstart",this._onTapStart),this.nativeDraggable&&(r(e,"dragover",this),r(e,"dragenter",this)),U.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){x&&x.state!==e&&(s(x,"display",e?"none":""),!e&&x.state&&_.insertBefore(x,y),x.state=e)}function n(e,t,n){if(e){n=n||P,t=t.split(".");var i=t.shift().toUpperCase(),r=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");do if(">*"===i&&e.parentNode===n||(""===i||e.nodeName.toUpperCase()==i)&&(!t.length||((" "+e.className+" ").match(r)||[]).length==t.length))return e;while(e!==n&&(e=e.parentNode))}return null}function i(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}function a(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(R," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(R," ")}}function s(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return P.defaultView&&P.defaultView.getComputedStyle?n=P.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function l(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;o>r;r++)n(i[r],r);return i}return[]}function u(e,t,n,i,r,o,a){var s=P.createEvent("Event"),l=(e||t[H]).options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);s.initEvent(n,!0,!0),s.to=t,s.from=r||t,s.item=i||t,s.clone=x,s.oldIndex=o,s.newIndex=a,t.dispatchEvent(s),l[u]&&l[u].call(e,s)}function c(e,t,n,i,r,o){var a,s,l=e[H],u=l.options.onMove;return a=P.createEvent("Event"),a.initEvent("move",!0,!0),a.to=t,a.from=e,a.dragged=n,a.draggedRect=i,a.related=r||t,a.relatedRect=o||t.getBoundingClientRect(),e.dispatchEvent(a),u&&(s=u.call(l,a)),s}function d(e){e.draggable=!1}function f(){q=!1}function h(e,t){var n=e.lastElementChild,i=n.getBoundingClientRect();return(t.clientY-(i.top+i.height)>5||t.clientX-(i.right+i.width)>5)&&n}function p(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function m(e){var t=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function g(e,t){var n,i;return function(){void 0===n&&(n=arguments,i=this,setTimeout(function(){1===n.length?e.call(i,n[0]):e.apply(i,n),n=void 0},t))}}function v(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var y,b,w,x,_,k,S,T,C,D,E,M,N,A,O,L,Y,j={},R=/\s+/g,H="Sortable"+(new Date).getTime(),F=window,P=F.document,$=F.parseInt,W=!!("draggable"in P.createElement("div")),I=function(e){return e=P.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),q=!1,B=Math.abs,U=([].slice,[]),z=g(function(e,t,n){if(n&&t.scroll){var i,r,o,a,s=t.scrollSensitivity,l=t.scrollSpeed,u=e.clientX,c=e.clientY,d=window.innerWidth,f=window.innerHeight;if(T!==n&&(S=t.scroll,T=n,S===!0)){S=n;do if(S.offsetWidth=d-u)-(s>=u),a=(s>=f-c)-(s>=c),(o||a)&&(i=F)),(j.vx!==o||j.vy!==a||j.el!==i)&&(j.el=i,j.vx=o,j.vy=a,clearInterval(j.pid),i&&(j.pid=setInterval(function(){i===F?F.scrollTo(F.pageXOffset+o*l,F.pageYOffset+a*l):(a&&(i.scrollTop+=a*l),o&&(i.scrollLeft+=o*l))},24)))}},30),V=function(e){var t=e.group;t&&"object"==typeof t||(t=e.group={name:t}),["pull","put"].forEach(function(e){e in t||(t[e]=!0)}),e.groups=" "+t.name+(t.put.join?" "+t.put.join(" "):"")+" "};return e.prototype={constructor:e,_onTapStart:function(e){var t=this,i=this.el,r=this.options,o=e.type,a=e.touches&&e.touches[0],s=(a||e).target,l=s,c=r.filter;if(!("mousedown"===o&&0!==e.button||r.disabled)&&(s=n(s,r.draggable,i))){if(M=m(s),"function"==typeof c){if(c.call(this,e,s,this))return u(t,l,"filter",s,i,M),void e.preventDefault()}else if(c&&(c=c.split(",").some(function(e){return e=n(l,e.trim(),i),e?(u(t,e,"filter",s,i,M),!0):void 0})))return void e.preventDefault();(!r.handle||n(l,r.handle,i))&&this._prepareDragStart(e,a,s)}},_prepareDragStart:function(e,t,n){var i,o=this,s=o.el,u=o.options,c=s.ownerDocument;n&&!y&&n.parentNode===s&&(O=e,_=s,y=n,b=y.parentNode,k=y.nextSibling,A=u.group,i=function(){o._disableDelayedDrag(),y.draggable=!0,a(y,o.options.chosenClass,!0),o._triggerDragStart(t)},u.ignore.split(",").forEach(function(e){l(y,e.trim(),d)}),r(c,"mouseup",o._onDrop),r(c,"touchend",o._onDrop),r(c,"touchcancel",o._onDrop),u.delay?(r(c,"mouseup",o._disableDelayedDrag),r(c,"touchend",o._disableDelayedDrag),r(c,"touchcancel",o._disableDelayedDrag),r(c,"mousemove",o._disableDelayedDrag),r(c,"touchmove",o._disableDelayedDrag),o._dragStartTimer=setTimeout(i,u.delay)):i())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),o(e,"mouseup",this._disableDelayedDrag),o(e,"touchend",this._disableDelayedDrag),o(e,"touchcancel",this._disableDelayedDrag),o(e,"mousemove",this._disableDelayedDrag),o(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(O={target:y,clientX:e.clientX,clientY:e.clientY},this._onDragStart(O,"touch")):this.nativeDraggable?(r(y,"dragend",this),r(_,"dragstart",this._onDragStart)):this._onDragStart(O,!0);try{P.selection?P.selection.empty():window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){_&&y&&(a(y,this.options.ghostClass,!0),e.active=this,u(this,_,"start",y,_,M))},_emulateDragOver:function(){if(L){if(this._lastX===L.clientX&&this._lastY===L.clientY)return;this._lastX=L.clientX,this._lastY=L.clientY,I||s(w,"display","none");var e=P.elementFromPoint(L.clientX,L.clientY),t=e,n=" "+this.options.group.name,i=U.length;if(t)do{if(t[H]&&t[H].options.groups.indexOf(n)>-1){for(;i--;)U[i]({clientX:L.clientX,clientY:L.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);I||s(w,"display","")}},_onTouchMove:function(t){if(O){e.active||this._dragStarted(),this._appendGhost();var n=t.touches?t.touches[0]:t,i=n.clientX-O.clientX,r=n.clientY-O.clientY,o=t.touches?"translate3d("+i+"px,"+r+"px,0)":"translate("+i+"px,"+r+"px)";Y=!0,L=n,s(w,"webkitTransform",o),s(w,"mozTransform",o),s(w,"msTransform",o),s(w,"transform",o),t.preventDefault()}},_appendGhost:function(){if(!w){var e,t=y.getBoundingClientRect(),n=s(y),i=this.options;w=y.cloneNode(!0),a(w,i.ghostClass,!1),a(w,i.fallbackClass,!0),s(w,"top",t.top-$(n.marginTop,10)),s(w,"left",t.left-$(n.marginLeft,10)),s(w,"width",t.width),s(w,"height",t.height),s(w,"opacity","0.8"),s(w,"position","fixed"),s(w,"zIndex","100000"),s(w,"pointerEvents","none"),i.fallbackOnBody&&P.body.appendChild(w)||_.appendChild(w),e=w.getBoundingClientRect(),s(w,"width",2*t.width-e.width),s(w,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,i=this.options;this._offUpEvents(),"clone"==A.pull&&(x=y.cloneNode(!0),s(x,"display","none"),_.insertBefore(x,y)),t?("touch"===t?(r(P,"touchmove",this._onTouchMove),r(P,"touchend",this._onDrop),r(P,"touchcancel",this._onDrop)):(r(P,"mousemove",this._onTouchMove),r(P,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",i.setData&&i.setData.call(this,n,y)),r(P,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(e){var i,r,o,a=this.el,l=this.options,u=l.group,d=u.put,p=A===u,m=l.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),!l.dragoverBubble&&e.stopPropagation()),Y=!0,A&&!l.disabled&&(p?m||(o=!_.contains(y)):A.pull&&d&&(A.name===u.name||d.indexOf&&~d.indexOf(A.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(z(e,l,this.el),q)return;if(i=n(e.target,l.draggable,a),r=y.getBoundingClientRect(),o)return t(!0),void(x||k?_.insertBefore(y,x||k):m||_.appendChild(y));if(0===a.children.length||a.children[0]===w||a===e.target&&(i=h(a,e))){if(i){if(i.animated)return;v=i.getBoundingClientRect()}t(p),c(_,a,y,r,i,v)!==!1&&(y.contains(a)||(a.appendChild(y),b=a),this._animate(r,y),i&&this._animate(v,i))}else if(i&&!i.animated&&i!==y&&void 0!==i.parentNode[H]){C!==i&&(C=i,D=s(i),E=s(i.parentNode));var g,v=i.getBoundingClientRect(),S=v.right-v.left,T=v.bottom-v.top,M=/left|right|inline/.test(D.cssFloat+D.display)||"flex"==E.display&&0===E["flex-direction"].indexOf("row"),N=i.offsetWidth>y.offsetWidth,O=i.offsetHeight>y.offsetHeight,L=(M?(e.clientX-v.left)/S:(e.clientY-v.top)/T)>.5,j=i.nextElementSibling,R=c(_,a,y,r,i,v);if(R!==!1){if(q=!0,setTimeout(f,30),t(p),1===R||-1===R)g=1===R;else if(M){var F=y.offsetTop,P=i.offsetTop;g=F===P?i.previousElementSibling===y&&!N||L&&N:P>F}else g=j!==y&&!O||L&&O;y.contains(a)||(g&&!j?a.appendChild(y):i.parentNode.insertBefore(y,g?j:i)),b=y.parentNode,this._animate(r,y),this._animate(v,i)}}}},_animate:function(e,t){var n=this.options.animation;if(n){var i=t.getBoundingClientRect();s(t,"transition","none"),s(t,"transform","translate3d("+(e.left-i.left)+"px,"+(e.top-i.top)+"px,0)"),t.offsetWidth,s(t,"transition","all "+n+"ms"),s(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){s(t,"transition",""),s(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;o(P,"touchmove",this._onTouchMove),o(e,"mouseup",this._onDrop),o(e,"touchend",this._onDrop),o(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,i=this.options;clearInterval(this._loopId),clearInterval(j.pid),clearTimeout(this._dragStartTimer),o(P,"mousemove",this._onTouchMove),this.nativeDraggable&&(o(P,"drop",this),o(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(Y&&(t.preventDefault(),!i.dropBubble&&t.stopPropagation()),w&&w.parentNode.removeChild(w),y&&(this.nativeDraggable&&o(y,"dragend",this),d(y),a(y,this.options.ghostClass,!1),a(y,this.options.chosenClass,!1),_!==b?(N=m(y),N>=0&&(u(null,b,"sort",y,_,M,N),u(this,_,"sort",y,_,M,N),u(null,b,"add",y,_,M,N),u(this,_,"remove",y,_,M,N))):(x&&x.parentNode.removeChild(x),y.nextSibling!==k&&(N=m(y),N>=0&&(u(this,_,"update",y,_,M,N),u(this,_,"sort",y,_,M,N)))),e.active&&((null===N||-1===N)&&(N=M),u(this,_,"end",y,_,M,N),this.save())),_=y=b=w=k=x=S=T=O=L=Y=N=C=D=A=e.active=null)},handleEvent:function(e){var t=e.type;"dragover"===t||"dragenter"===t?y&&(this._onDragOver(e),i(e)):("drop"===t||"dragend"===t)&&this._onDrop(e)},toArray:function(){for(var e,t=[],i=this.el.children,r=0,o=i.length,a=this.options;o>r;r++)e=i[r],n(e,a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||p(e));return t},sort:function(e){var t={},i=this.el;this.toArray().forEach(function(e,r){var o=i.children[r];n(o,this.options.draggable,i)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;return void 0===t?n[e]:(n[e]=t,void("group"===e&&V(n)))},destroy:function(){var e=this.el;e[H]=null,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),U.splice(U.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:r,off:o,css:s,find:l,is:function(e,t){return!!n(e,t,e)},extend:v,throttle:g,closest:n,toggleClass:a,index:m},e.create=function(t,n){return new e(t,n)},e.version="1.4.2",e}),!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.salvattore=t()}(this,function(){window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;t.type="text/css",t.id="matchmediajs-test",n.parentNode.insertBefore(t,n),i="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===i.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){"use strict";if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,i=0,r=[],o=function(t){clearTimeout(i),i=setTimeout(function(){for(var t=0,n=r.length;n>t;t++){var i=r[t].mql,o=r[t].listeners||[],a=e(i.media).matches;if(a!==i.matches){i.matches=a;for(var s=0,l=o.length;l>s;s++)o[s].call(window,i)}}},30)};window.matchMedia=function(i){var a=e(i),s=[],l=0;return a.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",o,!0)),0===l&&(l=r.push({mql:a,listeners:s})),s.push(e))},a.removeListener=function(e){for(var t=0,n=s.length;n>t;t++)s[t]===e&&s.splice(t,1)},a}}(),function(){"use strict";for(var e=0,t=["ms","moz","webkit","o"],n=0;n *:nth-child("+a+"n-"+d+")",u.push(n.querySelectorAll(r));u.forEach(function(e){var n=t.createElement("div"),i=t.createDocumentFragment();n.className=l.join(" "),Array.prototype.forEach.call(e,function(e){i.appendChild(e)}),n.appendChild(i),c.appendChild(n)}),e.appendChild(c),s(e,"columns",a)},i.removeColumns=function(n){var i=t.createRange();i.selectNodeContents(n);var r=Array.prototype.filter.call(i.extractContents().childNodes,function(t){return t instanceof e.HTMLElement}),o=r.length,a=r[0].childNodes.length,l=new Array(a*o);Array.prototype.forEach.call(r,function(e,t){Array.prototype.forEach.call(e.children,function(e,n){l[n*o+t]=e})});var u=t.createElement("div");return s(u,"columns",0),l.filter(function(e){return!!e}).forEach(function(e){u.appendChild(e)}),u},i.recreateColumns=function(t){e.requestAnimationFrame(function(){i.addColumns(t,i.removeColumns(t));var e=new CustomEvent("columnsChange");t.dispatchEvent(e)})},i.mediaQueryChange=function(e){e.matches&&Array.prototype.forEach.call(r,i.recreateColumns)},i.getCSSRules=function(e){var t;try{t=e.sheet.cssRules||e.sheet.rules}catch(n){return[]}return t||[]},i.getStylesheets=function(){var e=Array.prototype.slice.call(t.querySelectorAll("style"));return e.forEach(function(t,n){"text/css"!==t.type&&""!==t.type&&e.splice(n,1)}),Array.prototype.concat.call(e,Array.prototype.slice.call(t.querySelectorAll("link[rel='stylesheet']")))},i.mediaRuleHasColumnsSelector=function(e){var t,n;try{t=e.length}catch(i){t=0}for(;t--;)if(n=e[t],n.selectorText&&n.selectorText.match(/\[data-columns\](.*)::?before$/))return!0;return!1},i.scanMediaQueries=function(){var t=[];if(e.matchMedia){i.getStylesheets().forEach(function(e){Array.prototype.forEach.call(i.getCSSRules(e),function(e){try{e.media&&e.cssRules&&i.mediaRuleHasColumnsSelector(e.cssRules)&&t.push(e)}catch(n){}})});var n=o.filter(function(e){return-1===t.indexOf(e)});a.filter(function(e){return-1!==n.indexOf(e.rule)}).forEach(function(e){e.mql.removeListener(i.mediaQueryChange)}),a=a.filter(function(e){return-1===n.indexOf(e.rule)}),t.filter(function(e){return-1==o.indexOf(e)}).forEach(function(t){var n=e.matchMedia(t.media.mediaText);n.addListener(i.mediaQueryChange),a.push({rule:t,mql:n})}),o.length=0,o=t}},i.rescanMediaQueries=function(){i.scanMediaQueries(),Array.prototype.forEach.call(r,i.recreateColumns)},i.nextElementColumnIndex=function(e,t){var n,i,r,o=e.children,a=o.length,s=0,l=0;for(r=0;a>r;r++)n=o[r],i=n.children.length+(t[r].children||t[r].childNodes).length,0===s&&(s=i),s>i&&(l=r,s=i);return l},i.createFragmentsList=function(e){for(var n=new Array(e),i=0;i!==e;)n[i]=t.createDocumentFragment(),i++;return n},i.appendElements=function(e,t){var n=e.children,r=n.length,o=i.createFragmentsList(r);Array.prototype.forEach.call(t,function(t){var n=i.nextElementColumnIndex(e,o);o[n].appendChild(t)}),Array.prototype.forEach.call(n,function(e,t){e.appendChild(o[t])})},i.prependElements=function(e,n){var r=e.children,o=r.length,a=i.createFragmentsList(o),s=o-1;n.forEach(function(e){var t=a[s];t.insertBefore(e,t.firstChild),0===s?s=o-1:s--}),Array.prototype.forEach.call(r,function(e,t){e.insertBefore(a[t],e.firstChild)});for(var l=t.createDocumentFragment(),u=n.length%o;0!==u--;)l.appendChild(e.lastChild);e.insertBefore(l,e.firstChild)},i.registerGrid=function(n){if("none"!==e.getComputedStyle(n).display){var o=t.createRange();o.selectNodeContents(n);var a=t.createElement("div");a.appendChild(o.extractContents()),s(a,"columns",0),i.addColumns(n,a),r.push(n)}},i.init=function(){var e=t.createElement("style");e.innerHTML="[data-columns]::before{display:block;visibility:hidden;position:absolute;font-size:1px;}",t.head.appendChild(e);var n=t.querySelectorAll("[data-columns]");Array.prototype.forEach.call(n,i.registerGrid),i.scanMediaQueries()},i.init(),{appendElements:i.appendElements,prependElements:i.prependElements,registerGrid:i.registerGrid,recreateColumns:i.recreateColumns,rescanMediaQueries:i.rescanMediaQueries,init:i.init,append_elements:i.appendElements,prepend_elements:i.prependElements,register_grid:i.registerGrid,recreate_columns:i.recreateColumns,rescan_media_queries:i.rescanMediaQueries}}(window,window.document);return e}),function(e){"use strict";var t,n="animationend",i=!1,r={selectedLinks:{}},o=$(".batch-trigger"),a=null,s=function(){l(),S(),c(),u(),d(),f(),h(),p(),m(),g(),v(jQuery),b(),x(),_(),shaarli.isAuth&&(y(),w())},l=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),r=i.length>>>0;if(0===r)return-1;if(n=+t||0,1/0===Math.abs(n)&&(n=0),n>=r)return-1;for(n=Math.max(0<=n?n:r-Math.abs(n),0);n-1||$(e.target).parents(".popup-trigger").length>=1||$.inArray("popup",e.target.classList)>-1||$(e.target).parents(".popup").length>=1||D()}),$(".popup-trigger").on("click",function(){D();var e=$("#"+$(this).data("popup"));e.is(":visible")?k.fadeOut(e):k.slideFromTop(e)}),$(".popup-close").on("click",function(){D()}),$(".filters-links-per-page a").on("click",function(e){D()}),$(".popup-filter .switch label").on("click",function(){var e=$(this).data("url");window.location.href=e})},d=function(){$(".button-delete").on("click",function(e){e.preventDefault();var t=$(this).attr("href");return T("Delete link","Are you sure you want to delete this link ?","confirm",function(e){e&&(window.location.href=t)}),!1}),$("[name=delete_link]").on("click",function(e){e.preventDefault();var t=$(this).attr("href");return T("Delete link","Are you sure you want to delete this link ?","confirm",function(e){e&&(window.location.href=t)}),!1}),$("#button-delete").on("click",function(e){e.preventDefault();var t=$("#fromtag").val(),n=$(this).closest("form");return T('Delete the tag "'+t+'"','Are you sure you want to delete the tag "'+t+'" from all links ?',"confirm",function(e){e&&(n.append(''),n.submit())}),!1}),$(".bookmarklet").on("click",function(e){return e.preventDefault(),T("Information","Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link.","alert"),!1}),$(".button-expand").on("click",function(e){E($(this))}).each(function(){parseInt(localStorage.getItem("expand"))&&E($(this))}),$(".delete-tag").on("click",function(e){e.preventDefault();var t=$(this),n=t.data("tag"),i=$("#token").val();T('Delete the tag "'+n+'"','Are you sure you want to delete the tag "'+n+'" from all links ?',"confirm",function(e){e&&$.ajax({url:"?do=changetag",method:"post",contentType:"application/x-www-form-urlencoded",data:{deletetag:1,fromtag:n,token:i},success:function(){t.closest(".list-item").remove()},error:function(){T("Error","Oops! something went wrong...","alert")},complete:function(){L()}})})}),$(".rename-tag").on("click",function(e){e.preventDefault();var t=$(this),n=t.closest(".list-item-flex"),i=t.data("tag"),r=$("#token").val(),o=$("").addClass("text-feedback").text("renaming...");T("Rename tag "+i,"Please write the new name of this tag below.","prompt",function(e,t){e&&(n.find(".list-item-middle").append(o),$.ajax({url:"?do=changetag",method:"post",contentType:"application/x-www-form-urlencoded",data:{fromtag:i,totag:t,token:r,renametag:"Rename tag"},success:function(){n.find(".tag-link").attr("href","?searchtags="+encodeURIComponent(t)).text(t),n.find("[data-tag]").data("tag",t),n.find(".count").attr("href","?addtag="+encodeURIComponent(t)),n.find(".rename-tag").attr("href","?do=changetag&fromtag="+encodeURIComponent(t)),o.addClass("text-success").text("renamed successfully!")},error:function(){o.addClass("text-error").text("something went wrong")},complete:function(){L(),setTimeout(function(){o.remove()},5e3)}}))},{buttonLabelOk:"Rename",value:i})}),$("[data-href]").on("click",function(){var e=$(this).data("href");e&&(document.location.href=e)}),o.on("click",function(){M()})},f=function(){var e=function(){var e=$("#search-overlay");k.fadeIn(e),e.find("#searchform_value").focus().select(),k.slideFromTop(e.find(".content-fullscreen"))};$("#button-search").on("click",e),$("#search-overlay").on("click",function(e){0===$(e.target).parents("#form-search").length&&"form"!==e.target.nodeName.toLowerCase()&&k.fadeOut($(this))}),$(document).on("keyup",function(t){var n=t.which||t.keyCode;if(27===n){var i=$("#search-overlay");k.fadeOut(i)}else 83===n&&"INPUT"!==t.target.nodeName&&"TEXTAREA"!==t.target.nodeName&&"SELECT"!==t.target.nodeName&&e()}),$("#button-filter").on("click",function(){var e=$("#searchform_value").val().trim();return $("#tagfilter_value").val(e),$("#hidden-tag-form").submit(),!1})},h=function(){!shaarli.fromNow||"true"!==shaarli.fromNow&&"1"!==shaarli.fromNow&&1!==shaarli.fromNow||$(".link-actual-date").each(function(e){var t=shaarli.datePattern,n="";n=t?moment($(this).html(),t).fromNow():moment(new Date($(this).html())).fromNow(),$(this).html(n)})},p=function(){$(".icon-qrcode, .qrcode").removeAttr("onclick").on("click",function(e){e.preventDefault();var t=$(this).attr("href");return Y.addListener("qrcode",function(e){Y.hide()}),Y.addContent("qrcode",'QR Code'),Y.show(),!1})},m=function(){$("input[type=text],input[type=search],input[type=password],textarea").on("focus",function(){var e=$(this),t=e.attr("id");if("string"==typeof t&&""!==t){var n=$("label[for="+t+"]");n.length>0&&n.addClass("active")}}).on("blur",function(){var e=$(this),t=e.attr("id");if("string"==typeof t&&""!==t){var n=$("label[for="+t+"]");n.length>0&&n.removeClass("active")}})},g=function(){$(".ripple, .button, .button-raised, .button-inverse").off("mousedown.tinymaterialripple").not("[disabled]").on("mousedown.tinymaterialripple",function(e){var t=this,n=e.pageX-$(e.target).offset().left,i=e.pageY-$(e.target).offset().top,r=function(e){e!=t&&e&&(n+=e.offsetLeft,i+=e.offsetTop,r(e.offsetParent))};r(e.target);var t=$(t),o=20,a=$("
");a.addClass("ripple-effect"),a.css({top:i-o/2+"px",left:n-o/2+"px",background:t.data("ripple-color")}).appendTo(t),window.setTimeout(function(){a.remove()},2e3)})},v=function(e){if(e("input[data-multiple]").length>0){var t;e("input[data-multiple]").each(function(){t=new Awesomplete(this,{filter:function(e,t){return Awesomplete.FILTER_CONTAINS(e,t.match(/[^ ]*$/)[0])},replace:function(e){var t=this.input.value.match(/^.+ \s*|/)[0];this.input.value=t+e+" "},minChars:1}),e(this).on("click",function(){t.close()})});var n=jQuery("#lf_tags");n.on("input",function(){for(proposedTags=n.data("list").replace(/,/g,"").split(" "),reg=/(\w+) /g;null!==(match=reg.exec(n.val()));)id=proposedTags.indexOf(match[1]),id!=-1&&proposedTags.splice(id,1);t.list=proposedTags})}},y=function(){$(".list-sortable").each(function(){Sortable.create(this,{animation:200,draggable:".list-item-sortable",handle:".list-sortable-handle",forceFallback:!0,onEnd:function(e){var t=0,n=$(e.target);n.find(".list-item-sortable").each(function(){$(this).data("order",t).find("[type=hidden]").val(t),t++})}})})},b=function(){new Blazy},w=function(){function e(e){var t=location.href,n=t.substring(0,t.lastIndexOf("/")),i={name:document.title,description:"The personal, minimalist, super-fast, no-database delicious clone.",author:"Shaarli",version:"1.0.0",iconURL:n+"/tpl/material/images/favicons/favicon-96x96.png",icon32URL:n+"/tpl/material/images/favicons/favicon-32x32.png",icon64URL:n+"/tpl/material/images/favicons/favicon-64x64.png",shareURL:n+"?post=%{url}&title=%{title}&description=%{description}&source=firefoxsocialapi",homepageURL:n};e.setAttribute("data-service",JSON.stringify(i));var r=new CustomEvent("ActivateSocialFeature");e.dispatchEvent(r)}var t="undefined"!=typeof InstallTrigger;t?$("#firefoxsocial").on("click",function(){e(this)}):$("#firefoxsocial").attr("disabled","disabled")},x=function(){Y.get().on("click",function(e){"overlay"===e.target.id&&Y.hide(),Y.triggerEvent(e)})},_=function(){if(0!==$(".page-thumbnails").length){var e=$(".thumbnail-placeholder"),t=$(".thumbnail-link-title"),n=$(".progress-current"),i=$(".progress-actual"),r=0,o=$('[name="ids"]').val().split(","),a=o.length,s=function(l){console.log("Updating thunmbnail #"+r+" with id "+l),$.ajax({url:"?do=ajax_thumb_update",method:"post",dataType:"json",data:"id="+o[r],success:function(l){r++,console.log("Response received: "+JSON.stringify(l)),t.html(l.title),l.thumbnail?e.html(''):e.empty(),n.text(r),i.css("width",100*r/o.length+"%"),r