text: webpackJsonp([1],[,,,,,function(module,exports,__webpack_require__){(function(jQuery,__webpack_provided_window_dot_jQuery,__webpack_provided_window_dot_moment,$,Modernizr){var __WEBPACK_LOCAL_MODULE_0__,__WEBPACK_LOCAL_MODULE_0__module,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_LOCAL_MODULE_16__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(core){if(__webpack_require__(0)&&(__WEBPACK_LOCAL_MODULE_0__module={id:"uikit",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_0__=function(){var uikit=window.UIkit||core(window,__webpack_provided_window_dot_jQuery,window.document);return uikit.load=function(res,req,onload,config){var i,resources=res.split(","),load=[],base=(config.config&&config.config.uikit&&config.config.uikit.base?config.config.uikit.base:"").replace(/\/+$/g,"");if(!base)throw new Error("Please define base path to UIkit in the requirejs config.");for(i=0;i<resources.length;i+=1){var resource=resources[i].replace(/\./g,"/");load.push(base+"/components/"+resource)}req(load,function(){onload(uikit)})},uikit}.call(__WEBPACK_LOCAL_MODULE_0__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_0__module.exports,__WEBPACK_LOCAL_MODULE_0__module),__WEBPACK_LOCAL_MODULE_0__module.loaded=!0,void 0===__WEBPACK_LOCAL_MODULE_0__&&(__WEBPACK_LOCAL_MODULE_0__=__WEBPACK_LOCAL_MODULE_0__module.exports)),!__webpack_provided_window_dot_jQuery)throw new Error("UIkit requires jQuery");window&&__webpack_provided_window_dot_jQuery&&core(window,__webpack_provided_window_dot_jQuery,window.document)}(function(global,$,doc){"use strict";var transitionEnd,animationEnd,domReady,UI={},_UI=global.UIkit?Object.create(global.UIkit):void 0;if(UI.version="2.25.0",UI.noConflict=function(){return _UI&&(global.UIkit=_UI,$.UIkit=_UI,$.fn.uk=_UI.fn),UI},UI.prefix=function(str){return str},UI.$=$,UI.$doc=UI.$(document),UI.$win=UI.$(window),UI.$html=UI.$("html"),UI.support={},UI.support.transition=(transitionEnd=function(){var name,element=doc.body||doc.documentElement,transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(name in transEndEventNames)if(void 0!==element.style[name])return transEndEventNames[name]}())&&{end:transitionEnd},UI.support.animation=(animationEnd=function(){var name,element=doc.body||doc.documentElement,animEndEventNames={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(name in animEndEventNames)if(void 0!==element.style[name])return animEndEventNames[name]}())&&{end:animationEnd},function(){Date.now=Date.now||function(){return(new Date).getTime()};for(var vendors=["webkit","moz"],i=0;i<vendors.length&&!window.requestAnimationFrame;++i){var vp=vendors[i];window.requestAnimationFrame=window[vp+"RequestAnimationFrame"],window.cancelAnimationFrame=window[vp+"CancelAnimationFrame"]||window[vp+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(callback){var now=Date.now(),nextTime=Math.max(lastTime+16,now);return setTimeout(function(){callback(lastTime=nextTime)},nextTime-now)},window.cancelAnimationFrame=clearTimeout}}(),UI.support.touch="ontouchstart"in document||global.DocumentTouch&&document instanceof global.DocumentTouch||global.navigator.msPointerEnabled&&global.navigator.msMaxTouchPoints>0||global.navigator.pointerEnabled&&global.navigator.maxTouchPoints>0||!1,UI.support.mutationobserver=global.MutationObserver||global.WebKitMutationObserver||null,UI.Utils={},UI.Utils.isFullscreen=function(){return document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.fullscreenElement||!1},UI.Utils.str2json=function(str,notevil){try{return notevil?JSON.parse(str.replace(/([\$\w]+)\s*:/g,function(_,$1){return'"'+$1+'":'}).replace(/'([^']+)'/g,function(_,$1){return'"'+$1+'"'})):new Function("","var json = "+str+"; return JSON.parse(JSON.stringify(json));")()}catch(e){return!1}},UI.Utils.debounce=function(func,wait,immediate){var timeout;return function(){var context=this,args=arguments,callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(function(){timeout=null,immediate||func.apply(context,args)},wait),callNow&&func.apply(context,args)}},UI.Utils.removeCssRules=function(selectorRegEx){var idx,idxs,stylesheet,_i,_j,_k,_len,_len1,_len2,_ref;selectorRegEx&&setTimeout(function(){try{for(_ref=document.styleSheets,_i=0,_len=_ref.length;_i<_len;_i++){for(stylesheet=_ref[_i],idxs=[],stylesheet.cssRules=stylesheet.cssRules,idx=_j=0,_len1=stylesheet.cssRules.length;_j<_len1;idx=++_j)stylesheet.cssRules[idx].type===CSSRule.STYLE_RULE&&selectorRegEx.test(stylesheet.cssRules[idx].selectorText)&&idxs.unshift(idx);for(_k=0,_len2=idxs.length;_k<_len2;_k++)stylesheet.deleteRule(idxs[_k])}}catch(_error){}},0)},UI.Utils.isInView=function(element,options){var $element=$(element);if(!$element.is(":visible"))return!1;var window_left=UI.$win.scrollLeft(),window_top=UI.$win.scrollTop(),offset=$element.offset(),left=offset.left,top=offset.top;return options=$.extend({topoffset:0,leftoffset:0},options),top+$element.height()>=window_top&&top-options.topoffset<=window_top+UI.$win.height()&&left+$element.width()>=window_left&&left-options.leftoffset<=window_left+UI.$win.width()},UI.Utils.checkDisplay=function(context,initanimation){var elements=UI.$("[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]",context||document);return context&&!elements.length&&(elements=$(context)),elements.trigger("display.uk.check"),initanimation&&("string"!=typeof initanimation&&(initanimation='[class*="uk-animation-"]'),elements.find(initanimation).each(function(){var ele=UI.$(this),anim=ele.attr("class").match(/uk\-animation\-(.+)/);ele.removeClass(anim[0]).width(),ele.addClass(anim[0])})),elements},UI.Utils.options=function(string){if("string"!=$.type(string))return string;-1!=string.indexOf(":")&&"}"!=string.trim().substr(-1)&&(string="{"+string+"}");var start=string?string.indexOf("{"):-1,options={};if(-1!=start)try{options=UI.Utils.str2json(string.substr(start))}catch(e){}return options},UI.Utils.animate=function(element,cls){var d=$.Deferred();return(element=UI.$(element)).css("display","none").addClass(cls).one(UI.support.animation.end,function(){element.removeClass(cls),d.resolve()}),element.css("display",""),d.promise()},UI.Utils.uid=function(prefix){return(prefix||"id")+(new Date).getTime()+"RAND"+Math.ceil(1e5*Math.random())},UI.Utils.template=function(str,data){for(var toc,cmd,prop,fn,tokens=str.replace(/\n/g,"\\n").replace(/\{\{\{\s*(.+?)\s*\}\}\}/g,"{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),i=0,output=[],openblocks=0;i<tokens.length;){if((toc=tokens[i]).match(/\{\{\s*(.+?)\s*\}\}/))switch(cmd=(toc=tokens[i+=1])[0],prop=toc.substring(toc.match(/^(\^|\#|\!|\~|\:)/)?1:0),cmd){case"~":output.push("for(var $i=0;$i<"+prop+".length;$i++) { var $item = "+prop+"[$i];"),openblocks++;break;case":":output.push("for(var $key in "+prop+") { var $val = "+prop+"[$key];"),openblocks++;break;case"#":output.push("if("+prop+") {"),openblocks++;break;case"^":output.push("if(!"+prop+") {"),openblocks++;break;case"/":output.push("}"),openblocks--;break;case"!":output.push("__ret.push("+prop+");");break;default:output.push("__ret.push(escape("+prop+"));")}else output.push("__ret.push('"+toc.replace(/\'/g,"\\'")+"');");i+=1}return fn=new Function("$data",["var __ret = [];","try {","with($data){",openblocks?'__ret = ["Not all blocks are closed correctly."]':output.join(""),"};","}catch(e){__ret = [e.message];}",'return __ret.join("").replace(/\\n\\n/g, "\\n");',"function escape(html) { return String(html).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');}"].join("\n")),data?fn(data):fn},UI.Utils.events={},UI.Utils.events.click=UI.support.touch?"tap":"click",global.UIkit=UI,UI.fn=function(command,options){var args=arguments,cmd=command.match(/^([a-z\-]+)(?:\.([a-z]+))?/i),component=cmd[1],method=cmd[2];return UI[component]?this.each(function(){var $this=$(this),data=$this.data(component);data||$this.data(component,data=UI[component](this,method?void 0:options)),method&&data[method].apply(data,Array.prototype.slice.call(args,1))}):($.error("UIkit component ["+component+"] does not exist."),this)},$.UIkit=UI,$.fn.uk=UI.fn,UI.langdirection="rtl"==UI.$html.attr("dir")?"right":"left",UI.components={},UI.component=function(name,def){var fn=function(element,options){var $this=this;return this.UIkit=UI,this.element=element?UI.$(element):null,this.options=$.extend(!0,{},this.defaults,options),this.plugins={},this.element&&this.element.data(name,this),this.init(),(this.options.plugins.length?this.options.plugins:Object.keys(fn.plugins)).forEach(function(plugin){fn.plugins[plugin].init&&(fn.plugins[plugin].init($this),$this.plugins[plugin]=!0)}),this.trigger("init.uk.component",[name,this]),this};return fn.plugins={},$.extend(!0,fn.prototype,{defaults:{plugins:[]},boot:function(){},init:function(){},on:function(a1,a2,a3){return UI.$(this.element||this).on(a1,a2,a3)},one:function(a1,a2,a3){return UI.$(this.element||this).one(a1,a2,a3)},off:function(evt){return UI.$(this.element||this).off(evt)},trigger:function(evt,params){return UI.$(this.element||this).trigger(evt,params)},find:function(selector){return UI.$(this.element?this.element:[]).find(selector)},proxy:function(obj,methods){var $this=this;methods.split(" ").forEach(function(method){$this[method]||($this[method]=function(){return obj[method].apply(obj,arguments)})})},mixin:function(obj,methods){var $this=this;methods.split(" ").forEach(function(method){$this[method]||($this[method]=obj[method].bind($this))})},option:function(){if(1==arguments.length)return this.options[arguments[0]]||void 0;2==arguments.length&&(this.options[arguments[0]]=arguments[1])}},def),this.components[name]=fn,this[name]=function(){var element,options;if(arguments.length)switch(arguments.length){case 1:"string"==typeof arguments[0]||arguments[0].nodeType||arguments[0]instanceof jQuery?element=$(arguments[0]):options=arguments[0];break;case 2:element=$(arguments[0]),options=arguments[1]}return element&&element.data(name)?element.data(name):new UI.components[name](element,options)},UI.domready&&UI.component.boot(name),fn},UI.plugin=function(component,name,def){this.components[component].plugins[name]=def},UI.component.boot=function(name){UI.components[name].prototype&&UI.components[name].prototype.boot&&!UI.components[name].booted&&(UI.components[name].prototype.boot.apply(UI,[]),UI.components[name].booted=!0)},UI.component.bootComponents=function(){for(var component in UI.components)UI.component.boot(component)},UI.domObservers=[],UI.domready=!1,UI.ready=function(fn){UI.domObservers.push(fn),UI.domready&&fn(document)},UI.on=function(a1,a2,a3){return a1&&a1.indexOf("ready.uk.dom")>-1&&UI.domready&&a2.apply(UI.$doc),UI.$doc.on(a1,a2,a3)},UI.one=function(a1,a2,a3){return a1&&a1.indexOf("ready.uk.dom")>-1&&UI.domready?(a2.apply(UI.$doc),UI.$doc):UI.$doc.one(a1,a2,a3)},UI.trigger=function(evt,params){return UI.$doc.trigger(evt,params)},UI.domObserve=function(selector,fn){UI.support.mutationobserver&&(fn=fn||function(){},UI.$(selector).each(function(){var element=this,$element=UI.$(element);if(!$element.data("observer"))try{var observer=new UI.support.mutationobserver(UI.Utils.debounce(function(mutations){fn.apply(element,[]),$element.trigger("changed.uk.dom")},50));observer.observe(element,{childList:!0,subtree:!0}),$element.data("observer",observer)}catch(e){}}))},UI.init=function(root){root=root||document,UI.domObservers.forEach(function(fn){fn(root)})},UI.on("domready.uk.dom",function(){UI.init(),UI.domready&&UI.Utils.checkDisplay()}),document.addEventListener("DOMContentLoaded",(domReady=function(){var memory,fn;UI.$body=UI.$("body"),UI.ready(function(context){UI.domObserve("[data-uk-observe]")}),UI.on("changed.uk.dom",function(e){UI.init(e.target),UI.Utils.checkDisplay(e.target)}),UI.trigger("beforeready.uk.dom"),UI.component.bootComponents(),requestAnimationFrame((memory={dir:{x:0,y:0},x:window.pageXOffset,y:window.pageYOffset},fn=function(){var wpxo=window.pageXOffset,wpyo=window.pageYOffset;memory.x==wpxo&&memory.y==wpyo||(wpxo!=memory.x?memory.dir.x=wpxo>memory.x?1:-1:memory.dir.x=0,wpyo!=memory.y?memory.dir.y=wpyo>memory.y?1:-1:memory.dir.y=0,memory.x=wpxo,memory.y=wpyo,UI.$doc.trigger("scrolling.uk.document",[{dir:{x:memory.dir.x,y:memory.dir.y},x:wpxo,y:wpyo}])),requestAnimationFrame(fn)},UI.support.touch&&UI.$html.on("touchmove touchend MSPointerMove MSPointerUp pointermove pointerup",fn),(memory.x||memory.y)&&fn(),fn)),UI.trigger("domready.uk.dom"),UI.support.touch&&navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&UI.$win.on("load orientationchange resize",UI.Utils.debounce(function(){var fn=function(){return $(".uk-height-viewport").css("height",window.innerHeight),fn};return fn()}(),100)),UI.trigger("afterready.uk.dom"),UI.domready=!0},"complete"!=document.readyState&&"interactive"!=document.readyState||setTimeout(domReady),domReady)),UI.$html.addClass(UI.support.touch?"uk-touch":"uk-notouch"),UI.support.touch){var exclude,hoverset=!1,selector=".uk-overlay, .uk-overlay-hover, .uk-overlay-toggle, .uk-animation-hover, .uk-has-hover";UI.$html.on("mouseenter touchstart MSPointerDown pointerdown",selector,function(){hoverset&&$(".uk-hover").removeClass("uk-hover"),hoverset=$(this).addClass("uk-hover")}).on("mouseleave touchend MSPointerUp pointerup",function(e){exclude=$(e.target).parents(selector),hoverset&&hoverset.not(exclude).removeClass("uk-hover")})}return UI}),function($){function longTap(){longTapTimeout=null,touch.last&&(void 0!==touch.el&&touch.el.trigger("longTap"),touch={})}function cancelLongTap(){longTapTimeout&&clearTimeout(longTapTimeout),longTapTimeout=null}function cancelAll(){touchTimeout&&clearTimeout(touchTimeout),tapTimeout&&clearTimeout(tapTimeout),swipeTimeout&&clearTimeout(swipeTimeout),longTapTimeout&&clearTimeout(longTapTimeout),touchTimeout=tapTimeout=swipeTimeout=longTapTimeout=null,touch={}}function isPrimaryTouch(event){return event.pointerType==event.MSPOINTER_TYPE_TOUCH&&event.isPrimary}if(!$.fn.swipeLeft){var touchTimeout,tapTimeout,swipeTimeout,longTapTimeout,gesture,touch={};$(function(){var now,delta,firstTouch,deltaX=0,deltaY=0;"MSGesture"in window&&((gesture=new MSGesture).target=document.body),$(document).on("MSGestureEnd gestureend",function(e){var swipeDirectionFromVelocity=e.originalEvent.velocityX>1?"Right":e.originalEvent.velocityX<-1?"Left":e.originalEvent.velocityY>1?"Down":e.originalEvent.velocityY<-1?"Up":null;swipeDirectionFromVelocity&&void 0!==touch.el&&(touch.el.trigger("swipe"),touch.el.trigger("swipe"+swipeDirectionFromVelocity))}).on("touchstart MSPointerDown pointerdown",function(e){("MSPointerDown"!=e.type||isPrimaryTouch(e.originalEvent))&&(firstTouch="MSPointerDown"==e.type||"pointerdown"==e.type?e:e.originalEvent.touches[0],now=Date.now(),delta=now-(touch.last||now),touch.el=$("tagName"in firstTouch.target?firstTouch.target:firstTouch.target.parentNode),touchTimeout&&clearTimeout(touchTimeout),touch.x1=firstTouch.pageX,touch.y1=firstTouch.pageY,delta>0&&delta<=250&&(touch.isDoubleTap=!0),touch.last=now,longTapTimeout=setTimeout(longTap,750),!gesture||"MSPointerDown"!=e.type&&"pointerdown"!=e.type&&"touchstart"!=e.type||gesture.addPointer(e.originalEvent.pointerId))}).on("touchmove MSPointerMove pointermove",function(e){("MSPointerMove"!=e.type||isPrimaryTouch(e.originalEvent))&&(firstTouch="MSPointerMove"==e.type||"pointermove"==e.type?e:e.originalEvent.touches[0],cancelLongTap(),touch.x2=firstTouch.pageX,touch.y2=firstTouch.pageY,deltaX+=Math.abs(touch.x1-touch.x2),deltaY+=Math.abs(touch.y1-touch.y2))}).on("touchend MSPointerUp pointerup",function(e){("MSPointerUp"!=e.type||isPrimaryTouch(e.originalEvent))&&(cancelLongTap(),touch.x2&&Math.abs(touch.x1-touch.x2)>30||touch.y2&&Math.abs(touch.y1-touch.y2)>30?swipeTimeout=setTimeout(function(){var x1,x2,y1,y2;void 0!==touch.el&&(touch.el.trigger("swipe"),touch.el.trigger("swipe"+(x1=touch.x1,x2=touch.x2,y1=touch.y1,y2=touch.y2,Math.abs(x1-x2)>=Math.abs(y1-y2)?x1-x2>0?"Left":"Right":y1-y2>0?"Up":"Down"))),touch={}},0):"last"in touch&&(isNaN(deltaX)||deltaX<30&&deltaY<30?tapTimeout=setTimeout(function(){var event=$.Event("tap");event.cancelTouch=cancelAll,void 0!==touch.el&&touch.el.trigger(event),touch.isDoubleTap?(void 0!==touch.el&&touch.el.trigger("doubleTap"),touch={}):touchTimeout=setTimeout(function(){touchTimeout=null,void 0!==touch.el&&touch.el.trigger("singleTap"),touch={}},250)},0):touch={},deltaX=deltaY=0))}).on("touchcancel MSPointerCancel",cancelAll),$(window).on("scroll",cancelAll)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(eventName){$.fn[eventName]=function(callback){return $(this).on(eventName,callback)}})}}(jQuery),function(UI){"use strict";var elements,check,cacheSvgs,stacks=[];UI.component("stackMargin",{defaults:{cls:"uk-margin-small-top",rowfirst:!1},boot:function(){UI.ready(function(context){UI.$("[data-uk-margin]",context).each(function(){var ele=UI.$(this);ele.data("stackMargin")||UI.stackMargin(ele,UI.Utils.options(ele.attr("data-uk-margin")))})})},init:function(){var fn,$this=this;UI.$win.on("resize orientationchange",(fn=function(){$this.process()},UI.$(function(){fn(),UI.$win.on("load",fn)}),UI.Utils.debounce(fn,20))),UI.$html.on("changed.uk.dom",function(e){$this.process()}),this.on("display.uk.check",function(e){this.element.is(":visible")&&this.process()}.bind(this)),stacks.push(this)},process:function(){var $this=this,columns=this.element.children();if(UI.Utils.stackMargin(columns,this.options),!this.options.rowfirst)return this;var pos_cache=columns.removeClass(this.options.rowfirst).filter(":visible").first().position();return pos_cache&&columns.each(function(){UI.$(this)[UI.$(this).position().left==pos_cache.left?"addClass":"removeClass"]($this.options.rowfirst)}),this}}),elements=[],check=function(ele){if(ele.is(":visible")){var width=ele.parent().width(),iwidth=ele.data("width"),ratio=width/iwidth,height=Math.floor(ratio*ele.data("height"));ele.css({height:width<iwidth?height:ele.data("height")})}},UI.component("responsiveElement",{defaults:{},boot:function(){UI.ready(function(context){UI.$("iframe.uk-responsive-width, [data-uk-responsive]",context).each(function(){var ele=UI.$(this);ele.data("responsiveElement")||UI.responsiveElement(ele,{})})})},init:function(){var ele=this.element;ele.attr("width")&&ele.attr("height")&&(ele.data({width:ele.attr("width"),height:ele.attr("height")}).on("display.uk.check",function(){check(ele)}),check(ele),elements.push(ele))}}),UI.$win.on("resize load",UI.Utils.debounce(function(){elements.forEach(function(ele){check(ele)})},15)),UI.Utils.stackMargin=function(elements,options){(options=UI.$.extend({cls:"uk-margin-small-top"},options)).cls=options.cls;var skip=!1,firstvisible=(elements=UI.$(elements).removeClass(options.cls)).filter(":visible:first"),offset=!!firstvisible.length&&firstvisible.position().top+firstvisible.outerHeight()-1;!1!==offset&&1!=elements.length&&elements.each(function(){var column=UI.$(this);column.is(":visible")&&(skip?column.addClass(options.cls):column.position().top>=offset&&(skip=column.addClass(options.cls)))})},UI.Utils.matchHeights=function(elements,options){elements=UI.$(elements).css("min-height","");var matchHeights=function(group){if(!(group.length<2)){var max=0;group.each(function(){max=Math.max(max,UI.$(this).outerHeight())}).each(function(){var element=UI.$(this),height=max-("border-box"==element.css("box-sizing")?0:element.outerHeight()-element.height());element.css("min-height",height+"px")})}};(options=UI.$.extend({row:!0},options)).row?(elements.first().width(),setTimeout(function(){var lastoffset=!1,group=[];elements.each(function(){var ele=UI.$(this),offset=ele.offset().top;offset!=lastoffset&&group.length&&(matchHeights(UI.$(group)),group=[],offset=ele.offset().top),group.push(ele),lastoffset=offset}),group.length&&matchHeights(UI.$(group))},0)):matchHeights(elements)},cacheSvgs={},UI.Utils.inlineSvg=function(selector,root){UI.$(selector||'img[src$=".svg"]',root||document).each(function(){var img=UI.$(this),src=img.attr("src");if(!cacheSvgs[src]){var d=UI.$.Deferred();UI.$.get(src,{nc:Math.random()},function(data){d.resolve(UI.$(data).find("svg"))}),cacheSvgs[src]=d.promise()}cacheSvgs[src].then(function(svg){var $svg=UI.$(svg).clone();img.attr("id")&&$svg.attr("id",img.attr("id")),img.attr("class")&&$svg.attr("class",img.attr("class")),img.attr("style")&&$svg.attr("style",img.attr("style")),img.attr("width")&&($svg.attr("width",img.attr("width")),img.attr("height")||$svg.removeAttr("height")),img.attr("height")&&($svg.attr("height",img.attr("height")),img.attr("width")||$svg.removeAttr("width")),img.replaceWith($svg)})})},UI.ready(function(context){UI.Utils.inlineSvg("[data-uk-svg]",context)})}(UIkit),function(UI){"use strict";function scrollToElement(ele,options){options=UI.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},options);var target=ele.offset().top-options.offset,docheight=UI.$doc.height(),winheight=window.innerHeight;target+winheight>docheight&&(target=docheight-winheight),UI.$("html,body").stop().animate({scrollTop:target},options.duration,options.transition).promise().done(options.complete)}UI.component("smoothScroll",{boot:function(){UI.$html.on("click.smooth-scroll.uikit","[data-uk-smooth-scroll]",function(e){var ele=UI.$(this);return ele.data("smoothScroll")||(UI.smoothScroll(ele,UI.Utils.options(ele.attr("data-uk-smooth-scroll"))),ele.trigger("click")),!1})},init:function(){var $this=this;this.on("click",function(e){e.preventDefault(),scrollToElement(UI.$(this.hash).length?UI.$(this.hash):UI.$("body"),$this.options)})}}),UI.Utils.scrollToElement=scrollToElement,UI.$.easing.easeOutExpo||(UI.$.easing.easeOutExpo=function(x,t,b,c,d){return t==d?b+c:c*(1-Math.pow(2,-10*t/d))+b})}(UIkit),function(UI){"use strict";var $win=UI.$win,$doc=UI.$doc,scrollspies=[],checkScrollSpy=function(){for(var i=0;i<scrollspies.length;i++)window.requestAnimationFrame.apply(window,[scrollspies[i].check])};UI.component("scrollspy",{defaults:{target:!1,cls:"uk-scrollspy-inview",initcls:"uk-scrollspy-init-inview",topoffset:0,leftoffset:0,repeat:!1,delay:0},boot:function(){$doc.on("scrolling.uk.document",checkScrollSpy),$win.on("load resize orientationchange",UI.Utils.debounce(checkScrollSpy,50)),UI.ready(function(context){UI.$("[data-uk-scrollspy]",context).each(function(){var element=UI.$(this);element.data("scrollspy")||UI.scrollspy(element,UI.Utils.options(element.attr("data-uk-scrollspy")))})})},init:function(){var initinview,$this=this,togglecls=this.options.cls.split(/,/),fn=function(){var elements=$this.options.target?$this.element.find($this.options.target):$this.element,delayIdx=1===elements.length?1:0,toggleclsIdx=0;elements.each(function(idx){var element=UI.$(this),inviewstate=element.data("inviewstate"),inview=UI.Utils.isInView(element,$this.options),toggle=element.data("ukScrollspyCls")||togglecls[toggleclsIdx].trim();!inview||inviewstate||element.data("scrollspy-idle")||(initinview||(element.addClass($this.options.initcls),$this.offset=element.offset(),initinview=!0,element.trigger("init.uk.scrollspy")),element.data("scrollspy-idle",setTimeout(function(){element.addClass("uk-scrollspy-inview").toggleClass(toggle).width(),element.trigger("inview.uk.scrollspy"),element.data("scrollspy-idle",!1),element.data("inviewstate",!0)},$this.options.delay*delayIdx)),delayIdx++),!inview&&inviewstate&&$this.options.repeat&&(element.data("scrollspy-idle")&&(clearTimeout(element.data("scrollspy-idle")),element.data("scrollspy-idle",!1)),element.removeClass("uk-scrollspy-inview").toggleClass(toggle),element.data("inviewstate",!1),element.trigger("outview.uk.scrollspy")),toggleclsIdx=togglecls[toggleclsIdx+1]?toggleclsIdx+1:0})};fn(),this.check=fn,scrollspies.push(this)}});var scrollspynavs=[],checkScrollSpyNavs=function(){for(var i=0;i<scrollspynavs.length;i++)window.requestAnimationFrame.apply(window,[scrollspynavs[i].check])};UI.component("scrollspynav",{defaults:{cls:"uk-active",closest:!1,topoffset:0,leftoffset:0,smoothscroll:!1},boot:function(){$doc.on("scrolling.uk.document",checkScrollSpyNavs),$win.on("resize orientationchange",UI.Utils.debounce(checkScrollSpyNavs,50)),UI.ready(function(context){UI.$("[data-uk-scrollspy-nav]",context).each(function(){var element=UI.$(this);element.data("scrollspynav")||UI.scrollspynav(element,UI.Utils.options(element.attr("data-uk-scrollspy-nav")))})})},init:function(){var inviews,ids=[],links=this.find("a[href^='#']").each(function(){"#"!==this.getAttribute("href").trim()&&ids.push(this.getAttribute("href"))}),targets=UI.$(ids.join(",")),clsActive=this.options.cls,clsClosest=this.options.closest||this.options.closest,$this=this,fn=function(){inviews=[];for(var i=0;i<targets.length;i++)UI.Utils.isInView(targets.eq(i),$this.options)&&inviews.push(targets.eq(i));if(inviews.length){var navitems,scrollTop=$win.scrollTop(),target=function(){for(var i=0;i<inviews.length;i++)if(inviews[i].offset().top>=scrollTop)return inviews[i]}();if(!target)return;$this.options.closest?(links.blur().closest(clsClosest).removeClass(clsActive),navitems=links.filter("a[href='#"+target.attr("id")+"']").closest(clsClosest).addClass(clsActive)):navitems=links.removeClass(clsActive).filter("a[href='#"+target.attr("id")+"']").addClass(clsActive),$this.element.trigger("inview.uk.scrollspynav",[target,navitems])}};this.options.smoothscroll&&UI.smoothScroll&&links.each(function(){UI.smoothScroll(this,$this.options.smoothscroll)}),fn(),this.element.data("scrollspynav",this),this.check=fn,scrollspynavs.push(this)}})}(UIkit),function(UI){"use strict";var toggles=[];UI.component("toggle",{defaults:{target:!1,cls:"uk-hidden",animation:!1,duration:200},boot:function(){UI.ready(function(context){UI.$("[data-uk-toggle]",context).each(function(){var ele=UI.$(this);ele.data("toggle")||UI.toggle(ele,UI.Utils.options(ele.attr("data-uk-toggle")))}),setTimeout(function(){toggles.forEach(function(toggle){toggle.getToggles()})},0)})},init:function(){var $this=this;this.aria=-1!==this.options.cls.indexOf("uk-hidden"),this.getToggles(),this.on("click",function(e){$this.element.is('a[href="#"]')&&e.preventDefault(),$this.toggle()}),toggles.push(this)},toggle:function(){if(this.totoggle.length){if(this.options.animation&&UI.support.animation){var $this=this,animations=this.options.animation.split(",");1==animations.length&&(animations[1]=animations[0]),animations[0]=animations[0].trim(),animations[1]=animations[1].trim(),this.totoggle.css("animation-duration",this.options.duration+"ms"),this.totoggle.each(function(){var ele=UI.$(this);ele.hasClass($this.options.cls)?(ele.toggleClass($this.options.cls),UI.Utils.animate(ele,animations[0]).then(function(){ele.css("animation-duration",""),UI.Utils.checkDisplay(ele)})):UI.Utils.animate(this,animations[1]+" uk-animation-reverse").then(function(){ele.toggleClass($this.options.cls).css("animation-duration",""),UI.Utils.checkDisplay(ele)})})}else this.totoggle.toggleClass(this.options.cls),UI.Utils.checkDisplay(this.totoggle);this.updateAria()}},getToggles:function(){this.totoggle=this.options.target?UI.$(this.options.target):[],this.updateAria()},updateAria:function(){this.aria&&this.totoggle.length&&this.totoggle.each(function(){UI.$(this).attr("aria-hidden",UI.$(this).hasClass("uk-hidden"))})}})}(UIkit),function(UI){"use strict";UI.component("alert",{defaults:{fade:!0,duration:200,trigger:".uk-alert-close"},boot:function(){UI.$html.on("click.alert.uikit","[data-uk-alert]",function(e){var ele=UI.$(this);if(!ele.data("alert")){var alert=UI.alert(ele,UI.Utils.options(ele.attr("data-uk-alert")));UI.$(e.target).is(alert.options.trigger)&&(e.preventDefault(),alert.close())}})},init:function(){var $this=this;this.on("click",this.options.trigger,function(e){e.preventDefault(),$this.close()})},close:function(){var element=this.trigger("close.uk.alert"),removeElement=function(){this.trigger("closed.uk.alert").remove()}.bind(this);this.options.fade?element.css("overflow","hidden").css("max-height",element.height()).animate({height:0,opacity:0,"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0},this.options.duration,removeElement):removeElement()}})}(UIkit),function(UI){"use strict";UI.component("buttonRadio",{defaults:{activeClass:"uk-active",target:".uk-button"},boot:function(){UI.$html.on("click.buttonradio.uikit","[data-uk-button-radio]",function(e){var ele=UI.$(this);if(!ele.data("buttonRadio")){var obj=UI.buttonRadio(ele,UI.Utils.options(ele.attr("data-uk-button-radio"))),target=UI.$(e.target);target.is(obj.options.target)&&target.trigger("click")}})},init:function(){var $this=this;this.find($this.options.target).attr("aria-checked","false").filter("."+$this.options.activeClass).attr("aria-checked","true"),this.on("click",this.options.target,function(e){var ele=UI.$(this);ele.is('a[href="#"]')&&e.preventDefault(),$this.find($this.options.target).not(ele).removeClass($this.options.activeClass).blur(),ele.addClass($this.options.activeClass),$this.find($this.options.target).not(ele).attr("aria-checked","false"),ele.attr("aria-checked","true"),$this.trigger("change.uk.button",[ele])})},getSelected:function(){return this.find("."+this.options.activeClass)}}),UI.component("buttonCheckbox",{defaults:{activeClass:"uk-active",target:".uk-button"},boot:function(){UI.$html.on("click.buttoncheckbox.uikit","[data-uk-button-checkbox]",function(e){var ele=UI.$(this);if(!ele.data("buttonCheckbox")){var obj=UI.buttonCheckbox(ele,UI.Utils.options(ele.attr("data-uk-button-checkbox"))),target=UI.$(e.target);target.is(obj.options.target)&&target.trigger("click")}})},init:function(){var $this=this;this.find($this.options.target).attr("aria-checked","false").filter("."+$this.options.activeClass).attr("aria-checked","true"),this.on("click",this.options.target,function(e){var ele=UI.$(this);ele.is('a[href="#"]')&&e.preventDefault(),ele.toggleClass($this.options.activeClass).blur(),ele.attr("aria-checked",ele.hasClass($this.options.activeClass)),$this.trigger("change.uk.button",[ele])})},getSelected:function(){return this.find("."+this.options.activeClass)}}),UI.component("button",{defaults:{},boot:function(){UI.$html.on("click.button.uikit","[data-uk-button]",function(e){var ele=UI.$(this);ele.data("button")||(UI.button(ele,UI.Utils.options(ele.attr("data-uk-button"))),ele.trigger("click"))})},init:function(){var $this=this;this.element.attr("aria-pressed",this.element.hasClass("uk-active")),this.on("click",function(e){$this.element.is('a[href="#"]')&&e.preventDefault(),$this.toggle(),$this.trigger("change.uk.button",[$this.element.blur().hasClass("uk-active")])})},toggle:function(){this.element.toggleClass("uk-active"),this.element.attr("aria-pressed",this.element.hasClass("uk-active"))}})}(UIkit),function(UI){"use strict";function justify(ele,justifyTo,boundarywidth,offset){if(ele=UI.$(ele),justifyTo=UI.$(justifyTo),boundarywidth=boundarywidth||window.innerWidth,offset=offset||ele.offset(),justifyTo.length){var jwidth=justifyTo.outerWidth();if(ele.css("min-width",jwidth),"right"==UI.langdirection){var right1=boundarywidth-(justifyTo.offset().left+jwidth),right2=boundarywidth-(ele.offset().left+ele.outerWidth());ele.css("margin-right",right1-right2)}else ele.css("margin-left",justifyTo.offset().left-offset.left)}}var hoverIdle,active=!1,flips={x:{"bottom-left":"bottom-right","bottom-right":"bottom-left","bottom-center":"bottom-center","top-left":"top-right","top-right":"top-left","top-center":"top-center","left-top":"right-top","left-bottom":"right-bottom","left-center":"right-center","right-top":"left-top","right-bottom":"left-bottom","right-center":"left-center"},y:{"bottom-left":"top-left","bottom-right":"top-right","bottom-center":"top-center","top-left":"bottom-left","top-right":"bottom-right","top-center":"bottom-center","left-top":"left-bottom","left-bottom":"left-top","left-center":"left-center","right-top":"right-bottom","right-bottom":"right-top","right-center":"right-center"},xy:{"bottom-left":"top-right","bottom-right":"top-left","bottom-center":"top-center","top-left":"bottom-right","top-right":"bottom-left","top-center":"bottom-center","left-top":"right-bottom","left-bottom":"right-top","left-center":"right-center","right-top":"left-bottom","right-bottom":"left-top","right-center":"left-center"}};UI.component("dropdown",{defaults:{mode:"hover",pos:"bottom-left",offset:0,remaintime:800,justify:!1,boundary:UI.$win,delay:0,dropdownSelector:".uk-dropdown,.uk-dropdown-blank",hoverDelayIdle:250,preventflip:!1},remainIdle:!1,boot:function(){var triggerevent=UI.support.touch?"click":"mouseenter";UI.$html.on(triggerevent+".dropdown.uikit","[data-uk-dropdown]",function(e){var ele=UI.$(this);if(!ele.data("dropdown")){var dropdown=UI.dropdown(ele,UI.Utils.options(ele.attr("data-uk-dropdown")));("click"==triggerevent||"mouseenter"==triggerevent&&"hover"==dropdown.options.mode)&&dropdown.element.trigger(triggerevent),dropdown.element.find(dropdown.options.dropdownSelector).length&&e.preventDefault()}})},init:function(){var $this=this;this.dropdown=this.find(this.options.dropdownSelector),this.offsetParent=this.dropdown.parents().filter(function(){return-1!==UI.$.inArray(UI.$(this).css("position"),["relative","fixed","absolute"])}).slice(0,1),this.centered=this.dropdown.hasClass("uk-dropdown-center"),this.justified=!!this.options.justify&&UI.$(this.options.justify),this.boundary=UI.$(this.options.boundary),this.boundary.length||(this.boundary=UI.$win),this.dropdown.hasClass("uk-dropdown-up")&&(this.options.pos="top-left"),this.dropdown.hasClass("uk-dropdown-flip")&&(this.options.pos=this.options.pos.replace("left","right")),this.dropdown.hasClass("uk-dropdown-center")&&(this.options.pos=this.options.pos.replace(/(left|right)/,"center")),this.element.attr("aria-haspopup","true"),this.element.attr("aria-expanded",this.element.hasClass("uk-open")),"click"==this.options.mode||UI.support.touch?this.on("click.uk.dropdown",function(e){var $target=UI.$(e.target);$target.parents($this.options.dropdownSelector).length||(($target.is("a[href='#']")||$target.parent().is("a[href='#']")||$this.dropdown.length&&!$this.dropdown.is(":visible"))&&e.preventDefault(),$target.blur()),$this.element.hasClass("uk-open")?(!$this.dropdown.find(e.target).length||$target.is(".uk-dropdown-close")||$target.parents(".uk-dropdown-close").length)&&$this.hide():$this.show()}):this.on("mouseenter",function(e){$this.trigger("pointerenter.uk.dropdown",[$this]),$this.remainIdle&&clearTimeout($this.remainIdle),hoverIdle&&clearTimeout(hoverIdle),active&&active==$this||(hoverIdle=active&&active!=$this?setTimeout(function(){hoverIdle=setTimeout($this.show.bind($this),$this.options.delay)},$this.options.hoverDelayIdle):setTimeout($this.show.bind($this),$this.options.delay))}).on("mouseleave",function(){hoverIdle&&clearTimeout(hoverIdle),$this.remainIdle=setTimeout(function(){active&&active==$this&&$this.hide()},$this.options.remaintime),$this.trigger("pointerleave.uk.dropdown",[$this])}).on("click",function(e){var $target=UI.$(e.target);$this.remainIdle&&clearTimeout($this.remainIdle),active&&active==$this?(!$this.dropdown.find(e.target).length||$target.is(".uk-dropdown-close")||$target.parents(".uk-dropdown-close").length)&&$this.hide():(($target.is("a[href='#']")||$target.parent().is("a[href='#']"))&&e.preventDefault(),$this.show())})},show:function(){UI.$html.off("click.outer.dropdown"),active&&active!=this&&active.hide(!0),hoverIdle&&clearTimeout(hoverIdle),this.trigger("beforeshow.uk.dropdown",[this]),this.checkDimensions(),this.element.addClass("uk-open"),this.element.attr("aria-expanded","true"),this.trigger("show.uk.dropdown",[this]),UI.Utils.checkDisplay(this.dropdown,!0),active=this,this.registerOuterClick()},hide:function(force){this.trigger("beforehide.uk.dropdown",[this,force]),this.element.removeClass("uk-open"),this.remainIdle&&clearTimeout(this.remainIdle),this.remainIdle=!1,this.element.attr("aria-expanded","false"),this.trigger("hide.uk.dropdown",[this,force]),active==this&&(active=!1)},registerOuterClick:function(){var $this=this;UI.$html.off("click.outer.dropdown"),setTimeout(function(){UI.$html.on("click.outer.dropdown",function(e){hoverIdle&&clearTimeout(hoverIdle),UI.$(e.target),active!=$this||$this.element.find(e.target).length||($this.hide(!0),UI.$html.off("click.outer.dropdown"))})},10)},checkDimensions:function(){if(this.dropdown.length){this.dropdown.removeClass("uk-dropdown-top uk-dropdown-bottom uk-dropdown-left uk-dropdown-right uk-dropdown-stack").css({"top-left":"",left:"","margin-left":"","margin-right":""}),this.justified&&this.justified.length&&this.dropdown.css("min-width","");var pp,pos=UI.$.extend({},this.offsetParent.offset(),{width:this.offsetParent[0].offsetWidth,height:this.offsetParent[0].offsetHeight}),posoffset=this.options.offset,dropdown=this.dropdown,width=(dropdown.show().offset(),dropdown.outerWidth()),height=dropdown.outerHeight(),boundarywidth=this.boundary.width(),dpos=(this.boundary[0]!==window&&this.boundary.offset()&&this.boundary.offset(),this.options.pos),variants={"bottom-left":{top:0+pos.height+posoffset,left:0},"bottom-right":{top:0+pos.height+posoffset,left:0+pos.width-width},"bottom-center":{top:0+pos.height+posoffset,left:0+pos.width/2-width/2},"top-left":{top:0-height-posoffset,left:0},"top-right":{top:0-height-posoffset,left:0+pos.width-width},"top-center":{top:0-height-posoffset,left:0+pos.width/2-width/2},"left-top":{top:0,left:0-width-posoffset},"left-bottom":{top:0+pos.height-height,left:0-width-posoffset},"left-center":{top:0+pos.height/2-height/2,left:0-width-posoffset},"right-top":{top:0,left:0+pos.width+posoffset},"right-bottom":{top:0+pos.height-height,left:0+pos.width+posoffset},"right-center":{top:0+pos.height/2-height/2,left:0+pos.width+posoffset}},css={};if(pp=dpos.split("-"),css=variants[dpos]?variants[dpos]:variants["bottom-left"],this.justified&&this.justified.length)justify(dropdown.css({left:0}),this.justified,boundarywidth);else if(!0!==this.options.preventflip){var fdpos;switch(this.checkBoundary(pos.left+css.left,pos.top+css.top,width,height,boundarywidth)){case"x":"x"!==this.options.preventflip&&(fdpos=flips.x[dpos]||"right-top");break;case"y":"y"!==this.options.preventflip&&(fdpos=flips.y[dpos]||"top-left");break;case"xy":this.options.preventflip||(fdpos=flips.xy[dpos]||"right-bottom")}fdpos&&(pp=fdpos.split("-"),css=variants[fdpos]?variants[fdpos]:variants["bottom-left"],this.checkBoundary(pos.left+css.left,pos.top+css.top,width,height,boundarywidth)&&(pp=dpos.split("-"),css=variants[dpos]?variants[dpos]:variants["bottom-left"]))}width>boundarywidth&&(dropdown.addClass("uk-dropdown-stack"),this.trigger("stack.uk.dropdown",[this])),dropdown.css(css).css("display","").addClass("uk-dropdown-"+pp[0])}},checkBoundary:function(left,top,width,height,boundarywidth){var axis="";return(left<0||left-UI.$win.scrollLeft()+width>boundarywidth)&&(axis+="x"),(top-UI.$win.scrollTop()<0||top-UI.$win.scrollTop()+height>window.innerHeight)&&(axis+="y"),axis}}),UI.component("dropdownOverlay",{defaults:{justify:!1,cls:"",duration:200},boot:function(){UI.ready(function(context){UI.$("[data-uk-dropdown-overlay]",context).each(function(){var ele=UI.$(this);ele.data("dropdownOverlay")||UI.dropdownOverlay(ele,UI.Utils.options(ele.attr("data-uk-dropdown-overlay")))})})},init:function(){var $this=this;this.justified=!!this.options.justify&&UI.$(this.options.justify),this.overlay=this.element.find("uk-dropdown-overlay"),this.overlay.length||(this.overlay=UI.$('<div class="uk-dropdown-overlay"></div>').appendTo(this.element)),this.overlay.addClass(this.options.cls),this.on({"beforeshow.uk.dropdown":function(e,dropdown){$this.dropdown=dropdown,$this.justified&&$this.justified.length&&justify($this.overlay.css({display:"block","margin-left":"","margin-right":""}),$this.justified,$this.justified.outerWidth())},"show.uk.dropdown":function(e,dropdown){var h=$this.dropdown.dropdown.outerHeight(!0);$this.dropdown.element.removeClass("uk-open"),$this.overlay.stop().css("display","block").animate({height:h},$this.options.duration,function(){$this.dropdown.dropdown.css("visibility",""),$this.dropdown.element.addClass("uk-open"),UI.Utils.checkDisplay($this.dropdown.dropdown,!0)}),$this.pointerleave=!1},"hide.uk.dropdown":function(){$this.overlay.stop().animate({height:0},$this.options.duration)},"pointerenter.uk.dropdown":function(e,dropdown){clearTimeout($this.remainIdle)},"pointerleave.uk.dropdown":function(e,dropdown){$this.pointerleave=!0}}),this.overlay.on({mouseenter:function(){$this.remainIdle&&(clearTimeout($this.dropdown.remainIdle),clearTimeout($this.remainIdle))},mouseleave:function(){$this.pointerleave&&active&&($this.remainIdle=setTimeout(function(){active&&active.hide()},active.options.remaintime))}})}})}(UIkit),function(UI){"use strict";var grids=[];UI.component("gridMatchHeight",{defaults:{target:!1,row:!0,ignorestacked:!1},boot:function(){UI.ready(function(context){UI.$("[data-uk-grid-match]",context).each(function(){var grid=UI.$(this);grid.data("gridMatchHeight")||UI.gridMatchHeight(grid,UI.Utils.options(grid.attr("data-uk-grid-match")))})})},init:function(){var fn,$this=this;this.columns=this.element.children(),this.elements=this.options.target?this.find(this.options.target):this.columns,this.columns.length&&(UI.$win.on("load resize orientationchange",(fn=function(){$this.match()},UI.$(function(){fn()}),UI.Utils.debounce(fn,50))),UI.$html.on("changed.uk.dom",function(e){$this.columns=$this.element.children(),$this.elements=$this.options.target?$this.find($this.options.target):$this.columns,$this.match()}),this.on("display.uk.check",function(e){this.element.is(":visible")&&this.match()}.bind(this)),grids.push(this))},match:function(){var firstvisible=this.columns.filter(":visible:first");if(firstvisible.length)return Math.ceil(100*parseFloat(firstvisible.css("width"))/parseFloat(firstvisible.parent().css("width")))>=100&&!this.options.ignorestacked?this.revert():UI.Utils.matchHeights(this.elements,this.options),this},revert:function(){return this.elements.css("min-height",""),this}}),UI.component("gridMargin",{defaults:{cls:"uk-grid-margin",rowfirst:"uk-row-first"},boot:function(){UI.ready(function(context){UI.$("[data-uk-grid-margin]",context).each(function(){var grid=UI.$(this);grid.data("gridMargin")||UI.gridMargin(grid,UI.Utils.options(grid.attr("data-uk-grid-margin")))})})},init:function(){UI.stackMargin(this.element,this.options)}})}(UIkit),function(UI){"use strict";var body,active=!1,activeCount=0,$html=UI.$html;UI.component("modal",{defaults:{keyboard:!0,bgclose:!0,minScrollHeight:150,center:!1,modal:!0},scrollable:!1,transition:!1,hasTransitioned:!0,init:function(){if(body||(body=UI.$("body")),this.element.length){var $this=this;this.paddingdir="padding-"+("left"==UI.langdirection?"right":"left"),this.dialog=this.find(".uk-modal-dialog"),this.active=!1,this.element.attr("aria-hidden",this.element.hasClass("uk-open")),this.on("click",".uk-modal-close",function(e){e.preventDefault(),$this.hide()}).on("click",function(e){UI.$(e.target)[0]==$this.element[0]&&$this.options.bgclose&&$this.hide()})}},toggle:function(){return this[this.isActive()?"hide":"show"]()},show:function(){if(this.element.length){var $this=this;if(!this.isActive())return this.options.modal&&active&&active.hide(!0),this.element.removeClass("uk-open").show(),this.resize(),this.options.modal&&(active=this),this.active=!0,activeCount++,UI.support.transition?(this.hasTransitioned=!1,this.element.one(UI.support.transition.end,function(){$this.hasTransitioned=!0}).addClass("uk-open")):this.element.addClass("uk-open"),$html.addClass("uk-modal-page").height(),this.element.attr("aria-hidden","false"),this.element.trigger("show.uk.modal"),UI.Utils.checkDisplay(this.dialog,!0),this}},hide:function(force){if(!force&&UI.support.transition&&this.hasTransitioned){var $this=this;this.one(UI.support.transition.end,function(){$this._hide()}).removeClass("uk-open")}else this._hide();return this},resize:function(){var bodywidth=body.width();if(this.scrollbarwidth=window.innerWidth-bodywidth,body.css(this.paddingdir,this.scrollbarwidth),this.element.css("overflow-y",this.scrollbarwidth?"scroll":"auto"),!this.updateScrollable()&&this.options.center){var dh=this.dialog.outerHeight(),pad=parseInt(this.dialog.css("margin-top"),10)+parseInt(this.dialog.css("margin-bottom"),10);dh+pad<window.innerHeight?this.dialog.css({top:window.innerHeight/2-dh/2-pad}):this.dialog.css({top:""})}},updateScrollable:function(){var scrollable=this.dialog.find(".uk-overflow-container:visible:first");if(scrollable.length){scrollable.css("height",0);var offset=Math.abs(parseInt(this.dialog.css("margin-top"),10)),dh=this.dialog.outerHeight(),h=window.innerHeight-2*(offset<20?20:offset)-dh;return scrollable.css({"max-height":h<this.options.minScrollHeight?"":h,height:""}),!0}return!1},_hide:function(){this.active=!1,activeCount>0?activeCount--:activeCount=0,this.element.hide().removeClass("uk-open"),this.element.attr("aria-hidden","true"),activeCount||($html.removeClass("uk-modal-page"),body.css(this.paddingdir,"")),active===this&&(active=!1),this.trigger("hide.uk.modal")},isActive:function(){return this.active}}),UI.component("modalTrigger",{boot:function(){UI.$html.on("click.modal.uikit","[data-uk-modal]",function(e){var ele=UI.$(this);ele.is("a")&&e.preventDefault(),ele.data("modalTrigger")||UI.modalTrigger(ele,UI.Utils.options(ele.attr("data-uk-modal"))).show()}),UI.$html.on("keydown.modal.uikit",function(e){active&&27===e.keyCode&&active.options.keyboard&&(e.preventDefault(),active.hide())}),UI.$win.on("resize orientationchange",UI.Utils.debounce(function(){active&&active.resize()},150))},init:function(){var $this=this;this.options=UI.$.extend({target:!!$this.element.is("a")&&$this.element.attr("href")},this.options),this.modal=UI.modal(this.options.target,this.options),this.on("click",function(e){e.preventDefault(),$this.show()}),this.proxy(this.modal,"show hide isActive")}}),UI.modal.dialog=function(content,options){var modal=UI.modal(UI.$(UI.modal.dialog.template).appendTo("body"),options);return modal.on("hide.uk.modal",function(){modal.persist&&(modal.persist.appendTo(modal.persist.data("modalPersistParent")),modal.persist=!1),modal.element.remove()}),function(content,modal){modal&&("object"==typeof content?(content=content instanceof jQuery?content:UI.$(content)).parent().length&&(modal.persist=content,modal.persist.data("modalPersistParent",content.parent())):content="string"==typeof content||"number"==typeof content?UI.$("<div></div>").html(content):UI.$("<div></div>").html("UIkit.modal Error: Unsupported data type: "+typeof content),content.appendTo(modal.element.find(".uk-modal-dialog")))}(content,modal),modal},UI.modal.dialog.template='<div class="uk-modal"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',UI.modal.alert=function(content,options){options=UI.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:UI.modal.labels},options);var modal=UI.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(content)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-button-primary uk-modal-close">'+options.labels.Ok+"</button></div>"].join(""),options);return modal.on("show.uk.modal",function(){setTimeout(function(){modal.element.find("button:first").focus()},50)}),modal.show()},UI.modal.confirm=function(content,onconfirm,oncancel){var options=arguments.length>1&&arguments[arguments.length-1]?arguments[arguments.length-1]:{};onconfirm=UI.$.isFunction(onconfirm)?onconfirm:function(){},oncancel=UI.$.isFunction(oncancel)?oncancel:function(){},options=UI.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:UI.modal.labels,confirmButtonClass:""},UI.$.isFunction(options)?{}:options);var modal=UI.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(content)+"</div>",'<div class="uk-modal-footer uk-text-right"><button class="uk-button js-modal-confirm-cancel">'+options.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-confirm '+options.confirmButtonClass+'">'+options.labels.Ok+"</button></div>"].join(""),options);return modal.element.find(".js-modal-confirm, .js-modal-confirm-cancel").on("click",function(){UI.$(this).is(".js-modal-confirm")?onconfirm():oncancel(),modal.hide()}),modal.on("show.uk.modal",function(){setTimeout(function(){modal.element.find(".js-modal-confirm").focus()},50)}),modal.show()},UI.modal.prompt=function(text,value,onsubmit,options){onsubmit=UI.$.isFunction(onsubmit)?onsubmit:function(value){},options=UI.$.extend(!0,{bgclose:!1,keyboard:!1,modal:!1,labels:UI.modal.labels},options);var modal=UI.modal.dialog([text?'<div class="uk-modal-content uk-form">'+String(text)+"</div>":"",'<div class="uk-margin-small-top uk-modal-content uk-form"><p><input type="text" class="uk-width-1-1"></p></div>','<div class="uk-modal-footer uk-text-right"><button class="uk-button uk-modal-close">'+options.labels.Cancel+'</button> <button class="uk-button uk-button-primary js-modal-ok">'+options.labels.Ok+"</button></div>"].join(""),options),input=modal.element.find("input[type='text']").val(value||"").on("keyup",function(e){13==e.keyCode&&modal.element.find(".js-modal-ok").trigger("click")});return modal.element.find(".js-modal-ok").on("click",function(){!1!==onsubmit(input.val())&&modal.hide()}),modal.on("show.uk.modal",function(){setTimeout(function(){input.focus()},50)}),modal.show()},UI.modal.blockUI=function(content,options){var modal=UI.modal.dialog(['<div class="uk-margin uk-modal-content">'+String(content||'<div class="uk-text-center">...</div>')+"</div>"].join(""),UI.$.extend({bgclose:!1,keyboard:!1,modal:!1},options));return modal.content=modal.element.find(".uk-modal-content:first"),modal.show()},UI.modal.labels={Ok:"Ok",Cancel:"Cancel"}}(UIkit),function(UI){"use strict";UI.component("nav",{defaults:{toggle:">li.uk-parent > a[href='#']",lists:">li.uk-parent > ul",multiple:!1},boot:function(){UI.ready(function(context){UI.$("[data-uk-nav]",context).each(function(){var nav=UI.$(this);nav.data("nav")||UI.nav(nav,UI.Utils.options(nav.attr("data-uk-nav")))})})},init:function(){var $this=this;this.on("click.uk.nav",this.options.toggle,function(e){e.preventDefault();var ele=UI.$(this);$this.open(ele.parent()[0]==$this.element[0]?ele:ele.parent("li"))}),this.find(this.options.lists).each(function(){var $ele=UI.$(this),parent=$ele.parent(),active=parent.hasClass("uk-active");$ele.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>'),parent.data("list-container",$ele.parent()[active?"removeClass":"addClass"]("uk-hidden")),parent.attr("aria-expanded",parent.hasClass("uk-open")),active&&$this.open(parent,!0)})},open:function(li,noanimation){var $this=this,element=this.element,$li=UI.$(li),$container=$li.data("list-container");this.options.multiple||element.children(".uk-open").not(li).each(function(){var ele=UI.$(this);ele.data("list-container")&&ele.data("list-container").stop().animate({height:0},function(){UI.$(this).parent().removeClass("uk-open").end().addClass("uk-hidden")})}),$li.toggleClass("uk-open"),$li.attr("aria-expanded",$li.hasClass("uk-open")),$container&&($li.hasClass("uk-open")&&$container.removeClass("uk-hidden"),noanimation?($container.stop().height($li.hasClass("uk-open")?"auto":0),$li.hasClass("uk-open")||$container.addClass("uk-hidden"),this.trigger("display.uk.check")):$container.stop().animate({height:$li.hasClass("uk-open")?function(ele){var $ele=UI.$(ele),height="auto";if($ele.is(":visible"))height=$ele.outerHeight();else{var tmp={position:$ele.css("position"),visibility:$ele.css("visibility"),display:$ele.css("display")};height=$ele.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),$ele.css(tmp)}return height}($container.find("ul:first")):0},function(){$li.hasClass("uk-open")?$container.css("height",""):$container.addClass("uk-hidden"),$this.trigger("display.uk.check")}))}})}(UIkit),function(UI){"use strict";var scrollpos={x:window.scrollX,y:window.scrollY},$html=(UI.$win,UI.$doc,UI.$html),Offcanvas={show:function(element,options){if((element=UI.$(element)).length){options=UI.$.extend({mode:"push"},options);var $body=UI.$("body"),bar=element.find(".uk-offcanvas-bar:first"),rtl="right"==UI.langdirection,dir=(bar.hasClass("uk-offcanvas-bar-flip")?-1:1)*(rtl?-1:1),scrollbarwidth=window.innerWidth-$body.width();scrollpos={x:window.pageXOffset,y:window.pageYOffset},bar.attr("mode",options.mode),element.addClass("uk-active"),$body.css({width:window.innerWidth-scrollbarwidth,height:window.innerHeight}).addClass("uk-offcanvas-page"),"push"!=options.mode&&"reveal"!=options.mode||$body.css(rtl?"margin-right":"margin-left",(rtl?-1:1)*(bar.outerWidth()*dir)),"reveal"==options.mode&&bar.css("clip","rect(0, "+bar.outerWidth()+"px, 100vh, 0)"),$html.css("margin-top",-1*scrollpos.y).width(),bar.addClass("uk-offcanvas-bar-show"),this._initElement(element),bar.trigger("show.uk.offcanvas",[element,bar]),element.attr("aria-hidden","false")}},hide:function(force){var $body=UI.$("body"),panel=UI.$(".uk-offcanvas.uk-active"),rtl="right"==UI.langdirection,bar=panel.find(".uk-offcanvas-bar:first"),finalize=function(){$body.removeClass("uk-offcanvas-page").css({width:"",height:"",marginLeft:"",marginRight:""}),panel.removeClass("uk-active"),bar.removeClass("uk-offcanvas-bar-show"),$html.css("margin-top",""),window.scrollTo(scrollpos.x,scrollpos.y),bar.trigger("hide.uk.offcanvas",[panel,bar]),panel.attr("aria-hidden","true")};panel.length&&("none"==bar.attr("mode")&&(force=!0),UI.support.transition&&!force?($body.one(UI.support.transition.end,function(){finalize()}).css(rtl?"margin-right":"margin-left",""),"reveal"==bar.attr("mode")&&bar.css("clip",""),setTimeout(function(){bar.removeClass("uk-offcanvas-bar-show")},0)):finalize())},_initElement:function(element){element.data("OffcanvasInit")||(element.on("click.uk.offcanvas swipeRight.uk.offcanvas swipeLeft.uk.offcanvas",function(e){var target=UI.$(e.target);if(!e.type.match(/swipe/)&&!target.hasClass("uk-offcanvas-close")){if(target.hasClass("uk-offcanvas-bar"))return;if(target.parents(".uk-offcanvas-bar:first").length)return}e.stopImmediatePropagation(),Offcanvas.hide()}),element.on("click",'a[href*="#"]',function(e){var link=UI.$(this),href=link.attr("href");"#"!=href&&(UI.$doc.one("hide.uk.offcanvas",function(){var target;try{target=UI.$(link[0].hash)}catch(e){target=""}target.length||(target=UI.$('[name="'+link[0].hash.replace("#","")+'"]')),target.length&&UI.Utils.scrollToElement?UI.Utils.scrollToElement(target,UI.Utils.options(link.attr("data-uk-smooth-scroll")||"{}")):window.location.href=href}),Offcanvas.hide())}),element.data("OffcanvasInit",!0))}};UI.component("offcanvasTrigger",{boot:function(){$html.on("click.offcanvas.uikit","[data-uk-offcanvas]",function(e){e.preventDefault();var ele=UI.$(this);ele.data("offcanvasTrigger")||(UI.offcanvasTrigger(ele,UI.Utils.options(ele.attr("data-uk-offcanvas"))),ele.trigger("click"))}),$html.on("keydown.uk.offcanvas",function(e){27===e.keyCode&&Offcanvas.hide()})},init:function(){var $this=this;this.options=UI.$.extend({target:!!$this.element.is("a")&&$this.element.attr("href"),mode:"push"},this.options),this.on("click",function(e){e.preventDefault(),Offcanvas.show($this.options.target,$this.options)})}}),UI.offcanvas=Offcanvas}(UIkit),function(UI){"use strict";function coreAnimation(cls,current,next){var release,d=UI.$.Deferred(),clsIn=cls,clsOut=cls;return next[0]===current[0]?(d.resolve(),d.promise()):("object"==typeof cls&&(clsIn=cls[0],clsOut=cls[1]||cls[0]),UI.$body.css("overflow-x","hidden"),release=function(){current&&current.hide().removeClass("uk-active "+clsOut+" uk-animation-reverse"),next.addClass(clsIn).one(UI.support.animation.end,function(){next.removeClass(""+clsIn).css({opacity:"",display:""}),d.resolve(),UI.$body.css("overflow-x",""),current&&current.css({opacity:"",display:""})}.bind(this)).show()},next.css("animation-duration",this.options.duration+"ms"),current&&current.length?(current.css("animation-duration",this.options.duration+"ms"),current.css("display","none").addClass(clsOut+" uk-animation-reverse").one(UI.support.animation.end,function(){release()}.bind(this)).css("display","")):(next.addClass("uk-active"),release()),d.promise())}var Animations;UI.component("switcher",{defaults:{connect:!1,toggle:">*",active:0,animation:!1,duration:200,swiping:!0},animating:!1,boot:function(){UI.ready(function(context){UI.$("[data-uk-switcher]",context).each(function(){var switcher=UI.$(this);switcher.data("switcher")||UI.switcher(switcher,UI.Utils.options(switcher.attr("data-uk-switcher")))})})},init:function(){var $this=this;if(this.on("click.uk.switcher",this.options.toggle,function(e){e.preventDefault(),$this.show(this)}),this.options.connect){this.connect=UI.$(this.options.connect),this.connect.find(".uk-active").removeClass(".uk-active"),this.connect.length&&(this.connect.children().attr("aria-hidden","true"),this.connect.on("click","[data-uk-switcher-item]",function(e){e.preventDefault();var item=UI.$(this).attr("data-uk-switcher-item");if($this.index!=item)switch(item){case"next":case"previous":$this.show($this.index+("next"==item?1:-1));break;default:$this.show(parseInt(item,10))}}),this.options.swiping&&this.connect.on("swipeRight swipeLeft",function(e){e.preventDefault(),window.getSelection().toString()||$this.show($this.index+("swipeLeft"==e.type?1:-1))}));var toggles=this.find(this.options.toggle),active=toggles.filter(".uk-active");if(active.length)this.show(active,!1);else{if(!1===this.options.active)return;active=toggles.eq(this.options.active),this.show(active.length?active:toggles.eq(0),!1)}toggles.not(active).attr("aria-expanded","false"),active.attr("aria-expanded","true"),this.on("changed.uk.dom",function(){$this.connect=UI.$($this.options.connect)})}},show:function(tab,animate){if(!this.animating){if(isNaN(tab))tab=UI.$(tab);else{var toggles=this.find(this.options.toggle);tab=tab<0?toggles.length-1:tab,tab=toggles.eq(toggles[tab]?tab:0)}var $this=this,active=(toggles=this.find(this.options.toggle),UI.$(tab)),animation=Animations[this.options.animation]||function(current,next){if(!$this.options.animation)return Animations.none.apply($this);var anim=$this.options.animation.split(",");return 1==anim.length&&(anim[1]=anim[0]),anim[0]=anim[0].trim(),anim[1]=anim[1].trim(),coreAnimation.apply($this,[anim,current,next])};!1!==animate&&UI.support.animation||(animation=Animations.none),active.hasClass("uk-disabled")||(toggles.attr("aria-expanded","false"),active.attr("aria-expanded","true"),toggles.filter(".uk-active").removeClass("uk-active"),active.addClass("uk-active"),this.options.connect&&this.connect.length&&(this.index=this.find(this.options.toggle).index(active),-1==this.index&&(this.index=0),this.connect.each(function(){var container=UI.$(this),children=UI.$(container.children()),current=UI.$(children.filter(".uk-active")),next=UI.$(children.eq($this.index));$this.animating=!0,animation.apply($this,[current,next]).then(function(){current.removeClass("uk-active"),next.addClass("uk-active"),current.attr("aria-hidden","true"),next.attr("aria-hidden","false"),UI.Utils.checkDisplay(next,!0),$this.animating=!1})})),this.trigger("show.uk.switcher",[active]))}}}),Animations={none:function(){var d=UI.$.Deferred();return d.resolve(),d.promise()},fade:function(current,next){return coreAnimation.apply(this,["uk-animation-fade",current,next])},"slide-bottom":function(current,next){return coreAnimation.apply(this,["uk-animation-slide-bottom",current,next])},"slide-top":function(current,next){return coreAnimation.apply(this,["uk-animation-slide-top",current,next])},"slide-vertical":function(current,next,dir){var anim=["uk-animation-slide-top","uk-animation-slide-bottom"];return current&&current.index()>next.index()&&anim.reverse(),coreAnimation.apply(this,[anim,current,next])},"slide-left":function(current,next){return coreAnimation.apply(this,["uk-animation-slide-left",current,next])},"slide-right":function(current,next){return coreAnimation.apply(this,["uk-animation-slide-right",current,next])},"slide-horizontal":function(current,next,dir){var anim=["uk-animation-slide-right","uk-animation-slide-left"];return current&&current.index()>next.index()&&anim.reverse(),coreAnimation.apply(this,[anim,current,next])},scale:function(current,next){return coreAnimation.apply(this,["uk-animation-scale-up",current,next])}},UI.switcher.animations=Animations}(UIkit),function(UI){"use strict";UI.component("tab",{defaults:{target:">li:not(.uk-tab-responsive, .uk-disabled)",connect:!1,active:0,animation:!1,duration:200,swiping:!0},boot:function(){UI.ready(function(context){UI.$("[data-uk-tab]",context).each(function(){var tab=UI.$(this);tab.data("tab")||UI.tab(tab,UI.Utils.options(tab.attr("data-uk-tab")))})})},init:function(){var $this=this;this.current=!1,this.on("click.uk.tab",this.options.target,function(e){if(e.preventDefault(),!$this.switcher||!$this.switcher.animating){var current=$this.find($this.options.target).not(this);current.removeClass("uk-active").blur(),$this.trigger("change.uk.tab",[UI.$(this).addClass("uk-active"),$this.current]),$this.current=UI.$(this),$this.options.connect||(current.attr("aria-expanded","false"),UI.$(this).attr("aria-expanded","true"))}}),this.options.connect&&(this.connect=UI.$(this.options.connect)),this.responsivetab=UI.$('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>'),this.responsivetab.dropdown=this.responsivetab.find(".uk-dropdown"),this.responsivetab.lst=this.responsivetab.dropdown.find("ul"),this.responsivetab.caption=this.responsivetab.find("a:first"),this.element.hasClass("uk-tab-bottom")&&this.responsivetab.dropdown.addClass("uk-dropdown-up"),this.responsivetab.lst.on("click.uk.tab","a",function(e){e.preventDefault(),e.stopPropagation();var link=UI.$(this);$this.element.children("li:not(.uk-tab-responsive)").eq(link.data("index")).trigger("click")}),this.on("show.uk.switcher change.uk.tab",function(e,tab){$this.responsivetab.caption.html(tab.text())}),this.element.append(this.responsivetab),this.options.connect&&(this.switcher=UI.switcher(this.element,{toggle:">li:not(.uk-tab-responsive)",connect:this.options.connect,active:this.options.active,animation:this.options.animation,duration:this.options.duration,swiping:this.options.swiping})),UI.dropdown(this.responsivetab,{mode:"click",preventflip:"y"}),$this.trigger("change.uk.tab",[this.element.find(this.options.target).not(".uk-tab-responsive").filter(".uk-active")]),this.check(),UI.$win.on("resize orientationchange",UI.Utils.debounce(function(){$this.element.is(":visible")&&$this.check()},100)),this.on("display.uk.check",function(){$this.element.is(":visible")&&$this.check()})},check:function(){var children=this.element.children("li:not(.uk-tab-responsive)").removeClass("uk-hidden");if(children.length){var item,clone,top=children.eq(0).offset().top+Math.ceil(children.eq(0).height()/2),doresponsive=!1;if(this.responsivetab.lst.empty(),children.each(function(){UI.$(this).offset().top>top&&(doresponsive=!0)}),doresponsive)for(var i=0;i<children.length;i++)(item=UI.$(children.eq(i))).find("a"),"none"==item.css("float")||item.attr("uk-dropdown")||(item.hasClass("uk-disabled")||(clone=item[0].outerHTML.replace("<a ",'<a data-index="'+i+'" '),this.responsivetab.lst.append(clone)),item.addClass("uk-hidden"));this.responsivetab[this.responsivetab.lst.children("li").length?"removeClass":"addClass"]("uk-hidden")}else this.responsivetab.addClass("uk-hidden")}})}(UIkit),function(UI){"use strict";UI.component("cover",{defaults:{automute:!0},boot:function(){UI.ready(function(context){UI.$("[data-uk-cover]",context).each(function(){var ele=UI.$(this);ele.data("cover")||UI.cover(ele,UI.Utils.options(ele.attr("data-uk-cover")))})})},init:function(){if(this.parent=this.element.parent(),UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(){this.check()}.bind(this),100)),this.on("display.uk.check",function(e){this.element.is(":visible")&&this.check()}.bind(this)),this.check(),this.element.is("iframe")&&this.options.automute){var src=this.element.attr("src");this.element.attr("src","").on("load",function(){this.contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}).attr("src",[src,src.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1"].join(""))}},check:function(){this.element.css({width:"",height:""}),this.dimension={w:this.element.width(),h:this.element.height()},this.element.attr("width")&&!isNaN(this.element.attr("width"))&&(this.dimension.w=this.element.attr("width")),this.element.attr("height")&&!isNaN(this.element.attr("height"))&&(this.dimension.h=this.element.attr("height")),this.ratio=this.dimension.w/this.dimension.h;var width,height,w=this.parent.width(),h=this.parent.height();w/this.ratio<h?(width=Math.ceil(h*this.ratio),height=h):(width=w,height=Math.ceil(w/this.ratio)),this.element.css({width:width,height:height})}})}(UIkit),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";return UI.component("accordion",{defaults:{showfirst:!0,collapse:!0,animate:!0,easing:"swing",duration:300,toggle:".uk-accordion-title",containers:".uk-accordion-content",clsactive:"uk-active"},boot:function(){UI.ready(function(context){setTimeout(function(){UI.$("[data-uk-accordion]",context).each(function(){var ele=UI.$(this);ele.data("accordion")||UI.accordion(ele,UI.Utils.options(ele.attr("data-uk-accordion")))})},0)})},init:function(){var $this=this;this.element.on("click.uk.accordion",this.options.toggle,function(e){e.preventDefault(),$this.toggleItem(UI.$(this).data("wrapper"),$this.options.animate,$this.options.collapse)}),this.update(),this.options.showfirst&&this.toggleItem(this.toggle.eq(0).data("wrapper"),!1,!1)},toggleItem:function(wrapper,animated,collapse){var $this=this;wrapper.data("toggle").toggleClass(this.options.clsactive),wrapper.data("content").toggleClass(this.options.clsactive);var active=wrapper.data("toggle").hasClass(this.options.clsactive);collapse&&(this.toggle.not(wrapper.data("toggle")).removeClass(this.options.clsactive),this.content.not(wrapper.data("content")).removeClass(this.options.clsactive).parent().stop().css("overflow","hidden").animate({height:0},{easing:this.options.easing,duration:animated?this.options.duration:0}).attr("aria-expanded","false")),wrapper.stop().css("overflow","hidden"),animated?wrapper.animate({height:active?function(ele){var $ele=UI.$(ele),height="auto";if($ele.is(":visible"))height=$ele.outerHeight();else{var tmp={position:$ele.css("position"),visibility:$ele.css("visibility"),display:$ele.css("display")};height=$ele.css({position:"absolute",visibility:"hidden",display:"block"}).outerHeight(),$ele.css(tmp)}return height}(wrapper.data("content")):0},{easing:this.options.easing,duration:this.options.duration,complete:function(){active&&(wrapper.css({overflow:"",height:"auto"}),UI.Utils.checkDisplay(wrapper.data("content"))),$this.trigger("display.uk.check")}}):(wrapper.height(active?"auto":0),active&&(wrapper.css({overflow:""}),UI.Utils.checkDisplay(wrapper.data("content"))),this.trigger("display.uk.check")),wrapper.attr("aria-expanded",active),this.element.trigger("toggle.uk.accordion",[active,wrapper.data("toggle"),wrapper.data("content")])},update:function(){var $content,$wrapper,$toggle,$this=this;this.toggle=this.find(this.options.toggle),this.content=this.find(this.options.containers),this.content.each(function(index){($content=UI.$(this)).parent().data("wrapper")?$wrapper=$content.parent():($wrapper=UI.$(this).wrap('<div data-wrapper="true" style="overflow:hidden;height:0;position:relative;"></div>').parent()).attr("aria-expanded","false"),$toggle=$this.toggle.eq(index),$wrapper.data("toggle",$toggle),$wrapper.data("content",$content),$toggle.data("wrapper",$wrapper),$content.data("wrapper",$wrapper)}),this.element.trigger("update.uk.accordion",[this])}}),UI.accordion}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var active;return UI.component("autocomplete",{defaults:{minLength:3,param:"search",method:"post",delay:300,loadingClass:"uk-loading",flipDropdown:!1,skipClass:"uk-skip",hoverClass:"uk-active",source:null,renderer:null,template:'<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>'},visible:!1,value:null,selected:null,boot:function(){UI.$html.on("focus.autocomplete.uikit","[data-uk-autocomplete]",function(e){var ele=UI.$(this);ele.data("autocomplete")||UI.autocomplete(ele,UI.Utils.options(ele.attr("data-uk-autocomplete")))}),UI.$html.on("click.autocomplete.uikit",function(e){active&&e.target!=active.input[0]&&active.hide()})},init:function(){var $this=this,select=!1,trigger=UI.Utils.debounce(function(e){if(select)return select=!1;$this.handle()},this.options.delay);this.dropdown=this.find(".uk-dropdown"),this.template=this.find('script[type="text/autocomplete"]').html(),this.template=UI.Utils.template(this.template||this.options.template),this.input=this.find("input:first").attr("autocomplete","off"),this.dropdown.length||(this.dropdown=UI.$('<div class="uk-dropdown"></div>').appendTo(this.element)),this.options.flipDropdown&&this.dropdown.addClass("uk-dropdown-flip"),this.dropdown.attr("aria-expanded","false"),this.input.on({keydown:function(e){if(e&&e.which&&!e.shiftKey)switch(e.which){case 13:select=!0,$this.selected&&(e.preventDefault(),$this.select());break;case 38:e.preventDefault(),$this.pick("prev",!0);break;case 40:e.preventDefault(),$this.pick("next",!0);break;case 27:case 9:$this.hide()}},keyup:trigger}),this.dropdown.on("click",".uk-autocomplete-results > *",function(){$this.select()}),this.dropdown.on("mouseover",".uk-autocomplete-results > *",function(){$this.pick(UI.$(this))}),this.triggercomplete=trigger},handle:function(){var old=this.value;return this.value=this.input.val(),this.value.length<this.options.minLength?this.hide():(this.value!=old&&this.request(),this)},pick:function(item,scrollinview){var items=UI.$(this.dropdown.find(".uk-autocomplete-results").children(":not(."+this.options.skipClass+")")),selected=!1;if("string"==typeof item||item.hasClass(this.options.skipClass)){if("next"==item||"prev"==item){if(this.selected){var index=items.index(this.selected);selected="next"==item?items.eq(index+1<items.length?index+1:0):items.eq(index-1<0?items.length-1:index-1)}else selected=items["next"==item?"first":"last"]();selected=UI.$(selected)}}else selected=item;if(selected&&selected.length&&(this.selected=selected,items.removeClass(this.options.hoverClass),this.selected.addClass(this.options.hoverClass),scrollinview)){var top=selected.position().top,scrollTop=this.dropdown.scrollTop();(top>this.dropdown.height()||top<0)&&this.dropdown.scrollTop(scrollTop+top)}},select:function(){if(this.selected){var data=this.selected.data();this.trigger("selectitem.uk.autocomplete",[data,this]),data.value&&this.input.val(data.value).trigger("change"),this.hide()}},show:function(){if(!this.visible)return this.visible=!0,this.element.addClass("uk-open"),active&&active!==this&&active.hide(),active=this,this.dropdown.attr("aria-expanded","true"),this},hide:function(){if(this.visible)return this.visible=!1,this.element.removeClass("uk-open"),active===this&&(active=!1),this.dropdown.attr("aria-expanded","false"),this},request:function(){var $this=this,release=function(data){data&&$this.render(data),$this.element.removeClass($this.options.loadingClass)};if(this.element.addClass(this.options.loadingClass),this.options.source){var source=this.options.source;switch(typeof this.options.source){case"function":this.options.source.apply(this,[release]);break;case"object":if(source.length){var items=[];source.forEach(function(item){item.value&&-1!=item.value.toLowerCase().indexOf($this.value.toLowerCase())&&items.push(item)}),release(items)}break;case"string":var params={};params[this.options.param]=this.value,UI.$.ajax({url:this.options.source,data:params,type:this.options.method,dataType:"json"}).done(function(json){release(json||[])});break;default:release(null)}}else this.element.removeClass($this.options.loadingClass)},render:function(data){return this.dropdown.empty(),this.selected=!1,this.options.renderer?this.options.renderer.apply(this,[data]):data&&data.length&&(this.dropdown.append(this.template({items:data})),this.show(),this.trigger("show.uk.autocomplete")),this}}),UI.autocomplete}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var dropdown,moment,active=!1;return UI.component("datepicker",{defaults:{mobile:!1,weekstart:1,i18n:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},format:"YYYY-MM-DD",offsettop:5,maxDate:!1,minDate:!1,pos:"auto",template:function(data,opts){var i,content="";if(content+='<div class="uk-datepicker-nav">',content+='<a href="" class="no-ajaxy uk-datepicker-previous"></a>',content+='<a href="" class="no-ajaxy uk-datepicker-next"></a>',UI.formSelect){var months,minYear,maxYear,currentyear=(new Date).getFullYear(),options=[];for(i=0;i<opts.i18n.months.length;i++)i==data.month?options.push('<option value="'+i+'" selected>'+opts.i18n.months[i]+"</option>"):options.push('<option value="'+i+'">'+opts.i18n.months[i]+"</option>");for(months='<span class="uk-form-select">'+opts.i18n.months[data.month]+'<select class="update-picker-month">'+options.join("")+"</select></span>",options=[],minYear=data.minDate?data.minDate.year():currentyear-50,maxYear=data.maxDate?data.maxDate.year():currentyear+20,i=minYear;i<=maxYear;i++)i==data.year?options.push('<option value="'+i+'" selected>'+i+"</option>"):options.push('<option value="'+i+'">'+i+"</option>");content+='<div class="uk-datepicker-heading">'+months+' <span class="uk-form-select">'+data.year+'<select class="update-picker-year">'+options.join("")+"</select></span></div>"}else content+='<div class="uk-datepicker-heading">'+opts.i18n.months[data.month]+" "+data.year+"</div>";for(content+="</div>",content+='<table class="uk-datepicker-table">',content+="<thead>",i=0;i<data.weekdays.length;i++)data.weekdays[i]&&(content+="<th>"+data.weekdays[i]+"</th>");for(content+="</thead>",content+="<tbody>",i=0;i<data.days.length;i++)if(data.days[i]&&data.days[i].length){content+="<tr>";for(var d=0;d<data.days[i].length;d++)if(data.days[i][d]){var day=data.days[i][d],cls=[];day.inmonth||cls.push("uk-datepicker-table-muted"),day.selected&&cls.push("uk-active"),day.disabled&&cls.push("uk-datepicker-date-disabled uk-datepicker-table-muted"),content+='<td><a href="" class="no-ajaxy '+cls.join(" ")+'" data-date="'+day.day.format()+'">'+day.day.format("D")+"</a></td>"}content+="</tr>"}return content+="</tbody>",content+="</table>"}},boot:function(){UI.$win.on("resize orientationchange",function(){active&&active.hide()}),UI.$html.on("focus.datepicker.uikit","[data-uk-datepicker]",function(e){var ele=UI.$(this);ele.data("datepicker")||(e.preventDefault(),UI.datepicker(ele,UI.Utils.options(ele.attr("data-uk-datepicker"))),ele.trigger("focus"))}),UI.$html.on("click focus","*",function(e){var target=UI.$(e.target);!active||target[0]==dropdown[0]||target.data("datepicker")||target.parents(".uk-datepicker:first").length||active.hide()})},init:function(){if(!UI.support.touch||"date"!=this.element.attr("type")||this.options.mobile){var $this=this;this.current=this.element.val()?moment(this.element.val(),this.options.format):moment(),this.on("click focus",function(){active!==$this&&$this.pick(this.value?this.value:$this.options.minDate?$this.options.minDate:"")}).on("change",function(){$this.element.val()&&!moment($this.element.val(),$this.options.format).isValid()&&$this.element.val(moment().format($this.options.format))}),dropdown||((dropdown=UI.$('<div class="uk-dropdown uk-datepicker"></div>')).on("click",".uk-datepicker-next, .uk-datepicker-previous, [data-date]",function(e){e.stopPropagation(),e.preventDefault();var ele=UI.$(this);if(ele.hasClass("uk-datepicker-date-disabled"))return!1;ele.is("[data-date]")?(active.current=moment(ele.data("date")),active.element.val(active.current.format(active.options.format)).trigger("change"),active.hide()):active.add(ele.hasClass("uk-datepicker-next")?1:-1,"months")}),dropdown.on("change",".update-picker-month, .update-picker-year",function(){var select=UI.$(this);active[select.is(".update-picker-year")?"setYear":"setMonth"](Number(select.val()))}),dropdown.appendTo("body"))}},pick:function(initdate){var offset=this.element.offset(),css={left:offset.left,right:""};this.current=isNaN(initdate)?moment(initdate,this.options.format):moment(),this.initdate=this.current.format("YYYY-MM-DD"),this.update(),"right"==UI.langdirection&&(css.right=window.innerWidth-(css.left+this.element.outerWidth()),css.left="");var posTop=offset.top-this.element.outerHeight()+this.element.height()-this.options.offsettop-dropdown.outerHeight(),posBottom=offset.top+this.element.outerHeight()+this.options.offsettop;css.top=posBottom,"top"==this.options.pos?css.top=posTop:"auto"==this.options.pos&&window.innerHeight-posBottom-dropdown.outerHeight()<0&&posTop>=0&&(css.top=posTop),dropdown.css(css).show(),this.trigger("show.uk.datepicker"),active=this},add:function(unit,value){this.current.add(unit,value),this.update()},setMonth:function(month){this.current.month(month),this.update()},setYear:function(year){this.current.year(year),this.update()},update:function(){var data=this.getRows(this.current.year(),this.current.month()),tpl=this.options.template(data,this.options);dropdown.html(tpl),this.trigger("update.uk.datepicker")},getRows:function(year,month){var opts=this.options,now=moment().format("YYYY-MM-DD"),days=[31,year%4==0&&year%100!=0||year%400==0?29:28,31,30,31,30,31,31,30,31,30,31][month],before=new Date(year,month,1,12).getDay(),data={month:month,year:year,weekdays:[],days:[],maxDate:!1,minDate:!1},row=[];!1!==opts.maxDate&&(data.maxDate=isNaN(opts.maxDate)?moment(opts.maxDate,opts.format):moment().add(opts.maxDate,"days")),!1!==opts.minDate&&(data.minDate=isNaN(opts.minDate)?moment(opts.minDate,opts.format):moment().add(opts.minDate-1,"days")),data.weekdays=function(){for(var i=0,arr=[];i<7;i++){for(var day=i+(opts.weekstart||0);day>=7;)day-=7;arr.push(opts.i18n.weekdays[day])}return arr}(),opts.weekstart&&opts.weekstart>0&&(before-=opts.weekstart)<0&&(before+=7);for(var day,isDisabled,isSelected,isToday,isInMonth,cells=days+before,after=cells;after>7;)after-=7;cells+=7-after;for(var i=0,r=0;i<cells;i++)day=new Date(year,month,i-before+1,12),isDisabled=data.minDate&&data.minDate>day||data.maxDate&&day>data.maxDate,isInMonth=!(i<before||i>=days+before),day=moment(day),isSelected=this.initdate==day.format("YYYY-MM-DD"),isToday=now==day.format("YYYY-MM-DD"),row.push({selected:isSelected,today:isToday,disabled:isDisabled,day:day,inmonth:isInMonth}),7==++r&&(data.days.push(row),row=[],r=0);return data},hide:function(){active&&active===this&&(dropdown.hide(),active=!1,this.trigger("hide.uk.datepicker"))}}),moment=__webpack_provided_window_dot_moment,UI.Utils.moment=moment,UI.datepicker}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";return UI.component("formPassword",{defaults:{lblShow:"Show",lblHide:"Hide"},boot:function(){UI.$html.on("click.formpassword.uikit","[data-uk-form-password]",function(e){var ele=UI.$(this);ele.data("formPassword")||(e.preventDefault(),UI.formPassword(ele,UI.Utils.options(ele.attr("data-uk-form-password"))),ele.trigger("click"))})},init:function(){var $this=this;this.on("click",function(e){if(e.preventDefault(),$this.input.length){var type=$this.input.attr("type");$this.input.attr("type","text"==type?"password":"text"),$this.element.html($this.options["text"==type?"lblShow":"lblHide"])}}),this.input=this.element.next("input").length?this.element.next("input"):this.element.prev("input"),this.element.html(this.options[this.input.is("[type='password']")?"lblShow":"lblHide"]),this.element.data("formPassword",this)}}),UI.formPassword}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";return UI.component("formSelect",{defaults:{target:">span:first",activeClass:"uk-active"},boot:function(){UI.ready(function(context){UI.$("[data-uk-form-select]",context).each(function(){var ele=UI.$(this);ele.data("formSelect")||UI.formSelect(ele,UI.Utils.options(ele.attr("data-uk-form-select")))})})},init:function(){var select,fn,$this=this;this.target=this.find(this.options.target),this.select=this.find("select"),this.select.on("change",(select=$this.select[0],(fn=function(){try{$this.target.text(select.options[select.selectedIndex].text)}catch(e){}return $this.element[$this.select.val()?"addClass":"removeClass"]($this.options.activeClass),fn})())),this.element.data("formSelect",this)}}),UI.formSelect}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";UI.component("grid",{defaults:{colwidth:"auto",animation:!0,duration:300,gutter:0,controls:!1,filter:!1},boot:function(){UI.ready(function(context){UI.$("[data-uk-grid]",context).each(function(){var ele=UI.$(this);ele.data("grid")||UI.grid(ele,UI.Utils.options(ele.attr("data-uk-grid")))})})},init:function(){var $this=this,gutter=String(this.options.gutter).trim().split(" ");this.gutterv=parseInt(gutter[0],10),this.gutterh=parseInt(gutter[1]||gutter[0],10),this.element.css({position:"relative"}),this.controls=null,this.options.controls&&(this.controls=UI.$(this.options.controls),this.controls.on("click","[data-uk-filter]",function(e){e.preventDefault(),$this.filter(UI.$(this).data("ukFilter"))}),this.controls.on("click","[data-uk-sort]",function(e){e.preventDefault();var cmd=UI.$(this).attr("data-uk-sort").split(":");$this.sort(cmd[0],cmd[1])})),UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(){$this.currentfilter?$this.filter($this.currentfilter):this.updateLayout()}.bind(this),100)),this.on("display.uk.check",function(){$this.element.is(":visible")&&$this.updateLayout()}),UI.$html.on("changed.uk.dom",function(e){$this.updateLayout()}),!1!==this.options.filter?this.filter(this.options.filter):this.updateLayout()},_prepareElements:function(){var css,children=this.element.children(":not([data-grid-prepared])");children.length&&(css={position:"absolute","box-sizing":"border-box",width:"auto"==this.options.colwidth?"":this.options.colwidth},this.options.gutter&&(css["padding-left"]=this.gutterh,css["padding-bottom"]=this.gutterv,this.element.css("margin-left",-1*this.gutterh)),children.attr("data-grid-prepared","true").css(css))},updateLayout:function(elements){this._prepareElements();var item,width,height,pos,i,z,max,size,children=elements=elements||this.element.children(":visible"),maxwidth=this.element.width()+2*this.gutterh+2,left=0,top=0,positions=[];this.trigger("beforeupdate.uk.grid",[children]),children.each(function(index){for(size=_getSize(this),item=UI.$(this),width=size.outerWidth,height=size.outerHeight,left=0,top=0,i=0,max=positions.length;i<max;i++)pos=positions[i],left<=pos.aX&&(left=pos.aX),maxwidth<left+width&&(left=0),top<=pos.aY&&(top=pos.aY);positions.push({ele:item,top:top,left:left,width:width,height:height,aY:top+height,aX:left+width})});var posPrev,maxHeight=0;for(i=0,max=positions.length;i<max;i++){for(pos=positions[i],top=0,z=0;z<i;z++)posPrev=positions[z],pos.left<posPrev.aX&&posPrev.left+1<pos.aX&&(top=posPrev.aY);pos.top=top,pos.aY=top+pos.height,maxHeight=Math.max(maxHeight,pos.aY)}maxHeight-=this.gutterv,this.options.animation?(this.element.stop().animate({height:maxHeight},100),positions.forEach(function(pos){pos.ele.stop().animate({top:pos.top,left:pos.left,opacity:1},this.options.duration)}.bind(this))):(this.element.css("height",maxHeight),positions.forEach(function(pos){pos.ele.css({top:pos.top,left:pos.left,opacity:1})}.bind(this))),setTimeout(function(){UI.$doc.trigger("scrolling.uk.document")},2*this.options.duration*(this.options.animation?1:0)),this.trigger("afterupdate.uk.grid",[children])},filter:function(filter){this.currentfilter=filter,"number"==typeof(filter=filter||[])&&(filter=filter.toString()),"string"==typeof filter&&(filter=filter.split(/,/).map(function(item){return item.trim()}));var elements={visible:[],hidden:[]};this.element.children().each(function(index){var ele=UI.$(this),f=ele.attr("data-uk-filter"),infilter=!filter.length;f&&(f=f.split(/,/).map(function(item){return item.trim()}),filter.forEach(function(item){f.indexOf(item)>-1&&(infilter=!0)})),elements[infilter?"visible":"hidden"].push(ele)}),elements.hidden=UI.$(elements.hidden).map(function(){return this[0]}),elements.visible=UI.$(elements.visible).map(function(){return this[0]}),elements.hidden.attr("aria-hidden","true").filter(":visible").fadeOut(this.options.duration),elements.visible.attr("aria-hidden","false").filter(":hidden").css("opacity",0).show(),this.updateLayout(elements.visible),this.controls&&this.controls.length&&this.controls.find("[data-uk-filter]").removeClass("uk-active").filter('[data-uk-filter="'+filter+'"]').addClass("uk-active")},sort:function(by,order){"string"==typeof(order=order||1)&&(order="desc"==order.toLowerCase()?-1:1);var elements=this.element.children();elements.sort(function(a,b){return a=UI.$(a),((b=UI.$(b)).data(by)||"")<(a.data(by)||"")?order:-1*order}).appendTo(this.element),this.updateLayout(elements.filter(":visible")),this.controls&&this.controls.length&&this.controls.find("[data-uk-sort]").removeClass("uk-active").filter('[data-uk-sort="'+by+":"+(-1==order?"desc":"asc")+'"]').addClass("uk-active")}});var _getSize=function(){function getStyleSize(value){var num=parseFloat(value);return-1===value.indexOf("%")&&!isNaN(num)&&num}function setup(){if(!isSetup){isSetup=!0;var getStyleFn,getComputedStyle=window.getComputedStyle;if(getStyleFn=getComputedStyle?function(elem){return getComputedStyle(elem,null)}:function(elem){return elem.currentStyle},getStyle=function(elem){var style=getStyleFn(elem);return style||logError("Style returned "+style+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),style},boxSizingProp=function(propName){if(propName){if("string"==typeof docElemStyle[propName])return propName;var prefixed;propName=propName.charAt(0).toUpperCase()+propName.slice(1);for(var i=0,len=prefixes.length;i<len;i++)if(prefixed=prefixes[i]+propName,"string"==typeof docElemStyle[prefixed])return prefixed}}("boxSizing")){var div=document.createElement("div");div.style.width="200px",div.style.padding="1px 2px 3px 4px",div.style.borderStyle="solid",div.style.borderWidth="1px 2px 3px 4px",div.style[boxSizingProp]="border-box";var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=200===getStyleSize(style.width),body.removeChild(div)}}}var getStyle,boxSizingProp,isBoxSizeOuter,prefixes="Webkit Moz ms Ms O".split(" "),docElemStyle=document.documentElement.style,logError="undefined"==typeof console?function(){}:function(message){console.error(message)},measurements=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],isSetup=!1;return function(elem){if(setup(),"string"==typeof elem&&(elem=document.querySelector(elem)),elem&&"object"==typeof elem&&elem.nodeType){var style=getStyle(elem);if("none"===style.display)return function(){for(var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0,len=measurements.length;i<len;i++)size[measurements[i]]=0;return size}();var size={};size.width=elem.offsetWidth,size.height=elem.offsetHeight;for(var isBorderBox=size.isBorderBox=!(!boxSizingProp||!style[boxSizingProp]||"border-box"!==style[boxSizingProp]),i=0,len=measurements.length;i<len;i++){var measurement=measurements[i],value=style[measurement],num=parseFloat(value);size[measurement]=isNaN(num)?0:num}var paddingWidth=size.paddingLeft+size.paddingRight,paddingHeight=size.paddingTop+size.paddingBottom,marginWidth=size.marginLeft+size.marginRight,marginHeight=size.marginTop+size.marginBottom,borderWidth=size.borderLeftWidth+size.borderRightWidth,borderHeight=size.borderTopWidth+size.borderBottomWidth,isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter,styleWidth=getStyleSize(style.width);!1!==styleWidth&&(size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth));var styleHeight=getStyleSize(style.height);return!1!==styleHeight&&(size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)),size.innerWidth=size.width-(paddingWidth+borderWidth),size.innerHeight=size.height-(paddingHeight+borderHeight),size.outerWidth=size.width+marginWidth,size.outerHeight=size.height+marginHeight,size}}}()}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var editors=[];return UI.component("htmleditor",{defaults:{iframe:!1,mode:"split",markdown:!1,autocomplete:!0,height:500,maxsplitsize:1e3,codemirror:{mode:"htmlmixed",lineWrapping:!0,dragDrop:!1,autoCloseTags:!0,matchTags:!0,autoCloseBrackets:!0,matchBrackets:!0,indentUnit:4,indentWithTabs:!1,tabSize:4,hintOptions:{completionSingle:!1}},toolbar:["bold","italic","strike","link","image","blockquote","listUl","listOl"],lblPreview:"Preview",lblCodeview:"HTML",lblMarkedview:"Markdown"},boot:function(){UI.ready(function(context){UI.$("textarea[data-uk-htmleditor]",context).each(function(){var editor=UI.$(this);editor.data("htmleditor")||UI.htmleditor(editor,UI.Utils.options(editor.attr("data-uk-htmleditor")))})})},init:function(){var $this=this,tpl=UI.components.htmleditor.template;this.CodeMirror=this.options.CodeMirror||CodeMirror,this.buttons={},tpl=(tpl=tpl.replace(/\{:lblPreview}/g,this.options.lblPreview)).replace(/\{:lblCodeview}/g,this.options.lblCodeview),this.htmleditor=UI.$(tpl),this.content=this.htmleditor.find(".uk-htmleditor-content"),this.toolbar=this.htmleditor.find(".uk-htmleditor-toolbar"),this.preview=this.htmleditor.find(".uk-htmleditor-preview").children().eq(0),this.code=this.htmleditor.find(".uk-htmleditor-code"),this.element.before(this.htmleditor).appendTo(this.code),this.editor=this.CodeMirror.fromTextArea(this.element[0],this.options.codemirror),this.editor.htmleditor=this,this.editor.on("change",UI.Utils.debounce(function(){$this.render()},150)),this.editor.on("change",function(){$this.editor.save(),$this.element.trigger("input")}),this.code.find(".CodeMirror").css("height",this.options.height),this.options.iframe?(this.iframe=UI.$('<iframe class="uk-htmleditor-iframe" frameborder="0" scrolling="auto" height="100" width="100%"></iframe>'),this.preview.append(this.iframe),this.iframe[0].contentWindow.document.open(),this.iframe[0].contentWindow.document.close(),this.preview.container=UI.$(this.iframe[0].contentWindow.document).find("body"),"string"==typeof this.options.iframe&&this.preview.container.parent().append('<link rel="stylesheet" href="'+this.options.iframe+'">')):this.preview.container=this.preview,UI.$win.on("resize load",UI.Utils.debounce(function(){$this.fit()},200));var previewContainer=this.iframe?this.preview.container:$this.preview.parent(),codeContent=this.code.find(".CodeMirror-sizer"),codeScroll=this.code.find(".CodeMirror-scroll").on("scroll",UI.Utils.debounce(function(){if("tab"!=$this.htmleditor.attr("data-mode")){var codeHeight=codeContent.height()-codeScroll.height(),ratio=(previewContainer[0].scrollHeight-($this.iframe?$this.iframe.height():previewContainer.height()))/codeHeight,previewPosition=codeScroll.scrollTop()*ratio;previewContainer.scrollTop(previewPosition)}},10));this.htmleditor.on("click",".uk-htmleditor-button-code, .uk-htmleditor-button-preview",function(e){e.preventDefault(),"tab"==$this.htmleditor.attr("data-mode")&&($this.htmleditor.find(".uk-htmleditor-button-code, .uk-htmleditor-button-preview").removeClass("uk-active").filter(this).addClass("uk-active"),$this.activetab=UI.$(this).hasClass("uk-htmleditor-button-code")?"code":"preview",$this.htmleditor.attr("data-active-tab",$this.activetab),$this.editor.refresh())}),this.htmleditor.on("click","a[data-htmleditor-button]",function(){$this.code.is(":visible")&&$this.trigger("action."+UI.$(this).data("htmleditor-button"),[$this.editor])}),this.preview.parent().css("height",this.code.height()),this.options.autocomplete&&this.CodeMirror.showHint&&this.CodeMirror.hint&&this.CodeMirror.hint.html&&this.editor.on("inputRead",UI.Utils.debounce(function(){var POS=$this.editor.getDoc().getCursor();if("xml"==$this.CodeMirror.innerMode($this.editor.getMode(),$this.editor.getTokenAt(POS).state).mode.name){var cur=$this.editor.getCursor(),token=$this.editor.getTokenAt(cur);"<"!=token.string.charAt(0)&&"attribute"!=token.type||$this.CodeMirror.showHint($this.editor,$this.CodeMirror.hint.html,{completeSingle:!1})}},100)),this.debouncedRedraw=UI.Utils.debounce(function(){$this.redraw()},5),this.on("init.uk.component",function(){$this.debouncedRedraw()}),this.element.attr("data-uk-check-display",1).on("display.uk.check",function(e){this.htmleditor.is(":visible")&&this.fit()}.bind(this)),editors.push(this)},addButton:function(name,button){this.buttons[name]=button},addButtons:function(buttons){UI.$.extend(this.buttons,buttons)},replaceInPreview:function(regexp,callback){function translateOffset(offset){var result=editor.getValue().substring(0,offset).split("\n");return{line:result.length-1,ch:result[result.length-1].length}}var editor=this.editor,results=[],value=editor.getValue(),offset=-1,index=0;return this.currentvalue=this.currentvalue.replace(regexp,function(){var match={matches:arguments,from:translateOffset(offset=value.indexOf(arguments[0],++offset)),to:translateOffset(offset+arguments[0].length),replace:function(value){editor.replaceRange(value,match.from,match.to)},inRange:function(cursor){return cursor.line===match.from.line&&cursor.line===match.to.line?cursor.ch>=match.from.ch&&cursor.ch<match.to.ch:cursor.line===match.from.line&&cursor.ch>=match.from.ch||cursor.line>match.from.line&&cursor.line<match.to.line||cursor.line===match.to.line&&cursor.ch<match.to.ch}},result=callback(match,index);return result?(index++,results.push(match),result):arguments[0]}),results},_buildtoolbar:function(){if(this.options.toolbar&&this.options.toolbar.length){var $this=this,bar=[];this.toolbar.empty(),this.options.toolbar.forEach(function(button){if($this.buttons[button]){var title=$this.buttons[button].title?$this.buttons[button].title:button;bar.push('<li><a data-htmleditor-button="'+button+'" title="'+title+'" data-uk-tooltip>'+$this.buttons[button].label+"</a></li>")}}),this.toolbar.html(bar.join("\n"))}},fit:function(){var mode=this.options.mode;"split"==mode&&this.htmleditor.width()<this.options.maxsplitsize&&(mode="tab"),"tab"==mode&&(this.activetab||(this.activetab="code",this.htmleditor.attr("data-active-tab",this.activetab)),this.htmleditor.find(".uk-htmleditor-button-code, .uk-htmleditor-button-preview").removeClass("uk-active").filter("code"==this.activetab?".uk-htmleditor-button-code":".uk-htmleditor-button-preview").addClass("uk-active")),this.editor.refresh(),this.preview.parent().css("height",this.code.height()),this.htmleditor.attr("data-mode",mode)},redraw:function(){this._buildtoolbar(),this.render(),this.fit()},getMode:function(){return this.editor.getOption("mode")},getCursorMode:function(){var param={mode:"html"};return this.trigger("cursorMode",[param]),param.mode},render:function(){if(this.currentvalue=this.editor.getValue(),!this.currentvalue)return this.element.val(""),void this.preview.container.html("");this.trigger("render",[this]),this.trigger("renderLate",[this]),this.preview.container.html(this.currentvalue)},addShortcut:function(name,callback){var map={};return UI.$.isArray(name)||(name=[name]),name.forEach(function(key){map[key]=callback}),this.editor.addKeyMap(map),map},addShortcutAction:function(action,shortcuts){var editor=this;this.addShortcut(shortcuts,function(){editor.element.trigger("action."+action,[editor.editor])})},replaceSelection:function(replace){var text=this.editor.getSelection();if(!text.length){for(var cur=this.editor.getCursor(),curLine=this.editor.getLine(cur.line),start=cur.ch,end=start;end<curLine.length&&/[\w$]+/.test(curLine.charAt(end));)++end;for(;start&&/[\w$]+/.test(curLine.charAt(start-1));)--start;var curWord=start!=end&&curLine.slice(start,end);curWord&&(this.editor.setSelection({line:cur.line,ch:start},{line:cur.line,ch:end}),text=curWord)}var html=replace.replace("$1",text);this.editor.replaceSelection(html,"end"),this.editor.focus()},replaceLine:function(replace){var pos=this.editor.getDoc().getCursor(),text=this.editor.getLine(pos.line),html=replace.replace("$1",text);this.editor.replaceRange(html,{line:pos.line,ch:0},{line:pos.line,ch:text.length}),this.editor.setCursor({line:pos.line,ch:html.length}),this.editor.focus()},save:function(){this.editor.save()}}),UI.components.htmleditor.template=['<div class="uk-htmleditor uk-clearfix" data-mode="split">','<div class="uk-htmleditor-navbar">','<ul class="uk-htmleditor-navbar-nav uk-htmleditor-toolbar"></ul>','<div class="uk-htmleditor-navbar-flip">','<ul class="uk-htmleditor-navbar-nav">','<li class="uk-htmleditor-button-code"><a>{:lblCodeview}</a></li>','<li class="uk-htmleditor-button-preview"><a>{:lblPreview}</a></li>','<li><a data-htmleditor-button="fullscreen"><i class="uk-icon-expand"></i></a></li>',"</ul>","</div>","</div>",'<div class="uk-htmleditor-content">','<div class="uk-htmleditor-code"></div>','<div class="uk-htmleditor-preview"><div></div></div>',"</div>","</div>"].join(""),UI.plugin("htmleditor","base",{init:function(editor){function addAction(name,replace,mode){editor.on("action."+name,function(){"html"==editor.getCursorMode()&&editor["replaceLine"==mode?"replaceLine":"replaceSelection"](replace)})}editor.addButtons({fullscreen:{title:"Fullscreen",label:'<i class="uk-icon-expand"></i>'},bold:{title:"Bold",label:'<i class="uk-icon-bold"></i>'},italic:{title:"Italic",label:'<i class="uk-icon-italic"></i>'},strike:{title:"Strikethrough",label:'<i class="uk-icon-strikethrough"></i>'},blockquote:{title:"Blockquote",label:'<i class="uk-icon-quote-right"></i>'},link:{title:"Link",label:'<i class="uk-icon-link"></i>'},image:{title:"Image",label:'<i class="uk-icon-picture-o"></i>'},listUl:{title:"Unordered List",label:'<i class="uk-icon-list-ul"></i>'},listOl:{title:"Ordered List",label:'<i class="uk-icon-list-ol"></i>'}}),addAction("bold","<strong>$1</strong>"),addAction("italic","<em>$1</em>"),addAction("strike","<del>$1</del>"),addAction("blockquote","<blockquote><p>$1</p></blockquote>","replaceLine"),addAction("link",'<a href="http://">$1</a>'),addAction("image",'<img src="http://" alt="$1">');var listfn=function(){if("html"==editor.getCursorMode()){for(var cm=editor.editor,pos=cm.getDoc().getCursor(!0),posend=cm.getDoc().getCursor(!1),i=pos.line;i<posend.line+1;i++)cm.replaceRange("<li>"+cm.getLine(i)+"</li>",{line:i,ch:0},{line:i,ch:cm.getLine(i).length});cm.setCursor({line:posend.line,ch:cm.getLine(posend.line).length}),cm.focus()}};editor.on("action.listUl",function(){listfn()}),editor.on("action.listOl",function(){listfn()}),editor.htmleditor.on("click",'a[data-htmleditor-button="fullscreen"]',function(){editor.htmleditor.toggleClass("uk-htmleditor-fullscreen");var wrap=editor.editor.getWrapperElement();if(editor.htmleditor.hasClass("uk-htmleditor-fullscreen"))editor.editor.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:wrap.style.width,height:wrap.style.height},wrap.style.width="",wrap.style.height=editor.content.height()+"px",document.documentElement.style.overflow="hidden";else{document.documentElement.style.overflow="";var info=editor.editor.state.fullScreenRestore;wrap.style.width=info.width,wrap.style.height=info.height,window.scrollTo(info.scrollLeft,info.scrollTop)}setTimeout(function(){editor.fit(),UI.$win.trigger("resize")},50)}),editor.addShortcut(["Ctrl-S","Cmd-S"],function(){editor.element.trigger("htmleditor-save",[editor])}),editor.addShortcutAction("bold",["Ctrl-B","Cmd-B"])}}),UI.plugin("htmleditor","markdown",{init:function(editor){function enableMarkdown(){editor.editor.setOption("mode","gfm"),editor.htmleditor.find(".uk-htmleditor-button-code a").html(editor.options.lblMarkedview)}function addAction(name,replace,mode){editor.on("action."+name,function(){"markdown"==editor.getCursorMode()&&editor["replaceLine"==mode?"replaceLine":"replaceSelection"](replace)})}var parser=editor.options.mdparser||marked||null;parser&&(editor.options.markdown&&enableMarkdown(),addAction("bold","**$1**"),addAction("italic","*$1*"),addAction("strike","~~$1~~"),addAction("blockquote","> $1","replaceLine"),addAction("link","[$1](http://)"),addAction("image","![$1](http://)"),editor.on("action.listUl",function(){if("markdown"==editor.getCursorMode()){for(var cm=editor.editor,pos=cm.getDoc().getCursor(!0),posend=cm.getDoc().getCursor(!1),i=pos.line;i<posend.line+1;i++)cm.replaceRange("* "+cm.getLine(i),{line:i,ch:0},{line:i,ch:cm.getLine(i).length});cm.setCursor({line:posend.line,ch:cm.getLine(posend.line).length}),cm.focus()}}),editor.on("action.listOl",function(){if("markdown"==editor.getCursorMode()){var matches,cm=editor.editor,pos=cm.getDoc().getCursor(!0),posend=cm.getDoc().getCursor(!1),prefix=1;pos.line>0&&(matches=cm.getLine(pos.line-1).match(/^(\d+)\./))&&(prefix=Number(matches[1])+1);for(var i=pos.line;i<posend.line+1;i++)cm.replaceRange(prefix+". "+cm.getLine(i),{line:i,ch:0},{line:i,ch:cm.getLine(i).length}),prefix++;cm.setCursor({line:posend.line,ch:cm.getLine(posend.line).length}),cm.focus()}}),editor.on("renderLate",function(){"gfm"==editor.editor.options.mode&&(editor.currentvalue=parser(editor.currentvalue))}),editor.on("cursorMode",function(e,param){if("gfm"==editor.editor.options.mode){var pos=editor.editor.getDoc().getCursor();editor.editor.getTokenAt(pos).state.base.htmlState||(param.mode="markdown")}}),UI.$.extend(editor,{enableMarkdown:function(){enableMarkdown(),this.render()},disableMarkdown:function(){this.editor.setOption("mode","htmlmixed"),this.htmleditor.find(".uk-htmleditor-button-code a").html(this.options.lblCodeview),this.render()}}),editor.on({enableMarkdown:function(){editor.enableMarkdown()},disableMarkdown:function(){editor.disableMarkdown()}}))}}),UI.htmleditor}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var modal,cache={};return UI.component("lightbox",{defaults:{group:!1,duration:400,keyboard:!0},index:0,items:!1,boot:function(){UI.$html.on("click","[data-uk-lightbox]",function(e){e.preventDefault();var link=UI.$(this);link.data("lightbox")||UI.lightbox(link,UI.Utils.options(link.attr("data-uk-lightbox"))),link.data("lightbox").show(link)}),UI.$doc.on("keyup",function(e){if(modal&&modal.is(":visible")&&modal.lightbox.options.keyboard)switch(e.preventDefault(),e.keyCode){case 37:modal.lightbox.previous();break;case 39:modal.lightbox.next()}})},init:function(){var siblings=[];if(this.index=0,this.siblings=[],this.element&&this.element.length){var domSiblings=this.options.group?UI.$(['[data-uk-lightbox*="'+this.options.group+'"]',"[data-uk-lightbox*='"+this.options.group+"']"].join(",")):this.element;domSiblings.each(function(){var ele=UI.$(this);siblings.push({source:ele.attr("href"),title:ele.attr("data-title")||ele.attr("title"),type:ele.attr("data-lightbox-type")||"auto",link:ele})}),this.index=domSiblings.index(this.element),this.siblings=siblings}else this.options.group&&this.options.group.length&&(this.siblings=this.options.group);this.trigger("lightbox-init",[this])},show:function(index){this.modal=function(lightbox){return modal?(modal.lightbox=lightbox,modal):((modal=UI.$(['<div class="uk-modal">','<div class="uk-modal-dialog uk-modal-dialog-lightbox uk-slidenav-position" style="margin-left:auto;margin-right:auto;width:200px;height:200px;top:'+Math.abs(window.innerHeight/2-200)+'px;">','<a href="#" class="uk-modal-close uk-close uk-close-alt"></a>','<div class="uk-lightbox-content"></div>','<div class="uk-modal-spinner uk-hidden"></div>',"</div>","</div>"].join("")).appendTo("body")).dialog=modal.find(".uk-modal-dialog:first"),modal.content=modal.find(".uk-lightbox-content:first"),modal.loader=modal.find(".uk-modal-spinner:first"),modal.closer=modal.find(".uk-close.uk-close-alt"),modal.modal=UI.modal(modal,{modal:!1}),modal.on("swipeRight swipeLeft",function(e){modal.lightbox["swipeLeft"==e.type?"next":"previous"]()}).on("click","[data-lightbox-previous], [data-lightbox-next]",function(e){e.preventDefault(),modal.lightbox[UI.$(this).is("[data-lightbox-next]")?"next":"previous"]()}),modal.on("hide.uk.modal",function(e){modal.content.html("")}),UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(e){modal.is(":visible")&&!UI.Utils.isFullscreen()&&modal.lightbox.fitSize()}.bind(this),100)),modal.lightbox=lightbox,modal)}(this),this.modal.dialog.stop(),this.modal.content.stop();var data,item,$this=this,promise=UI.$.Deferred();"object"==typeof(index=index||0)&&this.siblings.forEach(function(s,idx){index[0]===s.link[0]&&(index=idx)}),index<0?index=this.siblings.length-index:this.siblings[index]||(index=0),item=this.siblings[index],data={lightbox:$this,source:item.source,type:item.type,index:index,promise:promise,title:item.title,item:item,meta:{content:"",width:null,height:null}},this.index=index,this.modal.content.empty(),this.modal.is(":visible")||(this.modal.content.css({width:"",height:""}).empty(),this.modal.modal.show()),this.modal.loader.removeClass("uk-hidden"),promise.promise().done(function(){$this.data=data,$this.fitSize(data)}).fail(function(){data.meta.content='<div class="uk-position-cover uk-flex uk-flex-middle uk-flex-center"><strong>Loading resource failed!</strong></div>',data.meta.width=400,data.meta.height=300,$this.data=data,$this.fitSize(data)}),$this.trigger("showitem.uk.lightbox",[data])},fitSize:function(){var $this=this,data=this.data,pad=this.modal.dialog.outerWidth()-this.modal.dialog.width(),dpad=parseInt(this.modal.dialog.css("margin-top"),10)+parseInt(this.modal.dialog.css("margin-bottom"),10),content=data.meta.content,duration=$this.options.duration;this.siblings.length>1&&(content=[content,'<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-previous uk-hidden-touch" data-lightbox-previous></a>','<a href="#" class="uk-slidenav uk-slidenav-contrast uk-slidenav-next uk-hidden-touch" data-lightbox-next></a>'].join(""));var maxwidth,maxheight,tmp=UI.$("<div>&nbsp;</div>").css({opacity:0,position:"absolute",top:0,left:0,width:"100%","max-width":$this.modal.dialog.css("max-width"),padding:$this.modal.dialog.css("padding"),margin:$this.modal.dialog.css("margin")}),w=data.meta.width,h=data.meta.height;tmp.appendTo("body").width(),maxwidth=tmp.width(),maxheight=window.innerHeight-dpad,tmp.remove(),this.modal.dialog.find(".uk-modal-caption").remove(),data.title&&(this.modal.dialog.append('<div class="uk-modal-caption">'+data.title+"</div>"),maxheight-=this.modal.dialog.find(".uk-modal-caption").outerHeight()),maxwidth<data.meta.width&&(h=Math.floor(h*(maxwidth/w)),w=maxwidth),maxheight<h&&(h=Math.floor(maxheight),w=Math.ceil(data.meta.width*(maxheight/data.meta.height))),this.modal.content.css("opacity",0).width(w).html(content),"iframe"==data.type&&this.modal.content.find("iframe:first").height(h);var dh=h+pad,t=Math.floor(window.innerHeight/2-dh/2)-dpad;t<0&&(t=0),this.modal.closer.addClass("uk-hidden"),$this.modal.data("mwidth")==w&&$this.modal.data("mheight")==h&&(duration=0),this.modal.dialog.animate({width:w+pad,height:h+pad,top:t},duration,"swing",function(){$this.modal.loader.addClass("uk-hidden"),$this.modal.content.css({width:""}).animate({opacity:1},function(){$this.modal.closer.removeClass("uk-hidden")}),$this.modal.data({mwidth:w,mheight:h})})},next:function(){this.show(this.siblings[this.index+1]?this.index+1:0)},previous:function(){this.show(this.siblings[this.index-1]?this.index-1:this.siblings.length-1)}}),UI.plugin("lightbox","image",{init:function(lightbox){lightbox.on("showitem.uk.lightbox",function(e,data){if("image"==data.type||data.source&&data.source.match(/\.(jpg|jpeg|png|gif|svg)$/i)){var resolve=function(source,width,height){data.meta={content:'<img class="uk-responsive-width" width="'+width+'" height="'+height+'" src ="'+source+'">',width:width,height:height},data.type="image",data.promise.resolve()};if(cache[data.source])resolve(data.source,cache[data.source].width,cache[data.source].height);else{var img=new Image;img.onerror=function(){data.promise.reject("Loading image failed")},img.onload=function(){cache[data.source]={width:img.width,height:img.height},resolve(data.source,cache[data.source].width,cache[data.source].height)},img.src=data.source}}})}}),UI.plugin("lightbox","youtube",{init:function(lightbox){var youtubeRegExp=/(\/\/.*?youtube\.[a-z]+)\/watch\?v=([^&]+)&?(.*)/,youtubeRegExpShort=/youtu\.be\/(.*)/;lightbox.on("showitem.uk.lightbox",function(e,data){var id,matches,resolve=function(id,width,height){data.meta={content:'<iframe src="//www.youtube.com/embed/'+id+'" width="'+width+'" height="'+height+'" style="max-width:100%;"></iframe>',width:width,height:height},data.type="iframe",data.promise.resolve()};if((matches=data.source.match(youtubeRegExp))&&(id=matches[2]),(matches=data.source.match(youtubeRegExpShort))&&(id=matches[1]),id){if(cache[id])resolve(id,cache[id].width,cache[id].height);else{var img=new Image,lowres=!1;img.onerror=function(){cache[id]={width:640,height:320},resolve(id,cache[id].width,cache[id].height)},img.onload=function(){120==img.width&&90==img.height?lowres?(cache[id]={width:640,height:320},resolve(id,cache[id].width,cache[id].height)):(lowres=!0,img.src="//img.youtube.com/vi/"+id+"/0.jpg"):(cache[id]={width:img.width,height:img.height},resolve(id,img.width,img.height))},img.src="//img.youtube.com/vi/"+id+"/maxresdefault.jpg"}e.stopImmediatePropagation()}})}}),UI.plugin("lightbox","vimeo",{init:function(lightbox){var matches,regex=/(\/\/.*?)vimeo\.[a-z]+\/([0-9]+).*?/;lightbox.on("showitem.uk.lightbox",function(e,data){var id,resolve=function(id,width,height){data.meta={content:'<iframe src="//player.vimeo.com/video/'+id+'" width="'+width+'" height="'+height+'" style="width:100%;box-sizing:border-box;"></iframe>',width:width,height:height},data.type="iframe",data.promise.resolve()};(matches=data.source.match(regex))&&(id=matches[2],cache[id]?resolve(id,cache[id].width,cache[id].height):UI.$.ajax({type:"GET",url:"http://vimeo.com/api/oembed.json?url="+encodeURI(data.source),jsonp:"callback",dataType:"jsonp",success:function(data){cache[id]={width:data.width,height:data.height},resolve(id,cache[id].width,cache[id].height)}}),e.stopImmediatePropagation())})}}),UI.plugin("lightbox","video",{init:function(lightbox){lightbox.on("showitem.uk.lightbox",function(e,data){var resolve=function(source,width,height){data.meta={content:'<video class="uk-responsive-width" src="'+source+'" width="'+width+'" height="'+height+'" controls></video>',width:width,height:height},data.type="video",data.promise.resolve()};if("video"==data.type||data.source.match(/\.(mp4|webm|ogv)$/i))if(cache[data.source])resolve(data.source,cache[data.source].width,cache[data.source].height);else var vid=UI.$('<video style="position:fixed;visibility:hidden;top:-10000px;"></video>').attr("src",data.source).appendTo("body"),idle=setInterval(function(){vid[0].videoWidth&&(clearInterval(idle),cache[data.source]={width:vid[0].videoWidth,height:vid[0].videoHeight},resolve(data.source,cache[data.source].width,cache[data.source].height),vid.remove())},20)})}}),UI.lightbox.create=function(items,options){if(items){var group=[];return items.forEach(function(item){group.push(UI.$.extend({source:"",title:"",type:"auto",link:!1},"string"==typeof item?{source:item}:item))}),UI.lightbox(UI.$.extend({},options,{group:group}))}},UI.lightbox}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var draggingElement,hasTouch="ontouchstart"in window,html=UI.$html,touchedlists=[],$win=UI.$win,eStart=hasTouch?"touchstart":"mousedown",eMove=hasTouch?"touchmove":"mousemove",eEnd=hasTouch?"touchend":"mouseup",eCancel=hasTouch?"touchcancel":"mouseup";return UI.component("nestable",{defaults:{listBaseClass:"uk-nestable",listClass:"uk-nestable-list",listItemClass:"uk-nestable-item",dragClass:"uk-nestable-dragged",movingClass:"uk-nestable-moving",noChildrenClass:"uk-nestable-nochildren",emptyClass:"uk-nestable-empty",handleClass:"",collapsedClass:"uk-collapsed",placeholderClass:"uk-nestable-placeholder",noDragClass:"uk-nestable-nodrag",group:!1,maxDepth:10,threshold:20,idlethreshold:10},boot:function(){UI.$html.on("mousemove touchmove",function(e){if(draggingElement){var top=draggingElement.offset().top;top<UI.$win.scrollTop()?UI.$win.scrollTop(UI.$win.scrollTop()-Math.ceil(draggingElement.height()/2)):top+draggingElement.height()>window.innerHeight+UI.$win.scrollTop()&&UI.$win.scrollTop(UI.$win.scrollTop()+Math.ceil(draggingElement.height()/2))}}),UI.ready(function(context){UI.$("[data-uk-nestable]",context).each(function(){var ele=UI.$(this);ele.data("nestable")||UI.nestable(ele,UI.Utils.options(ele.attr("data-uk-nestable")))})})},init:function(){var $this=this;Object.keys(this.options).forEach(function(key){-1!=String(key).indexOf("Class")&&($this.options["_"+key]="."+$this.options[key])}),this.find(this.options._listItemClass).find(">ul").addClass(this.options.listClass),this.checkEmptyList(),this.reset(),this.element.data("nestable-group",this.options.group||UI.Utils.uid("nestable-group")),this.find(this.options._listItemClass).each(function(){$this.setParent(UI.$(this))}),this.on("click","[data-nestable-action]",function(e){if(!$this.dragEl&&(hasTouch||0===e.button)){e.preventDefault();var target=UI.$(e.currentTarget),action=target.data("nestableAction"),item=target.closest($this.options._listItemClass);"collapse"===action&&$this.collapseItem(item),"expand"===action&&$this.expandItem(item),"toggle"===action&&$this.toggleItem(item)}});var onStartEvent=function(e){var handle=UI.$(e.target);e.target!==$this.element[0]&&(handle.is($this.options._noDragClass)||handle.closest($this.options._noDragClass).length||handle.is("[data-nestable-action]")||handle.closest("[data-nestable-action]").length||($this.options.handleClass&&!handle.hasClass($this.options.handleClass)&&$this.options.handleClass&&(handle=handle.closest($this.options._handleClass)),!handle.length||$this.dragEl||!hasTouch&&0!==e.button||hasTouch&&1!==e.touches.length||(e.originalEvent&&e.originalEvent.touches&&(e=evt.originalEvent.touches[0]),$this.delayMove=function(evt){evt.preventDefault(),$this.dragStart(e),$this.trigger("start.uk.nestable",[$this]),$this.delayMove=!1},$this.delayMove.x=parseInt(e.pageX,10),$this.delayMove.y=parseInt(e.pageY,10),$this.delayMove.threshold=$this.options.idlethreshold,e.preventDefault())))},onMoveEvent=function(e){e.originalEvent&&e.originalEvent.touches&&(e=e.originalEvent.touches[0]),$this.delayMove&&(Math.abs(e.pageX-$this.delayMove.x)>$this.delayMove.threshold||Math.abs(e.pageY-$this.delayMove.y)>$this.delayMove.threshold)&&(window.getSelection().toString()?$this.delayMove=!1:$this.delayMove(e)),$this.dragEl&&(e.preventDefault(),$this.dragMove(e),$this.trigger("move.uk.nestable",[$this]))},onEndEvent=function(e){$this.dragEl&&(e.preventDefault(),$this.dragStop(hasTouch?e.touches[0]:e)),draggingElement=!1,$this.delayMove=!1};hasTouch?(this.element[0].addEventListener(eStart,onStartEvent,!1),window.addEventListener(eMove,onMoveEvent,!1),window.addEventListener(eEnd,onEndEvent,!1),window.addEventListener(eCancel,onEndEvent,!1)):(this.on(eStart,onStartEvent),$win.on(eMove,onMoveEvent),$win.on(eEnd,onEndEvent))},serialize:function(){var list=this,step=function(level,depth){var array=[];return level.children(list.options._listItemClass).each(function(){for(var attribute,li=UI.$(this),item={},sub=li.children(list.options._listClass),i=0;i<li[0].attributes.length;i++)0===(attribute=li[0].attributes[i]).name.indexOf("data-")&&(item[attribute.name.substr(5)]=UI.Utils.str2json(attribute.value));sub.length&&(item.children=step(sub,depth+1)),array.push(item)}),array};return step(list.element,0)},list:function(options){var data=[],step=function(level,depth,parent){level.children(options._listItemClass).each(function(index){var li=UI.$(this),item=UI.$.extend({parent_id:parent||null,depth:depth,order:index},li.data()),sub=li.children(options._listClass);data.push(item),sub.length&&step(sub,depth+1,li.data(options.idProperty||"id"))})};return options=UI.$.extend({},this.options,options),step(this.element,0),data},reset:function(){this.mouse={offsetX:0,offsetY:0,startX:0,startY:0,lastX:0,lastY:0,nowX:0,nowY:0,distX:0,distY:0,dirAx:0,dirX:0,dirY:0,lastDirX:0,lastDirY:0,distAxX:0,distAxY:0},this.moving=!1,this.dragEl=null,this.dragRootEl=null,this.dragDepth=0,this.hasNewRoot=!1,this.pointEl=null;for(var i=0;i<touchedlists.length;i++)this.checkEmptyList(touchedlists[i]);touchedlists=[]},toggleItem:function(li){this[li.hasClass(this.options.collapsedClass)?"expandItem":"collapseItem"](li)},expandItem:function(li){li.removeClass(this.options.collapsedClass)},collapseItem:function(li){li.children(this.options._listClass).length&&li.addClass(this.options.collapsedClass)},expandAll:function(){var list=this;this.find(list.options._listItemClass).each(function(){list.expandItem(UI.$(this))})},collapseAll:function(){var list=this;this.find(list.options._listItemClass).each(function(){list.collapseItem(UI.$(this))})},setParent:function(li){li.children(this.options._listClass).length&&li.addClass("uk-parent")},unsetParent:function(li){li.removeClass("uk-parent "+this.options.collapsedClass),li.children(this.options._listClass).remove()},dragStart:function(e){var mouse=this.mouse,dragItem=UI.$(e.target).closest(this.options._listItemClass),offset=dragItem.offset();this.placeEl=dragItem,mouse.offsetX=e.pageX-offset.left,mouse.offsetY=e.pageY-offset.top,mouse.startX=mouse.lastX=offset.left,mouse.startY=mouse.lastY=offset.top,this.dragRootEl=this.element,this.dragEl=UI.$("<ul></ul>").addClass(this.options.listClass+" "+this.options.dragClass).append(dragItem.clone()),this.dragEl.css("width",dragItem.width()),this.placeEl.addClass(this.options.placeholderClass),draggingElement=this.dragEl,this.tmpDragOnSiblings=[dragItem[0].previousSibling,dragItem[0].nextSibling],UI.$body.append(this.dragEl),this.dragEl.css({left:offset.left,top:offset.top});var i,depth,items=this.dragEl.find(this.options._listItemClass);for(i=0;i<items.length;i++)(depth=UI.$(items[i]).parents(this.options._listClass+","+this.options._listBaseClass).length)>this.dragDepth&&(this.dragDepth=depth);html.addClass(this.options.movingClass)},dragStop:function(e){var el=UI.$(this.placeEl),root=this.placeEl.parents(this.options._listBaseClass+":first");this.placeEl.removeClass(this.options.placeholderClass),this.dragEl.remove(),this.element[0]!==root[0]?(root.trigger("change.uk.nestable",[root.data("nestable"),el,"added"]),this.element.trigger("change.uk.nestable",[this,el,"removed"])):this.element.trigger("change.uk.nestable",[this,el,"moved"]),this.trigger("stop.uk.nestable",[this,el]),this.reset(),html.removeClass(this.options.movingClass)},dragMove:function(e){var list,parent,prev,opt=this.options,mouse=this.mouse,maxDepth=this.dragRootEl?this.dragRootEl.data("nestable").options.maxDepth:opt.maxDepth;this.dragEl.css({left:e.pageX-mouse.offsetX,top:e.pageY-mouse.offsetY}),mouse.lastX=mouse.nowX,mouse.lastY=mouse.nowY,mouse.nowX=e.pageX,mouse.nowY=e.pageY,mouse.distX=mouse.nowX-mouse.lastX,mouse.distY=mouse.nowY-mouse.lastY,mouse.lastDirX=mouse.dirX,mouse.lastDirY=mouse.dirY,mouse.dirX=0===mouse.distX?0:mouse.distX>0?1:-1,mouse.dirY=0===mouse.distY?0:mouse.distY>0?1:-1;var newAx=Math.abs(mouse.distX)>Math.abs(mouse.distY)?1:0;if(!mouse.moving)return mouse.dirAx=newAx,void(mouse.moving=!0);if(mouse.dirAx!==newAx?(mouse.distAxX=0,mouse.distAxY=0):(mouse.distAxX+=Math.abs(mouse.distX),0!==mouse.dirX&&mouse.dirX!==mouse.lastDirX&&(mouse.distAxX=0),mouse.distAxY+=Math.abs(mouse.distY),0!==mouse.dirY&&mouse.dirY!==mouse.lastDirY&&(mouse.distAxY=0)),mouse.dirAx=newAx,mouse.dirAx&&mouse.distAxX>=opt.threshold&&(mouse.distAxX=0,prev=this.placeEl.prev("li"),mouse.distX>0&&prev.length&&!prev.hasClass(opt.collapsedClass)&&!prev.hasClass(opt.noChildrenClass)&&(list=prev.find(opt._listClass).last(),this.placeEl.parents(opt._listClass+","+opt._listBaseClass).length+this.dragDepth<=maxDepth&&(list.length?(list=prev.children(opt._listClass).last()).append(this.placeEl):((list=UI.$("<ul/>").addClass(opt.listClass)).append(this.placeEl),prev.append(list),this.setParent(prev)))),mouse.distX<0&&!this.placeEl.next(opt._listItemClass).length)){var parentUl=this.placeEl.closest([opt._listBaseClass,opt._listClass].join(",")),surroundingLi=parentUl.closest(opt._listItemClass);surroundingLi.length&&(surroundingLi.after(this.placeEl),parentUl.children().length||this.unsetParent(surroundingLi))}var isEmpty=!1,pointX=e.pageX-(window.pageXOffset||document.scrollLeft||0),pointY=e.pageY-(window.pageYOffset||document.documentElement.scrollTop);if(this.pointEl=UI.$(document.elementFromPoint(pointX,pointY)),opt.handleClass&&this.pointEl.hasClass(opt.handleClass))this.pointEl=this.pointEl.closest(opt._listItemClass);else{var nestableitem=this.pointEl.closest(opt._listItemClass);nestableitem.length&&(this.pointEl=nestableitem)}if(!this.placeEl.find(this.pointEl).length){if(this.pointEl.data("nestable")&&!this.pointEl.children().length)isEmpty=!0,this.checkEmptyList(this.pointEl);else if(!this.pointEl.length||!this.pointEl.hasClass(opt.listItemClass))return;var pointElRoot=this.element,tmpRoot=this.pointEl.closest(this.options._listBaseClass),isNewRoot=pointElRoot[0]!=tmpRoot[0];if(!mouse.dirAx||isNewRoot||isEmpty){if(isNewRoot&&opt.group!==tmpRoot.data("nestable-group"))return;if(touchedlists.push(pointElRoot),this.dragDepth-1+this.pointEl.parents(opt._listClass+","+opt._listBaseClass).length>maxDepth)return;var before=e.pageY<this.pointEl.offset().top+this.pointEl.height()/2;parent=this.placeEl.parent(),isEmpty?this.pointEl.append(this.placeEl):before?this.pointEl.before(this.placeEl):this.pointEl.after(this.placeEl),parent.children().length||parent.data("nestable")||this.unsetParent(parent.parent()),this.checkEmptyList(this.dragRootEl),this.checkEmptyList(pointElRoot),isNewRoot&&(this.dragRootEl=tmpRoot,this.hasNewRoot=this.element[0]!==this.dragRootEl[0])}}},checkEmptyList:function(list){list=list?UI.$(list):this.element,this.options.emptyClass&&list[list.children().length?"removeClass":"addClass"](this.options.emptyClass)}}),UI.nestable}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var containers={},messages={},notify=function(options){return"string"==UI.$.type(options)&&(options={message:options}),arguments[1]&&(options=UI.$.extend(options,"string"==UI.$.type(arguments[1])?{status:arguments[1]}:arguments[1])),new Message(options).show()},Message=function(options){this.options=UI.$.extend({},Message.defaults,options),this.uuid=UI.Utils.uid("notifymsg"),this.element=UI.$(['<div class="uk-notify-message">','<a class="uk-close"></a>',"<div></div>","</div>"].join("")).data("notifyMessage",this),this.content(this.options.message),this.options.status&&(this.element.addClass("uk-notify-message-"+this.options.status),this.currentstatus=this.options.status),this.group=this.options.group,messages[this.uuid]=this,containers[this.options.pos]||(containers[this.options.pos]=UI.$('<div class="uk-notify uk-notify-'+this.options.pos+'"></div>').appendTo("body").on("click",".uk-notify-message",function(){var message=UI.$(this).data("notifyMessage");message.element.trigger("manualclose.uk.notify",[message]),message.close()}))};return UI.$.extend(Message.prototype,{uuid:!1,element:!1,timout:!1,currentstatus:"",group:!1,show:function(){if(!this.element.is(":visible")){var $this=this;containers[this.options.pos].show().prepend(this.element);var marginbottom=parseInt(this.element.css("margin-bottom"),10);return this.element.css({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0}).animate({opacity:1,"margin-top":0,"margin-bottom":marginbottom},function(){if($this.options.timeout){var closefn=function(){$this.close()};$this.timeout=setTimeout(closefn,$this.options.timeout),$this.element.hover(function(){clearTimeout($this.timeout)},function(){$this.timeout=setTimeout(closefn,$this.options.timeout)})}}),this}},close:function(instantly){var $this=this,finalize=function(){$this.element.remove(),containers[$this.options.pos].children().length||containers[$this.options.pos].hide(),$this.options.onClose.apply($this,[]),$this.element.trigger("close.uk.notify",[$this]),delete messages[$this.uuid]};this.timeout&&clearTimeout(this.timeout),instantly?finalize():this.element.animate({opacity:0,"margin-top":-1*this.element.outerHeight(),"margin-bottom":0},function(){finalize()})},content:function(html){var container=this.element.find(">div");return html?(container.html(html),this):container.html()},status:function(status){return status?(this.element.removeClass("uk-notify-message-"+this.currentstatus).addClass("uk-notify-message-"+status),this.currentstatus=status,this):this.currentstatus}}),Message.defaults={message:"",status:"",timeout:5e3,group:null,pos:"top-center",onClose:function(){}},UI.notify=notify,UI.notify.message=Message,UI.notify.closeAll=function(group,instantly){var id;if(group)for(id in messages)group===messages[id].group&&messages[id].close(instantly);else for(id in messages)messages[id].close(instantly)},notify}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";return UI.component("pagination",{defaults:{items:1,itemsOnPage:1,pages:0,displayedPages:7,edges:1,currentPage:0,lblPrev:!1,lblNext:!1,onSelectPage:function(){}},boot:function(){UI.ready(function(context){UI.$("[data-uk-pagination]",context).each(function(){var ele=UI.$(this);ele.data("pagination")||UI.pagination(ele,UI.Utils.options(ele.attr("data-uk-pagination")))})})},init:function(){var $this=this;this.pages=this.options.pages?this.options.pages:Math.ceil(this.options.items/this.options.itemsOnPage)?Math.ceil(this.options.items/this.options.itemsOnPage):1,this.currentPage=this.options.currentPage,this.halfDisplayed=this.options.displayedPages/2,this.on("click","a[data-page]",function(e){e.preventDefault(),$this.selectPage(UI.$(this).data("page"))}),this._render()},_getInterval:function(){return{start:Math.ceil(this.currentPage>this.halfDisplayed?Math.max(Math.min(this.currentPage-this.halfDisplayed,this.pages-this.options.displayedPages),0):0),end:Math.ceil(this.currentPage>this.halfDisplayed?Math.min(this.currentPage+this.halfDisplayed,this.pages):Math.min(this.options.displayedPages,this.pages))}},render:function(pages){this.pages=pages||this.pages,this._render()},selectPage:function(pageIndex,pages){this.currentPage=pageIndex,this.render(pages),this.options.onSelectPage.apply(this,[pageIndex]),this.trigger("select.uk.pagination",[pageIndex,this])},_render:function(){var i,o=this.options,interval=this._getInterval();if(this.element.empty(),o.lblPrev&&this._append(this.currentPage-1,{text:o.lblPrev}),interval.start>0&&o.edges>0){var end=Math.min(o.edges,interval.start);for(i=0;i<end;i++)this._append(i);o.edges<interval.start&&interval.start-o.edges!=1?this.element.append("<li><span>...</span></li>"):interval.start-o.edges==1&&this._append(o.edges)}for(i=interval.start;i<interval.end;i++)this._append(i);if(interval.end<this.pages&&o.edges>0)for(this.pages-o.edges>interval.end&&this.pages-o.edges-interval.end!=1?this.element.append("<li><span>...</span></li>"):this.pages-o.edges-interval.end==1&&this._append(interval.end++),i=Math.max(this.pages-o.edges,interval.end);i<this.pages;i++)this._append(i);o.lblNext&&this._append(this.currentPage+1,{text:o.lblNext})},_append:function(pageIndex,opts){var item,options;pageIndex=pageIndex<0?0:pageIndex<this.pages?pageIndex:this.pages-1,options=UI.$.extend({text:pageIndex+1},opts),item=pageIndex==this.currentPage?'<li class="uk-active"><span>'+options.text+"</span></li>":'<li><a href="#page-'+(pageIndex+1)+'" data-page="'+pageIndex+'">'+options.text+"</a></li>",this.element.append(item)}}),UI.pagination}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";function parseColor(color){var match;return(match=/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})/.exec(color))?[parseInt(match[1],16),parseInt(match[2],16),parseInt(match[3],16),1]:(match=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/.exec(color))?[17*parseInt(match[1],16),17*parseInt(match[2],16),17*parseInt(match[3],16),1]:(match=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))?[parseInt(match[1]),parseInt(match[2]),parseInt(match[3]),1]:(match=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9\.]*)\s*\)/.exec(color))?[parseInt(match[1],10),parseInt(match[2],10),parseInt(match[3],10),parseFloat(match[4])]:colors[color]||[255,255,255,0]}var parallaxes=[],supports3d=!1,scrolltop=0,wh=window.innerHeight,checkParallaxes=function(){scrolltop=UI.$win.scrollTop(),window.requestAnimationFrame(function(){for(var i=0;i<parallaxes.length;i++)parallaxes[i].process()})};UI.component("parallax",{defaults:{velocity:.5,target:!1,viewport:!1,media:!1},boot:function(){supports3d=function(){var has3d,el=document.createElement("div"),transforms={WebkitTransform:"-webkit-transform",MSTransform:"-ms-transform",MozTransform:"-moz-transform",Transform:"transform"};for(var t in document.body.insertBefore(el,null),transforms)void 0!==el.style[t]&&(el.style[t]="translate3d(1px,1px,1px)",has3d=window.getComputedStyle(el).getPropertyValue(transforms[t]));return document.body.removeChild(el),void 0!==has3d&&has3d.length>0&&"none"!==has3d}(),UI.$doc.on("scrolling.uk.document",checkParallaxes),UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(){wh=window.innerHeight,checkParallaxes()},50)),UI.ready(function(context){UI.$("[data-uk-parallax]",context).each(function(){var parallax=UI.$(this);parallax.data("parallax")||UI.parallax(parallax,UI.Utils.options(parallax.attr("data-uk-parallax")))})})},init:function(){this.base=this.options.target?UI.$(this.options.target):this.element,this.props={},this.velocity=this.options.velocity||1;var reserved=["target","velocity","viewport","plugins","media"];Object.keys(this.options).forEach(function(prop){if(-1===reserved.indexOf(prop)){var start,end,dir,diff,startend=String(this.options[prop]).split(",");prop.match(/color/i)?(start=startend[1]?startend[0]:this._getStartValue(prop),end=startend[1]?startend[1]:startend[0],start||(start="rgba(255,255,255,0)")):(diff=(start=parseFloat(startend[1]?startend[0]:this._getStartValue(prop)))<(end=parseFloat(startend[1]?startend[1]:startend[0]))?end-start:start-end,dir=start<end?1:-1),this.props[prop]={start:start,end:end,dir:dir,diff:diff}}}.bind(this)),parallaxes.push(this)},process:function(){if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var percent=this.percentageInViewport();!1!==this.options.viewport&&(percent=0===this.options.viewport?1:percent/this.options.viewport),this.update(percent)},percentageInViewport:function(){var distance,percent,top=this.base.offset().top,height=this.base.outerHeight();return top>scrolltop+wh?percent=0:top+height<scrolltop?percent=1:top+height<wh?percent=(scrolltop<wh?scrolltop:scrolltop-wh)/(top+height):(distance=scrolltop+wh-top,percent=Math.round(distance/((wh+height)/100))/100),percent},update:function(percent){var opts,val,css={transform:""},compercent=percent*(1-(this.velocity-this.velocity*percent));compercent<0&&(compercent=0),compercent>1&&(compercent=1),void 0!==this._percent&&this._percent==compercent||(Object.keys(this.props).forEach(function(prop){switch(opts=this.props[prop],0===percent?val=opts.start:1===percent?val=opts.end:void 0!==opts.diff&&(val=opts.start+opts.diff*compercent*opts.dir),"bg"!=prop&&"bgp"!=prop||this._bgcover||(this._bgcover=function(obj,prop,opts){var url,element,size,check,ratio,width,height,img=new Image;return element=obj.element.css({"background-size":"cover","background-repeat":"no-repeat"}),url=element.css("background-image").replace(/^url\(/g,"").replace(/\)$/g,"").replace(/("|')/g,""),check=function(){var w=element.innerWidth(),h=element.innerHeight(),extra="bg"==prop?opts.diff:opts.diff/100*h;if(h+=extra,(w+=Math.ceil(extra*ratio))-extra<size.w&&h<size.h)return obj.element.css({"background-size":"auto"});w/ratio<h?(width=Math.ceil(h*ratio),height=h,h>window.innerHeight&&(width*=1.2,height*=1.2)):(width=w,height=Math.ceil(w/ratio)),element.css({"background-size":width+"px "+height+"px"}).data("bgsize",{w:width,h:height})},img.onerror=function(){},img.onload=function(){size={w:img.width,h:img.height},ratio=img.width/img.height,UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(){check()},50)),check()},img.src=url,!0}(this,prop,opts)),prop){case"x":css.transform+=supports3d?" translate3d("+val+"px, 0, 0)":" translateX("+val+"px)";break;case"xp":css.transform+=supports3d?" translate3d("+val+"%, 0, 0)":" translateX("+val+"%)";break;case"y":css.transform+=supports3d?" translate3d(0, "+val+"px, 0)":" translateY("+val+"px)";break;case"yp":css.transform+=supports3d?" translate3d(0, "+val+"%, 0)":" translateY("+val+"%)";break;case"rotate":css.transform+=" rotate("+val+"deg)";break;case"scale":css.transform+=" scale("+val+")";break;case"bg":css["background-position"]="50% "+val+"px";break;case"bgp":css["background-position"]="50% "+val+"%";break;case"color":case"background-color":case"border-color":css[prop]=(start=opts.start,end=opts.end,pos=compercent,start=parseColor(start),end=parseColor(end),function(begin,end,pos){var color="rgba("+parseInt(begin[0]+pos*(end[0]-begin[0]),10)+","+parseInt(begin[1]+pos*(end[1]-begin[1]),10)+","+parseInt(begin[2]+pos*(end[2]-begin[2]),10)+","+(begin&&end?parseFloat(begin[3]+pos*(end[3]-begin[3])):1);return color+=")"}(start,end,pos=pos||0));break;default:css[prop]=val}var start,end,pos}.bind(this)),this.element.css(css),this._percent=compercent)},_getStartValue:function(prop){var value=0;switch(prop){case"scale":value=1;break;default:value=this.element.css(prop)}return value||0}});var colors={black:[0,0,0,1],blue:[0,0,255,1],brown:[165,42,42,1],cyan:[0,255,255,1],fuchsia:[255,0,255,1],gold:[255,215,0,1],green:[0,128,0,1],indigo:[75,0,130,1],khaki:[240,230,140,1],lime:[0,255,0,1],magenta:[255,0,255,1],maroon:[128,0,0,1],navy:[0,0,128,1],olive:[128,128,0,1],orange:[255,165,0,1],pink:[255,192,203,1],purple:[128,0,128,1],violet:[128,0,128,1],red:[255,0,0,1],silver:[192,192,192,1],white:[255,255,255,1],yellow:[255,255,0,1],transparent:[255,255,255,0]};return UI.parallax}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){function getcolumns(element){for(var children=element.children(),first=children.filter(":visible:first"),top=first[0].offsetTop+first.outerHeight(),column=0;column<children.length&&!(children[column].offsetTop>=top);column++);return column||1}var parallaxes=[],checkParallaxes=function(){requestAnimationFrame(function(){for(var i=0;i<parallaxes.length;i++)parallaxes[i].process()})};UI.component("gridparallax",{defaults:{target:!1,smooth:150,translate:150},boot:function(){UI.$doc.on("scrolling.uk.document",checkParallaxes),UI.$win.on("load resize orientationchange",UI.Utils.debounce(function(){checkParallaxes()},50)),UI.ready(function(context){UI.$("[data-uk-grid-parallax]",context).each(function(){var parallax=UI.$(this);parallax.data("gridparallax")||UI.gridparallax(parallax,UI.Utils.options(parallax.attr("data-uk-grid-parallax")))})})},init:function(){var fn,$this=this;this.initItems().process(),parallaxes.push(this),UI.$win.on("load resize orientationchange",(fn=function(){var columns=getcolumns($this.element);$this.element.css("margin-bottom",""),columns>1&&$this.element.css("margin-bottom",$this.options.translate+parseInt($this.element.css("margin-bottom")))},UI.$(function(){fn()}),UI.Utils.debounce(fn,50)))},initItems:function(){var smooth=this.options.smooth;return this.items=(this.options.target?this.element.find(this.options.target):this.element.children()).each(function(){UI.$(this).css({transition:"transform "+smooth+"ms linear",transform:""})}),this},process:function(){var percent=function(element){var distance,percentage,percent,top=element.offset().top,height=element.outerHeight(),scrolltop=UIkit.$win.scrollTop(),wh=window.innerHeight;return top>scrolltop+wh?percent=0:top+height<scrolltop?percent=1:(top+height<wh?percent=(scrolltop<wh?scrolltop:scrolltop-wh)/(top+height):(distance=scrolltop+wh-top,percentage=Math.round(distance/((wh+height)/100)),percent=percentage/100),top<wh&&(percent=percent*scrolltop/(top+height-wh))),percent>1?1:percent}(this.element),columns=getcolumns(this.element),items=this.items,mods=[columns-1];if(1!=columns&&percent){for(;mods.length<columns&&mods[mods.length-1]-2;)mods.push(mods[mods.length-1]-2);var percenttranslate=percent*this.options.translate;items.each(function(idx,ele,translate){translate=-1!=mods.indexOf((idx+1)%columns)?percenttranslate:percenttranslate/8,UI.$(this).css("transform","translate3d(0,"+translate+"px, 0)")})}else items.css("transform","")}})}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";UI.component("search",{defaults:{msgResultsHeader:"Search Results",msgMoreResults:"More Results",msgNoResults:"No results found",template:'<ul class="uk-nav uk-nav-search uk-autocomplete-results">                                      {{#msgResultsHeader}}<li class="uk-nav-header uk-skip">{{msgResultsHeader}}</li>{{/msgResultsHeader}}                                      {{#items && items.length}}                                          {{~items}}                                          <li data-url="{{!$item.url}}">                                              <a href="{{!$item.url}}">                                                  {{{$item.title}}}                                                  {{#$item.text}}<div>{{{$item.text}}}</div>{{/$item.text}}                                              </a>                                          </li>                                          {{/items}}                                          {{#msgMoreResults}}                                              <li class="uk-nav-divider uk-skip"></li>                                              <li class="uk-search-moreresults" data-moreresults="true"><a href="#" onclick="jQuery(this).closest(\'form\').submit();">{{msgMoreResults}}</a></li>                                          {{/msgMoreResults}}                                      {{/end}}                                      {{^items.length}}                                        {{#msgNoResults}}<li class="uk-skip"><a>{{msgNoResults}}</a></li>{{/msgNoResults}}                                      {{/end}}                                  </ul>',renderer:function(data){var opts=this.options;this.dropdown.append(this.template({items:data.results||[],msgResultsHeader:opts.msgResultsHeader,msgMoreResults:opts.msgMoreResults,msgNoResults:opts.msgNoResults})),this.show()}},boot:function(){UI.$html.on("focus.search.uikit","[data-uk-search]",function(e){var ele=UI.$(this);ele.data("search")||UI.search(ele,UI.Utils.options(ele.attr("data-uk-search")))})},init:function(){var $this=this;this.autocomplete=UI.autocomplete(this.element,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-search"),this.autocomplete.input.on("keyup",function(){$this.element[$this.autocomplete.input.val()?"addClass":"removeClass"]("uk-active")}).closest("form").on("reset",function(){$this.value="",$this.element.removeClass("uk-active")}),this.on("selectitem.uk.autocomplete",function(e,data){data.url?location.href=data.url:data.moreresults&&$this.autocomplete.input.closest("form").submit()}),this.element.data("search",this)}})}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var dragging,delayIdle,anchor,dragged,store={};return UI.component("slider",{defaults:{center:!1,threshold:10,infinite:!0,autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0,activecls:"uk-active"},boot:function(){UI.ready(function(context){setTimeout(function(){UI.$("[data-uk-slider]",context).each(function(){var ele=UI.$(this);ele.data("slider")||UI.slider(ele,UI.Utils.options(ele.attr("data-uk-slider")))})},0)})},init:function(){var $this=this;this.container=this.element.find(".uk-slider"),this.focus=0,UI.$win.on("resize load",UI.Utils.debounce(function(){$this.resize(!0)},100)),this.on("click.uk.slider","[data-uk-slider-item]",function(e){e.preventDefault();var item=UI.$(this).attr("data-uk-slider-item");if($this.focus!=item)switch($this.stop(),item){case"next":case"previous":$this["next"==item?"next":"previous"]();break;default:$this.updateFocus(parseInt(item,10))}}),this.container.on({"touchstart mousedown":function(evt){evt.originalEvent&&evt.originalEvent.touches&&(evt=evt.originalEvent.touches[0]),evt.button&&2==evt.button||!$this.active||($this.stop(),anchor=UI.$(evt.target).is("a")?UI.$(evt.target):UI.$(evt.target).parents("a:first"),dragged=!1,anchor.length&&anchor.one("click",function(e){dragged&&e.preventDefault()}),(delayIdle=function(e){dragged=!0,dragging=$this,store={touchx:parseInt(e.pageX,10),dir:1,focus:$this.focus,base:$this.options.center?"center":"area"},e.originalEvent&&e.originalEvent.touches&&(e=e.originalEvent.touches[0]),dragging.element.data({"pointer-start":{x:parseInt(e.pageX,10),y:parseInt(e.pageY,10)},"pointer-pos-start":$this.pos}),$this.container.addClass("uk-drag"),delayIdle=!1}).x=parseInt(evt.pageX,10),delayIdle.threshold=$this.options.threshold)},mouseenter:function(){$this.options.pauseOnHover&&($this.hovering=!0)},mouseleave:function(){$this.hovering=!1}}),this.resize(!0),this.on("display.uk.check",function(){$this.element.is(":visible")&&$this.resize(!0)}),this.element.find("a,img").attr("draggable","false"),this.options.autoplay&&this.start()},resize:function(focus){var item,width,cwidth,size,$this=this,pos=0,maxheight=0;if(this.items=this.container.children().filter(":visible"),this.vp=this.element[0].getBoundingClientRect().width,this.container.css({"min-width":"","min-height":""}),this.items.each(function(idx){item=UI.$(this),size=item.css({left:"",width:""})[0].getBoundingClientRect(),width=size.width,cwidth=item.width(),maxheight=Math.max(maxheight,size.height),item.css({left:pos,width:width}).data({idx:idx,left:pos,width:width,cwidth:cwidth,area:pos+width,center:pos-($this.vp/2-cwidth/2)}),pos+=width}),this.container.css({"min-width":pos,"min-height":maxheight}),this.options.infinite&&(pos<=2*this.vp||this.items.length<5)&&!this.itemsResized)return this.container.children().each(function(idx){$this.container.append($this.items.eq(idx).clone(!0).attr("id",""))}).each(function(idx){$this.container.append($this.items.eq(idx).clone(!0).attr("id",""))}),this.itemsResized=!0,this.resize();this.cw=pos,this.pos=0,this.active=pos>=this.vp,this.container.css({"-ms-transform":"","-webkit-transform":"",transform:""}),focus&&this.updateFocus(this.focus)},updatePos:function(pos){this.pos=pos,this.container.css({"-ms-transform":"translateX("+pos+"px)","-webkit-transform":"translateX("+pos+"px)",transform:"translateX("+pos+"px)"})},updateFocus:function(idx,dir){if(this.active){dir=dir||(idx>this.focus?1:-1);var area,i,item=this.items.eq(idx);if(this.options.infinite&&this.infinite(idx,dir),this.options.center)this.updatePos(-1*item.data("center")),this.items.filter("."+this.options.activecls).removeClass(this.options.activecls),item.addClass(this.options.activecls);else if(this.options.infinite)this.updatePos(-1*item.data("left"));else{for(area=0,i=idx;i<this.items.length;i++)area+=this.items.eq(i).data("width");if(area>this.vp)this.updatePos(-1*item.data("left"));else if(1==dir){for(area=0,i=this.items.length-1;i>=0;i--){if((area+=this.items.eq(i).data("width"))==this.vp){idx=i;break}if(area>this.vp){idx=i<this.items.length-1?i+1:i;break}}area>this.vp?this.updatePos(-1*(this.container.width()-this.vp)):this.updatePos(-1*this.items.eq(idx).data("left"))}}var left=this.items.eq(idx).data("left");this.items.removeClass("uk-slide-before uk-slide-after").each(function(i){i!==idx&&UI.$(this).addClass(UI.$(this).data("left")<left?"uk-slide-before":"uk-slide-after")}),this.focus=idx,this.trigger("focusitem.uk.slider",[idx,this.items.eq(idx),this])}},next:function(){var focus=this.items[this.focus+1]?this.focus+1:this.options.infinite?0:this.focus;this.updateFocus(focus,1)},previous:function(){var focus=this.items[this.focus-1]?this.focus-1:this.options.infinite?this.items[this.focus-1]?this.items-1:this.items.length-1:this.focus;this.updateFocus(focus,-1)},start:function(){this.stop();var $this=this;this.interval=setInterval(function(){$this.hovering||$this.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},infinite:function(baseidx,direction){var i,$this=this,item=this.items.eq(baseidx),z=baseidx,move=[],area=0;if(1==direction){for(i=0;i<this.items.length&&(z!=baseidx&&(area+=this.items.eq(z).data("width"),move.push(this.items.eq(z))),!(area>this.vp));i++)z=z+1==this.items.length?0:z+1;move.length&&move.forEach(function(itm){var left=item.data("area");itm.css({left:left}).data({left:left,area:left+itm.data("width"),center:left-($this.vp/2-itm.data("cwidth")/2)}),item=itm})}else{for(i=this.items.length-1;i>-1&&(area+=this.items.eq(z).data("width"),z!=baseidx&&move.push(this.items.eq(z)),!(area>this.vp));i--)z=z-1==-1?this.items.length-1:z-1;move.length&&move.forEach(function(itm){var left=item.data("left")-itm.data("width");itm.css({left:left}).data({left:left,area:left+itm.data("width"),center:left-($this.vp/2-itm.data("cwidth")/2)}),item=itm})}}}),UI.$doc.on("mousemove.uk.slider touchmove.uk.slider",function(e){if(e.originalEvent&&e.originalEvent.touches&&(e=e.originalEvent.touches[0]),delayIdle&&Math.abs(e.pageX-delayIdle.x)>delayIdle.threshold&&(window.getSelection().toString()?dragging=delayIdle=!1:delayIdle(e)),dragging){var x,xDiff,pos,dir,focus,item,diff,i,z,itm;if(e.clientX||e.clientY?x=e.clientX:(e.pageX||e.pageY)&&(x=e.pageX-document.body.scrollLeft-document.documentElement.scrollLeft),focus=store.focus,xDiff=x-dragging.element.data("pointer-start").x,pos=dragging.element.data("pointer-pos-start")+xDiff,dir=x>dragging.element.data("pointer-start").x?-1:1,item=dragging.items.eq(store.focus),1==dir)for(diff=item.data("left")+Math.abs(xDiff),i=0,z=store.focus;i<dragging.items.length;i++){if(itm=dragging.items.eq(z),z!=store.focus&&itm.data("left")<diff&&itm.data("area")>diff){focus=z;break}z=z+1==dragging.items.length?0:z+1}else for(diff=item.data("left")-Math.abs(xDiff),i=0,z=store.focus;i<dragging.items.length;i++){if(itm=dragging.items.eq(z),z!=store.focus&&itm.data("area")<=item.data("left")&&itm.data("center")<diff){focus=z;break}z=z-1==-1?dragging.items.length-1:z-1}dragging.options.infinite&&focus!=store._focus&&dragging.infinite(focus,dir),dragging.updatePos(pos),store.dir=dir,store._focus=focus,store.touchx=parseInt(e.pageX,10),store.diff=diff}}),UI.$doc.on("mouseup.uk.slider touchend.uk.slider",function(e){if(dragging){dragging.container.removeClass("uk-drag"),dragging.items.eq(store.focus);var itm,i,z,focus=!1;if(1==store.dir)for(i=0,z=store.focus;i<dragging.items.length;i++){if(itm=dragging.items.eq(z),z!=store.focus&&itm.data("left")>store.diff){focus=z;break}z=z+1==dragging.items.length?0:z+1}else for(i=0,z=store.focus;i<dragging.items.length;i++){if(itm=dragging.items.eq(z),z!=store.focus&&itm.data("left")<store.diff){focus=z;break}z=z-1==-1?dragging.items.length-1:z-1}dragging.updateFocus(!1!==focus?focus:store._focus)}dragging=delayIdle=!1}),UI.slider}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],__WEBPACK_LOCAL_MODULE_16__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))}(function(UI){"use strict";var Animations,playerId=0;UI.component("slideshow",{defaults:{animation:"fade",duration:500,height:"auto",start:0,autoplay:!1,autoplayInterval:7e3,videoautoplay:!0,videomute:!0,slices:15,pauseOnHover:!0,kenburns:!1,kenburnsanimations:["uk-animation-middle-left","uk-animation-top-right","uk-animation-bottom-left","uk-animation-top-center","","uk-animation-bottom-right"]},current:!1,interval:null,hovering:!1,boot:function(){UI.ready(function(context){UI.$("[data-uk-slideshow]",context).each(function(){var slideshow=UI.$(this);slideshow.data("slideshow")||UI.slideshow(slideshow,UI.Utils.options(slideshow.attr("data-uk-slideshow")))})})},init:function(){var canvas,kbanimduration,$this=this;this.container=this.element.hasClass("uk-slideshow")?this.element:UI.$(this.find(".uk-slideshow")),this.slides=this.container.children(),this.slidesCount=this.slides.length,this.current=this.options.start,this.animating=!1,this.triggers=this.find("[data-uk-slideshow-item]"),this.fixFullscreen=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&this.container.hasClass("uk-slideshow-fullscreen"),this.options.kenburns&&(kbanimduration=!0===this.options.kenburns?"15s":this.options.kenburns,String(kbanimduration).match(/(ms|s)$/)||(kbanimduration+="ms"),"string"==typeof this.options.kenburnsanimations&&(this.options.kenburnsanimations=this.options.kenburnsanimations.split(","))),this.slides.each(function(index){var slide=UI.$(this),media=slide.children("img,video,iframe").eq(0);if(slide.data("media",media),slide.data("sizer",media),media.length){var placeholder;switch(media[0].nodeName){case"IMG":var cover=UI.$('<div class="uk-cover-background uk-position-cover"></div>').css({"background-image":"url("+media.attr("src")+")"});media.attr("width")&&media.attr("height")&&(placeholder=UI.$("<canvas></canvas>").attr({width:media.attr("width"),height:media.attr("height")}),media.replaceWith(placeholder),media=placeholder,placeholder=void 0),media.css({width:"100%",height:"auto",opacity:0}),slide.prepend(cover).data("cover",cover);break;case"IFRAME":var src=media[0].src,iframeId="sw-"+ ++playerId;media.attr("src","").on("load",function(){if((index!==$this.current||index==$this.current&&!$this.options.videoautoplay)&&$this.pausemedia(media),$this.options.videomute){$this.mutemedia(media);var inv=setInterval((ic=0,function(){$this.mutemedia(media),++ic>=4&&clearInterval(inv)}),250)}var ic}).data("slideshow",$this).attr("data-player-id",iframeId).attr("src",[src,src.indexOf("?")>-1?"&":"?","enablejsapi=1&api=1&player_id="+iframeId].join("")).addClass("uk-position-absolute"),UI.support.touch||media.css("pointer-events","none"),placeholder=!0,UI.cover&&(UI.cover(media),media.attr("data-uk-cover","{}"));break;case"VIDEO":media.addClass("uk-cover-object uk-position-absolute"),placeholder=!0,$this.options.videomute&&$this.mutemedia(media)}if(placeholder){canvas=UI.$("<canvas></canvas>").attr({width:media[0].width,height:media[0].height});var img=UI.$('<img style="width:100%;height:auto;">').attr("src",canvas[0].toDataURL());slide.prepend(img),slide.data("sizer",img)}}else slide.data("sizer",slide);$this.hasKenBurns(slide)&&slide.data("cover").css({"-webkit-animation-duration":kbanimduration,"animation-duration":kbanimduration})}),this.on("click.uk.slideshow","[data-uk-slideshow-item]",function(e){e.preventDefault();var slide=UI.$(this).attr("data-uk-slideshow-item");if($this.current!=slide){switch(slide){case"next":case"previous":$this["next"==slide?"next":"previous"]();break;default:$this.show(parseInt(slide,10))}$this.stop()}}),this.slides.attr("aria-hidden","true").eq(this.current).addClass("uk-active").attr("aria-hidden","false"),this.triggers.filter('[data-uk-slideshow-item="'+this.current+'"]').addClass("uk-active"),UI.$win.on("resize load",UI.Utils.debounce(function(){$this.resize(),$this.fixFullscreen&&($this.container.css("height",window.innerHeight),$this.slides.css("height",window.innerHeight))},100)),setTimeout(function(){$this.resize()},80),this.options.autoplay&&this.start(),this.options.videoautoplay&&this.slides.eq(this.current).data("media")&&this.playmedia(this.slides.eq(this.current).data("media")),this.options.kenburns&&this.applyKenBurns(this.slides.eq(this.current)),this.container.on({mouseenter:function(){$this.options.pauseOnHover&&($this.hovering=!0)},mouseleave:function(){$this.hovering=!1}}),this.on("swipeRight swipeLeft",function(e){$this["swipeLeft"==e.type?"next":"previous"]()}),this.on("display.uk.check",function(){$this.element.is(":visible")&&($this.resize(),$this.fixFullscreen&&($this.container.css("height",window.innerHeight),$this.slides.css("height",window.innerHeight)))})},resize:function(){if(!this.container.hasClass("uk-slideshow-fullscreen")){var height=this.options.height;"auto"===this.options.height&&(height=0,this.slides.css("height","").each(function(){height=Math.max(height,UI.$(this).height())})),this.container.css("height",height),this.slides.css("height",height)}},show:function(index,direction){if(!this.animating&&this.current!=index){this.animating=!0;var $this=this,current=this.slides.eq(this.current),next=this.slides.eq(index),dir=direction||(this.current<index?1:-1),currentmedia=current.data("media"),animation=Animations[this.options.animation]?this.options.animation:"fade",nextmedia=next.data("media");$this.applyKenBurns(next),UI.support.animation||(animation="none"),current=UI.$(current),next=UI.$(next),$this.trigger("beforeshow.uk.slideshow",[next,current,$this]),Animations[animation].apply(this,[current,next,dir]).then(function(){$this.animating&&(currentmedia&&currentmedia.is("video,iframe")&&$this.pausemedia(currentmedia),nextmedia&&nextmedia.is("video,iframe")&&$this.playmedia(nextmedia),next.addClass("uk-active").attr("aria-hidden","false"),current.removeClass("uk-active").attr("aria-hidden","true"),$this.animating=!1,$this.current=index,UI.Utils.checkDisplay(next,'[class*="uk-animation-"]:not(.uk-cover-background.uk-position-cover)'),$this.trigger("show.uk.slideshow",[next,current,$this]))}),$this.triggers.removeClass("uk-active"),$this.triggers.filter('[data-uk-slideshow-item="'+index+'"]').addClass("uk-active")}},applyKenBurns:function(slide){if(this.hasKenBurns(slide)){var animations=this.options.kenburnsanimations,index=this.kbindex||0;slide.data("cover").attr("class","uk-cover-background uk-position-cover").width(),slide.data("cover").addClass(["uk-animation-scale","uk-animation-reverse",animations[index].trim()].join(" ")),this.kbindex=animations[index+1]?index+1:0}},hasKenBurns:function(slide){return this.options.kenburns&&slide.data("cover")},next:function(){this.show(this.slides[this.current+1]?this.current+1:0,1)},previous:function(){this.show(this.slides[this.current-1]?this.current-1:this.slides.length-1,-1)},start:function(){this.stop();var $this=this;this.interval=setInterval(function(){$this.hovering||$this.next()},this.options.autoplayInterval)},stop:function(){this.interval&&clearInterval(this.interval)},playmedia:function(media){if(media&&media[0])switch(media[0].nodeName){case"VIDEO":this.options.videomute||(media[0].muted=!1),media[0].play();break;case"IFRAME":this.options.videomute||media[0].contentWindow.postMessage('{ "event": "command", "func": "unmute", "method":"setVolume", "value":1}',"*"),media[0].contentWindow.postMessage('{ "event": "command", "func": "playVideo", "method":"play"}',"*")}},pausemedia:function(media){switch(media[0].nodeName){case"VIDEO":media[0].pause();break;case"IFRAME":media[0].contentWindow.postMessage('{ "event": "command", "func": "pauseVideo", "method":"pause"}',"*")}},mutemedia:function(media){switch(media[0].nodeName){case"VIDEO":media[0].muted=!0;break;case"IFRAME":media[0].contentWindow.postMessage('{ "event": "command", "func": "mute", "method":"setVolume", "value":0}',"*")}}}),Animations={none:function(){var d=UI.$.Deferred();return d.resolve(),d.promise()},scroll:function(current,next,dir){var d=UI.$.Deferred();return current.css("animation-duration",this.options.duration+"ms"),next.css("animation-duration",this.options.duration+"ms"),next.css("opacity",1).one(UI.support.animation.end,function(){current.removeClass(-1==dir?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),next.css("opacity","").removeClass(-1==dir?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),d.resolve()}.bind(this)),current.addClass(-1==dir?"uk-slideshow-scroll-backward-out":"uk-slideshow-scroll-forward-out"),next.addClass(-1==dir?"uk-slideshow-scroll-backward-in":"uk-slideshow-scroll-forward-in"),next.width(),d.promise()},swipe:function(current,next,dir){var d=UI.$.Deferred();return current.css("animation-duration",this.options.duration+"ms"),next.css("animation-duration",this.options.duration+"ms"),next.css("opacity",1).one(UI.support.animation.end,function(){current.removeClass(-1===dir?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),next.css("opacity","").removeClass(-1===dir?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),d.resolve()}.bind(this)),current.addClass(-1==dir?"uk-slideshow-swipe-backward-out":"uk-slideshow-swipe-forward-out"),next.addClass(-1==dir?"uk-slideshow-swipe-backward-in":"uk-slideshow-swipe-forward-in"),next.width(),d.promise()},scale:function(current,next,dir){var d=UI.$.Deferred();return current.css("animation-duration",this.options.duration+"ms"),next.css("animation-duration",this.options.duration+"ms"),next.css("opacity",1),current.one(UI.support.animation.end,function(){current.removeClass("uk-slideshow-scale-out"),next.css("opacity",""),d.resolve()}.bind(this)),current.addClass("uk-slideshow-scale-out"),current.width(),d.promise()},fade:function(current,next,dir){var d=UI.$.Deferred();return current.css("animation-duration",this.options.duration+"ms"),next.css("animation-duration",this.options.duration+"ms"),next.css("opacity",1),next.data("cover")||next.data("placeholder")||next.css("opacity",1).one(UI.support.animation.end,function(){next.removeClass("uk-slideshow-fade-in")}).addClass("uk-slideshow-fade-in"),current.one(UI.support.animation.end,function(){current.removeClass("uk-slideshow-fade-out"),next.css("opacity",""),d.resolve()}.bind(this)),current.addClass("uk-slideshow-fade-out"),current.width(),d.promise()}},UI.slideshow.animations=Animations,window.addEventListener("message",function(e){var iframe,data=e.data;if("string"==typeof data)try{data=JSON.parse(data)}catch(err){data={}}e.origin&&e.origin.indexOf("vimeo")>-1&&"ready"==data.event&&data.player_id&&(iframe=UI.$('[data-player-id="'+data.player_id+'"]')).length&&iframe.data("slideshow").mutemedia(iframe)},!1)}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__,__WEBPACK_LOCAL_MODULE_16__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var Animations=UI.slideshow.animations;UI.$.extend(UI.slideshow.animations,{slice:function(current,next,dir,fromfx){if(!current.data("cover"))return Animations.fade.apply(this,arguments);for(var bar,d=UI.$.Deferred(),sliceWidth=Math.ceil(this.element.width()/this.options.slices),bgimage=next.data("cover").css("background-image"),ghost=UI.$("<li></li>").css({top:0,left:0,width:this.container.width(),height:this.container.height(),opacity:1,zIndex:15}),ghostWidth=ghost.width(),ghostHeight=ghost.height(),i=0;i<this.options.slices;i++){var clipfrom,width=(this.options.slices,sliceWidth),clipto="rect(0px, "+width*(i+1)+"px, "+ghostHeight+"px, "+sliceWidth*i+"px)";clipfrom="rect(0px, "+width*(i+1)+"px, 0px, "+sliceWidth*i+"px)",("slice-up"==fromfx||"slice-up-down"==fromfx&&(i%2+2)%2==0)&&(clipfrom="rect("+ghostHeight+"px, "+width*(i+1)+"px, "+ghostHeight+"px, "+sliceWidth*i+"px)"),bar=UI.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,width:ghostWidth,height:ghostHeight,"background-image":bgimage,clip:clipfrom,opacity:0,transition:"all "+this.options.duration+"ms ease-in-out "+60*i+"ms","-webkit-transition":"all "+this.options.duration+"ms ease-in-out "+60*i+"ms"}).data("clip",clipto),ghost.append(bar)}return this.container.append(ghost),ghost.children().last().on(UI.support.transition.end,function(){ghost.remove(),d.resolve()}),ghost.width(),ghost.children().each(function(){var bar=UI.$(this);bar.css({clip:bar.data("clip"),opacity:1})}),d.promise()},"slice-up":function(current,next,dir){return Animations.slice.apply(this,[current,next,dir,"slice-up"])},"slice-down":function(current,next,dir){return Animations.slice.apply(this,[current,next,dir,"slice-down"])},"slice-up-down":function(current,next,dir){return Animations.slice.apply(this,[current,next,dir,"slice-up-down"])},fold:function(current,next,dir){if(!next.data("cover"))return Animations.fade.apply(this,arguments);for(var bar,d=UI.$.Deferred(),sliceWidth=Math.ceil(this.element.width()/this.options.slices),bgimage=next.data("cover").css("background-image"),ghost=UI.$("<li></li>").css({width:next.width(),height:next.height(),opacity:1,zIndex:15}),ghostWidth=next.width(),ghostHeight=next.height(),i=0;i<this.options.slices;i++)bar=UI.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,width:ghostWidth,height:ghostHeight,"background-image":bgimage,"transform-origin":sliceWidth*i+"px 0 0",clip:"rect(0px, "+sliceWidth*(i+1)+"px, "+ghostHeight+"px, "+sliceWidth*i+"px)",opacity:0,transform:"scaleX(0.000001)",transition:"all "+this.options.duration+"ms ease-in-out "+(100+60*i)+"ms","-webkit-transition":"all "+this.options.duration+"ms ease-in-out "+(100+60*i)+"ms"}),ghost.prepend(bar);return this.container.append(ghost),ghost.width(),ghost.children().first().on(UI.support.transition.end,function(){ghost.remove(),d.resolve()}).end().css({transform:"scaleX(1)",opacity:1}),d.promise()},puzzle:function(current,next,dir){if(!next.data("cover"))return Animations.fade.apply(this,arguments);for(var box,rect,d=UI.$.Deferred(),$this=this,boxCols=Math.round(this.options.slices/2),boxWidth=Math.round(next.width()/boxCols),boxRows=Math.round(next.height()/boxWidth),boxHeight=Math.round(next.height()/boxRows)+1,bgimage=next.data("cover").css("background-image"),ghost=UI.$("<li></li>").css({width:this.container.width(),height:this.container.height(),opacity:1,zIndex:15}),ghostWidth=this.container.width(),ghostHeight=this.container.height(),rows=0;rows<boxRows;rows++)for(var cols=0;cols<boxCols;cols++)rect=[boxHeight*rows+"px",(cols==boxCols-1?boxWidth+2:boxWidth)*(cols+1)+"px",boxHeight*(rows+1)+"px",boxWidth*cols+"px"],box=UI.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,opacity:0,width:ghostWidth,height:ghostHeight,"background-image":bgimage,clip:"rect("+rect.join(",")+")","-webkit-transform":"translateZ(0)",transform:"translateZ(0)"}),ghost.append(box);this.container.append(ghost);var boxes=shuffle(ghost.children());return boxes.each(function(i){UI.$(this).css({transition:"all "+$this.options.duration+"ms ease-in-out "+(50+25*i)+"ms","-webkit-transition":"all "+$this.options.duration+"ms ease-in-out "+(50+25*i)+"ms"})}).last().on(UI.support.transition.end,function(){ghost.remove(),d.resolve()}),ghost.width(),boxes.css({opacity:1}),d.promise()},boxes:function(current,next,dir,fromfx){if(!next.data("cover"))return Animations.fade.apply(this,arguments);for(var box,rect,cols,d=UI.$.Deferred(),boxCols=Math.round(this.options.slices/2),boxWidth=Math.round(next.width()/boxCols),boxRows=Math.round(next.height()/boxWidth),boxHeight=Math.round(next.height()/boxRows)+1,bgimage=next.data("cover").css("background-image"),ghost=UI.$("<li></li>").css({width:next.width(),height:next.height(),opacity:1,zIndex:15}),ghostWidth=next.width(),ghostHeight=next.height(),rows=0;rows<boxRows;rows++)for(cols=0;cols<boxCols;cols++)rect=[boxHeight*rows+"px",(cols==boxCols-1?boxWidth+2:boxWidth)*(cols+1)+"px",boxHeight*(rows+1)+"px",boxWidth*cols+"px"],box=UI.$('<div class="uk-cover-background"></div>').css({position:"absolute",top:0,left:0,opacity:1,width:ghostWidth,height:ghostHeight,"background-image":bgimage,"transform-origin":rect[3]+" "+rect[0]+" 0",clip:"rect("+rect.join(",")+")","-webkit-transform":"scale(0.0000000000000001)",transform:"scale(0.0000000000000001)"}),ghost.append(box);this.container.append(ghost);var prevCol,rowIndex=0,colIndex=0,timeBuff=0,box2Darr=[[]],boxes=ghost.children();for("boxes-reverse"==fromfx&&(boxes=[].reverse.apply(boxes)),boxes.each(function(){box2Darr[rowIndex][colIndex]=UI.$(this),++colIndex==boxCols&&(colIndex=0,box2Darr[++rowIndex]=[])}),cols=0,prevCol=0;cols<boxCols*boxRows;cols++){prevCol=cols;for(var row=0;row<boxRows;row++)prevCol>=0&&prevCol<boxCols&&box2Darr[row][prevCol].css({transition:"all "+this.options.duration+"ms linear "+(50+timeBuff)+"ms","-webkit-transition":"all "+this.options.duration+"ms linear "+(50+timeBuff)+"ms"}),prevCol--;timeBuff+=100}return boxes.last().on(UI.support.transition.end,function(){ghost.remove(),d.resolve()}),ghost.width(),boxes.css({"-webkit-transform":"scale(1)",transform:"scale(1)"}),d.promise()},"boxes-reverse":function(current,next,dir){return Animations.boxes.apply(this,[current,next,dir,"boxes-reverse"])},"random-fx":function(){var animations=["slice-up","fold","puzzle","slice-down","boxes","slice-up-down","boxes-reverse"];return this.fxIndex=(void 0===this.fxIndex?-1:this.fxIndex)+1,animations[this.fxIndex]||(this.fxIndex=0),Animations[animations[this.fxIndex]].apply(this,arguments)}});var shuffle=function(arr){for(var j,x,i=arr.length;i;j=parseInt(Math.random()*i),x=arr[--i],arr[i]=arr[j],arr[j]=x);return arr};return UI.slideshow.animations}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var draggingPlaceholder,currentlyDraggingElement,currentlyDraggingTarget,moving,delayIdle,touchedlists,moved,overElement,supportsTouch="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;return UI.component("sortable",{defaults:{animation:150,threshold:10,childClass:"uk-sortable-item",placeholderClass:"uk-sortable-placeholder",overClass:"uk-sortable-over",draggingClass:"uk-sortable-dragged",dragMovingClass:"uk-sortable-moving",baseClass:"uk-sortable",noDragClass:"uk-sortable-nodrag",emptyClass:"uk-sortable-empty",dragCustomClass:"",handleClass:!1,group:!1,stop:function(){},start:function(){},change:function(){}},boot:function(){UI.ready(function(context){UI.$("[data-uk-sortable]",context).each(function(){var ele=UI.$(this);ele.data("sortable")||UI.sortable(ele,UI.Utils.options(ele.attr("data-uk-sortable")))})}),UI.$html.on("mousemove touchmove",function(e){if(delayIdle){var src=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0]:e;(Math.abs(src.pageX-delayIdle.pos.x)>delayIdle.threshold||Math.abs(src.pageY-delayIdle.pos.y)>delayIdle.threshold)&&delayIdle.apply(src)}if(draggingPlaceholder){moving||(moving=!0,draggingPlaceholder.show(),draggingPlaceholder.$current.addClass(draggingPlaceholder.$sortable.options.placeholderClass),draggingPlaceholder.$sortable.element.children().addClass(draggingPlaceholder.$sortable.options.childClass),UI.$html.addClass(draggingPlaceholder.$sortable.options.dragMovingClass));var offset=draggingPlaceholder.data("mouse-offset"),left=parseInt(e.originalEvent.pageX,10)+offset.left,top=parseInt(e.originalEvent.pageY,10)+offset.top;if(draggingPlaceholder.css({left:left,top:top}),top+draggingPlaceholder.height()/3>document.body.offsetHeight)return;top<UI.$win.scrollTop()?UI.$win.scrollTop(UI.$win.scrollTop()-Math.ceil(draggingPlaceholder.height()/3)):top+draggingPlaceholder.height()/3>window.innerHeight+UI.$win.scrollTop()&&UI.$win.scrollTop(UI.$win.scrollTop()+Math.ceil(draggingPlaceholder.height()/3))}}),UI.$html.on("mouseup touchend",function(e){if(delayIdle=!1,currentlyDraggingElement&&draggingPlaceholder){var sortable=function(ele){ele=UI.$(ele);do{if(ele.data("sortable"))return ele;ele=UI.$(ele).parent()}while(ele.length);return ele}(currentlyDraggingElement),component=draggingPlaceholder.$sortable,ev={type:e.type};sortable[0]&&component.dragDrop(ev,component.element),component.dragEnd(ev,component.element)}else currentlyDraggingElement=draggingPlaceholder=null})},init:function(){function delegate(fn){return function(e){var target,context;e&&(target=(supportsTouch&&e.touches&&e.touches[0]||{}).target||e.target,supportsTouch&&document.elementFromPoint&&(target=document.elementFromPoint(e.pageX-document.body.scrollLeft,e.pageY-document.body.scrollTop)),overElement=UI.$(target)),UI.$(target).hasClass($this.options.childClass)?fn.apply(target,[e]):target!==element&&(context=function(parent,child){var cur=child;if(cur==parent)return null;for(;cur;){if(cur.parentNode===parent)return cur;if(!(cur=cur.parentNode)||!cur.ownerDocument||11===cur.nodeType)break}return null}(element,target))&&fn.apply(context,[e])}}var $this=this,element=this.element[0];touchedlists=[],this.checkEmptyList(),this.element.data("sortable-group",this.options.group?this.options.group:UI.Utils.uid("sortable-group"));var handleDragStart=delegate(function(e){if(!e.data||!e.data.sortable){var $target=UI.$(e.target),$link=$target.is("a[href]")?$target:$target.parents("a[href]");if(!$target.is(":input"))return e.preventDefault(),!supportsTouch&&$link.length&&$link.one("click",function(e){e.preventDefault()}).one("mouseup",function(){moved||$link.trigger("click")}),e.data=e.data||{},e.data.sortable=element,$this.dragStart(e,this)}}),handleDragEnter=delegate(UI.Utils.debounce(function(e){return $this.dragEnter(e,this)})),handleDragLeave=delegate(function(e){var previousCounter=$this.dragenterData(this);$this.dragenterData(this,previousCounter-1),$this.dragenterData(this)||(UI.$(this).removeClass($this.options.overClass),$this.dragenterData(this,!1))}),handleTouchMove=delegate(function(e){return!currentlyDraggingElement||currentlyDraggingElement===this||currentlyDraggingTarget===this||($this.element.children().removeClass($this.options.overClass),currentlyDraggingTarget=this,$this.moveElementNextTo(currentlyDraggingElement,this),function(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.returnValue=!1}(e))});this.addDragHandlers=function(){supportsTouch?element.addEventListener("touchmove",handleTouchMove,!1):(element.addEventListener("mouseover",handleDragEnter,!1),element.addEventListener("mouseout",handleDragLeave,!1))},this.removeDragHandlers=function(){supportsTouch?element.removeEventListener("touchmove",handleTouchMove,!1):(element.removeEventListener("mouseover",handleDragEnter,!1),element.removeEventListener("mouseout",handleDragLeave,!1))},window.addEventListener(supportsTouch?"touchmove":"mousemove",function(e){currentlyDraggingElement&&$this.dragMove(e,$this)},!1),element.addEventListener(supportsTouch?"touchstart":"mousedown",handleDragStart,!1)},dragStart:function(e,elem){moved=!1,moving=!1;var $this=this,target=UI.$(e.target);if(supportsTouch||2!=e.button){if($this.options.handleClass&&!(target.hasClass($this.options.handleClass)?target:target.closest("."+$this.options.handleClass,$this.element)).length)return;if(!target.is("."+$this.options.noDragClass)&&!target.closest("."+$this.options.noDragClass).length&&!target.is(":input")){currentlyDraggingElement=elem,draggingPlaceholder&&draggingPlaceholder.remove();var $current=UI.$(currentlyDraggingElement),offset=$current.offset();delayIdle={pos:{x:e.pageX,y:e.pageY},threshold:$this.options.threshold,apply:function(evt){(draggingPlaceholder=UI.$('<div class="'+[$this.options.draggingClass,$this.options.dragCustomClass].join(" ")+'"></div>').css({display:"none",top:offset.top,left:offset.left,width:$current.width(),height:$current.height(),padding:$current.css("padding")}).data({"mouse-offset":{left:offset.left-parseInt(evt.pageX,10),top:offset.top-parseInt(evt.pageY,10)},origin:$this.element,index:$current.index()}).append($current.html()).appendTo("body")).$current=$current,draggingPlaceholder.$sortable=$this,$current.data({"start-list":$current.parent(),"start-index":$current.index(),"sortable-group":$this.options.group}),$this.addDragHandlers(),$this.options.start(this,currentlyDraggingElement),$this.trigger("start.uk.sortable",[$this,currentlyDraggingElement]),moved=!0,delayIdle=!1}}}}},dragMove:function(e,elem){var overChild,overRoot=(overElement=UI.$(document.elementFromPoint(e.pageX-(document.body.scrollLeft||document.scrollLeft||0),e.pageY-(document.body.scrollTop||document.documentElement.scrollTop||0)))).closest("."+this.options.baseClass),groupOver=overRoot.data("sortable-group"),$current=UI.$(currentlyDraggingElement),currentRoot=$current.parent(),groupCurrent=$current.data("sortable-group");overRoot[0]!==currentRoot[0]&&void 0!==groupCurrent&&groupOver===groupCurrent&&(overRoot.data("sortable").addDragHandlers(),touchedlists.push(overRoot),overRoot.children().addClass(this.options.childClass),overRoot.children().length>0?(overChild=overElement.closest("."+this.options.childClass)).length?overChild.before($current):overRoot.append($current):overElement.append($current),UIkit.$doc.trigger("mouseover")),this.checkEmptyList(),this.checkEmptyList(currentRoot)},dragEnter:function(e,elem){if(!currentlyDraggingElement||currentlyDraggingElement===elem)return!0;var previousCounter=this.dragenterData(elem);if(this.dragenterData(elem,previousCounter+1),0===previousCounter){var currentlist=UI.$(elem).parent(),startlist=UI.$(currentlyDraggingElement).data("start-list");if(currentlist[0]!==startlist[0]){var groupOver=currentlist.data("sortable-group"),groupCurrent=UI.$(currentlyDraggingElement).data("sortable-group");if((groupOver||groupCurrent)&&groupOver!=groupCurrent)return!1}UI.$(elem).addClass(this.options.overClass),this.moveElementNextTo(currentlyDraggingElement,elem)}return!1},dragEnd:function(e,elem){var $this=this;currentlyDraggingElement&&(this.options.stop(elem),this.trigger("stop.uk.sortable",[this])),currentlyDraggingElement=null,currentlyDraggingTarget=null,touchedlists.push(this.element),touchedlists.forEach(function(el,i){UI.$(el).children().each(function(){1===this.nodeType&&(UI.$(this).removeClass($this.options.overClass).removeClass($this.options.placeholderClass).removeClass($this.options.childClass),$this.dragenterData(this,!1))})}),touchedlists=[],UI.$html.removeClass(this.options.dragMovingClass),this.removeDragHandlers(),draggingPlaceholder&&(draggingPlaceholder.remove(),draggingPlaceholder=null)},dragDrop:function(e,elem){"drop"===e.type&&(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()),this.triggerChangeEvents()},triggerChangeEvents:function(){if(currentlyDraggingElement){var $current=UI.$(currentlyDraggingElement),oldRoot=draggingPlaceholder.data("origin"),newRoot=$current.closest("."+this.options.baseClass),triggers=[],el=UI.$(currentlyDraggingElement);oldRoot[0]===newRoot[0]&&draggingPlaceholder.data("index")!=$current.index()?triggers.push({sortable:this,mode:"moved"}):oldRoot[0]!=newRoot[0]&&triggers.push({sortable:UI.$(newRoot).data("sortable"),mode:"added"},{sortable:UI.$(oldRoot).data("sortable"),mode:"removed"}),triggers.forEach(function(trigger,i){trigger.sortable&&trigger.sortable.element.trigger("change.uk.sortable",[trigger.sortable,el,trigger.mode])})}},dragenterData:function(element,val){if(element=UI.$(element),1==arguments.length)return parseInt(element.data("child-dragenter"),10)||0;val?element.data("child-dragenter",Math.max(0,val)):element.removeData("child-dragenter")},moveElementNextTo:function(element,elementToMoveNextTo){var $this=this,list=UI.$(element).parent().css("min-height",""),next=function(el1,el2){var parent=el1.parentNode;if(el2.parentNode!=parent)return!1;for(var cur=el1.previousSibling;cur&&9!==cur.nodeType;){if(cur===el2)return!0;cur=cur.previousSibling}return!1}(element,elementToMoveNextTo)?elementToMoveNextTo:elementToMoveNextTo.nextSibling,children=list.children(),count=children.length;if(!$this.options.animation)return elementToMoveNextTo.parentNode.insertBefore(element,next),void UI.Utils.checkDisplay($this.element.parent());list.css("min-height",list.height()),children.stop().each(function(){var ele=UI.$(this),offset=ele.position();offset.width=ele.width(),ele.data("offset-before",offset)}),elementToMoveNextTo.parentNode.insertBefore(element,next),UI.Utils.checkDisplay($this.element.parent()),(children=list.children().each(function(){var ele=UI.$(this);ele.data("offset-after",ele.position())}).each(function(){var ele=UI.$(this),before=ele.data("offset-before");ele.css({position:"absolute",top:before.top,left:before.left,"min-width":before.width})})).each(function(){var ele=UI.$(this),offset=(ele.data("offset-before"),ele.data("offset-after"));ele.css("pointer-events","none").width(),setTimeout(function(){ele.animate({top:offset.top,left:offset.left},$this.options.animation,function(){ele.css({position:"",top:"",left:"","min-width":"","pointer-events":""}).removeClass($this.options.overClass).removeData("child-dragenter"),--count||(list.css("min-height",""),UI.Utils.checkDisplay($this.element.parent()))})},0)})},serialize:function(){var item,attribute,data=[];return this.element.children().each(function(j,child){item={};for(var i=0;i<child.attributes.length;i++)0===(attribute=child.attributes[i]).name.indexOf("data-")&&(item[attribute.name.substr(5)]=UI.Utils.str2json(attribute.value));data.push(item)}),data},checkEmptyList:function(list){list=list?UI.$(list):this.element,this.options.emptyClass&&list[list.children().length?"removeClass":"addClass"](this.options.emptyClass)}}),UI.sortable}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";function checkscrollposition(direction){var stickies=arguments.length?arguments:sticked;if(stickies.length&&!($win.scrollTop()<0))for(var newTop,containerBottom,stickyHeight,sticky,scrollTop=$win.scrollTop(),documentHeight=$doc.height(),dwh=documentHeight-$win.height(),extra=scrollTop>dwh?dwh-scrollTop:0,i=0;i<stickies.length;i++)if((sticky=stickies[i]).element.is(":visible")&&!sticky.animate){if(sticky.check()){if(newTop=sticky.top<0?0:(newTop=documentHeight-(stickyHeight=sticky.element.outerHeight())-sticky.top-sticky.options.bottom-scrollTop-extra)<0?newTop+sticky.top:sticky.top,sticky.boundary&&sticky.boundary.length){var bTop=sticky.boundary.offset().top;containerBottom=sticky.boundtoparent?documentHeight-(bTop+sticky.boundary.outerHeight())+parseInt(sticky.boundary.css("padding-bottom")):documentHeight-bTop-parseInt(sticky.boundary.css("margin-top")),newTop=scrollTop+stickyHeight>documentHeight-containerBottom-(sticky.top<0?0:sticky.top)?documentHeight-containerBottom-(scrollTop+stickyHeight):newTop}if(sticky.currentTop!=newTop){if(sticky.element.css({position:"fixed",top:newTop,width:sticky.getWidthFrom.length?sticky.getWidthFrom.width():sticky.element.width()}),!sticky.init&&(sticky.element.addClass(sticky.options.clsinit),location.hash&&scrollTop>0&&sticky.options.target)){var $target=UI.$(location.hash);$target.length&&setTimeout(function($target,sticky){return function(){sticky.element.width();var offset=$target.offset(),maxoffset=offset.top+$target.outerHeight(),stickyOffset=sticky.element.offset(),stickyHeight=sticky.element.outerHeight(),stickyMaxOffset=stickyOffset.top+stickyHeight;stickyOffset.top<maxoffset&&offset.top<stickyMaxOffset&&(scrollTop=offset.top-stickyHeight-sticky.options.target,window.scrollTo(0,scrollTop))}}($target,sticky),0)}sticky.element.addClass(sticky.options.clsactive).removeClass(sticky.options.clsinactive),sticky.element.trigger("active.uk.sticky"),sticky.element.css("margin",""),sticky.options.animation&&sticky.init&&!UI.Utils.isInView(sticky.wrapper)&&sticky.element.addClass(sticky.options.animation),sticky.currentTop=newTop}}else null!==sticky.currentTop&&sticky.reset();sticky.init=!0}}var $win=UI.$win,$doc=UI.$doc,sticked=[],direction=1;return UI.component("sticky",{defaults:{top:0,bottom:0,animation:"",clsinit:"uk-sticky-init",clsactive:"uk-active",clsinactive:"",getWidthFrom:"",showup:!1,boundary:!1,media:!1,target:!1,disabled:!1},boot:function(){UI.$doc.on("scrolling.uk.document",function(e,data){data&&data.dir&&(direction=data.dir.y,checkscrollposition())}),UI.$win.on("resize orientationchange",UI.Utils.debounce(function(){if(sticked.length){for(var i=0;i<sticked.length;i++)sticked[i].reset(!0);checkscrollposition()}},100)),UI.ready(function(context){setTimeout(function(){UI.$("[data-uk-sticky]",context).each(function(){var $ele=UI.$(this);$ele.data("sticky")||UI.sticky($ele,UI.Utils.options($ele.attr("data-uk-sticky")))}),checkscrollposition()},0)})},init:function(){var boundtoparent,boundary=this.options.boundary;this.wrapper=this.element.wrap('<div class="uk-sticky-placeholder"></div>').parent(),this.computeWrapper(),this.element.css("margin",0),boundary&&(!0===boundary||"!"===boundary[0]?(boundary=!0===boundary?this.wrapper.parent():this.wrapper.closest(boundary.substr(1)),boundtoparent=!0):"string"==typeof boundary&&(boundary=UI.$(boundary))),this.sticky={self:this,options:this.options,element:this.element,currentTop:null,wrapper:this.wrapper,init:!1,getWidthFrom:UI.$(this.options.getWidthFrom||this.wrapper),boundary:boundary,boundtoparent:boundtoparent,top:0,calcTop:function(){var top=this.options.top;if(this.options.top&&"string"==typeof this.options.top)if(this.options.top.match(/^(-|)(\d+)vh$/))top=window.innerHeight*parseInt(this.options.top,10)/100;else{var topElement=UI.$(this.options.top).first();topElement.length&&topElement.is(":visible")&&(top=-1*(topElement.offset().top+topElement.outerHeight()-this.wrapper.offset().top))}this.top=top},reset:function(force){this.calcTop();var finalize=function(){this.element.css({position:"",top:"",width:"",left:"",margin:"0"}),this.element.removeClass([this.options.animation,"uk-animation-reverse",this.options.clsactive].join(" ")),this.element.addClass(this.options.clsinactive),this.element.trigger("inactive.uk.sticky"),this.currentTop=null,this.animate=!1}.bind(this);!force&&this.options.animation&&UI.support.animation&&!UI.Utils.isInView(this.wrapper)?(this.animate=!0,this.element.removeClass(this.options.animation).one(UI.support.animation.end,function(){finalize()}).width(),this.element.addClass(this.options.animation+" uk-animation-reverse")):finalize()},check:function(){if(this.options.disabled)return!1;if(this.options.media)switch(typeof this.options.media){case"number":if(window.innerWidth<this.options.media)return!1;break;case"string":if(window.matchMedia&&!window.matchMedia(this.options.media).matches)return!1}var scrollTop=$win.scrollTop(),dwh=$doc.height()-window.innerHeight,extra=scrollTop>dwh?dwh-scrollTop:0,active=scrollTop>=this.wrapper.offset().top-this.top-extra;return active&&this.options.showup&&(1==direction&&(active=!1),-1==direction&&!this.element.hasClass(this.options.clsactive)&&UI.Utils.isInView(this.wrapper)&&(active=!1)),active}},this.sticky.calcTop(),sticked.push(this.sticky)},update:function(){checkscrollposition(this.sticky)},enable:function(){this.options.disabled=!1,this.update()},disable:function(force){this.options.disabled=!0,this.sticky.reset(force)},computeWrapper:function(){this.wrapper.css({height:-1==["absolute","fixed"].indexOf(this.element.css("position"))?this.element.outerHeight():"",float:"none"!=this.element.css("float")?this.element.css("float"):"",margin:this.element.css("margin")}),"fixed"==this.element.css("position")&&this.element.css({width:this.sticky.getWidthFrom.length?this.sticky.getWidthFrom.width():this.element.width()})}}),UI.sticky}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";UI.component("timepicker",{defaults:{format:"24h",delay:0,start:0,end:24},boot:function(){UI.$html.on("focus.timepicker.uikit","[data-uk-timepicker]",function(e){var ele=UI.$(this);if(!ele.data("timepicker")){var obj=UI.timepicker(ele,UI.Utils.options(ele.attr("data-uk-timepicker")));setTimeout(function(){obj.autocomplete.input.focus()},40)}})},init:function(){var container,$this=this,times=function(start,end){start=start||0,end=end||24;var i,h,times={"12h":[],"24h":[]};for(i=start,h="";i<end;i++)h=""+i,i<10&&(h="0"+h),times["24h"].push({value:h+":00"}),times["24h"].push({value:h+":30"}),0===i&&(h=12,times["12h"].push({value:h+":00 AM"}),times["12h"].push({value:h+":30 AM"})),i>0&&i<13&&12!==i&&(times["12h"].push({value:h+":00 AM"}),times["12h"].push({value:h+":30 AM"})),i>=12&&(0==(h-=12)&&(h=12),h<10&&(h="0"+String(h)),times["12h"].push({value:h+":00 PM"}),times["12h"].push({value:h+":30 PM"}));return times}(this.options.start,this.options.end);this.options.minLength=0,this.options.template='<ul class="uk-nav uk-nav-autocomplete uk-autocomplete-results">{{~items}}<li data-value="{{$item.value}}"><a>{{$item.value}}</a></li>{{/items}}</ul>',this.options.source=function(release){release(times[$this.options.format]||times["12h"])},this.element.is("input")?(this.element.wrap('<div class="uk-autocomplete"></div>'),container=this.element.parent()):container=this.element.addClass("uk-autocomplete"),this.autocomplete=UI.autocomplete(container,this.options),this.autocomplete.dropdown.addClass("uk-dropdown-small uk-dropdown-scrollable"),this.autocomplete.on("show.uk.autocomplete",function(){var selected=$this.autocomplete.dropdown.find('[data-value="'+$this.autocomplete.input.val()+'"]');setTimeout(function(){$this.autocomplete.pick(selected,!0)},10)}),this.autocomplete.input.on("focus",function(){$this.autocomplete.value=Math.random(),$this.autocomplete.triggercomplete()}).on("blur",UI.Utils.debounce(function(){$this.checkTime()},100)),this.element.data("timepicker",this)},checkTime:function(){var arr,timeArray,hour,minute,meridian="AM",time=this.autocomplete.input.val();"12h"==this.options.format?(timeArray=(arr=time.split(" "))[0].split(":"),meridian=arr[1]):timeArray=time.split(":"),hour=parseInt(timeArray[0],10),minute=parseInt(timeArray[1],10),isNaN(hour)&&(hour=0),isNaN(minute)&&(minute=0),"12h"==this.options.format?(hour>12?hour=12:hour<0&&(hour=12),"am"===meridian||"a"===meridian?meridian="AM":"pm"!==meridian&&"p"!==meridian||(meridian="PM"),"AM"!==meridian&&"PM"!==meridian&&(meridian="AM")):hour>=24?hour=23:hour<0&&(hour=0),minute<0?minute=0:minute>=60&&(minute=0),this.autocomplete.input.val(this.formatTime(hour,minute,meridian)).trigger("change")},formatTime:function(hour,minute,meridian){return(hour=hour<10?"0"+hour:hour)+":"+(minute=minute<10?"0"+minute:minute)+("12h"==this.options.format?" "+meridian:"")}})}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";var $tooltip,tooltipdelay,checkdelay;return UI.component("tooltip",{defaults:{offset:5,pos:"top",animation:!1,delay:0,cls:"",activeClass:"uk-active",src:function(ele){var title=ele.attr("title");return void 0!==title&&ele.data("cached-title",title).removeAttr("title"),ele.data("cached-title")}},tip:"",boot:function(){UI.$html.on("mouseenter.tooltip.uikit focus.tooltip.uikit","[data-uk-tooltip]",function(e){var ele=UI.$(this);ele.data("tooltip")||(UI.tooltip(ele,UI.Utils.options(ele.attr("data-uk-tooltip"))),ele.trigger("mouseenter"))})},init:function(){var $this=this;$tooltip||($tooltip=UI.$('<div class="uk-tooltip"></div>').appendTo("body")),this.on({focus:function(e){$this.show()},blur:function(e){$this.hide()},mouseenter:function(e){$this.show()},mouseleave:function(e){$this.hide()}})},show:function(){if(this.tip="function"==typeof this.options.src?this.options.src(this.element):this.options.src,tooltipdelay&&clearTimeout(tooltipdelay),checkdelay&&clearTimeout(checkdelay),"string"==typeof this.tip&&this.tip.length){$tooltip.stop().css({top:-2e3,visibility:"hidden"}).removeClass(this.options.activeClass).show(),$tooltip.html('<div class="uk-tooltip-inner">'+this.tip+"</div>");var $this=this,pos=UI.$.extend({},this.element.offset(),{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}),width=$tooltip[0].offsetWidth,height=$tooltip[0].offsetHeight,offset="function"==typeof this.options.offset?this.options.offset.call(this.element):this.options.offset,position="function"==typeof this.options.pos?this.options.pos.call(this.element):this.options.pos,tmppos=position.split("-"),tcss={display:"none",visibility:"visible",top:pos.top+pos.height+height,left:pos.left};if("fixed"==UI.$html.css("position")||"fixed"==UI.$body.css("position")){var bodyoffset=UI.$("body").offset(),htmloffset=UI.$("html").offset(),docoffset_top=htmloffset.top+bodyoffset.top,docoffset_left=htmloffset.left+bodyoffset.left;pos.left-=docoffset_left,pos.top-=docoffset_top}"left"!=tmppos[0]&&"right"!=tmppos[0]||"right"!=UI.langdirection||(tmppos[0]="left"==tmppos[0]?"right":"left");var variants={bottom:{top:pos.top+pos.height+offset,left:pos.left+pos.width/2-width/2},top:{top:pos.top-height-offset,left:pos.left+pos.width/2-width/2},left:{top:pos.top+pos.height/2-height/2,left:pos.left-width-offset},right:{top:pos.top+pos.height/2-height/2,left:pos.left+pos.width+offset}};UI.$.extend(tcss,variants[tmppos[0]]),2==tmppos.length&&(tcss.left="left"==tmppos[1]?pos.left:pos.left+pos.width-width);var boundary=this.checkBoundary(tcss.left,tcss.top,width,height);if(boundary){switch(boundary){case"x":position=2==tmppos.length?tmppos[0]+"-"+(tcss.left<0?"left":"right"):tcss.left<0?"right":"left";break;case"y":position=2==tmppos.length?(tcss.top<0?"bottom":"top")+"-"+tmppos[1]:tcss.top<0?"bottom":"top";break;case"xy":position=2==tmppos.length?(tcss.top<0?"bottom":"top")+"-"+(tcss.left<0?"left":"right"):tcss.left<0?"right":"left"}tmppos=position.split("-"),UI.$.extend(tcss,variants[tmppos[0]]),2==tmppos.length&&(tcss.left="left"==tmppos[1]?pos.left:pos.left+pos.width-width)}tcss.left-=UI.$body.position().left,tooltipdelay=setTimeout(function(){$tooltip.css(tcss).attr("class",["uk-tooltip","uk-tooltip-"+position,$this.options.cls].join(" ")),$this.options.animation?$tooltip.css({opacity:0,display:"block"}).addClass($this.options.activeClass).animate({opacity:1},parseInt($this.options.animation,10)||400):$tooltip.show().addClass($this.options.activeClass),tooltipdelay=!1,checkdelay=setInterval(function(){$this.element.is(":visible")||$this.hide()},150)},parseInt(this.options.delay,10)||0)}},hide:function(){if(!this.element.is("input")||this.element[0]!==document.activeElement)if(tooltipdelay&&clearTimeout(tooltipdelay),checkdelay&&clearTimeout(checkdelay),$tooltip.stop(),this.options.animation){var $this=this;$tooltip.fadeOut(parseInt(this.options.animation,10)||400,function(){$tooltip.removeClass($this.options.activeClass)})}else $tooltip.hide().removeClass(this.options.activeClass)},content:function(){return this.tip},checkBoundary:function(left,top,width,height){var axis="";return(left<0||left-UI.$win.scrollLeft()+width>window.innerWidth)&&(axis+="x"),(top<0||top-UI.$win.scrollTop()+height>window.innerHeight)&&(axis+="y"),axis}}),UI.tooltip}),function(addon){var component;window.UIkit&&(component=addon(UIkit)),__webpack_require__(0)&&(__WEBPACK_AMD_DEFINE_ARRAY__=[__WEBPACK_LOCAL_MODULE_0__],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return component||addon(UIkit)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(UI){"use strict";function xhrupload(files,settings){function upload(files,settings){var formData=new FormData,xhr=new XMLHttpRequest;if(!1!==settings.before(settings,files)){for(var f,i=0;f=files[i];i++)formData.append(settings.param,f);for(var p in settings.params)formData.append(p,settings.params[p]);xhr.upload.addEventListener("progress",function(e){var percent=e.loaded/e.total*100;settings.progress(percent,e)},!1),xhr.addEventListener("loadstart",function(e){settings.loadstart(e)},!1),xhr.addEventListener("load",function(e){settings.load(e)},!1),xhr.addEventListener("loadend",function(e){settings.loadend(e)},!1),xhr.addEventListener("error",function(e){settings.error(e)},!1),xhr.addEventListener("abort",function(e){settings.abort(e)},!1),xhr.open(settings.method,settings.action,!0),"json"==settings.type&&xhr.setRequestHeader("Accept","application/json"),xhr.onreadystatechange=function(){if(settings.readystatechange(xhr),4==xhr.readyState){var response=xhr.responseText;if("json"==settings.type)try{response=UI.$.parseJSON(response)}catch(e){response=!1}settings.complete(response,xhr)}},settings.beforeSend(xhr),xhr.send(formData)}}if(!UI.support.ajaxupload)return this;if(settings=UI.$.extend({},xhrupload.defaults,settings),files.length){if("*.*"!==settings.allow)for(var file,i=0;file=files[i];i++)if(!matchName(settings.allow,file.name))return void("string"==typeof settings.notallowed?alert(settings.notallowed):settings.notallowed(file,settings));var complete=settings.complete;if(settings.single){var count=files.length,uploaded=0,allow=!0;settings.beforeAll(files),settings.complete=function(response,xhr){uploaded+=1,complete(response,xhr),settings.filelimit&&uploaded>=settings.filelimit&&(allow=!1),allow&&uploaded<count?upload([files[uploaded]],settings):settings.allcomplete(response,xhr)},upload([files[0]],settings)}else settings.complete=function(response,xhr){complete(response,xhr),settings.allcomplete(response,xhr)},upload(files,settings)}}function matchName(pattern,path){var parsedPattern="^"+pattern.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$";return parsedPattern="^"+parsedPattern+"$",null!==path.match(new RegExp(parsedPattern,"i"))}return UI.component("uploadSelect",{init:function(){var $this=this;this.on("change",function(){xhrupload($this.element[0].files,$this.options);var twin=$this.element.clone(!0).data("uploadSelect",$this);$this.element.replaceWith(twin),$this.element=twin})}}),UI.component("uploadDrop",{defaults:{dragoverClass:"uk-dragover"},init:function(){var $this=this,hasdragCls=!1;this.on("drop",function(e){e.dataTransfer&&e.dataTransfer.files&&(e.stopPropagation(),e.preventDefault(),$this.element.removeClass($this.options.dragoverClass),$this.element.trigger("dropped.uk.upload",[e.dataTransfer.files]),xhrupload(e.dataTransfer.files,$this.options))}).on("dragenter",function(e){e.stopPropagation(),e.preventDefault()}).on("dragover",function(e){e.stopPropagation(),e.preventDefault(),hasdragCls||($this.element.addClass($this.options.dragoverClass),hasdragCls=!0)}).on("dragleave",function(e){e.stopPropagation(),e.preventDefault(),$this.element.removeClass($this.options.dragoverClass),hasdragCls=!1})}}),UI.support.ajaxupload=function(){return(fi=document.createElement("INPUT")).type="file","files"in fi&&!!((xhr=new XMLHttpRequest)&&"upload"in xhr&&"onprogress"in xhr.upload)&&!!window.FormData;var xhr,fi}(),UI.support.ajaxupload&&UI.$.event.props.push("dataTransfer"),xhrupload.defaults={action:"",single:!0,method:"POST",param:"files[]",params:{},allow:"*.*",type:"text",filelimit:!1,before:function(o){},beforeSend:function(xhr){},beforeAll:function(){},loadstart:function(){},load:function(){},loadend:function(){},error:function(){},abort:function(){},progress:function(){},complete:function(){},allcomplete:function(){},readystatechange:function(){},notallowed:function(file,settings){alert("Only the following file types are allowed: "+settings.allow)}},UI.Utils.xhrupload=xhrupload,xhrupload});var easing_swiftOut=[.4,0,.2,1];"undefined"!=typeof UIkit&&UIkit.on("beforeready.uk.dom",function(){var old_hide_function,old_show_function;if(void 0!==UIkit.components.accordion&&$.extend(UIkit.components.accordion.prototype.defaults,{easing:easing_swiftOut,duration:200}),void 0!==UIkit.components.datepicker&&$.extend(UIkit.components.datepicker.prototype.defaults,{}),void 0!==UIkit.components.dropdown.prototype&&($.extend(UIkit.components.dropdown.prototype.defaults,{remaintime:150,delay:50}),old_show_function=UIkit.components.dropdown.prototype.show,UIkit.components.dropdown.prototype.show=function(){return this.dropdown.css({"min-width":this.dropdown.outerWidth()}).addClass("uk-dropdown-active uk-dropdown-shown"),old_show_function.apply(this,arguments)},old_hide_function=UIkit.components.dropdown.prototype.hide,UIkit.components.dropdown.prototype.hide=function(){var this_dropdown=this.dropdown;return this_dropdown.removeClass("uk-dropdown-shown"),setTimeout(function(){this_dropdown.removeClass("uk-dropdown-active")},280),old_hide_function.apply(this,arguments)}),void 0!==UIkit.components.modal){$.extend(UIkit.components.modal.prototype.defaults,{center:!0});var $body=$("body");UIkit.modal.dialog.template='<div class="uk-modal uk-modal-dialog-replace"><div class="uk-modal-dialog" style="min-height:0;"></div></div>',$body.on("show.uk.modal",".uk-modal-dialog-replace",function(){setTimeout(function(){var dialogReplace=$(".uk-modal-dialog-replace");if(dialogReplace.find(".uk-button-primary").length){var actionBtn=dialogReplace.find(".uk-button-primary").toggleClass("uk-button-primary md-btn-flat-primary");actionBtn.next("button")&&actionBtn.next("button").after(actionBtn)}dialogReplace.find(".uk-button").length&&dialogReplace.find(".uk-button").toggleClass("uk-button md-btn md-btn-flat"),dialogReplace.find(".uk-margin-small-top").length&&dialogReplace.find(".uk-margin-small-top").toggleClass("uk-margin-small-top uk-margin-top"),dialogReplace.find("input.uk-width-1-1").length&&(dialogReplace.find("input.uk-width-1-1").toggleClass("uk-width-1-1 md-input"),altair_md.inputs()),dialogReplace.find(".uk-form").length&&dialogReplace.find(".uk-form").removeClass("uk-form")},50)})}void 0!==UIkit.components.tooltip&&$.extend(UIkit.components.tooltip.prototype.defaults,{animation:280,offset:8}),void 0!==UIkit.components.sortable&&Modernizr.touch&&$("[data-uk-sortable]").children().addClass("needsclick")}),module.exports=UIkit}).call(exports,__webpack_require__(1),__webpack_require__(1),__webpack_require__(9),__webpack_require__(1),__webpack_require__(4))},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1),__webpack_require__(2),__webpack_require__(9),__webpack_require__(5),__webpack_require__(18),__webpack_require__(27),__webpack_require__(22),__webpack_require__(12),__webpack_require__(31),__webpack_require__(28),__webpack_require__(19),__webpack_require__(21),__webpack_require__(10),__webpack_require__(13),__webpack_require__(23),__webpack_require__(30),__webpack_require__(20)],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function($,_,moment,UIkit,CountUp,Waves,Selectize,Snackbar,ROLES,Cookies,Tether){function updateInput(object){object.closest(".uk-input-group").removeClass("uk-input-group-danger uk-input-group-success uk-input-group-nocolor"),object.closest(".md-input-wrapper").removeClass("md-input-wrapper-danger md-input-wrapper-success uk-input-wrapper-nocolor md-input-wrapper-disabled"),object.hasClass("md-input-danger")&&(object.closest(".uk-input-group").length&&object.closest(".uk-input-group").addClass("uk-input-group-danger"),object.closest(".md-input-wrapper").addClass("md-input-wrapper-danger")),object.hasClass("md-input-success")&&(object.closest(".uk-input-group").length&&object.closest(".uk-input-group").addClass("uk-input-group-success"),object.closest(".md-input-wrapper").addClass("md-input-wrapper-success")),object.hasClass("md-input-nocolor")&&(object.closest(".uk-input-group").length&&object.closest(".uk-input-group").addClass("uk-input-group-nocolor"),object.closest(".md-input-wrapper").addClass("md-input-wrapper-nocolor")),object.prop("disabled")&&object.closest(".md-input-wrapper").addClass("md-input-wrapper-disabled"),object.hasClass("label-fixed")&&object.closest(".md-input-wrapper").addClass("md-input-filled"),""!==object.val()&&object.closest(".md-input-wrapper").addClass("md-input-filled")}function flashTimeout(){var flashText=$(".flash-message").find(".flash-text");flashText.length<1||flashText.stop().animate({top:"-50px"},500,function(){$(".flash-message").hide()})}function newMessageSubmit(e){e.preventDefault();var form=$("#newMessageForm"),formData=form.serializeObject();if(!form.isValid(null,null,!1))return!0;var data={to:formData.newMessageTo,from:formData.from,subject:formData.newMessageSubject,message:formData.newMessageText};$.ajax({method:"POST",url:"/api/v1/messages/send",data:JSON.stringify(data),processData:!1,contentType:"application/json; charset=utf-8",dataType:"json"}).success(function(){helpers.UI.showSnackbar({text:"Message Sent"}),helpers.closeMessageWindow()}).error(function(err){helpers.closeMessageWindow(),helpers.UI.showSnackbar({text:err.error,actionTextColor:"#B92929"}),console.log("[trudesk:helpers:newMessageSubmit] Error - "+err)})}function stringStartsWith(string,prefix){return string.slice(0,prefix.length)===prefix}var helpers={},easing_swiftOut=[.4,0,.2,1];return helpers.loaded=!1,helpers.init=function(reload){var self=this;reload&&(self.loaded=!1),self.loaded&&console.warn("Helpers already loaded. Possible double load."),self.prototypes(),self.resizeFullHeight(),self.setupScrollers(),self.formvalidator(),self.pToolTip(),self.setupDonutchart(),self.setupBarChart(),self.actionButtons(),self.bindKeys(),self.ajaxFormSubmit(),self.setupChosen(),self.bindNewMessageSubmit(),self.UI.initSidebar(),self.UI.bindExpand(),self.UI.setupSidebarTether(),self.UI.bindAccordion(),self.UI.fabToolbar(),self.UI.inputs(),self.UI.cardOverlay(),self.UI.setupPeity(),self.UI.selectize(),self.UI.waves(),self.UI.matchHeight(),self.UI.onlineUserSearch();var layout=self.onWindowResize();layout(),$(window).resize(layout),self.loaded=!0},helpers.countUpMe=function(){$(".countUpMe").each(function(){var self=this,countTo=$(self).text();new CountUp(self,0,countTo,0,2).start()})},helpers.UI={},helpers.UI.bindAccordion=function(){$("li[data-nav-accordion]").each(function(){if($(this).hasClass("active")&&$(this).parents(".sidebar").hasClass("expand")){$(this).addClass("hasSubMenuOpen");var subMenu=$(this).find("#"+$(this).attr("data-nav-accordion-target"));subMenu.length>0&&subMenu.addClass("subMenuOpen")}var $this=$(this).find("> a");$this.off("click"),$this.on("click",function(e){if(e.preventDefault(),e.stopPropagation(),!$(this).parents(".sidebar").hasClass("expand")){var href=$(this).attr("href");return"#"!==href&&History.pushState(null,null,href),!0}$("li[data-nav-accordion].hasSubMenuOpen").each(function(){$("#"+$(this).attr("data-nav-accordion-target")).removeClass("subMenuOpen"),$(this).removeClass("hasSubMenuOpen")});var $target=$("#"+$this.parent("li").attr("data-nav-accordion-target"));$target.length>0&&($target.toggleClass("subMenuOpen"),$(this).parent("li.hasSubMenu").toggleClass("hasSubMenuOpen"))})})},helpers.UI.expandSidebar=function(){var $sidebar=$(".sidebar");$sidebar.addClass("no-animation expand"),$("#page-content").addClass("no-animation expanded-sidebar"),setTimeout(function(){$sidebar.removeClass("no-animation"),$("#page-content").removeClass("no-animation")},500)},helpers.UI.toggleSidebar=function(){var $sidebar=$(".sidebar");$sidebar.toggleClass("expand"),$("#page-content").toggleClass("expanded-sidebar"),$sidebar.hasClass("expand")?($(".sidebar").find(".tether-element.tether-enabled").hide(),$sidebar.find("li[data-nav-accordion-target].active").addClass("hasSubMenuOpen"),$sidebar.find("li[data-nav-accordion-target].active > ul").addClass("subMenuOpen")):(setTimeout(function(){Tether.position(),$(".sidebar").find(".tether-element.tether-enabled").show()},500),$sidebar.find("li[data-nav-accordion-target]").removeClass("hasSubMenuOpen"),$sidebar.find("ul.side-nav-accordion.side-nav-sub").removeClass("subMenuOpen"))},helpers.UI.bindExpand=function(){var menuButton=$("#expand-menu");menuButton.length>0&&(menuButton.off("click"),menuButton.on("click",function(e){e.preventDefault(),helpers.UI.toggleSidebar(),$(".sidebar").hasClass("expand")?Cookies.set("$trudesk:sidebar:expanded",!0,{expires:999}):Cookies.set("$trudesk:sidebar:expanded",!1,{expires:999})}))},helpers.UI.initSidebar=function(){"true"===Cookies.get("$trudesk:sidebar:expanded")&&helpers.UI.expandSidebar()},helpers.UI.tooltipSidebar=function(){$(".sidebar").find("a[data-uk-tooltip]").each(function(){$(this).attr("style","padding: 0 !important; font-size: 0 !important;")})},helpers.UI.setupSidebarTether=function(){var sidebarElements=[{element:"#side-nav-sub-tickets",target:"tickets"},{element:"#side-nav-sub-reports",target:"reports"},{element:"#side-nav-sub-settings",target:"settings"},{element:"#side-nav-sub-articles",target:"articles"}];_.each(sidebarElements,function(item){var element=$(".sidebar-to-right").find(item.element);if(!(element.length<1)){var sidebar=$(".sidebar"),target=sidebar.find('li[data-nav-id="'+item.target+'"]');if(!(target.length<1)){helpers.UI.sidebarTether(element,target);var isInside=!1;target.on("mouseover",function(){sidebar.hasClass("expand")?(element.removeClass("sub-menu-right-open"),isInside=!1):(element.addClass("sub-menu-right-open"),isInside=!0)}),target.on("mouseleave",function(){isInside=!1,setTimeout(function(){isInside||element.removeClass("sub-menu-right-open")},100)}),element.on("mouseover",function(){isInside=!0}),element.on("mouseleave",function(){isInside=!1,setTimeout(function(){isInside||element.removeClass("sub-menu-right-open")},100)})}}})},helpers.UI.sidebarTether=function(element,target){_.isUndefined(element)||_.isUndefined(target)||element.length<1||target.length<1||new Tether({element:element,target:target,attachment:"top left",targetAttachment:"top right",offset:"0 -3px"})},helpers.UI.setNavItem=function(id){var $sidebar=$(".sidebar");$sidebar.find("li.active").removeClass("active"),$sidebar.find('li[data-nav-id="'+id.toLowerCase()+'"]').addClass("active")},helpers.UI.onlineUserSearch=function(){function onSearchKeyUp(){var $searchBox=$(".online-list-search-box").find("input"),searchTerm=$searchBox.val().toLowerCase();$(".user-list li").each(function(){$(this).filter("[data-search-term *= "+searchTerm+"]").length>0||searchTerm.length<1?$(this).show():$(this).hide()})}$(document).off("keyup",'.online-list-search-box input[type="text"]',onSearchKeyUp),$(document).on("keyup",'.online-list-search-box input[type="text"]',onSearchKeyUp)},helpers.UI.matchHeight=function(){$("div[data-match-height]").each(function(){var self=$(this),target=self.attr("data-match-height"),$target=$(target),$t_h=$target.height();self.height($t_h)})},helpers.UI.showDisconnectedOverlay=function(){setTimeout(function(){var $disconnected=$(".disconnected");if("block"===$disconnected.css("display"))return!0;$disconnected.velocity("fadeIn",{duration:500,easing:easing_swiftOut,begin:function(){$disconnected.css({display:"block",opacity:0})}})},500)},helpers.UI.hideDisconnectedOverlay=function(){var $disconnected=$(".disconnected");if("none"===$disconnected.css("display"))return!0;$disconnected.velocity("fadeOut",{duration:500,easing:easing_swiftOut,complete:function(){$disconnected.css({display:"none",opacity:0})}})},helpers.UI.showSnackbar=function(){return 2===arguments.length?helpers.UI.showSnackbar__.apply(this,arguments):helpers.UI.showSnackbar_.apply(this,arguments)},helpers.UI.showSnackbar_=function(options){Snackbar.show(options)},helpers.UI.showSnackbar__=function(text,error){(_.isUndefined(error)||_.isNull(error))&&(error=!1);var actionText="#4CAF50";error&&(actionText="#FF4835"),Snackbar.show({text:text,actionTextColor:actionText})},helpers.UI.closeSnackbar=function(){Snackbar.close()},helpers.UI.inputs=function(parent){(void 0===parent?$(".md-input"):$(parent).find(".md-input")).each(function(){if(!$(this).closest(".md-input-wrapper").length){var $this=$(this);$this.prev("label").length?$this.prev("label").andSelf().wrapAll('<div class="md-input-wrapper"/>'):$this.siblings("[data-uk-form-password]").length?$this.siblings("[data-uk-form-password]").andSelf().wrapAll('<div class="md-input-wrapper"/>'):$this.wrap('<div class="md-input-wrapper"/>'),$this.closest(".md-input-wrapper").append('<span class="md-input-bar"/>'),updateInput($this)}$("body").on("focus",".md-input",function(){$(this).closest(".md-input-wrapper").addClass("md-input-focus")}).on("blur",".md-input",function(){$(this).closest(".md-input-wrapper").removeClass("md-input-focus"),$(this).hasClass("label-fixed")||(""!==$(this).val()?$(this).closest(".md-input-wrapper").addClass("md-input-filled"):$(this).closest(".md-input-wrapper").removeClass("md-input-filled"))}).on("change",".md-input",function(){updateInput($(this))})})},helpers.UI.fabToolbar=function(){var $fab_toolbar=$(".md-fab-toolbar");$fab_toolbar&&($fab_toolbar.children("i").on("click",function(e){e.preventDefault();var toolbarItems=$fab_toolbar.children(".md-fab-toolbar-actions").children().length;$fab_toolbar.addClass("md-fab-animated");var FAB_padding=$fab_toolbar.hasClass("md-fab-small")?24:16,FAB_size=$fab_toolbar.hasClass("md-fab-small")?44:64;setTimeout(function(){$fab_toolbar.width(toolbarItems*FAB_size+FAB_padding)},140),setTimeout(function(){$fab_toolbar.addClass("md-fab-active")},420)}),$(document).on("click scroll",function(e){$fab_toolbar.hasClass("md-fab-active")&&($(e.target).closest($fab_toolbar).length||($fab_toolbar.css("width","").removeClass("md-fab-active"),setTimeout(function(){$fab_toolbar.removeClass("md-fab-animated")},140)))}))},helpers.UI.waves=function(){Waves.attach(".md-btn-wave,.md-fab-wave",["waves-button"]),Waves.attach(".md-btn-wave-light,.md-fab-wave-light",["waves-button","waves-light"]),Waves.attach(".wave-box",["waves-float"]),Waves.init({delay:300})},helpers.UI.selectize=function(parent){void 0!==$.fn.selectize&&Selectize.define("dropdown_after",function(){this.positionDropdown=function(){var $control=this.$control,position=$control.position(),position_left=position.left,position_top=position.top+$control.outerHeight(!0)+32;this.$dropdown.css({width:$control.outerWidth(),top:position_top,left:position_left})}}),(parent?$(parent).find("select"):$("[data-md-selectize],.data-md-selectize")).each(function(){var $this=$(this);if(!$this.hasClass("selectized")){var thisPosBottom=$this.attr("data-md-selectize-bottom"),posTopOffset=$this.attr("data-md-selectize-top-offset"),closeOnSelect="undefined"!==$this.attr("data-md-selectize-closeOnSelect")&&$this.attr("data-md-selectize-closeOnSelect");$this.after('<div class="selectize_fix"></div>').selectize({plugins:["remove_button"],hideSelected:!0,dropdownParent:"body",closeAfterSelect:closeOnSelect,onDropdownOpen:function($dropdown){$dropdown.hide().velocity("slideDown",{begin:function(){void 0!==thisPosBottom&&($dropdown.css({"margin-top":"0"}),void 0!==posTopOffset&&$dropdown.css({"margin-top":posTopOffset+"px"}))},duration:200,easing:easing_swiftOut})},onDropdownClose:function($dropdown){$dropdown.show().velocity("slideUp",{complete:function(){void 0!==thisPosBottom&&$dropdown.css({"margin-top":""}),closeOnSelect&&$($dropdown).prev().find("input").blur()},duration:200,easing:easing_swiftOut})}})}}),$("[data-md-selectize-inline]").each(function(){var $this=$(this);if(!$this.hasClass("selectized")){var thisPosBottom=$this.attr("data-md-selectize-bottom"),posTopOffset=$this.attr("data-md-selectize-top-offset"),closeOnSelect="undefined"!==$this.attr("data-md-selectize-closeOnSelect")&&$this.attr("data-md-selectize-closeOnSelect"),maxOptions="undefined"!==$this.attr("data-md-selectize-maxOptions")?$this.attr("data-md-selectize-maxOptions"):1e3;$this.after('<div class="selectize_fix"></div>').closest("div").addClass("uk-position-relative").end().selectize({plugins:["dropdown_after","remove_button"],dropdownParent:$this.closest("div"),hideSelected:!0,closeAfterSelect:closeOnSelect,maxOptions:maxOptions,onDropdownOpen:function($dropdown){$dropdown.hide().velocity("slideDown",{begin:function(){void 0!==thisPosBottom&&($dropdown.css({"margin-top":"0"}),void 0!==posTopOffset&&$dropdown.css({"margin-top":posTopOffset+"px"}))},duration:200,easing:easing_swiftOut})},onDropdownClose:function($dropdown){$dropdown.show().velocity("slideUp",{complete:function(){void 0!==thisPosBottom&&$dropdown.css({"margin-top":""}),closeOnSelect&&$($dropdown).prev().find("input").blur()},duration:200,easing:easing_swiftOut})}})}})},helpers.UI.cardShow=function(){$(".tru-card-intro").each(function(){$(this).velocity({scale:.99999999,opacity:1},{duration:400,easing:easing_swiftOut})})},helpers.UI.cardOverlay=function(){var $tru_card=$(".tru-card");$tru_card.each(function(){var $this=$(this);$this.hasClass("tru-card-overlay-active")&&$this.find(".tru-card-overlay-toggler").html("close")}),$tru_card.on("click",".tru-card-overlay-toggler",function(e){e.preventDefault(),$(this).closest(".tru-card").hasClass("tru-card-overlay-active")?$(this).html("more_vert").closest(".tru-card").removeClass("tru-card-overlay-active"):$(this).html("close").closest(".tru-card").addClass("tru-card-overlay-active")})},helpers.UI.setupPeity=function(){$(".peity-bar").each(function(){$(this).peity("bar",{height:28,width:48,fill:["#e74c3c"],padding:.2})}),$(".peity-pie").each(function(){$(this).peity("donut",{height:24,width:24,fill:["#29b955","#ccc"]})}),$(".peity-line").each(function(){$(this).peity("line",{height:28,width:64,fill:"#d1e4f6",stroke:"#0288d1"})})},helpers.closeNotificationsWindow=function(){UIkit.modal("#viewAllNotificationsModal").hide()},helpers.showFlash=function(message,error,sticky){var flash=$(".flash-message");if(flash.length<1)return!0;var flashTO,e=!!error,s=!!sticky,flashText=flash.find(".flash-text");if(flashText.html(message),e?flashText.css("background","#de4d4d"):flashText.css("background","#29b955"),s&&(flash.off("mouseout"),flash.off("mouseover")),s||(flash.mouseout(function(){flashTO=setTimeout(flashTimeout,2e3)}),flash.mouseover(function(){clearTimeout(flashTO)})),flashText.is(":visible"))return!0;flashText.css("top","-50px"),flash.show(),flashTO&&clearTimeout(flashTO),flashText.stop().animate({top:"0"},500,function(){s||(flashTO=setTimeout(flashTimeout,2e3))})},helpers.clearFlash=function(){flashTimeout()},helpers.formvalidator=function(){$.validate({errorElementClass:"uk-form-danger",errorMessageClass:"uk-form-danger"})},helpers.bindKeys=function(){var ticketIssue=$("#createTicketForm").find("textarea#issue");ticketIssue.length>0&&(ticketIssue.off("keydown"),ticketIssue.on("keydown",function(e){var keyCode=e.which?e.which:e.keyCode;(10===keyCode||13===keyCode&&e.ctrlKey)&&$("#saveTicketBtn").trigger("click")}));var keyBindEnter=$("*[data-keyBindSubmit]");keyBindEnter.length>0&&$.each(keyBindEnter,function(k,val){var item=$(val);if(!(item.length<1)){item.off("keydown");var actionItem=item.attr("data-keyBindSubmit");if(actionItem.length>0){var itemObj=$(actionItem);itemObj.length>0&&item.on("keydown",function(e){var keyCode=e.which?e.which:e.keyCode;(10===keyCode||13===keyCode&&e.ctrlKey)&&itemObj.trigger("click")})}}})},helpers.onWindowResize=function(){var self=this;return _.debounce(function(){$("body > .side-nav-sub.tether-element").each(function(){$(this).remove()}),self.resizeFullHeight(),self.hideAllpDropDowns(),self.resizeDataTables(".ticketList"),self.resizeDataTables(".tagsList")},100)},helpers.setupScrollers=function(){$(".scrollable").css({"overflow-y":"auto","overflow-x":"hidden"}),$(".scrollable-dark").css({"overflow-y":"auto","overflow-x":"hidden"})},helpers.scrollToBottom=function(jqueryObject,animate){if(_.isUndefined(jqueryObject)||jqueryObject.length<1)return!0;_.isUndefined(animate)&&(animate=!1),jqueryObject.jquery||(jqueryObject=$(jqueryObject)),animate?jqueryObject.animate({scrollTop:jqueryObject[0].scrollHeight},1e3):jqueryObject.scrollTop(jqueryObject[0].scrollHeight)},helpers.resizeAll=function(){var self=this;_.debounce(function(){self.resizeFullHeight(),self.UI.matchHeight(),self.hideAllpDropDowns(),self.resizeDataTables(".ticketList"),self.resizeDataTables(".tagsList")},100)()},helpers.resizeFullHeight=function(){var ele=$(".full-height");$.each(ele,function(){var self=$(this);ele.ready(function(){var h=$(window).height();"solid"===self.css("borderTopStyle")&&(h-=1);var dataOffset=self.attr("data-offset");_.isUndefined(dataOffset)||(h-=dataOffset),self.height(h-self.offset().top)})})},helpers.resizeDataTables=function(selector,hasFooter){if(_.isUndefined(selector))return!0;_.isUndefined(hasFooter)&&(hasFooter=!1),$(document).ready(function(){var $selector=$(selector),scroller=$selector.find(".dataTables_scrollBody");if(0!==scroller.length){var tableHead=$selector.find(".dataTables_scrollHead"),optionsHead=$selector.find(".table-options"),hasFilter=$selector.find(".dataTables_filter"),headHeight=0;0!==optionsHead.length?headHeight=optionsHead.height():0!==hasFilter.length&&(headHeight=hasFilter.height());var footerHeight=0;hasFooter&&(footerHeight=tableHead.height()),scroller.css({height:$selector.height()-tableHead.height()-headHeight-footerHeight+"px"})}})},helpers.hideAllpDropDowns=function(){$("a[data-notifications]").each(function(){var drop=$("#"+$(this).attr("data-notifications"));drop.hasClass("pDropOpen")&&drop.removeClass("pDropOpen")})},helpers.hideAllUiKitDropdowns=function(){$(".uk-dropdown").each(function(){var this_dropdown=$(this);this_dropdown.removeClass("uk-dropdown-shown"),setTimeout(function(){this_dropdown.removeClass("uk-dropdown-active"),this_dropdown.parents("*[data-uk-dropdown]").removeClass("uk-open").attr("aria-expanded",!1)},280)})},helpers.pToolTip=function(){$(document).ready(function(){var pToolTip=$("span[data-ptooltip]");pToolTip.each(function(){var title=$(this).attr("data-title"),type=$(this).attr("data-ptooltip-type"),html="<div class='ptooltip-box-wrap' data-ptooltip-id='"+$(this).attr("id")+"'><div class='ptooltip-box'><span>"+title+"</span>";if("service"===type.toLowerCase()){var status=$(this).attr("data-service-status"),color="#fff";"starting"!==status.toLowerCase()&&"stopping"!==status.toLowerCase()||(color="#e77c3c"),"running"===status.toLowerCase()&&(color="#29b955"),"stopped"===status.toLowerCase()&&(color="#e54242"),html+="<span>Status: <span style='color: "+color+";'>"+status+"</span>"}else if("dailyticket"===type.toLowerCase()){var n=$(this).attr("data-new-count"),c=$(this).attr("data-closed-count");html+="<span><span style='color: #e74c3c'>"+n+"</span> New / <span style='color: #2fb150'>"+c+"</span> Closed</span>"}html+="</div></div>";var k=$("<div></div>").css({position:"relative"});k.append(html),$(this).append(k)}),pToolTip.hover(function(){var id=$(this).attr("id");$('div.ptooltip-box-wrap[data-ptooltip-id="'+id+'"]').show()},function(){var id=$(this).attr("id");$('div.ptooltip-box-wrap[data-ptooltip-id="'+id+'"]').hide()})})},helpers.setupDonutchart=function(){$(document).ready(function(){$(".donutchart").each(function(){var trackColor=$(this).attr("data-trackColor");(null==trackColor||trackColor.length<=0)&&(trackColor="#e74c3c");var numCount=$(this).attr("data-numcount");(null==numCount||numCount.length<=0)&&(numCount=!1);var $size=$(this).attr("data-size");(null==$size||$size.length<=0)&&($size=150),$(this).css({height:$size,width:$size}),$(this).easyPieChart({size:$size,lineCap:"round",lineWidth:8,scaleColor:!1,barColor:trackColor,trackColor:"#e3e5e8",onStart:function(value){$(this.el).find(".chart-value").text(value)},onStop:function(value,to){if(numCount){var totalNum=parseInt($(this.el).attr("data-totalNumCount"));if(totalNum<=0)return;return $(this.el).find(".chart-value").text(totalNum),!0}to===1/0&&(to=0),$(this.el).find(".chart-value").text(Math.round(to))},onStep:function(from,to,percent){if(numCount){var countVal=parseInt($(this.el).attr("data-totalNumCount"));if(countVal<=0)return;var current=parseInt($(this.el).find(".chart-value").text());if(null!=countVal&&countVal>0&&null!=current){var totalCount=Math.round(countVal*(100/Math.round(to))),val=totalCount*(.01*Math.round(percent)),final=Math.round(val);return!!isNaN(final)||($(this.el).find(".chart-value").text(final),!0)}}percent===1/0&&(percent=0),$(this.el).find(".chart-value").text(Math.round(percent))}})})})},helpers.setupBarChart=function(){$(document).ready(function(){$(".bar-chart > .bar").each(function(){var $this=$(this),val=$this.attr("data-percent"),i=.01*val*170;$this.find("span.bar-track").height(0).animate({height:i},1e3)})})},helpers.actionButtons=function(){$(document).ready(function(){$("*[data-action]").each(function(){var self=$(this),action=self.attr("data-action");if("submit"===action.toLowerCase()){var formId=self.attr("data-form");if(!_.isUndefined(formId)){var form=$("#"+formId);0!==form.length&&self.click(function(e){form.submit();var preventDefault=self.attr("data-preventDefault");_.isUndefined(preventDefault)||preventDefault.length<1?e.preventDefault():"true"===preventDefault.toLowerCase()&&e.preventDefault()})}}else if("scrolltobottom"===action.toLowerCase()){var targetScroll=self.attr("data-targetScroll");if(!_.isUndefined(targetScroll)){var target=$(targetScroll);0!==target.length&&self.click(function(e){var animation=self.attr("data-action-animation");_.isUndefined(animation)||"false"!==animation.toLowerCase()?target.animate({scrollTop:target[0].scrollHeight},1e3):target.animate({scrollTop:target[0].scrollHeight},0);var preventDefault=self.attr("data-preventDefault");_.isUndefined(preventDefault)||preventDefault.length<1?e.preventDefault():"true"===preventDefault.toLowerCase()&&e.preventDefault()})}}})})},helpers.fadeOutLoader=function(time){_.isUndefined(time)&&(time=100),$(document).ready(function(){$("#loader").fadeOut(time)})},helpers.hideLoader=function(time){(_.isUndefined(time)||_.isNull(time))&&(time=280),$(document).ready(function(){$("#loader-wrapper").fadeOut(time)})},helpers.showLoader=function(opacity){(_.isUndefined(opacity)||_.isNull(opacity))&&(opacity=1);var $loader=$("#loader-wrapper");$loader.css({opacity:0,display:"block"}),$loader.animate({opacity:opacity},500)},helpers.ajaxFormSubmit=function(){$("form.ajaxSubmit").each(function(){var self=$(this);self.submit(function(e){return $.ajax({type:self.attr("method"),url:self.attr("action"),data:self.serialize(),success:function(){self.find('*[data-clearOnSubmit="true"]').each(function(){$(this).val("")})}}),e.preventDefault(),!1})})},helpers.formatDate=function(date,format){return moment(date).format(format)},helpers.setupChosen=function(){$(".chosen-select").each(function(){var self=$(this),nosearch=$(this).attr("data-nosearch"),placeholder="",elePlaceHolder=$(this).attr("data-placeholder"),noResults="No Results Found For ",eleNoResults=$(this).attr("data-noresults"),searchNum=10;nosearch&&(searchNum=9e4),!_.isUndefined(elePlaceHolder)&&elePlaceHolder.length>0&&(placeholder=elePlaceHolder),!_.isUndefined(eleNoResults)&&eleNoResults.length>0&&(noResults=eleNoResults),self.chosen({disable_search_threshold:searchNum,placeholder_text_single:placeholder,placeholder_text_multiple:placeholder,no_results_text:noResults})})},helpers.clearMessageContent=function(){var contentDiv=$("#message-content");contentDiv.length>0&&contentDiv.html("")},helpers.closeMessageWindow=function(){UIkit.modal("#newMessageModal").hide();var $newMessageTo=$("#newMessageTo");$newMessageTo.find("option").prop("selected",!1),$newMessageTo.trigger("chosen:updated"),$("#newMessageSubject").val(""),$("#newMessageText").val("")},helpers.bindNewMessageSubmit=function(){var messageForm=$("#newMessageForm");messageForm.length<1||(messageForm.unbind("submit",newMessageSubmit),messageForm.bind("submit",newMessageSubmit))},helpers.canUser=function(a){var role=window.trudeskSessionService.getUser().role;if(_.isUndefined(role))return!1;var rolePerm=_.find(ROLES,{id:role});if(_.isUndefined(rolePerm))return!1;if("*"===rolePerm.allowedAction)return!0;if(-1!==_.indexOf(rolePerm.allowedAction,"*"))return!0;var actionType=a.split(":")[0],action=a.split(":")[1];if(_.isUndefined(actionType)||_.isUndefined(action))return!1;var result=_.filter(rolePerm.allowedAction,function(value){if(stringStartsWith(value,actionType+":"))return value});if(_.isUndefined(result)||_.size(result)<1)return!1;if(1===_.size(result)&&"*"===result[0])return!0;var typePerm=result[0].split(":")[1].split(" ");return typePerm=_.uniq(typePerm),-1!==_.indexOf(typePerm,"*")||-1!==_.indexOf(typePerm,action)},helpers.canUserEditSelf=function(ownerId,perm){var id=window.trudeskSessionService.getUser()._id;return!!helpers.canUser(perm+":editSelf")&&id.toString()===ownerId.toString()},helpers.setupContextMenu=function(selector,complete){var $selector=$(selector);if($selector.length<1)return!1;$(document).off("mousedown"),$(document).on("mousedown",function(e){if(!$(e.target).parents(".context-menu").length>0){var cm=$(".context-menu");cm.length>0&&cm.hide(100)}});var menuOpenFor=void 0;$selector.off("contextmenu"),$selector.on("contextmenu",function(event){event.preventDefault(),menuOpenFor=event.target,$(".context-menu").finish().toggle(100).css({top:event.pageY+"px",left:event.pageX+"px"})}),$selector.off("mousedown"),$selector.on("mousedown",function(event){!$(event.target).parents(".context-menu").length>0&&$(".context-menu").hide(100)}),$(".context-menu li").each(function(){var $item=$(this);$item.off("click"),$item.on("click",function(){if($(".context-menu").hide(100),_.isFunction(complete))return complete($(this).attr("data-action"),menuOpenFor);console.log("Invalid Callback Function in Context-Menu!")})})},helpers.setupTruTabs=function(tabs){var toggleTab=function(element){$(element).hasClass("active")&&$(element).parent().find(".tru-tab-highlighter").css({width:$(element).outerWidth()}),$(element).off("click"),$(element).on("click",function(event){if(event.preventDefault(),$(this).hasClass("active"))return!0;var $highlighter=$(this).parent().find(".tru-tab-highlighter");$(this).parent().find(".tru-tab-selector").each(function(){$(this).removeClass("active")}),$(this).addClass("active"),$highlighter.css({width:$(this).outerWidth()});var tabId=$(this).attr("data-tabid");$(this).parents(".tru-tabs").find(".tru-tab-section").each(function(){$(this).removeClass("visible").addClass("hidden")}),$(this).parents(".tru-tabs").find('.tru-tab-section[data-tabid="'+tabId+'"]').addClass("visible").removeClass("hidden");var highlighterPos=$(this).position().left+"px";$highlighter.css("transform","translateX("+highlighterPos+")")})};_.each(tabs,function(i){toggleTab(i)})},helpers.prototypes=function(){String.prototype.formatUnicorn=String.prototype.formatUnicorn||function(){var str=this.toString();if(arguments.length){var key,t=typeof arguments[0],args="string"===t||"number"===t?Array.prototype.slice.call(arguments):arguments[0];for(key in args)str=str.replace(new RegExp("\\{"+key+"\\}","gi"),args[key])}return str}},helpers}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},,function(module,exports,__webpack_require__){(function(module){!function(global,factory){module.exports=factory()}(0,function(){"use strict";function hooks(){return hookCallback.apply(null,arguments)}function isArray(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function isObject(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function isObjectEmpty(obj){var k;for(k in obj)return!1;return!0}function isUndefined(input){return void 0===input}function isNumber(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function isDate(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(arr,fn){var i,res=[];for(i=0;i<arr.length;++i)res.push(fn(arr[i],i));return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b)hasOwnProp(b,i)&&(a[i]=b[i]);return hasOwnProp(b,"toString")&&(a.toString=b.toString),hasOwnProp(b,"valueOf")&&(a.valueOf=b.valueOf),a}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(m){return null==m._pf&&(m._pf=defaultParsingFlags()),m._pf}function isValid(m){if(null==m._isValid){var flags=getParsingFlags(m),parsedParts=some$1.call(flags.parsedDateParts,function(i){return null!=i}),isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict&&(isNowValid=isNowValid&&0===flags.charsLeftOver&&0===flags.unusedTokens.length&&void 0===flags.bigHour),null!=Object.isFrozen&&Object.isFrozen(m))return isNowValid;m._isValid=isNowValid}return m._isValid}function createInvalid(flags){var m=createUTC(NaN);return null!=flags?extend(getParsingFlags(m),flags):getParsingFlags(m).userInvalidated=!0,m}function copyConfig(to,from){var i,prop,val;if(isUndefined(from._isAMomentObject)||(to._isAMomentObject=from._isAMomentObject),isUndefined(from._i)||(to._i=from._i),isUndefined(from._f)||(to._f=from._f),isUndefined(from._l)||(to._l=from._l),isUndefined(from._strict)||(to._strict=from._strict),isUndefined(from._tzm)||(to._tzm=from._tzm),isUndefined(from._isUTC)||(to._isUTC=from._isUTC),isUndefined(from._offset)||(to._offset=from._offset),isUndefined(from._pf)||(to._pf=getParsingFlags(from)),isUndefined(from._locale)||(to._locale=from._locale),momentProperties.length>0)for(i=0;i<momentProperties.length;i++)prop=momentProperties[i],val=from[prop],isUndefined(val)||(to[prop]=val);return to}function Moment(config){copyConfig(this,config),this._d=new Date(null!=config._d?config._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===updateInProgress&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(obj){return obj instanceof Moment||null!=obj&&null!=obj._isAMomentObject}function absFloor(number){return number<0?Math.ceil(number)||0:Math.floor(number)}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;return 0!==coercedNumber&&isFinite(coercedNumber)&&(value=absFloor(coercedNumber)),value}function compareArrays(array1,array2,dontConvert){var i,len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0;for(i=0;i<len;i++)(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i]))&&diffs++;return diffs+lengthDiff}function warn(msg){!1===hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+msg)}function deprecate(msg,fn){var firstTime=!0;return extend(function(){if(null!=hooks.deprecationHandler&&hooks.deprecationHandler(null,msg),firstTime){for(var arg,args=[],i=0;i<arguments.length;i++){if(arg="","object"==typeof arguments[i]){arg+="\n["+i+"] ";for(var key in arguments[0])arg+=key+": "+arguments[0][key]+", ";arg=arg.slice(0,-2)}else arg=arguments[i];args.push(arg)}warn(msg+"\nArguments: "+Array.prototype.slice.call(args).join("")+"\n"+(new Error).stack),firstTime=!1}return fn.apply(this,arguments)},fn)}function deprecateSimple(name,msg){null!=hooks.deprecationHandler&&hooks.deprecationHandler(name,msg),deprecations[name]||(warn(msg),deprecations[name]=!0)}function isFunction(input){return input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function set(config){var prop,i;for(i in config)prop=config[i],isFunction(prop)?this[i]=prop:this["_"+i]=prop;this._config=config,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(parentConfig,childConfig){var prop,res=extend({},parentConfig);for(prop in childConfig)hasOwnProp(childConfig,prop)&&(isObject(parentConfig[prop])&&isObject(childConfig[prop])?(res[prop]={},extend(res[prop],parentConfig[prop]),extend(res[prop],childConfig[prop])):null!=childConfig[prop]?res[prop]=childConfig[prop]:delete res[prop]);for(prop in parentConfig)hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])&&(res[prop]=extend({},res[prop]));return res}function Locale(config){null!=config&&this.set(config)}function calendar(key,mom,now){var output=this._calendar[key]||this._calendar.sameElse;return isFunction(output)?output.call(mom,now):output}function longDateFormat(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];return format||!formatUpper?format:(this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,function(val){return val.slice(1)}),this._longDateFormat[key])}function invalidDate(){return this._invalidDate}function ordinal(number){return this._ordinal.replace("%d",number)}function relativeTime(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)}function pastFuture(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return isFunction(format)?format(output):format.replace(/%s/i,output)}function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return"string"==typeof units?aliases[units]||aliases[units.toLowerCase()]:void 0}function normalizeObjectUnits(inputObject){var normalizedProp,prop,normalizedInput={};for(prop in inputObject)hasOwnProp(inputObject,prop)&&(normalizedProp=normalizeUnits(prop))&&(normalizedInput[normalizedProp]=inputObject[prop]);return normalizedInput}function addUnitPriority(unit,priority){priorities[unit]=priority}function getPrioritizedUnits(unitsObj){var units=[];for(var u in unitsObj)units.push({unit:u,priority:priorities[u]});return units.sort(function(a,b){return a.priority-b.priority}),units}function makeGetSet(unit,keepTime){return function(value){return null!=value?(set$1(this,unit,value),hooks.updateOffset(this,keepTime),this):get(this,unit)}}function get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function set$1(mom,unit,value){mom.isValid()&&mom._d["set"+(mom._isUTC?"UTC":"")+unit](value)}function stringGet(units){return units=normalizeUnits(units),isFunction(this[units])?this[units]():this}function stringSet(units,value){if("object"==typeof units){units=normalizeObjectUnits(units);for(var prioritized=getPrioritizedUnits(units),i=0;i<prioritized.length;i++)this[prioritized[i].unit](units[prioritized[i].unit])}else if(units=normalizeUnits(units),isFunction(this[units]))return this[units](value);return this}function zeroFill(number,targetLength,forceSign){var absNumber=""+Math.abs(number),zerosToFill=targetLength-absNumber.length;return(number>=0?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}function addFormatToken(token,padded,ordinal,callback){var func=callback;"string"==typeof callback&&(func=function(){return this[callback]()}),token&&(formatTokenFunctions[token]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal&&(formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)})}function removeFormattingTokens(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"")}function makeFormatFunction(format){var i,length,array=format.match(formattingTokens);for(i=0,length=array.length;i<length;i++)formatTokenFunctions[array[i]]?array[i]=formatTokenFunctions[array[i]]:array[i]=removeFormattingTokens(array[i]);return function(mom){var i,output="";for(i=0;i<length;i++)output+=isFunction(array[i])?array[i].call(mom,format):array[i];return output}}function formatMoment(m,format){return m.isValid()?(format=expandFormat(format,m.localeData()),formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format),formatFunctions[format](m)):m.localeData().invalidDate()}function expandFormat(format,locale){function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}var i=5;for(localFormattingTokens.lastIndex=0;i>=0&&localFormattingTokens.test(format);)format=format.replace(localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,i-=1;return format}function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){return hasOwnProp(regexes,token)?regexes[token](config._strict,config._locale):new RegExp(unescapeFormat(token))}function unescapeFormat(s){return regexEscape(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function addParseToken(token,callback){var i,func=callback;for("string"==typeof token&&(token=[token]),isNumber(callback)&&(func=function(input,array){array[callback]=toInt(input)}),i=0;i<token.length;i++)tokens[token[i]]=func}function addWeekParseToken(token,callback){addParseToken(token,function(input,array,config,token){config._w=config._w||{},callback(input,config._w,config,token)})}function addTimeToArrayFromToken(token,input,config){null!=input&&hasOwnProp(tokens,token)&&tokens[token](input,config._a,config,token)}function daysInMonth(year,month){return new Date(Date.UTC(year,month+1,0)).getUTCDate()}function localeMonths(m,format){return m?isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?"format":"standalone"][m.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(m,format){return m?isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"][m.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)mom=createUTC([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(mom,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(mom,"").toLocaleLowerCase();return strict?"MMM"===format?(ii=indexOf$1.call(this._shortMonthsParse,llc),-1!==ii?ii:null):(ii=indexOf$1.call(this._longMonthsParse,llc),-1!==ii?ii:null):"MMM"===format?-1!==(ii=indexOf$1.call(this._shortMonthsParse,llc))?ii:(ii=indexOf$1.call(this._longMonthsParse,llc),-1!==ii?ii:null):-1!==(ii=indexOf$1.call(this._longMonthsParse,llc))?ii:(ii=indexOf$1.call(this._shortMonthsParse,llc),-1!==ii?ii:null)}function localeMonthsParse(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format,strict);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(mom=createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")),strict||this._monthsParse[i]||(regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"MMMM"===format&&this._longMonthsParse[i].test(monthName))return i;if(strict&&"MMM"===format&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid())return mom;if("string"==typeof value)if(/^\d+$/.test(value))value=toInt(value);else if(value=mom.localeData().monthsParse(value),!isNumber(value))return mom;return dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value)),mom._d["set"+(mom._isUTC?"UTC":"")+"Month"](value,dayOfMonth),mom}function getSetMonth(value){return null!=value?(setMonth(this,value),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<12;i++)mom=createUTC([2e3,i]),shortPieces.push(this.monthsShort(mom,"")),longPieces.push(this.months(mom,"")),mixedPieces.push(this.months(mom,"")),mixedPieces.push(this.monthsShort(mom,""));for(shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<12;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]);for(i=0;i<24;i++)mixedPieces[i]=regexEscape(mixedPieces[i]);this._monthsRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i")}function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4==0&&year%100!=0||year%400==0}function getIsLeapYear(){return isLeapYear(this.year())}function createDate(y,m,d,h,M,s,ms){var date=new Date(y,m,d,h,M,s,ms);return y<100&&y>=0&&isFinite(date.getFullYear())&&date.setFullYear(y),date}function createUTCDate(y){var date=new Date(Date.UTC.apply(null,arguments));return y<100&&y>=0&&isFinite(date.getUTCFullYear())&&date.setUTCFullYear(y),date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy;return-(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var resYear,resDayOfYear,localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset;return dayOfYear<=0?(resYear=year-1,resDayOfYear=daysInYear(resYear)+dayOfYear):dayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear=dayOfYear-daysInYear(year)):(resYear=year,resDayOfYear=dayOfYear),{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var resWeek,resYear,weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1;return week<1?(resYear=mom.year()-1,resWeek=week+weeksInYear(resYear,dow,doy)):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week}function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(input){var week=this.localeData().week(this);return null==input?week:this.add(7*(input-week),"d")}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return null==input?week:this.add(7*(input-week),"d")}function parseWeekday(input,locale){return"string"!=typeof input?input:isNaN(input)?(input=locale.weekdaysParse(input),"number"==typeof input?input:null):parseInt(input,10)}function parseIsoWeekday(input,locale){return"string"==typeof input?locale.weekdaysParse(input)%7||7:isNaN(input)?null:input}function localeWeekdays(m,format){return m?isArray(this._weekdays)?this._weekdays[m.day()]:this._weekdays[this._weekdays.isFormat.test(format)?"format":"standalone"][m.day()]:isArray(this._weekdays)?this._weekdays:this._weekdays.standalone}function localeWeekdaysShort(m){return m?this._weekdaysShort[m.day()]:this._weekdaysShort}function localeWeekdaysMin(m){return m?this._weekdaysMin[m.day()]:this._weekdaysMin}function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)mom=createUTC([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase();return strict?"dddd"===format?(ii=indexOf$1.call(this._weekdaysParse,llc),-1!==ii?ii:null):"ddd"===format?(ii=indexOf$1.call(this._shortWeekdaysParse,llc),-1!==ii?ii:null):(ii=indexOf$1.call(this._minWeekdaysParse,llc),-1!==ii?ii:null):"dddd"===format?-1!==(ii=indexOf$1.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf$1.call(this._shortWeekdaysParse,llc))?ii:(ii=indexOf$1.call(this._minWeekdaysParse,llc),-1!==ii?ii:null):"ddd"===format?-1!==(ii=indexOf$1.call(this._shortWeekdaysParse,llc))?ii:-1!==(ii=indexOf$1.call(this._weekdaysParse,llc))?ii:(ii=indexOf$1.call(this._minWeekdaysParse,llc),-1!==ii?ii:null):-1!==(ii=indexOf$1.call(this._minWeekdaysParse,llc))?ii:-1!==(ii=indexOf$1.call(this._weekdaysParse,llc))?ii:(ii=indexOf$1.call(this._shortWeekdaysParse,llc),-1!==ii?ii:null)}function localeWeekdaysParse(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format,strict);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(mom=createUTC([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"dddd"===format&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&"ddd"===format&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&"dd"===format&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}}function getSetDayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;var day=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=parseWeekday(input,this.localeData()),this.add(input-day,"d")):day}function getSetLocaleDayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return null==input?weekday:this.add(input-weekday,"d")}function getSetISODayOfWeek(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}return this.day()||7}function weekdaysRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,minp,shortp,longp,minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<7;i++)mom=createUTC([2e3,1]).day(i),minp=this.weekdaysMin(mom,""),shortp=this.weekdaysShort(mom,""),longp=this.weekdays(mom,""),minPieces.push(minp),shortPieces.push(shortp),longPieces.push(longp),mixedPieces.push(minp),mixedPieces.push(shortp),mixedPieces.push(longp);for(minPieces.sort(cmpLenRev),shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<7;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]),mixedPieces[i]=regexEscape(mixedPieces[i]);this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(token,lowercase){addFormatToken(token,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)})}function matchMeridiem(isStrict,locale){return locale._meridiemParse}function localeIsPM(input){return"p"===(input+"").toLowerCase().charAt(0)}function localeMeridiem(hours,minutes,isLower){return hours>11?isLower?"pm":"PM":isLower?"am":"AM"}function normalizeLocale(key){return key?key.toLowerCase().replace("_","-"):key}function chooseLocale(names){for(var j,next,locale,split,i=0;i<names.length;){for(split=normalizeLocale(names[i]).split("-"),j=split.length,next=normalizeLocale(names[i+1]),next=next?next.split("-"):null;j>0;){if(locale=loadLocale(split.slice(0,j).join("-")))return locale;if(next&&next.length>=j&&compareArrays(split,next,!0)>=j-1)break;j--}i++}return null}function loadLocale(name){var oldLocale=null;if(!locales[name]&&void 0!==module&&module&&module.exports)try{oldLocale=globalLocale._abbr,function(){var e=new Error('Cannot find module "./locale"');throw e.code="MODULE_NOT_FOUND",e}(),getSetGlobalLocale(oldLocale)}catch(e){}return locales[name]}function getSetGlobalLocale(key,values){var data;return key&&(data=isUndefined(values)?getLocale(key):defineLocale(key,values))&&(globalLocale=data),globalLocale._abbr}function defineLocale(name,config){if(null!==config){var parentConfig=baseConfig;if(config.abbr=name,null!=locales[name])deprecateSimple("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."),parentConfig=locales[name]._config;else if(null!=config.parentLocale){if(null==locales[config.parentLocale])return localeFamilies[config.parentLocale]||(localeFamilies[config.parentLocale]=[]),localeFamilies[config.parentLocale].push({name:name,config:config}),null;parentConfig=locales[config.parentLocale]._config}return locales[name]=new Locale(mergeConfigs(parentConfig,config)),localeFamilies[name]&&localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config)}),getSetGlobalLocale(name),locales[name]}return delete locales[name],null}function updateLocale(name,config){if(null!=config){var locale,parentConfig=baseConfig;null!=locales[name]&&(parentConfig=locales[name]._config),config=mergeConfigs(parentConfig,config),locale=new Locale(config),locale.parentLocale=locales[name],locales[name]=locale,getSetGlobalLocale(name)}else null!=locales[name]&&(null!=locales[name].parentLocale?locales[name]=locales[name].parentLocale:null!=locales[name]&&delete locales[name]);return locales[name]}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr&&(key=key._locale._abbr),!key)return globalLocale;if(!isArray(key)){if(locale=loadLocale(key))return locale;key=[key]}return chooseLocale(key)}function listLocales(){return keys$1(locales)}function checkOverflow(m){var overflow,a=m._a;return a&&-2===getParsingFlags(m).overflow&&(overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||24===a[HOUR]&&(0!==a[MINUTE]||0!==a[SECOND]||0!==a[MILLISECOND])?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)&&(overflow=DATE),getParsingFlags(m)._overflowWeeks&&-1===overflow&&(overflow=WEEK),getParsingFlags(m)._overflowWeekday&&-1===overflow&&(overflow=WEEKDAY),getParsingFlags(m).overflow=overflow),m}function configFromISO(config){var i,l,allowTime,dateFormat,timeFormat,tzFormat,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string);if(match){for(getParsingFlags(config).iso=!0,i=0,l=isoDates.length;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0],allowTime=!1!==isoDates[i][2];break}if(null==dateFormat)return void(config._isValid=!1);if(match[3]){for(i=0,l=isoTimes.length;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}if(null==timeFormat)return void(config._isValid=!1)}if(!allowTime&&null!=timeFormat)return void(config._isValid=!1);if(match[4]){if(!tzRegex.exec(match[4]))return void(config._isValid=!1);tzFormat="Z"}config._f=dateFormat+(timeFormat||"")+(tzFormat||""),configFromStringAndFormat(config)}else config._isValid=!1}function configFromRFC2822(config){var string,match,dayFormat,dateFormat,timeFormat,tzFormat,timezone,timezoneIndex,timezones={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},military="YXWVUTSRQPONZABCDEFGHIKLM";if(string=config._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),match=basicRfcRegex.exec(string)){if(dayFormat=match[1]?"ddd"+(5===match[1].length?", ":" "):"",dateFormat="D MMM "+(match[2].length>10?"YYYY ":"YY "),timeFormat="HH:mm"+(match[4]?":ss":""),match[1]){var momentDate=new Date(match[2]),momentDay=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][momentDate.getDay()];if(match[1].substr(0,3)!==momentDay)return getParsingFlags(config).weekdayMismatch=!0,void(config._isValid=!1)}switch(match[5].length){case 2:0===timezoneIndex?timezone=" +0000":(timezoneIndex=military.indexOf(match[5][1].toUpperCase())-12,timezone=(timezoneIndex<0?" -":" +")+(""+timezoneIndex).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:timezone=timezones[match[5]];break;default:timezone=timezones[" GMT"]}match[5]=timezone,config._i=match.splice(1).join(""),tzFormat=" ZZ",config._f=dayFormat+dateFormat+timeFormat+tzFormat,configFromStringAndFormat(config),getParsingFlags(config).rfc2822=!0}else config._isValid=!1}function configFromString(config){var matched=aspNetJsonRegex.exec(config._i);if(null!==matched)return void(config._d=new Date(+matched[1]));configFromISO(config),!1===config._isValid&&(delete config._isValid,configFromRFC2822(config),!1===config._isValid&&(delete config._isValid,hooks.createFromInputFallback(config)))}function defaults(a,b,c){return null!=a?a:null!=b?b:c}function currentDateArray(config){var nowValue=new Date(hooks.now());return config._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}function configFromArray(config){var i,date,currentDate,yearToUse,input=[];if(!config._d){for(currentDate=currentDateArray(config),config._w&&null==config._a[DATE]&&null==config._a[MONTH]&&dayOfYearFromWeekInfo(config),null!=config._dayOfYear&&(yearToUse=defaults(config._a[YEAR],currentDate[YEAR]),(config._dayOfYear>daysInYear(yearToUse)||0===config._dayOfYear)&&(getParsingFlags(config)._overflowDayOfYear=!0),date=createUTCDate(yearToUse,0,config._dayOfYear),config._a[MONTH]=date.getUTCMonth(),config._a[DATE]=date.getUTCDate()),i=0;i<3&&null==config._a[i];++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=null==config._a[i]?2===i?1:0:config._a[i];24===config._a[HOUR]&&0===config._a[MINUTE]&&0===config._a[SECOND]&&0===config._a[MILLISECOND]&&(config._nextDay=!0,config._a[HOUR]=0),config._d=(config._useUTC?createUTCDate:createDate).apply(null,input),null!=config._tzm&&config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),config._nextDay&&(config._a[HOUR]=24)}}function dayOfYearFromWeekInfo(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;if(w=config._w,null!=w.GG||null!=w.W||null!=w.E)dow=1,doy=4,weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year),week=defaults(w.W,1),((weekday=defaults(w.E,1))<1||weekday>7)&&(weekdayOverflow=!0);else{dow=config._locale._week.dow,doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year),week=defaults(w.w,curWeek.week),null!=w.d?((weekday=w.d)<0||weekday>6)&&(weekdayOverflow=!0):null!=w.e?(weekday=w.e+dow,(w.e<0||w.e>6)&&(weekdayOverflow=!0)):weekday=dow}week<1||week>weeksInYear(weekYear,dow,doy)?getParsingFlags(config)._overflowWeeks=!0:null!=weekdayOverflow?getParsingFlags(config)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),config._a[YEAR]=temp.year,config._dayOfYear=temp.dayOfYear)}function configFromStringAndFormat(config){if(config._f===hooks.ISO_8601)return void configFromISO(config);if(config._f===hooks.RFC_2822)return void configFromRFC2822(config);config._a=[],getParsingFlags(config).empty=!0;var i,parsedInput,tokens,token,skipped,string=""+config._i,stringLength=string.length,totalParsedInputLength=0;for(tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[],i=0;i<tokens.length;i++)token=tokens[i],parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0],parsedInput&&(skipped=string.substr(0,string.indexOf(parsedInput)),skipped.length>0&&getParsingFlags(config).unusedInput.push(skipped),string=string.slice(string.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token]?(parsedInput?getParsingFlags(config).empty=!1:getParsingFlags(config).unusedTokens.push(token),addTimeToArrayFromToken(token,parsedInput,config)):config._strict&&!parsedInput&&getParsingFlags(config).unusedTokens.push(token);getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength,string.length>0&&getParsingFlags(config).unusedInput.push(string),config._a[HOUR]<=12&&!0===getParsingFlags(config).bigHour&&config._a[HOUR]>0&&(getParsingFlags(config).bigHour=void 0),getParsingFlags(config).parsedDateParts=config._a.slice(0),getParsingFlags(config).meridiem=config._meridiem,config._a[HOUR]=meridiemFixWrap(config._locale,config._a[HOUR],config._meridiem),configFromArray(config),checkOverflow(config)}function meridiemFixWrap(locale,hour,meridiem){var isPm;return null==meridiem?hour:null!=locale.meridiemHour?locale.meridiemHour(hour,meridiem):null!=locale.isPM?(isPm=locale.isPM(meridiem),isPm&&hour<12&&(hour+=12),isPm||12!==hour||(hour=0),hour):hour}function configFromStringAndArray(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(0===config._f.length)return getParsingFlags(config).invalidFormat=!0,void(config._d=new Date(NaN));for(i=0;i<config._f.length;i++)currentScore=0,tempConfig=copyConfig({},config),null!=config._useUTC&&(tempConfig._useUTC=config._useUTC),tempConfig._f=config._f[i],configFromStringAndFormat(tempConfig),isValid(tempConfig)&&(currentScore+=getParsingFlags(tempConfig).charsLeftOver,currentScore+=10*getParsingFlags(tempConfig).unusedTokens.length,getParsingFlags(tempConfig).score=currentScore,(null==scoreToBeat||currentScore<scoreToBeat)&&(scoreToBeat=currentScore,bestMoment=tempConfig));extend(config,bestMoment||tempConfig)}function configFromObject(config){if(!config._d){var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)}),configFromArray(config)}}function createFromConfig(config){var res=new Moment(checkOverflow(prepareConfig(config)));return res._nextDay&&(res.add(1,"d"),res._nextDay=void 0),res}function prepareConfig(config){var input=config._i,format=config._f;return config._locale=config._locale||getLocale(config._l),null===input||void 0===format&&""===input?createInvalid({nullInput:!0}):("string"==typeof input&&(config._i=input=config._locale.preparse(input)),isMoment(input)?new Moment(checkOverflow(input)):(isDate(input)?config._d=input:isArray(format)?configFromStringAndArray(config):format?configFromStringAndFormat(config):configFromInput(config),isValid(config)||(config._d=null),config))}function configFromInput(config){var input=config._i;isUndefined(input)?config._d=new Date(hooks.now()):isDate(input)?config._d=new Date(input.valueOf()):"string"==typeof input?configFromString(config):isArray(input)?(config._a=map(input.slice(0),function(obj){return parseInt(obj,10)}),configFromArray(config)):isObject(input)?configFromObject(config):isNumber(input)?config._d=new Date(input):hooks.createFromInputFallback(config)}function createLocalOrUTC(input,format,locale,strict,isUTC){var c={};return!0!==locale&&!1!==locale||(strict=locale,locale=void 0),(isObject(input)&&isObjectEmpty(input)||isArray(input)&&0===input.length)&&(input=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=isUTC,c._l=locale,c._i=input,c._f=format,c._strict=strict,createFromConfig(c)}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!1)}function pickBy(fn,moments){var res,i;if(1===moments.length&&isArray(moments[0])&&(moments=moments[0]),!moments.length)return createLocal();for(res=moments[0],i=1;i<moments.length;++i)moments[i].isValid()&&!moments[i][fn](res)||(res=moments[i]);return res}function min(){return pickBy("isBefore",[].slice.call(arguments,0))}function max(){return pickBy("isAfter",[].slice.call(arguments,0))}function isDurationValid(m){for(var key in m)if(-1===ordering.indexOf(key)||null!=m[key]&&isNaN(m[key]))return!1;for(var unitHasDecimal=!1,i=0;i<ordering.length;++i)if(m[ordering[i]]){if(unitHasDecimal)return!1;parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])&&(unitHasDecimal=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput),this._milliseconds=+milliseconds+1e3*seconds+6e4*minutes+1e3*hours*60*60,this._days=+days+7*weeks,this._months=+months+3*quarters+12*years,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){return number<0?-1*Math.round(-1*number):Math.round(number)}function offset(token,separator){addFormatToken(token,0,0,function(){var offset=this.utcOffset(),sign="+";return offset<0&&(offset=-offset,sign="-"),sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)})}function offsetFromString(matcher,string){var matches=(string||"").match(matcher);if(null===matches)return null;var chunk=matches[matches.length-1]||[],parts=(chunk+"").match(chunkOffset)||["-",0,0],minutes=60*parts[1]+toInt(parts[2]);return 0===minutes?0:"+"===parts[0]?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;return model._isUTC?(res=model.clone(),diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf(),res._d.setTime(res._d.valueOf()+diff),hooks.updateOffset(res,!1),res):createLocal(input).local()}function getDateOffset(m){return 15*-Math.round(m._d.getTimezoneOffset()/15)}function getSetOffset(input,keepLocalTime,keepMinutes){var localAdjust,offset=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=offsetFromString(matchShortOffset,input)))return this}else Math.abs(input)<16&&!keepMinutes&&(input*=60);return!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,this._isUTC=!0,null!=localAdjust&&this.add(localAdjust,"m"),offset!==input&&(!keepLocalTime||this._changeInProgress?addSubtract(this,createDuration(input-offset,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?offset:getDateOffset(this)}function getSetZone(input,keepLocalTime){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)}function setOffsetToLocal(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var tZone=offsetFromString(matchOffset,this._i);null!=tZone?this.utcOffset(tZone):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(input){return!!this.isValid()&&(input=input?createLocal(input).utcOffset():0,(this.utcOffset()-input)%60==0)}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var c={};if(copyConfig(c,this),c=prepareConfig(c),c._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function createDuration(input,key){var sign,ret,diffRes,duration=input,match=null;return isDuration(input)?duration={ms:input._milliseconds,d:input._days,M:input._months}:isNumber(input)?(duration={},key?duration[key]=input:duration.milliseconds=input):(match=aspNetRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(1e3*match[MILLISECOND]))*sign}):(match=isoRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}):null==duration?duration={}:"object"==typeof duration&&("from"in duration||"to"in duration)&&(diffRes=momentsDifference(createLocal(duration.from),createLocal(duration.to)),duration={},duration.ms=diffRes.milliseconds,duration.M=diffRes.months),ret=new Duration(duration),isDuration(input)&&hasOwnProp(input,"_locale")&&(ret._locale=input._locale),ret}function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={milliseconds:0,months:0};return res.months=other.month()-base.month()+12*(other.year()-base.year()),base.clone().add(res.months,"M").isAfter(other)&&--res.months,res.milliseconds=+other-+base.clone().add(res.months,"M"),res}function momentsDifference(base,other){var res;return base.isValid()&&other.isValid()?(other=cloneWithOffset(other,base),base.isBefore(other)?res=positiveMomentsDifference(base,other):(res=positiveMomentsDifference(other,base),res.milliseconds=-res.milliseconds,res.months=-res.months),res):{milliseconds:0,months:0}}function createAdder(direction,name){return function(val,period){var dur,tmp;return null===period||isNaN(+period)||(deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),tmp=val,val=period,period=tmp),val="string"==typeof val?+val:val,dur=createDuration(val,period),addSubtract(this,dur,direction),this}}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);mom.isValid()&&(updateOffset=null==updateOffset||updateOffset,milliseconds&&mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding),days&&set$1(mom,"Date",get(mom,"Date")+days*isAdding),months&&setMonth(mom,get(mom,"Month")+months*isAdding),updateOffset&&hooks.updateOffset(mom,days||months))}function getCalendarFormat(myMoment,now){var diff=myMoment.diff(now,"days",!0);return diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse"}function calendar$1(time,formats){var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf("day"),format=hooks.calendarFormat(this,sod)||"sameElse",output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))}function clone(){return new Moment(this)}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&(units=normalizeUnits(isUndefined(units)?"millisecond":units),"millisecond"===units?this.valueOf()>localInput.valueOf():localInput.valueOf()<this.clone().startOf(units).valueOf())}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&(units=normalizeUnits(isUndefined(units)?"millisecond":units),"millisecond"===units?this.valueOf()<localInput.valueOf():this.clone().endOf(units).valueOf()<localInput.valueOf())}function isBetween(from,to,units,inclusivity){return inclusivity=inclusivity||"()",("("===inclusivity[0]?this.isAfter(from,units):!this.isBefore(from,units))&&(")"===inclusivity[1]?this.isBefore(to,units):!this.isAfter(to,units))}function isSame(input,units){var inputMs,localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&(units=normalizeUnits(units||"millisecond"),"millisecond"===units?this.valueOf()===localInput.valueOf():(inputMs=localInput.valueOf(),this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()))}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)}function diff(input,units,asFloat){var that,zoneDelta,delta,output;return this.isValid()?(that=cloneWithOffset(input,this),that.isValid()?(zoneDelta=6e4*(that.utcOffset()-this.utcOffset()),units=normalizeUnits(units),"year"===units||"month"===units||"quarter"===units?(output=monthDiff(this,that),"quarter"===units?output/=3:"year"===units&&(output/=12)):(delta=this-that,output="second"===units?delta/1e3:"minute"===units?delta/6e4:"hour"===units?delta/36e5:"day"===units?(delta-zoneDelta)/864e5:"week"===units?(delta-zoneDelta)/6048e5:delta),asFloat?output:absFloor(output)):NaN):NaN}function monthDiff(a,b){var anchor2,adjust,wholeMonthDiff=12*(b.year()-a.year())+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months");return b-anchor<0?(anchor2=a.clone().add(wholeMonthDiff-1,"months"),adjust=(b-anchor)/(anchor-anchor2)):(anchor2=a.clone().add(wholeMonthDiff+1,"months"),adjust=(b-anchor)/(anchor2-anchor)),-(wholeMonthDiff+adjust)||0}function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(){if(!this.isValid())return null;var m=this.clone().utc();return m.year()<0||m.year()>9999?formatMoment(m,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):isFunction(Date.prototype.toISOString)?this.toDate().toISOString():formatMoment(m,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var func="moment",zone="";this.isLocal()||(func=0===this.utcOffset()?"moment.utc":"moment.parseZone",zone="Z");var prefix="["+func+'("]',year=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",suffix=zone+'[")]';return this.format(prefix+year+"-MM-DD[T]HH:mm:ss.SSS"+suffix)}function format(inputString){inputString||(inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var output=formatMoment(this,inputString);return this.localeData().postformat(output)}function from(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix)}function to(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix)}function locale(key){var newLocaleData;return void 0===key?this._locale._abbr:(newLocaleData=getLocale(key),null!=newLocaleData&&(this._locale=newLocaleData),this)}function localeData(){return this._locale}function startOf(units){switch(units=normalizeUnits(units)){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"===units&&this.weekday(0),"isoWeek"===units&&this.isoWeekday(1),"quarter"===units&&this.month(3*Math.floor(this.month()/3)),this}function endOf(units){return void 0===(units=normalizeUnits(units))||"millisecond"===units?this:("date"===units&&(units="day"),this.startOf(units).add(1,"isoWeek"===units?"week":units).subtract(1,"ms"))}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return null==input?weekOfYear(this,dow,doy).year:(weeksTarget=weeksInYear(input,dow,doy),week>weeksTarget&&(week=weeksTarget),setWeekAll.call(this,input,week,weekday,dow,doy))}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);return this.year(date.getUTCFullYear()),this.month(date.getUTCMonth()),this.date(date.getUTCDate()),this}function getSetQuarter(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)}function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?dayOfYear:this.add(input-dayOfYear,"d")}function parseMs(input,array){array[MILLISECOND]=toInt(1e3*("0."+input))}function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}function createUnix(input){return createLocal(1e3*input)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(string){return string}function get$1(format,index,field,setter){var locale=getLocale(),utc=createUTC().set(setter,index);return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)&&(index=format,format=void 0),format=format||"",null!=index)return get$1(format,index,field,"month");var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format,i,field,"month");return out}function listWeekdaysImpl(localeSorted,format,index,field){"boolean"==typeof localeSorted?(isNumber(format)&&(index=format,format=void 0),format=format||""):(format=localeSorted,index=format,localeSorted=!1,isNumber(format)&&(index=format,format=void 0),format=format||"");var locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(null!=index)return get$1(format,(index+shift)%7,field,"day");var i,out=[];for(i=0;i<7;i++)out[i]=get$1(format,(i+shift)%7,field,"day");return out}function listMonths(format,index){return listMonthsImpl(format,index,"months")}function listMonthsShort(format,index){return listMonthsImpl(format,index,"monthsShort")}function listWeekdays(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdays")}function listWeekdaysShort(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysShort")}function listWeekdaysMin(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysMin")}function abs(){var data=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this}function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);return duration._milliseconds+=direction*other._milliseconds,duration._days+=direction*other._days,duration._months+=direction*other._months,duration._bubble()}function add$1(input,value){return addSubtract$1(this,input,value,1)}function subtract$1(input,value){return addSubtract$1(this,input,value,-1)}function absCeil(number){return number<0?Math.floor(number):Math.ceil(number)}function bubble(){var seconds,minutes,hours,years,monthsFromDays,milliseconds=this._milliseconds,days=this._days,months=this._months,data=this._data;return milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0||(milliseconds+=864e5*absCeil(monthsToDays(months)+days),days=0,months=0),data.milliseconds=milliseconds%1e3,seconds=absFloor(milliseconds/1e3),data.seconds=seconds%60,minutes=absFloor(seconds/60),data.minutes=minutes%60,hours=absFloor(minutes/60),data.hours=hours%24,days+=absFloor(hours/24),monthsFromDays=absFloor(daysToMonths(days)),months+=monthsFromDays,days-=absCeil(monthsToDays(monthsFromDays)),years=absFloor(months/12),months%=12,data.days=days,data.months=months,data.years=years,this}function daysToMonths(days){return 4800*days/146097}function monthsToDays(months){return 146097*months/4800}function as(units){if(!this.isValid())return NaN;var days,months,milliseconds=this._milliseconds;if("month"===(units=normalizeUnits(units))||"year"===units)return days=this._days+milliseconds/864e5,months=this._months+daysToMonths(days),"month"===units?months:months/12;switch(days=this._days+Math.round(monthsToDays(this._months)),units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return 24*days+milliseconds/36e5;case"minute":return 1440*days+milliseconds/6e4;case"second":return 86400*days+milliseconds/1e3;case"millisecond":return Math.floor(864e5*days)+milliseconds;default:throw new Error("Unknown unit "+units)}}function valueOf$1(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN}function makeAs(alias){return function(){return this.as(alias)}}function get$2(units){return units=normalizeUnits(units),this.isValid()?this[units+"s"]():NaN}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}function weeks(){return absFloor(this.days()/7)}function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}function relativeTime$1(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs(),seconds=round(duration.as("s")),minutes=round(duration.as("m")),hours=round(duration.as("h")),days=round(duration.as("d")),months=round(duration.as("M")),years=round(duration.as("y")),a=seconds<=thresholds.ss&&["s",seconds]||seconds<thresholds.s&&["ss",seconds]||minutes<=1&&["m"]||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days]||months<=1&&["M"]||months<thresholds.M&&["MM",months]||years<=1&&["y"]||["yy",years];return a[2]=withoutSuffix,a[3]=+posNegDuration>0,a[4]=locale,substituteTimeAgo.apply(null,a)}function getSetRelativeTimeRounding(roundingFunction){return void 0===roundingFunction?round:"function"==typeof roundingFunction&&(round=roundingFunction,!0)}function getSetRelativeTimeThreshold(threshold,limit){return void 0!==thresholds[threshold]&&(void 0===limit?thresholds[threshold]:(thresholds[threshold]=limit,"s"===threshold&&(thresholds.ss=limit-1),!0))}function humanize(withSuffix){if(!this.isValid())return this.localeData().invalidDate();var locale=this.localeData(),output=relativeTime$1(this,!withSuffix,locale);return withSuffix&&(output=locale.pastFuture(+this,output)),locale.postformat(output)}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var minutes,hours,years,seconds=abs$1(this._milliseconds)/1e3,days=abs$1(this._days),months=abs$1(this._months);minutes=absFloor(seconds/60),hours=absFloor(minutes/60),seconds%=60,minutes%=60,years=absFloor(months/12),months%=12;var Y=years,M=months,D=days,h=hours,m=minutes,s=seconds,total=this.asSeconds();return total?(total<0?"-":"")+"P"+(Y?Y+"Y":"")+(M?M+"M":"")+(D?D+"D":"")+(h||m||s?"T":"")+(h?h+"H":"")+(m?m+"M":"")+(s?s+"S":""):"P0D"}var hookCallback,some;some=Array.prototype.some?Array.prototype.some:function(fun){for(var t=Object(this),len=t.length>>>0,i=0;i<len;i++)if(i in t&&fun.call(this,t[i],i,t))return!0;return!1};var some$1=some,momentProperties=hooks.momentProperties=[],updateInProgress=!1,deprecations={};hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null;var keys;keys=Object.keys?Object.keys:function(obj){var i,res=[];for(i in obj)hasOwnProp(obj,i)&&res.push(i);return res};var indexOf,keys$1=keys,defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},defaultDayOfMonthOrdinalParse=/\d{1,2}/,defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},aliases={},priorities={},formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={},match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,regexes={},tokens={},YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;indexOf=Array.prototype.indexOf?Array.prototype.indexOf:function(o){var i;for(i=0;i<this.length;++i)if(this[i]===o)return i;return-1};var indexOf$1=indexOf;addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(format){return this.localeData().monthsShort(this,format)}),addFormatToken("MMMM",0,0,function(format){return this.localeData().months(this,format)}),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(isStrict,locale){return locale.monthsShortRegex(isStrict)}),addRegexToken("MMMM",function(isStrict,locale){return locale.monthsRegex(isStrict)}),addParseToken(["M","MM"],function(input,array){array[MONTH]=toInt(input)-1}),addParseToken(["MMM","MMMM"],function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);null!=month?array[MONTH]=month:getParsingFlags(config).invalidMonth=input});var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;addFormatToken("Y",0,0,function(){var y=this.year();return y<=9999?""+y:"+"+y}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(input,array){array[YEAR]=2===input.length?hooks.parseTwoDigitYear(input):toInt(input)}),addParseToken("YY",function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input)}),addParseToken("Y",function(input,array){array[YEAR]=parseInt(input,10)}),hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(input,week,config,token){week[token.substr(0,1)]=toInt(input)});var defaultLocaleWeek={dow:0,doy:6};addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(format){return this.localeData().weekdaysMin(this,format)}),addFormatToken("ddd",0,0,function(format){return this.localeData().weekdaysShort(this,format)}),addFormatToken("dddd",0,0,function(format){return this.localeData().weekdays(this,format)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)}),addRegexToken("ddd",function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)}),addRegexToken("dddd",function(isStrict,locale){return locale.weekdaysRegex(isStrict)}),addWeekParseToken(["dd","ddd","dddd"],function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);null!=weekday?week.d=weekday:getParsingFlags(config).invalidWeekday=input}),addWeekParseToken(["d","e","E"],function(input,week,config,token){week[token]=toInt(input)});var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],function(input,array,config){var kInput=toInt(input);array[HOUR]=24===kInput?0:kInput}),addParseToken(["a","A"],function(input,array,config){config._isPm=config._locale.isPM(input),config._meridiem=input}),addParseToken(["h","hh"],function(input,array,config){array[HOUR]=toInt(input),getParsingFlags(config).bigHour=!0}),addParseToken("hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos)),getParsingFlags(config).bigHour=!0}),addParseToken("hmmss",function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2)),getParsingFlags(config).bigHour=!0}),addParseToken("Hmm",function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos))}),addParseToken("Hmmss",function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2))});var globalLocale,defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0),baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},extendedIsoRegex=/^\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)?)?$/,basicIsoRegex=/^\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)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["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}/]],isoTimes=[["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/]],aspNetJsonRegex=/^\/?Date\((\-?\d+)/i,basicRfcRegex=/^((?: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}))$/;hooks.createFromInputFallback=deprecate("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(config){config._d=new Date(config._i+(config._useUTC?" UTC":""))}),hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other<this?this:other:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other>this?this:other:createInvalid()}),now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(input,array,config){config._useUTC=!0,config._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\+\-]|\d\d)/gi;hooks.updateOffset=function(){};var aspNetRegex=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,isoRegex=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(key){return void 0===key?this.localeData():this.locale(key)});addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100}),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(input,week,config,token){week[token.substr(0,2)]=toInt(input)}),addWeekParseToken(["gg","GG"],function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)}),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",function(input,array){array[MONTH]=3*(toInt(input)-1)}),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(input,array){array[DATE]=toInt(input.match(match1to2)[0],10)});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],function(input,array,config){config._dayOfYear=toInt(input)}),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return 10*this.millisecond()}),addFormatToken(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),addFormatToken(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),addFormatToken(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),addFormatToken(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3);var token;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);var getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var proto=Moment.prototype;proto.add=add,proto.calendar=calendar$1,proto.clone=clone,proto.diff=diff,proto.endOf=endOf,proto.format=format,proto.from=from,proto.fromNow=fromNow,proto.to=to,proto.toNow=toNow,proto.get=stringGet,proto.invalidAt=invalidAt,proto.isAfter=isAfter,proto.isBefore=isBefore,proto.isBetween=isBetween,proto.isSame=isSame,proto.isSameOrAfter=isSameOrAfter,proto.isSameOrBefore=isSameOrBefore,proto.isValid=isValid$2,proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=parsingFlags,proto.set=stringSet,proto.startOf=startOf,proto.subtract=subtract,proto.toArray=toArray,proto.toObject=toObject,proto.toDate=toDate,proto.toISOString=toISOString,proto.inspect=inspect,proto.toJSON=toJSON,proto.toString=toString,proto.unix=unix,proto.valueOf=valueOf,proto.creationData=creationData,proto.year=getSetYear,proto.isLeapYear=getIsLeapYear,proto.weekYear=getSetWeekYear,proto.isoWeekYear=getSetISOWeekYear,proto.quarter=proto.quarters=getSetQuarter,proto.month=getSetMonth,proto.daysInMonth=getDaysInMonth,proto.week=proto.weeks=getSetWeek,proto.isoWeek=proto.isoWeeks=getSetISOWeek,proto.weeksInYear=getWeeksInYear,proto.isoWeeksInYear=getISOWeeksInYear,proto.date=getSetDayOfMonth,proto.day=proto.days=getSetDayOfWeek,proto.weekday=getSetLocaleDayOfWeek,proto.isoWeekday=getSetISODayOfWeek,proto.dayOfYear=getSetDayOfYear,proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=getSetOffset,proto.utc=setOffsetToUTC,proto.local=setOffsetToLocal,proto.parseZone=setOffsetToParsedOffset,proto.hasAlignedHourOffset=hasAlignedHourOffset,proto.isDST=isDaylightSavingTime,proto.isLocal=isLocal,proto.isUtcOffset=isUtcOffset,proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=getZoneAbbr,proto.zoneName=getZoneName,proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var proto$1=Locale.prototype;proto$1.calendar=calendar,proto$1.longDateFormat=longDateFormat,proto$1.invalidDate=invalidDate,proto$1.ordinal=ordinal,proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=relativeTime,proto$1.pastFuture=pastFuture,proto$1.set=set,proto$1.months=localeMonths,proto$1.monthsShort=localeMonthsShort,proto$1.monthsParse=localeMonthsParse,proto$1.monthsRegex=monthsRegex,proto$1.monthsShortRegex=monthsShortRegex,proto$1.week=localeWeek,proto$1.firstDayOfYear=localeFirstDayOfYear,proto$1.firstDayOfWeek=localeFirstDayOfWeek,proto$1.weekdays=localeWeekdays,proto$1.weekdaysMin=localeWeekdaysMin,proto$1.weekdaysShort=localeWeekdaysShort,proto$1.weekdaysParse=localeWeekdaysParse,proto$1.weekdaysRegex=weekdaysRegex,proto$1.weekdaysShortRegex=weekdaysShortRegex,proto$1.weekdaysMinRegex=weekdaysMinRegex,proto$1.isPM=localeIsPM,proto$1.meridiem=localeMeridiem,getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10;return number+(1===toInt(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs,asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asYears=makeAs("y"),milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years"),round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,M:11},abs$1=Math.abs,proto$2=Duration.prototype;return proto$2.isValid=isValid$1,proto$2.abs=abs,proto$2.add=add$1,proto$2.subtract=subtract$1,proto$2.as=as,proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asYears=asYears,proto$2.valueOf=valueOf$1,proto$2._bubble=bubble,proto$2.get=get$2,proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=weeks,proto$2.months=months,proto$2.years=years,proto$2.humanize=humanize,proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",matchTimestamp),addParseToken("X",function(input,array,config){config._d=new Date(1e3*parseFloat(input,10))}),addParseToken("x",function(input,array,config){config._d=new Date(toInt(input))}),hooks.version="2.18.1",function(callback){hookCallback=callback}(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks})}).call(exports,__webpack_require__(11)(module))},function(module,exports,__webpack_require__){(function(global,module,setImmediate,process){!function(global,factory){factory(exports)}(0,function(exports){"use strict";function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function overRest$1(func,start,transform){return start=nativeMax(void 0===start?func.length-1:start,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];index=-1;for(var otherArgs=Array(start+1);++index<start;)otherArgs[index]=args[index];return otherArgs[start]=transform(array),apply(func,this,otherArgs)}}function identity(value){return value}function rest(func,start){return overRest$1(func,start,identity)}function applyEach$1(eachfn){return rest(function(fns,args){var go=initialParams(function(args,callback){var that=this;return eachfn(fns,function(fn,cb){fn.apply(that,args.concat(cb))},callback)});return args.length?go.apply(this,args):go})}function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag$1]=tag:delete value[symToStringTag$1]),result}function objectToString(value){return nativeObjectToString$1.call(value)}function baseGetTag(value){return null==value?void 0===value?undefinedTag:nullTag:(value=Object(value),symToStringTag&&symToStringTag in value?getRawTag(value):objectToString(value))}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isFunction(value){if(!isObject(value))return!1;var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}function isLength(value){return"number"==typeof value&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function noop(){}function once(fn){return function(){if(null!==fn){var callFn=fn;fn=null,callFn.apply(this,arguments)}}}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function isObjectLike(value){return null!=value&&"object"==typeof value}function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}function stubFalse(){return!1}function isIndex(value,length){return!!(length=null==length?MAX_SAFE_INTEGER$1:length)&&("number"==typeof value||reIsUint.test(value))&&value>-1&&value%1==0&&value<length}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value)!inherited&&!hasOwnProperty$1.call(value,key)||skipIndexes&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||result.push(key);return result}function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto$5)}function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[];for(var key in Object(object))hasOwnProperty$3.call(object,key)&&"constructor"!=key&&result.push(key);return result}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function createArrayIterator(coll){var i=-1,len=coll.length;return function(){return++i<len?{value:coll[i],key:i}:null}}function createES2015Iterator(iterator){var i=-1;return function(){var item=iterator.next();return item.done?null:(i++,{value:item.value,key:i})}}function createObjectIterator(obj){var okeys=keys(obj),i=-1,len=okeys.length;return function(){var key=okeys[++i];return i<len?{value:obj[key],key:key}:null}}function iterator(coll){if(isArrayLike(coll))return createArrayIterator(coll);var iterator=getIterator(coll);return iterator?createES2015Iterator(iterator):createObjectIterator(coll)}function onlyOnce(fn){return function(){if(null===fn)throw new Error("Callback was already called.");var callFn=fn;fn=null,callFn.apply(this,arguments)}}function _eachOfLimit(limit){return function(obj,iteratee,callback){function iterateeCallback(err,value){if(running-=1,err)done=!0,callback(err);else{if(value===breakLoop||done&&running<=0)return done=!0,callback(null);replenish()}}function replenish(){for(;running<limit&&!done;){var elem=nextElem();if(null===elem)return done=!0,void(running<=0&&callback(null));running+=1,iteratee(elem.value,elem.key,onlyOnce(iterateeCallback))}}if(callback=once(callback||noop),limit<=0||!obj)return callback(null);var nextElem=iterator(obj),done=!1,running=0;replenish()}}function eachOfLimit(coll,limit,iteratee,callback){_eachOfLimit(limit)(coll,iteratee,callback)}function doLimit(fn,limit){return function(iterable,iteratee,callback){return fn(iterable,limit,iteratee,callback)}}function eachOfArrayLike(coll,iteratee,callback){function iteratorCallback(err){err?callback(err):++completed===length&&callback(null)}callback=once(callback||noop);var index=0,completed=0,length=coll.length;for(0===length&&callback(null);index<length;index++)iteratee(coll[index],index,onlyOnce(iteratorCallback))}function doParallel(fn){return function(obj,iteratee,callback){return fn(eachOf,obj,iteratee,callback)}}function _asyncMap(eachfn,arr,iteratee,callback){callback=callback||noop,arr=arr||[];var results=[],counter=0;eachfn(arr,function(value,_,callback){var index=counter++;iteratee(value,function(err,v){results[index]=v,callback(err)})},function(err){callback(err,results)})}function doParallelLimit(fn){return function(obj,limit,iteratee,callback){return fn(_eachOfLimit(limit),obj,iteratee,callback)}}function asyncify(func){return initialParams(function(args,callback){var result;try{result=func.apply(this,args)}catch(e){return callback(e)}isObject(result)&&"function"==typeof result.then?result.then(function(value){callback(null,value)},function(err){callback(err.message?err:new Error(err))}):callback(null,result)})}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseFindIndex(array,predicate,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?1:-1);fromRight?index--:++index<length;)if(predicate(array[index],index,array))return index;return-1}function baseIsNaN(value){return value!==value}function strictIndexOf(array,value,fromIndex){for(var index=fromIndex-1,length=array.length;++index<length;)if(array[index]===value)return index;return-1}function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex)}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&baseGetTag(value)==symbolTag}function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function baseSlice(array,start,end){var index=-1,length=array.length;start<0&&(start=-start>length?0:length+start),end=end>length?length:end,end<0&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);++index<length;)result[index]=array[index+start];return result}function castSlice(array,start,end){var length=array.length;return end=void 0===end?length:end,!start&&end>=length?array:baseSlice(array,start,end)}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&baseIndexOf(chrSymbols,strSymbols[index],0)>-1;);return index}function asciiToArray(string){return string.split("")}function hasUnicode(string){return reHasUnicode.test(string)}function unicodeToArray(string){return string.match(reUnicode)||[]}function stringToArray(string){return hasUnicode(string)?unicodeToArray(string):asciiToArray(string)}function toString(value){return null==value?"":baseToString(value)}function trim(string,chars,guard){if((string=toString(string))&&(guard||void 0===chars))return string.replace(reTrim,"");if(!string||!(chars=baseToString(chars)))return string;var strSymbols=stringToArray(string),chrSymbols=stringToArray(chars);return castSlice(strSymbols,charsStartIndex(strSymbols,chrSymbols),charsEndIndex(strSymbols,chrSymbols)+1).join("")}function parseParams(func){return func=func.toString().replace(STRIP_COMMENTS,""),func=func.match(FN_ARGS)[2].replace(" ",""),func=func?func.split(FN_ARG_SPLIT):[],func=func.map(function(arg){return trim(arg.replace(FN_ARG,""))})}function autoInject(tasks,callback){var newTasks={};baseForOwn(tasks,function(taskFn,key){function newTask(results,taskCb){var newArgs=arrayMap(params,function(name){return results[name]});newArgs.push(taskCb),taskFn.apply(null,newArgs)}var params;if(isArray(taskFn))params=taskFn.slice(0,-1),taskFn=taskFn[taskFn.length-1],newTasks[key]=params.concat(params.length>0?newTask:taskFn);else if(1===taskFn.length)newTasks[key]=taskFn;else{if(params=parseParams(taskFn),0===taskFn.length&&0===params.length)throw new Error("autoInject task functions require explicit parameters.");params.pop(),newTasks[key]=params.concat(newTask)}}),auto(newTasks,callback)}function fallback(fn){setTimeout(fn,0)}function wrap(defer){return rest(function(fn,args){defer(function(){fn.apply(null,args)})})}function DLL(){this.head=this.tail=null,this.length=0}function setInitial(dll,node){dll.length=1,dll.head=dll.tail=node}function queue(worker,concurrency,payload){function _insert(data,insertAtFront,callback){if(null!=callback&&"function"!=typeof callback)throw new Error("task callback must be a function");if(q.started=!0,isArray(data)||(data=[data]),0===data.length&&q.idle())return setImmediate$1(function(){q.drain()});for(var i=0,l=data.length;i<l;i++){var item={data:data[i],callback:callback||noop};insertAtFront?q._tasks.unshift(item):q._tasks.push(item)}setImmediate$1(q.process)}function _next(tasks){return rest(function(args){workers-=1;for(var i=0,l=tasks.length;i<l;i++){var task=tasks[i],index=baseIndexOf(workersList,task,0);index>=0&&workersList.splice(index),task.callback.apply(task,args),null!=args[0]&&q.error(args[0],task.data)}workers<=q.concurrency-q.buffer&&q.unsaturated(),q.idle()&&q.drain(),q.process()})}if(null==concurrency)concurrency=1;else if(0===concurrency)throw new Error("Concurrency must not be zero");var workers=0,workersList=[],q={_tasks:new DLL,concurrency:concurrency,payload:payload,saturated:noop,unsaturated:noop,buffer:concurrency/4,empty:noop,drain:noop,error:noop,started:!1,paused:!1,push:function(data,callback){_insert(data,!1,callback)},kill:function(){q.drain=noop,q._tasks.empty()},unshift:function(data,callback){_insert(data,!0,callback)},process:function(){for(;!q.paused&&workers<q.concurrency&&q._tasks.length;){var tasks=[],data=[],l=q._tasks.length;q.payload&&(l=Math.min(l,q.payload));for(var i=0;i<l;i++){var node=q._tasks.shift();tasks.push(node),data.push(node.data)}0===q._tasks.length&&q.empty(),workers+=1,workersList.push(tasks[0]),workers===q.concurrency&&q.saturated();var cb=onlyOnce(_next(tasks));worker(data,cb)}},length:function(){return q._tasks.length},running:function(){return workers},workersList:function(){return workersList},idle:function(){return q._tasks.length+workers===0},pause:function(){q.paused=!0},resume:function(){if(!1!==q.paused){q.paused=!1;for(var resumeCount=Math.min(q.concurrency,q._tasks.length),w=1;w<=resumeCount;w++)setImmediate$1(q.process)}}};return q}function cargo(worker,payload){return queue(worker,1,payload)}function reduce(coll,memo,iteratee,callback){callback=once(callback||noop),eachOfSeries(coll,function(x,i,callback){iteratee(memo,x,function(err,v){memo=v,callback(err)})},function(err){callback(err,memo)})}function concat$1(eachfn,arr,fn,callback){var result=[];eachfn(arr,function(x,index,cb){fn(x,function(err,y){result=result.concat(y||[]),cb(err)})},function(err){callback(err,result)})}function _createTester(eachfn,check,getResult){return function(arr,limit,iteratee,cb){function done(){cb&&cb(null,getResult(!1))}function wrappedIteratee(x,_,callback){if(!cb)return callback();iteratee(x,function(err,v){cb&&(err||check(v))?(err?cb(err):cb(err,getResult(!0,x)),cb=iteratee=!1,callback(err,breakLoop)):callback()})}arguments.length>3?(cb=cb||noop,eachfn(arr,limit,wrappedIteratee,done)):(cb=iteratee,cb=cb||noop,iteratee=limit,eachfn(arr,wrappedIteratee,done))}}function _findGetResult(v,x){return x}function consoleFunc(name){return rest(function(fn,args){fn.apply(null,args.concat(rest(function(err,args){"object"==typeof console&&(err?console.error&&console.error(err):console[name]&&arrayEach(args,function(x){console[name](x)}))})))})}function doDuring(fn,test,callback){function check(err,truth){return err?callback(err):truth?void fn(next):callback(null)}callback=onlyOnce(callback||noop);var next=rest(function(err,args){if(err)return callback(err);args.push(check),test.apply(this,args)});check(null,!0)}function doWhilst(iteratee,test,callback){callback=onlyOnce(callback||noop);var next=rest(function(err,args){return err?callback(err):test.apply(this,args)?iteratee(next):void callback.apply(null,[null].concat(args))});iteratee(next)}function doUntil(fn,test,callback){doWhilst(fn,function(){return!test.apply(this,arguments)},callback)}function during(test,fn,callback){function next(err){if(err)return callback(err);test(check)}function check(err,truth){return err?callback(err):truth?void fn(next):callback(null)}callback=onlyOnce(callback||noop),test(check)}function _withoutIndex(iteratee){return function(value,index,callback){return iteratee(value,callback)}}function eachLimit(coll,iteratee,callback){eachOf(coll,_withoutIndex(iteratee),callback)}function eachLimit$1(coll,limit,iteratee,callback){_eachOfLimit(limit)(coll,_withoutIndex(iteratee),callback)}function ensureAsync(fn){return initialParams(function(args,callback){var sync=!0;args.push(function(){var innerArgs=arguments;sync?setImmediate$1(function(){callback.apply(null,innerArgs)}):callback.apply(null,innerArgs)}),fn.apply(this,args),sync=!1})}function notId(v){return!v}function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function filterArray(eachfn,arr,iteratee,callback){var truthValues=new Array(arr.length);eachfn(arr,function(x,index,callback){iteratee(x,function(err,v){truthValues[index]=!!v,callback(err)})},function(err){if(err)return callback(err);for(var results=[],i=0;i<arr.length;i++)truthValues[i]&&results.push(arr[i]);callback(null,results)})}function filterGeneric(eachfn,coll,iteratee,callback){var results=[];eachfn(coll,function(x,index,callback){iteratee(x,function(err,v){err?callback(err):(v&&results.push({index:index,value:x}),callback())})},function(err){err?callback(err):callback(null,arrayMap(results.sort(function(a,b){return a.index-b.index}),baseProperty("value")))})}function _filter(eachfn,coll,iteratee,callback){(isArrayLike(coll)?filterArray:filterGeneric)(eachfn,coll,iteratee,callback||noop)}function forever(fn,errback){function next(err){if(err)return done(err);task(next)}var done=onlyOnce(errback||noop),task=ensureAsync(fn);next()}function mapValuesLimit(obj,limit,iteratee,callback){callback=once(callback||noop);var newObj={};eachOfLimit(obj,limit,function(val,key,next){iteratee(val,key,function(err,result){if(err)return next(err);newObj[key]=result,next()})},function(err){callback(err,newObj)})}function has(obj,key){return key in obj}function memoize(fn,hasher){var memo=Object.create(null),queues=Object.create(null);hasher=hasher||identity;var memoized=initialParams(function(args,callback){var key=hasher.apply(null,args);has(memo,key)?setImmediate$1(function(){callback.apply(null,memo[key])}):has(queues,key)?queues[key].push(callback):(queues[key]=[callback],fn.apply(null,args.concat(rest(function(args){memo[key]=args;var q=queues[key];delete queues[key];for(var i=0,l=q.length;i<l;i++)q[i].apply(null,args)}))))});return memoized.memo=memo,memoized.unmemoized=fn,memoized}function _parallel(eachfn,tasks,callback){callback=callback||noop;var results=isArrayLike(tasks)?[]:{};eachfn(tasks,function(task,key,callback){task(rest(function(err,args){args.length<=1&&(args=args[0]),results[key]=args,callback(err)}))},function(err){callback(err,results)})}function parallelLimit(tasks,callback){_parallel(eachOf,tasks,callback)}function parallelLimit$1(tasks,limit,callback){_parallel(_eachOfLimit(limit),tasks,callback)}function race(tasks,callback){if(callback=once(callback||noop),!isArray(tasks))return callback(new TypeError("First argument to race must be an array of functions"));if(!tasks.length)return callback();for(var i=0,l=tasks.length;i<l;i++)tasks[i](callback)}function reduceRight(array,memo,iteratee,callback){reduce(slice.call(array).reverse(),memo,iteratee,callback)}function reflect(fn){return initialParams(function(args,reflectCallback){return args.push(rest(function(err,cbArgs){if(err)reflectCallback(null,{error:err});else{var value=null;1===cbArgs.length?value=cbArgs[0]:cbArgs.length>1&&(value=cbArgs),reflectCallback(null,{value:value})}})),fn.apply(this,args)})}function reject$1(eachfn,arr,iteratee,callback){_filter(eachfn,arr,function(value,cb){iteratee(value,function(err,v){cb(err,!v)})},callback)}function reflectAll(tasks){var results;return isArray(tasks)?results=arrayMap(tasks,reflect):(results={},baseForOwn(tasks,function(task,key){results[key]=reflect.call(this,task)})),results}function constant$1(value){return function(){return value}}function retry(opts,task,callback){function retryAttempt(){task(function(err){err&&attempt++<options.times&&("function"!=typeof options.errorFilter||options.errorFilter(err))?setTimeout(retryAttempt,options.intervalFunc(attempt)):callback.apply(null,arguments)})}var DEFAULT_TIMES=5,DEFAULT_INTERVAL=0,options={times:DEFAULT_TIMES,intervalFunc:constant$1(DEFAULT_INTERVAL)};if(arguments.length<3&&"function"==typeof opts?(callback=task||noop,task=opts):(!function(acc,t){if("object"==typeof t)acc.times=+t.times||DEFAULT_TIMES,acc.intervalFunc="function"==typeof t.interval?t.interval:constant$1(+t.interval||DEFAULT_INTERVAL),acc.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");acc.times=+t||DEFAULT_TIMES}}(options,opts),callback=callback||noop),"function"!=typeof task)throw new Error("Invalid arguments for async.retry");var attempt=1;retryAttempt()}function series(tasks,callback){_parallel(eachOfSeries,tasks,callback)}function sortBy(coll,iteratee,callback){function comparator(left,right){var a=left.criteria,b=right.criteria;return a<b?-1:a>b?1:0}map(coll,function(x,callback){iteratee(x,function(err,criteria){if(err)return callback(err);callback(null,{value:x,criteria:criteria})})},function(err,results){if(err)return callback(err);callback(null,arrayMap(results.sort(comparator),baseProperty("value")))})}function timeout(asyncFn,milliseconds,info){function injectedCallback(){timedOut||(originalCallback.apply(null,arguments),clearTimeout(timer))}function timeoutCallback(){var name=asyncFn.name||"anonymous",error=new Error('Callback function "'+name+'" timed out.');error.code="ETIMEDOUT",info&&(error.info=info),timedOut=!0,originalCallback(error)}var originalCallback,timer,timedOut=!1;return initialParams(function(args,origCallback){originalCallback=origCallback,timer=setTimeout(timeoutCallback,milliseconds),asyncFn.apply(null,args.concat(injectedCallback))})}function baseRange(start,end,step,fromRight){for(var index=-1,length=nativeMax$1(nativeCeil((end-start)/(step||1)),0),result=Array(length);length--;)result[fromRight?length:++index]=start,start+=step;return result}function timeLimit(count,limit,iteratee,callback){mapLimit(baseRange(0,count,1),limit,iteratee,callback)}function transform(coll,accumulator,iteratee,callback){3===arguments.length&&(callback=iteratee,iteratee=accumulator,accumulator=isArray(coll)?[]:{}),callback=once(callback||noop),eachOf(coll,function(v,k,cb){iteratee(accumulator,v,k,cb)},function(err){callback(err,accumulator)})}function unmemoize(fn){return function(){return(fn.unmemoized||fn).apply(null,arguments)}}function whilst(test,iteratee,callback){if(callback=onlyOnce(callback||noop),!test())return callback(null);var next=rest(function(err,args){return err?callback(err):test()?iteratee(next):void callback.apply(null,[null].concat(args))});iteratee(next)}function until(test,fn,callback){whilst(function(){return!test.apply(this,arguments)},fn,callback)}var nativeMax=Math.max,initialParams=function(fn){return rest(function(args){var callback=args.pop();fn.call(this,args,callback)})},freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]",MAX_SAFE_INTEGER=9007199254740991,iteratorSymbol="function"==typeof Symbol&&Symbol.iterator,getIterator=function(coll){return iteratorSymbol&&coll[iteratorSymbol]&&coll[iteratorSymbol]()},argsTag="[object Arguments]",objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty$2.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,freeExports="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer=moduleExports?root.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0,typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var _defer,freeExports$1="object"==typeof exports&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=function(){try{return freeProcess&&freeProcess.binding("util")}catch(e){}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?function(func){return function(value){return func(value)}}(nodeIsTypedArray):baseIsTypedArray,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty,objectProto$5=Object.prototype,nativeKeys=function(func,transform){return function(arg){return func(transform(arg))}}(Object.keys,Object),objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,breakLoop={},eachOfGeneric=doLimit(eachOfLimit,1/0),eachOf=function(coll,iteratee,callback){(isArrayLike(coll)?eachOfArrayLike:eachOfGeneric)(coll,iteratee,callback)},map=doParallel(_asyncMap),applyEach=applyEach$1(map),mapLimit=doParallelLimit(_asyncMap),mapSeries=doLimit(mapLimit,1),applyEachSeries=applyEach$1(mapSeries),apply$2=rest(function(fn,args){return rest(function(callArgs){return fn.apply(null,args.concat(callArgs))})}),baseFor=function(fromRight){return function(object,iteratee,keysFunc){for(var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;length--;){var key=props[fromRight?length:++index];if(!1===iteratee(iterable[key],key,iterable))break}return object}}(),auto=function(tasks,concurrency,callback){function enqueueTask(key,task){readyTasks.push(function(){runTask(key,task)})}function processQueue(){if(0===readyTasks.length&&0===runningTasks)return callback(null,results);for(;readyTasks.length&&runningTasks<concurrency;){readyTasks.shift()()}}function addListener(taskName,fn){var taskListeners=listeners[taskName];taskListeners||(taskListeners=listeners[taskName]=[]),taskListeners.push(fn)}function taskComplete(taskName){arrayEach(listeners[taskName]||[],function(fn){fn()}),processQueue()}function runTask(key,task){if(!hasError){var taskCallback=onlyOnce(rest(function(err,args){if(runningTasks--,args.length<=1&&(args=args[0]),err){var safeResults={};baseForOwn(results,function(val,rkey){safeResults[rkey]=val}),safeResults[key]=args,hasError=!0,listeners=[],callback(err,safeResults)}else results[key]=args,taskComplete(key)}));runningTasks++;var taskFn=task[task.length-1];task.length>1?taskFn(results,taskCallback):taskFn(taskCallback)}}function getDependents(taskName){var result=[];return baseForOwn(tasks,function(task,key){isArray(task)&&baseIndexOf(task,taskName,0)>=0&&result.push(key)}),result}"function"==typeof concurrency&&(callback=concurrency,concurrency=null),callback=once(callback||noop);var keys$$1=keys(tasks),numTasks=keys$$1.length;if(!numTasks)return callback(null);concurrency||(concurrency=numTasks);var results={},runningTasks=0,hasError=!1,listeners={},readyTasks=[],readyToCheck=[],uncheckedDependencies={};baseForOwn(tasks,function(task,key){if(!isArray(task))return enqueueTask(key,[task]),void readyToCheck.push(key);var dependencies=task.slice(0,task.length-1),remainingDependencies=dependencies.length;if(0===remainingDependencies)return enqueueTask(key,task),void readyToCheck.push(key);uncheckedDependencies[key]=remainingDependencies,arrayEach(dependencies,function(dependencyName){if(!tasks[dependencyName])throw new Error("async.auto task `"+key+"` has a non-existent dependency in "+dependencies.join(", "));addListener(dependencyName,function(){0===--remainingDependencies&&enqueueTask(key,task)})})}),function(){for(var currentTask,counter=0;readyToCheck.length;)currentTask=readyToCheck.pop(),counter++,arrayEach(getDependents(currentTask),function(dependent){0==--uncheckedDependencies[dependent]&&readyToCheck.push(dependent)});if(counter!==numTasks)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),processQueue()},symbolTag="[object Symbol]",INFINITY=1/0,symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),rsCombo="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",reOptMod="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",rsOptJoin="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rsRegional,rsSurrPair].join("|")+")[\\ufe0e\\ufe0f]?"+reOptMod+")*",rsSeq="[\\ufe0e\\ufe0f]?"+reOptMod+rsOptJoin,rsSymbol="(?:"+["[^\\ud800-\\udfff]"+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,"[\\ud800-\\udfff]"].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g"),reTrim=/^\s+|\s+$/g,FN_ARGS=/^(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,FN_ARG_SPLIT=/,/,FN_ARG=/(=.+)?(\s*)$/,STRIP_COMMENTS=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,hasSetImmediate="function"==typeof setImmediate&&setImmediate,hasNextTick="object"==typeof process&&"function"==typeof process.nextTick;_defer=hasSetImmediate?setImmediate:hasNextTick?process.nextTick:fallback;var setImmediate$1=wrap(_defer);DLL.prototype.removeLink=function(node){return node.prev?node.prev.next=node.next:this.head=node.next,node.next?node.next.prev=node.prev:this.tail=node.prev,node.prev=node.next=null,this.length-=1,node},DLL.prototype.empty=DLL,DLL.prototype.insertAfter=function(node,newNode){newNode.prev=node,newNode.next=node.next,node.next?node.next.prev=newNode:this.tail=newNode,node.next=newNode,this.length+=1},DLL.prototype.insertBefore=function(node,newNode){newNode.prev=node.prev,newNode.next=node,node.prev?node.prev.next=newNode:this.head=newNode,node.prev=newNode,this.length+=1},DLL.prototype.unshift=function(node){this.head?this.insertBefore(this.head,node):setInitial(this,node)},DLL.prototype.push=function(node){this.tail?this.insertAfter(this.tail,node):setInitial(this,node)},DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)},DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};var _defer$1,eachOfSeries=doLimit(eachOfLimit,1),seq$1=rest(function(functions){return rest(function(args){var that=this,cb=args[args.length-1];"function"==typeof cb?args.pop():cb=noop,reduce(functions,args,function(newargs,fn,cb){fn.apply(that,newargs.concat(rest(function(err,nextargs){cb(err,nextargs)})))},function(err,results){cb.apply(that,[err].concat(results))})})}),compose=rest(function(args){return seq$1.apply(null,args.reverse())}),concat=doParallel(concat$1),concatSeries=function(fn){return function(obj,iteratee,callback){return fn(eachOfSeries,obj,iteratee,callback)}}(concat$1),constant=rest(function(values){var args=[null].concat(values);return initialParams(function(ignoredArgs,callback){return callback.apply(this,args)})}),detect=_createTester(eachOf,identity,_findGetResult),detectLimit=_createTester(eachOfLimit,identity,_findGetResult),detectSeries=_createTester(eachOfSeries,identity,_findGetResult),dir=consoleFunc("dir"),eachSeries=doLimit(eachLimit$1,1),every=_createTester(eachOf,notId,notId),everyLimit=_createTester(eachOfLimit,notId,notId),everySeries=doLimit(everyLimit,1),filter=doParallel(_filter),filterLimit=doParallelLimit(_filter),filterSeries=doLimit(filterLimit,1),log=consoleFunc("log"),mapValues=doLimit(mapValuesLimit,1/0),mapValuesSeries=doLimit(mapValuesLimit,1);_defer$1=hasNextTick?process.nextTick:hasSetImmediate?setImmediate:fallback;var nextTick=wrap(_defer$1),queue$1=function(worker,concurrency){return queue(function(items,cb){worker(items[0],cb)},concurrency,1)},priorityQueue=function(worker,concurrency){var q=queue$1(worker,concurrency);return q.push=function(data,priority,callback){if(null==callback&&(callback=noop),"function"!=typeof callback)throw new Error("task callback must be a function");if(q.started=!0,isArray(data)||(data=[data]),0===data.length)return setImmediate$1(function(){q.drain()});priority=priority||0;for(var nextNode=q._tasks.head;nextNode&&priority>=nextNode.priority;)nextNode=nextNode.next;for(var i=0,l=data.length;i<l;i++){var item={data:data[i],priority:priority,callback:callback};nextNode?q._tasks.insertBefore(nextNode,item):q._tasks.push(item)}setImmediate$1(q.process)},delete q.unshift,q},slice=Array.prototype.slice,reject=doParallel(reject$1),rejectLimit=doParallelLimit(reject$1),rejectSeries=doLimit(rejectLimit,1),retryable=function(opts,task){return task||(task=opts,opts=null),initialParams(function(args,callback){function taskFn(cb){task.apply(null,args.concat(cb))}opts?retry(opts,taskFn,callback):retry(taskFn,callback)})},some=_createTester(eachOf,Boolean,identity),someLimit=_createTester(eachOfLimit,Boolean,identity),someSeries=doLimit(someLimit,1),nativeCeil=Math.ceil,nativeMax$1=Math.max,times=doLimit(timeLimit,1/0),timesSeries=doLimit(timeLimit,1),waterfall=function(tasks,callback){function nextTask(args){if(taskIndex===tasks.length)return callback.apply(null,[null].concat(args));var taskCallback=onlyOnce(rest(function(err,args){if(err)return callback.apply(null,[err].concat(args));nextTask(args)}));args.push(taskCallback),tasks[taskIndex++].apply(null,args)}if(callback=once(callback||noop),!isArray(tasks))return callback(new Error("First argument to waterfall must be an array of functions"));if(!tasks.length)return callback();var taskIndex=0;nextTask([])},index={applyEach:applyEach,applyEachSeries:applyEachSeries,apply:apply$2,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:concat,concatSeries:concatSeries,constant:constant,detect:detect,detectLimit:detectLimit,detectSeries:detectSeries,dir:dir,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:eachOfSeries,eachSeries:eachSeries,ensureAsync:ensureAsync,every:every,everyLimit:everyLimit,everySeries:everySeries,filter:filter,filterLimit:filterLimit,filterSeries:filterSeries,forever:forever,log:log,map:map,mapLimit:mapLimit,mapSeries:mapSeries,mapValues:mapValues,mapValuesLimit:mapValuesLimit,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:nextTick,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:reject,rejectLimit:rejectLimit,rejectSeries:rejectSeries,retry:retry,retryable:retryable,seq:seq$1,series:series,setImmediate:setImmediate$1,some:some,someLimit:someLimit,someSeries:someSeries,sortBy:sortBy,timeout:timeout,times:times,timesLimit:timeLimit,timesSeries:timesSeries,transform:transform,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:every,any:some,forEach:eachLimit,forEachSeries:eachSeries,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:eachOfSeries,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:filter,selectLimit:filterLimit,selectSeries:filterSeries,wrapSync:asyncify};exports.default=index,exports.applyEach=applyEach,exports.applyEachSeries=applyEachSeries,exports.apply=apply$2,exports.asyncify=asyncify,exports.auto=auto,exports.autoInject=autoInject,exports.cargo=cargo,exports.compose=compose,exports.concat=concat,exports.concatSeries=concatSeries,exports.constant=constant,exports.detect=detect,exports.detectLimit=detectLimit,exports.detectSeries=detectSeries,exports.dir=dir,exports.doDuring=doDuring,exports.doUntil=doUntil,exports.doWhilst=doWhilst,exports.during=during,exports.each=eachLimit,exports.eachLimit=eachLimit$1,exports.eachOf=eachOf,exports.eachOfLimit=eachOfLimit,exports.eachOfSeries=eachOfSeries,exports.eachSeries=eachSeries,exports.ensureAsync=ensureAsync,exports.every=every,exports.everyLimit=everyLimit,exports.everySeries=everySeries,exports.filter=filter,exports.filterLimit=filterLimit,exports.filterSeries=filterSeries,exports.forever=forever,exports.log=log,exports.map=map,exports.mapLimit=mapLimit,exports.mapSeries=mapSeries,exports.mapValues=mapValues,exports.mapValuesLimit=mapValuesLimit,exports.mapValuesSeries=mapValuesSeries,exports.memoize=memoize,exports.nextTick=nextTick,exports.parallel=parallelLimit,exports.parallelLimit=parallelLimit$1,exports.priorityQueue=priorityQueue,exports.queue=queue$1,exports.race=race,exports.reduce=reduce,exports.reduceRight=reduceRight,exports.reflect=reflect,exports.reflectAll=reflectAll,exports.reject=reject,exports.rejectLimit=rejectLimit,exports.rejectSeries=rejectSeries,exports.retry=retry,exports.retryable=retryable,exports.seq=seq$1,exports.series=series,exports.setImmediate=setImmediate$1,exports.some=some,exports.someLimit=someLimit,exports.someSeries=someSeries,exports.sortBy=sortBy,exports.timeout=timeout,exports.times=times,exports.timesLimit=timeLimit,exports.timesSeries=timesSeries,exports.transform=transform,exports.unmemoize=unmemoize,exports.until=until,exports.waterfall=waterfall,exports.whilst=whilst,exports.all=every,exports.allLimit=everyLimit,exports.allSeries=everySeries,exports.any=some,exports.anyLimit=someLimit,exports.anySeries=someSeries,exports.find=detect,exports.findLimit=detectLimit,exports.findSeries=detectSeries,exports.forEach=eachLimit,exports.forEachSeries=eachSeries,exports.forEachLimit=eachLimit$1,exports.forEachOf=eachOf,exports.forEachOfSeries=eachOfSeries,exports.forEachOfLimit=eachOfLimit,exports.inject=reduce,exports.foldl=reduce,exports.foldr=reduceRight,exports.select=filter,exports.selectLimit=filterLimit,exports.selectSeries=filterSeries,exports.wrapSync=asyncify,Object.defineProperty(exports,"__esModule",{value:!0})})}).call(exports,__webpack_require__(6),__webpack_require__(11)(module),__webpack_require__(10),__webpack_require__(29))},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
   * Snackbar v0.1.3
   * http://polonel.com/Snackbar
   *
   * Copyright 2016 Chris Brame and other contributors
   * Released under the MIT license
   * https://github.com/polonel/Snackbar/blob/master/LICENSE
   */
  !function(root,factory){"use strict";__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return root.Snackbar=factory()}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(this,function(){var Snackbar={};Snackbar.current=null;var $defaults={text:"Default Text",textColor:"#ffffff",width:"auto",showAction:!0,actionText:"Dismiss",actionTextColor:"#4caf50",backgroundColor:"#323232",pos:"bottom-left",duration:5e3,customClass:"",onActionClick:function(element){element.style.opacity=0}};Snackbar.show=function($options){var options=extend(!0,$defaults,$options);Snackbar.current&&(Snackbar.current.style.opacity=0,setTimeout(function(){var $parent=this.parentElement;$parent&&$parent.removeChild(this)}.bind(Snackbar.current),500)),Snackbar.snackbar=document.createElement("div"),Snackbar.snackbar.className="snackbar-container "+options.customClass,Snackbar.snackbar.style.width=options.width;var $p=document.createElement("p");if($p.style.margin=0,$p.style.padding=0,$p.style.color=options.textColor,$p.style.fontSize="14px",$p.style.fontWeight=300,$p.style.lineHeight="1em",$p.innerHTML=options.text,Snackbar.snackbar.appendChild($p),Snackbar.snackbar.style.background=options.backgroundColor,options.showAction){var actionButton=document.createElement("button");actionButton.className="action",actionButton.innerHTML=options.actionText,actionButton.style.color=options.actionTextColor,actionButton.addEventListener("click",function(){options.onActionClick(Snackbar.snackbar)}),Snackbar.snackbar.appendChild(actionButton)}setTimeout(function(){Snackbar.current===this&&(Snackbar.current.style.opacity=0)}.bind(Snackbar.snackbar),options.duration),Snackbar.snackbar.addEventListener("transitionend",function(event,elapsed){"opacity"==event.propertyName&&"0"==this.style.opacity&&(this.parentElement.removeChild(this),Snackbar.current===this&&(Snackbar.current=null))}.bind(Snackbar.snackbar)),Snackbar.current=Snackbar.snackbar,document.body.style.overflow="hidden","top-left"!==options.pos&&"top-center"!==options.pos&&"top"!==options.pos&&"top-right"!==options.pos||(Snackbar.snackbar.style.top="-100px"),document.body.appendChild(Snackbar.snackbar);getComputedStyle(Snackbar.snackbar).bottom,getComputedStyle(Snackbar.snackbar).top;Snackbar.snackbar.style.opacity=1,Snackbar.snackbar.className="snackbar-container "+options.customClass+" snackbar-pos "+options.pos,"top-left"===options.pos||"top-right"===options.pos?Snackbar.snackbar.style.top=0:"top-center"===options.pos||"top"===options.pos?Snackbar.snackbar.style.top="25px":"bottom-center"!==options.pos&&"bottom"!==options.pos||(Snackbar.snackbar.style.bottom="-25px"),setTimeout(function(){document.body.style.overflow="auto"},500)},Snackbar.close=function(){Snackbar.current&&(Snackbar.current.style.opacity=0)};var extend=function(){var extended={},deep=!1,i=0,length=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(deep=arguments[0],i++);for(;i<length;i++){var obj=arguments[i];!function(obj){for(var prop in obj)Object.prototype.hasOwnProperty.call(obj,prop)&&(deep&&"[object Object]"===Object.prototype.toString.call(obj[prop])?extended[prop]=extend(!0,extended[prop],obj[prop]):extended[prop]=obj[prop])}(obj)}return extended};return Snackbar})},function(module,exports,__webpack_require__){(function(jQuery){/**!
   * easyPieChart
   * Lightweight plugin to render simple, animated and retina optimized pie charts
   *
   * @license
   * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de)
   * @version 2.1.5
   **/
  !function(a,b){module.exports=b(__webpack_require__(1))}(0,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((b.rotate/180-.5)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6==0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}};if(void 0!==b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&void 0!==c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&void 0!==jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?jQuery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}})}).call(exports,__webpack_require__(1))},,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
   Scroller 1.2.2
   Â©2011-2014 SpryMedia Ltd - datatables.net/license
   */
  !function(m,n,k){var l=function(e){var g=function(a,b){!this instanceof g?alert("Scroller warning: Scroller must be initialised with the 'new' keyword."):(void 0===b&&(b={}),this.s={dt:a,tableTop:0,tableBottom:0,redrawTop:0,redrawBottom:0,autoHeight:!0,viewportRows:0,stateTO:null,drawTO:null,heights:{jump:null,page:null,virtual:null,scroll:null,row:null,viewport:null},topRowFloat:0,scrollDrawDiff:null,loaderVisible:!1},this.s=e.extend(this.s,g.oDefaults,b),this.s.heights.row=this.s.rowHeight,this.dom={force:n.createElement("div"),scroller:null,table:null,loader:null},this.s.dt.oScroller=this,this._fnConstruct())};if(g.prototype={fnRowToPixels:function(a,b,c){return a=c?this._domain("virtualToPhysical",a*this.s.heights.row):this.s.baseScrollTop+(a-this.s.baseRowTop)*this.s.heights.row,b||b===k?parseInt(a,10):a},fnPixelsToRow:function(a,b,c){var d=a-this.s.baseScrollTop,a=c?this._domain("physicalToVirtual",a)/this.s.heights.row:d/this.s.heights.row+this.s.baseRowTop;return b||b===k?parseInt(a,10):a},fnScrollToRow:function(a,b){var c=this,d=!1,f=this.fnRowToPixels(a),h=a-(this.s.displayBuffer-1)/2*this.s.viewportRows;0>h&&(h=0),(f>this.s.redrawBottom||f<this.s.redrawTop)&&this.s.dt._iDisplayStart!==h&&(d=!0,f=this.fnRowToPixels(a,!1,!0)),void 0===b||b?(this.s.ani=d,e(this.dom.scroller).animate({scrollTop:f},function(){setTimeout(function(){c.s.ani=!1},25)})):e(this.dom.scroller).scrollTop(f)},fnMeasure:function(a){this.s.autoHeight&&this._fnCalcRowHeight();var b=this.s.heights;b.viewport=e(this.dom.scroller).height(),this.s.viewportRows=parseInt(b.viewport/b.row,10)+1,this.s.dt._iDisplayLength=this.s.viewportRows*this.s.displayBuffer,(a===k||a)&&this.s.dt.oInstance.fnDraw()},_fnConstruct:function(){var a=this;if(this.s.dt.oFeatures.bPaginate){this.dom.force.style.position="absolute",this.dom.force.style.top="0px",this.dom.force.style.left="0px",this.dom.force.style.width="1px",this.dom.scroller=e("div."+this.s.dt.oClasses.sScrollBody,this.s.dt.nTableWrapper)[0],this.dom.scroller.appendChild(this.dom.force),this.dom.scroller.style.position="relative",this.dom.table=e(">table",this.dom.scroller)[0],this.dom.table.style.position="absolute",this.dom.table.style.top="0px",this.dom.table.style.left="0px",e(this.s.dt.nTableWrapper).addClass("DTS"),this.s.loadingIndicator&&(this.dom.loader=e('<div class="DTS_Loading">'+this.s.dt.oLanguage.sLoadingRecords+"</div>").css("display","none"),e(this.dom.scroller.parentNode).css("position","relative").append(this.dom.loader)),this.s.heights.row&&"auto"!=this.s.heights.row&&(this.s.autoHeight=!1),this.fnMeasure(!1),this.s.ingnoreScroll=!0,this.s.stateSaveThrottle=this.s.dt.oApi._fnThrottle(function(){a.s.dt.oApi._fnSaveState(a.s.dt)},500),e(this.dom.scroller).on("scroll.DTS",function(){a._fnScroll.call(a)}),e(this.dom.scroller).on("touchstart.DTS",function(){a._fnScroll.call(a)}),this.s.dt.aoDrawCallback.push({fn:function(){a.s.dt.bInitialised&&a._fnDrawCallback.call(a)},sName:"Scroller"}),e(m).on("resize.DTS",function(){a.fnMeasure(!1),a._fnInfo()});var b=!0;this.s.dt.oApi._fnCallbackReg(this.s.dt,"aoStateSaveParams",function(c,d){b&&a.s.dt.oLoadedState?(d.iScroller=a.s.dt.oLoadedState.iScroller,d.iScrollerTopRow=a.s.dt.oLoadedState.iScrollerTopRow,b=!1):(d.iScroller=a.dom.scroller.scrollTop,d.iScrollerTopRow=a.s.topRowFloat)},"Scroller_State"),this.s.dt.oLoadedState&&(this.s.topRowFloat=this.s.dt.oLoadedState.iScrollerTopRow||0),this.s.dt.aoDestroyCallback.push({sName:"Scroller",fn:function(){e(m).off("resize.DTS"),e(a.dom.scroller).off("touchstart.DTS scroll.DTS"),e(a.s.dt.nTableWrapper).removeClass("DTS"),e("div.DTS_Loading",a.dom.scroller.parentNode).remove(),a.dom.table.style.position="",a.dom.table.style.top="",a.dom.table.style.left=""}})}else this.s.dt.oApi._fnLog(this.s.dt,0,"Pagination must be enabled for Scroller")},_fnScroll:function(){var d,a=this,b=this.s.heights,c=this.dom.scroller.scrollTop;if(!this.s.skip&&!this.s.ingnoreScroll)if(this.s.dt.bFiltered||this.s.dt.bSorted)this.s.lastScrollTop=0;else{if(this._fnInfo(),clearTimeout(this.s.stateTO),this.s.stateTO=setTimeout(function(){a.s.dt.oApi._fnSaveState(a.s.dt)},250),c<this.s.redrawTop||c>this.s.redrawBottom){var f=Math.ceil((this.s.displayBuffer-1)/2*this.s.viewportRows);Math.abs(c-this.s.lastScrollTop)>b.viewport||this.s.ani?(d=parseInt(this._domain("physicalToVirtual",c)/b.row,10)-f,this.s.topRowFloat=this._domain("physicalToVirtual",c)/b.row):(d=this.fnPixelsToRow(c)-f,this.s.topRowFloat=this.fnPixelsToRow(c,!1)),0>=d?d=0:d+this.s.dt._iDisplayLength>this.s.dt.fnRecordsDisplay()?0>(d=this.s.dt.fnRecordsDisplay()-this.s.dt._iDisplayLength)&&(d=0):0!=d%2&&d++,d!=this.s.dt._iDisplayStart&&(this.s.tableTop=e(this.s.dt.nTable).offset().top,this.s.tableBottom=e(this.s.dt.nTable).height()+this.s.tableTop,b=function(){null===a.s.scrollDrawReq&&(a.s.scrollDrawReq=c),a.s.dt._iDisplayStart=d,a.s.dt.oApi._fnCalculateEnd&&a.s.dt.oApi._fnCalculateEnd(a.s.dt),a.s.dt.oApi._fnDraw(a.s.dt)},this.s.dt.oFeatures.bServerSide?(clearTimeout(this.s.drawTO),this.s.drawTO=setTimeout(b,this.s.serverWait)):b(),this.dom.loader&&!this.s.loaderVisible)&&(this.dom.loader.css("display","block"),this.s.loaderVisible=!0)}this.s.lastScrollTop=c,this.s.stateSaveThrottle()}},_domain:function(a,b){var d,c=this.s.heights;if(c.virtual===c.scroll){if(d=(c.virtual-c.viewport)/(c.scroll-c.viewport),"virtualToPhysical"===a)return b/d;if("physicalToVirtual"===a)return b*d}var e=(c.scroll-c.viewport)/2,h=(c.virtual-c.viewport)/2;return d=h/(e*e),"virtualToPhysical"===a?b<h?Math.pow(b/d,.5):(b=2*h-b,0>b?c.scroll:2*e-Math.pow(b/d,.5)):"physicalToVirtual"===a?b<e?b*b*d:(b=2*e-b,0>b?c.virtual:2*h-b*b*d):void 0},_fnDrawCallback:function(){var a=this,b=this.s.heights,c=this.dom.scroller.scrollTop,d=e(this.s.dt.nTable).height(),f=this.s.dt._iDisplayStart,h=this.s.dt._iDisplayLength,g=this.s.dt.fnRecordsDisplay();this.s.skip=!0,this._fnScrollForce(),c=0===f?this.s.topRowFloat*b.row:f+h>=g?b.scroll-(g-this.s.topRowFloat)*b.row:this._domain("virtualToPhysical",this.s.topRowFloat*b.row),this.dom.scroller.scrollTop=c,this.s.baseScrollTop=c,this.s.baseRowTop=this.s.topRowFloat;var j=c-(this.s.topRowFloat-f)*b.row;0===f?j=0:f+h>=g&&(j=b.scroll-d),this.dom.table.style.top=j+"px",this.s.tableTop=j,this.s.tableBottom=d+this.s.tableTop,d=(c-this.s.tableTop)*this.s.boundaryScale,this.s.redrawTop=c-d,this.s.redrawBottom=c+d,this.s.skip=!1,this.s.dt.oFeatures.bStateSave&&null!==this.s.dt.oLoadedState&&void 0!==this.s.dt.oLoadedState.iScroller?((c=!(!this.s.dt.sAjaxSource&&!a.s.dt.ajax||this.s.dt.oFeatures.bServerSide))&&2==this.s.dt.iDraw||!c&&1==this.s.dt.iDraw)&&setTimeout(function(){e(a.dom.scroller).scrollTop(a.s.dt.oLoadedState.iScroller),a.s.redrawTop=a.s.dt.oLoadedState.iScroller-b.viewport/2,setTimeout(function(){a.s.ingnoreScroll=!1},0)},0):a.s.ingnoreScroll=!1,setTimeout(function(){a._fnInfo.call(a)},0),this.dom.loader&&this.s.loaderVisible&&(this.dom.loader.css("display","none"),this.s.loaderVisible=!1)},_fnScrollForce:function(){var a=this.s.heights;a.virtual=a.row*this.s.dt.fnRecordsDisplay(),a.scroll=a.virtual,1e6<a.scroll&&(a.scroll=1e6),this.dom.force.style.height=a.scroll+"px"},_fnCalcRowHeight:function(){var a=this.s.dt,b=a.nTable,c=b.cloneNode(!1),d=e("<tbody/>").appendTo(c),f=e('<div class="'+a.oClasses.sWrapper+' DTS"><div class="'+a.oClasses.sScrollWrapper+'"><div class="'+a.oClasses.sScrollBody+'"></div></div></div>');for(e("tbody tr:lt(4)",b).clone().appendTo(d);3>e("tr",d).length;)d.append("<tr><td>&nbsp;</td></tr>");e("div."+a.oClasses.sScrollBody,f).append(c),a._bInitComplete?a=b.parentNode:(this.s.dt.nHolding||(this.s.dt.nHolding=e("<div></div>").insertBefore(this.s.dt.nTable)),a=this.s.dt.nHolding),f.appendTo(a),this.s.heights.row=e("tr",d).eq(1).outerHeight(),f.remove()},_fnInfo:function(){if(this.s.dt.oFeatures.bInfo){var a=this.s.dt,b=a.oLanguage,c=this.dom.scroller.scrollTop,d=Math.floor(this.fnPixelsToRow(c,!1,this.s.ani)+1),f=a.fnRecordsTotal(),h=a.fnRecordsDisplay(),c=Math.ceil(this.fnPixelsToRow(c+this.s.heights.viewport,!1,this.s.ani)),c=h<c?h:c,g=a.fnFormatNumber(d),j=a.fnFormatNumber(c),i=a.fnFormatNumber(f),k=a.fnFormatNumber(h),g=0===a.fnRecordsDisplay()&&a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfoEmpty+b.sInfoPostFix:0===a.fnRecordsDisplay()?b.sInfoEmpty+" "+b.sInfoFiltered.replace("_MAX_",i)+b.sInfoPostFix:a.fnRecordsDisplay()==a.fnRecordsTotal()?b.sInfo.replace("_START_",g).replace("_END_",j).replace("_MAX_",i).replace("_TOTAL_",k)+b.sInfoPostFix:b.sInfo.replace("_START_",g).replace("_END_",j).replace("_MAX_",i).replace("_TOTAL_",k)+" "+b.sInfoFiltered.replace("_MAX_",a.fnFormatNumber(a.fnRecordsTotal()))+b.sInfoPostFix;if((b=b.fnInfoCallback)&&(g=b.call(a.oInstance,a,d,c,f,h,g)),void 0!==(a=a.aanFeatures.i))for(d=0,f=a.length;d<f;d++)e(a[d]).html(g)}}},g.defaults={trace:!1,rowHeight:"auto",serverWait:200,displayBuffer:9,boundaryScale:.5,loadingIndicator:!1},g.oDefaults=g.defaults,g.version="1.2.2","function"==typeof e.fn.dataTable&&"function"==typeof e.fn.dataTableExt.fnVersionCheck&&e.fn.dataTableExt.fnVersionCheck("1.9.0")?e.fn.dataTableExt.aoFeatures.push({fnInit:function(a){var b=a.oInit;return new g(a,b.scroller||b.oScroller||{}).dom.wrapper},cFeature:"S",sFeature:"Scroller"}):alert("Warning: Scroller requires DataTables 1.9.0 or greater - www.datatables.net/download"),e.fn.dataTable.Scroller=g,e.fn.DataTable.Scroller=g,e.fn.dataTable.Api){var i=e.fn.dataTable.Api;i.register("scroller()",function(){return this}),i.register("scroller().rowToPixels()",function(a,b,c){var d=this.context;if(d.length&&d[0].oScroller)return d[0].oScroller.fnRowToPixels(a,b,c)}),i.register("scroller().pixelsToRow()",function(a,b,c){var d=this.context;if(d.length&&d[0].oScroller)return d[0].oScroller.fnPixelsToRow(a,b,c)}),i.register("scroller().scrollToRow()",function(a,b){return this.iterator("table",function(c){c.oScroller&&c.oScroller.fnScrollToRow(a,b)}),this}),i.register("scroller().measure()",function(a){return this.iterator("table",function(b){b.oScroller&&b.oScroller.fnMeasure(a)}),this})}return g};__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1),__webpack_require__(3)],__WEBPACK_AMD_DEFINE_FACTORY__=l,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window,document)},,,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(t,a){__WEBPACK_AMD_DEFINE_FACTORY__=a,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(0,function(t,a,e){return function(t,a,e,n,i,r){for(var o=0,s=["webkit","moz","ms","o"],m=0;m<s.length&&!window.requestAnimationFrame;++m)window.requestAnimationFrame=window[s[m]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[s[m]+"CancelAnimationFrame"]||window[s[m]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,a){var e=(new Date).getTime(),n=Math.max(0,16-(e-o)),i=window.setTimeout(function(){t(e+n)},n);return o=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)}),this.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",postFormatter:null};for(var u in r)r.hasOwnProperty(u)&&(this.options[u]=r[u]);""===this.options.separator&&(this.options.useGrouping=!1),this.options.prefix||(this.options.prefix=""),this.options.suffix||(this.options.suffix=""),this.d="string"==typeof t?document.getElementById(t):t,this.startVal=Number(a),this.endVal=Number(e),this.countDown=this.startVal>this.endVal,this.frameVal=this.startVal,this.decimals=Math.max(0,n||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*Number(i)||2e3;var l=this;this.version=function(){return"1.6.1"},this.printValue=function(t){var a=isNaN(t)?"--":l.formatNumber(t);"INPUT"==l.d.tagName?this.d.value=a:"text"==l.d.tagName||"tspan"==l.d.tagName?this.d.textContent=a:this.d.innerHTML=a},this.easeOutExpo=function(t,a,e,n){return e*(1-Math.pow(2,-10*t/n))*1024/1023+a},this.count=function(t){l.startTime||(l.startTime=t),l.timestamp=t;var a=t-l.startTime;l.remaining=l.duration-a,l.options.useEasing?l.countDown?l.frameVal=l.startVal-l.easeOutExpo(a,0,l.startVal-l.endVal,l.duration):l.frameVal=l.easeOutExpo(a,l.startVal,l.endVal-l.startVal,l.duration):l.countDown?l.frameVal=l.startVal-(l.startVal-l.endVal)*(a/l.duration):l.frameVal=l.startVal+(l.endVal-l.startVal)*(a/l.duration),l.countDown?l.frameVal=l.frameVal<l.endVal?l.endVal:l.frameVal:l.frameVal=l.frameVal>l.endVal?l.endVal:l.frameVal,l.frameVal=Math.floor(l.frameVal*l.dec)/l.dec,l.printValue(l.frameVal),a<l.duration?l.rAF=requestAnimationFrame(l.count):l.callback&&l.callback()},this.start=function(t){return l.callback=t,l.rAF=requestAnimationFrame(l.count),!1},this.pauseResume=function(){l.paused?(l.paused=!1,delete l.startTime,l.duration=l.remaining,l.startVal=l.frameVal,requestAnimationFrame(l.count)):(l.paused=!0,cancelAnimationFrame(l.rAF))},this.reset=function(){l.paused=!1,delete l.startTime,l.startVal=a,cancelAnimationFrame(l.rAF),l.printValue(l.startVal)},this.update=function(t){cancelAnimationFrame(l.rAF),l.paused=!1,delete l.startTime,l.startVal=l.frameVal,l.endVal=Number(t),l.countDown=l.startVal>l.endVal,l.rAF=requestAnimationFrame(l.count)},this.formatNumber=function(t){t=t.toFixed(l.decimals),t+="";var a,e,n,i;if(a=t.split("."),e=a[0],n=a.length>1?l.options.decimal+a[1]:"",i=/(\d+)(\d{3})/,l.options.useGrouping)for(;i.test(e);)e=e.replace(i,"$1"+l.options.separator+"$2");var r=l.options.prefix+e+n+l.options.suffix;return null!=l.options.postFormatter&&(r=l.options.postFormatter(r)),r},l.printValue(l.startVal)}})},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(t,e){__WEBPACK_AMD_DEFINE_FACTORY__=e,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(0,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var r=void 0;try{r=getComputedStyle(n)}catch(s){}if(void 0===r||null===r)return i.push(n),i;var a=r,f=a.overflow,l=a.overflowX;/(auto|scroll)/.test(f+a.overflowY+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),r=P();return i.top-=r.top,i.left-=r.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function f(t){return t.offsetParent||document.documentElement}function l(){if(M)return M;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return M={width:n,height:n}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}function p(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var o=c(t)+" "+e;g(t,o)}}function u(t,e){if(void 0!==t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return o.forEach(function(e){var o=e.top,i=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}function C(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,o=a(e),i=o,n=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}G.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(n["border"+t+"Width"]):e[o]-=parseFloat(n["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),x=void 0;void 0===x&&(x={modules:[]});var A=null,T=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=A;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),h(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");return void 0===S[e]&&(S[e]=n(t),k(function(){delete S[e]})),S[e]},M=null,W=[],k=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},B=function(){function t(){i(this,t)}return E(t,[{key:"on",value:function(t,e,o){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:i})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,i=Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,f=r.once,l=a;void 0===l&&(l=this),s.apply(l,i),f?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:n,getScrollParents:r,getBounds:a,getOffsetParent:f,extend:h,addClass:p,removeClass:d,hasClass:u,updateClasses:m,defer:k,flush:_,uniqueId:T,Evented:B,getScrollBarSize:l,removeUtilElements:s};var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),j=function(t,e,o){for(var i=!0;i;){var n=t,r=e,s=o;i=!1,null===n&&(n=Function.prototype);var a=Object.getOwnPropertyDescriptor(n,r);if(void 0!==a){if("value"in a)return a.value;var f=a.get;if(void 0===f)return;return f.call(s)}var l=Object.getPrototypeOf(n);if(null===l)return;t=l,e=r,o=s,i=!0,a=l=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var Y=x.Utils,r=Y.getScrollParents,a=Y.getBounds,f=Y.getOffsetParent,h=Y.extend,p=Y.addClass,d=Y.removeClass,m=Y.updateClasses,k=Y.defer,_=Y.flush,l=Y.getScrollBarSize,s=Y.removeUtilElements,L=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var i=e[o];if(void 0!==t.style[i])return i}}(),D=[],X=function(){D.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,i=function n(){return void 0!==e&&e>16?(e=Math.min(e-16,250),void(o=setTimeout(n,250))):void(void 0!==t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),X(),e=b()-t))};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var F={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=F[e.left]),"auto"===i&&(i=H[e.top]),{left:o,top:i}},V=function(t){var e=t.left,o=t.top;return void 0!==N[t.left]&&(e=N[t.left]),void 0!==N[t.top]&&(o=N[t.top]),{left:e,top:o}},R=function(t){var e=t.split(" "),o=z(e,2);return{top:o[0],left:o[1]}},q=R,I=function(t){function e(t){var o=this;i(this,e),j(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),D.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=h(i,t);var n=this.options,s=n.element,a=n.target,f=n.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),p(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&p(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=R(this.options.offset),this.targetOffset=R(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(o)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var i=getComputedStyle(o),n=o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;n&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},f=0;s<408&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),D.forEach(function(e,o){e===t&&D.splice(o,1)}),0===D.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),k(function(){void 0!==o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),!1!==o.options.addTargetClasses&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return a(t.element)}),n=i.width,r=i.height;if(0===n&&0===r&&void 0!==this.lastSize){var s=this.lastSize;n=s.width,r=s.height}else this.lastSize={width:n,height:r};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=h,p=C(V(this.attachment),{width:n,height:r}),u=C(V(o),d),c=C(this.offset,{width:n,height:r}),g=C(this.targetOffset,d);p=w(p,c),u=w(u,g);for(var m=h.left+u.left-p.left,v=h.top+u.top-p.top,y=0;y<x.modules.length;++y){var b=x.modules[y],O=b.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:h,elementPos:i,offset:p,targetOffset:u,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===O)return!1;void 0!==O&&"object"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-n+innerWidth}},A=this.target.ownerDocument,T=A.defaultView,S=void 0;return T.innerHeight>A.documentElement.clientHeight&&(S=this.cache("scrollbar-size",l),E.viewport.bottom-=S.height),T.innerWidth>A.documentElement.clientWidth&&(S=this.cache("scrollbar-size",l),E.viewport.right-=S.width),-1!==["","static"].indexOf(A.body.style.position)&&-1!==["","static"].indexOf(A.body.parentElement.style.position)||(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-n),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return f(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),n=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=A.body.scrollWidth-o.left-n.width+r.right,o.bottom=A.body.scrollHeight-o.top-n.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if(void 0!==a[i]&&!y(a[i][n],t[i][n])){r=!0;break}}r||(o[i][n]=!0)}}var l={top:"",left:"",right:"",bottom:""},d=function(t,o){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var r=void 0,s=void 0;t.top?(l.top=0,r=o.top):(l.bottom=0,r=-o.bottom),t.left?(l.left=0,s=o.left):(l.right=0,s=-o.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(s=Math.round(s),r=Math.round(r))),l[L]="translateX("+s+"px) translateY("+r+"px)","msTransform"!==L&&(l[L]+=" translateZ(0)")}else t.top?l.top=o.top+"px":l.bottom=o.bottom+"px",t.left?l.left=o.left+"px":l.right=o.right+"px"},p=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(l.position="absolute",d(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(l.position="fixed",d(o.viewport,t.viewport)):void 0!==o.offset&&o.offset.top&&o.offset.left?function(){l.position="absolute";var i=e.cache("target-offsetparent",function(){return f(e.target)});f(e.element)!==i&&k(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),d(o.offset,t.offset),p=!0}():(l.position="absolute",d({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var u=!0,c=this.element.parentNode;c&&1===c.nodeType&&"BODY"!==c.tagName;){if("static"!==getComputedStyle(c).position){u=!1;break}c=c.parentNode}u||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var n in l){var v=l[n];this.element.style[n]!==v&&(m=!0,g[n]=v)}m&&k(function(){h(e.element.style,g),e.trigger("repositioned")})}}}]),e}(B);I.modules=[],x.position=X;var $=h(I,x),z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Y=x.Utils,a=Y.getBounds,h=Y.extend,m=Y.updateClasses,k=Y.defer,G=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,f=r.width;if(0===f&&0===s&&void 0!==this.lastSize){var l=this.lastSize;f=l.width,s=l.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),p=d.height,u=d.width,c=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){["left","top","right","bottom"].forEach(function(e){c.push(t+"-"+e)})});var g=[],v=h({},n),y=h({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,l=t.pin;void 0===a&&(a="");var h=void 0,d=void 0;if(a.indexOf(" ")>=0){var c=a.split(" "),m=z(c,2);d=m[0],h=m[1]}else h=d=a;var b=O(e,r);"target"!==d&&"both"!==d||(o<b[1]&&"top"===v.top&&(o+=p,v.top="bottom"),o+s>b[3]&&"bottom"===v.top&&(o-=p,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&o<b[1]?(o+=p,v.top="bottom",o+=s,y.top="top"):"top"===y.top&&o+s>b[3]&&o-(s-p)>=b[1]&&(o-=s-p,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&o+s>b[3]?(o-=p,v.top="top",o-=s,y.top="bottom"):"bottom"===y.top&&o<b[1]&&o+(2*s-p)<=b[3]&&(o+=s-p,v.top="top",y.top="top")),"middle"===v.top&&(o+s>b[3]&&"top"===y.top?(o-=s,y.top="bottom"):o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"))),"target"!==h&&"both"!==h||(i<b[0]&&"left"===v.left&&(i+=u,v.left="right"),i+f>b[2]&&"right"===v.left&&(i-=u,v.left="left")),"together"===h&&(i<b[0]&&"left"===v.left?"right"===y.left?(i+=u,v.left="right",i+=f,y.left="left"):"left"===y.left&&(i+=u,v.left="right",i-=f,y.left="right"):i+f>b[2]&&"right"===v.left?"left"===y.left?(i-=u,v.left="left",i-=f,y.left="right"):"right"===y.left&&(i-=u,v.left="left",i+=f,y.left="left"):"center"===v.left&&(i+f>b[2]&&"left"===y.left?(i-=f,y.left="right"):i<b[0]&&"right"===y.left&&(i+=f,y.left="left"))),"element"!==d&&"both"!==d||(o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"),o+s>b[3]&&"top"===y.top&&(o-=s,y.top="bottom")),"element"!==h&&"both"!==h||(i<b[0]&&("right"===y.left?(i+=f,y.left="left"):"center"===y.left&&(i+=f/2,y.left="left")),i+f>b[2]&&("left"===y.left?(i-=f,y.left="right"):"center"===y.left&&(i-=f/2,y.left="right"))),"string"==typeof l?l=l.split(",").map(function(t){return t.trim()}):!0===l&&(l=["top","left","right","bottom"]),l=l||[];var w=[],C=[];o<b[1]&&(l.indexOf("top")>=0?(o=b[1],w.push("top")):C.push("top")),o+s>b[3]&&(l.indexOf("bottom")>=0?(o=b[3]-s,w.push("bottom")):C.push("bottom")),i<b[0]&&(l.indexOf("left")>=0?(i=b[0],w.push("left")):C.push("left")),i+f>b[2]&&(l.indexOf("right")>=0?(i=b[2]-f,w.push("right")):C.push("right")),w.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===n.top&&v.left===n.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),k(function(){!1!==e.options.addTargetClasses&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:i}}});var Y=x.Utils,a=Y.getBounds,m=Y.updateClasses,k=Y.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return a(e.element)}),r=n.height,s=n.width,f=this.getTargetBounds(),l=o+r,h=i+s,d=[];o<=f.bottom&&l>=f.top&&["left","right"].forEach(function(t){var e=f[t];e!==i&&e!==h||d.push(t)}),i<=f.right&&h>=f.left&&["top","bottom"].forEach(function(t){var e=f[t];e!==o&&e!==l||d.push(t)});var p=[],u=[],c=["left","top","right","bottom"];return p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&u.push(this.getClass("abutted")),d.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),k(function(){!1!==e.options.addTargetClasses&&m(e.target,u,p),m(e.element,u,p)}),!0}});var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=z(s,2);n=a[0],r=a[1],n=parseFloat(n,10),r=parseFloat(r,10)}else n=i.top,r=i.left;return e+=n,o+=r,{top:e,left:o}}}}),$})},function(module,exports,__webpack_require__){(function(jQuery){!function(k,w,h,v){var d=k.fn.peity=function(a,b){return y&&this.each(function(){var e=k(this),c=e.data("_peity");c?(a&&(c.type=a),k.extend(c.opts,b)):(c=new x(e,a,k.extend({},d.defaults[a],e.data("peity"),b)),e.change(function(){c.draw()}).data("_peity",c)),c.draw()}),this},x=function(a,b,e){this.$el=a,this.type=b,this.opts=e},o=x.prototype,q=o.svgElement=function(a,b){return k(w.createElementNS("http://www.w3.org/2000/svg",a)).attr(b)},y="createElementNS"in w&&q("svg",{})[0].createSVGRect;o.draw=function(){var a=this.opts;d.graphers[this.type].call(this,a),a.after&&a.after.call(this,a)},o.fill=function(){var a=this.opts.fill;return k.isFunction(a)?a:function(b,e){return a[e%a.length]}},o.prepare=function(a,b){return this.$svg||this.$el.hide().after(this.$svg=q("svg",{class:"peity"})),this.$svg.empty().data("peity",this).attr({height:b,width:a})},o.values=function(){return k.map(this.$el.text().split(this.opts.delimiter),function(a){return parseFloat(a)})},d.defaults={},d.graphers={},d.register=function(a,b,e){this.defaults[a]=b,this.graphers[a]=e},d.register("pie",{fill:["#ff9900","#fff4dd","#ffc66e"],radius:8},function(a){if(!a.delimiter){var b=this.$el.text().match(/[^0-9\.]/);a.delimiter=b?b[0]:","}if(b=k.map(this.values(),function(a){return 0<a?a:0}),"/"==a.delimiter)var e=b[0],b=[e,h.max(0,b[1]-e)];for(var c=0,e=b.length,t=0;c<e;c++)t+=b[c];t||(e=2,t=1,b=[0,1]);var l=2*a.radius,l=this.prepare(a.width||l,a.height||l),c=l.width(),f=l.height(),j=c/2,d=f/2,f=h.min(j,d),a=a.innerRadius;"donut"==this.type&&!a&&(a=.5*f);for(var r=h.PI,s=this.fill(),g=this.scale=function(a,b){var c=a/t*r*2-r/2;return[b*h.cos(c)+j,b*h.sin(c)+d]},m=0,c=0;c<e;c++){var u=b[c],i=u/t;if(0!=i){if(1==i)if(a)var i=j-.01,p=d-f,n=d-a,i=q("path",{d:["M",j,p,"A",f,f,0,1,1,i,p,"L",i,n,"A",a,a,0,1,0,j,n].join(" ")});else i=q("circle",{cx:j,cy:d,r:f});else p=m+u,n=["M"].concat(g(m,f),"A",f,f,0,.5<i?1:0,1,g(p,f),"L"),a?n=n.concat(g(p,a),"A",a,a,0,.5<i?1:0,0,g(m,a)):n.push(j,d),m+=u,i=q("path",{d:n.join(" ")});i.attr("fill",s.call(this,u,c,b)),l.append(i)}}}),d.register("donut",k.extend(!0,{},d.defaults.pie),function(a){d.graphers.pie.call(this,a)}),d.register("line",{delimiter:",",fill:"#c6d9fd",height:16,min:0,stroke:"#4d89f9",strokeWidth:1,width:32},function(a){var b=this.values();1==b.length&&b.push(b[0]);for(var e=h.max.apply(h,a.max==v?b:b.concat(a.max)),c=h.min.apply(h,a.min==v?b:b.concat(a.min)),d=this.prepare(a.width,a.height),l=a.strokeWidth,f=d.width(),j=d.height()-l,k=e-c,e=this.x=function(a){return a*(f/(b.length-1))},r=this.y=function(a){var b=j;return k&&(b-=(a-c)/k*j),b+l/2},s=r(h.max(c,0)),g=[0,s],m=0;m<b.length;m++)g.push(e(m),r(b[m]));g.push(f,s),a.fill&&d.append(q("polygon",{fill:a.fill,points:g.join(" ")})),l&&d.append(q("polyline",{fill:"none",points:g.slice(2,g.length-2).join(" "),stroke:a.stroke,"stroke-width":l,"stroke-linecap":"square"}))}),d.register("bar",{delimiter:",",fill:["#4D89F9"],height:16,min:0,padding:.1,width:32},function(a){for(var b=this.values(),e=h.max.apply(h,a.max==v?b:b.concat(a.max)),c=h.min.apply(h,a.min==v?b:b.concat(a.min)),d=this.prepare(a.width,a.height),l=d.width(),f=d.height(),j=e-c,a=a.padding,k=this.fill(),r=this.x=function(a){return a*l/b.length},s=this.y=function(a){return f-(j?(a-c)/j*f:1)},g=0;g<b.length;g++){var o,m=r(g+a),u=r(g+1-a)-m,i=b[g],p=s(i),n=p;j?0>i?n=s(h.min(e,0)):p=s(h.max(c,0)):o=1,o=p-n,0==o&&(o=1,0<e&&j&&n--),d.append(q("rect",{fill:k.call(this,i,g,b),x:m,y:n,width:u,height:o}))}})}(jQuery,document,Math)}).call(exports,__webpack_require__(1))},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(root,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1)],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(a0){return factory(a0)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(0,function(jQuery){/** File generated by Grunt -- do not modify
       *  JQUERY-FORM-VALIDATOR
       *
       *  @version 2.3.26
       *  @website http://formvalidator.net/
       *  @author Victor Jonsson, http://victorjonsson.se
       *  @license MIT
       */
  !function($,undefined){"use strict";function addSupportForCustomErrorMessageCallback(config){config&&"custom"===config.errorMessagePosition&&"function"==typeof config.errorMessageCustom&&($.formUtils.warn("Use of deprecated function errorMessageCustom, use config.submitErrorMessageCallback instead"),config.submitErrorMessageCallback=function($form,errorMessages){config.errorMessageCustom($form,config.language.errorTitle,errorMessages,config)})}function addSupportForElementReferenceInPositionParam(config){if(config.errorMessagePosition&&"object"==typeof config.errorMessagePosition){$.formUtils.warn("Deprecated use of config parameter errorMessagePosition, use config.submitErrorMessageCallback instead");var $errorMessageContainer=config.errorMessagePosition;config.errorMessagePosition="top",config.submitErrorMessageCallback=function(){return $errorMessageContainer}}}function addSupportForValidationDependingOnCheckedInput($form){var $inputsDependingOnCheckedInputs=$form.find("[data-validation-if-checked]");$inputsDependingOnCheckedInputs.length&&$.formUtils.warn('Detected use of attribute "data-validation-if-checked" which is deprecated. Use "data-validation-depends-on" provided by module "logic"'),$inputsDependingOnCheckedInputs.on("beforeValidation",function(){var $elem=$(this),nameOfDependingInput=$elem.valAttr("if-checked"),$dependingInput=$('input[name="'+nameOfDependingInput+'"]',$form),dependingInputIsChecked=$dependingInput.is(":checked"),valueOfDependingInput=($.formUtils.getValue($dependingInput)||"").toString(),requiredValueOfDependingInput=$elem.valAttr("if-checked-value");(!dependingInputIsChecked||requiredValueOfDependingInput&&requiredValueOfDependingInput!==valueOfDependingInput)&&$elem.valAttr("skipped",!0)})}$.fn.validateForm=function(language,conf){return $.formUtils.warn("Use of deprecated function $.validateForm, use $.isValid instead"),this.isValid(language,conf,!0)},$(window).on("validatorsLoaded formValidationSetup",function(evt,$form,config){$form||($form=$("form")),addSupportForCustomErrorMessageCallback(config),addSupportForElementReferenceInPositionParam(config),addSupportForValidationDependingOnCheckedInput($form)})}(jQuery),function($){"use strict";var dialogs={resolveErrorMessage:function($elem,validator,validatorName,conf,language){var errorMsgAttr=conf.validationErrorMsgAttribute+"-"+validatorName.replace("validate_",""),validationErrorMsg=$elem.attr(errorMsgAttr);return validationErrorMsg||(validationErrorMsg=$elem.attr(conf.validationErrorMsgAttribute))||(validationErrorMsg="function"!=typeof validator.errorMessageKey?language[validator.errorMessageKey]:language[validator.errorMessageKey(conf)])||(validationErrorMsg=validator.errorMessage),validationErrorMsg},getParentContainer:function($elem){if($elem.valAttr("error-msg-container"))return $($elem.valAttr("error-msg-container"));var $parent=$elem.parent();if(!$parent.hasClass("form-group")&&!$parent.closest("form").hasClass("form-horizontal")){var $formGroup=$parent.closest(".form-group");if($formGroup.length)return $formGroup.eq(0)}return $parent},applyInputErrorStyling:function($input,conf){$input.addClass(conf.errorElementClass).removeClass("valid"),this.getParentContainer($input).addClass(conf.inputParentClassOnError).removeClass(conf.inputParentClassOnSuccess),""!==conf.borderColorOnError&&$input.css("border-color",conf.borderColorOnError)},applyInputSuccessStyling:function($input,conf){$input.addClass("valid"),this.getParentContainer($input).addClass(conf.inputParentClassOnSuccess)},removeInputStylingAndMessage:function($input,conf){$input.removeClass("valid").removeClass(conf.errorElementClass).css("border-color","");var $parentContainer=dialogs.getParentContainer($input);if($parentContainer.removeClass(conf.inputParentClassOnError).removeClass(conf.inputParentClassOnSuccess),"function"==typeof conf.inlineErrorMessageCallback){var $errorMessage=conf.inlineErrorMessageCallback($input,!1,conf);$errorMessage&&$errorMessage.html("")}else $parentContainer.find("."+conf.errorMessageClass).remove()},removeAllMessagesAndStyling:function($form,conf){if("function"==typeof conf.submitErrorMessageCallback){var $errorMessagesInTopOfForm=conf.submitErrorMessageCallback($form,conf);$errorMessagesInTopOfForm&&$errorMessagesInTopOfForm.html("")}else $form.find("."+conf.errorMessageClass+".alert").remove();$form.find("."+conf.errorElementClass+",.valid").each(function(){dialogs.removeInputStylingAndMessage($(this),conf)})},setInlineMessage:function($input,errorMsg,conf){this.applyInputErrorStyling($input,conf);var $message,custom=document.getElementById($input.attr("name")+"_err_msg"),$messageContainer=!1,setErrorMessage=function($elem){$.formUtils.$win.trigger("validationErrorDisplay",[$input,$elem]),$elem.html(errorMsg)},addErrorToMessageContainer=function(){var $found=!1;$messageContainer.find("."+conf.errorMessageClass).each(function(){if(this.inputReferer===$input[0])return $found=$(this),!1}),$found?errorMsg?setErrorMessage($found):$found.remove():""!==errorMsg&&($message=$('<div class="'+conf.errorMessageClass+' alert"></div>'),setErrorMessage($message),$message[0].inputReferer=$input[0],$messageContainer.prepend($message))};if(custom)$.formUtils.warn("Using deprecated element reference "+custom.id),$messageContainer=$(custom),addErrorToMessageContainer();else if("function"==typeof conf.inlineErrorMessageCallback){if(!($messageContainer=conf.inlineErrorMessageCallback($input,errorMsg,conf)))return;addErrorToMessageContainer()}else{var $parent=this.getParentContainer($input);$message=$parent.find("."+conf.errorMessageClass+".help-block"),0===$message.length&&($message=$("<span></span>").addClass("help-block").addClass(conf.errorMessageClass),$message.appendTo($parent)),setErrorMessage($message)}},setMessageInTopOfForm:function($form,errorMessages,conf,lang){var view='<div class="{errorMessageClass} alert alert-danger"><strong>{errorTitle}</strong><ul>{fields}</ul></div>',$container=!1;if("function"!=typeof conf.submitErrorMessageCallback||($container=conf.submitErrorMessageCallback($form,errorMessages,conf))){var viewParams={errorTitle:lang.errorTitle,fields:"",errorMessageClass:conf.errorMessageClass};$.each(errorMessages,function(i,msg){viewParams.fields+="<li>"+msg+"</li>"}),$.each(viewParams,function(param,value){view=view.replace("{"+param+"}",value)}),$container?$container.html(view):$form.children().eq(0).before($(view))}}};$.formUtils=$.extend($.formUtils||{},{dialogs:dialogs})}(jQuery),function($,window,undefined){"use strict";var _helpers=0;$.fn.validateOnBlur=function(language,conf){var $form=this,$elems=this.find("*[data-validation]");return $elems.each(function(){var $this=$(this);if($this.is("[type=radio]")){var $additionals=$form.find('[type=radio][name="'+$this.attr("name")+'"]');$additionals.bind("blur.validation",function(){$this.validateInputOnBlur(language,conf,!0,"blur")}),conf.validateCheckboxRadioOnClick&&$additionals.bind("click.validation",function(){$this.validateInputOnBlur(language,conf,!0,"click")})}}),$elems.bind("blur.validation",function(){$(this).validateInputOnBlur(language,conf,!0,"blur")}),conf.validateCheckboxRadioOnClick&&this.find("input[type=checkbox][data-validation],input[type=radio][data-validation]").bind("click.validation",function(){$(this).validateInputOnBlur(language,conf,!0,"click")}),this},$.fn.validateOnEvent=function(language,config){return("FORM"===this[0].nodeName?this.find("*[data-validation-event]"):this).each(function(){var $el=$(this),etype=$el.valAttr("event");etype&&$el.unbind(etype+".validation").bind(etype+".validation",function(evt){9!==(evt||{}).keyCode&&$(this).validateInputOnBlur(language,config,!0,etype)})}),this},$.fn.showHelpOnFocus=function(attrName){return attrName||(attrName="data-validation-help"),this.find(".has-help-txt").valAttr("has-keyup-event",!1).removeClass("has-help-txt"),this.find("textarea,input").each(function(){var $elem=$(this),className="jquery_form_help_"+ ++_helpers,help=$elem.attr(attrName);help&&$elem.addClass("has-help-txt").unbind("focus.help").bind("focus.help",function(){var $help=$elem.parent().find("."+className);0===$help.length&&($help=$("<span />").addClass(className).addClass("help").addClass("help-block").text(help).hide(),$elem.after($help)),$help.fadeIn()}).unbind("blur.help").bind("blur.help",function(){$(this).parent().find("."+className).fadeOut("slow")})}),this},$.fn.validate=function(cb,conf,lang){var language=$.extend({},$.formUtils.LANG,lang||{});this.each(function(){var $elem=$(this),formDefaultConfig=$elem.closest("form").get(0).validationConfig||{};$elem.one("validation",function(evt,isValid){"function"==typeof cb&&cb(isValid,this,evt)}),$elem.validateInputOnBlur(language,$.extend({},formDefaultConfig,conf||{}),!0)})},$.fn.willPostponeValidation=function(){return(this.valAttr("suggestion-nr")||this.valAttr("postpone")||this.hasClass("hasDatepicker"))&&!window.postponedValidation},$.fn.validateInputOnBlur=function(language,conf,attachKeyupEvent,eventType){if($.formUtils.eventType=eventType,this.willPostponeValidation()){var _self=this,postponeTime=this.valAttr("postpone")||200;return window.postponedValidation=function(){_self.validateInputOnBlur(language,conf,attachKeyupEvent,eventType),window.postponedValidation=!1},setTimeout(function(){window.postponedValidation&&window.postponedValidation()},postponeTime),this}language=$.extend({},$.formUtils.LANG,language||{}),$.formUtils.dialogs.removeInputStylingAndMessage(this,conf);var $elem=this,$form=$elem.closest("form"),result=$.formUtils.validateInput($elem,language,conf,$form,eventType);return attachKeyupEvent&&$elem.unbind("keyup.validation"),result.shouldChangeDisplay&&(result.isValid?$.formUtils.dialogs.applyInputSuccessStyling($elem,conf):$.formUtils.dialogs.setInlineMessage($elem,result.errorMsg,conf)),!result.isValid&&attachKeyupEvent&&$elem.bind("keyup.validation",function(evt){9!==evt.keyCode&&$(this).validateInputOnBlur(language,conf,!1,"keyup")}),this},$.fn.valAttr=function(name,val){return void 0===val?this.attr("data-validation-"+name):!1===val||null===val?this.removeAttr("data-validation-"+name):(name=name.length>0?"-"+name:"",this.attr("data-validation"+name,val))},$.fn.isValid=function(language,conf,displayError){if($.formUtils.isLoadingModules){var $self=this;return setTimeout(function(){$self.isValid(language,conf,displayError)},200),null}conf=$.extend({},$.formUtils.defaultConfig(),conf||{}),language=$.extend({},$.formUtils.LANG,language||{}),displayError=!1!==displayError,$.formUtils.errorDisplayPreventedWhenHalted&&(delete $.formUtils.errorDisplayPreventedWhenHalted,displayError=!1),$.formUtils.isValidatingEntireForm=!0,$.formUtils.haltValidation=!1;var addErrorMessage=function(mess,$elem){$.inArray(mess,errorMessages)<0&&errorMessages.push(mess),errorInputs.push($elem),$elem.attr("current-error",mess),displayError&&$.formUtils.dialogs.applyInputErrorStyling($elem,conf)},checkedInputs=[],errorMessages=[],errorInputs=[],$form=this,ignoreInput=function(name,type){return"submit"===type||"button"===type||"reset"===type||$.inArray(name,conf.ignore||[])>-1};if(displayError&&$.formUtils.dialogs.removeAllMessagesAndStyling($form,conf),$form.find("input,textarea,select").filter(':not([type="submit"],[type="button"])').each(function(){var $elem=$(this),elementType=$elem.attr("type"),isCheckboxOrRadioBtn="radio"===elementType||"checkbox"===elementType,elementName=$elem.attr("name");if(!ignoreInput(elementName,elementType)&&(!isCheckboxOrRadioBtn||$.inArray(elementName,checkedInputs)<0)){isCheckboxOrRadioBtn&&checkedInputs.push(elementName);var result=$.formUtils.validateInput($elem,language,conf,$form,"submit");result.isValid?result.isValid&&result.shouldChangeDisplay&&($elem.valAttr("current-error",!1),$.formUtils.dialogs.applyInputSuccessStyling($elem,conf)):addErrorMessage(result.errorMsg,$elem)}}),"function"==typeof conf.onValidate){var errors=conf.onValidate($form);$.isArray(errors)?$.each(errors,function(i,err){addErrorMessage(err.message,err.element)}):errors&&errors.element&&errors.message&&addErrorMessage(errors.message,errors.element)}return $.formUtils.isValidatingEntireForm=!1,!$.formUtils.haltValidation&&errorInputs.length>0?(displayError&&("top"===conf.errorMessagePosition?$.formUtils.dialogs.setMessageInTopOfForm($form,errorMessages,conf,language):$.each(errorInputs,function(i,$input){$.formUtils.dialogs.setInlineMessage($input,$input.attr("current-error"),conf)}),conf.scrollToTopOnError&&$.formUtils.$win.scrollTop($form.offset().top-20)),!1):(!displayError&&$.formUtils.haltValidation&&($.formUtils.errorDisplayPreventedWhenHalted=!0),!$.formUtils.haltValidation)},$.fn.restrictLength=function(maxLengthElement){return new $.formUtils.lengthRestriction(this,maxLengthElement),this},$.fn.addSuggestions=function(settings){var sugs=!1;return this.find("input").each(function(){var $field=$(this);sugs=$.split($field.attr("data-suggestions")),sugs.length>0&&!$field.hasClass("has-suggestions")&&($.formUtils.suggest($field,sugs,settings),$field.addClass("has-suggestions"))}),this}}(jQuery,window),function($){"use strict";$.formUtils=$.extend($.formUtils||{},{isLoadingModules:!1,loadedModules:{},loadModules:function(modules,path,callback){if($.formUtils.isLoadingModules)return void setTimeout(function(){$.formUtils.loadModules(modules,path,callback)},10);var hasLoadedAnyModule=!1,loadModuleScripts=function(modules,path){var moduleList=$.split(modules),numModules=moduleList.length,moduleLoadedCallback=function(){0===--numModules&&($.formUtils.isLoadingModules=!1,callback&&hasLoadedAnyModule&&"function"==typeof callback&&callback())};numModules>0&&($.formUtils.isLoadingModules=!0);var cacheSuffix="?_="+(new Date).getTime(),appendToElement=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];$.each(moduleList,function(i,modName){if(modName=$.trim(modName),0===modName.length)moduleLoadedCallback();else{var scriptUrl=path+modName+(".js"===modName.slice(-3)?"":".js"),script=document.createElement("SCRIPT");scriptUrl in $.formUtils.loadedModules?moduleLoadedCallback():($.formUtils.loadedModules[scriptUrl]=1,hasLoadedAnyModule=!0,script.type="text/javascript",script.onload=moduleLoadedCallback,script.src=scriptUrl+(".dev.js"===scriptUrl.slice(-7)?cacheSuffix:""),script.onerror=function(){$.formUtils.warn("Unable to load form validation module "+scriptUrl)},script.onreadystatechange=function(){"complete"!==this.readyState&&"loaded"!==this.readyState||(moduleLoadedCallback(),this.onload=null,this.onreadystatechange=null)},appendToElement.appendChild(script))}})};if(path)loadModuleScripts(modules,path);else{var findScriptPathAndLoadModules=function(){var foundPath=!1;return $('script[src*="form-validator"]').each(function(){return foundPath=this.src.substr(0,this.src.lastIndexOf("/"))+"/","/"===foundPath&&(foundPath=""),!1}),!1!==foundPath&&(loadModuleScripts(modules,foundPath),!0)};findScriptPathAndLoadModules()||$(findScriptPathAndLoadModules)}}})}(jQuery),function($){"use strict";$.split=function(val,callback){if("function"!=typeof callback){if(!val)return[];var values=[];return $.each(val.split(callback||/[,|\-\s]\s*/g),function(i,str){str=$.trim(str),str.length&&values.push(str)}),values}val&&$.each(val.split(/[,|\-\s]\s*/g),function(i,str){if(str=$.trim(str),str.length)return callback(str,i)})},$.validate=function(conf){var defaultConf=$.extend($.formUtils.defaultConfig(),{form:"form",validateOnEvent:!1,validateOnBlur:!0,validateCheckboxRadioOnClick:!0,showHelpOnFocus:!0,addSuggestions:!0,modules:"",onModulesLoaded:null,language:!1,onSuccess:!1,onError:!1,onElementValidate:!1});if(conf=$.extend(defaultConf,conf||{}),conf.lang&&"en"!==conf.lang){var langModule="lang/"+conf.lang+".js";conf.modules+=conf.modules.length?","+langModule:langModule}$(conf.form).each(function(i,form){form.validationConfig=conf;var $form=$(form);$form.trigger("formValidationSetup",[$form,conf]),$form.find(".has-help-txt").unbind("focus.validation").unbind("blur.validation"),$form.removeClass("has-validation-callback").unbind("submit.validation").unbind("reset.validation").find("input[data-validation],textarea[data-validation]").unbind("blur.validation"),$form.bind("submit.validation",function(evt){var $form=$(this),stop=function(){return evt.stopImmediatePropagation(),!1};if($.formUtils.haltValidation)return stop();if($.formUtils.isLoadingModules)return setTimeout(function(){$form.trigger("submit.validation")},200),stop();var valid=$form.isValid(conf.language,conf);return $.formUtils.haltValidation?stop():valid&&"function"==typeof conf.onSuccess?!1===conf.onSuccess($form)?stop():void 0:valid||"function"!=typeof conf.onError?!!valid||stop():(conf.onError($form),stop())}).bind("reset.validation",function(){$.formUtils.dialogs.removeAllMessagesAndStyling($form,conf)}).addClass("has-validation-callback"),conf.showHelpOnFocus&&$form.showHelpOnFocus(),conf.addSuggestions&&$form.addSuggestions(),conf.validateOnBlur&&($form.validateOnBlur(conf.language,conf),$form.bind("html5ValidationAttrsFound",function(){$form.validateOnBlur(conf.language,conf)})),conf.validateOnEvent&&$form.validateOnEvent(conf.language,conf)}),""!==conf.modules&&$.formUtils.loadModules(conf.modules,!1,function(){"function"==typeof conf.onModulesLoaded&&conf.onModulesLoaded();var $form="string"==typeof conf.form?$(conf.form):conf.form;$.formUtils.$win.trigger("validatorsLoaded",[$form,conf])})}}(jQuery),function($,window){"use strict";var $win=$(window);$.formUtils=$.extend($.formUtils||{},{$win:$win,defaultConfig:function(){return{ignore:[],errorElementClass:"error",borderColorOnError:"#b94a48",errorMessageClass:"form-error",validationRuleAttribute:"data-validation",validationErrorMsgAttribute:"data-validation-error-msg",errorMessagePosition:"inline",errorMessageTemplate:{container:'<div class="{errorMessageClass} alert alert-danger">{messages}</div>',messages:"<strong>{errorTitle}</strong><ul>{fields}</ul>",field:"<li>{msg}</li>"},scrollToTopOnError:!0,dateFormat:"yyyy-mm-dd",addValidClassOnAll:!1,decimalSeparator:".",inputParentClassOnError:"has-error",inputParentClassOnSuccess:"has-success",validateHiddenInputs:!1,inlineErrorMessageCallback:!1,submitErrorMessageCallback:!1}},validators:{},_events:{load:[],valid:[],invalid:[]},haltValidation:!1,isValidatingEntireForm:!1,addValidator:function(validator){var name=0===validator.name.indexOf("validate_")?validator.name:"validate_"+validator.name;void 0===validator.validateOnKeyUp&&(validator.validateOnKeyUp=!0),this.validators[name]=validator},warn:function(msg){"console"in window?"function"==typeof window.console.warn?window.console.warn(msg):"function"==typeof window.console.log&&window.console.log(msg):alert(msg)},getValue:function(query,$parent){var $inputs=$parent?$parent.find(query):query;if($inputs.length>0){var type=$inputs.eq(0).attr("type");return"radio"===type||"checkbox"===type?$inputs.filter(":checked").val():$inputs.val()}return!1},validateInput:function($elem,language,conf,$form,eventContext){conf=conf||$.formUtils.defaultConfig(),language=language||$.formUtils.LANG;var value=this.getValue($elem);$elem.valAttr("skipped",!1).one("beforeValidation",function(){($elem.attr("disabled")||!$elem.is(":visible")&&!conf.validateHiddenInputs)&&$elem.valAttr("skipped",1)}).trigger("beforeValidation",[value,conf,language]);var inputIsOptional="true"===$elem.valAttr("optional"),skipBecauseItsEmpty=!value&&inputIsOptional,validationRules=$elem.attr(conf.validationRuleAttribute),isValid=!0,errorMsg="",result={isValid:!0,shouldChangeDisplay:!0,errorMsg:""};if(!validationRules||skipBecauseItsEmpty||$elem.valAttr("skipped"))return result.shouldChangeDisplay=conf.addValidClassOnAll,result;var ignore=$elem.valAttr("ignore");return ignore&&$.each(ignore.split(""),function(i,char){value=value.replace(new RegExp("\\"+char),"")}),$.split(validationRules,function(rule){0!==rule.indexOf("validate_")&&(rule="validate_"+rule);var validator=$.formUtils.validators[rule];if(!validator)throw new Error('Using undefined validator "'+rule+'". Maybe you have forgotten to load the module that "'+rule+'" belongs to?');if("validate_checkbox_group"===rule&&($elem=$form.find('[name="'+$elem.attr("name")+'"]:eq(0)')),("keyup"!==eventContext||validator.validateOnKeyUp)&&(isValid=validator.validatorFunction(value,$elem,conf,language,$form)),!isValid)return errorMsg=$.formUtils.dialogs.resolveErrorMessage($elem,validator,rule,conf,language),!1}," "),!1===isValid?($elem.trigger("validation",!1),result.errorMsg=errorMsg,result.isValid=!1,result.shouldChangeDisplay=!0):null===isValid?result.shouldChangeDisplay=!1:($elem.trigger("validation",!0),result.shouldChangeDisplay=!0),"function"==typeof conf.onElementValidate&&null!==errorMsg&&conf.onElementValidate(result.isValid,$elem,$form,errorMsg),$elem.trigger("afterValidation",[result,eventContext]),result},parseDate:function(val,dateFormat,addMissingLeadingZeros){var matches,day,month,year,divider=dateFormat.replace(/[a-zA-Z]/gi,"").substring(0,1),regexp="^",formatParts=dateFormat.split(divider||null);if($.each(formatParts,function(i,part){regexp+=(i>0?"\\"+divider:"")+"(\\d{"+part.length+"})"}),regexp+="$",addMissingLeadingZeros){var newValueParts=[];$.each(val.split(divider),function(i,part){1===part.length&&(part="0"+part),newValueParts.push(part)}),val=newValueParts.join(divider)}if(null===(matches=val.match(new RegExp(regexp))))return!1;var findDateUnit=function(unit,formatParts,matches){for(var i=0;i<formatParts.length;i++)if(formatParts[i].substring(0,1)===unit)return $.formUtils.parseDateInt(matches[i+1]);return-1};return month=findDateUnit("m",formatParts,matches),day=findDateUnit("d",formatParts,matches),year=findDateUnit("y",formatParts,matches),!(2===month&&day>28&&(year%4!=0||year%100==0&&year%400!=0)||2===month&&day>29&&(year%4==0||year%100!=0&&year%400==0)||month>12||0===month)&&(!(this.isShortMonth(month)&&day>30||!this.isShortMonth(month)&&day>31||0===day)&&[year,month,day])},parseDateInt:function(val){return 0===val.indexOf("0")&&(val=val.replace("0","")),parseInt(val,10)},isShortMonth:function(m){return m%2==0&&m<7||m%2!=0&&m>7},lengthRestriction:function($inputElement,$maxLengthElement){var maxChars=parseInt($maxLengthElement.text(),10),charsLeft=0,countCharacters=function(){var numChars=$inputElement.val().length;if(numChars>maxChars){var currScrollTopPos=$inputElement.scrollTop();$inputElement.val($inputElement.val().substring(0,maxChars)),$inputElement.scrollTop(currScrollTopPos)}charsLeft=maxChars-numChars,charsLeft<0&&(charsLeft=0),$maxLengthElement.text(charsLeft)};$($inputElement).bind("keydown keyup keypress focus blur",countCharacters).bind("cut paste",function(){setTimeout(countCharacters,100)}),$(document).bind("ready",countCharacters)},numericRangeCheck:function(value,rangeAllowed){var range=$.split(rangeAllowed),minmax=parseInt(rangeAllowed.substr(3),10);return 1===range.length&&-1===rangeAllowed.indexOf("min")&&-1===rangeAllowed.indexOf("max")&&(range=[rangeAllowed,rangeAllowed]),2===range.length&&(value<parseInt(range[0],10)||value>parseInt(range[1],10))?["out",range[0],range[1]]:0===rangeAllowed.indexOf("min")&&value<minmax?["min",minmax]:0===rangeAllowed.indexOf("max")&&value>minmax?["max",minmax]:["ok"]},_numSuggestionElements:0,_selectedSuggestion:null,_previousTypedVal:null,suggest:function($elem,suggestions,settings){var conf={css:{maxHeight:"150px",background:"#FFF",lineHeight:"150%",textDecoration:"underline",overflowX:"hidden",overflowY:"auto",border:"#CCC solid 1px",borderTop:"none",cursor:"pointer"},activeSuggestionCSS:{background:"#E9E9E9"}},setSuggsetionPosition=function($suggestionContainer,$input){var offset=$input.offset();$suggestionContainer.css({width:$input.outerWidth(),left:offset.left+"px",top:offset.top+$input.outerHeight()+"px"})};settings&&$.extend(conf,settings),conf.css.position="absolute",conf.css["z-index"]=9999,$elem.attr("autocomplete","off"),0===this._numSuggestionElements&&$win.bind("resize",function(){$(".jquery-form-suggestions").each(function(){var $container=$(this),suggestID=$container.attr("data-suggest-container");setSuggsetionPosition($container,$(".suggestions-"+suggestID).eq(0))})}),this._numSuggestionElements++;var onSelectSuggestion=function($el){var suggestionId=$el.valAttr("suggestion-nr");$.formUtils._selectedSuggestion=null,$.formUtils._previousTypedVal=null,$(".jquery-form-suggestion-"+suggestionId).fadeOut("fast")};return $elem.data("suggestions",suggestions).valAttr("suggestion-nr",this._numSuggestionElements).unbind("focus.suggest").bind("focus.suggest",function(){$(this).trigger("keyup"),$.formUtils._selectedSuggestion=null}).unbind("keyup.suggest").bind("keyup.suggest",function(){var $input=$(this),foundSuggestions=[],val=$.trim($input.val()).toLocaleLowerCase();if(val!==$.formUtils._previousTypedVal){$.formUtils._previousTypedVal=val;var hasTypedSuggestion=!1,suggestionId=$input.valAttr("suggestion-nr"),$suggestionContainer=$(".jquery-form-suggestion-"+suggestionId);if($suggestionContainer.scrollTop(0),""!==val){var findPartial=val.length>2;$.each($input.data("suggestions"),function(i,suggestion){var lowerCaseVal=suggestion.toLocaleLowerCase();if(lowerCaseVal===val)return foundSuggestions.push("<strong>"+suggestion+"</strong>"),hasTypedSuggestion=!0,!1;(0===lowerCaseVal.indexOf(val)||findPartial&&lowerCaseVal.indexOf(val)>-1)&&foundSuggestions.push(suggestion.replace(new RegExp(val,"gi"),"<strong>$&</strong>"))})}hasTypedSuggestion||0===foundSuggestions.length&&$suggestionContainer.length>0?$suggestionContainer.hide():foundSuggestions.length>0&&0===$suggestionContainer.length?($suggestionContainer=$("<div></div>").css(conf.css).appendTo("body"),$elem.addClass("suggestions-"+suggestionId),$suggestionContainer.attr("data-suggest-container",suggestionId).addClass("jquery-form-suggestions").addClass("jquery-form-suggestion-"+suggestionId)):foundSuggestions.length>0&&!$suggestionContainer.is(":visible")&&$suggestionContainer.show(),foundSuggestions.length>0&&val.length!==foundSuggestions[0].length&&(setSuggsetionPosition($suggestionContainer,$input),$suggestionContainer.html(""),$.each(foundSuggestions,function(i,text){$("<div></div>").append(text).css({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"5px"}).addClass("form-suggest-element").appendTo($suggestionContainer).click(function(){$input.focus(),$input.val($(this).text()),$input.trigger("change"),onSelectSuggestion($input)})}))}}).unbind("keydown.validation").bind("keydown.validation",function(e){var suggestionId,$suggestionContainer,code=e.keyCode?e.keyCode:e.which,$input=$(this);if(13===code&&null!==$.formUtils._selectedSuggestion){if(suggestionId=$input.valAttr("suggestion-nr"),$suggestionContainer=$(".jquery-form-suggestion-"+suggestionId),$suggestionContainer.length>0){var newText=$suggestionContainer.find("div").eq($.formUtils._selectedSuggestion).text();$input.val(newText),$input.trigger("change"),onSelectSuggestion($input),e.preventDefault()}}else{suggestionId=$input.valAttr("suggestion-nr"),$suggestionContainer=$(".jquery-form-suggestion-"+suggestionId);var $suggestions=$suggestionContainer.children();if($suggestions.length>0&&$.inArray(code,[38,40])>-1){38===code?(null===$.formUtils._selectedSuggestion?$.formUtils._selectedSuggestion=$suggestions.length-1:$.formUtils._selectedSuggestion--,$.formUtils._selectedSuggestion<0&&($.formUtils._selectedSuggestion=$suggestions.length-1)):40===code&&(null===$.formUtils._selectedSuggestion?$.formUtils._selectedSuggestion=0:$.formUtils._selectedSuggestion++,$.formUtils._selectedSuggestion>$suggestions.length-1&&($.formUtils._selectedSuggestion=0));var containerInnerHeight=$suggestionContainer.innerHeight(),containerScrollTop=$suggestionContainer.scrollTop(),suggestionHeight=$suggestionContainer.children().eq(0).outerHeight(),activeSuggestionPosY=suggestionHeight*$.formUtils._selectedSuggestion;return(activeSuggestionPosY<containerScrollTop||activeSuggestionPosY>containerScrollTop+containerInnerHeight)&&$suggestionContainer.scrollTop(activeSuggestionPosY),$suggestions.removeClass("active-suggestion").css("background","none").eq($.formUtils._selectedSuggestion).addClass("active-suggestion").css(conf.activeSuggestionCSS),e.preventDefault(),!1}}}).unbind("blur.suggest").bind("blur.suggest",function(){onSelectSuggestion($(this))}),$elem},LANG:{errorTitle:"Form submission failed!",requiredField:"This is a required field",requiredFields:"You have not answered all required fields",badTime:"You have not given a correct time",badEmail:"You have not given a correct e-mail address",badTelephone:"You have not given a correct phone number",badSecurityAnswer:"You have not given a correct answer to the security question",badDate:"You have not given a correct date",lengthBadStart:"The input value must be between ",lengthBadEnd:" characters",lengthTooLongStart:"The input value is longer than ",lengthTooShortStart:"The input value is shorter than ",notConfirmed:"Input values could not be confirmed",badDomain:"Incorrect domain value",badUrl:"The input value is not a correct URL",badCustomVal:"The input value is incorrect",andSpaces:" and spaces ",badInt:"The input value was not a correct number",badSecurityNumber:"Your social security number was incorrect",badUKVatAnswer:"Incorrect UK VAT Number",badUKNin:"Incorrect UK NIN",badUKUtr:"Incorrect UK UTR Number",badStrength:"The password isn't strong enough",badNumberOfSelectedOptionsStart:"You have to choose at least ",badNumberOfSelectedOptionsEnd:" answers",badAlphaNumeric:"The input value can only contain alphanumeric characters ",badAlphaNumericExtra:" and ",wrongFileSize:"The file you are trying to upload is too large (max %s)",wrongFileType:"Only files of type %s is allowed",groupCheckedRangeStart:"Please choose between ",groupCheckedTooFewStart:"Please choose at least ",groupCheckedTooManyStart:"Please choose a maximum of ",groupCheckedEnd:" item(s)",badCreditCard:"The credit card number is not correct",badCVV:"The CVV number was not correct",wrongFileDim:"Incorrect image dimensions,",imageTooTall:"the image can not be taller than",imageTooWide:"the image can not be wider than",imageTooSmall:"the image was too small",min:"min",max:"max",imageRatioNotAccepted:"Image ratio is not be accepted",badBrazilTelephoneAnswer:"The phone number entered is invalid",badBrazilCEPAnswer:"The CEP entered is invalid",badBrazilCPFAnswer:"The CPF entered is invalid",badPlPesel:"The PESEL entered is invalid",badPlNip:"The NIP entered is invalid",badPlRegon:"The REGON entered is invalid",badreCaptcha:"Please confirm that you are not a bot"}})}(jQuery,window),function($){$.formUtils.addValidator({name:"email",validatorFunction:function(email){var emailParts=email.toLowerCase().split("@"),localPart=emailParts[0],domain=emailParts[1];if(localPart&&domain){if(0===localPart.indexOf('"')){var len=localPart.length;if(localPart=localPart.replace(/\"/g,""),localPart.length!==len-2)return!1}return $.formUtils.validators.validate_domain.validatorFunction(emailParts[1])&&0!==localPart.indexOf(".")&&"."!==localPart.substring(localPart.length-1,localPart.length)&&-1===localPart.indexOf("..")&&!/[^\w\+\.\-\#\-\_\~\!\$\&\'\(\)\*\+\,\;\=\:]/.test(localPart)}return!1},errorMessage:"",errorMessageKey:"badEmail"}),$.formUtils.addValidator({name:"domain",validatorFunction:function(val){return val.length>0&&val.length<=253&&!/[^a-zA-Z0-9]/.test(val.slice(-2))&&!/[^a-zA-Z0-9]/.test(val.substr(0,1))&&!/[^a-zA-Z0-9\.\-]/.test(val)&&1===val.split("..").length&&val.split(".").length>1},errorMessage:"",errorMessageKey:"badDomain"}),$.formUtils.addValidator({name:"required",validatorFunction:function(val,$el,config,language,$form){switch($el.attr("type")){case"checkbox":return $el.is(":checked");case"radio":return $form.find('input[name="'+$el.attr("name")+'"]').filter(":checked").length>0;default:return""!==$.trim(val)}},errorMessage:"",errorMessageKey:function(config){return"top"===config.errorMessagePosition||"function"==typeof config.errorMessagePosition?"requiredFields":"requiredField"}}),$.formUtils.addValidator({name:"length",validatorFunction:function(val,$el,conf,lang){var lengthAllowed=$el.valAttr("length"),type=$el.attr("type");if(void 0===lengthAllowed)return alert('Please add attribute "data-validation-length" to '+$el[0].nodeName+" named "+$el.attr("name")),!0;var checkResult,len="file"===type&&void 0!==$el.get(0).files?$el.get(0).files.length:val.length,lengthCheckResults=$.formUtils.numericRangeCheck(len,lengthAllowed);switch(lengthCheckResults[0]){case"out":this.errorMessage=lang.lengthBadStart+lengthAllowed+lang.lengthBadEnd,checkResult=!1;break;case"min":this.errorMessage=lang.lengthTooShortStart+lengthCheckResults[1]+lang.lengthBadEnd,checkResult=!1;break;case"max":this.errorMessage=lang.lengthTooLongStart+lengthCheckResults[1]+lang.lengthBadEnd,checkResult=!1;break;default:checkResult=!0}return checkResult},errorMessage:"",errorMessageKey:""}),$.formUtils.addValidator({name:"url",validatorFunction:function(url){if(/^(https?|ftp):\/\/((((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])(\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|\[|\]|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#(((\w|-|\.|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(url)){var domain=url.split("://")[1],domainSlashPos=domain.indexOf("/");return domainSlashPos>-1&&(domain=domain.substr(0,domainSlashPos)),$.formUtils.validators.validate_domain.validatorFunction(domain)}return!1},errorMessage:"",errorMessageKey:"badUrl"}),$.formUtils.addValidator({name:"number",validatorFunction:function(val,$el,conf){if(""!==val){var begin,end,allowing=$el.valAttr("allowing")||"",decimalSeparator=$el.valAttr("decimal-separator")||conf.decimalSeparator,allowsRange=!1,steps=$el.valAttr("step")||"",allowsSteps=!1;if(($el.attr("data-sanitize")||"").match(/(^|[\s])numberFormat([\s]|$)/i)){if(!window.numeral)throw new ReferenceError("The data-sanitize value numberFormat cannot be used without the numeral library. Please see Data Validation in http://www.formvalidator.net for more information.");val.length&&(val=String(numeral().unformat(val)))}if(-1===allowing.indexOf("number")&&(allowing+=",number"),-1===allowing.indexOf("negative")&&0===val.indexOf("-"))return!1;if(allowing.indexOf("range")>-1&&(begin=parseFloat(allowing.substring(allowing.indexOf("[")+1,allowing.indexOf(";"))),end=parseFloat(allowing.substring(allowing.indexOf(";")+1,allowing.indexOf("]"))),allowsRange=!0),""!==steps&&(allowsSteps=!0),","===decimalSeparator){if(val.indexOf(".")>-1)return!1;val=val.replace(",",".")}if(""===val.replace(/[0-9-]/g,"")&&(!allowsRange||val>=begin&&val<=end)&&(!allowsSteps||val%steps==0))return!0;if(allowing.indexOf("float")>-1&&null!==val.match(new RegExp("^([0-9-]+)\\.([0-9]+)$"))&&(!allowsRange||val>=begin&&val<=end)&&(!allowsSteps||val%steps==0))return!0}return!1},errorMessage:"",errorMessageKey:"badInt"}),$.formUtils.addValidator({name:"alphanumeric",validatorFunction:function(val,$el,conf,language){var additionalChars=$el.valAttr("allowing"),pattern="";if(additionalChars){pattern="^([a-zA-Z0-9"+additionalChars+"]+)$";var extra=additionalChars.replace(/\\/g,"");extra.indexOf(" ")>-1&&(extra=extra.replace(" ",""),extra+=language.andSpaces||$.formUtils.LANG.andSpaces),this.errorMessage=language.badAlphaNumeric+language.badAlphaNumericExtra+extra}else pattern="^([a-zA-Z0-9]+)$",this.errorMessage=language.badAlphaNumeric;return new RegExp(pattern).test(val)},errorMessage:"",errorMessageKey:""}),$.formUtils.addValidator({name:"custom",validatorFunction:function(val,$el){return new RegExp($el.valAttr("regexp")).test(val)},errorMessage:"",errorMessageKey:"badCustomVal"}),$.formUtils.addValidator({name:"date",validatorFunction:function(date,$el,conf){var dateFormat=$el.valAttr("format")||conf.dateFormat||"yyyy-mm-dd",addMissingLeadingZeros="false"===$el.valAttr("require-leading-zero");return!1!==$.formUtils.parseDate(date,dateFormat,addMissingLeadingZeros)},errorMessage:"",errorMessageKey:"badDate"}),$.formUtils.addValidator({name:"checkbox_group",validatorFunction:function(val,$el,conf,lang,$form){var isValid=!0,elname=$el.attr("name"),$checkBoxes=$('input[type=checkbox][name^="'+elname+'"]',$form),checkedCount=$checkBoxes.filter(":checked").length,qtyAllowed=$el.valAttr("qty");if(void 0===qtyAllowed){var elementType=$el.get(0).nodeName;alert('Attribute "data-validation-qty" is missing from '+elementType+" named "+$el.attr("name"))}var qtyCheckResults=$.formUtils.numericRangeCheck(checkedCount,qtyAllowed);switch(qtyCheckResults[0]){case"out":this.errorMessage=lang.groupCheckedRangeStart+qtyAllowed+lang.groupCheckedEnd,isValid=!1;break;case"min":this.errorMessage=lang.groupCheckedTooFewStart+qtyCheckResults[1]+lang.groupCheckedEnd,isValid=!1;break;case"max":this.errorMessage=lang.groupCheckedTooManyStart+qtyCheckResults[1]+lang.groupCheckedEnd,isValid=!1;break;default:isValid=!0}if(!isValid){var _triggerOnBlur=function(){$checkBoxes.unbind("click",_triggerOnBlur),$checkBoxes.filter("*[data-validation]").validateInputOnBlur(lang,conf,!1,"blur")};$checkBoxes.bind("click",_triggerOnBlur)}return isValid}}),$.formUtils.addValidator({name:"confirmation",validatorFunction:function(value,$el,config,language,$form){var password,passwordInputName=$el.valAttr("confirm")||$el.attr("name")+"_confirmation",$passwordInput=$form.find('[name="'+passwordInputName+'"]');if(!$passwordInput.length)return $.formUtils.warn('Password confirmation validator: could not find an input with name "'+passwordInputName+'"',!0),!1;if(password=$passwordInput.val(),config.validateOnBlur&&!$passwordInput[0].hasValidationCallback){$passwordInput[0].hasValidationCallback=!0;var keyUpCallback=function(){$el.validate()};$passwordInput.on("keyup",keyUpCallback),$form.one("formValidationSetup",function(){$passwordInput[0].hasValidationCallback=!1,$passwordInput.off("keyup",keyUpCallback)})}return value===password},errorMessage:"",errorMessageKey:"notConfirmed"})}(jQuery)})},function(module,exports,__webpack_require__){(function($){var __WEBPACK_LOCAL_MODULE_0__,__WEBPACK_LOCAL_MODULE_0__factory,__WEBPACK_LOCAL_MODULE_0__module,__WEBPACK_LOCAL_MODULE_1__,__WEBPACK_LOCAL_MODULE_1__factory,__WEBPACK_LOCAL_MODULE_1__module,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(root,factory){__WEBPACK_LOCAL_MODULE_0__factory=factory,__WEBPACK_LOCAL_MODULE_0__module={id:"sifter",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_0__="function"==typeof __WEBPACK_LOCAL_MODULE_0__factory?__WEBPACK_LOCAL_MODULE_0__factory.call(__WEBPACK_LOCAL_MODULE_0__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_0__module.exports,__WEBPACK_LOCAL_MODULE_0__module):__WEBPACK_LOCAL_MODULE_0__factory,__WEBPACK_LOCAL_MODULE_0__module.loaded=!0,void 0===__WEBPACK_LOCAL_MODULE_0__&&(__WEBPACK_LOCAL_MODULE_0__=__WEBPACK_LOCAL_MODULE_0__module.exports)}(0,function(){var Sifter=function(items,settings){this.items=items,this.settings=settings||{diacritics:!0}};Sifter.prototype.tokenize=function(query){if(!(query=trim(String(query||"").toLowerCase()))||!query.length)return[];var i,n,regex,letter,tokens=[],words=query.split(/ +/);for(i=0,n=words.length;i<n;i++){if(regex=escape_regex(words[i]),this.settings.diacritics)for(letter in DIACRITICS)DIACRITICS.hasOwnProperty(letter)&&(regex=regex.replace(new RegExp(letter,"g"),DIACRITICS[letter]));tokens.push({string:words[i],regex:new RegExp(regex,"i")})}return tokens},Sifter.prototype.iterator=function(object,callback){var iterator;iterator=is_array(object)?Array.prototype.forEach||function(callback){for(var i=0,n=this.length;i<n;i++)callback(this[i],i,this)}:function(callback){for(var key in this)this.hasOwnProperty(key)&&callback(this[key],key,this)},iterator.apply(object,[callback])},Sifter.prototype.getScoreFunction=function(search,options){var self,fields,tokens,token_count;self=this,search=self.prepareSearch(search,options),tokens=search.tokens,fields=search.options.fields,token_count=tokens.length;var scoreValue=function(value,token){var score,pos;return value?(value=String(value||""),-1===(pos=value.search(token.regex))?0:(score=token.string.length/value.length,0===pos&&(score+=.5),score)):0},scoreObject=function(){var field_count=fields.length;return field_count?1===field_count?function(token,data){return scoreValue(data[fields[0]],token)}:function(token,data){for(var i=0,sum=0;i<field_count;i++)sum+=scoreValue(data[fields[i]],token);return sum/field_count}:function(){return 0}}();return token_count?1===token_count?function(data){return scoreObject(tokens[0],data)}:"and"===search.options.conjunction?function(data){for(var score,i=0,sum=0;i<token_count;i++){if((score=scoreObject(tokens[i],data))<=0)return 0;sum+=score}return sum/token_count}:function(data){for(var i=0,sum=0;i<token_count;i++)sum+=scoreObject(tokens[i],data);return sum/token_count}:function(){return 0}},Sifter.prototype.getSortFunction=function(search,options){var i,n,self,field,fields,fields_count,multiplier,multipliers,get_field,implicit_score,sort;if(self=this,search=self.prepareSearch(search,options),sort=!search.query&&options.sort_empty||options.sort,get_field=function(name,result){return"$score"===name?result.score:self.items[result.id][name]},fields=[],sort)for(i=0,n=sort.length;i<n;i++)(search.query||"$score"!==sort[i].field)&&fields.push(sort[i]);if(search.query){for(implicit_score=!0,i=0,n=fields.length;i<n;i++)if("$score"===fields[i].field){implicit_score=!1;break}implicit_score&&fields.unshift({field:"$score",direction:"desc"})}else for(i=0,n=fields.length;i<n;i++)if("$score"===fields[i].field){fields.splice(i,1);break}for(multipliers=[],i=0,n=fields.length;i<n;i++)multipliers.push("desc"===fields[i].direction?-1:1);return fields_count=fields.length,fields_count?1===fields_count?(field=fields[0].field,multiplier=multipliers[0],function(a,b){return multiplier*cmp(get_field(field,a),get_field(field,b))}):function(a,b){var i,result,field;for(i=0;i<fields_count;i++)if(field=fields[i].field,result=multipliers[i]*cmp(get_field(field,a),get_field(field,b)))return result;return 0}:null},Sifter.prototype.prepareSearch=function(query,options){if("object"==typeof query)return query;options=extend({},options);var option_fields=options.fields,option_sort=options.sort,option_sort_empty=options.sort_empty;return option_fields&&!is_array(option_fields)&&(options.fields=[option_fields]),option_sort&&!is_array(option_sort)&&(options.sort=[option_sort]),option_sort_empty&&!is_array(option_sort_empty)&&(options.sort_empty=[option_sort_empty]),{options:options,query:String(query||"").toLowerCase(),tokens:this.tokenize(query),total:0,items:[]}},Sifter.prototype.search=function(query,options){var score,search,fn_sort,fn_score,self=this;return search=this.prepareSearch(query,options),options=search.options,query=search.query,fn_score=options.score||self.getScoreFunction(search),query.length?self.iterator(self.items,function(item,id){score=fn_score(item),(!1===options.filter||score>0)&&search.items.push({score:score,id:id})}):self.iterator(self.items,function(item,id){search.items.push({score:1,id:id})}),fn_sort=self.getSortFunction(search,options),fn_sort&&search.items.sort(fn_sort),search.total=search.items.length,"number"==typeof options.limit&&(search.items=search.items.slice(0,options.limit)),search};var cmp=function(a,b){return"number"==typeof a&&"number"==typeof b?a>b?1:a<b?-1:0:(a=asciifold(String(a||"")),b=asciifold(String(b||"")),a>b?1:b>a?-1:0)},extend=function(a,b){var i,n,k,object;for(i=1,n=arguments.length;i<n;i++)if(object=arguments[i])for(k in object)object.hasOwnProperty(k)&&(a[k]=object[k]);return a},trim=function(str){return(str+"").replace(/^\s+|\s+$|/g,"")},escape_regex=function(str){return(str+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},is_array=Array.isArray||$&&$.isArray||function(object){return"[object Array]"===Object.prototype.toString.call(object)},DIACRITICS={a:"[aÀÁÂÃÄÅàáâãäåĀāąĄ]",c:"[cÇçćĆčČ]",d:"[dđĐďĎ]",e:"[eÈÉÊËèéêëěĚĒēęĘ]",i:"[iÌÍÎÏìíîïĪī]",l:"[lłŁ]",n:"[nÑñňŇńŃ]",o:"[oÒÓÔÕÕÖØòóôõöøŌō]",r:"[rřŘ]",s:"[sŠšśŚ]",t:"[tťŤ]",u:"[uÙÚÛÜùúûüůŮŪū]",y:"[yŸÿýÝ]",z:"[zŽžżŻźŹ]"},asciifold=function(){var i,n,k,chunk,foreignletters="",lookup={};for(k in DIACRITICS)if(DIACRITICS.hasOwnProperty(k))for(chunk=DIACRITICS[k].substring(2,DIACRITICS[k].length-1),foreignletters+=chunk,i=0,n=chunk.length;i<n;i++)lookup[chunk.charAt(i)]=k;var regexp=new RegExp("["+foreignletters+"]","g");return function(str){return str.replace(regexp,function(foreignletter){return lookup[foreignletter]}).toLowerCase()}}();return Sifter}),function(root,factory){__WEBPACK_LOCAL_MODULE_1__factory=factory,__WEBPACK_LOCAL_MODULE_1__module={id:"microplugin",exports:{},loaded:!1},__WEBPACK_LOCAL_MODULE_1__="function"==typeof __WEBPACK_LOCAL_MODULE_1__factory?__WEBPACK_LOCAL_MODULE_1__factory.call(__WEBPACK_LOCAL_MODULE_1__module.exports,__webpack_require__,__WEBPACK_LOCAL_MODULE_1__module.exports,__WEBPACK_LOCAL_MODULE_1__module):__WEBPACK_LOCAL_MODULE_1__factory,__WEBPACK_LOCAL_MODULE_1__module.loaded=!0,void 0===__WEBPACK_LOCAL_MODULE_1__&&(__WEBPACK_LOCAL_MODULE_1__=__WEBPACK_LOCAL_MODULE_1__module.exports)}(0,function(){var MicroPlugin={};MicroPlugin.mixin=function(Interface){Interface.plugins={},Interface.prototype.initializePlugins=function(plugins){var i,n,key,self=this,queue=[];if(self.plugins={names:[],settings:{},requested:{},loaded:{}},utils.isArray(plugins))for(i=0,n=plugins.length;i<n;i++)"string"==typeof plugins[i]?queue.push(plugins[i]):(self.plugins.settings[plugins[i].name]=plugins[i].options,queue.push(plugins[i].name));else if(plugins)for(key in plugins)plugins.hasOwnProperty(key)&&(self.plugins.settings[key]=plugins[key],queue.push(key));for(;queue.length;)self.require(queue.shift())},Interface.prototype.loadPlugin=function(name){var self=this,plugins=self.plugins,plugin=Interface.plugins[name];if(!Interface.plugins.hasOwnProperty(name))throw new Error('Unable to find "'+name+'" plugin');plugins.requested[name]=!0,plugins.loaded[name]=plugin.fn.apply(self,[self.plugins.settings[name]||{}]),plugins.names.push(name)},Interface.prototype.require=function(name){var self=this,plugins=self.plugins;if(!self.plugins.loaded.hasOwnProperty(name)){if(plugins.requested[name])throw new Error('Plugin has circular dependency ("'+name+'")');self.loadPlugin(name)}return plugins.loaded[name]},Interface.define=function(name,fn){Interface.plugins[name]={name:name,fn:fn}}};var utils={isArray:Array.isArray||function(vArg){return"[object Array]"===Object.prototype.toString.call(vArg)}};return MicroPlugin}),function(root,factory){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(1),__WEBPACK_LOCAL_MODULE_0__,__WEBPACK_LOCAL_MODULE_1__],__WEBPACK_AMD_DEFINE_FACTORY__=factory,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(0,function($,Sifter,MicroPlugin){"use strict";var highlight=function($element,pattern){if("string"!=typeof pattern||pattern.length){var regex="string"==typeof pattern?new RegExp(pattern,"i"):pattern,highlight=function(node){var skip=0;if(3===node.nodeType){var pos=node.data.search(regex);if(pos>=0&&node.data.length>0){var match=node.data.match(regex),spannode=document.createElement("span");spannode.className="highlight";var middlebit=node.splitText(pos),middleclone=(middlebit.splitText(match[0].length),middlebit.cloneNode(!0));spannode.appendChild(middleclone),middlebit.parentNode.replaceChild(spannode,middlebit),skip=1}}else if(1===node.nodeType&&node.childNodes&&!/(script|style)/i.test(node.tagName))for(var i=0;i<node.childNodes.length;++i)i+=highlight(node.childNodes[i]);return skip};return $element.each(function(){highlight(this)})}},MicroEvent=function(){};MicroEvent.prototype={on:function(event,fct){this._events=this._events||{},this._events[event]=this._events[event]||[],this._events[event].push(fct)},off:function(event,fct){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[event]:(this._events=this._events||{},void(event in this._events!=!1&&this._events[event].splice(this._events[event].indexOf(fct),1)))},trigger:function(event){if(this._events=this._events||{},event in this._events!=!1)for(var i=0;i<this._events[event].length;i++)this._events[event][i].apply(this,Array.prototype.slice.call(arguments,1))}},MicroEvent.mixin=function(destObject){for(var props=["on","off","trigger"],i=0;i<props.length;i++)destObject.prototype[props[i]]=MicroEvent.prototype[props[i]]};var IS_MAC=/Mac/.test(navigator.userAgent),KEY_CMD=IS_MAC?91:17,KEY_CTRL=IS_MAC?18:17,SUPPORTS_VALIDITY_API=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("form").validity,isset=function(object){return void 0!==object},hash_key=function(value){return void 0===value||null===value?null:"boolean"==typeof value?value?"1":"0":value+""},escape_html=function(str){return(str+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},escape_replace=function(str){return(str+"").replace(/\$/g,"$$$$")},hook={};hook.before=function(self,method,fn){var original=self[method];self[method]=function(){return fn.apply(self,arguments),original.apply(self,arguments)}},hook.after=function(self,method,fn){var original=self[method];self[method]=function(){var result=original.apply(self,arguments);return fn.apply(self,arguments),result}};var once=function(fn){var called=!1;return function(){called||(called=!0,fn.apply(this,arguments))}},debounce=function(fn,delay){var timeout;return function(){var self=this,args=arguments;window.clearTimeout(timeout),timeout=window.setTimeout(function(){fn.apply(self,args)},delay)}},debounce_events=function(self,types,fn){var type,trigger=self.trigger,event_args={};self.trigger=function(){var type=arguments[0];if(-1===types.indexOf(type))return trigger.apply(self,arguments);event_args[type]=arguments},fn.apply(self,[]),self.trigger=trigger;for(type in event_args)event_args.hasOwnProperty(type)&&trigger.apply(self,event_args[type])},watchChildEvent=function($parent,event,selector,fn){$parent.on(event,selector,function(e){for(var child=e.target;child&&child.parentNode!==$parent[0];)child=child.parentNode;return e.currentTarget=child,fn.apply(this,[e])})},getSelection=function(input){var result={};if("selectionStart"in input)result.start=input.selectionStart,result.length=input.selectionEnd-result.start;else if(document.selection){input.focus();var sel=document.selection.createRange(),selLen=document.selection.createRange().text.length;sel.moveStart("character",-input.value.length),result.start=sel.text.length-selLen,result.length=selLen}return result},transferStyles=function($from,$to,properties){var i,n,styles={};if(properties)for(i=0,n=properties.length;i<n;i++)styles[properties[i]]=$from.css(properties[i]);else styles=$from.css();$to.css(styles)},measureString=function(str,$parent){if(!str)return 0;var $test=$("<test>").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(str).appendTo("body");transferStyles($parent,$test,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]);var width=$test.width();return $test.remove(),width},autoGrow=function($input){var currentWidth=null,update=function(e,options){var value,keyCode,printable,placeholder,width,shift,character,selection;e=e||window.event||{},options=options||{},e.metaKey||e.altKey||(options.force||!1!==$input.data("grow"))&&(value=$input.val(),e.type&&"keydown"===e.type.toLowerCase()&&(keyCode=e.keyCode,printable=keyCode>=97&&keyCode<=122||keyCode>=65&&keyCode<=90||keyCode>=48&&keyCode<=57||32===keyCode,46===keyCode||8===keyCode?(selection=getSelection($input[0]),selection.length?value=value.substring(0,selection.start)+value.substring(selection.start+selection.length):8===keyCode&&selection.start?value=value.substring(0,selection.start-1)+value.substring(selection.start+1):46===keyCode&&void 0!==selection.start&&(value=value.substring(0,selection.start)+value.substring(selection.start+1))):printable&&(shift=e.shiftKey,character=String.fromCharCode(e.keyCode),character=shift?character.toUpperCase():character.toLowerCase(),value+=character)),placeholder=$input.attr("placeholder"),!value&&placeholder&&(value=placeholder),(width=measureString(value,$input)+4)!==currentWidth&&(currentWidth=width,$input.width(width),$input.triggerHandler("resize")))};$input.on("keydown keyup update blur",update),update()},Selectize=function($input,settings){var i,n,dir,input,self=this;input=$input[0],input.selectize=self;var computedStyle=window.getComputedStyle&&window.getComputedStyle(input,null);if(dir=computedStyle?computedStyle.getPropertyValue("direction"):input.currentStyle&&input.currentStyle.direction,dir=dir||$input.parents("[dir]:first").attr("dir")||"",$.extend(self,{order:0,settings:settings,$input:$input,tabIndex:$input.attr("tabindex")||"",tagType:"select"===input.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(dir),eventNS:".selectize"+ ++Selectize.count,highlightedValue:null,isOpen:!1,isDisabled:!1,isRequired:$input.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===settings.loadThrottle?self.onSearchChange:debounce(self.onSearchChange,settings.loadThrottle)}),self.sifter=new Sifter(this.options,{diacritics:settings.diacritics}),self.settings.options){for(i=0,n=self.settings.options.length;i<n;i++)self.registerOption(self.settings.options[i]);delete self.settings.options}if(self.settings.optgroups){for(i=0,n=self.settings.optgroups.length;i<n;i++)self.registerOptionGroup(self.settings.optgroups[i]);delete self.settings.optgroups}self.settings.mode=self.settings.mode||(1===self.settings.maxItems?"single":"multi"),"boolean"!=typeof self.settings.hideSelected&&(self.settings.hideSelected="multi"===self.settings.mode),self.initializePlugins(self.settings.plugins),self.setupCallbacks(),self.setupTemplates(),self.setup()};return MicroEvent.mixin(Selectize),MicroPlugin.mixin(Selectize),$.extend(Selectize.prototype,{setup:function(){var $wrapper,$control,$control_input,$dropdown,$dropdown_content,$dropdown_parent,inputMode,classes,classes_plugins,self=this,settings=self.settings,eventNS=self.eventNS,$window=$(window),$document=$(document),$input=self.$input;if(inputMode=self.settings.mode,classes=$input.attr("class")||"",$wrapper=$("<div>").addClass(settings.wrapperClass).addClass(classes).addClass(inputMode),$control=$("<div>").addClass(settings.inputClass).addClass("items").appendTo($wrapper),$control_input=$('<input type="text" autocomplete="off" />').appendTo($control).attr("tabindex",$input.is(":disabled")?"-1":self.tabIndex),$dropdown_parent=$(settings.dropdownParent||$wrapper),$dropdown=$("<div>").addClass(settings.dropdownClass).addClass(inputMode).hide().appendTo($dropdown_parent),$dropdown_content=$("<div>").addClass(settings.dropdownContentClass).appendTo($dropdown),self.settings.copyClassesToDropdown&&$dropdown.addClass(classes),$wrapper.css({width:$input[0].style.width}),self.plugins.names.length&&(classes_plugins="plugin-"+self.plugins.names.join(" plugin-"),$wrapper.addClass(classes_plugins),$dropdown.addClass(classes_plugins)),(null===settings.maxItems||settings.maxItems>1)&&1===self.tagType&&$input.attr("multiple","multiple"),self.settings.placeholder&&$control_input.attr("placeholder",settings.placeholder),!self.settings.splitOn&&self.settings.delimiter){var delimiterEscaped=self.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");self.settings.splitOn=new RegExp("\\s*"+delimiterEscaped+"+\\s*")}$input.attr("autocorrect")&&$control_input.attr("autocorrect",$input.attr("autocorrect")),$input.attr("autocapitalize")&&$control_input.attr("autocapitalize",$input.attr("autocapitalize")),self.$wrapper=$wrapper,self.$control=$control,self.$control_input=$control_input,self.$dropdown=$dropdown,self.$dropdown_content=$dropdown_content,$dropdown.on("mouseenter","[data-selectable]",function(){return self.onOptionHover.apply(self,arguments)}),$dropdown.on("mousedown click","[data-selectable]",function(){return self.onOptionSelect.apply(self,arguments)}),watchChildEvent($control,"mousedown","*:not(input)",function(){return self.onItemSelect.apply(self,arguments)}),autoGrow($control_input),$control.on({mousedown:function(){return self.onMouseDown.apply(self,arguments)},click:function(){return self.onClick.apply(self,arguments)}}),$control_input.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return self.onKeyDown.apply(self,arguments)},keyup:function(){return self.onKeyUp.apply(self,arguments)},keypress:function(){return self.onKeyPress.apply(self,arguments)},resize:function(){self.positionDropdown.apply(self,[])},blur:function(){return self.onBlur.apply(self,arguments)},focus:function(){return self.ignoreBlur=!1,self.onFocus.apply(self,arguments)},paste:function(){return self.onPaste.apply(self,arguments)}}),$document.on("keydown"+eventNS,function(e){self.isCmdDown=e[IS_MAC?"metaKey":"ctrlKey"],self.isCtrlDown=e[IS_MAC?"altKey":"ctrlKey"],self.isShiftDown=e.shiftKey}),$document.on("keyup"+eventNS,function(e){e.keyCode===KEY_CTRL&&(self.isCtrlDown=!1),16===e.keyCode&&(self.isShiftDown=!1),e.keyCode===KEY_CMD&&(self.isCmdDown=!1)}),$document.on("mousedown"+eventNS,function(e){if(self.isFocused){if(e.target===self.$dropdown[0]||e.target.parentNode===self.$dropdown[0])return!1;self.$control.has(e.target).length||e.target===self.$control[0]||self.blur(e.target)}}),$window.on(["scroll"+eventNS,"resize"+eventNS].join(" "),function(){self.isOpen&&self.positionDropdown.apply(self,arguments)}),$window.on("mousemove"+eventNS,function(){self.ignoreHover=!1}),this.revertSettings={$children:$input.children().detach(),tabindex:$input.attr("tabindex")},$input.attr("tabindex",-1).hide().after(self.$wrapper),$.isArray(settings.items)&&(self.setValue(settings.items),delete settings.items),SUPPORTS_VALIDITY_API&&$input.on("invalid"+eventNS,function(e){e.preventDefault(),self.isInvalid=!0,self.refreshState()}),self.updateOriginalInput(),self.refreshItems(),self.refreshState(),self.updatePlaceholder(),self.isSetup=!0,$input.is(":disabled")&&self.disable(),self.on("change",this.onChange),$input.data("selectize",self),$input.addClass("selectized"),self.trigger("initialize"),self.positionDropdown(),!0===settings.preload&&self.onSearchChange("")},setupTemplates:function(){var self=this,field_label=self.settings.labelField,field_optgroup=self.settings.optgroupLabelField,templates={optgroup:function(data){return'<div class="optgroup">'+data.html+"</div>"},optgroup_header:function(data,escape){return'<div class="optgroup-header">'+escape(data[field_optgroup])+"</div>"},option:function(data,escape){return'<div class="option">'+escape(data[field_label])+"</div>"},item:function(data,escape){return'<div class="item">'+escape(data[field_label])+"</div>"},option_create:function(data,escape){return'<div class="create">Add <strong>'+escape(data.input)+"</strong>&hellip;</div>"}};self.settings.render=$.extend({},templates,self.settings.render)},setupCallbacks:function(){var key,fn,callbacks={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(key in callbacks)callbacks.hasOwnProperty(key)&&(fn=this.settings[callbacks[key]])&&this.on(key,fn)},onClick:function(e){var self=this;self.isFocused||(self.focus(),e.preventDefault())},onMouseDown:function(e){var self=this,defaultPrevented=e.isDefaultPrevented();$(e.target);if(self.isFocused){if(e.target!==self.$control_input[0])return"single"===self.settings.mode?self.isOpen?self.close():self.open():defaultPrevented||self.setActiveItem(null),!1}else defaultPrevented||window.setTimeout(function(){self.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var self=this;self.isFull()||self.isInputHidden||self.isLocked?e.preventDefault():self.settings.splitOn&&setTimeout(function(){for(var splitInput=$.trim(self.$control_input.val()||"").split(self.settings.splitOn),i=0,n=splitInput.length;i<n;i++)self.createItem(splitInput[i])},0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var character=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&character===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var self=(e.target,this.$control_input[0],this);if(self.isLocked)return void(9!==e.keyCode&&e.preventDefault());switch(e.keyCode){case 65:if(self.isCmdDown)return void self.selectAll();break;case 27:return void(self.isOpen&&(e.preventDefault(),e.stopPropagation(),self.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!self.isOpen&&self.hasOptions)self.open();else if(self.$activeOption){self.ignoreHover=!0;var $next=self.getAdjacentOption(self.$activeOption,1);$next.length&&self.setActiveOption($next,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(self.$activeOption){self.ignoreHover=!0;var $prev=self.getAdjacentOption(self.$activeOption,-1);$prev.length&&self.setActiveOption($prev,!0,!0)}return void e.preventDefault();case 13:return void(self.isOpen&&self.$activeOption&&(self.onOptionSelect({currentTarget:self.$activeOption}),e.preventDefault()));case 37:return void self.advanceSelection(-1,e);case 39:return void self.advanceSelection(1,e);case 9:return self.settings.selectOnTab&&self.isOpen&&self.$activeOption&&(self.onOptionSelect({currentTarget:self.$activeOption}),self.isFull()||e.preventDefault()),void(self.settings.create&&self.createItem()&&e.preventDefault());case 8:case 46:return void self.deleteSelection(e)}return!self.isFull()&&!self.isInputHidden||(IS_MAC?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()},onKeyUp:function(e){var self=this;if(self.isLocked)return e&&e.preventDefault();var value=self.$control_input.val()||"";self.lastValue!==value&&(self.lastValue=value,self.onSearchChange(value),self.refreshOptions(),self.trigger("type",value))},onSearchChange:function(value){var self=this,fn=self.settings.load;fn&&(self.loadedSearches.hasOwnProperty(value)||(self.loadedSearches[value]=!0,self.load(function(callback){fn.apply(self,[value,callback])})))},onFocus:function(e){var self=this,wasFocused=self.isFocused;if(self.isDisabled)return self.blur(),e&&e.preventDefault(),!1;self.ignoreFocus||(self.isFocused=!0,"focus"===self.settings.preload&&self.onSearchChange(""),wasFocused||self.trigger("focus"),self.$activeItems.length||(self.showInput(),self.setActiveItem(null),self.refreshOptions(!!self.settings.openOnFocus)),self.refreshState())},onBlur:function(e,dest){var self=this;if(self.isFocused&&(self.isFocused=!1,!self.ignoreFocus)){if(!self.ignoreBlur&&document.activeElement===self.$dropdown_content[0])return self.ignoreBlur=!0,void self.onFocus(e);var deactivate=function(){self.close(),self.setTextboxValue(""),self.setActiveItem(null),self.setActiveOption(null),self.setCaret(self.items.length),self.refreshState(),(dest||document.body).focus(),self.ignoreFocus=!1,self.trigger("blur")};self.ignoreFocus=!0,self.settings.create&&self.settings.createOnBlur?self.createItem(null,!1,deactivate):deactivate()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(e){var value,$target,self=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),$target=$(e.currentTarget),$target.hasClass("create")?self.createItem(null,function(){self.settings.closeAfterSelect&&self.close()}):void 0!==(value=$target.attr("data-value"))&&(self.lastQuery=null,self.setTextboxValue(""),self.addItem(value),self.settings.closeAfterSelect?self.close():!self.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&self.setActiveOption(self.getOption(value)))},onItemSelect:function(e){var self=this;self.isLocked||"multi"===self.settings.mode&&(e.preventDefault(),self.setActiveItem(e.currentTarget,e))},load:function(fn){var self=this,$wrapper=self.$wrapper.addClass(self.settings.loadingClass);self.loading++,fn.apply(self,[function(results){self.loading=Math.max(self.loading-1,0),results&&results.length&&(self.addOption(results),self.refreshOptions(self.isFocused&&!self.isInputHidden)),self.loading||$wrapper.removeClass(self.settings.loadingClass),self.trigger("load",results)}])},setTextboxValue:function(value){var $input=this.$control_input;$input.val()!==value&&($input.val(value).triggerHandler("update"),this.lastValue=value)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(value,silent){debounce_events(this,silent?[]:["change"],function(){this.clear(silent),this.addItems(value,silent)})},setActiveItem:function($item,e){var eventName,i,idx,begin,end,item,swap,$last,self=this;if("single"!==self.settings.mode){if($item=$($item),!$item.length)return $(self.$activeItems).removeClass("active"),self.$activeItems=[],void(self.isFocused&&self.showInput());if("mousedown"===(eventName=e&&e.type.toLowerCase())&&self.isShiftDown&&self.$activeItems.length){for($last=self.$control.children(".active:last"),begin=Array.prototype.indexOf.apply(self.$control[0].childNodes,[$last[0]]),end=Array.prototype.indexOf.apply(self.$control[0].childNodes,[$item[0]]),begin>end&&(swap=begin,begin=end,end=swap),i=begin;i<=end;i++)item=self.$control[0].childNodes[i],-1===self.$activeItems.indexOf(item)&&($(item).addClass("active"),self.$activeItems.push(item));e.preventDefault()}else"mousedown"===eventName&&self.isCtrlDown||"keydown"===eventName&&this.isShiftDown?$item.hasClass("active")?(idx=self.$activeItems.indexOf($item[0]),self.$activeItems.splice(idx,1),$item.removeClass("active")):self.$activeItems.push($item.addClass("active")[0]):($(self.$activeItems).removeClass("active"),self.$activeItems=[$item.addClass("active")[0]]);self.hideInput(),this.isFocused||self.focus()}},setActiveOption:function($option,scroll,animate){var height_menu,height_item,y,scroll_top,scroll_bottom,self=this;self.$activeOption&&self.$activeOption.removeClass("active"),self.$activeOption=null,$option=$($option),$option.length&&(self.$activeOption=$option.addClass("active"),!scroll&&isset(scroll)||(height_menu=self.$dropdown_content.height(),height_item=self.$activeOption.outerHeight(!0),scroll=self.$dropdown_content.scrollTop()||0,y=self.$activeOption.offset().top-self.$dropdown_content.offset().top+scroll,scroll_top=y,scroll_bottom=y-height_menu+height_item,y+height_item>height_menu+scroll?self.$dropdown_content.stop().animate({scrollTop:scroll_bottom},animate?self.settings.scrollDuration:0):y<scroll&&self.$dropdown_content.stop().animate({scrollTop:scroll_top},animate?self.settings.scrollDuration:0)))},selectAll:function(){var self=this;"single"!==self.settings.mode&&(self.$activeItems=Array.prototype.slice.apply(self.$control.children(":not(input)").addClass("active")),self.$activeItems.length&&(self.hideInput(),self.close()),self.focus())},hideInput:function(){var self=this;self.setTextboxValue(""),self.$control_input.css({opacity:0,position:"absolute",left:self.rtl?1e4:-1e4}),self.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var self=this;self.isDisabled||(self.ignoreFocus=!0,self.$control_input[0].focus(),window.setTimeout(function(){self.ignoreFocus=!1,self.onFocus()},0))},blur:function(dest){this.$control_input[0].blur(),this.onBlur(null,dest)},getScoreFunction:function(query){return this.sifter.getScoreFunction(query,this.getSearchOptions())},getSearchOptions:function(){var settings=this.settings,sort=settings.sortField;return"string"==typeof sort&&(sort=[{field:sort}]),{fields:settings.searchField,conjunction:settings.searchConjunction,sort:sort}},search:function(query){var i,result,calculateScore,self=this,settings=self.settings,options=this.getSearchOptions();if(settings.score&&"function"!=typeof(calculateScore=self.settings.score.apply(this,[query])))throw new Error('Selectize "score" setting must be a function that returns a function');if(query!==self.lastQuery?(self.lastQuery=query,result=self.sifter.search(query,$.extend(options,{score:calculateScore})),self.currentResults=result):result=$.extend(!0,{},self.currentResults),settings.hideSelected)for(i=result.items.length-1;i>=0;i--)-1!==self.items.indexOf(hash_key(result.items[i].id))&&result.items.splice(i,1);return result},refreshOptions:function(triggerDropdown){var i,j,k,n,groups,groups_order,option,option_html,optgroup,optgroups,html,html_children,has_create_option,$active,$active_before,$create;void 0===triggerDropdown&&(triggerDropdown=!0);var self=this,query=$.trim(self.$control_input.val()),results=self.search(query),$dropdown_content=self.$dropdown_content,active_before=self.$activeOption&&hash_key(self.$activeOption.attr("data-value"));for(n=results.items.length,"number"==typeof self.settings.maxOptions&&(n=Math.min(n,self.settings.maxOptions)),groups={},groups_order=[],i=0;i<n;i++)for(option=self.options[results.items[i].id],option_html=self.render("option",option),optgroup=option[self.settings.optgroupField]||"",optgroups=$.isArray(optgroup)?optgroup:[optgroup],j=0,k=optgroups&&optgroups.length;j<k;j++)optgroup=optgroups[j],self.optgroups.hasOwnProperty(optgroup)||(optgroup=""),groups.hasOwnProperty(optgroup)||(groups[optgroup]=[],groups_order.push(optgroup)),groups[optgroup].push(option_html);for(this.settings.lockOptgroupOrder&&groups_order.sort(function(a,b){return(self.optgroups[a].$order||0)-(self.optgroups[b].$order||0)}),html=[],i=0,n=groups_order.length;i<n;i++)optgroup=groups_order[i],self.optgroups.hasOwnProperty(optgroup)&&groups[optgroup].length?(html_children=self.render("optgroup_header",self.optgroups[optgroup])||"",html_children+=groups[optgroup].join(""),html.push(self.render("optgroup",$.extend({},self.optgroups[optgroup],{html:html_children})))):html.push(groups[optgroup].join(""));if($dropdown_content.html(html.join("")),self.settings.highlight&&results.query.length&&results.tokens.length)for(i=0,n=results.tokens.length;i<n;i++)highlight($dropdown_content,results.tokens[i].regex);if(!self.settings.hideSelected)for(i=0,n=self.items.length;i<n;i++)self.getOption(self.items[i]).addClass("selected");has_create_option=self.canCreate(query),has_create_option&&($dropdown_content.prepend(self.render("option_create",{input:query})),$create=$($dropdown_content[0].childNodes[0])),self.hasOptions=results.items.length>0||has_create_option,self.hasOptions?(results.items.length>0?($active_before=active_before&&self.getOption(active_before),$active_before&&$active_before.length?$active=$active_before:"single"===self.settings.mode&&self.items.length&&($active=self.getOption(self.items[0])),$active&&$active.length||($active=$create&&!self.settings.addPrecedence?self.getAdjacentOption($create,1):$dropdown_content.find("[data-selectable]:first"))):$active=$create,self.setActiveOption($active),triggerDropdown&&!self.isOpen&&self.open()):(self.setActiveOption(null),triggerDropdown&&self.isOpen&&self.close())},addOption:function(data){var i,n,value,self=this;if($.isArray(data))for(i=0,n=data.length;i<n;i++)self.addOption(data[i]);else(value=self.registerOption(data))&&(self.userOptions[value]=!0,self.lastQuery=null,self.trigger("option_add",value,data))},registerOption:function(data){var key=hash_key(data[this.settings.valueField]);return!(!key||this.options.hasOwnProperty(key))&&(data.$order=data.$order||++this.order,this.options[key]=data,key)},registerOptionGroup:function(data){var key=hash_key(data[this.settings.optgroupValueField]);return!!key&&(data.$order=data.$order||++this.order,this.optgroups[key]=data,key)},addOptionGroup:function(id,data){data[this.settings.optgroupValueField]=id,(id=this.registerOptionGroup(data))&&this.trigger("optgroup_add",id,data)},removeOptionGroup:function(id){this.optgroups.hasOwnProperty(id)&&(delete this.optgroups[id],this.renderCache={},this.trigger("optgroup_remove",id))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(value,data){var $item,$item_new,value_new,index_item,cache_items,cache_options,order_old,self=this;if(value=hash_key(value),value_new=hash_key(data[self.settings.valueField]),null!==value&&self.options.hasOwnProperty(value)){if("string"!=typeof value_new)throw new Error("Value must be set in option data");order_old=self.options[value].$order,value_new!==value&&(delete self.options[value],-1!==(index_item=self.items.indexOf(value))&&self.items.splice(index_item,1,value_new)),data.$order=data.$order||order_old,self.options[value_new]=data,cache_items=self.renderCache.item,cache_options=self.renderCache.option,cache_items&&(delete cache_items[value],delete cache_items[value_new]),cache_options&&(delete cache_options[value],delete cache_options[value_new]),-1!==self.items.indexOf(value_new)&&($item=self.getItem(value),$item_new=$(self.render("item",data)),$item.hasClass("active")&&$item_new.addClass("active"),$item.replaceWith($item_new)),self.lastQuery=null,self.isOpen&&self.refreshOptions(!1)}},removeOption:function(value,silent){var self=this;value=hash_key(value);var cache_items=self.renderCache.item,cache_options=self.renderCache.option;cache_items&&delete cache_items[value],cache_options&&delete cache_options[value],delete self.userOptions[value],delete self.options[value],self.lastQuery=null,self.trigger("option_remove",value),self.removeItem(value,silent)},clearOptions:function(){var self=this;self.loadedSearches={},self.userOptions={},self.renderCache={},self.options=self.sifter.items={},self.lastQuery=null,self.trigger("option_clear"),self.clear()},getOption:function(value){return this.getElementWithValue(value,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function($option,direction){var $options=this.$dropdown.find("[data-selectable]"),index=$options.index($option)+direction;return index>=0&&index<$options.length?$options.eq(index):$()},getElementWithValue:function(value,$els){if(void 0!==(value=hash_key(value))&&null!==value)for(var i=0,n=$els.length;i<n;i++)if($els[i].getAttribute("data-value")===value)return $($els[i]);return $()},getItem:function(value){return this.getElementWithValue(value,this.$control.children())},addItems:function(values,silent){for(var items=$.isArray(values)?values:[values],i=0,n=items.length;i<n;i++)this.isPending=i<n-1,this.addItem(items[i],silent)},addItem:function(value,silent){debounce_events(this,silent?[]:["change"],function(){var $item,$option,$options,value_next,wasFull,self=this,inputMode=self.settings.mode;if(value=hash_key(value),-1!==self.items.indexOf(value))return void("single"===inputMode&&self.close());self.options.hasOwnProperty(value)&&("single"===inputMode&&self.clear(silent),"multi"===inputMode&&self.isFull()||($item=$(self.render("item",self.options[value])),wasFull=self.isFull(),self.items.splice(self.caretPos,0,value),self.insertAtCaret($item),(!self.isPending||!wasFull&&self.isFull())&&self.refreshState(),self.isSetup&&($options=self.$dropdown_content.find("[data-selectable]"),self.isPending||($option=self.getOption(value),value_next=self.getAdjacentOption($option,1).attr("data-value"),self.refreshOptions(self.isFocused&&"single"!==inputMode),value_next&&self.setActiveOption(self.getOption(value_next))),!$options.length||self.isFull()?self.close():self.positionDropdown(),self.updatePlaceholder(),self.trigger("item_add",value,$item),self.updateOriginalInput({silent:silent}))))})},removeItem:function(value,silent){var $item,i,idx,self=this;$item="object"==typeof value?value:self.getItem(value),value=hash_key($item.attr("data-value")),-1!==(i=self.items.indexOf(value))&&($item.remove(),$item.hasClass("active")&&(idx=self.$activeItems.indexOf($item[0]),self.$activeItems.splice(idx,1)),self.items.splice(i,1),self.lastQuery=null,!self.settings.persist&&self.userOptions.hasOwnProperty(value)&&self.removeOption(value,silent),i<self.caretPos&&self.setCaret(self.caretPos-1),self.refreshState(),self.updatePlaceholder(),self.updateOriginalInput({silent:silent}),self.positionDropdown(),self.trigger("item_remove",value,$item))},createItem:function(input,triggerDropdown){var self=this,caret=self.caretPos;input=input||$.trim(self.$control_input.val()||"");var callback=arguments[arguments.length-1];if("function"!=typeof callback&&(callback=function(){}),"boolean"!=typeof triggerDropdown&&(triggerDropdown=!0),!self.canCreate(input))return callback(),!1;self.lock();var setup="function"==typeof self.settings.create?this.settings.create:function(input){var data={};return data[self.settings.labelField]=input,data[self.settings.valueField]=input,data},create=once(function(data){if(self.unlock(),!data||"object"!=typeof data)return callback();var value=hash_key(data[self.settings.valueField]);if("string"!=typeof value)return callback();self.setTextboxValue(""),self.addOption(data),self.setCaret(caret),self.addItem(value),self.refreshOptions(triggerDropdown&&"single"!==self.settings.mode),callback(data)}),output=setup.apply(this,[input,create]);return void 0!==output&&create(output),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){var self=this;self.isRequired&&(self.items.length&&(self.isInvalid=!1),self.$control_input.prop("required",void 0)),self.refreshClasses()},refreshClasses:function(){var self=this,isFull=self.isFull(),isLocked=self.isLocked;self.$wrapper.toggleClass("rtl",self.rtl),self.$control.toggleClass("focus",self.isFocused).toggleClass("disabled",self.isDisabled).toggleClass("required",self.isRequired).toggleClass("invalid",self.isInvalid).toggleClass("locked",isLocked).toggleClass("full",isFull).toggleClass("not-full",!isFull).toggleClass("input-active",self.isFocused&&!self.isInputHidden).toggleClass("dropdown-active",self.isOpen).toggleClass("has-options",!$.isEmptyObject(self.options)).toggleClass("has-items",self.items.length>0),self.$control_input.data("grow",!isFull&&!isLocked)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(opts){var i,n,options,label,self=this;if(opts=opts||{},1===self.tagType){for(options=[],i=0,n=self.items.length;i<n;i++)label=self.options[self.items[i]][self.settings.labelField]||"",options.push('<option value="'+escape_html(self.items[i])+'" selected="selected">'+escape_html(label)+"</option>");options.length||this.$input.attr("multiple")||options.push('<option value="" selected="selected"></option>'),self.$input.html(options.join(""))}else self.$input.val(self.getValue()),self.$input.attr("value",self.$input.val());self.isSetup&&(opts.silent||self.trigger("change",self.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var $input=this.$control_input;this.items.length?$input.removeAttr("placeholder"):$input.attr("placeholder",this.settings.placeholder),$input.triggerHandler("update",{force:!0})}},open:function(){var self=this;self.isLocked||self.isOpen||"multi"===self.settings.mode&&self.isFull()||(self.focus(),self.isOpen=!0,self.refreshState(),self.$dropdown.css({visibility:"hidden",display:"block"}),self.positionDropdown(),self.positionDropdown(),self.$dropdown.css({visibility:"visible"}),self.trigger("dropdown_open",self.$dropdown))},close:function(){var self=this,trigger=self.isOpen;"single"===self.settings.mode&&self.items.length&&self.hideInput(),self.isOpen=!1,self.$dropdown.hide(),self.setActiveOption(null),self.refreshState(),trigger&&self.trigger("dropdown_close",self.$dropdown)},positionDropdown:function(){var $control=this.$control,offset="body"===this.settings.dropdownParent?$control.offset():$control.position();offset.top+=$control.outerHeight(!0),this.$dropdown.css({width:$control.outerWidth(),top:offset.top,left:offset.left})},clear:function(silent){var self=this;self.items.length&&(self.$control.children(":not(input)").remove(),self.items=[],self.lastQuery=null,self.setCaret(0),self.setActiveItem(null),self.updatePlaceholder(),self.updateOriginalInput({silent:silent}),self.refreshState(),self.showInput(),self.trigger("clear"))},insertAtCaret:function($el){var caret=Math.min(this.caretPos,this.items.length);0===caret?this.$control.prepend($el):$(this.$control[0].childNodes[caret]).before($el),this.setCaret(caret+1)},deleteSelection:function(e){var i,n,direction,selection,values,caret,option_select,$option_select,$tail,self=this;if(direction=e&&8===e.keyCode?-1:1,selection=getSelection(self.$control_input[0]),self.$activeOption&&!self.settings.hideSelected&&(option_select=self.getAdjacentOption(self.$activeOption,-1).attr("data-value")),values=[],self.$activeItems.length){for($tail=self.$control.children(".active:"+(direction>0?"last":"first")),caret=self.$control.children(":not(input)").index($tail),direction>0&&caret++,i=0,n=self.$activeItems.length;i<n;i++)values.push($(self.$activeItems[i]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(self.isFocused||"single"===self.settings.mode)&&self.items.length&&(direction<0&&0===selection.start&&0===selection.length?values.push(self.items[self.caretPos-1]):direction>0&&selection.start===self.$control_input.val().length&&values.push(self.items[self.caretPos]));if(!values.length||"function"==typeof self.settings.onDelete&&!1===self.settings.onDelete.apply(self,[values]))return!1;for(void 0!==caret&&self.setCaret(caret);values.length;)self.removeItem(values.pop());return self.showInput(),self.positionDropdown(),self.refreshOptions(!0),option_select&&($option_select=self.getOption(option_select),$option_select.length&&self.setActiveOption($option_select)),!0},advanceSelection:function(direction,e){var tail,selection,idx,valueLength,$tail,self=this;0!==direction&&(self.rtl&&(direction*=-1),tail=direction>0?"last":"first",selection=getSelection(self.$control_input[0]),self.isFocused&&!self.isInputHidden?(valueLength=self.$control_input.val().length,(direction<0?0===selection.start&&0===selection.length:selection.start===valueLength)&&!valueLength&&self.advanceCaret(direction,e)):($tail=self.$control.children(".active:"+tail),$tail.length&&(idx=self.$control.children(":not(input)").index($tail),self.setActiveItem(null),self.setCaret(direction>0?idx+1:idx))))},advanceCaret:function(direction,e){var fn,$adj,self=this;0!==direction&&(fn=direction>0?"next":"prev",self.isShiftDown?($adj=self.$control_input[fn](),$adj.length&&(self.hideInput(),self.setActiveItem($adj),e&&e.preventDefault())):self.setCaret(self.caretPos+direction))},setCaret:function(i){var self=this;if(i="single"===self.settings.mode?self.items.length:Math.max(0,Math.min(self.items.length,i)),!self.isPending){var j,n,$children,$child;for($children=self.$control.children(":not(input)"),j=0,n=$children.length;j<n;j++)$child=$($children[j]).detach(),j<i?self.$control_input.before($child):self.$control.append($child)}self.caretPos=i},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var self=this;self.$input.prop("disabled",!0),self.$control_input.prop("disabled",!0).prop("tabindex",-1),self.isDisabled=!0,self.lock()},enable:function(){var self=this;self.$input.prop("disabled",!1),self.$control_input.prop("disabled",!1).prop("tabindex",self.tabIndex),self.isDisabled=!1,self.unlock()},destroy:function(){var self=this,eventNS=self.eventNS,revertSettings=self.revertSettings;self.trigger("destroy"),self.off(),self.$wrapper.remove(),self.$dropdown.remove(),self.$input.html("").append(revertSettings.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:revertSettings.tabindex}).show(),self.$control_input.removeData("grow"),self.$input.removeData("selectize"),$(window).off(eventNS),$(document).off(eventNS),$(document.body).off(eventNS),delete self.$input[0].selectize},render:function(templateName,data){var value,id,html="",cache=!1,self=this,regex_tag=/^[\t \r\n]*<([a-z][a-z0-9\-_]*(?:\:[a-z][a-z0-9\-_]*)?)/i;return"option"!==templateName&&"item"!==templateName||(value=hash_key(data[self.settings.valueField]),cache=!!value),cache&&(isset(self.renderCache[templateName])||(self.renderCache[templateName]={}),self.renderCache[templateName].hasOwnProperty(value))?self.renderCache[templateName][value]:(html=self.settings.render[templateName].apply(this,[data,escape_html]),"option"!==templateName&&"option_create"!==templateName||(html=html.replace(regex_tag,"<$1 data-selectable")),"optgroup"===templateName&&(id=data[self.settings.optgroupValueField]||"",html=html.replace(regex_tag,'<$1 data-group="'+escape_replace(escape_html(id))+'"')),"option"!==templateName&&"item"!==templateName||(html=html.replace(regex_tag,'<$1 data-value="'+escape_replace(escape_html(value||""))+'"')),cache&&(self.renderCache[templateName][value]=html),html)},clearCache:function(templateName){var self=this;void 0===templateName?self.renderCache={}:delete self.renderCache[templateName]},canCreate:function(input){var self=this;if(!self.settings.create)return!1;var filter=self.settings.createFilter;return input.length&&("function"!=typeof filter||filter.apply(self,[input]))&&("string"!=typeof filter||new RegExp(filter).test(input))&&(!(filter instanceof RegExp)||filter.test(input))}}),Selectize.count=0,Selectize.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},$.fn.selectize=function(settings_user){var defaults=$.fn.selectize.defaults,settings=$.extend({},defaults,settings_user),attr_data=settings.dataAttr,field_label=settings.labelField,field_value=settings.valueField,field_optgroup=settings.optgroupField,field_optgroup_label=settings.optgroupLabelField,field_optgroup_value=settings.optgroupValueField,init_textbox=function($input,settings_element){var i,n,values,option,data_raw=$input.attr(attr_data);if(data_raw)for(settings_element.options=JSON.parse(data_raw),i=0,n=settings_element.options.length;i<n;i++)settings_element.items.push(settings_element.options[i][field_value]);else{var value=$.trim($input.val()||"");if(!settings.allowEmptyOption&&!value.length)return;for(values=value.split(settings.delimiter),i=0,n=values.length;i<n;i++)option={},option[field_label]=values[i],option[field_value]=values[i],settings_element.options.push(option);settings_element.items=values}},init_select=function($input,settings_element){var i,n,tagName,$children,options=settings_element.options,optionsMap={},readData=function($el){var data=attr_data&&$el.attr(attr_data);return"string"==typeof data&&data.length?JSON.parse(data):null},addOption=function($option,group){$option=$($option);var value=hash_key($option.attr("value"));if(value||settings.allowEmptyOption)if(optionsMap.hasOwnProperty(value)){if(group){var arr=optionsMap[value][field_optgroup];arr?$.isArray(arr)?arr.push(group):optionsMap[value][field_optgroup]=[arr,group]:optionsMap[value][field_optgroup]=group}}else{var option=readData($option)||{};option[field_label]=option[field_label]||$option.text(),option[field_value]=option[field_value]||value,option[field_optgroup]=option[field_optgroup]||group,optionsMap[value]=option,options.push(option),$option.is(":selected")&&settings_element.items.push(value)}};for(settings_element.maxItems=$input.attr("multiple")?null:1,$children=$input.children(),i=0,n=$children.length;i<n;i++)tagName=$children[i].tagName.toLowerCase(),"optgroup"===tagName?function($optgroup){var i,n,id,optgroup,$options;for($optgroup=$($optgroup),id=$optgroup.attr("label"),id&&(optgroup=readData($optgroup)||{},optgroup[field_optgroup_label]=id,optgroup[field_optgroup_value]=id,settings_element.optgroups.push(optgroup)),$options=$("option",$optgroup),i=0,n=$options.length;i<n;i++)addOption($options[i],id)}($children[i]):"option"===tagName&&addOption($children[i])};return this.each(function(){if(!this.selectize){var $input=$(this),tag_name=this.tagName.toLowerCase(),placeholder=$input.attr("placeholder")||$input.attr("data-placeholder");placeholder||settings.allowEmptyOption||(placeholder=$input.children('option[value=""]').text());var settings_element={placeholder:placeholder,options:[],optgroups:[],items:[]};"select"===tag_name?init_select($input,settings_element):init_textbox($input,settings_element),new Selectize($input,$.extend(!0,{},defaults,settings_element,settings_user))}})},$.fn.selectize.defaults=Selectize.defaults,$.fn.selectize.support={validity:SUPPORTS_VALIDITY_API},Selectize.define("drag_drop",function(options){if(!$.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var self=this;self.lock=function(){var original=self.lock;return function(){var sortable=self.$control.data("sortable");return sortable&&sortable.disable(),original.apply(self,arguments)}}(),self.unlock=function(){var original=self.unlock;return function(){var sortable=self.$control.data("sortable");return sortable&&sortable.enable(),original.apply(self,arguments)}}(),self.setup=function(){var original=self.setup;return function(){original.apply(this,arguments);var $control=self.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:self.isLocked,start:function(e,ui){ui.placeholder.css("width",ui.helper.css("width")),$control.css({overflow:"visible"})},stop:function(){$control.css({overflow:"hidden"});var active=self.$activeItems?self.$activeItems.slice():null,values=[];$control.children("[data-value]").each(function(){values.push($(this).attr("data-value"))}),self.setValue(values),self.setActiveItem(active)}})}}()}}),Selectize.define("dropdown_header",function(options){var self=this;options=$.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(data){return'<div class="'+data.headerClass+'"><div class="'+data.titleRowClass+'"><span class="'+data.labelClass+'">'+data.title+'</span><a href="javascript:void(0)" class="'+data.closeClass+'">&times;</a></div></div>'}},options),self.setup=function(){var original=self.setup;return function(){original.apply(self,arguments),self.$dropdown_header=$(options.html(options)),self.$dropdown.prepend(self.$dropdown_header)}}()}),Selectize.define("optgroup_columns",function(options){var self=this;options=$.extend({equalizeWidth:!0,equalizeHeight:!0},options),this.getAdjacentOption=function($option,direction){var $options=$option.closest("[data-group]").find("[data-selectable]"),index=$options.index($option)+direction;return index>=0&&index<$options.length?$options.eq(index):$()},this.onKeyDown=function(){var original=self.onKeyDown;return function(e){var index,$option,$options,$optgroup;return!this.isOpen||37!==e.keyCode&&39!==e.keyCode?original.apply(this,arguments):(self.ignoreHover=!0,$optgroup=this.$activeOption.closest("[data-group]"),index=$optgroup.find("[data-selectable]").index(this.$activeOption),$optgroup=37===e.keyCode?$optgroup.prev("[data-group]"):$optgroup.next("[data-group]"),$options=$optgroup.find("[data-selectable]"),$option=$options.eq(Math.min($options.length-1,index)),void($option.length&&this.setActiveOption($option)))}}();var getScrollbarWidth=function(){var div,width=getScrollbarWidth.width,doc=document;return void 0===width&&(div=doc.createElement("div"),div.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',div=div.firstChild,doc.body.appendChild(div),width=getScrollbarWidth.width=div.offsetWidth-div.clientWidth,doc.body.removeChild(div)),width},equalizeSizes=function(){var i,n,height_max,width,width_last,width_parent,$optgroups;if($optgroups=$("[data-group]",self.$dropdown_content),(n=$optgroups.length)&&self.$dropdown_content.width()){if(options.equalizeHeight){for(height_max=0,i=0;i<n;i++)height_max=Math.max(height_max,$optgroups.eq(i).height());$optgroups.css({height:height_max})}options.equalizeWidth&&(width_parent=self.$dropdown_content.innerWidth()-getScrollbarWidth(),width=Math.round(width_parent/n),$optgroups.css({width:width}),n>1&&(width_last=width_parent-width*(n-1),$optgroups.eq(n-1).css({width:width_last})))}};(options.equalizeHeight||options.equalizeWidth)&&(hook.after(this,"positionDropdown",equalizeSizes),hook.after(this,"refreshOptions",equalizeSizes))}),Selectize.define("remove_button",function(options){if("single"!==this.settings.mode){options=$.extend({label:"&times;",title:"Remove",className:"remove",append:!0},options);var self=this,html='<a href="javascript:void(0)" class="'+options.className+'" tabindex="-1" title="'+escape_html(options.title)+'"></a>',append=function(html_container,html_element){var pos=html_container.search(/(<\/[^>]+>\s*)$/);return html_container.substring(0,pos)+html_element+html_container.substring(pos)};this.setup=function(){var original=self.setup;return function(){if(options.append){var render_item=self.settings.render.item;self.settings.render.item=function(data){return append(render_item.apply(this,arguments),html)}}original.apply(this,arguments),this.$control.on("click","."+options.className,function(e){if(e.preventDefault(),!self.isLocked){var $item=$(e.currentTarget).parent();self.setActiveItem($item),self.deleteSelection()&&self.setCaret(self.items.length)}})}}()}}),Selectize.define("restore_on_backspace",function(options){var self=this;options.text=options.text||function(option){return option[this.settings.labelField]},this.onKeyDown=function(){var original=self.onKeyDown;return function(e){var index,option;return 8===e.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(index=this.caretPos-1)>=0&&index<this.items.length?(option=this.options[this.items[index]],this.deleteSelection(e)&&(this.setTextboxValue(options.text.apply(this,[option])),this.refreshOptions(!0)),void e.preventDefault()):original.apply(this,arguments)}}()}),Selectize})}).call(exports,__webpack_require__(1))},function(module,exports,__webpack_require__){(function(jQuery){(function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled,classes:a.className}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:!0===c?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||!1===a?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&amp;"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match&&this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):""},AbstractChosen.prototype.result_add_group=function(a){var b,c;return(a.search_match||a.group_match)&&a.active_options>0?(b=[],b.push("group-result"),a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.innerHTML=a.search_text,this.outerHTML(c)):""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l;for(this.no_results_clear(),d=0,f=this.get_search_text(),a=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp(a,"i"),c=this.get_search_regex(a),l=this.results_data,j=0,k=l.length;k>j;j++)b=l[j],b.search_match=!1,e=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(e=this.results_data[b.group_array_index],0===e.active_options&&e.search_match&&(d+=1),e.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.text,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(d+=1),b.search_match?(f.length&&(g=b.search_text.search(i),h=b.search_text.substr(0,g+f.length)+"</em>"+b.search_text.substr(g+f.length),b.search_text=h.substr(0,g)+"<em>"+h.substr(g)),null!=e&&(e.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>d&&f.length?(this.update_results_content(""),this.no_results(f)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.get_search_regex=function(a){var b;return b=this.search_contains?"":"^",new RegExp(b+a,"i")},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return!(this.is_multiple&&!this.display_selected_options&&a.selected)&&(!(!this.display_disabled_options&&a.disabled)&&!a.empty)},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!/iP(od|hone)/i.test(window.navigator.userAgent)&&(!/Android/i.test(window.navigator.userAgent)||!/Mobile/i.test(window.navigator.userAgent))},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d instanceof Chosen?d.destroy():d instanceof Chosen||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={class:b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},Chosen.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(b){a.container_mousedown(b)}),this.container.bind("touchend.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b*=40),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),(b=c+this.result_highlight.outerHeight())>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{class:"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{class:"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],!this.form_field.options[b.options_index].disabled&&(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,e,f,g,h,i,j;if(this.is_multiple){for(0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}).call(this)}).call(exports,__webpack_require__(1))},,,,function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(window,factory){"use strict";__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0!==(__WEBPACK_AMD_DEFINE_RESULT__=function(){return factory.apply(window)}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}("object"==typeof global?global:this,function(){"use strict";function isWindow(obj){return null!==obj&&obj===obj.window}function getWindow(elem){return isWindow(elem)?elem:9===elem.nodeType&&elem.defaultView}function isObject(value){var type=typeof value;return"function"===type||"object"===type&&!!value}function isDOMNode(obj){return isObject(obj)&&obj.nodeType>0}function getWavesElements(nodes){var stringRepr=toString.call(nodes);return"[object String]"===stringRepr?$$(nodes):isObject(nodes)&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(stringRepr)&&nodes.hasOwnProperty("length")?nodes:isDOMNode(nodes)?[nodes]:[]}function offset(elem){var docElem,win,box={top:0,left:0},doc=elem&&elem.ownerDocument;return docElem=doc.documentElement,void 0!==elem.getBoundingClientRect&&(box=elem.getBoundingClientRect()),win=getWindow(doc),{top:box.top+win.pageYOffset-docElem.clientTop,left:box.left+win.pageXOffset-docElem.clientLeft}}function convertStyle(styleObj){var style="";for(var prop in styleObj)styleObj.hasOwnProperty(prop)&&(style+=prop+":"+styleObj[prop]+";");return style}function removeRipple(e,el,ripple){if(ripple){ripple.classList.remove("waves-rippling");var relativeX=ripple.getAttribute("data-x"),relativeY=ripple.getAttribute("data-y"),scale=ripple.getAttribute("data-scale"),translate=ripple.getAttribute("data-translate"),diff=Date.now()-Number(ripple.getAttribute("data-hold")),delay=350-diff;delay<0&&(delay=0),"mousemove"===e.type&&(delay=150);var duration="mousemove"===e.type?2500:Effect.duration;setTimeout(function(){var style={top:relativeY+"px",left:relativeX+"px",opacity:"0","-webkit-transition-duration":duration+"ms","-moz-transition-duration":duration+"ms","-o-transition-duration":duration+"ms","transition-duration":duration+"ms","-webkit-transform":scale+" "+translate,"-moz-transform":scale+" "+translate,"-ms-transform":scale+" "+translate,"-o-transform":scale+" "+translate,transform:scale+" "+translate};ripple.setAttribute("style",convertStyle(style)),setTimeout(function(){try{el.removeChild(ripple)}catch(e){return!1}},duration)},delay)}}function getWavesEffectElement(e){if(!1===TouchHandler.allowEvent(e))return null;for(var element=null,target=e.target||e.srcElement;null!==target.parentElement;){if(target.classList.contains("waves-effect")&&!(target instanceof SVGElement)){element=target;break}target=target.parentElement}return element}function showEffect(e){var element=getWavesEffectElement(e);if(null!==element){if(element.disabled||element.getAttribute("disabled")||element.classList.contains("disabled"))return;if(TouchHandler.registerEvent(e),"touchstart"===e.type&&Effect.delay){var hidden=!1,timer=setTimeout(function(){timer=null,Effect.show(e,element)},Effect.delay),hideEffect=function(hideEvent){timer&&(clearTimeout(timer),timer=null,Effect.show(e,element)),hidden||(hidden=!0,Effect.hide(hideEvent,element))},touchMove=function(moveEvent){timer&&(clearTimeout(timer),timer=null),hideEffect(moveEvent)};element.addEventListener("touchmove",touchMove,!1),element.addEventListener("touchend",hideEffect,!1),element.addEventListener("touchcancel",hideEffect,!1)}else Effect.show(e,element),isTouchAvailable&&(element.addEventListener("touchend",Effect.hide,!1),element.addEventListener("touchcancel",Effect.hide,!1)),element.addEventListener("mouseup",Effect.hide,!1),element.addEventListener("mouseleave",Effect.hide,!1)}}var Waves=Waves||{},$$=document.querySelectorAll.bind(document),toString=Object.prototype.toString,isTouchAvailable="ontouchstart"in window,Effect={duration:750,delay:200,show:function(e,element,velocity){if(2===e.button)return!1;element=element||this;var ripple=document.createElement("div");ripple.className="waves-ripple waves-rippling",element.appendChild(ripple);var pos=offset(element),relativeY=0,relativeX=0;"touches"in e&&e.touches.length?(relativeY=e.touches[0].pageY-pos.top,relativeX=e.touches[0].pageX-pos.left):(relativeY=e.pageY-pos.top,relativeX=e.pageX-pos.left),relativeX=relativeX>=0?relativeX:0,relativeY=relativeY>=0?relativeY:0;var scale="scale("+element.clientWidth/100*3+")",translate="translate(0,0)";velocity&&(translate="translate("+velocity.x+"px, "+velocity.y+"px)"),ripple.setAttribute("data-hold",Date.now()),ripple.setAttribute("data-x",relativeX),ripple.setAttribute("data-y",relativeY),ripple.setAttribute("data-scale",scale),ripple.setAttribute("data-translate",translate);var rippleStyle={top:relativeY+"px",left:relativeX+"px"};ripple.classList.add("waves-notransition"),ripple.setAttribute("style",convertStyle(rippleStyle)),ripple.classList.remove("waves-notransition"),rippleStyle["-webkit-transform"]=scale+" "+translate,rippleStyle["-moz-transform"]=scale+" "+translate,rippleStyle["-ms-transform"]=scale+" "+translate,rippleStyle["-o-transform"]=scale+" "+translate,rippleStyle.transform=scale+" "+translate,rippleStyle.opacity="1";var duration="mousemove"===e.type?2500:Effect.duration;rippleStyle["-webkit-transition-duration"]=duration+"ms",rippleStyle["-moz-transition-duration"]=duration+"ms",rippleStyle["-o-transition-duration"]=duration+"ms",rippleStyle["transition-duration"]=duration+"ms",ripple.setAttribute("style",convertStyle(rippleStyle))},hide:function(e,element){element=element||this;for(var ripples=element.getElementsByClassName("waves-rippling"),i=0,len=ripples.length;i<len;i++)removeRipple(e,element,ripples[i])}},TagWrapper={input:function(element){var parent=element.parentNode;if("i"!==parent.tagName.toLowerCase()||!parent.classList.contains("waves-effect")){var wrapper=document.createElement("i");wrapper.className=element.className+" waves-input-wrapper",element.className="waves-button-input",parent.replaceChild(wrapper,element),wrapper.appendChild(element);var elementStyle=window.getComputedStyle(element,null),color=elementStyle.color,backgroundColor=elementStyle.backgroundColor;wrapper.setAttribute("style","color:"+color+";background:"+backgroundColor),element.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(element){var parent=element.parentNode;if("i"!==parent.tagName.toLowerCase()||!parent.classList.contains("waves-effect")){var wrapper=document.createElement("i");parent.replaceChild(wrapper,element),wrapper.appendChild(element)}}},TouchHandler={touches:0,allowEvent:function(e){var allow=!0;return/^(mousedown|mousemove)$/.test(e.type)&&TouchHandler.touches&&(allow=!1),allow},registerEvent:function(e){var eType=e.type;"touchstart"===eType?TouchHandler.touches+=1:/^(touchend|touchcancel)$/.test(eType)&&setTimeout(function(){TouchHandler.touches&&(TouchHandler.touches-=1)},500)}};return Waves.init=function(options){var body=document.body;options=options||{},"duration"in options&&(Effect.duration=options.duration),"delay"in options&&(Effect.delay=options.delay),isTouchAvailable&&(body.addEventListener("touchstart",showEffect,!1),body.addEventListener("touchcancel",TouchHandler.registerEvent,!1),body.addEventListener("touchend",TouchHandler.registerEvent,!1)),body.addEventListener("mousedown",showEffect,!1)},Waves.attach=function(elements,classes){elements=getWavesElements(elements),"[object Array]"===toString.call(classes)&&(classes=classes.join(" ")),classes=classes?" "+classes:"";for(var element,tagName,i=0,len=elements.length;i<len;i++)element=elements[i],tagName=element.tagName.toLowerCase(),-1!==["input","img"].indexOf(tagName)&&(TagWrapper[tagName](element),element=element.parentElement),-1===element.className.indexOf("waves-effect")&&(element.className+=" waves-effect"+classes)},Waves.ripple=function(elements,options){elements=getWavesElements(elements);var elementsLen=elements.length;if(options=options||{},options.wait=options.wait||0,options.position=options.position||null,elementsLen)for(var element,pos,off,centre={},i=0,mousedown={type:"mousedown",button:1};i<elementsLen;i++)if(element=elements[i],pos=options.position||{x:element.clientWidth/2,y:element.clientHeight/2},off=offset(element),centre.x=off.left+pos.x,centre.y=off.top+pos.y,mousedown.pageX=centre.x,mousedown.pageY=centre.y,Effect.show(mousedown,element),options.wait>=0&&null!==options.wait){var mouseup={type:"mouseup",button:1};setTimeout(function(mouseup,element){return function(){Effect.hide(mouseup,element)}}(mouseup,element),options.wait)}},Waves.calm=function(elements){elements=getWavesElements(elements);for(var mouseup={type:"mouseup",button:1},i=0,len=elements.length;i<len;i++)Effect.hide(mouseup,elements[i])},Waves.displayEffect=function(options){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),Waves.init(options)},Waves})}).call(exports,__webpack_require__(6))},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(factory){var registeredInModuleLoader=!1;if(__WEBPACK_AMD_DEFINE_FACTORY__=factory,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),registeredInModuleLoader=!0,module.exports=factory(),registeredInModuleLoader=!0,!registeredInModuleLoader){var OldCookies=window.Cookies,api=window.Cookies=factory();api.noConflict=function(){return window.Cookies=OldCookies,api}}}(function(){function extend(){for(var i=0,result={};i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes)result[key]=attributes[key]}return result}function init(converter){function api(key,value,attributes){var result;if("undefined"!=typeof document){if(arguments.length>1){if(attributes=extend({path:"/"},api.defaults,attributes),"number"==typeof attributes.expires){var expires=new Date;expires.setMilliseconds(expires.getMilliseconds()+864e5*attributes.expires),attributes.expires=expires}attributes.expires=attributes.expires?attributes.expires.toUTCString():"";try{result=JSON.stringify(value),/^[\{\[]/.test(result)&&(value=result)}catch(e){}value=converter.write?converter.write(value,key):encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),key=encodeURIComponent(String(key)),key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes="";for(var attributeName in attributes)attributes[attributeName]&&(stringifiedAttributes+="; "+attributeName,!0!==attributes[attributeName]&&(stringifiedAttributes+="="+attributes[attributeName]));return document.cookie=key+"="+value+stringifiedAttributes}key||(result={});for(var cookies=document.cookie?document.cookie.split("; "):[],rdecode=/(%[0-9A-Z]{2})+/g,i=0;i<cookies.length;i++){var parts=cookies[i].split("="),cookie=parts.slice(1).join("=");'"'===cookie.charAt(0)&&(cookie=cookie.slice(1,-1));try{var name=parts[0].replace(rdecode,decodeURIComponent);if(cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent),this.json)try{cookie=JSON.parse(cookie)}catch(e){}if(key===name){result=cookie;break}key||(result[name]=cookie)}catch(e){}}return result}}return api.set=api,api.get=function(key){return api.call(api,key)},api.getJSON=function(){return api.apply({json:!0},[].slice.call(arguments))},api.defaults={},api.remove=function(key,attributes){api(key,"",extend(attributes,{expires:-1}))},api.withConverter=init,api}return init(function(){})})},function(module,exports){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var cachedSetTimeout,cachedClearTimeout,process=module.exports={};!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports,__webpack_require__){(function(__webpack_provided_window_dot_jQuery,jQuery){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;/*! VelocityJS.org (1.2.3). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
  /*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
  !function(a){function b(a){var b=a.length,d=c.type(a);return"function"!==d&&!c.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===d||0===b||"number"==typeof b&&b>0&&b-1 in a))}if(!__webpack_provided_window_dot_jQuery){var c=function(a,b){return new c.fn.init(a,b)};c.isWindow=function(a){return null!=a&&a==a.window},c.type=function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?e[g.call(a)]||"object":typeof a},c.isArray=Array.isArray||function(a){return"array"===c.type(a)},c.isPlainObject=function(a){var b;if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!f.call(a,"constructor")&&!f.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}for(b in a);return void 0===b||f.call(a,b)},c.each=function(a,c,d){var f=0,g=a.length,h=b(a);if(d){if(h)for(;g>f&&!1!==c.apply(a[f],d);f++);else for(f in a)if(!1===c.apply(a[f],d))break}else if(h)for(;g>f&&!1!==c.call(a[f],f,a[f]);f++);else for(f in a)if(!1===c.call(a[f],f,a[f]))break;return a},c.data=function(a,b,e){if(void 0===e){var f=a[c.expando],g=f&&d[f];if(void 0===b)return g;if(g&&b in g)return g[b]}else if(void 0!==b){var f=a[c.expando]||(a[c.expando]=++c.uuid);return d[f]=d[f]||{},d[f][b]=e,e}},c.removeData=function(a,b){var e=a[c.expando],f=e&&d[e];f&&c.each(b,function(a,b){delete f[b]})},c.extend=function(){var a,b,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;for("boolean"==typeof h&&(k=h,h=arguments[i]||{},i++),"object"!=typeof h&&"function"!==c.type(h)&&(h={}),i===j&&(h=this,i--);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],h!==d&&(k&&d&&(c.isPlainObject(d)||(b=c.isArray(d)))?(b?(b=!1,g=a&&c.isArray(a)?a:[]):g=a&&c.isPlainObject(a)?a:{},h[e]=c.extend(k,g,d)):void 0!==d&&(h[e]=d));return h},c.queue=function(a,d,e){if(a){d=(d||"fx")+"queue";var g=c.data(a,d);return e?(!g||c.isArray(e)?g=c.data(a,d,function(a,c){var d=c||[];return null!=a&&(b(Object(a))?function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];a.length=e}(d,"string"==typeof a?[a]:a):[].push.call(d,a)),d}(e)):g.push(e),g):g||[]}},c.dequeue=function(a,b){c.each(a.nodeType?[a]:a,function(a,d){b=b||"fx";var e=c.queue(d,b),f=e.shift();"inprogress"===f&&(f=e.shift()),f&&("fx"===b&&e.unshift("inprogress"),f.call(d,function(){c.dequeue(d,b)}))})},c.fn=c.prototype={init:function(a){if(a.nodeType)return this[0]=a,this;throw new Error("Not a DOM node.")},offset:function(){var b=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:b.top+(a.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:b.left+(a.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function a(){for(var a=this.offsetParent||document;a&&"html"===!a.nodeType.toLowerCase&&"static"===a.style.position;)a=a.offsetParent;return a||document}var b=this[0],a=a.apply(b),d=this.offset(),e=/^(?:body|html)$/i.test(a.nodeName)?{top:0,left:0}:c(a).offset();return d.top-=parseFloat(b.style.marginTop)||0,d.left-=parseFloat(b.style.marginLeft)||0,a.style&&(e.top+=parseFloat(a.style.borderTopWidth)||0,e.left+=parseFloat(a.style.borderLeftWidth)||0),{top:d.top-e.top,left:d.left-e.left}}};var d={};c.expando="velocity"+(new Date).getTime(),c.uuid=0;for(var e={},f=e.hasOwnProperty,g=e.toString,h="Boolean Number String Function Array Date RegExp Object Error".split(" "),i=0;i<h.length;i++)e["[object "+h[i]+"]"]=h[i].toLowerCase();c.fn.init.prototype=c.fn,a.Velocity={Utilities:c}}}(window),function(a){"object"==typeof module&&"object"==typeof module.exports?module.exports=a():(__WEBPACK_AMD_DEFINE_FACTORY__=a,void 0!==(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__)&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(function(){return function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b<c;){var e=a[b];e&&d.push(e)}return d}function f(a){return p.isWrapped(a)?a=[].slice.call(a):p.isNode(a)&&(a=[a]),a}function g(a){var b=m.data(a,"velocity");return null===b?d:b}function h(a){return function(b){return Math.round(b*a)*(1/a)}}function i(a,c,d,e){function f(a,b){return 1-3*b+3*a}function g(a,b){return 3*b-6*a}function h(a){return 3*a}function i(a,b,c){return((f(b,c)*a+g(b,c))*a+h(b))*a}function j(a,b,c){return 3*f(b,c)*a*a+2*g(b,c)*a+h(b)}function k(b,c){for(var e=0;p>e;++e){var f=j(c,a,d);if(0===f)return c;c-=(i(c,a,d)-b)/f}return c}function l(){for(var b=0;t>b;++b)x[b]=i(b*u,a,d)}function m(b,c,e){var f,g,h=0;do{g=c+(e-c)/2,f=i(g,a,d)-b,f>0?e=g:c=g}while(Math.abs(f)>r&&++h<s);return g}function n(b){for(var c=0,e=1,f=t-1;e!=f&&x[e]<=b;++e)c+=u;--e;var g=(b-x[e])/(x[e+1]-x[e]),h=c+g*u,i=j(h,a,d);return i>=q?k(b,h):0==i?h:m(b,c,c+u)}function o(){y=!0,(a!=c||d!=e)&&l()}var p=4,q=.001,r=1e-7,s=10,t=11,u=1/(t-1),v="Float32Array"in b;if(4!==arguments.length)return!1;for(var w=0;4>w;++w)if("number"!=typeof arguments[w]||isNaN(arguments[w])||!isFinite(arguments[w]))return!1;a=Math.min(a,1),d=Math.min(d,1),a=Math.max(a,0),d=Math.max(d,0);var x=v?new Float32Array(t):new Array(t),y=!1,z=function(b){return y||o(),a===c&&d===e?b:0===b?0:1===b?1:i(n(b),c,e)};z.getControlPoints=function(){return[{x:a,y:c},{x:d,y:e}]};var A="generateBezier("+[a,c,d,e]+")";return z.toString=function(){return A},z}function j(a,b){var c=a;return p.isString(a)?t.Easings[a]||(c=!1):c=p.isArray(a)&&1===a.length?h.apply(null,a):p.isArray(a)&&2===a.length?u.apply(null,a.concat([b])):!(!p.isArray(a)||4!==a.length)&&i.apply(null,a),!1===c&&(c=t.Easings[t.defaults.easing]?t.defaults.easing:s),c}function k(a){if(a){var b=(new Date).getTime(),c=t.State.calls.length;c>1e4&&(t.State.calls=e(t.State.calls));for(var f=0;c>f;f++)if(t.State.calls[f]){var h=t.State.calls[f],i=h[0],j=h[2],n=h[3],o=!!n,q=null;n||(n=t.State.calls[f][3]=b-16);for(var r=Math.min((b-n)/j.duration,1),s=0,u=i.length;u>s;s++){var w=i[s],y=w.element;if(g(y)){var z=!1;if(j.display!==d&&null!==j.display&&"none"!==j.display){if("flex"===j.display){var A=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];m.each(A,function(a,b){v.setPropertyValue(y,"display",b)})}v.setPropertyValue(y,"display",j.display)}j.visibility!==d&&"hidden"!==j.visibility&&v.setPropertyValue(y,"visibility",j.visibility);for(var B in w)if("element"!==B){var C,D=w[B],E=p.isString(D.easing)?t.Easings[D.easing]:D.easing;if(1===r)C=D.endValue;else{var F=D.endValue-D.startValue;if(C=D.startValue+F*E(r,j,F),!o&&C===D.currentValue)continue}if(D.currentValue=C,"tween"===B)q=C;else{if(v.Hooks.registered[B]){var G=v.Hooks.getRoot(B),H=g(y).rootPropertyValueCache[G];H&&(D.rootPropertyValue=H)}var I=v.setPropertyValue(y,B,D.currentValue+(0===parseFloat(C)?"":D.unitType),D.rootPropertyValue,D.scrollData);v.Hooks.registered[B]&&(g(y).rootPropertyValueCache[G]=v.Normalizations.registered[G]?v.Normalizations.registered[G]("extract",null,I[1]):I[1]),"transform"===I[0]&&(z=!0)}}j.mobileHA&&g(y).transformCache.translate3d===d&&(g(y).transformCache.translate3d="(0px, 0px, 0px)",z=!0),z&&v.flushTransformCache(y)}}j.display!==d&&"none"!==j.display&&(t.State.calls[f][2].display=!1),j.visibility!==d&&"hidden"!==j.visibility&&(t.State.calls[f][2].visibility=!1),j.progress&&j.progress.call(h[1],h[1],r,Math.max(0,n+j.duration-b),n,q),1===r&&l(f)}}t.State.isTicking&&x(k)}function l(a,b){if(!t.State.calls[a])return!1;for(var c=t.State.calls[a][0],e=t.State.calls[a][1],f=t.State.calls[a][2],h=t.State.calls[a][4],i=!1,j=0,k=c.length;k>j;j++){var l=c[j].element;if(b||f.loop||("none"===f.display&&v.setPropertyValue(l,"display",f.display),"hidden"===f.visibility&&v.setPropertyValue(l,"visibility",f.visibility)),!0!==f.loop&&(m.queue(l)[1]===d||!/\.velocityQueueEntryFlag/i.test(m.queue(l)[1]))&&g(l)){g(l).isAnimating=!1,g(l).rootPropertyValueCache={};var n=!1;m.each(v.Lists.transforms3D,function(a,b){var c=/^scale/.test(b)?1:0,e=g(l).transformCache[b];g(l).transformCache[b]!==d&&new RegExp("^\\("+c+"[^.]").test(e)&&(n=!0,delete g(l).transformCache[b])}),f.mobileHA&&(n=!0,delete g(l).transformCache.translate3d),n&&v.flushTransformCache(l),v.Values.removeClass(l,"velocity-animating")}if(!b&&f.complete&&!f.loop&&j===k-1)try{f.complete.call(e,e)}catch(o){setTimeout(function(){throw o},1)}h&&!0!==f.loop&&h(e),g(l)&&!0===f.loop&&!b&&(m.each(g(l).tweensContainer,function(a,b){/^rotate/.test(a)&&360===parseFloat(b.endValue)&&(b.endValue=0,b.startValue=360),/^backgroundPosition/.test(a)&&100===parseFloat(b.endValue)&&"%"===b.unitType&&(b.endValue=0,b.startValue=100)}),t(l,"reverse",{loop:!0,delay:f.delay})),!1!==f.queue&&m.dequeue(l,f.queue)}t.State.calls[a]=!1;for(var p=0,q=t.State.calls.length;q>p;p++)if(!1!==t.State.calls[p]){i=!0;break}!1===i&&(t.State.isTicking=!1,delete t.State.calls,t.State.calls=[])}var m,n=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="\x3c!--[if IE "+a+"]><span></span><![endif]--\x3e",b.getElementsByTagName("span").length)return b=null,a}return d}(),o=function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}(),p={isString:function(a){return"string"==typeof a},isArray:Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)},isFunction:function(a){return"[object Function]"===Object.prototype.toString.call(a)},isNode:function(a){return a&&a.nodeType},isNodeList:function(a){return"object"==typeof a&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(a))&&a.length!==d&&(0===a.length||"object"==typeof a[0]&&a[0].nodeType>0)},isWrapped:function(a){return a&&(a.jquery||b.Zepto&&b.Zepto.zepto.isZ(a))},isSVG:function(a){return b.SVGElement&&a instanceof b.SVGElement},isEmptyObject:function(a){for(var b in a)return!1;return!0}},q=!1;if(a.fn&&a.fn.jquery?(m=a,q=!0):m=b.Velocity.Utilities,8>=n&&!q)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=n)return void(jQuery.fn.velocity=jQuery.fn.animate);var r=400,s="swing",t={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:b.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:m,Redirects:{},Easings:{},Promise:b.Promise,defaults:{queue:"",duration:r,easing:s,begin:d,complete:d,progress:d,display:d,visibility:d,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(a){m.data(a,"velocity",{isSVG:p.isSVG(a),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};b.pageYOffset!==d?(t.State.scrollAnchor=b,t.State.scrollPropertyLeft="pageXOffset",t.State.scrollPropertyTop="pageYOffset"):(t.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,t.State.scrollPropertyLeft="scrollLeft",t.State.scrollPropertyTop="scrollTop");var u=function(){function a(a){return-a.tension*a.x-a.friction*a.v}function b(b,c,d){var e={x:b.x+d.dx*c,v:b.v+d.dv*c,tension:b.tension,friction:b.friction};return{dx:e.v,dv:a(e)}}function c(c,d){var e={dx:c.v,dv:a(c)},f=b(c,.5*d,e),g=b(c,.5*d,f),h=b(c,d,g),i=1/6*(e.dx+2*(f.dx+g.dx)+h.dx),j=1/6*(e.dv+2*(f.dv+g.dv)+h.dv);return c.x=c.x+i*d,c.v=c.v+j*d,c}return function d(a,b,e){var f,g,h,i={x:-1,v:0,tension:null,friction:null},j=[0],k=0;for(a=parseFloat(a)||500,b=parseFloat(b)||20,e=e||null,i.tension=a,i.friction=b,f=null!==e,f?(k=d(a,b),g=k/e*.016):g=.016;h=c(h||i,g),j.push(1+h.x),k+=16,Math.abs(h.x)>1e-4&&Math.abs(h.v)>1e-4;);return f?function(a){return j[a*(j.length-1)|0]}:k}}();t.Easings={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},spring:function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}},m.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(a,b){t.Easings[b[0]]=i.apply(null,b[1])});var v=t.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var a=0;a<v.Lists.colors.length;a++){var b="color"===v.Lists.colors[a]?"0 0 0 1":"255 255 255 1";v.Hooks.templates[v.Lists.colors[a]]=["Red Green Blue Alpha",b]}var c,d,e;if(n)for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");var f=d[1].match(v.RegEx.valueSplit);"Color"===e[0]&&(e.push(e.shift()),f.push(f.shift()),v.Hooks.templates[c]=[e.join(" "),f.join(" ")])}for(c in v.Hooks.templates){d=v.Hooks.templates[c],e=d[0].split(" ");for(var a in e){var g=c+e[a],h=a;v.Hooks.registered[g]=[c,h]}}},getRoot:function(a){var b=v.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return v.RegEx.valueUnwrap.test(b)&&(b=b.match(v.RegEx.valueUnwrap)[1]),v.Values.isCSSNullValue(b)&&(b=v.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=v.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=v.Hooks.cleanRootPropertyValue(d,b),b.toString().match(v.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=v.Hooks.registered[a];if(d){var e,g=d[0],h=d[1];return c=v.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(v.RegEx.valueSplit),e[h]=b,e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return v.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(v.RegEx.valueUnwrap),d=d?d[1].replace(/,(\s+)?/g," "):c),d;case"inject":return"rect("+c+")"}},blur:function(a,b,c){switch(a){case"name":return t.State.isFirefox?"filter":"-webkit-filter";case"extract":var d=parseFloat(c);if(!d&&0!==d){var e=c.toString().match(/blur\(([0-9]+[A-z]+)\)/i);d=e?e[1]:0}return d;case"inject":return parseFloat(c)?"blur("+c+")":"none"}},opacity:function(a,b,c){if(8>=n)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":case"inject":return c}}},register:function(){9>=n||t.State.isGingerbread||(v.Lists.transformsBase=v.Lists.transformsBase.concat(v.Lists.transforms3D));for(var a=0;a<v.Lists.transformsBase.length;a++)!function(){var b=v.Lists.transformsBase[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return"transform";case"extract":return g(c)===d||g(c).transformCache[b]===d?/^scale/i.test(b)?1:0:g(c).transformCache[b].replace(/[()]/g,"");case"inject":var f=!1;switch(b.substr(0,b.length-1)){case"translate":f=!/(%|px|em|rem|vw|vh|\d)$/i.test(e);break;case"scal":case"scale":t.State.isAndroid&&g(c).transformCache[b]===d&&1>e&&(e=1),f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(g(c).transformCache[b]="("+e+")"),g(c).transformCache[b]}}}();for(var a=0;a<v.Lists.colors.length;a++)!function(){var b=v.Lists.colors[a];v.Normalizations.registered[b]=function(a,c,e){switch(a){case"name":return b;case"extract":var f;if(v.RegEx.wrappedValueAlreadyExtracted.test(e))f=e;else{var g,h={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"};/^[A-z]+$/i.test(e)?g=h[e]!==d?h[e]:h.black:v.RegEx.isHex.test(e)?g="rgb("+v.Values.hexToRgb(e).join(" ")+")":/^rgba?\(/i.test(e)||(g=h.black),f=(g||e).toString().match(v.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=n||3!==f.split(" ").length||(f+=" 1"),f;case"inject":return 8>=n?4===e.split(" ").length&&(e=e.split(/\s+/).slice(0,3).join(" ")):3===e.split(" ").length&&(e+=" 1"),(8>=n?"rgb":"rgba")+"("+e.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},SVGAttribute:function(a){var b="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(n||t.State.isAndroid&&!t.State.isChrome)&&(b+="|transform"),new RegExp("^("+b+")$","i").test(a)},prefixCheck:function(a){if(t.State.prefixMatches[a])return[t.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),p.isString(t.State.prefixElement.style[e]))return t.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{hexToRgb:function(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:[0,0,0]},isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(a)?"":"px"},getDisplayType:function(a){var b=a&&a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":/^(tr)$/i.test(b)?"table-row":/^(table)$/i.test(b)?"table":/^(tbody)$/i.test(b)?"table-row-group":"block"},addClass:function(a,b){a.classList?a.classList.add(b):a.className+=(a.className.length?" ":"")+b},removeClass:function(a,b){a.classList?a.classList.remove(b):a.className=a.className.toString().replace(new RegExp("(^|\\s)"+b.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(a,c,e,f){function h(a,c){function e(){j&&v.setPropertyValue(a,"display","none")}var i=0;if(8>=n)i=m.css(a,c);else{var j=!1;if(/^(width|height)$/.test(c)&&0===v.getPropertyValue(a,"display")&&(j=!0,v.setPropertyValue(a,"display",v.Values.getDisplayType(a))),!f){if("height"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var k=a.offsetHeight-(parseFloat(v.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(v.getPropertyValue(a,"paddingBottom"))||0);return e(),k}if("width"===c&&"border-box"!==v.getPropertyValue(a,"boxSizing").toString().toLowerCase()){var l=a.offsetWidth-(parseFloat(v.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(v.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(v.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(v.getPropertyValue(a,"paddingRight"))||0);return e(),l}}var o;o=g(a)===d?b.getComputedStyle(a,null):g(a).computedStyle?g(a).computedStyle:g(a).computedStyle=b.getComputedStyle(a,null),"borderColor"===c&&(c="borderTopColor"),i=9===n&&"filter"===c?o.getPropertyValue(c):o[c],(""===i||null===i)&&(i=a.style[c]),e()}if("auto"===i&&/^(top|right|bottom|left)$/i.test(c)){var p=h(a,"position");("fixed"===p||"absolute"===p&&/top|left/i.test(c))&&(i=m(a).position()[c]+"px")}return i}var i;if(v.Hooks.registered[c]){var j=c,k=v.Hooks.getRoot(j);e===d&&(e=v.getPropertyValue(a,v.Names.prefixCheck(k)[0])),v.Normalizations.registered[k]&&(e=v.Normalizations.registered[k]("extract",a,e)),i=v.Hooks.extractValue(j,e)}else if(v.Normalizations.registered[c]){var l,o;l=v.Normalizations.registered[c]("name",a),"transform"!==l&&(o=h(a,v.Names.prefixCheck(l)[0]),v.Values.isCSSNullValue(o)&&v.Hooks.templates[c]&&(o=v.Hooks.templates[c][1])),i=v.Normalizations.registered[c]("extract",a,o)}if(!/^[\d-]/.test(i))if(g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c))if(/^(height|width)$/i.test(c))try{i=a.getBBox()[c]}catch(p){i=0}else i=a.getAttribute(c);else i=h(a,v.Names.prefixCheck(c)[0]);return v.Values.isCSSNullValue(i)&&(i=0),t.debug>=2&&console.log("Get "+c+": "+i),i},setPropertyValue:function(a,c,d,e,f){var h=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(v.Normalizations.registered[c]&&"transform"===v.Normalizations.registered[c]("name",a))v.Normalizations.registered[c]("inject",a,d),h="transform",d=g(a).transformCache[c];else{if(v.Hooks.registered[c]){var i=c,j=v.Hooks.getRoot(c);e=e||v.getPropertyValue(a,j),d=v.Hooks.injectValue(i,d,e),c=j}if(v.Normalizations.registered[c]&&(d=v.Normalizations.registered[c]("inject",a,d),c=v.Normalizations.registered[c]("name",a)),h=v.Names.prefixCheck(c)[0],8>=n)try{a.style[h]=d}catch(k){t.debug&&console.log("Browser does not support ["+d+"] for ["+h+"]")}else g(a)&&g(a).isSVG&&v.Names.SVGAttribute(c)?a.setAttribute(c,d):a.style[h]=d;t.debug>=2&&console.log("Set "+c+" ("+h+"): "+d)}return[h,d]},flushTransformCache:function(a){function b(b){return parseFloat(v.getPropertyValue(a,b))}var c="";if((n||t.State.isAndroid&&!t.State.isChrome)&&g(a).isSVG){var d={translate:[b("translateX"),b("translateY")],skewX:[b("skewX")],skewY:[b("skewY")],scale:1!==b("scale")?[b("scale"),b("scale")]:[b("scaleX"),b("scaleY")],rotate:[b("rotateZ"),0,0]};m.each(g(a).transformCache,function(a){/^translate/i.test(a)?a="translate":/^scale/i.test(a)?a="scale":/^rotate/i.test(a)&&(a="rotate"),d[a]&&(c+=a+"("+d[a].join(" ")+") ",delete d[a])})}else{var e,f;m.each(g(a).transformCache,function(b){return e=g(a).transformCache[b],"transformPerspective"===b?(f=e,!0):(9===n&&"rotateZ"===b&&(b="rotate"),void(c+=b+e+" "))}),f&&(c="perspective"+f+" "+c)}v.setPropertyValue(a,"transform",c)}};v.Hooks.register(),v.Normalizations.register(),t.hook=function(a,b,c){var e=d;return a=f(a),m.each(a,function(a,f){if(g(f)===d&&t.init(f),c===d)e===d&&(e=t.CSS.getPropertyValue(f,b));else{var h=t.CSS.setPropertyValue(f,b,c);"transform"===h[0]&&t.CSS.flushTransformCache(f),e=h}}),e};var w=function(){function a(){return h?B.promise||null:i}function e(){function a(){function a(a,b){var c=d,e=d,g=d;return p.isArray(a)?(c=a[0],!p.isArray(a[1])&&/^[\d-]/.test(a[1])||p.isFunction(a[1])||v.RegEx.isHex.test(a[1])?g=a[1]:(p.isString(a[1])&&!v.RegEx.isHex.test(a[1])||p.isArray(a[1]))&&(e=b?a[1]:j(a[1],h.duration),a[2]!==d&&(g=a[2]))):c=a,b||(e=e||h.easing),p.isFunction(c)&&(c=c.call(f,y,x)),p.isFunction(g)&&(g=g.call(f,y,x)),[c||0,e,g]}function l(a,b){var c,d;return d=(b||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=v.Values.getUnitType(a)),[d,c]}if(h.begin&&0===y)try{h.begin.call(o,o)}catch(r){setTimeout(function(){throw r},1)}if("scroll"===C){var u,w,z,A=/^x$/i.test(h.axis)?"Left":"Top",D=parseFloat(h.offset)||0;h.container?p.isWrapped(h.container)||p.isNode(h.container)?(h.container=h.container[0]||h.container,u=h.container["scroll"+A],z=u+m(f).position()[A.toLowerCase()]+D):h.container=null:(u=t.State.scrollAnchor[t.State["scrollProperty"+A]],w=t.State.scrollAnchor[t.State["scrollProperty"+("Left"===A?"Top":"Left")]],z=m(f).offset()[A.toLowerCase()]+D),i={scroll:{rootPropertyValue:!1,startValue:u,currentValue:u,endValue:z,unitType:"",easing:h.easing,scrollData:{container:h.container,direction:A,alternateValue:w}},element:f},t.debug&&console.log("tweensContainer (scroll): ",i.scroll,f)}else if("reverse"===C){if(!g(f).tweensContainer)return void m.dequeue(f,h.queue);"none"===g(f).opts.display&&(g(f).opts.display="auto"),"hidden"===g(f).opts.visibility&&(g(f).opts.visibility="visible"),g(f).opts.loop=!1,g(f).opts.begin=null,g(f).opts.complete=null,s.easing||delete h.easing,s.duration||delete h.duration,h=m.extend({},g(f).opts,h);var E=m.extend(!0,{},g(f).tweensContainer);for(var F in E)if("element"!==F){var G=E[F].startValue;E[F].startValue=E[F].currentValue=E[F].endValue,E[F].endValue=G,p.isEmptyObject(s)||(E[F].easing=h.easing),t.debug&&console.log("reverse tweensContainer ("+F+"): "+JSON.stringify(E[F]),f)}i=E}else if("start"===C){var E;g(f).tweensContainer&&!0===g(f).isAnimating&&(E=g(f).tweensContainer),m.each(q,function(b,c){if(RegExp("^"+v.Lists.colors.join("$|^")+"$").test(b)){var e=a(c,!0),f=e[0],g=e[1],h=e[2];if(v.RegEx.isHex.test(f)){for(var i=["Red","Green","Blue"],j=v.Values.hexToRgb(f),k=h?v.Values.hexToRgb(h):d,l=0;l<i.length;l++){var m=[j[l]];g&&m.push(g),k!==d&&m.push(k[l]),q[b+i[l]]=m}delete q[b]}}});for(var H in q){var K=a(q[H]),L=K[0],M=K[1],N=K[2];H=v.Names.camelCase(H);var O=v.Hooks.getRoot(H),P=!1;if(g(f).isSVG||"tween"===O||!1!==v.Names.prefixCheck(O)[1]||v.Normalizations.registered[O]!==d){(h.display!==d&&null!==h.display&&"none"!==h.display||h.visibility!==d&&"hidden"!==h.visibility)&&/opacity|filter/.test(H)&&!N&&0!==L&&(N=0),h._cacheValues&&E&&E[H]?(N===d&&(N=E[H].endValue+E[H].unitType),P=g(f).rootPropertyValueCache[O]):v.Hooks.registered[H]?N===d?(P=v.getPropertyValue(f,O),N=v.getPropertyValue(f,H,P)):P=v.Hooks.templates[O][1]:N===d&&(N=v.getPropertyValue(f,H));var Q,R,S,T=!1;if(Q=l(H,N),N=Q[0],S=Q[1],Q=l(H,L),L=Q[0].replace(/^([+-\/*])=/,function(a,b){return T=b,""}),R=Q[1],N=parseFloat(N)||0,L=parseFloat(L)||0,"%"===R&&(/^(fontSize|lineHeight)$/.test(H)?(L/=100,R="em"):/^scale/.test(H)?(L/=100,R=""):/(Red|Green|Blue)$/i.test(H)&&(L=L/100*255,R="")),/[\/*]/.test(T))R=S;else if(S!==R&&0!==N)if(0===L)R=S;else{e=e||function(){var a={myParent:f.parentNode||c.body,position:v.getPropertyValue(f,"position"),fontSize:v.getPropertyValue(f,"fontSize")},d=a.position===I.lastPosition&&a.myParent===I.lastParent,e=a.fontSize===I.lastFontSize;I.lastParent=a.myParent,I.lastPosition=a.position,I.lastFontSize=a.fontSize;var h=100,i={};if(e&&d)i.emToPx=I.lastEmToPx,i.percentToPxWidth=I.lastPercentToPxWidth,i.percentToPxHeight=I.lastPercentToPxHeight;else{var j=g(f).isSVG?c.createElementNS("http://www.w3.org/2000/svg","rect"):c.createElement("div");t.init(j),a.myParent.appendChild(j),m.each(["overflow","overflowX","overflowY"],function(a,b){t.CSS.setPropertyValue(j,b,"hidden")}),t.CSS.setPropertyValue(j,"position",a.position),t.CSS.setPropertyValue(j,"fontSize",a.fontSize),t.CSS.setPropertyValue(j,"boxSizing","content-box"),m.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(a,b){t.CSS.setPropertyValue(j,b,h+"%")}),t.CSS.setPropertyValue(j,"paddingLeft",h+"em"),i.percentToPxWidth=I.lastPercentToPxWidth=(parseFloat(v.getPropertyValue(j,"width",null,!0))||1)/h,i.percentToPxHeight=I.lastPercentToPxHeight=(parseFloat(v.getPropertyValue(j,"height",null,!0))||1)/h,i.emToPx=I.lastEmToPx=(parseFloat(v.getPropertyValue(j,"paddingLeft"))||1)/h,a.myParent.removeChild(j)}return null===I.remToPx&&(I.remToPx=parseFloat(v.getPropertyValue(c.body,"fontSize"))||16),null===I.vwToPx&&(I.vwToPx=parseFloat(b.innerWidth)/100,I.vhToPx=parseFloat(b.innerHeight)/100),i.remToPx=I.remToPx,i.vwToPx=I.vwToPx,i.vhToPx=I.vhToPx,t.debug>=1&&console.log("Unit ratios: "+JSON.stringify(i),f),i}();var U=/margin|padding|left|right|width|text|word|letter/i.test(H)||/X$/.test(H)||"x"===H?"x":"y";switch(S){case"%":N*="x"===U?e.percentToPxWidth:e.percentToPxHeight;break;case"px":break;default:N*=e[S+"ToPx"]}switch(R){case"%":N*=1/("x"===U?e.percentToPxWidth:e.percentToPxHeight);break;case"px":break;default:N*=1/e[R+"ToPx"]}}switch(T){case"+":L=N+L;break;case"-":L=N-L;break;case"*":L*=N;break;case"/":L=N/L}i[H]={rootPropertyValue:P,startValue:N,currentValue:N,endValue:L,unitType:R,easing:M},t.debug&&console.log("tweensContainer ("+H+"): "+JSON.stringify(i[H]),f)}else t.debug&&console.log("Skipping ["+O+"] due to a lack of browser support.")}i.element=f}i.element&&(v.Values.addClass(f,"velocity-animating"),J.push(i),""===h.queue&&(g(f).tweensContainer=i,g(f).opts=h),g(f).isAnimating=!0,y===x-1?(t.State.calls.push([J,o,h,null,B.resolver]),!1===t.State.isTicking&&(t.State.isTicking=!0,k())):y++)}var e,f=this,h=m.extend({},t.defaults,s),i={};switch(g(f)===d&&t.init(f),parseFloat(h.delay)&&!1!==h.queue&&m.queue(f,h.queue,function(a){t.velocityQueueEntryFlag=!0,g(f).delayTimer={setTimeout:setTimeout(a,parseFloat(h.delay)),next:a}}),h.duration.toString().toLowerCase()){case"fast":h.duration=200;break;case"normal":h.duration=r;break;case"slow":h.duration=600;break;default:h.duration=parseFloat(h.duration)||1}!1!==t.mock&&(!0===t.mock?h.duration=h.delay=1:(h.duration*=parseFloat(t.mock)||1,h.delay*=parseFloat(t.mock)||1)),h.easing=j(h.easing,h.duration),h.begin&&!p.isFunction(h.begin)&&(h.begin=null),h.progress&&!p.isFunction(h.progress)&&(h.progress=null),h.complete&&!p.isFunction(h.complete)&&(h.complete=null),h.display!==d&&null!==h.display&&(h.display=h.display.toString().toLowerCase(),"auto"===h.display&&(h.display=t.CSS.Values.getDisplayType(f))),h.visibility!==d&&null!==h.visibility&&(h.visibility=h.visibility.toString().toLowerCase()),h.mobileHA=h.mobileHA&&t.State.isMobile&&!t.State.isGingerbread,!1===h.queue?h.delay?setTimeout(a,h.delay):a():m.queue(f,h.queue,function(b,c){return!0===c?(B.promise&&B.resolver(o),!0):(t.velocityQueueEntryFlag=!0,void a())}),""!==h.queue&&"fx"!==h.queue||"inprogress"===m.queue(f)[0]||m.dequeue(f)}var h,i,n,o,q,s,u=arguments[0]&&(arguments[0].p||m.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||p.isString(arguments[0].properties));if(p.isWrapped(this)?(h=!1,n=0,o=this,i=this):(h=!0,n=1,o=u?arguments[0].elements||arguments[0].e:arguments[0]),o=f(o)){u?(q=arguments[0].properties||arguments[0].p,s=arguments[0].options||arguments[0].o):(q=arguments[n],s=arguments[n+1]);var x=o.length,y=0;if(!/^(stop|finish|finishAll)$/i.test(q)&&!m.isPlainObject(s)){var z=n+1;s={};for(var A=z;A<arguments.length;A++)p.isArray(arguments[A])||!/^(fast|normal|slow)$/i.test(arguments[A])&&!/^\d/.test(arguments[A])?p.isString(arguments[A])||p.isArray(arguments[A])?s.easing=arguments[A]:p.isFunction(arguments[A])&&(s.complete=arguments[A]):s.duration=arguments[A]}var B={promise:null,resolver:null,rejecter:null};h&&t.Promise&&(B.promise=new t.Promise(function(a,b){B.resolver=a,B.rejecter=b}));var C;switch(q){case"scroll":C="scroll";break;case"reverse":C="reverse";break;case"finish":case"finishAll":case"stop":m.each(o,function(a,b){g(b)&&g(b).delayTimer&&(clearTimeout(g(b).delayTimer.setTimeout),g(b).delayTimer.next&&g(b).delayTimer.next(),delete g(b).delayTimer),"finishAll"!==q||!0!==s&&!p.isString(s)||(m.each(m.queue(b,p.isString(s)?s:""),function(a,b){p.isFunction(b)&&b()}),m.queue(b,p.isString(s)?s:"",[]))});var D=[];return m.each(t.State.calls,function(a,b){b&&m.each(b[1],function(c,e){var f=s===d?"":s;return!0!==f&&b[2].queue!==f&&(s!==d||!1!==b[2].queue)||void m.each(o,function(c,d){d===e&&((!0===s||p.isString(s))&&(m.each(m.queue(d,p.isString(s)?s:""),function(a,b){p.isFunction(b)&&b(null,!0)}),m.queue(d,p.isString(s)?s:"",[])),"stop"===q?(g(d)&&g(d).tweensContainer&&!1!==f&&m.each(g(d).tweensContainer,function(a,b){b.endValue=b.currentValue}),D.push(a)):("finish"===q||"finishAll"===q)&&(b[2].duration=1))})})}),"stop"===q&&(m.each(D,function(a,b){l(b,!0)}),B.promise&&B.resolver(o)),a();default:if(!m.isPlainObject(q)||p.isEmptyObject(q)){if(p.isString(q)&&t.Redirects[q]){var E=m.extend({},s),F=E.duration,G=E.delay||0;return!0===E.backwards&&(o=m.extend(!0,[],o).reverse()),m.each(o,function(a,b){parseFloat(E.stagger)?E.delay=G+parseFloat(E.stagger)*a:p.isFunction(E.stagger)&&(E.delay=G+E.stagger.call(b,a,x)),E.drag&&(E.duration=parseFloat(F)||(/^(callout|transition)/.test(q)?1e3:r),E.duration=Math.max(E.duration*(E.backwards?1-a/x:(a+1)/x),.75*E.duration,200)),t.Redirects[q].call(b,b,E||{},a,x,o,B.promise?B:d)}),a()}var H="Velocity: First argument ("+q+") was not a property map, a known action, or a registered redirect. Aborting.";return B.promise?B.rejecter(new Error(H)):console.log(H),a()}C="start"}var I={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},J=[];m.each(o,function(a,b){p.isNode(b)&&e.call(b)});var K,E=m.extend({},t.defaults,s);if(E.loop=parseInt(E.loop),K=2*E.loop-1,E.loop)for(var L=0;K>L;L++){var M={delay:E.delay,progress:E.progress};L===K-1&&(M.display=E.display,M.visibility=E.visibility,M.complete=E.complete),w(o,"reverse",M)}return a()}};t=m.extend(w,t),t.animate=w;var x=b.requestAnimationFrame||o;return t.State.isMobile||c.hidden===d||c.addEventListener("visibilitychange",function(){c.hidden?(x=function(a){return setTimeout(function(){a(!0)},16)},k()):x=b.requestAnimationFrame||o}),a.Velocity=t,a!==b&&(a.fn.velocity=w,a.fn.velocity.defaults=t.defaults),m.each(["Down","Up"],function(a,b){t.Redirects["slide"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j=i.begin,k=i.complete,l={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},n={};i.display===d&&(i.display="Down"===b?"inline"===t.CSS.Values.getDisplayType(a)?"inline-block":"block":"none"),i.begin=function(){j&&j.call(g,g);for(var c in l){n[c]=a.style[c];var d=t.CSS.getPropertyValue(a,c);l[c]="Down"===b?[d,0]:[0,d]}n.overflow=a.style.overflow,a.style.overflow="hidden"},i.complete=function(){for(var b in n)a.style[b]=n[b];k&&k.call(g,g),h&&h.resolver(g)},t(a,l,i)}}),m.each(["In","Out"],function(a,b){t.Redirects["fade"+b]=function(a,c,e,f,g,h){var i=m.extend({},c),j={opacity:"In"===b?1:0},k=i.complete;i.complete=e!==f-1?i.begin=null:function(){k&&k.call(g,g),h&&h.resolver(g)},i.display===d&&(i.display="In"===b?"auto":"none"),t(this,j,i)}}),t}(__webpack_provided_window_dot_jQuery||window.Zepto||window,window,document)})}).call(exports,__webpack_require__(1),__webpack_require__(1))},function(module,exports,__webpack_require__){var roles={admin:{id:"admin",name:"Administrators",description:"Administrators",allowedAction:["*"]},adminOrg:{id:"adminOrg",name:"AdminOrganization",description:"Organization Administrators",allowedAction:["users:create editSelf view delete","groups:create editSelf view delete","organizations:create editSelf view delete","notices:create editSelf view delete","settings:*"]},mod:{id:"mod",name:"Moderators",description:"Moderators",allowedAction:["mod:*","ticket:create edit view attachment removeAttachment","comment:*","notes:*","reports:view","articles:view"]},support:{id:"support",name:"Support",description:"Support User",allowedAction:["ticket:*","accounts:create edit view delete","comment:editSelf create delete","notes:create view","reports:view","notices:*","articles:create edit view delete"]},user:{id:"user",name:"User",description:"User",allowedAction:["ticket:create editSelf attachment","comment:create editSelf","articles:view"]}};void 0!==module&&module.exports&&(module.exports=roles)},,,function(module,exports,__webpack_require__){(function(global){module.exports=global.truRequire=__webpack_require__(35)}).call(exports,__webpack_require__(6))},function(module,exports,__webpack_require__){var allMods={jquery:function(){return __webpack_require__(1)},snackbar:function(){return __webpack_require__(12)},underscore:function(){return __webpack_require__(2)},helpers:function(){return __webpack_require__(7)},datatables:function(){return __webpack_require__(3)},dt_ipaddress:function(){return __webpack_require__(14)},dt_scroller:function(){return __webpack_require__(15)},uikit:function(){return __webpack_require__(5)}};module.exports=function(modules,cb){cb(modules.map(function(x){return allMods[x]()}))}}],[34]);