diff --git a/material/build/scripts.min.js b/material/build/scripts.min.js index 8968ba5..d8e5ebb 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"),_t={position:"absolute",visibility:"hidden",display:"block"},xt={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=He.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 xt&&(o=xt[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,_t,function(){return H(e,t,i)}):H(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+Re[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=R,R.prototype={constructor:R,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=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var t,n=R.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):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.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)}}},R.propHooks.scrollTop=R.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=R.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,He.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,Ht=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)?Ht&&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):Ht&&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;Ht&&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}}),Ht&&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 Rt=/^(?: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):Rt.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,_,k=n;2!==w&&(w=2,l&&e.clearTimeout(l),c=void 0,s=r||"",x.readyState=t>0?4:0,o=t>=200&&300>t||304===t,i&&(b=G(f,x,i)),b=X(f,b,x,o),o?(f.ifModified&&(_=x.getResponseHeader("Last-Modified"),_&&(he.lastModified[a]=_),_=x.getResponseHeader("etag"),_&&(he.etag[a]=_)),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))),x.status=t,x.statusText=(n||k)+"",o?m.resolveWith(h,[d,k,x]):m.rejectWith(h,[x,k,y]),x.statusCode(v),v=void 0,u&&p.trigger(o?"ajaxSuccess":"ajaxError",[x,f,o?d:y]),g.fireWith(h,[x,k]),u&&(p.trigger("ajaxComplete",[x,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,_="canceled",x={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 x.always(e[x.status]);return this},abort:function(e){var t=e||_;return c&&c.abort(t),i(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.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,x),2===w)return x;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]&&x.setRequestHeader("If-Modified-Since",he.lastModified[a]),he.etag[a]&&x.setRequestHeader("If-None-Match",he.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.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)x.setRequestHeader(o,f.headers[o]);if(f.beforeSend&&(f.beforeSend.call(h,x,f)===!1||2===w))return x.abort();_="abort";for(o in{success:1,error:1,complete:1})x[o](f[o]);if(c=z(Jt,f,n,x)){if(x.readyState=1,u&&p.trigger("ajaxSend",[x,f]),2===w)return x;f.async&&f.timeout>0&&(l=e.setTimeout(function(){x.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 x},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=xe.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;Awesomplete.count=(Awesomplete.count||0)+1,this.count=Awesomplete.count,this.isOpened=!1,this.input=n(e),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-owns","awesomplete_list_"+this.count),this.input.setAttribute("role","combobox"),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",role:"listbox",id:"awesomplete_list_"+this.count,inside:this.container}),this.status=n.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-atomic":!0,inside:this.container,textContent:0!=this.minChars?"Type "+this.minChars+" or more characters for results.":"Begin typing for results."}),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){e.preventDefault()},click: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,this.status.setAttribute("hidden",""),n.fire(this.input,"awesomplete-close",e||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.status.removeAttribute("hidden"),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+", list item "+(e+1)+" of "+t.length,this.input.setAttribute("aria-activedescendant",this.ul.id+"_item_"+this.index),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&&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,i){t.ul.appendChild(t.item(e,n,i))}),0===this.ul.children.length?(this.status.textContent="No results found",this.close({reason:"nomatches"})):(this.open(),this.status.textContent=this.ul.children.length+" results found")):(this.close({reason:"nomatches"}),this.status.textContent="No results found")}},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",id:"awesomplete_list_"+this.count+"_item_"+i})},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 Xe.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e){return void 0===e}function r(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function o(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){var n,i=[];for(n=0;nF(e)?(o=e+1,a=s-F(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Z(e,t,n){var i,r,o=G(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?i=a+Q(r=e.year()-1,t,n):a>Q(e.year(),t,n)?(i=a-Q(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Q(e,t,n){var i=G(e,t,n),r=G(e+1,t,n);return(F(e)-i+r)/7}function J(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=u([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),c.push(i),c.push(r),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=j(s[t]),l[t]=j(l[t]),c[t]=j(c[t]);this._weekdaysRegex=new RegExp("^("+c.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 K(){return this.hours()%12||12}function ee(e,t){N(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function te(e,t){return t._meridiemParse}function ne(e){return e?e.toLowerCase().replace("_","-"):e}function ie(e){var t=null;if(!Zt[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Vt._abbr,require("./locale/"+e),re(t)}catch(e){}return Zt[e]}function re(e,t){var n;return e&&((n=i(t)?ae(e):oe(e,t))?Vt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Vt._abbr}function oe(e,t){if(null!==t){var n,i=Xt;if(t.abbr=e,null!=Zt[e])_("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."),i=Zt[e]._config;else if(null!=t.parentLocale)if(null!=Zt[t.parentLocale])i=Zt[t.parentLocale]._config;else{if(null==(n=ie(t.parentLocale)))return Qt[t.parentLocale]||(Qt[t.parentLocale]=[]),Qt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Zt[e]=new S(k(i,t)),Qt[e]&&Qt[e].forEach(function(e){oe(e.name,e.config)}),re(e),Zt[e]}return delete Zt[e],null}function ae(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Vt;if(!t(e)){if(n=ie(e))return n;e=[e]}return function(e){for(var t,n,i,r,o=0;o=t&&y(r,n,!0)>=t-1)break;t--}o++}return Vt}(e)}function se(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[Ct]<0||11q(n[Tt],n[Ct])?Dt:n[Et]<0||24Q(n,o,a)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(s=X(n,i,r,o,a),e._a[Tt]=s.year,e._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=le(t._a[Tt],r[Tt]),(t._dayOfYear>F(a)||0===t._dayOfYear)&&(c(t)._overflowDayOfYear=!0),i=V(a,0,t._dayOfYear),t._a[Ct]=i.getUTCMonth(),t._a[Dt]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=s[n]=r[n];for(;n<7;n++)t._a[n]=s[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[Et]&&0===t._a[Mt]&&0===t._a[Nt]&&0===t._a[At]&&(t._nextDay=!0,t._a[Et]=0),t._d=(t._useUTC?V:function(e,t,n,i,r,o,a){var s=new Date(e,t,n,i,r,o,a);return e<100&&0<=e&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Et]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(c(t).weekdayMismatch=!0)}}function ce(e){var t,n,i,r,o,a,s=e._i,l=Jt.exec(s)||Kt.exec(s);if(l){for(c(e).iso=!0,t=0,n=tn.length;t>>0,i=0;in.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Te,_n.isUTC=Te,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=w("dates accessor is deprecated. Use date instead.",gn),_n.months=w("months accessor is deprecated. Use month instead",U),_n.years=w("years accessor is deprecated. Use year instead",jt),_n.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),_n.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(h(e,this),(e=pe(e))._a){var t=e._isUTC?u(e._a):ge(e._a);this._isDSTShifted=this.isValid()&&0*",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){_&&_.state!==e&&(s(_,"display",e?"none":""),!e&&_.state&&x.insertBefore(_,y),_.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(H," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(H," ")}}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[R]).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=_,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[R],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={},H=/\s+/g,R="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,x=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(x,"dragstart",this._onDragStart)):this._onDragStart(O,!0);try{P.selection?P.selection.empty():window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){x&&y&&(a(y,this.options.ghostClass,!0),e.active=this,u(this,x,"start",y,x,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[R]&&t[R].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)||x.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&&(_=y.cloneNode(!0),s(_,"display","none"),x.insertBefore(_,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=!x.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(_||k?x.insertBefore(y,_||k):m||x.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(x,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[R]){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,H=c(x,a,y,r,i,v);if(H!==!1){if(q=!0,setTimeout(f,30),t(p),1===H||-1===H)g=1===H;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),x!==b?(N=m(y),N>=0&&(u(null,b,"sort",y,x,M,N),u(this,x,"sort",y,x,M,N),u(null,b,"add",y,x,M,N),u(this,x,"remove",y,x,M,N))):(_&&_.parentNode.removeChild(_),y.nextSibling!==k&&(N=m(y),N>=0&&(u(this,x,"update",y,x,M,N),u(this,x,"sort",y,x,M,N)))),e.active&&((null===N||-1===N)&&(N=M),u(this,x,"end",y,x,M,N),this.save())),x=y=b=w=k=_=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[R]=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")},_=function(){Y.get().on("click",function(e){"overlay"===e.target.id&&Y.hide(),Y.triggerEvent(e)})},x=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++,t.text(l.title),l.thumbnail?e.html(''):e.empty(),n.text(r),i.css("width",100*r/o.length+"%"),r